* lisp/textmodes/fill.el (justify-current-line): Don't add 1 to nspaces
[bpt/emacs.git] / src / ChangeLog
CommitLineData
9a747ba6
JD
12010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2
3 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
4 to Control-D (Bug#6771).
5
7b0815ba
JB
62010-08-02 Juanma Barranquero <lekktu@gmail.com>
7
8 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
9 Wording by Drew Adams <drew.adams@oracle.com>.
10
aa1859f5
J
112010-08-01 Jan Djärv <jan.h.d@swipnet.se>
12
13 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
14 ttip_lbl.
15
16 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
17 calling gtk_widget_queue_draw.
18 (x_free_frame_resources): Call xg_free_frame_widgets.
19
20 * xfns.c (x_gtk_use_system_tooltips): New variable.
21 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
22 new gtkutil tooltip functions to show the tooltip.
23 (Fx_hide_tip): Call xg_hide_tooltip.
24 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
25
26 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
27 (xg_show_tooltip, xg_hide_tooltip): Declare.
28
29 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
30 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets): New
31 functions.
32 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
33 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
34 Remove code that is commented out.
35
76417ef4
SM
362010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
37
38 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
39
16041401
CY
402010-07-31 Chong Yidong <cyd@stupidchicken.com>
41
42 * xselect.c (x_own_selection): Use list4.
43
2c09a58f
DN
442010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
45
46 * buffer.c (Qwindow): Do not define, already defined in data.c.
47 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
48
59df9fdd 492010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 50
59df9fdd
JB
51 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
52 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
53 * config.in: Undef HAVE_DIRENT_H.
1c97e857 54 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 55 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 56
1b231651
DN
572010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
58
59 Rename s/usg5-4.h -> s/usg5-4-common.h.
60 * s/usg5-4.h: Rename file to ...
61 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
62 * s/unixware.h:
63 * s/sol2-6.h:
64 * s/irix6-5.h: Update includes accordingly.
65
bfeabdc3
JD
662010-07-29 Jan Djärv <jan.h.d@swipnet.se>
67
2ebf1083
J
68 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
69
bfeabdc3
JD
70 * xterm.h (struct x_output): Add toolbar_top_height,
71 toolbar_bottom_height, toolbar_left_width, toolbar_right_width. Remove
72 toolbar_height.
73 if USE_GTK: Add hbox_widget and toolbar_in_hbox.
74 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
75 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
76 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
77
78 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
79
80 * xfns.c (x_set_tool_bar_position): New function.
81 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
82 (x_frame_parm_handlers): Add x_set_tool_bar_position.
83 (syms_of_xfns): if USE_GTK, provide move-toolbar.
84
85 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
86 and FRAME_TOOLBAR_LEFT_WIDTH.
87
88 * gtkutil.h (xg_change_toolbar_position): Declare.
89
90 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
91 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
92 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
93 (xg_create_frame_widgets): Create a hobox for placing widgets
94 vertically. Use gtk_box_pack_start.
95 (xg_height_or_width_changed): Renamed from xg_height_changed.
96 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
97 (xg_update_frame_menubar, free_frame_menubar): Change to
98 xg_height_or_width_changed.
99 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
100 size correctly. Remove hardcoded 4, instead use handlebox size -
101 toolbar size.
102 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
103 size correctly. Use handlebox size + toolbar size as additional
104 size.
105 (xg_pack_tool_bar): POS is a new parameter.
106 Set orientation of tool bar based on pos.
107 Only make handlebox_widget if NULL.
108 Check if tool bar goes to vbox or hbox depending on pos.
109 (xg_update_tool_bar_sizes): New function.
110 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
111 height, call xg_update_tool_bar_sizes instead.
112 (free_frame_tool_bar): Remove from hbox or vbox depending on
113 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
114 (xg_change_toolbar_position): New function.
115
116 * frame.h (struct frame): Add tool_bar_position.
117 (Qbottom): Declare.
118
119 * frame.c (Qtool_bar_position): New variable.
120 (make_frame): Set tool_bar_position to Qtop.
121 (frame_parms): Add tool-bar-position.
122 (x_report_frame_params): Store tool_bar_position.
123 (x_set_fringe_width): Reset wm size hint after fringe changes.
124
26469a38
DN
1252010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
126
127 Make lisp_time_argument declaration work on all systems.
128 * lisp.h (lisp_time_argument): Move declaration ...
129 * systime.h (lisp_time_argument): ... here
130 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
131
8848b728
JD
1322010-07-29 Jan Djärv <jan.h.d@swipnet.se>
133
134 * vm-limit.c (POINTER): Add typedef for it.
135 (start_of_data): Change return type from POINTER to char *.
136
137 * frame.h (Qtty_color_mode): Move declaration out of ifdef
138 HAVE_WINDOW_SYSTEM.
139
76fd1ee9
DN
1402010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
141
0441987e
DN
142 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
143 Remove reference to __osf__, unused.
144
56a000c7
DN
145 * mem-limits.h: Remove duplicated includes.
146 (NULL): Remove definition, unused.
147 (POINTER): Remove definition.
148 (start_of_data): Use char* in prototype, as the function
149 definition does.
150
e6cba650
DN
151 Remove extern declarations from .c files, and them to .h files.
152 * keyboard.h (Qhelp_echo, waiting_for_input)
153 (input_available_clear_time, ignore_mouse_drag_p)
154 (Vdouble_click_time, real_this_command, Vthis_original_command):
155 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
156 (Voverriding_local_map_menu_flag):
157 * lisp.h (Qinteractive_form, use_file_dialog)
158 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
159 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
160 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
161 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
162 (Qfunction, debug_on_next_call, Qfield)
163 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
164 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
165 (Qfile_directory_p, Qinsert_file_contents)
166 (Qcompletion_ignore_case, Qcompletion_ignore_case)
167 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
168 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
169 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
170 (Qminibuffer_prompt)
171 (Vtemporary_file_directory,char_ins_del_vector, Qface):
172 * xterm.h (gray_bitmap_width, gray_bitmap_height)
173 (gray_bitmap_bits, xic_create_fontsetname):
174 * coding.h (Vtranslation_table_for_input): Add extern declarations.
175
176 * xsmfns.c (Vuser_login_name):
177 * xrdb.c (Vdouble_click_time):
178 * xfaces.c (xic_create_fontsetname):
179 * w32select.c (waiting_for_input):
180 * print.c (minibuffer_auto_raise):
181 * msdos.c (Qhelp_echo):
182 * macros.c (real_this_command):
183 * keymap.c (Voverriding_local_map):
184 * xterm.c (poll_for_input_1, gray_bitmap_width)
185 (gray_bitmap_height, gray_bitmap_bits;
186 * xmenu.c ( Voverriding_local_map)
187 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
188 (use_file_dialog, Xt_app_con):
189 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
190 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
191 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
192 (Qtool_bar_lines, ignore_mouse_drag_p):
193 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
194 (Qrear_nonsticky, nconc2):
195 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
196 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
197 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
198 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
199 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
200 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
201 (gc_in_progress):
202 * doc.c (Voverriding_local_map, Qremap):
203 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
204 (Vcompletion_regexp_list):
205 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
206 (Qcompletion_ignore_case):
207 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
208 (Vhistory_length, Vthis_original_command, real_this_command)
209 (Qface, Qminibuffer_prompt, history_delete_duplicates):
210 * image.c (Qrisky_local_variable):
211 * fontset.c (QCname):
212 * fns.c (minibuffer_auto_raise, QCname):
213 * dispnew.c (char_ins_del_cost):
214 * composite.c (font_fill_lglyph_metrics):
215 * cmds.c (Qface, Vtranslation_table_for_input):
216 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
217 * ccl.c (charset_unicode):
218 * callproc.c (Vtemporary_file_directory):
219 * buffer.c (emacs_strerror): Remove extern declarations.
220
221 * data.c (Qwindow): Make non-static, used from other files too.
222 * frame.c (validate_x_resource_name): Remove shadow definition for i.
223
76fd1ee9
DN
224 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
225 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
226 * s/usg5-4.h (COFF):
227 * s/template.h:
228 * s/msdos.h (COFF, NO_REMAP):
229 * s/ms-w32.h (NO_REMAP):
230 * s/hpux10-20.h (NO_REMAP):
231 * m/sparc.h (SEGMENT_MASK):
232 * m/m68k.h (NO_REMAP):
233 * m/intel386.h (SEGMENT_MASK):
234 * m/arm.h (NO_REMAP):
235 * m/alpha.h (COFF):
236 * m/template.h: Remove references to unused defines.
237
8a52f00a
JD
2382010-07-28 Jan Djärv <jan.h.d@swipnet.se>
239
240 * xsettings.c (Ftool_bar_get_system_style): Also check for
241 Qtext_image_horiz.
242
243 * xdisp.c (Qtext_image_horiz): Define.
244 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 245 to documentation of tool-bar-style.
8a52f00a
JD
246
247 * lisp.h (Qtext_image_horiz): Declare.
248
249 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
250 style text_image_horiz.
251
89dc303e
DN
2522010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
253
60799703
DN
254 * emacs.c (Fkill_emacs): Remove return statement.
255
37254dc1
DN
256 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
257 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
258 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
259 local extern declarations.
260
71c7345a
DN
261 * xmenu.c: Do not included lwlib.h, not needed.
262
6ba577cb
DN
263 * m/iris4d.h (XUINT, XSET): Remove, not needed.
264
fdb183d6
DN
265 * process.c: Move definitions earlier to minimize #ifdefs.
266
267 * xterm.h (x_get_customization_string, x_load_resources)
268 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
269 (x_check_errors, x_property_data_to_lisp, defined_color)
270 (xic_set_xfontset, x_defined_color): Use const.
271
272 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
273 (x_text_icon, x_check_errors, x_connection_closed): Use const.
274
275 * xselect.c (selection_data_to_lisp_data)
276 (x_property_data_to_lisp):
277 * xrdb.c (x_get_string_resource, file_p)
278 (x_get_customization_string, magic_file_p, search_magic_path)
279 (get_system_app, get_user_app, x_load_resources, x_get_resource)
280 (x_get_string_resource): Use const.
281
282 * xfns.c: Include xlwmenu.h when USE_LUCID.
283 (x_defined_color, xic_set_xfontset): Use const.
284 (Fx_hide_tip): Remove local extern declaration.
285
286 * xfaces.c (Qmouse_face): Remove declaration.
287 (face_color_gray_p, tty_defined_color, defined_color)
288 (face_color_gray_p, face_color_supported_p). Add const.
289
290 * xdisp.c (do_mouse_tracking): Remove declaration.
291 (add_to_log): Use const.
292
293 * minibuf.c (Qmouse_face): Remove declaration.
294
295 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
296
297 * keyboard.h (do_mouse_tracking): Add declaration.
298
299 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
300 (QCdata, QCtype, Qcenter): Remove declarations.
301
302 * frame.c (x_get_resource_string, x_get_string_resource)
303 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
304 (x_default_parameter): Use const.
305
306 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
307 (QCheight, QCsize, QCname): Remove declarations.
308
309 * emacs.c (main): Remove local extern declaration.
310
311 * editfns.c (region_limit, syms_of_editfns): Remove local extern
312 declarations.
313
314 * dispnew.c: Remove duplicate #include <unistd.h>.
315 (update_window, update_frame_1, init_display): Remove local extern
316 declarations.
317
318 * dispextern.h (add_to_log): Remove declaration.
319 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
320 (x_frame_get_and_record_arg, x_default_parameter): Add const.
321
322 * dired.c (scmp): Add const.
323 (directory_files_internal): Remove local extern declaration.
324
325 * data.c (Finteractive_form): Use const.
326
327 * composite.c (syms_of_composite): Remove local extern declarations.
328
329 * charset.c (add_to_log): Remove declaration.
330
331 * character.c (strwidth, parse_str_to_multibyte): Add const.
332
333 * character.h (strwidth, parse_str_to_multibyte): Likewise.
334
335 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
336
89dc303e 337 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
338 (Lisp_Subr): Make doc and intspec constant.
339 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
340 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
341 (QCheight, QCsize, QCname, QCwidth, QCforeground)
342 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
343 (display_arg): Add declarations.
89dc303e 344
0ed082fe 3452010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
346
347 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
348
0ed082fe
JB
349 * window.c (Fwindow_height): Doc fix (bug#6518).
350
3512010-07-27 Juanma Barranquero <lekktu@gmail.com>
352
353 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
354
ccaf0336
DN
3552010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
356
977105dc
DN
357 * keyboard.c (Ftop_level, Fexit_recursive_edit)
358 (Fabort_recursive_edit): Remove return statements in NO_RETURN
359 functions.
360
f5ada890
DN
361 * frame.h (Qtty_color_mode): Add declaration.
362
ccaf0336
DN
363 * lisp.h (Ftop_level, Fexit_recursive_edit)
364 (Fabort_recursive_edit): Mark as NO_RETURN.
365
dfe3c90f
KH
3662010-07-26 Kenichi Handa <handa@m17n.org>
367
368 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 369 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 370
7d383292
JB
3712010-07-26 Juanma Barranquero <lekktu@gmail.com>
372
373 * lread.c (unreadpure, mapatoms_1): Make static.
374
da31e629
JB
3752010-07-25 Juanma Barranquero <lekktu@gmail.com>
376
377 * terminfo.c (tparam): Fix prototype of tparm.
378
7bfa6d77
AS
3792010-07-25 Andreas Schwab <schwab@linux-m68k.org>
380
dcc19aac
AS
381 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
382 find start of text segment.
383 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
384 is defined.
385
7bfa6d77
AS
386 * callproc.c (set_initial_environment): Avoid unbalanced braces.
387
63f9a672
KB
3882010-07-25 Ken Brown <kbrown@cornell.edu>
389
390 * vm-limit.c (check_memory_limits): Fix previous change;
391 accidentally reverted an earlier change.
392
24933075
KB
3932010-07-25 Ken Brown <kbrown@cornell.edu>
394
395 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
396 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
397
361358ea
JB
3982010-07-25 Juanma Barranquero <lekktu@gmail.com>
399
400 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
401 * dired.c (opendir, readdir): Fix prototypes.
402 * editfns.c (w32_get_internal_run_time): Fix prototypes.
403 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
404 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
405 (telldir): Remove declaration.
406 * ralloc.c (real_morecore, __morecore): Fix prototypes.
407 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
408 * syssignal.h (strsignal): Fix prototype.
409 * term.c (tparam): Fix prototype.
410 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
411 (term_get_fkeys): Set inside "#ifndef DOS_NT".
412 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
413 and __morecore.
414 * w32gui.h (XParseGeometry): Fix prototype.
415 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
416 * w32term.c (my_set_focus): Declare inside #if 0.
417 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
418 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
419 (drain_message_queue, get_next_msg, post_msg, parse_button)
420 (ClipboardSequence_Proc): Fix prototypes.
421 (wait_for_sync): Remove declaration.
422
630b9592
JB
4232010-07-24 Juanma Barranquero <lekktu@gmail.com>
424
425 * w32fns.c (w32_to_x_color): Remove, unused.
426
6a0d6611
AS
4272010-07-24 Andreas Schwab <schwab@linux-m68k.org>
428
429 * lisp.h: Remove leftover P_.
430
4e8608ff
DN
4312010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
432
433 * ecrt0.c, unexalpha.c: Remove files, unused.
434
c8197983
AS
4352010-07-24 Andreas Schwab <schwab@linux-m68k.org>
436
437 * cmds.c (internal_self_insert): Make static.
438 * lisp.h (internal_self_insert): Remove declaration.
439
97b372d7
JB
4402010-07-23 Juanma Barranquero <lekktu@gmail.com>
441
33ac0414
JB
442 * alloc.c (free_float):
443 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
444 * frame.c (delete_frame_handler):
445 * ralloc.c (reorder_bloc):
446 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
447 Remove unused static functions.
448
94da8397
JB
449 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
450 it is called only from NS code.
451
2e6c8532
JB
452 * w32term.c (my_set_focus): #ifdef away; it is called only from
453 "#ifdef 0" code.
454
97b372d7
JB
455 * w32fns.c (x_edge_detection):
456 * xfaces.c (may_use_scalable_font_p):
457 Remove obsolete static declarations.
458
7c3320d8
JB
4592010-07-20 Juanma Barranquero <lekktu@gmail.com>
460
461 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
462 (emacs_blocked_realloc, uninterrupt_malloc):
463 * fringe.c (w32_reset_fringes):
464 * image.c (convert_mono_to_color_image, lookup_rgb_color)
465 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
466 * sound.c (be2hs, do_play_sound):
467 * vm-limit.c (get_lim_data, ret_lim_data):
468 * w32term.c (x_free_frame_resources):
469 * xfaces.c (x_create_gc, x_free_gc):
470 Convert definitions to standard C.
471
d5273788
SM
4722010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
473
474 * eval.c (Feval, Ffuncall): Use the new names.
475
476 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
477 (DEFUN): Add braces around the union initialisation and use ## to
478 specify the right union alternative and avoid a cast.
479
8d16a259
JB
4802010-07-18 Juanma Barranquero <lekktu@gmail.com>
481
482 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
483
3b8eff32
CY
4842010-07-17 Chong Yidong <cyd@stupidchicken.com>
485
486 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
487
499322ce
J
4882010-07-17 Jan Djärv <jan.h.d@swipnet.se>
489
490 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
491 is related to the menu bar (Bug#6499).
a628ad9d 492 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 493
f6003da5 4942010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
495
496 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
497
498 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
499
500 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
501 i.e. don't put back ButtonRelease (Bug#6608).
502
503 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
504 instead of Window. Call xg_event_is_for_menubar when
505 USE_GTK (Bug#6499).
506
507 * gtkutil.h (xg_event_is_for_menubar): Declare.
508
509 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
510
f6003da5 5112010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
512
513 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
514 when it's the same as the old foreground. (Bug#6609)
515
23243f29
J
5162010-07-16 Jan Djärv <jan.h.d@swipnet.se>
517
518 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
519 widget is non-null (Bug#6645).
520
2b23d2a6
AS
5212010-07-15 Andreas Schwab <schwab@linux-m68k.org>
522
01b564ff
AS
523 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
524 Convert old-style definition.
525
2b23d2a6
AS
526 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
527 timestamp argument.
528
c4affd2c
EZ
5292010-07-15 Eli Zaretskii <eliz@gnu.org>
530
531 * fringe.c (update_window_fringes): Restore mistakenly reverted
532 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
533
cf28cebc
J
5342010-07-14 Jan Djärv <jan.h.d@swipnet.se>
535
536 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
537 (SET_SAVED_KEY_EVENT): Remove (not used).
538 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
539 remove size parameter.
540 (handle_one_xevent): Check popup_activated () for menu for Xt also.
541 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
542 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
543 ButtonRelease.
6b2c4bd9
J
544 (x_set_window_size_1): scroll_bar_actual_width is always
545 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
546
547 * xdisp.c (pending_menu_activation): Remove extern declaration.
548 (prepare_menu_bars): Remove setting of pending_menu_activation.
549
550 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
551 (x_activate_menubar): Set popup_activated_flag for Xt also.
552 Remove setting of pending_menu_activation.
cf28cebc
J
553 (set_frame_menubar): Remove check of pending_menu_activation.
554 Declare menubar_size before code. Correct spelling in comment.
555
f6c1c771
KH
5562010-07-14 Kenichi Handa <handa@m17n.org>
557
558 * font.c (font_open_entity): Cancel previous change.
559 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
560
20477505
EZ
5612010-07-13 Eli Zaretskii <eliz@gnu.org>
562
77defa9a
EZ
563 Remove subprocesses #ifdefs.
564 * process.c <inhibit_sentinels>: Move to the common part.
565 (Fwaiting_for_user_input_p): Move to the common part; return nil
566 if async subprocesses aren't supported.
567 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
568 MS-DOS. Remove "#ifdef subprocesses".
569 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
570 (gettimeofday): Remove "#ifdef subprocesses".
571 (wait_without_blocking): Remove function.
572 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
573 Remove "#ifdef subprocesses".
574 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
575 compiled on MS-DOS.
576 * callproc.c (Fcall_process) [!MSDOS]: Don't call
577 wait_for_termination on MS-DOS.
578 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
579 initialization of inhibit_sentinels.
580 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
581 subprocesses" conditional.
582 * callproc.c (Fcall_process) [!subprocesses]: Don't call
583 wait_for_termination, since `buffer' cannot be an integer when
584 async subprocesses are not supported
585 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
586 for ifdefing away the call to Fprocess_status.
587
20477505
EZ
588 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
589 away the entire body of the function.
590
b3ffc17c
DN
5912010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
592
01faa934
DN
593 Remove subprocesses #ifdefs from term.c.
594 * process.c (add_keyboard_wait_descriptor)
595 (delete_keyboard_wait_descriptor): Move to common section, do
596 nothing when subprocesses is not defined.
a628ad9d
JB
597 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
598 Remove subprocesses #ifdefs.
01faa934 599
b3ffc17c
DN
600 Convert maybe_fatal to standard C.
601 * lisp.h (verror): Declare.
602 * eval.c (verror): New function containing the code from ...
603 (error): ... this. Call verror.
604 * term.c (vfatal): New function containing the code from ...
605 (fatal): ... this. Call vfatal.
606 (maybe_fatal): Convert to standard C, use variable number of
607 arguments. Declare as non-return.
608 (init_tty): Fix maybe_fatal call.
609
0521f580
DN
6102010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
611
612 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
613 (_scroll_bar_note_movement): Convert definitions to standard C.
614 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
615 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
616
ebd15611
DN
6172010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
618
619 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
620 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
621 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
622 (xaw_jump_callback, xaw_scroll_callback)
623 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
624 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
625 definitions to standard C.
626 * xmenu.c (menubar_id_to_frame, popup_get_selection)
627 (popup_activate_callback, popup_deactivate_callback)
628 (menu_highlight_callback, menubar_selection_callback)
629 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
630 (free_frame_menubar, popup_selection_callback, as)
631 (create_and_show_popup_menu, dialog_selection_callback)
632 (create_and_show_dialog):
633 * xfns.c (hack_wm_protocols, x_window):
634 * xfaces.c (x_update_menu_appearance):
635 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
636 (char_to_pixel_size, round_size_to_char, get_wm_shell)
637 (set_frame_size, update_wm_hints, setup_frame_gcs)
638 (update_various_frame_slots, update_from_various_frame_slots)
639 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
640 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
641 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
642
de06a2dd
AS
6432010-07-12 Andreas Schwab <schwab@linux-m68k.org>
644
a628ad9d 645 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 646
fc549af9
EZ
6472010-07-12 Eli Zaretskii <eliz@gnu.org>
648
649 * process.c (setup_process_coding_systems): Move to the part
650 shared by non-subprocesses systems, and make its body empty when
651 subprocesses is not defined.
652 (close_process_descs): Move to the part shared by non-subprocesses
653 systems.
1408902e
EZ
654 (wait_reading_process_output) [!subprocesses]: Convert arg list to
655 ANSI C.
fc549af9 656
d5a3eaaf
AS
6572010-07-12 Andreas Schwab <schwab@linux-m68k.org>
658
659 * editfns.c (transpose_markers): Convert old-style definition.
660 * emacs.c (abort, shut_down_emacs, fixup_locale)
661 (synchronize_system_time_locale)
662 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
663 * floatfns.c (extract_float, matherr, init_floatfns)
664 (syms_of_floatfns): Likewise.
665 * fns.c (make_hash_table): Likewise.
666 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
667 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
668 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
669 (ftfont_variation_glyphs): Likewise.
670 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
671 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
672 * lread.c (read_filtered_event): Likewise.
673 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
674 * process.c (wait_reading_process_output): Likewise.
675 * scroll.c (do_line_insertion_deletion_costs): Likewise.
676 * search.c (search_buffer, boyer_moore): Likewise.
677 * syntax.c (scan_sexps_forward): Likewise.
678 * xdisp.c (try_scrolling): Likewise.
679 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
680 (face_at_string_position): Likewise.
681 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
682 * xselect.c (x_get_window_property, receive_incremental_selection)
683 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
684 Likewise.
685 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
686
6f704c76
DN
6872010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
688
ded80a25
DN
689 * callproc.c (child_setup): Remove subprocesses conditional.
690 Remove code dealing with SET_EMACS_PRIORITY, unused.
691
49d937f4 692 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
693 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
694
695 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
696 (__do_global_dtors, __main): Use void in definition.
697 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
698 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
699 the only users from ...
700 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
701 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
702 (HAVE_VOLATILE): Remove, unused.
703
6f704c76
DN
704 Convert more function definitions to standard C.
705 * xdisp.c (window_box_edges, handle_single_display_spec)
706 (display_string): Convert definition to standard C.
707 * scroll.c (do_direct_scrolling, scrolling_1):
708 * dispnew.c (allocate_matrices_for_frame_redisplay)
709 (mirrored_line_dance):
710 * coding.c (code_convert_string):
711 * charset.c (map_charset_chars):
712 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
713 (Fregister_ccl_program, Fregister_code_conversion_map):
714 * keyboard.c (kbd_buffer_nr_stored): Likewise.
715 (head_table): Make static and const.
716
e6cfa7c3
AS
7172010-07-12 Andreas Schwab <schwab@linux-m68k.org>
718
719 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
720 (PROFILING_LDFLAGS): Set from substitution.
721 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
722 CFLAGS last.
723
892dd565
KH
7242010-07-12 Kenichi Handa <handa@m17n.org>
725
6f2cdcd1
KH
726 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
727 (shortlisp): Likewise.
728
892dd565
KH
729 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
730
731 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
732 of FONT_ENTITY_INDEX.
733 (Ffont_get): If KEY is :otf and the font-object doesn't have the
734 property, get the property value dynamically.
735 (Ffont_put): Accept font-entity and font-object too.
736 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
737 return value changed.
738 (syms_of_font): Adjusted for the above change.
739
ae96d47a
AS
7402010-07-11 Andreas Schwab <schwab@linux-m68k.org>
741
c8fc18ee
AS
742 * blockinput.h: Remove obsolete comment.
743
89887d67
AS
744 * lisp.h: Include <stddef.h>.
745 (OFFSETOF): Don't define.
746 (VECSIZE): Use offsetof instead of OFFSETOF.
747 (PSEUDOVECSIZE): Likewise.
748 * process.c (conv_sockaddr_to_lisp): Likewise.
749 * alloc.c: Don't include <stddef.h>.
750 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
751
ae96d47a
AS
752 * process.c: Remove obsolete comment.
753
635c0aa1
CY
7542010-07-11 Chong Yidong <cyd@stupidchicken.com>
755
756 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
757
a64df650
AS
7582010-07-11 Andreas Schwab <schwab@linux-m68k.org>
759
8966b757
AS
760 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
761 index, rindex.
762 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
763 * editfns.c (Fuser_full_name, Fformat): Likewise.
764 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
765 * fileio.c (Ffile_symlink_p): Likewise.
766 * filelock.c (current_lock_owner): Likewise.
767 * font.c (font_parse_name, font_parse_family_registry): Likewise.
768 * fontset.c (fontset_pattern_regexp): Likewise.
769 * lread.c (read1): Likewise.
770 * sysdep.c (init_system_name): Likewise.
771 * xfns.c (select_visual): Likewise.
772 * s/hpux10-20.h (index, rindex): Don't define.
773 * s/ms-w32.h (index): Likewise.
774 * s/usg5-4.h: Likewise.
775
cf237e27
AS
776 * callproc.c (relocate_fd): Use F_DUPFD if defined.
777
a8fe7202
AS
778 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
779 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
780 (egetenv): Likewise.
781 * doprnt.c (doprnt): Likewise.
782 * editfns.c (set_time_zone_rule, format2): Likewise.
783 * emacs.c (decode_env_path): Likewise.
784 * eval.c (signal_error, error): Likewise.
785 * insdel.c (replace_range_2): Likewise.
786 * keyboard.c (cmd_error_internal): Likewise.
787 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
788 * print.c (write_string, write_string_1, print_error_message):
789 Likewise.
790 * vm-limit.c (warn_function, memory_warnings): Likewise.
791 * xdisp.c (message1, message1_nolog, message_with_string)
792 (vmessage, message, message_nolog): Likewise.
793 * emacs.c: Remove duplicate declaration.
794 * keyboard.h: Likewise.
795 * lisp.h: Update prototypes.
796
bb8e180f
AS
797 * eval.c: Fix indentation problem.
798
83380e65
AS
799 * keyboard.c: Include "process.h"
800
a64df650
AS
801 * eval.c: Remove obsolete noinline declaration.
802 * fns.c: Likewise.
803
6a8033e1
KR
8042010-07-11 Ken Raeburn <raeburn@raeburn.org>
805
806 * doprnt.c (doprnt): Take a va_list argument instead of count and
807 pointer.
808 * eval.c (error): Change to a standard-C variadic function.
809 * xdisp.c (vmessage): Renamed from message, made static, and
810 changed to take a va_list argument.
811 (message): New variadic wrapper.
812 (message_nolog): Now a variadic function, calling vmessage.
813 * lisp.h: Include stdarg.h for va_list.
814 (doprnt, error, message, message_nolog): Decls updated.
815
462aa963
EZ
8162010-07-11 Eli Zaretskii <eliz@gnu.org>
817
818 * process.c (syms_of_process) <delete-exited-processes>: Define
819 even if !subprocesses.
820 (delete_exited_processes): Ditto.
821
822 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
823 (delete_exited_processes): Don't define.
824
48104462
CY
8252010-07-10 Chong Yidong <cyd@stupidchicken.com>
826
827 * frame.c (make_frame): Initialize menu_bar_lines and
828 tool_bar_lines members.
829 (make_initial_frame, make_terminal_frame): Initialize
830 menu_bar_lines using value of menu-bar-mode.
831
832 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
833
f388c88a
EZ
8342010-07-10 Eli Zaretskii <eliz@gnu.org>
835
836 * process.c: Reshuffle #include's. Condition some of the global
837 and static variables on `subprocesses'.
838 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
839 Leave only one implementation.
840 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
841 (kill_buffer_processes, Flist_system_processes)
842 (Fprocess_attributes, init_process, syms_of_process): Unify the
843 implementations for with subprocesses and without them.
844
723f5a07
J
8452010-07-09 Jan Djärv <jan.h.d@swipnet.se>
846
847 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
848 correct size for Motif.
849 (free_frame_menubar): Call x_set_window_size to update frame size.
850
851 * xfns.c (x_window): Set borderWidth to 0 for pane and
852 EmacsFrame. Frame size calculation is wrong otherwise.
853
2536a4b7
MA
8542010-07-09 Michael Albinus <michael.albinus@gmx.de>
855
856 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
857 allows to suppress errors when polling in Emacs' main loop.
858 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
859 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
860 (Fdbus_method_error_internal, Fdbus_send_signal)
861 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
862 (Fdbus_register_method): Use it. (Bug#6579)
863
5842a27b
DN
8642010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
865
866 * alloc.c: Convert DEFUNs to standard C.
867 * buffer.c:
868 * bytecode.c:
869 * callint.c:
870 * callproc.c:
871 * casefiddle.c:
872 * casetab.c:
873 * category.c:
874 * character.c:
875 * charset.c:
876 * chartab.c:
877 * cmds.c:
878 * coding.c:
879 * composite.c:
880 * data.c:
881 * dbusbind.c:
882 * dired.c:
883 * dispnew.c:
884 * doc.c:
885 * dosfns.c:
886 * editfns.c:
887 * emacs.c:
888 * eval.c:
889 * fileio.c:
890 * filelock.c:
891 * floatfns.c:
892 * fns.c:
893 * font.c:
894 * fontset.c:
895 * frame.c:
896 * fringe.c:
897 * image.c:
898 * indent.c:
899 * insdel.c:
900 * keyboard.c:
901 * keymap.c:
902 * lread.c:
903 * macros.c:
904 * marker.c:
905 * menu.c:
906 * minibuf.c:
907 * msdos.c:
908 * nsfns.m:
909 * nsmenu.m:
910 * nsselect.m:
911 * print.c:
912 * process.c:
913 * search.c:
914 * sound.c:
915 * syntax.c:
916 * term.c:
917 * terminal.c:
918 * textprop.c:
919 * undo.c:
920 * w16select.c:
921 * w32console.c:
922 * w32fns.c:
923 * w32font.c:
924 * w32menu.c:
925 * w32proc.c:
926 * w32select.c:
927 * window.c:
928 * xdisp.c:
929 * xfaces.c:
930 * xfns.c:
931 * xmenu.c:
932 * xselect.c:
933 * xsettings.c:
934 * xsmfns.c: Likewise.
935
d568829b
EZ
9362010-07-08 Eli Zaretskii <eliz@gnu.org>
937
938 * process.c (kbd_is_on_hold, hold_keyboard_input)
939 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
940
52214050
J
9412010-07-08 Jan Djärv <jan.h.d@swipnet.se>
942
943 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
944 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
945 unless USE_LUCID.
946
313d9eb2
DN
9472010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
948
a628ad9d
JB
949 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
950 declaration.
d8825aa3 951
295d0d8f
DN
952 Clean up include guards.
953 * tparam.c: Remove include guards for config.h, string.h and code
954 that assumes #ifndef emacs.
955 * termcap.c:
956 * unexalpha.c:
957 * sysdep.c:
958 * filemode.c:
959 * filelock.c:
960 * bidi.c: Likewise.
961
49d9e6b0
DN
962 Remove prefix-args.c
963 * prefix-args.c: Remove file.
964 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
965 * Makefile.in (temacs${EXEEXT}): Remove references to
966 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
967 (mostlyclean): Remove reference to prefix-args.
968 (prefix-args): Remove.
969
313d9eb2
DN
970 Simplify cstart_of_data, start_of_code and related code.
971 * mem-limits.h: Remove !emacs and _LIBC conditional code.
972 (start_of_data): Merge into start_of_data function.
973 * sysdep.c (start_of_text): Remove. Move simplified versions of
974 it in the only users: unexaix.c and unexec.c.
975 (read_input_waiting): Remove local declaration of quit_char.
976 (start, etext): Remove declarations.
977 (start_of_data): Merge with the version in mem-limits.h and move
978 to vm-limits.c.
979 * vm-limit.c (start_of_data): Merged and simplified version of the
980 code formerly in mem-limits.h and sysdep.c.
981 * unexec.c (start): New declaration, moved from sysdep.c.
982 (start_of_text): Simplified version of the code formerly in sysdep.c.
983 * unexaix.c (start_of_text): Simplified version of the code
984 formerly in sysdep.c.
985 * m/alpha.h (HAVE_TEXT_START): Remove.
986 (TEXT_START): Move ...
987 * unexalpha.c (TEXT_START): ... here.
988 * s/hpux10-20.h (TEXT_START): Remove.
989 * s/darwin.h (TEXT_START):
990 * m/mips.h (TEXT_START):
991 * m/macppc.h (HAVE_TEXT_START):
992 * m/m68k.h (TEXT_START):
993 * m/iris4d.h (TEXT_START):
994 * m/intel386.h (TEXT_START):
995 * m/ibmrs6000.h (TEXT_START):
996 * m/ia64.h (HAVE_TEXT_START):
997 * s/msdos.h (TEXT_START): Likewise.
998
72af86bd
AS
9992010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1000
1001 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1002 (overrun_check_free, xstrdup, allocate_string)
1003 (allocate_string_data, compact_small_strings, Fmake_string)
1004 (make_unibyte_string, make_multibyte_string)
1005 (make_string_from_bytes, make_specified_string, make_float)
1006 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1007 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1008 memcpy, memmove, memset, memcmp.
1009 * atimer.c (start_atimer, set_alarm): Likewise.
1010 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1011 (mmap_realloc, init_buffer_once): Likewise.
1012 * callint.c (Fcall_interactively): Likewise.
1013 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1014 (getenv_internal_1): Likewise.
1015 * casefiddle.c (casify_object): Likewise.
1016 * ccl.c (ccl_driver): Likewise.
1017 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1018 * charset.c (load_charset_map_from_file)
1019 (load_charset_map_from_file, load_charset_map_from_vector)
1020 (Fdefine_charset_internal): Likewise.
1021 * cm.c (Wcm_clear): Likewise.
1022 * coding.c (decode_eol, decode_coding_object)
1023 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1024 * data.c (Faset): Likewise.
1025 * dired.c (directory_files_internal, file_name_completion_stat):
1026 Likewise.
1027 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1028 (clear_glyph_row, copy_row_except_pointers)
1029 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1030 (save_current_matrix, restore_current_matrix)
1031 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1032 (mirror_line_dance, scrolling_window): Likewise.
1033 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1034 Likewise.
1035 * doprnt.c (doprnt): Likewise.
1036 * editfns.c (Fuser_full_name, make_buffer_string_both)
1037 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1038 * emacs.c (sort_args): Likewise.
1039 * eval.c (Fapply, Ffuncall): Likewise.
1040 * fileio.c (Ffile_name_directory, make_temp_name)
1041 (Fexpand_file_name, search_embedded_absfilename)
1042 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1043 (auto_save_error): Likewise.
1044 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1045 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1046 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1047 (Fmake_hash_table): Likewise.
1048 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1049 * ftfont.c (ftfont_text_extents): Likewise.
1050 * getloadavg.c (getloadavg): Likewise.
1051 * image.c (define_image_type, make_image, make_image_cache)
1052 (x_create_x_image_and_pixmap, xbm_image_p)
1053 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1054 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1055 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1056 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1057 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1058 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1059 Likewise.
1060 * indent.c (scan_for_column, compute_motion): Likewise.
1061 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1062 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1063 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1064 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1065 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1066 (store_user_signal_events, menu_bar_items, tool_bar_items)
1067 (process_tool_bar_item, append_tool_bar_item)
1068 (read_char_minibuf_menu_prompt, read_key_sequence)
1069 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1070 Likewise.
1071 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1072 Likewise.
1073 * lisp.h (STRING_COPYIN): Likewise.
1074 * lread.c (Fload, read1, oblookup): Likewise.
1075 * msdos.c (Frecent_doskeys): Likewise.
1076 * nsfns.m (Fx_create_frame): Likewise.
1077 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1078 Likewise.
1079 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1080 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1081 Likewise.
1082 * nsmenu.m (ns_update_menubar): Likewise.
1083 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1084 * print.c (print_unwind, printchar, strout, print_string)
1085 (print_error_message): Likewise.
1086 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1087 (Fmake_network_process, Fnetwork_interface_list)
1088 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1089 (init_process): Likewise.
1090 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1091 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1092 Likewise.
1093 * scroll.c (do_scrolling, do_direct_scrolling)
1094 (scrolling_max_lines_saved): Likewise.
1095 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1096 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1097 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1098 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1099 (emacs_set_tty): Likewise.
1100 * term.c (encode_terminal_code, calculate_costs)
1101 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1102 Likewise.
1103 * termcap.c (tgetst1, gobble_line): Likewise.
1104 * termhooks.h (EVENT_INIT): Likewise.
1105 * tparam.c (tparam1): Likewise.
1106 * unexalpha.c (unexec): Likewise.
1107 * unexec.c (write_segment): Likewise.
1108 * unexmacosx.c (unexec_write_zero): Likewise.
1109 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1110 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1111 * w32font.c (w32font_list_family, w32font_text_extents)
1112 (w32font_list_internal, w32font_match_internal)
1113 (w32font_open_internal, compute_metrics, Fx_select_font):
1114 Likewise.
1115 * w32menu.c (set_frame_menubar, add_menu_item)
1116 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1117 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1118 * w32uniscribe.c (uniscribe_list_family): Likewise.
1119 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1120 * window.c (make_window, replace_window, set_window_buffer)
1121 (Fsplit_window): Likewise.
1122 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1123 (add_to_log, message3, x_consider_frame_title)
1124 (append_space_for_newline, extend_face_to_end_of_line)
1125 (decode_mode_spec_coding, init_glyph_string): Likewise.
1126 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1127 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1128 (face_attr_equal_p, make_realized_face, make_face_cache)
1129 (free_realized_faces, lookup_named_face, smaller_face)
1130 (face_with_height, lookup_derived_face)
1131 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1132 (Finternal_set_font_selection_order, realize_default_face)
1133 (compute_char_face, face_at_buffer_position)
1134 (face_for_overlay_string, face_at_string_position, merge_faces):
1135 Likewise.
1136 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1137 (Fx_window_property, x_create_tip_frame)
1138 (Fx_backspace_delete_keys_p): Likewise.
1139 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1140 (xfont_text_extents): Likewise.
1141 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1142 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1143 * xselect.c (x_queue_event, x_get_window_property)
1144 (receive_incremental_selection): Likewise.
1145 * xsmfns.c (x_session_check_input): Likewise.
1146 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1147 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1148 Likewise.
1149 * character.h (BCOPY_SHORT): Removed.
1150 * config.in: Regenerate.
1151 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1152 * emacs.c (main) [PROFILING]: Don't declare
1153 dump_opcode_frequencies.
1154 * lisp.h (safe_bcopy): Remove declaration.
1155 (memset) [!HAVE_MEMSET]: Declare.
1156 (memcpy) [!HAVE_MEMCPY]: Likewise.
1157 (memmove) [!HAVE_MEMMOVE]: Likewise.
1158 (memcmp) [!HAVE_MEMCMP]: Likewise.
1159 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1160 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1161 Don't define.
1162 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1163 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1164 (BCOPY_DOWNWARD_SAFE): Don't define.
1165 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1166 (memcpy) [!HAVE_MEMCPY]: Define.
1167 (memmove) [!HAVE_MEMMOVE]: Define.
1168 (memcmp) [!HAVE_MEMCMP]: Define.
1169
cb768704
J
11702010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1171
1172 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1173 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1174 New functions.
cb768704
J
1175 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1176 select on empty input mask.
1177 (init_process): Initialize kbd_is_on_hold to 0.
1178
1179 * process.h (hold_keyboard_input, unhold_keyboard_input)
1180 (kbd_on_hold_p): Declare.
1181
1182 * keyboard.c (input_available_signal): Declare.
1183 (kbd_buffer_nr_stored): New function.
1184 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1185 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1186 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1187 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1188 (tty_read_avail_input): If input is on hold, return.
1189 Don't read more that free slots in kbd_buffer (Bug#6571).
1190
3a8ce822
EZ
11912010-07-07 Eli Zaretskii <eliz@gnu.org>
1192
1193 * msdos.h:
1194 * msdos.c:
1195 * dosfns.c:
1196 * w16select.c: Convert function definitions to ANSI C.
1197
a628ad9d
JB
1198 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1199 Remove unused prototypes.
3a8ce822 1200
cf84bb53
JB
12012010-07-07 Juanma Barranquero <lekktu@gmail.com>
1202
1203 * coding.c, sysdep.c: Convert some more functions to standard C.
1204
1a4990fb
JB
12052010-07-07 Juanma Barranquero <lekktu@gmail.com>
1206
1207 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1208 (encode_coding_object): Use SPECPDL_INDEX.
1209 (syms_of_coding): Use DOS_NT.
1210
c0f2f16b
DN
12112010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1212
48fb6855
DN
1213 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1214
c0f2f16b
DN
1215 Make the function member of Lisp_Subr use standard C prototypes.
1216 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1217 (DECL_ALIGN): Add a cast for the function.
1218 * eval.c (Feval, Ffuncall): Use the proper type for each type
1219 function call.
1220
67aecef9
CY
12212010-07-06 Chong Yidong <cyd@stupidchicken.com>
1222
1223 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1224 fringe face id, so face-remapping-alist works (Bug#6091).
1225
b56ceb92
JB
12262010-07-06 Juanma Barranquero <lekktu@gmail.com>
1227
1228 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1229 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1230 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1231
7af07b96
AS
12322010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1233
1234 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1235 * lisp.h: Declare x_get_keysym_name.
1236 * keyboard.c (modify_event_symbol): Don't declare
1237 x_get_keysym_name here.
1238
69e24e34
DN
12392010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1240
1241 * ecrt0.c: Revert conversion to standard C.
1242
d3da34e0 12432010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1244
1245 * vm-limit.c (memory_warnings):
1246 * keyboard.c (modify_event_symbol):
1247 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1248 (round2, emacs_rint):
1249 * process.c (send_process, old_sigpipe): Convert function
1250 definitions and declarations to standard C.
1251
12522010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1253
1254 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1255 * xdisp.c: Convert function definitions to standard C.
1256
1257 * cm.c (cmputc): Arg C is now int, not char.
1258 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1259
00be444c
J
12602010-07-05 James Cloos <cloos@jhcloos.com>
1261
1262 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1263
1264 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1265 _NET_WM_ICON_NAME atoms.
1266
1267 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1268 and _NET_WM_ICON_NAME properties, too, matching what is
1269 done in the Gtk+ case.
1270
e4c8d29a
J
12712010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1272
ff919460
J
1273 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1274
e4c8d29a
J
1275 * xsmfns.c (SSDATA): New macro.
1276 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1277 passed to strlen/strcpy/strcat.
1278 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1279 7:th arg to XChangeProperty to (unsigned char *)
1280
1281 * xsettings.c (something_changedCB, parse_settings)
1282 (apply_xft_settings): Reformat prototype.
1283 (something_changedCB, init_gconf): Remove unused variable i.
1284 (read_settings): Remove unused variable long_len.
1285
1286 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1287 (xg_get_image_for_pixmap, create_dialog)
1288 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1289 (menuitem_highlight_callback, make_menu_item)
1290 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1291 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1292 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1293 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1294 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1295 (xg_tool_bar_item_expose_callback): Reformat prototype.
1296 (xg_update_menubar): GList *group => GSList *group.
1297 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1298 before use.
1299 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1300 to GTK_IMAGE (wimage).
1301
dd4c5104
DN
13022010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1303
898b4c5c
DN
1304 * atimer.c: Use "" instead of <> for local includes for
1305 consistency with the rest of the code.
1306
dd4c5104
DN
1307 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1308 * xrdb.c (get_system_name):
1309 * window.c (shrink_windows):
1310 * syntax.c (forw_comment):
1311 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1312 (ins_del_costs):
1313 * mem-limits.h (start_of_data):
1314 * lread.c (readevalloop):
1315 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1316 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1317 * frame.c (x_get_focus_frame):
1318 * floatfns.c (fmod_float):
1319 * fileio.c (choose_write_coding_system):
1320 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1321 (malloc_initialize_hook, sort_args, synchronize_locale):
1322 * doprnt.c (doprnt):
1323 * dired.c (compile_pattern):
1324 * data.c (fmod_float):
1325 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1326 (map_char_table_for_charset):
1327 * charset.c (define_charset_internal):
1328 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1329 to standard C.
1330
9a39b306 13312010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1332 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1333
1334 * lread.c (read1): Fix up last change to not mess up `c'.
1335
e6cb2cbb
JB
13362010-07-04 Juanma Barranquero <lekktu@gmail.com>
1337
1338 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1339
438105ed
JB
13402010-07-04 Juanma Barranquero <lekktu@gmail.com>
1341
1342 Fix prototypes.
1343
e5447b22 1344 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1345 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1346 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1347 arg, as required by internal_condition_case_1.
dcc7404b 1348 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1349 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1350 (analyse_first): Fix "const const".
e5447b22 1351 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1352 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1353 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1354
971de7fb
DN
13552010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1356
1357 * alloc.c: Convert function definitions to standard C.
1358 * atimer.c:
1359 * bidi.c:
1360 * bytecode.c:
1361 * callint.c:
1362 * callproc.c:
1363 * casefiddle.c:
1364 * casetab.c:
1365 * category.c:
1366 * ccl.c:
1367 * character.c:
1368 * charset.c:
1369 * chartab.c:
1370 * cmds.c:
1371 * coding.c:
1372 * composite.c:
1373 * data.c:
1374 * dbusbind.c:
1375 * dired.c:
1376 * dispnew.c:
1377 * doc.c:
1378 * doprnt.c:
1379 * ecrt0.c:
1380 * editfns.c:
1381 * fileio.c:
1382 * filelock.c:
1383 * filemode.c:
1384 * fns.c:
1385 * font.c:
1386 * fontset.c:
1387 * frame.c:
1388 * fringe.c:
1389 * ftfont.c:
1390 * ftxfont.c:
1391 * gtkutil.c:
1392 * indent.c:
1393 * insdel.c:
1394 * intervals.c:
1395 * keymap.c:
1396 * lread.c:
1397 * macros.c:
1398 * marker.c:
1399 * md5.c:
1400 * menu.c:
1401 * minibuf.c:
1402 * prefix-args.c:
1403 * print.c:
1404 * ralloc.c:
1405 * regex.c:
1406 * region-cache.c:
1407 * scroll.c:
1408 * search.c:
1409 * sound.c:
1410 * strftime.c:
1411 * syntax.c:
1412 * sysdep.c:
1413 * termcap.c:
1414 * terminal.c:
1415 * terminfo.c:
1416 * textprop.c:
1417 * tparam.c:
1418 * undo.c:
1419 * unexelf.c:
1420 * window.c:
1421 * xfaces.c:
1422 * xfns.c:
1423 * xfont.c:
1424 * xftfont.c:
1425 * xgselect.c:
1426 * xmenu.c:
1427 * xrdb.c:
1428 * xselect.c:
1429 * xsettings.c:
1430 * xsmfns.c:
1431 * xterm.c: Likewise.
1432
ae492bec
EZ
14332010-07-03 Eli Zaretskii <eliz@gnu.org>
1434
76ea4cc9
EZ
1435 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1436 frames other than the initial one. Fix reversal of colors when
1437 `reverse' is specified in the frame parameters. Call
1438 update_face_from_frame_parameter instead of
1439 internal-set-lisp-face-attribute. Initialize screen colors from
1440 initial_screen_colors[] when f->default_face_done_p is zero,
1441 instead of depending on being called with default-frame-alist as
1442 the alist argument.
1443
1444 * xfaces.c (update_face_from_frame_parameter): Move out of
1445 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1446 with HAVE_WINDOW_SYSTEM.
1447
1e6255ae
EZ
1448 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1449 to menu-bar-mode, if not set in the frame parameters or in
1450 default-frame-alist.
1451
ae492bec
EZ
1452 * w32console.c (sys_tputs): Adjust argument list to prototype in
1453 term.c.
1454
3a35a84c
JB
14552010-07-03 Juanma Barranquero <lekktu@gmail.com>
1456
1457 * lisp.h (memory_warnings): Fix prototype.
1458
1459 * cm.h (evalcost): Fix prototype.
1460
1461 * cm.c (evalcost): Fix arg type.
1462
c532d349
DN
14632010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1464
1465 * term.c (term_clear_mouse_face, Fidentity):
1466 * syssignal.h (signal_handler_t):
1467 * lisp.h (memory_warnings):
1468 * coding.h (preferred_coding_system):
1469 * cm.h (evalcost):
1470 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1471
c0b36d46
EZ
14722010-07-02 Eli Zaretskii <eliz@gnu.org>
1473
1474 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1475 from prototypes.
1476
1477 * msdos.h (load_pixmap): Don't define away.
1478
383e0970
J
14792010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1480
f57e2426
J
1481 * lisp.h:
1482 * atimer.h: Remove define for P_.
1483
1484 * alloc.c: Remove __P and P_ from .c and .m files.
1485 * atimer.c:
1486 * buffer.c:
1487 * callint.c:
1488 * category.c:
1489 * charset.c:
1490 * chartab.c:
1491 * cm.c:
1492 * coding.c:
1493 * composite.c:
1494 * data.c:
1495 * dired.c:
1496 * dispnew.c:
1497 * doc.c:
1498 * editfns.c:
1499 * emacs.c:
1500 * eval.c:
1501 * fileio.c:
1502 * filelock.c:
1503 * fns.c:
1504 * font.c:
1505 * fontset.c:
1506 * frame.c:
1507 * ftfont.c:
1508 * ftxfont.c:
1509 * gmalloc.c:
1510 * gtkutil.c:
1511 * image.c:
1512 * indent.c:
1513 * intervals.c:
1514 * keyboard.c:
1515 * keymap.c:
1516 * lread.c:
1517 * marker.c:
1518 * menu.c:
1519 * minibuf.c:
1520 * print.c:
1521 * process.c:
1522 * scroll.c:
1523 * search.c:
1524 * sound.c:
1525 * strftime.c:
1526 * syntax.c:
1527 * sysdep.c:
1528 * term.c:
1529 * terminal.c:
1530 * textprop.c:
1531 * unexalpha.c:
1532 * w32console.c:
1533 * w32fns.c:
1534 * w32font.c:
1535 * w32menu.c:
1536 * w32term.c:
1537 * w32uniscribe.c:
1538 * window.c:
1539 * xdisp.c:
1540 * xfaces.c:
1541 * xfns.c:
1542 * xfont.c:
1543 * xftfont.c:
1544 * xmenu.c:
1545 * xselect.c:
1546 * xterm.c: Likewise.
1547
383e0970 1548 Remove P_ and __P macros.
f57e2426
J
1549 * atimer.h: Remove P_ and __P macros.
1550 * buffer.h:
383e0970
J
1551 * category.h:
1552 * ccl.h:
1553 * character.h:
1554 * charset.h:
1555 * cm.h:
1556 * coding.h:
1557 * composite.h:
1558 * dispextern.h:
1559 * disptab.h:
9e892c8d 1560 * dosfns.h:
383e0970
J
1561 * font.h:
1562 * fontset.h:
1563 * frame.h:
1564 * gtkutil.h:
1565 * indent.h:
1566 * intervals.h:
1567 * keyboard.h:
1568 * keymap.h:
1569 * lisp.h:
1570 * macros.h:
1571 * md5.h:
1572 * menu.h:
1573 * msdos.h:
1574 * nsterm.h:
1575 * puresize.h:
1576 * region-cache.h:
1577 * syntax.h:
1578 * syssignal.h:
1579 * systime.h:
1580 * termhooks.h:
9e892c8d 1581 * w32font.h:
383e0970
J
1582 * w32term.h:
1583 * widget.h:
1584 * window.h:
1585 * xgselect.h:
1586 * xsettings.h:
1587 * xterm.h: Likewise.
1588
98601119
DN
15892010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1590
d9170db5
DN
1591 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1592
98601119
DN
1593 Cleanup old code.
1594 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1595 * syssignal.h: Remove code for Lynx, not supported anymore.
1596 * vm-limit.c: Remove unused code the depends on emacs not being
1597 defined and NO_LIM_DATA being defined.
1598 * mem-limits.h: Remove dead code.
1599
1f984e12
J
16002010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1601
c49d071a
J
1602 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1603
9d5405ec
J
1604 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1605 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1606
7a18115b
J
1607 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1608 parameters, they are already absolute.
1609
a628ad9d
JB
1610 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1611 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1612
a628ad9d 1613 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1614
a628ad9d
JB
1615 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1616 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1617
a628ad9d
JB
1618 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1619 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1620
c1ef4455
CY
16212010-06-30 Chong Yidong <cyd@stupidchicken.com>
1622
1623 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1624 check default-frame-alist.
1625
ce8f5a9a
AS
16262010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1627
1628 * process.c (create_process): Avoid using invalid file descriptors.
1629
1630 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1631
bf935339
J
16322010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1633
1634 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1635 Improve documentation. Return font regardless of use_system_font.
1636 (syms_of_xsettings): Improve documentation for font-use-system-font.
1637
7c33a057
CY
16382010-07-10 Chong Yidong <cyd@stupidchicken.com>
1639
2ec1b5ee
CY
1640 * xfaces.c (realize_face): Garbage the frame if a face is removed
1641 (Bug#6593).
1642
16432010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1644
1645 * keyboard.c: Remove duplicate <setjmp.h>.
1646 (read_key_sequence): Remove volatile qualifiers.
1647
16482010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1649
1650 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1651 (struct glyph_row): New members left_fringe_offset and
1652 right_fringe_offset.
1653
1654 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1655 specially.
1656 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1657 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1658
1659 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1660 Take account of bitmap offset.
2ec1b5ee
CY
1661 (draw_window_fringes): Take account of window vscroll.
1662 (update_window_fringes): Likewise. Extend top-aligned top indicator
1663 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1664 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1665 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1666
16672010-07-04 Juanma Barranquero <lekktu@gmail.com>
1668
1669 * w32fns.c (Qtooltip): Declare.
1670 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1671
16722010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1673
1674 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1675 grab on just Press (Bug#6499).
1676
16772010-07-02 Chong Yidong <cyd@stupidchicken.com>
1678
1679 * frame.c (Qtooltip): New var.
1680 (delete_frame): Use it. Fix faulty if statement. Don't update
1681 mode line for tooltip frames. Suggested by Martin Rudalics.
1682
1683 * xfns.c (x_create_tip_frame):
1684 * w32fns.c (x_create_tip_frame): Use it.
1685
16862010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1687
1688 * xftfont.c (xftfont_open): Check font width one by one also when
1689 spacing is dual.
1690
1691 * ftfont.c (ftfont_open): Ditto.
1692
6259c2ec
GM
16932010-06-30 Glenn Morris <rgm@gnu.org>
1694
a46007e9
GM
1695 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1696
6259c2ec
GM
1697 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1698
1699 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1700 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1701 * s/darwin.h (SYSTEM_MALLOC):
1702 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1703
5d1d3d04
J
17042010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1705
1706 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1707 (ns_get_screen): Don't assign integer to f.
1708 (Fx_display_color_cells): Declarations before statements.
1709
e547b051
J
17102010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1711
5fc8e5bc
J
1712 * xfns.c (x_default_font_parameter): Remove got_from_system
1713 (Bug#6526).
1714
e547b051
J
1715 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1716 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1717 defines based on what configure finds.
1718
1719 * xterm.c (XTflash): Use gtk_widget_get_window.
1720 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1721 gtk_adjustment_get_page_size.
1722 (handle_one_xevent): Use gtk_widget_get_mapped.
1723 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1724 messages.
1725
1726 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1727
1728 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1729 HAVE_GTK_FILE_SELECTION_NEW.
1730
1731 * gtkutil.c (xg_display_open, xg_display_close): Remove
1732 HAVE_GTK_MULTIDISPLAY, it is always defined.
1733 (xg_display_open): Return type is void.
1734 (gtk_widget_set_has_window)
1735 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1736 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1737 (gtk_adjustment_set_page_increment)
1738 (gtk_adjustment_get_step_increment): #define these if not found
1739 by configure.
1740 (remove_submenu): New define based on Gtk+ version.
1741 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1742 gtk_widget_get_window.
1743 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1744 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1745 (create_dialog): Use gtk_dialog_get_action_area and
1746 gtk_dialog_get_content_area.
1747 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1748 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1749 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1750 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1751 g_object_ref and g_object_unref.
1752 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1753 gtk_widget_get_sensitive.
1754 (xg_update_submenu): Use remove_submenu.
1755 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1756 properties instead to get old x and y position.
1757 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1758 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1759 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1760 (xg_get_tool_bar_widgets): New function.
1761 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1762 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1763 (toolbar_set_orientation): New #define based on if configure
1764 finds gtk_orientable_set_orientation.
1765 (xg_create_tool_bar): Call toolbar_set_orientation.
1766 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1767 instead of gtk_box_pack_start_defaults.
1768
b9229673
CY
17692010-06-28 Chong Yidong <cyd@stupidchicken.com>
1770
1771 * cmds.c (Fdelete_backward_char): Move into Lisp.
1772
bbc803b0
DN
17732010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1774
1775 * s/freebsd.h (BSD4_2): Remove redundant definition.
1776 bsd-common.h defines it already.
1777
6431f2e6
CY
17782010-06-27 Chong Yidong <cyd@stupidchicken.com>
1779
1780 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1781 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1782 tool-bar-mode, which are now set using these X resources at
1783 startup, to determine the defaults (Bug#2249).
1784
1785 * w32fns.c (Fx_create_frame):
1786 * nsfns.m (Fx_create_frame): Likewise.
1787
1788 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1789
8c079ebb
JB
17902010-06-24 Juanma Barranquero <lekktu@gmail.com>
1791
1792 * gtkutil.c (xg_update_scrollbar_pos):
1793 Avoid C99 mid-block variable declaration.
1794
e9b7ab96
JD
17952010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1796
bc869eca
JD
1797 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1798
2b7e356a 1799 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1800
1801 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1802 if height is less than scroll bar min size.
1803 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1804
e9b7ab96
JD
1805 * xfns.c (x_default_font_parameter): Try to open font from system
1806 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1807
a628ad9d 18082010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1809
1810 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1811
70c4cfbb
EZ
18122010-06-20 Eli Zaretskii <eliz@gnu.org>
1813
1814 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1815 most-positive-fixnum, be extra accurate when scrolling window
1816 start, to avoid missing the cursor line.
1817
ad5a12b5
EZ
18182010-06-19 Eli Zaretskii <eliz@gnu.org>
1819
1820 * xdisp.c (try_scrolling): Compute the limit for searching point
1821 in forward scroll from scroll_max, instead of an arbitrary limit
1822 of 10 screen lines. See
1823 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1824 and
1825 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1826 for details.
1827
2a64315a 18282010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1829
1830 * editfns.c (Fbyte_to_string): Pacify compiler.
1831
288cf4e9
SM
18322010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1833
1834 * lread.c (read1): Phase out old-style backquotes a bit more.
1835
6e6e5760
EZ
18362010-06-12 Eli Zaretskii <eliz@gnu.org>
1837
cbc4fd20
EZ
1838 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1839 bidimirror.h.
1840
1841 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1842
317fbf33
EZ
1843 * bidi.c (bidi_initialize): Remove explicit initialization of
1844 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1845 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1846 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1847
1848 * biditype.h: New file.
1849
cbc4fd20
EZ
1850 * bidimirror.h: New file.
1851
6e6e5760
EZ
1852 * window.c (syms_of_window): Doc fix (bug#6409).
1853
4176cba2
RF
18542010-06-12 Romain Francoise <romain@orebokech.com>
1855
1856 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1857 ediff-hook.
1858
cb4bfcb5
GM
18592010-06-10 Glenn Morris <rgm@gnu.org>
1860
64c60c2f
GM
1861 * editfns.c (Fbyte_to_string): Pacify compiler.
1862
cb4bfcb5
GM
1863 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1864
2ec1b5ee
CY
18652010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1866
1867 * alloc.c (Fmake_byte_code): Don't access undefined argument
1868 (Bug#6517).
1869
18702010-06-25 Chong Yidong <cyd@stupidchicken.com>
1871
1872 * xdisp.c (next_element_from_image): Ensure that after-strings are
1873 read the next time we hit handle_stop (Bug#1336).
1874
18752010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1876
1877 * lread.c (read1): Signal error if #s is not followed by paren.
1878
18792010-06-19 Chong Yidong <cyd@stupidchicken.com>
1880
1881 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1882
1883 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1884
18852010-06-15 Glenn Morris <rgm@gnu.org>
1886
1887 * editfns.c (Fbyte_to_string): Pacify compiler.
1888
e454a4a3
SM
18892010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1890
1891 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1892 Check `object's type before accessing its guts.
1893
c1b1acc2
DN
18942010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1895
1896 * s/usg5-4.h: Fix previous change.
1897 Suggested by Lawrence Mitchell <wence@gmx.li>
1898
657d4c0b
AS
18992010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1900
1901 * minibuf.c (Fall_completions): Add more checks.
1902
9b27fd9f
JB
19032010-06-08 Juanma Barranquero <lekktu@gmail.com>
1904
1905 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1906
a99ebb40
DN
19072010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1908
d7c5d87d
DN
1909 * lread.c (X_OK): Remove, unused.
1910
0263a941
DN
1911 * dispnew.c: Remove obsolete comment.
1912
a99ebb40
DN
1913 Remove INCLUDED_FCNTL.
1914 * xterm.c (INCLUDED_FCNTL):
1915 * callproc.c (INCLUDED_FCNTL):
1916 * alloc.c (INCLUDED_FCNTL):
1917 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1918 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1919
13b5221f
MR
19202010-06-07 Martin Rudalics <rudalics@gmx.at>
1921
1922 * window.c (Fselect_window): Move `record_buffer' up to the
1923 beginning of this function, so the buffer gets recorded
1924 even if the selected window does not change.
1925 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1926
5220357f
JB
19272010-06-07 Juanma Barranquero <lekktu@gmail.com>
1928
1929 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1930 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1931
3085237c
DN
19322010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1933
1934 Remove BSTRING related code, all platforms define it.
1935 * s/usg5-4.h (BSTRING): Remove definition.
1936 * s/template.h (BSTRING):
1937 * s/msdos.h (BSTRING):
1938 * s/ms-w32.h (BSTRING):
1939 * s/hpux10-20.h (BSTRING):
1940 * s/gnu-linux.h (BSTRING):
1941 * s/darwin.h (BSTRING):
1942 * s/cygwin.h (BSTRING):
1943 * s/bsd-common.h (BSTRING):
1944 * s/aix4-2.h (BSTRING): Likewise.
1945 * sysdep.c: Remove code depending on BSTRING not being defined.
1946
409f2919
JB
19472010-06-05 Juanma Barranquero <lekktu@gmail.com>
1948
1949 Remove obsolete macro BASE_LEADING_CODE_P.
1950 * character.h (BASE_LEADING_CODE_P): Remove.
1951 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1952 * buffer.c (Fset_buffer_multibyte):
1953 * indent.c (scan_for_column, compute_motion):
1954 * insdel.c (count_combining_before, count_combining_after):
1955 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1956
087fc47a
JB
19572010-06-04 Juanma Barranquero <lekktu@gmail.com>
1958
1959 Turn `directory-sep-char' into a noop.
1960
1961 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1962 (DIRECTORY_SEP): Define unconditionally.
1963
1964 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1965
1966 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1967 call dostounix_filename directly.
1968
1969 * fileio.c (CORRECT_DIR_SEPS): Remove.
1970 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1971 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1972 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1973 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1974
1975 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1976 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1977
0eb7675e
AS
19782010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1979
a628ad9d
JB
1980 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1981 (Bug#6346)
0eb7675e 1982
78edd3b7
JB
19832010-06-03 Juanma Barranquero <lekktu@gmail.com>
1984
1985 * ccl.c (Fccl_program_p): Fix typo in docstring.
1986
eb697db5
DN
19872010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1988
1989 Move UNEXEC definition to autoconf.
1990 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1991 * s/sol2-10.h (UNEXEC):
1992 * s/irix6-5.h (UNEXEC):
1993 * s/hpux10-20.h (UNEXEC):
1994 * s/gnu-linux.h (UNEXEC):
1995 * s/darwin.h (UNEXEC):
1996 * s/cygwin.h (UNEXEC):
1997 * s/bsd-common.h (UNEXEC):
1998 * s/aix4-2.h (UNEXEC):
1999 * m/alpha.h (UNEXEC): Likewise.
2000 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2001
aa3830c4
JB
20022010-06-03 Juanma Barranquero <lekktu@gmail.com>
2003
2004 Remove obsolete pre-unicode2 macros.
2005 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2006 * composite.c (composition_reseat_it):
2007 * data.c (Faset):
2008 * fns.c (Ffillarray):
2009 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2010 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2011
d234d13e
JL
20122010-06-03 Juri Linkov <juri@jurta.org>
2013
2014 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2015 (Fswitch_to_buffer): Remove unused variable `err'.
2016
0d4bcf4d
GM
20172010-06-03 Glenn Morris <rgm@gnu.org>
2018
e23dc1e2
GM
2019 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2020
05b09564
GM
2021 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2022 now that AH_BOTTOM does it.
2023
824e2978
GM
2024 * m/hp800.h (HAVE_ALLOCA):
2025 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2026
0d4bcf4d
GM
2027 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2028 Remove NOT_C_CODE tests, it is always true now.
2029
c55d2abf
DN
20302010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2031
08a494a3
DN
2032 Fix config.h includes.
2033 * xsettings.c:
2034 * xgselect.c:
2035 * nsterm.m:
2036 * nsselect.m:
2037 * nsimage.m:
2038 * nsfont.m:
2039 * nsfns.m:
2040 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2041 other files do.
2042
75934b1d
DN
2043 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2044
9f32a766
DN
2045 * s/sol2-6.h: Remove obsolete comments.
2046
c55d2abf
DN
2047 Remove unnecessary alloca.h includes.
2048 * keymap.c: Do not include alloca.h, config.h does that.
2049 * sysdep.c: Likewise. Do not define fwrite, not used.
2050
06ac62b4
SM
20512010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2052
2053 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2054 the HAVE_TERMIO where it belongs (bug#6149).
2055
1ab8293c
SM
20562010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2057
2058 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2059 of bug#6305).
2060
6dcfd253
EZ
20612010-05-30 Eli Zaretskii <eliz@gnu.org>
2062
2063 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2064 state is always cached (bug#6306).
2065
6d26bbb2
EZ
20662010-05-29 Eli Zaretskii <eliz@gnu.org>
2067
06fa4a23
EZ
2068 Fix cursor motion in bidi-reordered continued lines.
2069 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2070 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2071 over continuation lines in bidi-reordered buffers. Return
2072 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2073 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2074
f5783df3
MA
20752010-05-28 Michael Albinus <michael.albinus@gmx.de>
2076
2077 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2078
7d56b2dd
KH
20792010-05-28 Kenichi Handa <handa@m17n.org>
2080
2081 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2082 Don't sheck SPEC if it is nil.
2083 (font_list_entities): Call font_delete_unmatched if
b925d231 2084 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2085
e58d4ff7
GM
20862010-05-28 Glenn Morris <rgm@gnu.org>
2087
2088 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2089
f1a5d776
CY
20902010-05-27 Chong Yidong <cyd@stupidchicken.com>
2091
2092 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2093 whether to trash.
2094 (internal_delete_file, Frename_file): Callers changed.
2095 (delete_by_moving_to_trash): Doc fix.
2096 (Fdelete_directory_internal): Don't move to trash.
2097
2098 * callproc.c (delete_temp_file):
2099 * buffer.c (Fkill_buffer): Callers changed.
2100
2101 * lisp.h: Update prototype.
2102
f44a59e6
CY
21032010-05-27 Chong Yidong <cyd@stupidchicken.com>
2104
2105 * xdisp.c (redisplay_window): After redisplay, check if point is
2106 still valid before setting it (Bug#6177).
2107
81ac4f35
GM
21082010-05-27 Glenn Morris <rgm@gnu.org>
2109
2110 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2111 Convert comments to Makefile format.
2112
2113 * Makefile.in (bootstrap-clean): No more Makefile.c.
2114
ccd89fb3
GM
21152010-05-26 Glenn Morris <rgm@gnu.org>
2116
90278cb6
GM
2117 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2118 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2119
ccd89fb3
GM
2120 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2121 Remove.
2122 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2123
b7050583
KH
21242010-05-26 Kenichi Handa <handa@m17n.org>
2125
2126 * composite.c (composition_compute_stop_pos): Fix condition for
2127 backward scanning.
2128
e5458003
GM
21292010-05-25 Glenn Morris <rgm@gnu.org>
2130
c345fe90
GM
2131 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2132 Move before TEMACS_LDFLAGS.
2133 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2134 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2135
2e0689ab
GM
2136 * Makefile.in (NOT_C_CODE): No longer define.
2137 (config.h): No longer include.
2138
8009a5e8
GM
2139 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2140 variables it may reference.
2141
e5458003
GM
2142 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2143 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2144
10f72a37
KH
21452010-05-25 Kenichi Handa <handa@m17n.org>
2146
2147 * dispextern.h (struct composition_it): New members rule_idx and
2148 charpos.
2149
2150 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2151 that the character positions of IT point the last character of the
2152 current grapheme cluster.
2153 (next_element_from_composition): Don't change character positions
2154 of IT.
2155 (append_composite_glyph): Set glyph->charpos to
2156 it->cmp_it.charpos.
2157
2158 * composite.c (autocmp_chars): Change the first argument to RULE,
2159 and try composition with RULE only.
2160 (composition_compute_stop_pos): Record the index number of the
2161 composition rule in CMP_IT->rule_idx.
2162 (composition_reseat_it): Call autocmp_chars repeatedly until the
2163 correct rule of the composition is found.
2164 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2165 is at the last character of the current grapheme cluster when
2166 CMP_IT->reversed_p is nonzero.
2167
171eda53 21682010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2169
171eda53
SM
2170 * editfns.c (Fbyte_to_string): New function.
2171
66a9f7f4
SM
21722010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2173
2174 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2175 Suggested by Masatake YAMATO <yamato@redhat.com>.
2176
d8c315d1
EZ
21772010-05-23 Eli Zaretskii <eliz@gnu.org>
2178
171eda53 2179 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2180
f5b416d2 21812010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2182
2183 * s/netbsd.h: If terminfo is found, use it in preference to
2184 termcap. (Bug#6190) [Backport from trunk]
2185
0416466c
EZ
21862010-05-19 Eli Zaretskii <eliz@gnu.org>
2187
11117830 2188 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2189
2190 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2191 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2192 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2193 and maxpos members instead of start.pos and end.pos, respectively.
2194
2195 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2196 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2197 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2198 (try_window_reusing_current_matrix, try_window_id):
2199 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2200 (init_from_display_pos, init_iterator): Use EMACS_INT for
2201 character and byte positions.
66a9f7f4 2202 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2203 arguments for minimum and maximum buffer positions seen by
2204 display_line for this row. Don't use iterator to find the
2205 position following the maximum one; instead, increment the
11117830
EZ
2206 position found by display_line directly. Fix logic; eol_pos
2207 should be tested before the rest. Handle the case of characters
2208 delivered from display vector (bug#6036). Fix tests related to
2209 it->method. Handle the truncated_on_right_p rows.
2210 (RECORD_MAX_MIN_POS): New macro.
2211 (display_line): Use it to record the minimum and maximum buffer
2212 positions for glyphs in the row being assembled. Record the
2213 position of the newline that terminates the line. If word wrap is
2214 in effect, restore minimum and maximum positions seen up to the
2215 wrap point, when iterator returns to it.
2216 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2217 row and cursor not already at point. Restore original pre-bidi
2218 code for unidirectional buffers.
d36fe237
EZ
2219
2220 * dispnew.c (increment_row_positions, check_matrix_invariants):
2221 Increment and check row->start.pos and row->end.pos, in addition
2222 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2223
11117830
EZ
2224 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2225 Display truncated_on_left_p and truncated_on_right_p flags.
2226 Formatting fixes.
2227 (pmtxrows): Display the ordinal number of each row. Don't display
2228 rows beyond the last one.
2229
2230 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2231 it is not copied by bidi_copy_it.
2232
6e83d800
EZ
22332010-05-22 Eli Zaretskii <eliz@gnu.org>
2234
2235 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2236 (Bug#6237)
2237
110683ad
CY
22382010-05-22 Chong Yidong <cyd@stupidchicken.com>
2239
2240 * image.c (Fimage_flush): Rename from image-refresh.
2241
98fe5161
CY
22422010-05-21 Chong Yidong <cyd@stupidchicken.com>
2243
2244 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2245 just one window.
2246
2247 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2248 (clear_image_cache): If the number of cached images is unusually
2249 large, decrease the cache eviction delay (Bug#6230).
2250
e8752c66
GM
22512010-05-21 Glenn Morris <rgm@gnu.org>
2252
66dbf213
GM
2253 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2254 Move these rules to ns.mk.
2255 * ns.mk: New file.
2256
04384b2d
GM
2257 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2258
e8752c66
GM
2259 * Makefile.in (CANNOT_DUMP): New, set by configure.
2260 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2261
2e2bbddb
JL
22622010-05-20 Juri Linkov <juri@jurta.org>
2263
2264 * fileio.c (Fdelete_file): Change interative spec to use
2265 `read-file-name' like in `find-file-read-args' where the default
2266 value is `default-directory' instead of `buffer-file-name'.
2267 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2268
31c4aaf6
KR
22692010-05-20 Kevin Ryde <user42@zip.com.au>
2270
2271 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2272 (Voverriding_terminal_local_map, Vsystem_key_alist)
2273 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2274
9d5cf9b6
GM
22752010-05-20 Glenn Morris <rgm@gnu.org>
2276
2277 * Makefile.in (DEPDIR): New constant.
2278 (DEPFLAGS): Set with configure, not cpp.
2279 (MKDEPDIR): New, set by configure.
2280 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2281 (clean): Use $DEPDIR.
2282 (deps_frag): Include from configure.
2283 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2284 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2285
ead6f8f5
EZ
2286 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2287 reallocation of the cache. (Bug#6210)
2288
7f34aec3
GM
22892010-05-19 Glenn Morris <rgm@gnu.org>
2290
d494e8f2
GM
2291 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2292
c1d0dcfd
GM
2293 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2294 (GNULIB_VAR): Remove.
2295 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2296
2297 * m/ibms390x.h (LINKER):
2298 * m/macppc.h (LINKER) [GNU_LINUX]:
2299 * s/aix4-2.h (ORDINARY_LINK):
2300 * s/cygwin.h (LINKER):
2301 * s/darwin.h (ORDINARY_LINK):
2302 * s/gnu.h (ORDINARY_LINK):
2303 * s/netbsd.h (LINKER):
2304 * s/usg5-4.h (ORDINARY_LINK):
2305 Move to configure.
2306
7f34aec3
GM
2307 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2308
754790b6
CY
23092010-05-18 Chong Yidong <cyd@stupidchicken.com>
2310
2311 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2312 prevent stack overflow if number of arguments is too large
2313 (Bug#6214).
2314
161e44d1
JB
23152010-05-18 Juanma Barranquero <lekktu@gmail.com>
2316
2317 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2318
be4ff9da
GM
23192010-05-18 Glenn Morris <rgm@gnu.org>
2320
9539dc5d
GM
2321 * s/gnu-linux.h: Combine two conditionals.
2322
2323 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2324 $(POST_ALLOC_OBJ).
2325
40dc6bf4
GM
2326 * Makefile.in (RALLOC_OBJ): New, set by configure.
2327 (rallocobj): Replace with the previous variable.
2328 (otherobj): Use $RALLOC_OBJ.
2329
2330 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2331 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2332
be4ff9da
GM
2333 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2334 (gmallocobj, vmlimitobj): Replace with previous two variables.
2335 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2336
16455a85
GM
23372010-05-17 Glenn Morris <rgm@gnu.org>
2338
2339 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2340 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2341
5fdb7468
GM
23422010-05-16 Glenn Morris <rgm@gnu.org>
2343
7ca1f3f9
GM
2344 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2345
7541dad5
GM
2346 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2347
da53fab9
GM
2348 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2349 trailing "/".
2350
b02a6645
GM
2351 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2352 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2353
8877ca0f
GM
2354 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2355 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2356 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2357 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2358 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2359
5fdb7468
GM
2360 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2361 Remove ${STARTFLAGS}, nothing ever sets it.
2362
95adb4b1
DN
23632010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2364
2365 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2366
676b6304
GM
23672010-05-16 Glenn Morris <rgm@gnu.org>
2368
9beab9ce
GM
2369 * Makefile.in (LIBX_BASE): Always define.
2370
8a95f0e7
GM
2371 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2372
676b6304
GM
2373 * Makefile.in (LIBXT): Always define.
2374
6e546d18
GM
23752010-05-15 Glenn Morris <rgm@gnu.org>
2376
4235ca47 2377 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2378
6e546d18
GM
2379 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2380 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2381
8c5ff6dd
KR
23822010-05-15 Ken Raeburn <raeburn@raeburn.org>
2383
560bb7ae 2384 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2385 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2386
8b4eb796
KR
2387 * emacs.c (main): Initialize initial-environment and
2388 process-environment before generating from env, not after.
2389
8c5ff6dd
KR
2390 Handle --version reasonably in CANNOT_DUMP configuration.
2391 * emacs.c (emacs_version, emacs_copyright): New string variables.
2392 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2393 (syms_of_emacs): Defvar them, and initialize them from the C
2394 string variables.
2395 (main): If initialization hasn't been done, print initial version
2396 info from the C strings, instead of starting an interactive session.
2397
dbd3f723
EZ
23982010-05-15 Eli Zaretskii <eliz@gnu.org>
2399
d20e1419
EZ
2400 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2401 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2402 (bidi_paragraph_init): Remove redundant assertion that we are at
2403 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2404
2405 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2406 (syms_of_xdisp): Defsubr it.
2407
d36fe237
EZ
2408 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2409
dbd3f723
EZ
2410 * Makefile.in: Fix MSDOS-related comments.
2411
02be533b
GM
24122010-05-15 Glenn Morris <rgm@gnu.org>
2413
1a82cca9
GM
2414 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2415 (really-lwlib, really-oldXMenu): Always define.
2416 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2417
3df7b338
GM
2418 * Makefile.in: Simplify cpp conditional.
2419
2b5f541b
GM
2420 * Makefile.in (${ns_appdir}): Simplify using umask.
2421
02be533b
GM
2422 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2423
4e2db1fe
SM
24242010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2425
2426 * eval.c (specbind): Remove left-over duplicate test.
2427 Disallow let-binding frame-local vars. Add comment.
2428
4b292a22
EZ
24292010-05-14 Eli Zaretskii <eliz@gnu.org>
2430
2fe72643 2431 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2432 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2433 (bidi_init_it): Call it.
2434 (bidi_cache_iterator_state): Enlarge the cache if needed.
2435
4e2db1fe 2436 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2437 bidi_get_next_char_visually. All callers changed.
2438
82ebc97b
KH
24392010-05-14 Kenichi Handa <handa@m17n.org>
2440
2441 * dispextern.h (struct composition_it): New member reversed_p.
2442
2443 * composite.c (composition_compute_stop_pos): Search backward if
2444 ENDPOS < CHARPOS.
2445 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2446 Set CMP_IT->reversed_p.
b4b6e17e 2447 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2448
4e2db1fe
SM
2449 * xdisp.c (set_iterator_to_next):
2450 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2451 scanning backward. Call composition_compute_stop_pos if scan
2452 direction is changed.
2453 (next_element_from_buffer): Call composition_compute_stop_pos with
2454 negative ENDPOS if we are scanning backward.
2455 (next_element_from_composition): Pay attention to
2456 IT->cmp_it.reversed_p.
2457
0e5d7800
KH
24582010-05-14 Kenichi Handa <handa@m17n.org>
2459
560bb7ae 2460 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2461
cb027b32
GM
24622010-05-14 Glenn Morris <rgm@gnu.org>
2463
177b0288
GM
2464 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2465
fbc00890
GM
2466 * Makefile.in (mktime, X11, register): Move undefs to configure.
2467
f14d1dfd
GM
2468 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2469 (MSDOS_X_OBJ): New variable.
2470 (MSDOS_SUPPORT_REAL): New constant.
2471 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2472 (obj): Use MSDOS_X_OBJ.
2473 (lisp): Use MSDOS_SUPPORT as a variable.
2474
11842bd8
GM
2475 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2476 (GPM_MOUSE_SUPPORT): Now it's a constant.
2477 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2478 not cpp.
2479
489d31a4 2480 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2481 (ns_appresdir): Remove, unused.
e20f1f07 2482
489d31a4
GM
2483 * Makefile.in (SHELL): Move outside cpp section.
2484
cb027b32
GM
2485 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2486
5a903aa9
GM
24872010-05-13 Glenn Morris <rgm@gnu.org>
2488
3369c79f
GM
2489 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2490 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2491
d5e982a6
GM
2492 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2493 HAVE_WINDOW_SYSTEM must be too.
2494
6192e163
GM
2495 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2496 (lisp): Remove WINNT_SUPPORT.
2497
472c5d6b
GM
2498 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2499 Let configure set these variables (to empty) in this case as well.
2500
0116466b
GM
2501 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2502 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2503
5a903aa9
GM
2504 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2505 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2506 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2507 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2508 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2509 the values output by configure.
5a903aa9
GM
2510 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2511
1a0d7c06
GM
25122010-05-12 Glenn Morris <rgm@gnu.org>
2513
b5457f14
GM
2514 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2515 (LINKER_WAS_SPECIFIED): Remove.
2516
1a0d7c06
GM
2517 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2518 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2519 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2520 * s/cygwin.h (LIB_GCC):
2521 * s/freebsd.h (LIB_GCC):
2522 * s/gnu-linux.h (LIB_GCC):
2523 * s/msdos.h (LIB_GCC):
2524 * s/netbsd.h (LIB_GCC):
2525 Move to configure.
2526
3ffd4615 25272010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2528
2529 * ftfont.c: Fix incorrect parentheses of #if condition for
2530 definining M17N_FLT_USE_NEW_FEATURE.
2531
acddf8ae
GM
25322010-05-11 Glenn Morris <rgm@gnu.org>
2533
2534 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2535 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2536
ae5e04fa
EZ
25372010-05-10 Eli Zaretskii <eliz@gnu.org>
2538
2539 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2540 unibyte buffers. See
2541 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2542
7490175b
GM
25432010-05-10 Glenn Morris <rgm@gnu.org>
2544
97efb629
GM
2545 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2546 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2547 (LIBES): Use LIBS_SYSTEM as a variable.
2548 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2549 * s/aix4-2.h (LIBS_SYSTEM):
2550 * s/freebsd.h (LIBS_SYSTEM):
2551 * s/hpux10-20.h (LIBS_SYSTEM):
2552 * s/sol2-6.h (LIBS_SYSTEM):
2553 * s/unixware.h (LIBS_SYSTEM):
2554 Move to configure.
2555
7490175b
GM
2556 * s/aix4-2.h (MAIL_USE_LOCKF):
2557 * s/bsd-common.h (MAIL_USE_FLOCK):
2558 * s/darwin.h (MAIL_USE_FLOCK):
2559 * s/gnu-linux.h (MAIL_USE_FLOCK):
2560 * s/irix6-5.h (MAIL_USE_FLOCK):
2561 * s/template.h (MAIL_USE_FLOCK):
2562 Move to configure.
2563
0235128c 25642010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2565
2566 * Version 23.2 released.
2567
0235128c 25682010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2569
2570 * composite.c (autocmp_chars): Save point as marker before calling
2571 auto-composition-function (Bug#5984).
2572
2573 * lisp.h (restore_point_unwind): Add prototype.
2574
2575 * fileio.c (restore_point_unwind): Remove static attribute.
2576
0235128c 25772010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2578
2579 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2580 new feature of libotf and m17n-flt.
0235128c
SM
2581 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2582 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2583 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2584 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2585 that OUT is NULL. Use OTF_drive_gsub_with_log and
2586 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2587 OTF_drive_gpos.
2588 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2589 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2590 Setup mflt_enable_new_feature and mflt_try_otf.
2591
4721152c
J
25922010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2593
2594 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2595
2596 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2597 box and toolbar (Bug #6139).
2598 (xg_create_tool_bar): Remove comment (Bug #6139).
2599 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2600 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2601
ee0a16cf
JB
26022010-05-08 Juanma Barranquero <lekktu@gmail.com>
2603
2604 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2605 Update dependencies.
2606
96d79611
EZ
26072010-05-08 Eli Zaretskii <eliz@gnu.org>
2608
2609 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2610 R2L lines.
2611
40c17879
GM
26122010-05-08 Glenn Morris <rgm@gnu.org>
2613
7b42b29f
GM
2614 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2615
40c17879
GM
2616 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2617 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2618 (termcapobj): Replace with TERMCAP_OBJ.
2619 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2620 (LIBES): Use LIBS_TERMCAP as a variable.
2621
2622 * s/freebsd.h (osreldate.h): No longer include, since this file
2623 does not use __FreeBSD_version any more.
2624
2625 * s/aix4-2.h (TERMINFO):
2626 * s/cygwin.h (TERMINFO):
2627 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2628 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2629 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2630 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2631 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2632 * s/irix6-5.h (TERMINFO):
2633 * s/netbsd.h (LIBS_TERMCAP):
2634 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2635 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2636 * s/usg5-4.h (TERMINFO):
2637 Move to configure.
2638
94b612ad
SM
26392010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2640
2641 * eval.c (unbind_to): Don't unbind a local binding into the global
2642 binding when the local binding disappeared. Inversely, don't unbind
2643 a global binding into a newly created local binding.
2644 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2645 can specify the frame to use, when applicable. Adjust callers.
2646
15e12598 26472010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2648 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2649
2650 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2651
f724825e
EZ
26522010-05-07 Eli Zaretskii <eliz@gnu.org>
2653
5cba3209
EZ
2654 * w32fns.c: Include w32.h.
2655 (Fw32_shell_execute): Decode the error message before passing it
2656 to `error'. (Bug#6126)
2657
d16bdfc3
EZ
2658 * msdos.c (dos_set_window_size):
2659 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2660 instead of `XSYMBOL (foo)->value'.
2661
59d93e87
EZ
26622010-05-07 Eli Zaretskii <eliz@gnu.org>
2663
9fdec8bc
EZ
2664 Fix the MS-DOS build, broken by autoconfiscation.
2665
2666 * Makefile.in: Don't use Make-style comments past the "start of
2667 cpp stuff" line.
2668 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2669
2670 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2671 edited directly by msdos/sed1v2.inp).
f724825e 2672
2f86b22b
GM
26732010-05-07 Glenn Morris <rgm@gnu.org>
2674
2675 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2676 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2677 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2678 move out of cpp section.
2679 * s/freebsd.h (LD_SWITCH_SYSTEM):
2680 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2681 * s/netbsd.h (LD_SWITCH_SYSTEM):
2682 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2683
49ebbd65
DN
26842010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2685
2686 Define LIB_STANDARD and START_FILES using autoconf.
2687 * s/usg5-4.h (LIB_STANDARD):
2688 * s/netbsd.h (START_FILES):
2689 * s/irix6-5.h (LIB_STANDARD):
2690 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2691 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2692 * s/freebsd.h (START_FILES):
2693 * s/darwin.h (START_FILES):
2694 * s/cygwin.h (START_FILES):
2695 * s/aix4-2.h (LIB_STANDARD):
2696 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2697 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2698 autoconf, not cpp.
2699
d43c06d6
DN
27002010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2701
28823648
DN
2702 Remove NEED_BSDTTY and NEED_UNISTD_H.
2703 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2704 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2705 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2706 <sys/ptyio.h> and <unistd.h>.
2707
aca00430
DN
2708 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2709
d43c06d6
DN
2710 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2711 * s/gnu.h (START_FILES): Remove empty definition.
2712
3e56b11d
JD
27132010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2714
2715 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2716
e3cf0cde
GM
27172010-05-06 Glenn Morris <rgm@gnu.org>
2718
2719 * Makefile.in (CPP, LN_S): Remove unused variables.
2720
774b9a60
SM
27212010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2722
2723 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2724
4ab92842
LM
27252010-05-05 Lawrence Mitchell <wence@gmx.li>
2726
2727 * m/sparc.h: Fix typo in earlier change.
2728
178f2507
SM
27292010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2730
2731 Misc tweaks.
2732 * eval.c (Fdefvaralias): Remove unintended nested if.
2733 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2734
80f00217 27352010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2736
2737 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2738
ef03a4e6
DN
27392010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2740
58eb6cf0
DN
2741 Remove BSD_PGRPS.
2742 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2743 * s/gnu-linux.h (BSD_PGRPS): Remove.
2744 * term.c (dissociate_if_controlling_tty):
2745 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2746 (init_sys_modes, reset_sys_modes):
2747 * emacs.c (main):
2748 * callproc.c (Fcall_process, child_setup): Remove code depending
2749 on BSD_PGRPS.
2750
ef03a4e6
DN
2751 Remove POSIX_SIGNALS.
2752 * s/usg5-4.h (POSIX_SIGNALS):
2753 * s/netbsd.h (POSIX_SIGNALS):
2754 * s/msdos.h (POSIX_SIGNALS):
2755 * s/ms-w32.h (POSIX_SIGNALS):
2756 * s/hpux11.h (POSIX_SIGNALS):
2757 * s/gnu.h (POSIX_SIGNALS):
2758 * s/gnu-linux.h (POSIX_SIGNALS):
2759 * s/freebsd.h (POSIX_SIGNALS):
2760 * s/darwin.h (POSIX_SIGNALS):
2761 * s/cygwin.h (POSIX_SIGNALS):
2762 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2763 * s/unixware.h:
2764 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2765 * process.c (create_process):
2766 * syssignal.h:
2767 * sysdep.c (wait_for_termination, init_signals):
2768 * process.c (create_process):
2769 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2770 remove all code that assumes the contrary.
2771
49628785
GM
27722010-05-04 Glenn Morris <rgm@gnu.org>
2773
27a2cdfc
GM
2774 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2775 variable.
2776 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2777 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2778 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2779 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2780 LD_SWITCH_SYSTEM_tmp.
2781 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2782 New variables, set by configure.
2783
eb21eab5
GM
2784 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2785 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2786 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2787 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2788 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2789
49628785
GM
2790 * s/aix4-2.h (C_SWITCH_SYSTEM):
2791 * m/alpha.h (C_SWITCH_MACHINE):
2792 Move to configure.in.
2793 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2794 New variables, set by configure.
2795 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2796 $c_switch_machine and $c_switch_system.
2797
7dff330b
DN
27982010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2799
2800 * s/hpux10-20.h (LIB_STANDARD): New definition.
2801 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2802 on it, not used anymore.
2803
53967e09
CY
28042010-05-03 Chong Yidong <cyd@stupidchicken.com>
2805
2806 * eval.c (internal_condition_case_n): Rename from
2807 internal_condition_case_2.
2808 (internal_condition_case_2): New function.
2809
2810 * xdisp.c (safe_call): Use internal_condition_case_n.
2811
2812 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2813 (internal_delete_file, Frename_file): Callers changed.
2814
2815 * buffer.c (Fkill_buffer):
2816 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2817
2818 * lisp.h: Update prototypes.
2819
3dee6fdb
GM
28202010-05-03 Glenn Morris <rgm@gnu.org>
2821
2822 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2823 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2824 (LIBXT): Set with configure, not cpp.
2825 (LIBX): Remove.
2826 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2827
a101e0fb
DN
28282010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2829
2830 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2831 The FreeBSD is not needed, the default works, Solaris version is
2832 not needed, and the remaining case is not supported by configure.
2833
f63d0028
JD
28342010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2835
2836 * xsmfns.c (CHDIR_OPT): New define.
2837 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2838 restarting emacs.
2839
2840 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2841 shut_down_emacs.
2842
2843 * emacs.c (USAGE1): Mention --chdir.
2844 (main): Handle --chdir.
2845 (standard_args): Add --chdir.
2846 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2847 #5552).
2848
e4814a9f
DN
28492010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2850
cd03c74a
DN
2851 Remove LD_SWITCH_MACHINE.
2852 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2853 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2854
c3a398a1
DN
2855 Clean up IRIX code.
2856 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2857 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2858
87e7285c
DN
2859 Clean up AIX code.
2860 * m/ibmrs6000.inp: Remove file, unused.
2861 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2862 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2863 definition ...
2864 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2865
80f00217
JB
2866 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2867 unused.
e4814a9f 2868
59ca28de
EZ
28692010-05-01 Eli Zaretskii <eliz@gnu.org>
2870
197daef4
EZ
2871 Emulate POSIX_SIGNALS on MS-Windows.
2872
2873 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2874 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2875
2876 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2877 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2878 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2879
80f00217
JB
2880 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2881 New stubs.
197daef4 2882
af7c7572
EZ
2883 Miscellaneous fixes of bidi display.
2884
59ca28de
EZ
2885 * xdisp.c (find_row_end): New function, refactored from display_line.
2886 (display_line): Use it.
017ea819
EZ
2887 (extend_face_to_end_of_line): In almost-filled rows, extend only
2888 if the row is R2L and not continued.
166e930d 2889 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2890 Preserve overlay and string info in row->end.
166e930d
EZ
2891 (insert_left_trunc_glyphs): Support addition of left truncation
2892 glyphs to R2L rows.
b47e0dcf 2893 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2894 glyph between adjacent windows. Fix a crash when a display string
2895 is continued to the next line. Don't return zero if cursor was
2896 found by `cursor' property of a display string.
b47e0dcf
EZ
2897 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2898 test for that explicitly.
59ca28de 2899
7acac9f4
GM
29002010-05-01 Glenn Morris <rgm@gnu.org>
2901
2902 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2903 for clarity.
2904 (OTHER_OBJ): Remove.
2905 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2906 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2907
45841e65
KK
29082010-05-01 Karel Klíč <kklic@redhat.com>
2909
2910 * fileio.c (Ffile_selinux_context): Context functions may return null.
2911
afc61943
DN
29122010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2913
80f00217 2914 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2915
5a1bb006
GM
29162010-04-30 Glenn Morris <rgm@gnu.org>
2917
2918 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2919 (OTHER_OBJ): Define as a separate variable, for clarity.
2920
210af043
J
29212010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2922
2923 * xsettings.c: include limits.h and update file comment.
2924
0a7df391
GM
29252010-04-30 Glenn Morris <rgm@gnu.org>
2926
d5096f16
GM
2927 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2928 Set with configure, not cpp.
2929 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2930
7eb1ac33
GM
2931 * Makefile.in (mallocobj): Remove.
2932 (otherobj): Simplify using @OTHER_OBJ@.
2933
517d086b
GM
2934 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2935 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2936 Don't bother making nsgui.h dependency platform-specific.
2937
0a7df391
GM
2938 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2939
d6d23852
SM
29402010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2941
d2630aef
SM
2942 * process.c (read_process_output, exec_sentinel): Don't burp if the
2943 sentinel/filter kills the current buffer (bug#6060).
2944
f9dddf52 2945 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2946 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2947 Remove unused var `args'.
2948 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2949 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2950 * doc.c (store_function_docstring): Use XSETCAR.
2951
f1e3642a
GM
29522010-04-28 Glenn Morris <rgm@gnu.org>
2953
faf535f8
GM
2954 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2955 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2956
c40f9449
GM
2957 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2958
658f86ca
GM
2959 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2960 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2961
bc0b5f61
GM
2962 * Makefile.in (FONT_OBJ): New, set by configure.
2963 (FONT_DRIVERS): Use $FONT_OBJ.
2964
294c50a0
GM
2965 * Makefile.in (LIBXMU): Set with configure, not cpp.
2966 * s/aix4-2.h (LIBXMU):
2967 * s/hpux10-20.h (LIBXMU):
2968 Remove definition, now set in configure.
2969
e6ec4e99
GM
2970 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2971
f1e3642a
GM
2972 * m/amdx86-64.h [i386]: Move this test to configure.in.
2973
c6ea2936
GM
29742010-04-27 Glenn Morris <rgm@gnu.org>
2975
8fdac2c3
GM
2976 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2977 * s/unixware.h (NEED_LIBW): Remove definition.
2978
986fb647
GM
2979 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2980 (TOOLKIT_LIBW): New, set by configure.
2981 (@X_TOOLKIT_TYPE@): No longer define it.
2982
c6ea2936
GM
2983 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2984 (MOTIF_LIBW): Set with configure, not cpp.
2985 * s/aix4-2.h (LIB_MOTIF):
2986 * s/gnu-linux.h (LIB_MOTIF):
2987 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2988
aaa36002
DN
29892010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2990
2991 Reduce CPP usage.
2992 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2993 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2994 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2995 definitions and undefs. Inline definitions in the only user.
2996 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2997
b678dd8b
GM
29982010-04-27 Glenn Morris <rgm@gnu.org>
2999
76cda504
GM
3000 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3001 since the defaults (set by the system file) are fine in most cases.
3002 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3003 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3004 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3005 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3006 Remove definitions, since they are set correctly in s/gnu-linux.h.
3007 * s/freebsd.h (START_FILES, LIB_STANDARD):
3008 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3009 * s/hpux10-20.h (START_FILES):
3010 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3011 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3012
b678dd8b
GM
3013 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3014 (MOTIF_LIBW): Use $LIBXP.
3015 (otherobj): Use $WIDGET_OBJ.
3016
9452ded1
DN
30172010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3018
7e10844c
DN
3019 * Makefile.in (LIBS_MACHINE): Remove, unused.
3020
9452ded1
DN
3021 Use autoconf instead of cpp for LIB_MATH.
3022 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3023 * s/cygwin.h (LIB_MATH): Likewise.
3024 * Makefile.in (LIB_MATH): Do not define with cpp.
3025 (LIBES): Use autoconf for LIB_MATH.
3026
fcebfc6a
KH
30272010-04-26 Kenichi Handa <handa@m17n.org>
3028
3029 * composite.c (Ffind_composition_internal): Fix the return value
3030 for an automatic composition.
3031
39e2ad1b
DN
30322010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3033
3034 Remove all NO_ARG_ARRAY uses.
3035 * fns.c (concat2, concat3, nconc2):
3036 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3037 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3038 * m/xtensa.h (NO_ARG_ARRAY):
3039 * m/template.h (NO_ARG_ARRAY):
3040 * m/sparc.h (NO_ARG_ARRAY):
3041 * m/sh3.h (NO_ARG_ARRAY):
3042 * m/mips.h (NO_ARG_ARRAY):
3043 * m/macppc.h (NO_ARG_ARRAY):
3044 * m/iris4d.h (NO_ARG_ARRAY):
3045 * m/intel386.h (NO_ARG_ARRAY):
3046 * m/ibms390x.h (NO_ARG_ARRAY):
3047 * m/ibms390.h (NO_ARG_ARRAY):
3048 * m/ibmrs6000.h (NO_ARG_ARRAY):
3049 * m/ia64.h (NO_ARG_ARRAY):
3050 * m/hp800.h (NO_ARG_ARRAY):
3051 * m/arm.h (NO_ARG_ARRAY):
3052 * m/amdx86-64.h (NO_ARG_ARRAY):
3053 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3054
adf4f59c
EZ
30552010-04-25 Eli Zaretskii <eliz@gnu.org>
3056
6bdf5d65
EZ
3057 * xdisp.c (display_line): Don't assume 2nd call to
3058 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3059 (iterate_out_of_display_property): New function, body from pop_it.
3060 (pop_it): Use it.
adf4f59c 3061
dfbbda83
GM
30622010-04-24 Glenn Morris <rgm@gnu.org>
3063
3064 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3065 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3066 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3067 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3068
2d4018aa
EZ
30692010-04-24 Eli Zaretskii <eliz@gnu.org>
3070
a49884a6
EZ
3071 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3072 use `get_next_display_element' and `set_iterator_to_next' to
3073 advance to the next character, when looking for the character that
3074 begins the next row.
3075
76db6fcc 3076 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3077 definition of "struct Lisp_Symbol".
3078
70eab5c1
GM
30792010-04-24 Glenn Morris <rgm@gnu.org>
3080
3081 * Makefile.in (CRT_DIR): New variable, set by configure.
3082 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3083 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3084
1ad4cc3d
DN
30852010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3086
e769f484
DN
3087 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3088
4196ff33
DN
3089 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3090
879b0ee4
DN
3091 Remove redundant flags.
3092 * s/freebsd.h (C_SWITCH_SYSTEM):
3093 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3094 * s/netbsd.h (C_SWITCH_SYSTEM):
3095 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3096 of these.
3097
03cbbcb8
DN
3098 Simplify m/intel386.h.
3099 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3100 user: ecrt0.c.
3101 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3102 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3103 the only user: s/unixware.h.
3104 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3105 from m/intel386.h.
3106 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3107 moved here from m/intel386.h.
3108
1ad4cc3d
DN
3109 * m/mips.h: Remove #if 0 code.
3110
8785b888
EZ
31112010-04-23 Eli Zaretskii <eliz@gnu.org>
3112
728588cc
EZ
3113 Fix display of composed characters from L2R scripts in bidi buffers.
3114 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3115 After advancing IT past the composition, resync the bidi iterator
3116 with IT's position. (Bug#5977)
3117
a63f80b4
DN
31182010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3119
3120 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3121 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3122
ff5dec5c
SM
31232010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3124
3125 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3126
8785b888
EZ
31272010-04-23 Eli Zaretskii <eliz@gnu.org>
3128
58ccf243 3129 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3130 * xdisp.c (pop_it): When the stack is popped after displaying
3131 from a string, bidi-iterate to exit from the text portion covered
3132 by the `display' property or overlay. (Bug#5988, bug#5920)
3133
feeb1604
DN
31342010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3135
8e324eb6
DN
3136 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3137 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3138
809fcaba
DN
3139 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3140 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3141
ed710380
DN
3142 Simplify STARTFILES definition.
3143 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3144 relying on Makefile.in to define it.
3145 * s/cygwin.h (START_FILES): Likewise.
3146 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3147
feeb1604
DN
3148 Clean up Solaris code.
3149 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3150 (LIB_MOTIF): Remove, configure takes care of this.
3151 (NOT_USING_MOTIF): Remove, unused.
3152 * xrdb.c: Remove #if 0-ed #include.
3153 (SYSV): Remove conditional for old SysV.
3154 * sysdep.c (closedir): Remove conditional code for Solaris,
3155 Solaris has closedir.
3156
a0d0b563
JD
31572010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3158
3159 * xsettings.c (read_and_apply_settings): Check if current_font is
3160 NULL before strcmp (Bug#6001).
3161
56bae7c7
DN
31622010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3163
3164 Clean up HP-UX files.
3165 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3166 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3167 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3168 * s/hpux10-20.h: ... to the only user, here.
3169
372b7a95
EZ
31702010-04-21 Eli Zaretskii <eliz@gnu.org>
3171
3172 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3173 use buffer-local values of paragraph-start and paragraph-separate.
3174 <paragraph_start_re, paragraph_separate_re>: Rename from
3175 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3176 (Bug#5992)
3177
f904c0f9
JD
31782010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3179
3180 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3181 current_tool_bar_style are new.
3182 (store_config_changed_event): Rename from store_font_changed_event.
3183 (XSETTINGS_TOOL_BAR_STYLE): New define.
3184 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3185 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3186 HAVE_XFT.
3187 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3188 store_config_changed_event.
f904c0f9
JD
3189 (parse_settings): Rename from parse_xft_settings. Read
3190 non-xft xsettings outside #ifdef HAVE_XFT.
3191 (read_settings): Renamed from read_xft_settings.
3192 (apply_xft_settings): Take current settings as parameter. Do not
3193 call read_(xft)_settings.
3194 (read_and_apply_settings): New function.
3195 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3196 read_and_apply_settings if there are settings to be read.
3197 (init_xsettings): Renamed from init_xfd_settings.
3198 Call read_and_apply_settings unconditionally.
3199 (xsettings_initialize): Call init_xsettings.
3200 (Ftool_bar_get_system_style): New function.
3201 (syms_of_xsettings): Define Qmonospace_font_name and
3202 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3203 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3204 dynamic-setting.
31a01b90 3205 Move misplaced HAVE_GCONF
f904c0f9
JD
3206
3207 * xsettings.h (Ftool_bar_get_system_style): Declare.
3208
3209 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3210 Qtext, Qboth, Qboth_horiz are new.
3211 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3212 Vtool_bar_style, tool_bar_max_label_size.
3213
3214 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3215
3216 * keyboard.c: QClabel is new.
3217 (parse_tool_bar_item): Take out QClabel from tool bar items.
3218 Try to construct a label if ther is no QClabel.
3219 (syms_of_keyboard): Intern :label as QClabel.
3220
3221 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3222 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3223 New.
3224
3225 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3226 dynamic-setting.el.
3227
3228 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3229 (xg_make_tool_item, xg_show_toolbar_item): New function.
3230 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3231 Call xg_make_tool_item to make a tool bar item.
3232 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3233
3234 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3235 into account for toolbars.
3236
c632dfda
JD
32372010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3238
3239 * data.c (make_blv): Declarations before code (Bug#5993).
3240
10efe302
GM
32412010-04-21 Glenn Morris <rgm@gnu.org>
3242
3243 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3244 Define using autoconf, not cpp.
3245 (LIBXSM): New variable, set by autoconf.
3246 (LIBXT): Use $LIBXSM.
3247
4285ac5a
DN
32482010-04-21 Dan Nicolaescu <local_user@dannlt>
3249
3ec759e7
DN
3250 Remove NOMULTIPLEJOBS, unused.
3251 * s/template.h (NOMULTIPLEJOBS):
3252 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3253
4285ac5a
DN
3254 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3255 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3256 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3257 detects -znocombreloc and passes it to the linker
3258 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3259
2807228d
GM
32602010-04-21 Glenn Morris <rgm@gnu.org>
3261
3262 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3263
574c05e2
KK
32642010-04-21 Karel Klíč <kklic@redhat.com>
3265
3266 * Makefile.in (LIBSELINUX_LIBS): New.
3267 (LIBES): Add $LIBSELINUX_LIBS.
3268 * eval.c, lisp.h (call7): New function.
3269 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3270 (Ffile_selinux_context, Fset_file_selinux_context):
3271 New functions.
3272 (Fcopy_file): New parameter preserve-selinux-context.
3273 (Frename_file): Preserve selinux context when renaming by copy-file.
3274
91eac4bb 32752010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3276 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3277
50426a04
JB
3278 Don't depend on cm.c or termcap.c on Windows, use stubs.
3279 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3280 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3281 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3282 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3283 (sys_tputs, sys_tgetstr): New stubs.
3284 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3285 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3286
938efb77
JB
32872010-04-20 Juanma Barranquero <lekktu@gmail.com>
3288
3289 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3290
b4bf28b7
SM
32912010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3292
8b1e1112
SM
3293 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3294 Just signal a warning rather than an error when inside a let.
3295 (Fmake_variable_frame_local): Add the same test.
3296
933ac235
SM
3297 * font.c (syms_of_font): Make the style table vars read-only.
3298
b4bf28b7
SM
3299 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3300 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3301
3302 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3303
93d68d0c
EZ
33042010-04-20 Eli Zaretskii <eliz@gnu.org>
3305
3306 Fix R2L paragraph display on TTY.
3307
3308 * xdisp.c (unproduce_glyphs): New function.
3309 (display_line): Use it when produced glyphs are discarded from R2L
3310 glyph rows.
3311 (append_composite_glyph): In R2L rows, prepend the glyph rather
3312 than appending it.
3313
3314 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3315 rather than append it. Set up the resolved_level and bidi_type
3316 attributes of the appended glyph.
283ccc18
EZ
3317 (produce_special_glyphs): Mirror the backslash continuation
3318 character in R2L lines.
93d68d0c 3319
283ccc18 3320 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3321
283ccc18
EZ
3322 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3323 append_stretch_glyph.
3324 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3325 off-by-one error in computing x at end of text in the row.
3326 (append_stretch_glyph): In reversed row, prepend the glyph rather
3327 than append it. Set resolved_level and bidi_type of the glyph.
3328 (extend_face_to_end_of_line): If the row is reversed, prepend a
3329 stretch glyph whose width is such that the rightmost glyph will be
3330 drawn at the right margin of the window. Fix off-by-one error on
3331 TTY frames in testing whether a line needs face extension. Fix
3332 face extension at ZV. If this is the last glyph row, use
3333 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3334 region face.
3335 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3336 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3337 row->continuation_lines_width.
283ccc18
EZ
3338 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3339 are at ZV. Fixes a crash when reseated to ZV by
3340 try_window_reusing_current_matrix.
45903529
EZ
3341 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3342 which happens with R2L glyph rows. Fixes a crash when inserting a
3343 character at end of an R2L line.
283ccc18
EZ
3344 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3345 treat them as having zero-width characters. Improve comments.
3346 Don't reverse pos_before and pos_after for reversed glyph rows.
3347 Set cursor.x to negative value when the cursor might be on the
3348 left fringe.
3349 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3350 left fringe, not the right one.
f951a506
EZ
3351 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3352 (erase_phys_cursor): For reversed cursor_row, support cursor on
3353 the left fringe.
3354
283ccc18
EZ
3355 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3356 of continuation indicators on the fringes.
3357 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3358 left fringe.
3359
f951a506
EZ
3360 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3361 draw cursor on the left fringe.
3362
3363 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3364 cursor on the left fringe.
3365
f951a506
EZ
3366 * dispnew.c (update_text_area): Handle reversed desired rows when
3367 the cursor is on the left fringe.
3368 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3369 below, not by 0, for when the cursor is on the left fringe.
3370
3bb49aaf
JD
33712010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3372
3373 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3374 widget is a scrollbar.
3375
c0be27fd
KH
33762010-04-20 Kenichi Handa <handa@m17n.org>
3377
3378 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3379 only when the arg CHARSET_LIST is nil.
3380
ce5b453a
SM
33812010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3382
3383 Make variable forwarding explicit rather the using special values.
3384 Basically, this makes the structure of buffer-local values and object
3385 forwarding explicit in the type of Lisp_Symbols rather than use
3386 special Lisp_Objects for that. This tends to lead to slightly more
3387 verbose code, but is more C-like, simpler, and makes it easier to make
3388 sure we handled all cases, among other things by letting the compiler
3389 help us check it.
3390 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3391 Removing forwarding objects.
3392 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3393 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3394 explicit rather than hiding them inside Lisp_Object "values".
3395 (XFWDTYPE): New macro.
3396 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3397 (XBUFFER_LOCAL_VALUE): Remove.
3398 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3399 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3400 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3401 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3402 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3403 Remove the Lisp_Misc_* header.
3404 (struct Lisp_Buffer_Local_Value): Redefine.
3405 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3406 (struct Lisp_Misc_Any): Add filler to get the right size.
3407 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3408 Lisp_Intfwd.
3409 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3410 (DEFVAR_KBOARD): Allocate a forwarding object.
3411 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3412 (let_shadows_global_binding_p): New function.
3413 (union Lisp_Val_Fwd): New type.
3414 (make_blv): New function.
3415 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3416 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3417 (swap_in_symval_forwarding, find_symbol_value, Fset)
3418 (let_shadows_buffer_binding_p, set_internal, default_value)
3419 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3420 (Fkill_local_variable, Fmake_variable_frame_local)
3421 (Flocal_variable_p, Flocal_variable_if_set_p)
3422 (Fvariable_binding_locus):
3423 * xdisp.c (select_frame_for_redisplay):
3424 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3425 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3426 * frame.c (store_frame_param):
3427 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3428 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3429 value structure.
3430 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3431 (clone_per_buffer_values): Only adjust markers into the current buffer.
3432 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3433 (Fbuffer_local_value, set_buffer_internal_1)
3434 (swap_out_buffer_local_variables):
3435 Adapt to the new symbol value structure.
3436 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3437 (defvar_per_buffer): Take a new arg for the fwd object.
3438 (buffer_lisp_local_variables): Return a proper alist (different fix
3439 for bug#4138).
3440 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3441 (Fgarbage_collect): Don't handle buffer_defaults specially.
3442 (mark_object): Handle new symbol value structure rather than the old
3443 special Lisp_Misc_* objects.
3444 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3445 * term.c (set_tty_color_mode):
3446 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3447 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3448 a buffer_local_flags.
3449 * print.c (print_object): Get rid of impossible forwarding objects.
3450
fd3998ff
EZ
34512010-04-19 Eli Zaretskii <eliz@gnu.org>
3452
3453 * bidi.c (bidi_get_type, bidi_get_category)
3454 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3455 (bidi_type_of_next_char, bidi_level_of_next_char):
3456 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3457
e42cd1a7
JB
34582010-04-19 Juanma Barranquero <lekktu@gmail.com>
3459
3460 * dired.c (Ffile_attributes): Fix typo in docstring.
3461
6e104790 34622010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3463
3464 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3465 NSInteger (Bug#5811).
3466
6e104790 34672010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3468
3469 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3470 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3471
6e104790 34722010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3473
3474 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3475
6e104790
SM
34762010-04-19 Chong Yidong <cyd@stupidchicken.com>
3477
3478 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3479 terminal frames (Bug#5837).
3480
37dcfea0
EZ
34812010-04-19 Eli Zaretskii <eliz@gnu.org>
3482
d1da276f
EZ
3483 * .gdbinit (xsubchartable): New command.
3484
37dcfea0
EZ
34852010-04-19 Eli Zaretskii <eliz@gnu.org>
3486
3487 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3488 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3489 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3490 and
3491 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3492
e9515805
SM
34932010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3494
3495 * alloc.c (Fpurecopy): Hash-cons if requested.
3496 (syms_of_alloc): Update purify-flag docstring.
3497
22aa44a8
JD
34982010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3499
3500 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3501 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3502
ebb5722e
EZ
35032010-04-17 Eli Zaretskii <eliz@gnu.org>
3504
3505 Fix a crash when an NSM character is inserted at BEGV.
3506
3507 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3508 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3509 NEUTRAL_B or UNKNOWN_BT.
3510
0f4442ef
EZ
35112010-04-16 Eli Zaretskii <eliz@gnu.org>
3512
3513 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3514 other rows with cursor unless they are different from this row and
3515 this row is part of a continued line. (Bug#5943)
3516
7d4e45f8
DN
35172010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3518
3519 * s/freebsd.h: Restore osreldate.h include.
3520 Suggested by Naohiro Aota.
3521
5ba5ec85
J
35222010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3523
3524 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3525
20af301d
CY
35262010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3527
3528 * s/cygwin.h: Avoid linking against static libgcc.
3529
a4b000fb
JL
35302010-04-15 Juri Linkov <juri@jurta.org>
3531
3532 * window.c: Add Qscroll_command.
3533 Remove Vscroll_preserve_screen_position_commands.
3534 (window_scroll_pixel_based, window_scroll_line_based): Check the
3535 `scroll-command' property on the last command instead of searching
3536 the last command in Vscroll_preserve_screen_position_commands.
3537 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3538 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3539 (scroll-preserve-screen-position): Doc fix.
3540 (Vscroll_preserve_screen_position_commands): Remove variable.
3541
bc319ba4
DN
35422010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3543
6bb24457
DN
3544 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3545
19d4c244
DN
35462010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3547
3548 Reduce cpp use in Makefile.in.
3549 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3550 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3551 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3552 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3553 (CRT0_COMPILE): Remove, inline it in the only user.
3554
32129746
JL
35552010-04-14 Juri Linkov <juri@jurta.org>
3556
3557 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3558 `scroll-up-command' and `M-v' from `scroll-down' to
3559 `scroll-down-command'.
3560
9013a7f8
JL
35612010-04-14 Juri Linkov <juri@jurta.org>
3562
3563 * window.c (Vscroll_preserve_screen_position_commands): New variable
3564 with the default value as the list of Qscroll_down and Qscroll_up.
3565 (window_scroll_pixel_based, window_scroll_line_based): Search the
3566 last command in the list Vscroll_preserve_screen_position_commands
3567 instead of comparing with Qscroll_up and Qscroll_down.
3568
4bef8d26
JD
35692010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3570
92848133
JD
3571 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3572 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3573 does that.
3574
4bef8d26
JD
3575 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3576 to zero.
3577
58b963f7
SM
35782010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3579
84164a0d
SM
3580 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3581
2b0a91e7
SM
3582 Try to solve the problem of spurious EOF chars in long lines of text
3583 sent to interactive subprocesses.
3584 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3585 (system_process_attributes): Remove unused var `ttotal'.
3586 * process.c (send_process): Don't bother breaking long line with EOF
3587 chars when talking to ttys any more.
3588 (wait_reading_process_output): Output a warning when called in such
3589 a way that it could block without being interruptible.
3590
58b963f7
SM
3591 Try to detect file modification within the same second.
3592 * buffer.h (struct buffer): New field modtime_size.
3593 * buffer.c (reset_buffer): Initialize it.
3594 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3595 (Fverify_visited_file_modtime): Check it.
3596 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3597 (Fset_visited_file_modtime): Set (or clear) it.
3598
01f5787b
SM
35992010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3600
3601 * process.c (status_notify): Remove unused var `ro'.
3602
83725342
JD
36032010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3604
3605 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3606 more than one visual (Bug#5938).
3607
b9465836
DN
36082010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3609
50426a04
JB
3610 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3611 Undefine.
b9465836 3612
8d9c8ece
DN
36132010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3614
b1f52161
DN
3615 Remove C_SWITCH_SYSTEM_TEMACS.
3616 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3617 (malloc, realloc, free): Use emacs, not temacs for conditional
3618 definition.
3619
3620 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3621 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3622
8d9c8ece
DN
3623 Use autoconf, not cpp for some variables.
3624 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3625 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3626 (ALL_CFLAGS): Use them as make variables.
3627 (really-lwlib, really-oldXMenu): Do not pass them.
3628
1ecb2d3f
JD
36292010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3630
3631 * xmenu.c (apply_systemfont_to_dialog): New.
3632 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3633
3a4fa2f2
SM
36342010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3635
97e53006
SM
3636 * process.c (exec_sentinel): Preserve current-buffer.
3637
3a4fa2f2
SM
3638 * process.c (read_process_output): Move the save-current-buffer to
3639 apply to both the filter and the non-filter branches.
3640
88df7221
DN
36412010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3642
3643 * s/msdos.h (UNEXEC): New definition.
3644
5634ff85
YM
36452010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3646
6eff5c3d
YM
3647 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3648 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3649
3650 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3651 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3652 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3653 TRY_WINDOW_CHECK_MARGINS.
3654
3655 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3656 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3657 width only when it is for padding.
5634ff85 3658
b13aef54
J
36592010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3660
3661 * xfns.c (Fx_show_tip): Call try_window in a loop until
3662 fonts_changed_p is zero (Bug#2423).
3663
21d28484
EZ
36642010-04-08 Eli Zaretskii <eliz@gnu.org>
3665
3666 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3667 the end of TEXT_AREA. (Bug#5856)
3668
0269ef77
JD
36692010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3670
3671 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3672 HAVE_GCONF.
3673
5930fe97
EZ
36742010-04-08 Eli Zaretskii <eliz@gnu.org>
3675
3676 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3677 prev.orig_type, for resolving type of NSM. (Bug#5858)
3678
99852628
JD
36792010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3680
3681 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3682 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3683 in current_font.
3684 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3685 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3686 New functions.
3687 (syms_of_xsettings): Initialize current_font.
3688 defsubr Sfont_get_system_normal_font.
99852628
JD
3689
3690 * xsettings.h (Ffont_get_system_normal_font,
3691 xsettings_get_system_normal_font): Declare.
3692
3693 * xfns.c (extern xlwmenu_default_font): Remove.
3694 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3695 to xlwmenu.c.
3696
3697 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3698 menu items in UTF-8.
3699
3700 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3701 (apply_systemfont_to_menu): New function.
3702 (set_frame_menubar, create_and_show_popup_menu): Call
3703 apply_systemfont_to_menu.
3704
7fc874c4
J
37052010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3706
3707 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3708 FRAME_LINE_TO_PIXEL_Y.
3709
3710 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3711 pixelwidth/height.
3712
863bf481
DN
37132010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3714
5e5a3b92
DN
3715 Simplify code for HP machines.
3716 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3717 for GNU_LINUX, not needed.
3718 (UNEXEC, NEED_BSDTTY): Move definitions...
3719 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3720
863bf481
DN
3721 * m/iris4d.h (UNEXEC): Move definition ...
3722 * s/irix6-5.h (UNEXEC): ... here.
3723
3e6bec3b
JD
37242010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3725
3726 * xfns.c (set_machine_and_pid_properties): New function.
3727 (Fx_create_frame): Call set_machine_and_pid_properties.
3728
2912322b
SM
37292010-04-03 Eli Zaretskii <eliz@gnu.org>
3730
1502b819
EZ
3731 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3732 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3733 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3734
2912322b
SM
3735 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3736 in this function. (Bug#5703)
3737
37382010-04-03 Chong Yidong <cyd@stupidchicken.com>
3739
3740 * nsterm.h: Fix last change.
3741
c435b432
DN
37422010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3743
a568f507
DN
3744 * m/intel386.h (NO_REMAP): Move definition ...
3745 * s/msdos.h (NO_REMAP): ... here.
3746
4cd9f6c2
DN
3747 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3748
c435b432
DN
3749 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3750 used on those platforms.
3751
42a2c622
DN
37522010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3753
3754 Remove extern errno declarations.
3755 * xterm.c:
3756 * xrdb.c:
3757 * w32term.c:
3758 * unexec.c:
3759 * unexaix.c:
3760 * sysdep.c:
3761 * process.c:
3762 * lread.c:
3763 * keyboard.c:
3764 * floatfns.c:
3765 * filelock.c:
3766 * fileio.c:
3767 * emacs.c (main):
3768 * ecrt0.c:
3769 * dispnew.c:
3770 * callproc.c:
3771 * buffer.c: Remove errno extern declarations.
3772 * s/netbsd.h (NEED_ERRNO): Remove.
3773
8224f93d
DN
37742010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3775
3776 Remove all uses of LIBX11_SYSTEM.
3777 * Makefile.in (LIBX11_SYSTEM): Remove.
3778 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3779 instead.
3780
814062c7
EZ
37812010-04-01 Eli Zaretskii <eliz@gnu.org>
3782
ed68db4d
EZ
3783 Remove support for DJGPP v1.x (bug#5813).
3784
3785 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3786 * s/msdos.h:
3787 * unexec.c (make_hdr, copy_text_and_data):
3788 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3789 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3790 (IT_set_terminal_modes, __write, _rename, gethostname)
3791 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3792 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3793 the value of __DJGPP__.
ed68db4d
EZ
3794 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3795 compatibility code.
8224f93d
DN
3796 * lread.c:
3797 * gmalloc.c (memalign):
3798 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3799 * emacs.c (main):
3800 * dosfns.c (init_dosfns):
ed68db4d
EZ
3801 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3802
52f4d8d5
EZ
38032010-04-01 Eli Zaretskii <eliz@gnu.org>
3804
814062c7
EZ
3805 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3806 string with `cursor' property comes from an `after-string'
3807 overlay. (Bug#5816)
3808
0dc2e11d
GM
38092010-04-01 Glenn Morris <rgm@gnu.org>
3810
3811 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3812 Define as Makefile variables.
3813 (LIBX): Use above variables rather than directly using autoconf.
3814
1d29df59
DN
38152010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3816
3817 Clean up BSD_SYSTEM use.
3818 * xterm.c:
3819 * process.c:
3820 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3821 for including <sys/ioctl.h>.
3822 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3823 code is only used for MSDOS.
3824
1546c559
JL
38252010-03-31 Juri Linkov <juri@jurta.org>
3826
3827 * image.c: Add `Qextension_data'.
3828 (syms_of_image): Initialize and staticpro `Qextension_data'.
3829 (Fimage_metadata): Rename from `Fimage_extension_data'.
3830 (gif_load): Put GIF extension data to the property
3831 `Qextension_data'.
3832
6521c534
CY
38332010-03-31 Chong Yidong <cyd@stupidchicken.com>
3834
3835 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3836 * nsterm.h: Fix prototype.
3837
52c30783
EZ
38382010-03-31 Eli Zaretskii <eliz@gnu.org>
3839
3840 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3841 trailing whitespace in right-to-left rows.
3842
855a0da7
SM
38432010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3844
3845 Get rid of the direct_output optimizations.
3846 * keyboard.c (nonundocount): Remove extern declaration.
3847 (command_loop_1): Remove brittle optimisation for cheap and
3848 common operations.
3849 * xdisp.c (redisplay_internal): Don't bother checking
3850 redisplay_performed_directly_p any more.
3851 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3852 any more.
3853 * dispnew.c (redisplay_performed_directly_p)
3854 (direct_output_for_insert, direct_output_forward_char):
3855 * dispextern.h (redisplay_performed_directly_p)
3856 (direct_output_for_insert, direct_output_forward_char): Remove.
3857 * cmds.c (nonundocount): Make it static.
3858
85738751 38592010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3860
3861 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3862
85738751 38632010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3864
3865 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3866 invisible (Bug#5766).
3867
85738751 38682010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3869
855a0da7
SM
3870 * xdisp.c (x_consider_frame_title, update_window_cursor):
3871 Remove HAVE_NS conditionals.
194d44e7 3872 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3873
3874 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3875 filename for the title.
3876 (ns_set_doc_edited): Do nothing if the selected window is a
3877 minibuffer window.
3878
3879 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3880 ns_set_doc_edited.
3881
3882 * nsterm.m: Remove unneeded prototype.
3883
85738751 38842010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3885
3886 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3887 in the DOC file. (Bug#5336)
3888
85738751 38892010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3890
3891 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3892
75d1428c
SM
38932010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3894
3895 * window.c (keys_of_window): Remove redundant/overridden bindings.
3896
82043cfb
EZ
38972010-03-30 Eli Zaretskii <eliz@gnu.org>
3898
3899 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3900 Restore original behavior when the iterator is not bidi_p.
3901
b5dd0ae7
DN
39022010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3903
3904 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3905
bd924a5d
EZ
39062010-03-30 Eli Zaretskii <eliz@gnu.org>
3907
3908 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3909 are outside the range of cached character positions.
3910
3580374b
JB
39112010-03-30 Juanma Barranquero <lekktu@gmail.com>
3912
3913 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3914
a7b02820
EZ
39152010-03-30 Eli Zaretskii <eliz@gnu.org>
3916
3917 Initial support for bidirectional editing.
3918
3919 * Makefile.in (obj): Include bidi.o.
3920 (bidi.o): New target.
3921
3922 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3923 ($(BLD)/bidi.$(O)): New target.
3924
3925 * bidi.c: New file.
3926
3927 * buffer.h (struct buffer): New members bidi_display_reordering
3928 and bidi_paragraph_direction.
3929
3930 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3931 and bidi_paragraph_direction.
3932 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3933 and bidi-paragraph-direction.
3934 (Fbuffer_swap_text): Swap the values of
3935 bidi_display_reordering and bidi_paragraph_direction.
3936
3937 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3938 (bidi_type_t, bidi_dir_t): New types.
3939 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3940 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3941 prev_stop, base_level_stop, and eol_pos.
3942 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3943 (IT_STACK_SIZE): Enlarge to 5.
3944 (struct glyph_row): New member reversed_p.
3945 <string_buffer_position>: Update prototype.
3946 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3947 glyph_row if bidi_it.paragraph_dir == R2L.
3948 (struct glyph): New members resolved_level and bidi_type.
3949
3950 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3951 processing or buffer's direction is right-to-left.
3952 (prepare_desired_row): Preserve the reversed_p flag.
3953 (row_equal_p): Compare the reversed_p attributes as well.
3954
3955 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3956 bidi_init_it and set it->paragraph_embedding from the current
3957 buffer's value of bidi_paragraph_direction.
3958 (reseat_1): Initialize bidi_it.first_elt.
3959 (set_iterator_to_next, next_element_from_buffer): Use the value of
3960 paragraph_embedding to determine the paragraph direction.
3961 (set_iterator_to_next): Under bidi reordering, call
3962 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3963 new_paragraph flag is set in the bidi iterator.
3964 (next_element_from_buffer): If bidi_it.first_elt is set,
3965 initialize paragraph direction and find the first character to
3966 display in the visual order. If reseated to a middle of a line,
3967 prime the bidi iterator starting at the line's beginning. Handle
3968 the situation where we overstepped stop_charpos due to
3969 non-linearity of the bidi iteration. Likewise for when we back up
3970 beyond the previous stop_charpos. When moving across stop_charpos,
3971 record it in prev_stop.
3972 (display_line): Set row->end and it->start for the next row to the
3973 next character in logical order. Always extend reversed_p rows to
3974 the end of line, even if they end at ZV. Copy the reversed_p flag
3975 to the next glyph row. Keep calling set_cursor_from_row for
3976 bidi-reordered rows even if we already have a possible candidate
3977 for cursor position. Set row_end after all the row's glyphs have
3978 been produced, by looping over the glyphs. Record the position
3979 after EOL in it->eol_pos, and use it to set end_pos of the last
3980 row produced for a continued line.
3981 <Qright_to_left, Qleft_to_right>: New variables.
3982 (syms_of_xdisp): Initialize and staticpro them.
3983 (string_buffer_position_lim): New function.
3984 (string_buffer_position): Most of code moved to
3985 string_buffer_position_lim. Last argument and return value are
3986 now EMACS_INT; all callers changed.
3987 (set_cursor_from_row): Rewritten to support bidirectional text and
3988 reversed glyph rows.
3989 (text_outside_line_unchanged_p, try_window_id): Disable
3990 optimizations if we are reordering bidirectional text and the
3991 paragraph direction can be affected by the change.
3992 (append_glyph, append_composite_glyph)
3993 (produce_image_glyph, append_stretch_glyph): Set the
3994 resolved_level and bidi_type members of each glyph.
3995 (append_glyph): If the glyph row is reversed, prepend the glyph
3996 rather than appending it.
3997 (handle_stop_backwards): New function.
3998 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3999 (reseat): call handle_stop_backwards to recompute prev_stop and
4000 base_level_stop for the new position.
4001 (handle_invisible_prop): Under bidi iteration, skip invisible text
4002 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4003 paragraph direction. Update IT->prev_stop after skipping
4004 invisible text.
4005 (move_it_in_display_line_to): New variables prev_method
4006 and prev_pos. Compare for strict equality in
4007 BUFFER_POS_REACHED_P.
4008 (try_cursor_movement): Examine all the candidate rows that occlude
4009 point, to return the best match. If rows are bidi-reordered
4010 and point moved backwards, back up to the row that is not a
4011 continuation line, and start looking for a suitable row from
4012 there.
4013
4014 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4015 rather than appending, if the glyph_row's reversed_p flag is set.
4016 Set the resolved_level and bidi_type members of each glyph.
4017
4018 * .gdbinit (pbiditype): New command.
4019 (pgx): Use it to display bidi level and type of the glyph.
4020 (pitx): Display some bidi information about the iterator.
4021 (prowlims, pmtxrows): New commands.
4022
32a8894e
DN
40232010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4024
4025 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4026 * s/usg5-4.h (LIBS_DEBUG):
4027 * s/irix6-5.h (C_DEBUG_SWITCH):
4028 * s/gnu-linux.h (LIBS_DEBUG):
4029 * s/darwin.h (LIBS_DEBUG):
4030 * s/bsd-common.h (LIBS_DEBUG):
4031 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4032 * m/iris4d.h (LIBS_DEBUG):
4033 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4034
4035 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4036 (LIBS_DEBUG): Remove definition.
4037
649dbf36
CY
40382010-03-27 Chong Yidong <cyd@stupidchicken.com>
4039
4040 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4041 Windows.
4042
cad4261f
YM
40432010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4044
4045 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4046 `connect' (Bug#5723).
4047
cd591dbc
HE
40482010-03-25 Helmut Eller <eller.helmut@gmail.com>
4049
4050 * process.c (Fmake_network_process): Call `select' for interrupted
4051 `connect' rather than creating new socket (Bug#5173).
4052
e867cb5d 40532010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4054
4055 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4056
4057 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4058
4059 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4060
e867cb5d 40612010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4062
4063 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4064 XLoadQueryFont.
4065
e867cb5d 40662010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4067
4068 * coding.c (decode_coding_ccl): Fix previous change for the
4069 multibyte case.
fb608df3
KH
4070 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4071 case that the output buffer is fullfilled.
4072 (encode_coding): Setup ccl program here.
fbdc1721 4073
5845f0ed
DN
40742010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4075
814fb708
DN
4076 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4077
5845f0ed
DN
4078 Simplify LIBS_MACHINE definitions.
4079 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4080 * m/iris4d.h (LIBS_MACHINE): Likewise.
4081 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4082 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4083 * s/netbsd.h: Remove commented out code.
5845f0ed 4084
b7064064
DN
40852010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4086
df7734b2
DN
4087 Remove dead code dealing with POSIX_SIGNALS.
4088 * atimer.c (set_alarm): Remove dead code, all USG systems define
4089 POSIX_SIGNALS.
4090 * data.c (arith_error): Likewise.
4091 * keyboard.c (input_available_signal, handle_user_signal)
4092 (interrupt_signal): Likewise.
4093 * process.c (sigchld_handler): Likewise.
4094 (create_process): Remove if 0 code. Remove HPUX conditional when
4095 !defined (POSIX_SIGNALS), it cannot be true.
4096 * syssignal.h: Remove USG5_4 and USG conditionals when
4097 !POSIX_SIGNALS, they cannot be true.
4098
b7064064
DN
4099 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4100 NO_SOCK_SIGIO, not used anymore.
4101
55da5ee3
DN
41022010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4103
0be96e3a
DN
4104 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4105 support vax on BSDs.
4106
55da5ee3
DN
4107 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4108 * s/aix4-2.h (ORDINARY_LINK): ... here.
4109
c0282183
AS
41102010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4111
82c3d67a
AS
4112 * Makefile.in (abs_builddir): Define.
4113 (bootstrap_exe): Use it.
4114 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4115
3613edce
SM
41162010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4117
4118 * Makefile.in (bootstrap_exe): Use an absolute name.
4119
7f110ddc
DN
41202010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4121
22e87574
DN
4122 Remove support for old GNU/Linux using libc version 5.
4123 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4124 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4125
05a670e6
DN
4126 Consolidate redundant definitions in s/bsd-common.h.
4127 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4128 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4129 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4130 doing it in all files that include this one.
4131 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4132 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4133 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4134 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4135 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4136 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4137 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4138 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4139 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4140
2968f561
DN
4141 Consolidate redundant definitions.
4142 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4143 it's undefined in all files that include this one.
4144 (POSIX_SIGNALS): Define here instead of doing it in all files that
4145 include this one.
4146 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4147 (POSIX_SIGNALS): Do not define.
4148 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4149 (POSIX_SIGNALS): Do not define.
4150 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4151 (POSIX_SIGNALS): Do not define.
4152
15d25dc0
DN
4153 Remove support for old UNIX System V systems.
4154 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4155 * s/usg-5-4-2.h: Remove.
4156
07e339e4
DN
4157 Remove support for Solaris on PPC and for old versions.
4158 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4159 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4160 that cancel each other.
4161 * s/sol2-3.h:
4162 * s/sol2-4.h:
4163 * s/sol2-5.h: Remove.
4164 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4165 (NO_REMAP): Remove, unused.
4166 (UNEXEC): Move definition ...
4167 * s/aix4-2.h (UNEXEC): ... here.
4168
7f110ddc
DN
4169 * s/openbsd.h: Remove support for non-ELF and for systems that do
4170 not support shared libraries.
4171 * s/netbsd.h:
4172 * s/freebsd.h: Likewise.
4173
605f35cd
DN
41742010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4175
4176 Remove non-working support for lynxos 3.0.
4177 * s/lynxos.h: Remove file.
4178
4179 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4180 COFF_BSD_SYMBOLS, nothing defines it anymore.
4181
aed71cf4
DN
41822010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4183
4184 Remove obsolete uses of HAVE_SHM.
4185 * emacs.c (standard_args):
4186 (Fdump_emacs):
4187 (syms_of_emacs): Remove code depending on HAVE_SHM.
4188
4189 * alloc.c: Remove HAVE_SHM dependent definition.
4190
4191 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4192
aded53ff
GM
41932010-03-18 Glenn Morris <rgm@gnu.org>
4194
17284745
GM
4195 * emacs.c (USAGE4): Hard-code bug address.
4196 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4197 (bug_reporting_address): Remove.
4198 (main): Don't call bug_reporting_address.
4199
aded53ff
GM
4200 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4201 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4202
303500aa
CY
42032010-03-15 Chong Yidong <cyd@stupidchicken.com>
4204
4205 * xfns.c (Fx_create_frame):
4206 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4207 on left.
4208
cef3058f
CY
42092010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4210
4211 * editfns.c (Fformat): Account for string precision when computing
4212 field width (Bug#5710).
4213
a647d59d
CY
42142010-03-12 Chong Yidong <cyd@stupidchicken.com>
4215
4fa42018
CY
4216 * xfns.c (Fx_create_frame): Set default to Qright.
4217
a647d59d
CY
4218 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4219 all window systems.
4220
6da23aaa
EZ
42212010-03-12 Eli Zaretskii <eliz@gnu.org>
4222
a96f6398 4223 These changes remove termcap.c from the build on Posix platforms.
83d02def 4224 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4225 (MSDOS_OBJ): ...to here.
4226 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4227 now identical to when LIBS_TERMCAP is defined.
4228
4229 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4230
4231 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4232
a96f6398 4233 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4234
288f9fc0
CY
42352010-03-10 Chong Yidong <cyd@stupidchicken.com>
4236
4237 * Branch for 23.2.
4238
d48cd3f4
SM
42392010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4240
4241 Cleanup setup of gl_state in various parts of the code.
4242 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4243 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4244 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4245 (skip_chars):
4246 * regex.c (regex_compile): Use it.
4247 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4248 it's now set in regex_compile when/if we need it.
4249
618db430
SM
42502010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4251
c0335e02
SM
4252 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4253 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4254 (QUIT): Use it to consolidate code and remove redundancy.
4255 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4256
254c06a8
SM
4257 * regex.c (regex_compile): Setup gl_state as well.
4258
618db430
SM
4259 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4260 (in_classes): Use CONSP before XCAR/XCDR.
4261
233f0c9f
CY
42622010-03-03 Chong Yidong <cyd@stupidchicken.com>
4263
4264 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4265 definitions, so that keyboard macros are correctly handled
4266 (Bug#5481).
4267
75f80e63
EZ
42682010-03-02 Eli Zaretskii <eliz@gnu.org>
4269
4270 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4271 text that could be relocated inside the call to emacs_mule_char.
4272 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4273 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4274
dcfb9bc4
KH
42752010-03-02 Kenichi Handa <handa@m17n.org>
4276
fc9a17bc
KH
4277 * character.c (parse_str_as_multibyte): Fix handling of the
4278 multibyte form of raw-bytes.
4279 (str_as_multibyte): Likewise.
4280
dcfb9bc4
KH
4281 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4282 form of raw-bytes.
4283
412c01b6
CY
42842010-02-28 Chong Yidong <cyd@stupidchicken.com>
4285
4286 * charset.c (load_charset_map_from_file)
4287 (load_charset_map_from_vector): Zero out allocated
4288 charset_map_entries before using them.
4289
df7e1ea0
AS
42902010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4291
4292 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4293
fe69a722
CY
42942010-02-27 Chong Yidong <cyd@stupidchicken.com>
4295
4ed28cf4
CY
4296 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4297 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4298
7379cfce
KH
42992010-02-26 Kenichi Handa <handa@m17n.org>
4300
f88cc4d6
KH
4301 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4302
7379cfce
KH
4303 * xdisp.c (reseat_to_string): Fix previous change.
4304
cf2fdcfb
CY
43052010-02-26 David Reitter <david.reitter@gmail.com>
4306
4307 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4308 Lisp_Object (Bug#4736).
4309
cc6c7c75
KH
43102010-02-25 Kenichi Handa <handa@m17n.org>
4311
4312 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4313
32e737d7
JD
43142010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4315
4316 * xterm.c (XTflash): Move declarations before statements.
4317
4318 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4319 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4320 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4321 (xg_create_tool_bar): Remove unused variables.
4322 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4323 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4324
676cae9f
CY
43252010-02-21 Chong Yidong <cyd@stupidchicken.com>
4326
4327 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4328
886cc2b8
SM
43292010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4330
4331 * term.c (fatal): Add a final \n if needed (bug#5596).
4332
ddb2d8e2
CY
43332010-02-18 Chong Yidong <cyd@stupidchicken.com>
4334
4335 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4336
2a4f8d3d
GM
43372010-02-18 Glenn Morris <rgm@gnu.org>
4338
4339 * callint.c (Finteractive): Doc fix.
4340
ebaf11b6
KH
43412010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4342
886cc2b8
SM
4343 * coding.c (record_conversion_result):
4344 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4345 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4346 memory allocation error.
4347
d0396581
KH
43482010-02-17 Kenichi Handa <handa@m17n.org>
4349
886cc2b8
SM
4350 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4351 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4352 (decode_coding): Setup ccl program here. Keep looping when the
4353 decoder stopped because the output buffer is
4354 fullfilled (bug#5534).
4355
4356 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4357
98599f74
JD
43582010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4359
471e4f04 4360 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4361 bug #5571.
886cc2b8 4362 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4363 overdrawn.
98599f74 4364
182659ae
JD
43652010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4366
4367 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4368 doing_interact here.
4369 (ice_connection_closed): New function.
4370 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4371 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4372 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4373 returns I/O error.
4374 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4375 bug #5512.
4376
9be32c4e 43772010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4378
4379 * nsfont.m (nsfont_open): The system's value for the font descent
4380 is negative, so round it down to avoid clipping.
4381
a2f3eb19
CY
43822010-02-06 Chong Yidong <cyd@stupidchicken.com>
4383
4384 * charset.c (load_charset_map_from_file)
4385 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4386 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4387
3088147c
CY
43882010-02-05 Chong Yidong <cyd@stupidchicken.com>
4389
4390 * charset.c (load_charset_map_from_file): Allocate large
4391 charset_map_entries structure on the heap rather than the stack.
4392 (Bug#5526).
4393
b57d9029
KH
43942010-01-31 Kenichi Handa <handa@m17n.org>
4395
4396 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4397 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4398
c67d885b
CY
43992010-01-31 Chong Yidong <cyd@stupidchicken.com>
4400
4401 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4402 <deactivated@gmail.com> (Bug#3605).
4403
8fab2362
CY
44042010-01-31 David De La Harpe Golden <david@harpegolden.net>
4405
4406 * fileio.c (Frename_file): Correctly rename symlinks to
4407 directories (Bug#5496).
4408
cb2a62f2
CY
44092010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4410
4411 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4412
944c7a26
AS
44132010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4414
4415 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4416
c024ac08
CY
44172010-01-29 Chong Yidong <cyd@stupidchicken.com>
4418
4419 * frame.c (DEFAULT_ROWS): Change default to 35.
4420
4421 * xfns.c (x_default_font_parameter): Change default XFT font to
4422 monospace-10 (Bug#3643).
4423
af93af83
EZ
44242010-01-29 Eli Zaretskii <eliz@gnu.org>
4425
4426 * w32inevt.c (key_event): Remove unnecessary comparison of
4427 event->uChar.AsciiChar with 128.
4428
ca0eb708
CY
44292010-01-28 Chong Yidong <cyd@stupidchicken.com>
4430
b242dbfc
CY
4431 * fileio.c (Frename_file): Fix last change (Bug#5487).
4432
ca0eb708
CY
4433 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4434
4435 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4436
45d45af5
JD
44372010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4438
4439 * xfns.c (Fx_create_frame): Remove window size matching code from
4440 2010-01-15.
a73f9c9d 4441 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4442
7e233730
JR
44432010-01-27 Jason Rumney <jasonr@gnu.org>
4444
4445 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4446 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4447
86e893e3
KH
44482010-01-27 Kenichi Handa <handa@m17n.org>
4449
4450 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4451 pattern string (Bug#4209).
86e893e3 4452
8719abec
CY
44532010-01-27 David De La Harpe Golden <david@harpegolden.net>
4454
4455 * fileio.c (Frename_file): Call copy-directory and
4456 delete-directory for directories, in order to handle cross-device
4457 renaming (Bug#3353).
4458
844794c8
JD
44592010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4460
aa3e13b5 4461 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4462 sizes 24 and 10. Bug #3643.
844794c8 4463
bd4b5750
SM
44642010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4465
8dc1adf6 4466 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4467 * keymap.c (shadow_lookup): Add `remap' arg.
4468 (describe_map, describe_vector): Update calls to shadow_lookup.
4469 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4470 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4471 perform remapping during shadow_lookup check of remapped_sequences.
4472
285d07e2
CY
44732010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4474
4475 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4476 png_check_sig, which has been removed in libpng 1.4.
4477
c6d09b8d
CY
44782010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4479
4480 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4481 lacks this header file).
4482
3d782998
YM
44832010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4484
4485 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4486 as in Emacs 22.
4487
2aff7c53
YM
44882010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4489
4490 * lisp.h (make_pure_string): String pointer arg now points to const.
4491
4492 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4493 args now point to const.
4494
74327f7a
EZ
44952010-01-22 Eli Zaretskii <eliz@gnu.org>
4496
4497 * lread.c (Fload): Don't treat files without .elc extension as
4498 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4499 them. (bug#5303)
4500
4d1e6632
KH
45012010-01-20 Kenichi Handa <handa@m17n.org>
4502
4503 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4504 treat the source as actual byte sequence.
4505
1fdede8f
AM
45062010-01-19 Alan Mackenzie <acm@muc.de>
4507
4508 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4509 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4510 `signal_after_change_p' to `coherent_change_p', and make the
4511 invocation of `modify_region' conditional on it.
4512
67477f30
JD
45132010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4514
4515 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4516 for debug purpose.
4517 (syms_of_xsettings): Declare xft-settings.
4518
244b023e
CY
45192010-01-18 Chong Yidong <cyd@stupidchicken.com>
4520
4521 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4522
617364fe
CY
45232010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4524
4525 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4526
4fe22cdf
CY
45272010-01-16 Chong Yidong <cyd@stupidchicken.com>
4528
4529 * emacs.c (standard_args): Adjust arg priorities to reflect how
4530 they are processed in startup.el.
4531
e118d2be
AS
45322010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4533
4534 * Makefile.in (lisp, shortlisp): Update.
4535
523ae620
SM
45362010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4537
4538 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4539 code, link the new kboard into all_kboard before running Lisp code,
4540 and protect the new terminal with GCPRO (Bug#5365).
4541 (x_term_init): Remove unused var `atom'.
4542 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4543
f0d13888
JD
45442010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4545
4546 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4547 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4548 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4549 this. Bug #3643.
f0d13888 4550
cc320f07
KH
45512010-01-15 Kenichi Handa <handa@m17n.org>
4552
4553 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4554
7ffdf101
CY
45552010-01-15 Chong Yidong <cyd@stupidchicken.com>
4556
4557 * nsterm.m (Qnone): Define.
4558
4559 * nsfns.m (Qnone): Move definition to nsterm.m.
4560
d12bd917
KH
45612010-01-14 Kenichi Handa <handa@m17n.org>
4562
4563 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4564 systems.
4565
d9a7c140
KH
45662010-01-14 Kenichi Handa <handa@m17n.org>
4567
4568 Make auto-composition work on all buffers even if they are
4569 fundamental mode.
4570
4571 * composite.c (Vauto_composition_mode): New variable.
4572 (composition_compute_stop_pos): Check Vauto_composition_mode
4573 instead of Vauto_composition_function.
4574 (composition_adjust_point, Ffind_composition_internal): Likewise.
4575 (syms_of_composite): Declare Lisp variable
4576 "auto-composition-mode" here.
4577
63286bb2
CY
45782010-01-13 Chong Yidong <cyd@stupidchicken.com>
4579
4580 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4581 during call to vendor-specific-keysyms (Bug#5365).
4582
c2623ee7
YM
45832010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4584
4585 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4586 Call SIGNAL_THREAD_CHECK (Bug#5333).
4587
4588 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4589 Call SIGNAL_THREAD_CHECK.
4590
0b5397c2
SM
45912010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4592
4593 Try to fix bug#5314. This is probably not the final word, tho.
4594 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4595 recent-auto-save-p as a side-effect.
4596 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4597 * buffer.c (Fkill_buffer, reset_buffer):
4598 * editfns.c (Fsubst_char_in_region):
4599 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4600 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4601
dc954cb2
KH
46022010-01-13 Kenichi Handa <handa@m17n.org>
4603
4604 Display buffer name, etc. in mode line by composing correctly.
4605
4606 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4607 STRING is not nil.
0b5397c2 4608 (display_mode_element): Adjust for the change of
dc954cb2
KH
4609 decode_mode_spec and display_line.
4610 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4611 (display_string): Handle the case that STRING is non-null and
4612 LISP_STRING is not nil.
4613
0b5397c2
SM
4614 * xterm.c (x_draw_composite_glyph_string_foreground):
4615 Pay attention to s->face->overstrike.
dc954cb2
KH
4616
4617 * composite.c (composition_reseat_it): Don't check PT if STRING is
4618 non nil.
4619
4a00eaca
YM
46202010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4621
4622 * keyboard.c (read_char): Don't apply previous change when current
4623 buffer is unchanged by command execution.
4624
60abb287
JD
46252010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4626
4627 * keyboard.c (read_char): Return after executing from special map.
4628
893db5bc
GM
46292010-01-12 Glenn Morris <rgm@gnu.org>
4630
4631 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4632 bug-gnu-emacs rather than emacs-pretest-bug.
4633
4d03ece0
CY
46342010-01-11 Chong Yidong <cyd@stupidchicken.com>
4635
4636 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4637 initializing the Lisp variables that depend on them.
4638
1df47e38
YM
46392010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4640
4641 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4642 Clear areas that will not be updated after change of menu bar lines.
4643 Clear the menu bar window's current matrix when the window gets empty.
4644
2f1c6384
CY
46452010-01-09 Chong Yidong <cyd@stupidchicken.com>
4646
e398c61c
CY
4647 * intervals.h, textprop.c (extend_property_ranges): Return value
4648 and args changed. Discard properties that begin at or after the
4649 new end (Bug#5306).
4650
4651 * editfns.c (Fformat): Caller changed.
4652
e5a29a10
CY
4653 * nsterm.m (ns_set_default_prefs): Delete function.
4654 (syms_of_nsterm): Initialize ns_command_modifier,
4655 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4656 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4657
2f1c6384
CY
4658 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4659 position (Bug#4040).
4660
d427a9fa
EZ
46612010-01-09 Eli Zaretskii <eliz@gnu.org>
4662
4663 * editfns.c (Ffloat_time): Doc fix.
4664
21b9df2f
JD
46652010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4666
4667 * xfns.c (Fx_create_frame): Don't create frame larger than display
4668 by default bug#3643.
4669
4b00d3b1
YM
46702010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4671
4672 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4673 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4674 windows above internal border.
4675
4676 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4677 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4678 windows above internal border.
4679
4680 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4681 tool bar windows specially.
4682
4683 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4684
4685 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4686 specially.
4687 (XTflash): Take account of menu bar height.
4688
4689 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4690 specially.
4691
5075d853
JD
46922010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4693
ac146f82 4694 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4695 also be true before we can return early (bug #5339).
4696
474217c8
CY
46972010-01-06 David Reitter <david.reitter@gmail.com>
4698
4699 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4700 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4701 (Bug#3233).
4702
c0e6d47d
JD
47032010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4704
d0cf45b7
JD
4705 * font.c (font_open_entity): Enable chache and call cached_font_ok
4706 for the driver if defined.
4707 (QCuser_spec): New symbol.
4708 (font_spec_from_name): Save name as user-spec.
4709 (font_load_for_lface): Keep user-spec instead of name.
4710 (font_open_by_name): Save name as user-spec.
4711 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4712 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4713
4714 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4715 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4716 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4717
4718 * font.h (struct font_driver): Add cached_font_ok.
4719
c0e6d47d
JD
4720 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4721
7c583cd8
JD
47222010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4723
4724 * xterm.c (x_new_font): Move code for setting rows/cols before
4725 resizing ...
ac146f82 4726 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4727
4728 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4729 (xg_frame_resized, xg_frame_set_char_size):
4730 Call xg_clear_under_internal_border.
7c583cd8 4731 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4732
03f77f0a
CY
47332010-01-05 Chong Yidong <cyd@stupidchicken.com>
4734
4735 * keyboard.c (read_key_sequence): Catch keyboard switch after
4736 making a new tty frame (Bug#5095).
4737
2a1ef5be
KH
47382010-01-05 Kenichi Handa <handa@m17n.org>
4739
4740 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4741
e3eb1dae
SM
47422010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4743
4744 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4745 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4746 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4747
777013f2
MA
47482010-01-03 Michael Albinus <michael.albinus@gmx.de>
4749
4750 * dbusbind.c (xd_add_watch): Improve debug message.
4751 (xd_remove_watch): Improve debug message. If DATA is the session
4752 bus, unset D-Bus session environment.
4753 (Fdbus_init_bus): Pass the bus as argument to
4754 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4755
8932b1c2
CY
47562010-01-01 Chong Yidong <cyd@stupidchicken.com>
4757
87231e2c
CY
4758 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4759
4801c5fa
CY
4760 * lread.c (syms_of_lread): Make it clearer that these are the
4761 names of loaded files (Bug#5068).
4762
8932b1c2
CY
4763 * eval.c (run_hook_with_args): Handle the case where the global
4764 value has the obsolete single-function form (Bug#5026).
4765
11e3c684
CY
47662009-12-27 Chong Yidong <cyd@stupidchicken.com>
4767
4768 * minibuf.c (Fall_completions): Minor optimization.
4769
5b28ce35
EZ
47702009-12-26 Eli Zaretskii <eliz@gnu.org>
4771
5ce6e4f4
JB
4772 * .gdbinit (pgx): Fix display of composite glyphs.
4773 Display cmp.from and cmp.to as well.
4774 (pitx): Fix last change.
5b28ce35 4775
bcffff46
KH
47762009-12-25 Kenichi Handa <handa@m17n.org>
4777
4778 * composite.h (composition_adjust_point): Update prototype.
4779
4780 * composite.c (composition_reseat_it): Don't make a composition
4781 spanning over point.
4782 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4783 composable characters.
4784 (composition_adjust_point): New arg NEW_PT. Callers changed.
4785
4786 * keyboard.c (command_loop_1): Force redisplay if the last point
4787 was within a composition.
4788 (adjust_point_for_property): Don't adjust point for automatic
4789 composition when called after buffer modification.
4790
3f670e9a
EZ
47912009-12-19 Eli Zaretskii <eliz@gnu.org>
4792
5ce6e4f4
JB
4793 * .gdbinit (pitx): Don't use enum names, use their values.
4794 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4795 (pgx): Don't use enum names, use their values.
4796 (pitmethod): New helper command.
4797 (pitx): Use it to display iteration method.
4798 (pgrowit): New command.
4799
ad903955
EZ
4800 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4801
3f670e9a
EZ
4802 Update dependencies in Makefile.in.
4803
4804 * Makefile.in (alloc.o): Depend on termhooks.h.
4805 (atimer.o): Depend on blockinput.h.
4806 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4807 and frame.h.
4808 (callint.o): Depend on systime.h, coding.h, and composite.h.
4809 (callproc.o): Depend on buffer.h.
4810 (casefiddle.o): Don't depend on charset.h.
4811 (casetab.o): Depend on character.h.
4812 (ccl.o): Depend on composite.h.
4813 (chartab.o): Depend on ccl.h.
4814 (cm.o): Depend on dispextern.h.
4815 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4816 (coding.o): Don't depend on $(INTERVALS_H).
4817 (composite.o): Don't depend on dispextern.h explicitly (it's in
4818 $(INTERVALS_H)). Depend on ccl.h.
4819 (data.o): Depend on systime.h, coding.h, composite.h,
4820 dispextern.h, font.h, and ccl.h.
4821 (dired.o): Depend on composite.h.
4822 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4823 composite.h (it's in $(INTERVALS_H)).
4824 (doc.o): Depend on systime.h, coding.h, and composite.h.
4825 (editfns.o): Don't depend explicitly on dispextern.h.
4826 (emacs.o): Depend on frame.h and coding.h.
4827 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4828 (fileio.o): Depend on frame.h and commands.h. Don't depend
4829 explicitly on dispextern.h.
4830 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4831 composite.h.
4832 (fns.o): Don't depend on termhooks.h.
4833 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4834 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4835 coding.h, $(INTERVALS_H), window.h, xterm.h.
4836 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4837 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4838 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4839 fontset.h, ccl.h, and ftfont.h.
4840 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4841 (gtkutil.o): Depend on dispextern.h and composite.h.
4842 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4843 termhooks.h, and ccl.h.
4844 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4845 (intervals.o): Depend on systime.h and coding.h.
4846 (keyboard.o): Depend on composite.h and coding.h.
4847 (keymap.o): Depend on coding.h and frame.h.
4848 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4849 (macros.o): Depend on systime.h, coding.h, and composite.h.
4850 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4851 and atimer.h.
4852 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4853 dispextern.h explicitly.
0b5397c2
SM
4854 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4855 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4856 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4857 (regex.o): Don't depend on charset.h.
4858 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4859 (search.o): Don't depend explicitly on composite.h.
4860 (sound.o): Depend on atimer.h and systime.h.
4861 (syntax.o): Don't depend explicitly on composite.h.
4862 (sysdep.o): Depend on coding.h and composite.h.
4863 (term.o): Depend on xterm.h and buffer.h.
4864 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4865 (textprop.o): Don't depend on dispextern.h explicitly.
4866 (undo.o): Depend on dispextern.h.
4867 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4868 dispextern.h and composite.h explicitly.
4869 (xdisp.o): Depend on ccl.h.
4870 (xfaces.o): Depend on coding.h and ccl.h.
4871 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4872 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4873 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4874 ftfont.h.
4875 (xgselect.o): New dependency.
4876 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4877 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4878 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4879 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4880 (xsmfns.o): Depend on frame.h and dispextern.h.
4881 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4882 sysselect.h.
4883
7a6f7fea
AS
48842009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4885
4886 * font.c (Fclear_font_cache): Pass correct cache argument to
4887 font_clear_cache.
4888
f4c21026
AS
48892009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4890
4891 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4892 twice.
4893
f7ab0997
CY
48942009-12-15 Chong Yidong <cyd@stupidchicken.com>
4895
4896 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4897 calling file-remote-p. Reported by Jim Meyering.
4898
fa8e045a
MA
48992009-12-15 Michael Albinus <michael.albinus@gmx.de>
4900
4901 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4902 avoid compiler warnings. (Bug #5217)
fa8e045a 4903
a63dba42
KH
49042009-12-14 Kenichi Handa <handa@m17n.org>
4905
4906 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4907 in 8-bit encoding.
4908
5ce6e4f4 49092009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4910
4911 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4912 tooltip windows.
4913
223e5fc6
JD
49142009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4915
36acb2a7
JD
4916 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4917 Xatom_net_window_type.
4918
4919 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4920 Xatom_net_window_type.
4921
b8f00677
JD
4922 * xterm.c (my_log_handler): New function.
4923 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4924 so we can filter out buggy messages. (Bug #5120).
b8f00677 4925
e5f0bc9a
JD
4926 * xterm.c (xg_scroll_callback): Parameter list changed,
4927 use parameter GtkScrollType to determine scroll/line/page.
4928 Only allow dragging if a button < 4 is grabbed (bug #5177).
4929 (xg_end_scroll_callback): New function.
4930 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4931 xg_create_scroll_bar.
4932
4933 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4934 (scroll_end_callback): Remove.
4935 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4936 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4937 bug #5177.
e5f0bc9a
JD
4938 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4939 bug #5177.
4940
4941 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4942 (xg_create_scroll_bar): Add GCallback end_callback.
4943
223e5fc6
JD
4944 * xftfont.c (QClcdfilter): New variable.
4945 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4946 (syms_of_xftfont): Initialize QClcdfilter.
4947
3c055b77
JD
49482009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4949
4950 * xsettings.c (struct xsettings): Add member seen.
4951 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4952 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4953 (apply_xft_settings): Only update Xft settings with what member seen
4954 indicates as new.
4955
05fe33ff
EZ
49562009-12-12 Eli Zaretskii <eliz@gnu.org>
4957
c4cc8b9a 4958 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4959 (struct glyph): Use EMACS_INT for charpos.
4960 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4961 region_beg_charpos, region_end_charpos,
4962 redisplay_end_trigger_charpos, and also for
4963 iterator_stack_entry.end_charpos and
4964 iterator_stack_entry.stop_charpos.
4965
e8d7886a
JD
49662009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4967
5ce6e4f4 4968 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4969 (xg_create_scroll_bar): Call scroll_end_callback on button release
4970 event (bug #5177).
4971 (xg_event_is_for_scrollbar): != replaced with ==.
4972
d0db2ec8
KH
49732009-12-12 Kenichi Handa <handa@m17n.org>
4974
4975 * ftfont.c (struct ftfont_info): New member matrix.
4976 (ftfont_open): Setup xftfont_info->matrix.
4977 (MFLTFontFT): New member matrix.
4978 (FLOOR, CEIL, ROUND): New macros.
4979 (ftfont_get_metrics): Handle matrix transformation.
4980 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4981
4982 * xftfont.c (struct xftfont_info): New member matrix.
4983 (xftfont_open): Setup xftfont_info->matrix.
4984
49852009-12-10 Kenichi Handa <handa@m17n.org>
4986
4987 * xdisp.c (append_space_for_newline): Consider face-remapping.
4988
2cc7b62f
AS
49892009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4990
b87dd913
AS
4991 * xsettings.c: Include "keyboard.h".
4992
eba5eb94
AS
4993 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4994
2cc7b62f
AS
4995 Fix implicit function declarations.
4996 * cmds.c: Include "frame.h".
4997 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4998 * frame.h: Move declaration of delete_frame outside of
4999 HAVE_WINDOW_SYSTEM.
5000
a4ef73c8
CY
50012009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5002
5003 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5004
5005 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5006 GTK builds.
5007
944a300c
AS
50082009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5009
5010 * unexelf.c (unexec): Don't search for .data twice.
5011
022eef62
CY
50122009-12-05 Chong Yidong <cyd@stupidchicken.com>
5013
426ac949
CY
5014 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5015 if push failed.
5016 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5017 of push_display_prop (Bug#5000).
5018
022eef62
CY
5019 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5020 value of font_list_entities (Bug#5085).
5021
be95bee9
JB
50222009-12-04 Juanma Barranquero <lekktu@gmail.com>
5023
5024 Fix `string-to-number' to deal consistently with integers and floats.
5025 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5026 trailing characters, not just whitespace.
5027 (read1): Pass new arg 0 to keep old behavior.
5028 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5029 trailing chars, as it is already done for integers. Doc fixes.
5030 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5031
24c2d7ce
EZ
50322009-12-04 Eli Zaretskii <eliz@gnu.org>
5033
0b5397c2
SM
5034 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5035 Delete unused enumeration value.
24c2d7ce 5036
7e694795
EZ
50372009-12-03 Eli Zaretskii <eliz@gnu.org>
5038
5039 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5040
84b31826
SM
50412009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5042
5043 * process.c (Fmake_network_process): Fix up the tests for
5044 "connectionless socket", so they DTRT for seqpacket sockets as well.
5045
f00c449b
SM
50462009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5047
5048 * process.c (Qseqpacket): New symbol.
5049 (HAVE_SEQPACKET): New macro.
5050 (Fmake_network_process): Accept new :type `seqpacket'.
5051 (init_process): Add `seqpacket' feature when applicable.
5052 (syms_of_process): Initialize Qseqpacket.
5053
8096a0ff
YM
50542009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5055
5056 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5057 if entity is Qnil.
5058
3e0de07f
SM
50592009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5060
5061 * print.c (print_preprocess): Preprocess the key_and_value table of
5062 hashtables, even tho they're "hidden" (bug#5082).
5063
abeafb2a
JD
50642009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5065
5066 * frame.c (frame_make_pointer_invisible)
5067 (frame_make_pointer_visible): Declare f before statements.
5068
4bf47195
EZ
50692009-11-28 Eli Zaretskii <eliz@gnu.org>
5070
5071 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5072 omitted dependencies on lisp.h.
5073
c525b3f2
JD
50742009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5075
ece2d4ed
JD
5076 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5077 is NULL.
5078
5079 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5080
5081 * frame.c (frame_make_pointer_invisible)
3e0de07f 5082 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5083 frame.
5084
c525b3f2
JD
5085 * search.c (simple_search): Remove warning by making *p const.
5086
2f00e299
DN
50872009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5088
5089 * xdisp.c (power_letter): Remove duplicate const.
5090
084b049b
JD
50912009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5092
a1fadc6f
JD
5093 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5094
5ce6e4f4 5095 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5096 defaults (bug #5025).
5097
28259cac
SM
50982009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5099
5100 * insdel.c (adjust_markers_for_delete): Move it in the
5101 right direction! (bug#4803)
5102
e8e14166
YM
51032009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5104
5105 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5106
5107 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5108
86677b58
GM
51092009-11-24 Glenn Morris <rgm@gnu.org>
5110
5111 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5112
581e51e8
JD
51132009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5114
cfc86c7a
JD
5115 * Makefile.in: Must create deps for ecrt0.o in its rule.
5116
581e51e8
JD
5117 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5118 because that is what Gtk+ font dialog understands.
5119
5120 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5121 of Fcopy_sequence.
5122 (font_open_by_name): Put name given into QCname for font-object returned.
5123
5124 * frame.c (x_set_font): Save original font name as frame parameter
5125 font-parameter.
5126
5127 * xsettings.c (set_default_xft_settings): New function.
5128 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5129 is found.
5130
8b264ecb
AS
51312009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5132
5133 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5134 searching backwards through multibyte buffer.
5135
872870b2
JD
51362009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5137
5138 * xterm.c: #include xgselect.h.
5139 (x_initialize): Call xgselect_initialize.
5140
5141 * xsettings.c (something_changedCB): C++ comments => C comments.
5142 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5143 does that now.
5144
5145 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5146 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5147 (scroll_bar_button_cb): Remove.
5ce6e4f4 5148 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5149 event.
5150 (xg_create_scroll_bar): Don't bind button-press-event and
5151 button-release-event.
5152
5153 * process.c: Include xgselect.h if defined (USE_GTK) ||
5154 defined (HAVE_GCONF).
5155 (wait_reading_process_output): Call xg_select for the same condition.
5156
5157 * xgselect.c (xg_select): New function to better integrate with
5158 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5159
5160 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5161
5162 * Makefile.in (XOBJ): Add xgselect.o.
5163
62a6e103
AS
51642009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5165
0b5397c2
SM
5166 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5167 Remove ignored second argument. All callers changed.
62a6e103
AS
5168 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5169 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5170 * xdisp.c (string_char_and_length): Likewise.
5171
b0ca0f33
DN
51722009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5173
5174 * xterm.c (x_new_font):
5175 * print.c (print_object):
5176 * cmds.c (Fself_insert_command): Move declarations before statements.
5177
dd5a6279
CY
51782009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5179
5180 * s/cygwin.h: Remove unneeded linker flags.
5181
4a8e097d
JD
51822009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5183
0d1d0d26
JD
5184 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5185
5186 * xsettings.h: Declare xsettings_get_system_font.
5187
5188 * xsettings.c (xsettings_get_system_font): New function.
5189 (init_gconf): No use initiating gconf unless we have Xft also.
5190 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5191 HAVE_GCONF.
5192
4a8e097d
JD
5193 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5194 add a blank entry so it doesn't collapse into nothing.
5195
8ab1650e
SM
51962009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5197
5198 * lread.c (Funintern): Comment out last change.
5199
82c602f0
RS
52002009-11-19 Richard Stallman <rms@gnu.org>
5201
5202 * lread.c (Funintern): Error if symbol is t or nil.
5203
87e32266
SM
52042009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5205
5206 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5207 representation of Lisp integers.
5208 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5209
1b9ac145
AS
52102009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5211
5212 * lisp.h: Remove declaration of Ffont_get_system_font.
5213 * xfns.c: Move include of "xsettings.h".
5214 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5215
dfb3c4c6
JD
52162009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5217
87e32266
SM
5218 * xsettings.c (something_changedCB, Ffont_get_system_font):
5219 Check use_system_font.
dfb3c4c6
JD
5220 (syms_of_xsettings): DEFVAR font-use-system-font.
5221
9370c1d8
AS
52222009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5223
25fe851a
AS
5224 * xfns.c (x_default_font_parameter): Remove dead assignment.
5225
9370c1d8
AS
5226 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5227
637fa988
JD
52282009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5229
87e32266 5230 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5231 not have FC_LCD_*. #define them if not there.
a6eb20d8 5232
87e32266 5233 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5234
637fa988
JD
5235 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5236
5237 * xterm.c (handle_one_xevent): Call xft_settings_event for
5238 ClientMessage, PropertyNotify and DestroyNotify.
5239 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5240 Call xsettings_initialize.
5241
5242 * xftfont.c (xftfont_fix_match): New function.
5243 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5244 Call xftfont_fix_match after XftFontMatch.
5245
5246 * xfont.c (xfont_driver): Initialize all members.
5247
87e32266
SM
5248 * xfns.c (x_default_font_parameter):
5249 Try font from Ffont_get_system_font.
637fa988
JD
5250 Do not get font from x_default_parameter if we got one from
5251 Ffont_get_system_font.
87e32266 5252 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5253
5254 * w32font.c (w32font_driver): Initialize all members.
5255
5256 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5257
5258 * lisp.h: Declare syms_of_xsettings.
5259
87e32266
SM
5260 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5261 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5262
5263 * ftfont.c (ftfont_filter_properties): New function.
5264
5265 * frame.c (x_set_font): Remove unused variable lval.
5266
87e32266 5267 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5268
5269 * font.c (font_put_extra): Don't return if val is nil, it means
5270 boolean option is off.
5271 (font_parse_fcname): Collect all extra properties in extra_props
5272 and call filter_properties for all drivers with extra_props and
5273 font as parameter.
87e32266
SM
5274 (font_open_entity): Do not use cache, it does not pick up new
5275 fontconfig settings like hinting.
637fa988
JD
5276 (font_load_for_lface): If spec had a name in it, store it in entity.
5277
a73f9c9d 5278 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5279
5280 * config.in: HAVE_GCONF is new.
5281
5282 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5283 xsettings.o is new.
5284
5a942932
KH
52852009-11-17 Kenichi Handa <handa@m17n.org>
5286
5287 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5288 back to the default font in case that no suitable font is found.
5289
b7c7a4d1
SM
52902009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5291
5292 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5293 Suggested by Chad Brown <yandros@mit.edu>.
5294 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5295
072f1e39
JD
52962009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5297
5298 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5299
5d1e70a2
AS
53002009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5301
87e32266 5302 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5303
a53cfbe5
JD
53042009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5305
473a99b7
JD
5306 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5307 has a parent.
5308
a53cfbe5 5309 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5310 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5311
5312 * config.in: Generated (AUTO_DEPEND).
5313
f04bb9b2
MA
53142009-11-13 Michael Albinus <michael.albinus@gmx.de>
5315
b7c7a4d1 5316 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5317 Vdbus_registered_functions_table, because it contains also
5318 properties. Fix docstring.
b7c7a4d1 5319 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5320
8f11f7ec
SM
53212009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5322
5323 * alloc.c (mark_object): Don't reprocess marked strings.
5324 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5325 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5326
8a605fe8
KH
53272009-11-13 Kenichi Handa <handa@m17n.org>
5328
8f11f7ec 5329 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5330 semantics of Vword_combining_categories.
5331 (Vword_combining_categories): Describe the slight change of the
5332 semantics.
5333
241c4680
EZ
53342009-11-13 Eli Zaretskii <eliz@gnu.org>
5335
5336 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5337
5338 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5339
5d58e44c
SM
53402009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5341
5342 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5343
5e13f9d3
JB
53442009-11-12 Juanma Barranquero <lekktu@gmail.com>
5345
5346 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5347
cf54c754
DR
53482009-11-11 David Reitter <david.reitter@gmail.com>
5349
5350 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5351 variables to fix 2009-11-09 change.
5352
a4ada374
DN
53532009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5354
91433552
DN
5355 * process.c (ifflag_def): Make flag_sym constant.
5356 (Fnetwork_interface_info): Use a constant pointer.
5357 (ifflag_table):
5358 * xfns.c (cursor_bits):
5359 * xdisp.c (power_letter):
5360 * termcap.c (speeds, esctab):
5361 * sysdep.c (baud_convert):
5362 * keyboard.c (lispy_accent_codes, modifier_names):
5363 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5364 (jpeg_format, tiff_format, gif_format, svg_format)
5365 (interlace_start, interlace_increment, gs_format):
5366 * gtkutil.c (separator_names):
5367 * fringe.c (swap_nibble):
5368 * fns.c (base64_value_to_char, base64_char_to_value):
5369 * fileio.c (make_temp_name_tbl):
5370 * coding.c (suffixes): Make constant.
5371
f4265f6c
DN
5372 * frame.c (make_initial_frame):
5373 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5374 build_string.
5375 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5376
04420943
DN
5377 * s/freebsd.h:
5378 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5379
0a5d24ae
DN
5380 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5381 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5382
a4ada374
DN
5383 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5384 * xterm.c (syms_of_xterm):
5385 * xfaces.c (syms_of_xfaces):
5386 * xdisp.c (syms_of_xdisp):
5387 * lread.c (syms_of_lread):
5388 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5389 build_string.
91433552 5390
a4ada374
DN
5391 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5392
af98fc7f
SM
53932009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5394
8ab1650e 5395 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5396
e90292a9
JD
53972009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5398
5399 * keyboard.h: Declare timer_check.
5400
5401 * keyboard.c (timer_check_2): New function that does what the old
5402 timer_check did.
5403 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5404 returned, i.e. don't return -1 with timers pending.
5405
5406 * process.c: Remove extern declaration of timer_check.
5407
5408 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5409 even if timer_check returned -1.
5410
af98fc7f
SM
5411 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5412 xg_dialog_data.
e90292a9
JD
5413 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5414 the event loop.
5415 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5416 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5417 Destroy the dialog after xg_dialog_run.
5418
045b83c0
SM
54192009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5420
5421 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5422
1fb99a3a
JD
54232009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5424
5425 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5426
04e452cb
JB
54272009-11-09 Juanma Barranquero <lekktu@gmail.com>
5428
5429 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5430
ef7417fd
SM
54312009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5432
5433 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5434 w32menu.c, and nsmenu.m.
5435 Simplify the obsolete case where position is nil.
5436 (cleanup_popup_menu): New function, moved from nsmenu.m.
5437 (struct skp): Remove slot `notreal'.
5438 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5439 adjust callers.
5440 (single_menu_item): Adjust call to parse_menu_item.
5441 (syms_of_menu): Defsubr x-popup-menu.
5442 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5443 (keymap_panes): Don't export any more.
5444 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5445 (xmenu_show): Declare.
5446 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5447 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5448 * keyboard.h (parse_menu_item): Update declaration.
5449 * xmenu.c (Fx_popup_menu): Remove.
5450 (syms_of_xmenu): Don't defsubr x-popup-menu.
5451 * w32menu.c (Fx_popup_menu): Remove.
5452 (syms_of_w32menu): Don't defsubr x-popup-menu.
5453 * nsmenu.m (cleanup_popup_menu): Remove.
5454 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5455 moved to menu.c's Fx_popup_menu.
5456 (Fx_popup_menu): Remove.
5457 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5458 menu_items (it's done in menu.c already).
5459
424d6179
SM
54602009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5461
5462 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5463 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5464
c0df13a6 54652009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5466
5467 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5468 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5469 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5470 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5471
2de9f71c
SM
54722009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5473
5474 Let integers use up 2 tags to give them one extra bit and thus double
5475 their range.
5476 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5477 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5478 New macros.
5479 (enum Lisp_Type): Use them. Give explicit values.
5480 (Lisp_Type_Limit): Remove.
5481 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5482 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5483 Pay attention to USE_2_TAGS_FOR_INTS.
5484 (INTEGERP): Use LISP_INT_TAG_P.
5485 * fns.c (internal_equal): Simplify the default case.
5486 (sxhash): Use case_Lisp_Int.
5487 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5488 any more.
5489 (Ftype_of): Use case_Lisp_Int.
5490 (store_symval_forwarding): Take into account the fact that Ints can
5491 now have more than one tag.
5492 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5493 buffer_slot_type_mismatch):
5494 * xfaces.c (face_attr_equal_p):
5495 * print.c (print_object):
5496 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5497 Use case_Lisp_Int.
5498
323637a2
EZ
54992009-11-06 Eli Zaretskii <eliz@gnu.org>
5500
7ac65b38
EZ
5501 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5502
323637a2
EZ
5503 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5504 warning.
5505
e511451f
JD
55062009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5507
5508 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5509
5510 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5511
5512 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5513 ButtonPressRelease and MotionNotify (bug#4870).
5514
5e2327cf
DN
55152009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5516
5adc433e
DN
5517 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5518
d67b4f80
DN
5519 * xterm.c (syms_of_xterm):
5520 * xselect.c (syms_of_xselect):
5521 * xmenu.c (syms_of_xmenu):
5522 * xfns.c (syms_of_xfns):
5523 * xfaces.c (syms_of_xfaces):
5524 * xdisp.c (syms_of_xdisp):
5525 * window.c (syms_of_window):
5526 * w32fns.c (syms_of_w32fns):
5527 * undo.c (syms_of_undo):
5528 * textprop.c (syms_of_textprop):
5529 * terminal.c (syms_of_terminal):
5530 * syntax.c (syms_of_syntax):
5531 * sound.c (syms_of_sound):
5532 * search.c (syms_of_search):
5533 * print.c (syms_of_print):
5534 * minibuf.c (syms_of_minibuf):
5535 * macros.c (syms_of_macros):
5536 * keymap.c (syms_of_keymap, initial_define_key)
5537 (initial_define_lispy_key):
5538 * keyboard.c (syms_of_keyboard):
5539 * insdel.c (syms_of_insdel):
5540 * image.c (syms_of_image):
5541 * fringe.c (syms_of_fringe):
5542 * frame.c (syms_of_frame):
5543 * fontset.c (syms_of_fontset):
5544 * fns.c (syms_of_fns):
5545 * fns.c (syms_of_fns):
5546 * fileio.c (syms_of_fileio):
5547 * fileio.c (syms_of_fileio):
5548 * eval.c (syms_of_eval):
5549 * doc.c (syms_of_doc):
5550 * dispnew.c (syms_of_display):
5551 * dired.c (syms_of_dired):
5552 * dbusbind.c (syms_of_dbusbind):
5553 * data.c (syms_of_data):
5554 * composite.c (syms_of_composite):
5555 * coding.c (syms_of_coding):
5556 * cmds.c (syms_of_cmds):
5557 * charset.c (define_charset_internal, syms_of_character):
5558 * ccl.c (syms_of_ccl):
5559 * category.c (syms_of_category, init_category_once):
5560 * casetab.c (syms_of_casetab):
5561 * casefiddle.c (syms_of_casefiddle):
5562 * callint.c (syms_of_callint):
5563 * bytecode.c (syms_of_bytecode):
5564 * buffer.c (keys_of_buffer, syms_of_buffer):
5565 * alloc.c (syms_of_alloc):
5566 * process.c (syms_of_process, init_process):
5567 * lread.c (syms_of_lread, init_obarray):
5568 * font.c (build_style_table):
5569 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5570 intern_c_string, calls to make_pure_string with
5571 make_pure_c_string. Use pure_cons instead of Fcons.
5572
5e2327cf
DN
5573 * process.c (socket_options): Make it const.
5574 (set_socket_option, init_process): Use a const pointer.
5575
5576 * lread.c (intern_c_string): New function.
5577 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5578 (defvar_int): Uset it. Make the name const char*.
5579
5580 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5581 (defvar_int): Update prototypes.
5582 (DEFUN, EXFUN): Support for prototypes is now required.
5583 (intern_c_string): New prototype.
5584 (struct Lisp_Subr): Make symbol_name constant.
5585
5586 * font.c (struct table_entry): Remove unused member. Make NAMES
5587 constant.
5588 (weight_table, slant_table, width_table): Make constant.
5589
5590 * emacs.c (struct standard_args): Make name and longname constant.
5591
5592 * character.h (DEFSYM): Use intern_c_string.
5593
a56eaaef
DN
55942009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5595
5596 * alloc.c (make_pure_c_string): New function.
5597
5598 * eval.c (Fautoload): Purecopy all arguments.
5599
f6a07420
KH
56002009-11-05 Kenichi Handa <handa@m17n.org>
5601
5602 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5603 the buffer in case of replace.
5604
5d28d4b1
DN
56052009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5606
5607 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5608
b349d111
SM
56092009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5610
d528b1ce
SM
5611 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5612 when applicable (bug#4851).
5613
b349d111
SM
5614 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5615 (P_): Support for prototypes is now required.
5616
c38eb027
CY
56172009-10-31 Chong Yidong <cyd@stupidchicken.com>
5618
5619 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5620 (Bug#4827).
5621
0405f8d9
EZ
56222009-10-30 Eli Zaretskii <eliz@gnu.org>
5623
d528b1ce 5624 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5625
ca0a881a
DN
56262009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5627
5628 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5629
d528b1ce
SM
5630 * lread.c (Fload): Purecopy the file name when building
5631 Vpreloaded_file_list.
ca0a881a 5632
47e0e0e4
JR
56332009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5634
5635 * w32fns.c (syms_of_w32fns): Change default value of
5636 w32-scroll-lock-modifier to nil. (Bug#2827)
5637
057bce6f
JB
56382009-10-26 Juanma Barranquero <lekktu@gmail.com>
5639
782a943e 5640 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5641
242bc74c
AS
56422009-10-26 Andreas Schwab <schwab@redhat.com>
5643
5644 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5645
522d013a
JB
56462009-10-26 Juanma Barranquero <lekktu@gmail.com>
5647
5648 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5649 For delta < 0, skip check that only makes sense when the mini-window
5650 is going to be enlarged. (Bug#4534)
5651
18060980
CY
56522009-10-25 Chong Yidong <cyd@stupidchicken.com>
5653
5654 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5655 string in menu maps (Bug#4471).
5656
fec8f0fe
CY
56572009-10-24 Chong Yidong <cyd@stupidchicken.com>
5658
5659 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5660 FRAME_NS_VIEW on terminal frames (Bug#4765).
5661
10d66ec0
AS
56622009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5663
1cae01f7
AS
5664 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5665 DBUS_TYPE_UINTnn separately to get proper sign extension.
5666
58a12889
AS
5667 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5668 can properly handle unsigned types.
d528b1ce 5669 (make_uid, make_gid): Remove.
58a12889 5670
987c9327
AS
5671 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5672 types again.
5673
522d013a 5674 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5675 (system_process_attributes): Likewise.
5676
905a9ed3
DN
56772009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5678
5679 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5680
5681 * eval.c (Fautoload): Purecopy the filename. Simplify.
5682
5683 * category.c (Fdefine_category): Purecopy docstring.
5684
a599b3e8
AS
56852009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5686
7b792fc9
AS
5687 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5688
a599b3e8
AS
5689 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5690
b35ac83e
CY
56912009-10-23 Chong Yidong <cyd@stupidchicken.com>
5692
5693 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5694 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5695 (Bug#4775).
5696
e8903e00
SM
56972009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5698
5699 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5700 (init_fileio_once):
5701 * lisp.h (init_fileio_once): Remove.
5702 * emacs.c (main): Don't call init_fileio_once.
5703
8f43cbf3
DN
57042009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5705
5706 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5707
26898943
AS
57082009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5709
5710 * doprnt.c (doprnt): Fix overflow check.
5711
5c646d5a
JD
57122009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5713
3132a7ea
JD
5714 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5715
5c646d5a
JD
5716 * xterm.h (x_wait_for_event): Declare it.
5717
5718 * xterm.c (pending_event_wait): New variable.
5719 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5720 see pending_event_wait.eventtype.
5721 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5722 (x_new_font): Call change_frame_size with new rows/columns before we
5723 try to resize the frame.
5c646d5a 5724 (x_wait_for_event): New function.
d528b1ce
SM
5725 (x_set_window_size_1): Don't change gravity unless change_gravity
5726 is set.
5c646d5a
JD
5727 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5728 don't change frame size, instead wait for the ConfigureNotify.
5729 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5730 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5731 (x_initialize): Initialize pending_event_wait.
5732
5733 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5734 size.
5735
5736 * widget.c (EmacsFrameSetValues): Add comment.
5737 (EmacsFrameSetCharSize): Just call x_set_window_size.
5738
5739 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5740 x_wait_for_event.
d528b1ce 5741 (flush_and_sync): Remove again.
5c646d5a
JD
5742 (xg_get_font_name): Suggest monospace if no previous font is known.
5743
e9c1637d
SM
57442009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5745
5746 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5747 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5748
5a72cccb
YM
57492009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5750
5751 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5752 processing pending events when event is filtered for input method.
ab04798f 5753 (Bug#3681)
5a72cccb 5754
2629aa37
JB
57552009-10-20 Juanma Barranquero <lekktu@gmail.com>
5756
5757 * fns.c: Add #endif accidentally removed in previous change.
5758
c3417a74
DN
57592009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5760
5761 * fns.c: Remove code for unsupported system: MAC_OS.
5762 * image.c: Likewise. Include setjmp.h.
5763
9685cef2
JD
57642009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5765
5766 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5767 pixel -1 (bug #4742).
5768
d7306fe6
DN
57692009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5770
019d2c4c
DN
5771 * process.c (create_pty): Remove conditionals for no longer
5772 supported systems: UNIPLUS and RTU.
5773
ee6bacd4
DN
5774 * xterm.c:
5775 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5776
d7306fe6
DN
5777 * alloc.c: Do not define struct catchtag.
5778 * eval.c: Move struct catchtag definition ...
5779 * lisp.h: ... here.
5780
5781 * image.c: Move png.h #include earlier to avoid warnings.
5782
5783 * xterm.c:
5784 * xsmfns.c:
5785 * xselect.c:
5786 * xrdb.c:
5787 * xmenu.c:
5788 * xftfont.c:
5789 * xfont.c:
5790 * xfns.c:
5791 * xfaces.c:
5792 * xdisp.c:
5793 * window.c:
5794 * widget.c:
5795 * w32xfns.c:
5796 * w32uniscribe.c:
5797 * w32term.c:
5798 * w32select.c:
5799 * w32reg.c:
5800 * w32proc.c:
5801 * w32menu.c:
5802 * w32inevt.c:
5803 * w32heap.c:
5804 * w32font.c:
5805 * w32fns.c:
5806 * w32console.c:
5807 * w32.c:
5808 * w16select.c:
5809 * vm-limit.c:
5810 * unexsol.c:
5811 * unexec.c:
5812 * unexcw.c:
5813 * unexaix.c:
5814 * undo.c:
5815 * tparam.c:
5816 * textprop.c:
5817 * terminfo.c:
5818 * terminal.c:
5819 * termcap.c:
5820 * term.c:
5821 * syntax.c:
5822 * sound.c:
5823 * sheap.c:
5824 * search.c:
5825 * scroll.c:
5826 * region-cache.c:
5827 * regex.c:
5828 * ralloc.c:
5829 * process.c:
5830 * print.c:
b024548b
DN
5831 * nsterm.m:
5832 * nsselect.m:
5833 * nsmenu.m:
5834 * nsimage.m:
5835 * nsfont.m:
5836 * nsfns.m:
d7306fe6
DN
5837 * msdos.c:
5838 * minibuf.c:
5839 * menu.c:
5840 * marker.c:
5841 * macros.c:
5842 * keymap.c:
5843 * keyboard.c:
5844 * intervals.c:
5845 * insdel.c:
5846 * indent.c:
5847 * gtkutil.c:
5848 * ftxfont.c:
5849 * ftfont.c:
5850 * fringe.c:
5851 * frame.c:
5852 * fontset.c:
5853 * font.c:
5854 * fns.c:
5855 * floatfns.c:
5856 * filelock.c:
5857 * fileio.c:
5858 * emacs.c:
5859 * editfns.c:
5860 * dosfns.c:
5861 * doprnt.c:
5862 * doc.c:
5863 * dispnew.c:
5864 * dired.c:
5865 * dbusbind.c:
5866 * data.c:
5867 * composite.c:
5868 * coding.c:
5869 * cmds.c:
5870 * cm.c:
5871 * chartab.c:
5872 * charset.c:
5873 * character.c:
5874 * ccl.c:
5875 * category.c:
5876 * casetab.c:
5877 * casefiddle.c:
5878 * callproc.c:
5879 * callint.c:
5880 * bytecode.c:
5881 * buffer.c:
5882 * atimer.c: Include setjmp.h. (Bug#4643)
5883
fd5f21e6
SM
58842009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5885
4c0354d7
SM
5886 Remove leftover table unibyte_to_multibyte_table.
5887 * character.c (unibyte_to_multibyte_table): Remove.
5888 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5889 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5890 * character.h (UNIBYTE_TO_CHAR): New macro.
5891 (MAKE_CHAR_MULTIBYTE): Use it.
5892 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5893 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5894 (message_dolog, set_message_1):
5895 * search.c (Freplace_match):
5896 * editfns.c (Fcompare_buffer_substrings):
5897 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5898 (concat):
5899 * insdel.c (copy_text, count_size_as_multibyte):
5900 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5901 * term.c (produce_glyphs):
5902 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5903 * regex.c (RE_CHAR_TO_MULTIBYTE):
5904 * cmds.c (internal_self_insert):
5905 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5906
fd5f21e6
SM
5907 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5908
4418646e
DN
59092009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5910
5911 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5912
35f5c1d2
JB
59132009-10-16 Juanma Barranquero <lekktu@gmail.com>
5914
5915 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5916
a0cd8f6b
AR
59172009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5918
5919 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5920 still needed under Tiger.
5921
5922 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5923
5924 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5925 __Apple__.
5926
5927 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5928
01a8d3fa
KH
59292009-10-15 Kenichi Handa <handa@m17n.org>
5930
5931 * print.c (print_object): Escape a symbol like "2E10" too.
5932
bf6c75c9 59332009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5934
5935 Cleanups and changes for 64-bit compile under Snow Leopard.
5936 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5937
5938 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5939
c5959062 5940 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5941 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5942 cast argument.
5943 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5944 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5945
5946 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5947
5948 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5949 where appropriate.
5950
5951 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5952 where appropriate.
6e4780c5
JB
5953 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5954 Use stringWithUTF8String.
bf6c75c9
AR
5955 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5956
6e4780c5
JB
5957 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5958 Add formal protocol mention to inheritance.
bf6c75c9
AR
5959 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5960
6e4780c5
JB
5961 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5962 Fix printf format.
bf6c75c9
AR
5963 (ns_query_color): Use CGFloat where appropriate.
5964 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5965 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5966 argument.
5967
3d87f118
AR
5968 * config.in (NS_HAVE_NSINTEGER): Drop.
5969
a95c8102
AR
5970 * dbusbind.c (dbus-method-return-internal)
5971 (dbus-method-error-internal): Use long format in printf, and cast
5972 argument.
5973
5974 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5975 in printf, and cast argument.
5976
6873acca 5977 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5978 cast argument.
5979
9ec6f100
GM
59802009-10-11 Glenn Morris <rgm@gnu.org>
5981
5982 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5983
5be883cd
JD
59842009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5985
5986 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5987 menu bar with a small width so it doesn't enlarge the frame.
5988
d7a39b51
JB
59892009-10-08 Juanma Barranquero <lekktu@gmail.com>
5990
5991 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5992
0c2b6f8e
GM
59932009-10-06 Glenn Morris <rgm@gnu.org>
5994
5995 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5996 SOME_MACHINE_LISP (this enters indirectly via DOC).
5997
e02131a2
EZ
59982009-10-05 Eli Zaretskii <eliz@gnu.org>
5999
6000 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6001
b4744254
EZ
60022009-10-04 Eli Zaretskii <eliz@gnu.org>
6003
6004 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6005 Doc fix.
6006
dbf64827
JB
60072009-10-03 Martin Rudalics <rudalics@gmx.at>
6008
6009 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6010
e9a0aef8
MA
60112009-10-02 Michael Albinus <michael.albinus@gmx.de>
6012
d528b1ce 6013 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6014 used anymore outside fileio.c.
6015
6016 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6017
64eb2b56
JB
60182009-10-01 Juanma Barranquero <lekktu@gmail.com>
6019
6020 * lisp.h (Qdelete_directory_internal):
6021 Declare, instead of Qdelete_directory.
6022
6023 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6024
9d28c33e
SM
60252009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6026
6027 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6028
9d8f3bd9
MA
60292009-10-01 Michael Albinus <michael.albinus@gmx.de>
6030
9d28c33e 6031 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6032 Fdelete_directory. It is not a command anymore. It has no file
6033 name handler.
6034
9694740b
SM
60352009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6036
6037 * xdisp.c (get_next_display_element): Use an enum in last change.
6038
748e162f
KH
60392009-09-28 Kenichi Handa <handa@m17n.org>
6040
9694740b 6041 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6042 unibyte_display_via_language_environment in handling
6043 Vnobreak_char_display.
6044
17efd58d
AR
60452009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6046
6047 * nsterm.h (ns_app_name): New extern variable.
6048
6049 * nsterm.m (ns_app_name): New variable.
6050 (ns_term_init): Set and use it.
6051 (ns_term_shutdown): Use it.
6052
6053 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6054 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6055
6056 * nsfns.m (ns_set_name_iconic, ns_set_name)
6057 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6058 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6059
9694740b
SM
6060 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6061 Remove double-casting in client_data comparison.
31c2d412 6062
3208cb35
YM
60632009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6064
6065 * keyboard.c (make_lispy_event): Remember last wheel direction.
6066 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6067
b7d552d6
GM
60682009-09-26 Glenn Morris <rgm@gnu.org>
6069
6070 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6071 internal.elc. Add term/pc-win.elc.
6072 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6073 term/x-win.elc.
6074 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6075 term/w32-win.elc.
6076 (NS_SUPPORT): New.
6077 (lisp): Add NS_SUPPORT.
6078 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6079
4ff670a8
DR
60802009-09-25 David Reitter <david.reitter@gmail.com>
6081
6082 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6083 on Mac OS X 10.6+ (bug#4513).
6084
feabfb6c
JB
60852009-09-24 Juanma Barranquero <lekktu@gmail.com>
6086
6087 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6088 some parts of Emacs code (like font selection) don't grok them.
6089 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6090
de59072a
AS
60912009-09-24 Andreas Schwab <schwab@redhat.com>
6092
6093 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6094
a489517b
JB
60952009-09-24 Juanma Barranquero <lekktu@gmail.com>
6096
6097 * dired.c (Fdirectory_files): Fix typo in docstring.
6098
0592970c
AR
60992009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6100
6101 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6102 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6103 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6104 under GNUstep.
6105 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6106
6107 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6108 glyph advancement.
6109
48e8a88b
AR
61102009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6111
6112 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6113 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6114
6115 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6116 deleted (bug #4492).
6117
e14f0a78
AR
6118 * nsfont.m (Vns_reg_to_script): New lisp variable.
6119 (syms_of_nsfont): Declare it.
6120 (ns_registry_to_script): New function.
6121 (ns_get_req_script): Call it.
6122 (ns_findfonts): Don't give up on non-unicode registry.
6123
6124 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6125
5b650faa
SM
61262009-09-20 Tom Tromey <tromey@redhat.com>
6127
6128 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6129 batch mode (bug#4228).
6130
a489517b 61312009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6132
6133 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6134 carefully. (Bug #4339)
0bae4e09 6135
fcfe06f3
CY
61362009-09-18 Chong Yidong <cyd@stupidchicken.com>
6137
d798ba87 6138 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6139
31642728
AR
61402009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6141
6142 * emacs.c (inhibit_x_resources): Update doc string for NS.
6143 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6144 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6145
6146 * nsterm.h (ns_no_defaults): Remove.
6147
6148 * nsterm.m (ns_no_defaults): Remove.
6149 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6150 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6151 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6152 don't update the NSWindow itself.
6153 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6154 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6155
6156 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6157 ns_use_qd_smoothing.
6158
6159 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6160 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6161 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6162 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6163
8686ac71
JB
61642009-09-17 Juanma Barranquero <lekktu@gmail.com>
6165
6166 * emacs.c (inhibit_x_resources): New variable.
6167 (main) [HAVE_NS]: Don't process --quick command line option.
6168 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6169
6170 * lisp.h (inhibit_x_resources): Declare it extern.
6171
6172 * w32reg.c (x_get_string_resource):
6173 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6174
e227ba05
EZ
61752009-09-17 Eli Zaretskii <eliz@gnu.org>
6176
362654a6
JB
6177 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6178 Add lisp/term/internal.elc.
e227ba05 6179
742d40e8
SM
61802009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6181
6182 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6183 (bug#4461).
6184
005bd5a2
DN
61852009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6186
6187 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6188
6189 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6190 (OBJECTS_MACHINE): Remove, unused.
6191
f9af9719
SM
61922009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6193
6194 * frame.c (x_get_resource_string): Remove unused.
6195
0307c7d2
JD
61962009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6197
6198 * xterm.c (x_new_font): Call change_frame_size before calling
6199 x_set_window_size, in case frame size won't change.
6200
6201 * frame.c (x_set_font): Remove dead code.
6202
428b13d6
SM
62032009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6204
6205 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6206
5766c380
SM
62072009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6208
6209 * lread.c (Fload): Don't output a message after loading an obsolete
6210 package any more (done in Lisp now).
6211
2fd0161b
CY
62122009-09-12 Chong Yidong <cyd@stupidchicken.com>
6213
6214 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6215
bc5e75b6
SM
62162009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6217
6218 * keymap.c (Fwhere_is_internal): Use nconc2.
6219
c31c985e
AM
62202009-09-11 Alan Mackenzie <acm@muc.de>
6221
6222 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6223 batch mode.
6224
78012bd2
AS
62252009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6226
6227 * xdisp.c (display_mode_element): Detect cycles.
6228
9d889332
SM
62292009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6230
6231 * keymap.c (where_is_internal): Don't erroneously return nil right after
6232 filling the cache.
6233 (where_is_internal_1): Fix up typo.
6234
7ab5d780
GM
62352009-09-11 Glenn Morris <rgm@gnu.org>
6236
6237 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6238 share a common doc-string.
6239
5238a749
SM
62402009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6241
66d77eda
SM
6242 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6243 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6244
5238a749
SM
6245 * keymap.c (QCadvertised_binding): New constant.
6246 (syms_of_keymap): Initialize it.
6247 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6248 if applicable.
6249
19f48442
SM
62502009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6251
50d4ba39
SM
6252 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6253 (parse_menu_item): Streamline since bindings are recomputed all the
6254 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6255 more and don't support lmenu's menu-alias any more either.
6256
a88a5372
SM
6257 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6258 (where_is_internal): Strip it down to only traverse the keymaps.
6259 Move the cache handling from Fwhere_is_internal to here.
6260 (Fwhere_is_internal): Move the handling of remapping and the choice of
6261 the best binding from where_is_internal to here.
6262 Unify the cached/noncached paths, so remapping is also handled
6263 correctly when the cache is used, and so the cache can be used to
6264 speed up remap-handling when applicable.
6265 Give preference to non-remapped bindings.
6266 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6267 non-remapped bindings.
6268 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6269 command remapping.
6270
19f48442
SM
6271 * xdisp.c (display_mode_element): Move list length limit from 50 to
6272 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6273
599498c3 62742009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6275
6276 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6277
f9b7b5ac
SM
62782009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6279
a53af587
JB
6280 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6281 (Bug#4334)
6282
f9b7b5ac
SM
6283 * keymap.c (where_is_internal): Filter out shadowed remappings.
6284 Assume that where_is_internal returns unshadowed bindings to simplify
6285 the code and get rid of the gotos. Use ASIZE.
6286
04f4b72d
JD
62872009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6288
4da146f2
JD
6289 * xterm.c (x_focus_changed): If we get a focusout and pointer
6290 is invisible, make it visible.
6291
04f4b72d
JD
6292 * xterm.h: Remove condition for declaration of
6293 x_*_window_to_frame.
6294
7cef7ce3
SM
62952009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6296
6297 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6298 initial terminal as well.
6299
a54fa5b7
JD
63002009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6301
6302 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6303 x_menubar_window_to_frame.
a54fa5b7 6304
50426a04 6305 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6306 (XTmouse_position): Do not return valid positions
6307 for clicks in the menubar and the toolbar for Gtk+.
6308
6309 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6310 if the widget for the event has the same top level as a frame,
6311 return the frame.
6312 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6313 internal windows, bug #4122.
6314 (x_non_menubar_window_to_frame): Remove.
6315
5a021dd0
GM
63162009-09-02 Glenn Morris <rgm@gnu.org>
6317
6318 * buffer.c (default-major-mode): Move most of the doc from here...
6319 (major-mode): ... to here.
6320
548fe2f3
NR
63212009-08-30 Nick Roberts <nickrob@snap.net.nz>
6322
6323 * process.c (wait_reading_process_output): Keep the descriptor
6324 when pty is used by a non-child process, e.g., in I/O buffer of
6325 GDB this allows inferior to be restarted.
6326
e0840eef
EZ
63272009-08-29 Eli Zaretskii <eliz@gnu.org>
6328
6329 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6330 both branches into one.
6331
82e98df4
SM
63322009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6333
6334 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6335 (main): Use enable-multibyte-characters rather than
6336 default-enable-multibyte-characters. Output a warning message when
6337 running a unibyte session.
6338
890617cb
YM
63392009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6340
6341 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6342 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6343 (copy_data_segment): Also copy __program_vars section.
6344 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6345 (dump_it) [LC_DYLD_INFO]: Use it.
6346
6347 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6348
e7adeadc
EZ
63492009-08-28 Eli Zaretskii <eliz@gnu.org>
6350
6351 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6352 $(SRC)/buildobj.h.
6353 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6354 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6355 $(SRC)/buildobj.h.
6356 (clean): Add buildobj.h.
6357
3ed8bbdc
TZ
63582009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6359
6360 * print.c (print_object): Set escapeflag to 1 when printing
6361 hashtable keys and values.
6362
155a6764
SM
63632009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6364
6365 * lread.c (read_integer): Use doubles (and potentially return a float
6366 number) as we do in string-to-number.
6367 (read1): Use strtol to read integers, signal errors on strtol's
6368 overflow and use floats if strtol's output is too large for
6369 Elisp integers.
6370
877610de
EZ
63712009-08-27 Eli Zaretskii <eliz@gnu.org>
6372
6373 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6374 (make-buildobj-SH): Fix last change.
6375 (SRC): Move to before where it's first used.
6376
ef73e7be
KH
63772009-08-27 Kenichi Handa <handa@m17n.org>
6378
550c8289
KH
6379 * process.c (send_process): Use encode_coding_object instead of
6380 encode_coding_string to perform eol-conversion even if the string
6381 is unibyte.
6382
60afa08d
KH
6383 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6384 character.
6385
ef73e7be 6386 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6387 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6388
7b3a82d7
DN
63892009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6390
5654bf63
DN
6391 * callproc.c (Fcall_process): Remove always true #if.
6392
7b3a82d7
DN
6393 * lisp.h: Replace #if 0 code for checking with text pointing to
6394 the --enable-checking configure flag.
6395
6396 * emacs.c (main): Mention the --enable-profiling configure flag
6397 instead of using CFLAGS.
6398
878bde49
KR
63992009-08-26 Ken Raeburn <raeburn@raeburn.org>
6400
6401 * Makefile.in (buildobj.h): New target.
6402 (doc.o): Depend on it.
6403 (temacs${EXEEXT}): Don't generate buildobj.lst.
6404 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6405 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6406 ($(BLD)/doc.$(O)): Depend on it.
6407 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6408 provided by Eli Zaretskii.)
6409 ($(TEMACS)): Don't generate buildobj.lst.
6410 * doc.c: Include buildobj.h.
6411 (buildobj): New static variable.
6412 (Fsnarf_documentation): Use it, instead of opening and reading
6413 buildobj.lst.
6414
1574224c
MA
64152009-08-25 Michael Albinus <michael.albinus@gmx.de>
6416
6417 * dbusbind.c (Fdbus_call_method)
6418 (Fdbus_call_method_asynchronously): Use English numeric format for
6419 timeout values in doc string.
6420
d9da2f45
KH
64212009-08-25 Kenichi Handa <handa@m17n.org>
6422
ef73e7be
KH
6423 * alloc.c (mark_char_table): New function.
6424 (mark_object): Use mark_char_table for a char-table.
6425
d9da2f45
KH
6426 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6427 (CHAR_TABLE_REF): Use it.
6428
c8edcc01
KR
64292009-08-23 Ken Raeburn <raeburn@raeburn.org>
6430
6431 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6432 before invoking the newly build emacs to check for load-path
6433 shadowing.
6434
7763401b
GM
64352009-08-22 Glenn Morris <rgm@gnu.org>
6436
6437 * Makefile.in (bootstrap_exe): New variable.
6438 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6439 Use ${bootstrap_exe}.
6440
729eadda
EZ
64412009-08-22 Eli Zaretskii <eliz@gnu.org>
6442
6443 * coding.h (encode_coding_string): Don't encode unibyte strings.
6444 (Bug#4047)
6445
eb4c6ace
MA
64462009-08-22 Michael Albinus <michael.albinus@gmx.de>
6447
6448 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6449
6450 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6451 intended as hotfix only.
6452 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6453
36e34d1b
AR
64542009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6455
6456 * nsterm.m (ns_get_color): Update documentation properly for last
6457 change, and clean up loose ends in the code left by it. Fix
6458 longstanding bug with 16-bit hex parsing, and add support for
6459 yet another X11 format (rgb:r/g/b) for compatibility.
6460 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6461 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6462
f983eb8a
SM
64632009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6464
6465 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6466
3f56d3c6
MA
64672009-08-20 Michael Albinus <michael.albinus@gmx.de>
6468
6469 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6470 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6471 (xd_initialize, xd_pending_messages): Check, whether
6472 $DBUS_SESSION_BUS_ADDRESS is set.
6473
fb641d68
YM
64742009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6475
6476 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6477
6478 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6479
cf59a374
GM
64802009-08-20 Glenn Morris <rgm@gnu.org>
6481
6482 * emacs.c (system-type): Doc fix.
6483
1373f3be
SM
64842009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6485
6486 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6487 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6488
058ed861
MA
64892009-08-18 Michael Albinus <michael.albinus@gmx.de>
6490
1373f3be
SM
6491 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6492 New functions.
058ed861
MA
6493 (xd_initialize): Revert change from 2009-08-16.
6494
563a866e 64952009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6496
6497 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6498 font-group vector, return nil.
5fc05db0 6499
e42bdf01
CY
65002009-08-17 Chong Yidong <cyd@stupidchicken.com>
6501
6502 * process.c (status_notify): Don't perform redisplay.
6503 (Fdelete_process, list_processes_1, process_send_signal):
6504 Expliticly perform redisplay.
6505 (wait_reading_process_output): Always check process status, but
6506 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6507
4230ab74
KR
65082009-08-17 Ken Raeburn <raeburn@raeburn.org>
6509
1373f3be 6510 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6511 (XFLOAT_INIT): New macro for storing a float value.
6512 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6513 * fns.c (sxhash): Copy out the value of a float in order to
6514 examine its bytes.
6515 * dbusbind.c (xd_append_arg): Likewise.
6516
4230ab74
KR
6517 * emacs.c (main): Don't call syms_of_data twice.
6518
a0645cdd
MA
65192009-08-16 Michael Albinus <michael.albinus@gmx.de>
6520
6521 * dbusbind.c (xd_initialize): Add connection file descriptor to
6522 input_wait_mask, in order to let select() detect, whether a new
6523 message has been arrived.
ca4f31ea 6524 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6525
485db0ba
MA
65262009-08-15 Michael Albinus <michael.albinus@gmx.de>
6527
1373f3be
SM
6528 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6529 New functions.
485db0ba
MA
6530
6531 * lisp.h (xd_pending_messages): Declare.
6532
6533 * keyboard.c (readable_events): Call xd_pending_messages.
6534
b5b98ff4
CY
65352009-08-15 Chong Yidong <cyd@stupidchicken.com>
6536
1373f3be 6537 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6538
f8354c6e
CY
6539 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6540
b5b98ff4
CY
6541 * buffer.c (set_buffer_internal_1)
6542 (swap_out_buffer_local_variables): Check for unbound local
6543 variables (Bug#4138).
6544
8b9fc636
EZ
65452009-08-14 Eli Zaretskii <eliz@gnu.org>
6546
6547 * process.c (create_pty): Fix last change.
6548
ce959360
CY
65492009-08-13 Chong Yidong <cyd@stupidchicken.com>
6550
6551 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6552 (xbm_load_image): Caller changed.
64b807c9 6553 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6554
c7baf7e9
NR
65552009-08-13 Nick Roberts <nickrob@snap.net.nz>
6556
6557 * process.c (create_pty): New function.
6558 (Fstart_process): Use it to allow Emacs to just associate a pty
6559 with the buffer. See associated change in gdb-mi.el.
6560 (list_processes_1): Deal with no program name.
6561 (start_process_unwind): Use pid == -2 to mean no process.
6562
1ac9108a
SM
65632009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6564
6565 * cmds.c (nonundocount): New global variable.
6566 (keys_of_cmds): Initialize it.
6567 (Fself_insert_command): Use it to combine upto 20 sequential chars
6568 into a single undo entry, just like the Qself_insert_command code in
6569 keyboard.c does.
6570 Call frame_make_pointer_invisible, also like the Qself_insert_command
6571 code in keyboard.c does.
6572 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6573 than its own local replacement for it.
6574
e267324c
KR
65752009-08-10 Ken Raeburn <raeburn@raeburn.org>
6576
1ac9108a 6577 * fns.c (concat): Don't re-set string length to its current value.
77437343 6578
1ac9108a
SM
6579 * coding.h (decode_coding_string, encode_coding_string):
6580 Use SBYTES macro.
f0bed503 6581
1ac9108a 6582 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6583 (doprnt): Merge with doprnt1, discarding lispstrings code.
6584 * lisp.h (doprnt_lisp): Don't declare.
6585
416e006d
JL
65862009-08-07 Juri Linkov <juri@jurta.org>
6587
6588 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6589
6f7d5780
DN
65902009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6591
6592 * print.c (syms_of_print): Undo previous change.
6593
f19a0f5b
TZ
65942009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6595
6596 * lread.c (read1, syms_of_lread): Read hashtables back from the
6597 readable format.
6598
6599 * print.c (print_preprocess, print_object): Print hashtables fully
6600 and readably.
6601 (syms_of_print): Provide 'hashtable-print-readable.
6602
b9173dc2
AR
66032009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6604
6605 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6606 no family set.
6607 (nsfont_open): Handle case when entity has no family.
6608
1586503c
AR
66092009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6610
6611 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6612 element, not a list, for match case.
6613
087048cd
KH
66142009-07-28 Kenichi Handa <handa@m17n.org>
6615
6616 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6617 rigidly.
6618
6619 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6620 font_parse_xlfd. Check font properties more rigidly.
6621
780c2506
DN
66222009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6623
31fd7c5c
JB
6624 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6625 bsd-common.h.
780c2506 6626
a8c0cc18
KH
66272009-07-27 Kenichi Handa <handa@m17n.org>
6628
6629 * xfaces.c (face_with_height): Call font_clear_prop.
6630
4fbe2306
CY
66312009-07-26 Chong Yidong <cyd@stupidchicken.com>
6632
111d9af3
CY
6633 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6634
6635 * xterm.c (x_term_init): Use Qx.
6636
4fbe2306
CY
6637 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6638
1ac9108a 6639 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6640 (ns_get_color): Revert 2009-07-16 change.
6641
beb0b7f9
EZ
66422009-07-25 Eli Zaretskii <eliz@gnu.org>
6643
6644 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6645 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6646
2baf5e76
KR
66472009-07-25 Ken Raeburn <raeburn@raeburn.org>
6648
1ac9108a
SM
6649 * coding.h (decode_coding_string, encode_coding_string):
6650 Use SCHARS macro.
8890e5f5 6651
2baf5e76 6652 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6653 (load_depth): Delete.
2baf5e76
KR
6654 (Qload_in_progress): New variable.
6655 (load_unwind): Don't reference load_depth or load_in_progress.
6656 (Fload): Likewise; specbind Qload_in_progress instead.
6657 (init_lread): Don't initialize load_depth.
6658 (syms_of_lread): Initialize and protect Qload_in_progress.
6659
1395c6f5
AR
66602009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6661
6662 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6663
4e2f36cf
AR
66642009-07-23 Yavor Doganov <yavor@gnu.org>
6665
6666 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6667
5dd9a6f7
AR
66682009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6669
6670 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6671 Bugs 3792, 3720, 2402.
6672 (ns_lookup_indexed_color): Check for bad index.
6673 (ns_index_color): Init unused slot to 0.
6674 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6675 Bug 3714, possibly 3082.
5dd9a6f7 6676
c902b920
JR
66772009-07-22 Jason Rumney <jasonr@gnu.org>
6678
1ac9108a
SM
6679 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6680 Position IME window at cursor (Bug#2570).
c902b920
JR
6681 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6682 (globals_of_w32fns): Dynamically load functions required above.
6683
6684 * w32term.c (w32_draw_window_cursor): Send message to reposition
6685 any IME window.
6686
090101cf
CY
66872009-07-21 Chong Yidong <cyd@stupidchicken.com>
6688
6689 * fileio.c: Revert 2009-07-16 changes.
6690 (Vauto_save_include_big_deletions): New variable.
6691 (Fdo_auto_save): Disable auto-save only if
6692 auto-save-include-big-deletions is nil.
6693
e6583e3d
CY
66942009-07-21 Chong Yidong <cyd@stupidchicken.com>
6695
6696 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6697 the overflowed pixels into account (Bug#3879).
6698
ece435a5
KR
66992009-07-21 Ken Raeburn <raeburn@raeburn.org>
6700
6701 * lread.c (load_depth): New variable.
6702 (Fload, load_unwind, init_lread): Set it to the load recursion
6703 depth; set load_in_progress as a simple boolean based on the
6704 current load_depth. (Bug#3892)
6705
40b2d973
AR
67062009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6707
6708 * nsfont.m (ns_has_attribute): Remove.
6709 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6710
10be7e0d
JL
67112009-07-18 Juri Linkov <juri@jurta.org>
6712
6713 * process.c (Fset_process_query_on_exit_flag): Mention killing
6714 a buffer in docstring.
6715
fa055055
KH
67162009-07-17 Kenichi Handa <handa@m17n.org>
6717
6718 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6719
042f7b69
YM
67202009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6721
6722 * nsfns.m (Fns_set_alpha): Remove function.
6723 (syms_of_nsfns): Don't defsubr it.
6724
6725 * nsterm.m (ns_get_color): Remove incompatible color formats.
6726 (ns_color_to_lisp): Generate #rrggbb color format string.
6727
4be941e3
RS
67282009-07-16 Richard Stallman <rms@gnu.org>
6729
6730 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6731 (Fset_buffer_auto_saved): Handle save_length = -2.
6732
4e6b227d
CY
67332009-07-16 Chong Yidong <cyd@stupidchicken.com>
6734
6735 * xterm.c (Qx_gtk_map_stock): New var.
6736
6737 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6738 of calling intern each time.
6739
a1856973
YM
67402009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6741
6742 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6743 does tiling.
6744
6745 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6746
497e54d8
KH
67472009-07-14 Kenichi Handa <handa@m17n.org>
6748
72d36834
KH
6749 * font.c (font_vconcat_entity_vectors): New function.
6750 (struct font_sort_data): New member font_driver_preference.
6751 (font_compare): Check font_driver_preference.
6752 (font_sort_entities): The format of the first argument changed.
6753 (font_delete_unmatched): Likewise.
6754 (font_list_entities): The return type changed.
6755 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6756 (font_find_for_lface): Adjuste for the above changes.
6757 Don't suppress the checking of C even if the repertory supports it.
6758 (Flist_fonts): Adjust for the above changes.
72d36834 6759
1ac9108a
SM
6760 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6761 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6762 Reject a font who has adstyle property that is different from a
6763 langname derived from registry property.
1ac9108a 6764 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6765
b6046155
EZ
67662009-07-13 Eli Zaretskii <eliz@gnu.org>
6767
6768 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6769 local copy of dirfilename.
6770
fb6b6049
KH
67712009-07-13 Kenichi Handa <handa@m17n.org>
6772
e2402a5e
KH
6773 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6774 against max_char.
6775
fb6b6049
KH
6776 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6777 calling XSYMBOL (sym).
6778
65156807
EZ
67792009-07-11 Eli Zaretskii <eliz@gnu.org>
6780
1ac9108a
SM
6781 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6782 New function.
6783 (directory_files_internal) [WINDOWSNT]:
6784 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6785 the filesystem of the directory is fast or slow.
6786
6787 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6788 file name.
6789 (is_slow_fs): New function.
6790 (stat): Use it to determine whether to issue more system calls to
6791 get accurate file attributes, when w32-get-true-file-attributes is
6792 `local'.
6793
e0ab5fcf
JD
67942009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6795
6796 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6797 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6798 parameter font-parameter as default to the font dialog.
6799
784ceded
KH
68002009-07-10 Kenichi Handa <handa@m17n.org>
6801
6802 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6803
fb8edc0b
EZ
68042009-07-09 Eli Zaretskii <eliz@gnu.org>
6805
1ac9108a 6806 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6807
fb8edc0b
EZ
6808 * w32.c (stat): Treat UNC file names as residing on remote
6809 drives. (Bug#3542)
6810
635c75b1
KH
68112009-07-09 Kenichi Handa <handa@m17n.org>
6812
6813 * fontset.c (fontset_find_font): Fix previous change.
6814
c1d5ce94
MA
68152009-07-08 Michael Albinus <michael.albinus@gmx.de>
6816
6817 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6818 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6819 error flag.
6820
edb61b39
KH
68212009-07-08 Kenichi Handa <handa@m17n.org>
6822
374bf7e4
KH
6823 * fontset.c (fontset_find_font): Fix the logic of handling
6824 charset_matched.
6825 (font_for_char): Delete unused var.
6826 (generate_ascii_font_name): Delete it.
6827
edb61b39
KH
6828 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6829
6830 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6831 (encode_coding_sjis): Fix the code range check.
6832
0f3f018c
CY
68332009-07-07 Chong Yidong <cyd@stupidchicken.com>
6834
6835 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6836 (Fexpand_file_name): Copy string data properly (Bug#3772).
6837
fcaf6f3a
JD
68382009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6839
6840 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6841 first MapNotify.
6842
6809ca75
KH
68432009-07-07 Kenichi Handa <handa@m17n.org>
6844
6845 * character.h (unibyte_has_multibyte_table): Delete extern.
6846 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6847
6848 * charset.c (Fset_charset_priority): Update charset_unibyte.
6849 (syms_of_charset): Initialize charset_unibyte.
6850
6851 * character.c (unibyte_has_multibyte_table): Delete it.
6852 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6853 charset_unibyte.
6854 (multibyte_char_to_unibyte_safe): Likewise.
6855 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6856
1ac9108a 6857 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6858 (x_produce_glyphs): Likewise.
6859
6860 * .gdbinit (xcharset): Fix the treating $arg0.
6861
ad9e2d54
EZ
68622009-07-04 Eli Zaretskii <eliz@gnu.org>
6863
6864 Emulation of `getloadavg' on MS-Windows.
50426a04 6865 * w32.c: Include float.h.
ad9e2d54
EZ
6866 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6867 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6868 (get_native_system_info, get_system_times): New functions.
6869 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6870 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6871 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6872 g_b_init_get_system_times, and num_of_processors.
6873
0a3472c7
JR
68742009-07-03 Jason Rumney <jasonr@gnu.org>
6875
6876 * w32term.c (w32_initialize): Use standard types.
6877
80904120
EZ
68782009-07-03 Eli Zaretskii <eliz@gnu.org>
6879
6880 * dired.c (Ffile_attributes): Decode user and group names by the
6881 locale's encoding. (Bug#3443)
6882
6978862d
DN
68832009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6884
f8d23104
DN
6885 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6886 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6887
6888 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6889
6890 * term.c (init_tty): Remove spurious #ifdef.
6891
6978862d
DN
6892 * m/mips.h: Mention this file is also used for netbsd.
6893 * m/pmax.h: Remove file.
6894
e044e4fc
JD
68952009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6896
6897 * xterm.h (struct x_display_info): Add invisible_cursor.
6898 (struct x_output): Add current_cursor.
6899
6900 * xterm.c (XTtoggle_invisible_pointer): New function.
6901 (x_define_frame_cursor): Don't define cursor if invisible or the
6902 same as before. Set current_cursor.
6903 (x_create_terminal): Set toggle_invisible_pointer_hook.
6904
6905 * xfns.c (make_invisible_cursor): New function.
6906 (x_set_mouse_color): Call make_invisible_cursor.
6907 Set current_cursor.
6908 (x_window): Set current_cursor.
6909
6910 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6911
6912 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6913 inserting a character.
6914 (read_avail_input): Call frame_make_pointer_visible.
6915
6916 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6917 (frame_make_pointer_invisible, frame_make_pointer_visible):
6918 New functions.
e044e4fc
JD
6919 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6920
6921 * frame.h: Declare frame_make_pointer_invisible and
6922 frame_make_pointer_visible.
6923 (struct frame): Add pointer_invisible.
6924
574c8efa
JD
69252009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6926
7b507248
JD
6927 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6928 frame isn't visible.
6929 (xg_frame_resized): If width/height is -1, get size of window
6930 from X server.
6931
6932 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6933 for MapNotify.
6934
835bdaa7 6935 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6936 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6937 (flush_and_sync): Reintroduce.
574c8efa 6938
3f1c6666 69392009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6940
31fd7c5c 6941 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6942
6943 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6944 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6945
6946 * frame.h: Declare Qsticky.
6947
cad9ef74
JD
6948 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6949
6950 * nsfns.m (ns_frame_parm_handlers): Ditto.
6951
6952 * frame.c: Declare Qsticky.
6953 (frame_parms): Add sticky.
6954
6955 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6956
6957 * xterm.h: Declare x_set_sticky.
6958
6959 * xterm.c (x_set_sticky): New function.
6960
69b16610
JD
6961 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6962 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6963 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6964
6965 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6966
6967 * frame.c: Qmaximized is new.
6968 (x_set_frame_parameters): Do not handle fullscreen specially.
6969 Only set width and height if explicitly set.
6970 (x_set_fullscreen): Handle Qmaximized.
6971 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6972 (syms_of_frame): Initialize Qmaximized.
6973
1ac9108a
SM
6974 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6975 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6976
6977 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6978 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6979 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6980 set gravity to NorthWestGravity when USE_GTK.
6981 (set_wm_state): New function.
31fd7c5c 6982 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6983 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6984 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6985 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6986 to x_real_positions and x_fullscreen_adjust.
6987
6988 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6989 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6990 flush_and_sync.
6991 (xg_height_changed): New function.
6992 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6993 and gtk_window_set_policy. Set frame gravity after parsing the
6994 geometry string.
3f1c6666
JD
6995 (xg_update_frame_menubar, free_frame_menubar)
6996 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6997 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6998 Remove calls to xg_frame_set_char_size.
6999
fd503d99
KH
70002009-07-01 Kenichi Handa <handa@m17n.org>
7001
7002 * keyboard.c (decode_keyboard_code): New function.
7003 (tty_read_avail_input): Decode the input bytes if necessary.
7004
1ac9108a
SM
7005 * coding.c (setup_coding_system):
7006 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7007 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7008 use Qno_conversion.
7009
24ed93fb
YM
70102009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7011
7012 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7013
99061dfc
CY
70142009-06-30 Chong Yidong <cyd@stupidchicken.com>
7015
1ac9108a 7016 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7017
ff90fbde
JR
70182009-06-30 Jason Rumney <jasonr@gnu.org>
7019
7020 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7021 is already loaded.
7022 Set user model ID if supported (bug#1849).
7023
5f445726
JM
70242009-06-29 Jim Meyering <meyering@redhat.com>
7025
7026 Remove useless if-before-xfree test.
7027 * nsfont.m (nsfont_close): Remove useless test.
7028 * term.c (delete_tty): Likewise.
7029 * w32.c (system_process_attributes): Likewise.
7030 * w32font.c (w32font_close): Likewise.
7031 * xfaces.c (x_free_gc): Likewise.
7032 * xselect.c (buffer): Likewise.
7033
b9607587
AS
70342009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7035
7036 * process.c (send_process): Keep decoded string in a local
7037 variable and protect it from GC. (Bug#3521)
7038
89ba96f4
EZ
70392009-06-28 Eli Zaretskii <eliz@gnu.org>
7040
7041 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7042 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7043
098a1589
CY
70442009-06-28 Chong Yidong <cyd@stupidchicken.com>
7045
485422be
CY
7046 * xdisp.c (start_display, handle_face_prop)
7047 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7048 (redisplay_window, try_window_id, produce_image_glyph):
7049 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7050
098a1589
CY
7051 * xterm.c (x_update_window_begin, x_new_focus_frame)
7052 (x_scroll_bar_handle_click, handle_one_xevent)
7053 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7054 (x_make_frame_visible, x_make_frame_invisible)
7055 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7056 code chunks that are now obsolete.
7057
78c38319
MA
70582009-06-28 Michael Albinus <michael.albinus@gmx.de>
7059
7060 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7061 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7062 for hours, when optimzation is enabled.
7063 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7064 (xd_read_message): Make them static.
7065
4189ed40
CY
70662009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7067
7068 * term.c (turn_on_face): Allow simultaneously bold and dim
7069 terminal faces (Bug#3530).
7070
cd9b5e16
CY
70712009-06-27 Chong Yidong <cyd@stupidchicken.com>
7072
4e23bedb
CY
7073 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7074
cd9b5e16
CY
7075 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7076 truncation glyphs (Bug#3686).
7077
07cc3c35
GM
70782009-06-27 Glenn Morris <rgm@gnu.org>
7079
7080 * m/pmax.h: Restore file, with only netbsd portions.
7081
31fd7c5c 70822009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7083
cd9b5e16 7084 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7085
42d4a64f
KH
70862009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7087
7088 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7089 the arg FORCE_SYMBOL.
7090
930fe55b 70912009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7092
7093 * fontset.c (fontset_find_font): When a usable rfont_def is found
7094 in a fallback font-group, make it the first element of the group.
7095
57ebc3fd
CY
70962009-06-24 Chong Yidong <cyd@stupidchicken.com>
7097
7098 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7099
f084f942
KH
71002009-06-24 Kenichi Handa <handa@m17n.org>
7101
7102 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7103 set for C.
7104 (fontset_font): Record the availability of a font for C both in
7105 the realized fontsets of the current one and the default one.
7106
2f686c87
DN
71072009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7108
7109 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7110 conditional, it is always defined on AIX.
7111
666e158e
MB
71122009-06-23 Miles Bader <miles@gnu.org>
7113
7114 * window.c (Vrecenter_redisplay): New variable.
7115 (syms_of_window): Initialize it.
7116 (Qtty): New extern declaration.
7117 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7118
c6da7cd2
JM
71192009-06-23 Jim Meyering <meyering@redhat.com>
7120
1ac9108a
SM
7121 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7122 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7123 pointer dereferences are guaranteed to be valid.
c6da7cd2 7124
678dca3d
KH
71252009-06-23 Kenichi Handa <handa@m17n.org>
7126
74d75424
KH
7127 * emacs.c (main): Call init_font ().
7128
7129 * font.h (Vfont_log): Extern it.
7130 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7131
7132 * font.c (font_sort_entities, font_list_entities)
7133 (font_matching_entity, font_open_entity)
7134 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7135 (Vfont_log): Delete static.
7136 (font_log_env_checked): Delete this variable.
7137 (font_add_log): Don't check font_log_env_checked.
7138 (font_deferred_log): Check Vfont_log.
7139 (init_font): New function.
7140
678dca3d
KH
7141 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7142
7143 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7144
7145 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7146
7147 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7148
7149 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7150 (face_for_char): Don't call font_deferred_log here.
7151 (font_for_char): Likewise.
7152
8a668709
CY
71532009-06-22 Chong Yidong <cyd@stupidchicken.com>
7154
9a01ee33
CY
7155 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7156 rather than its background_width for drawing the overline and
7157 underline (Bug#489).
7158
7159 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7160 rather than its background_width for drawing the overline and
7161 underline (Bug#489).
ec7c9926
CY
7162 (xg_default_icon_file): New variable.
7163 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7164 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7165
8a668709
CY
7166 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7167 (load_overlay_strings): Remove externs.
7168 (fast_find_position): Function deleted.
7169 (mouse_face_from_buffer_pos): New function, based on
7170 fast_find_position. Correctly handle before-strings,
7171 display-strings, and after-strings (Bug#1220).
7172 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7173
4d4c02d8
CY
71742009-06-21 Chong Yidong <cyd@stupidchicken.com>
7175
1ac9108a 7176 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7177 (move_it_in_display_line_to, move_it_in_display_line_to)
7178 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7179
70243478
CY
71802009-06-21 Chong Yidong <cyd@stupidchicken.com>
7181
7182 * Branch for 23.1.
7183
13087e59
JR
71842009-06-21 Jason Rumney <jasonr@gnu.org>
7185
7186 * w32term.c (keyboard_codepage): New static variable.
7187 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7188 (w32_read_socket) [WM_CHAR]: Use it to decode character
7189 input (bug#3237).
7190 (w32_initialize): Initialize it.
7191 (codepage_for_locale): New function.
7192
4735b74e
KR
71932009-06-20 Ken Raeburn <raeburn@raeburn.org>
7194
7195 * process.c (status_message): Pass Faset index argument as a lisp
7196 object, so as to work with USE_LISP_UNION_TYPE.
7197
0e727afa
YM
71982009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7199
7200 * coding.c (Ffind_coding_systems_region_internal):
7201 Cache checked characters.
7202
cf299835
KH
72032009-06-18 Kenichi Handa <handa@m17n.org>
7204
1ac9108a 7205 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7206
90f20d94
AS
72072009-06-18 Andreas Schwab <aschwab@redhat.com>
7208
7209 * xdisp.c (redisplay_internal): Check that the frame is still
7210 live after redisplay of its windows.
7211 (redisplay_windows): Check that the window is still live.
7212
7f1faf1c
KH
72132009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7214
7215 * coding.c (detect_coding_utf_16): Fix previous change.
7216
cc13543e
KH
72172009-06-16 Kenichi Handa <handa@m17n.org>
7218
7219 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7220 UTF-16 by checking the dispersion of Eth and Oth bytes.
7221
977b85f4
AS
72222009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7223
7224 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7225
66bd43d1
KH
72262009-06-15 Kenichi Handa <handa@m17n.org>
7227
7228 * process.c (status_message): Fix previous change. Be sure to
7229 decode a localized string.
7230
cb5ca9c5
YM
72312009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7232
7233 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7234 add comment explaining why.
7235
ec7709ba 72362009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7237
ec7709ba 7238 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7239
4b7f335c
AR
72402009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7241
7242 * nsfont.m (ns_attribute_value): Remove.
7243 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7244 (ns_has_attribute): Shrink the normal range.
7245 (ns_findfonts): Don't worry about requested spec in determining
7246 need for synthItal.
e41820ee 7247 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7248
73b26103
SZ
72492009-06-14 Seiji Zenitani <zenitani@mac.com>
7250
7251 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7252
5753e4da
KH
72532009-06-11 Kenichi Handa <handa@m17n.org>
7254
7255 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7256 overhang for the static composition case.
7257
3561b671
KH
72582009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7259
5753e4da
KH
7260 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7261 overhang for the automatic composition case.
7262
3561b671
KH
7263 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7264 composition case.
7265
852bbd41
CY
72662009-06-10 Chong Yidong <cyd@stupidchicken.com>
7267
7268 * xdisp.c (get_next_display_element): When handling wrap-prefix
7269 and line-prefix, treat \n as a control character (bug#3502).
7270
9903d1e6
KH
72712009-06-10 Kenichi Handa <handa@m17n.org>
7272
7273 * font.c (font_parse_family_registry): Fix for one-char foundry.
7274 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7275
0bcbaaaa
CY
72762009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7277
7278 * process.c (status_message): Fix handling of multibyte signal
7279 string (Bug#3499).
7280
40aa3f13
JM
72812009-06-09 Jim Meyering <meyering@redhat.com>
7282
1f80c7e2
CY
7283 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7284 color name is missing.
40aa3f13 7285
72d51285
KH
72862009-06-09 Kenichi Handa <handa@m17n.org>
7287
7288 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7289 FROM-CODE and TO-CODE are codepoints of CHARSET.
7290
c1d04d84
AR
72912009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7292
7293 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7294
72952009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7296
7297 Changes to support :script/:lang/:otf in NS font driver.
7298 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7299 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7300 indicate not part of font driver interface, and change callers.
7301 (ns_get_family): Remove pointless null check.
7302 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7303 ns_spec_to_descriptor, ns_descriptor_to_entity.
7304 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7305 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7306 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7307 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7308 (ns_get_req_script, ns_accumulate_script_ranges)
7309 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7310 New functions.
7311 (nsfont_list, nsfont_match): Use ns_findfonts.
7312 (nsfont_open): Use font descriptor instead of traits.
7313 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7314 (dump_glyphstring): Rename to ns_dump_glyphstring.
7315
c7eb9816
AR
7316 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7317
c1d04d84
AR
7318 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7319
7320 * fontset.c (fontset_from_font): Remove NS-specific code.
7321
ec7709ba 73222009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7323
7324 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7325 nonactive windows.
7326
31fd7c5c 73272009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7328
1ac9108a 7329 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7330
68852c13 73312009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7332
7333 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7334
6756cd1d
CY
73352009-06-07 Chong Yidong <cyd@stupidchicken.com>
7336
7337 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7338 account for the overflowing of newlines into the last glyph on the
7339 display line (Bug#3482).
7340
28bf482a
DR
73412009-06-05 David Reitter <david.reitter@gmail.com>
7342
ec7709ba
JB
7343 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7344 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7345 Fns_selection_exists_p, Fns_selection_owner_p.
7346
fdb55376
JR
73472009-06-03 Jason Rumney <jasonr@gnu.org>
7348
7349 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7350 available. (Bug#3379)
7351
05129fbe
KH
73522009-05-29 Kenichi Handa <handa@m17n.org>
7353
1ac9108a
SM
7354 * coding.c (get_translation_table):
7355 Check Venable_character_translation.
05129fbe 7356
ec7709ba 73572009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7358
ec7709ba
JB
7359 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7360 (x_make_frame_visible): Move frame to front rather than calling
15891144 7361 ns_raise_frame().
ec7709ba 7362 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7363 isn't key window.
ec7709ba 7364 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7365 drawRect may be called by NSView even if the frame is hidden.
7366
ec7709ba
JB
7367 * nsfns.m (Fx_create_frame): Follow other ports in
7368 determining visibility; default to t. Ensure async_visible is set.
15891144 7369
21f73755
EZ
73702009-05-23 Eli Zaretskii <eliz@gnu.org>
7371
7372 * dired.c (Ffile_attributes): Doc fix.
7373
34001e41
CY
73742009-05-22 Chong Yidong <cyd@stupidchicken.com>
7375
7376 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7377
46306a17
SM
73782009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7379
7380 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7381 and xfont_scratch_props.
7382 (syms_of_xfont): Do it here instead.
7383 (xfont_find_ccl_program): Delete, unused.
7384 (xfont_open): Delete unused var `i'.
7385
ef6e0694
KH
73862009-05-21 Kenichi Handa <handa@m17n.org>
7387
7388 * fontset.c (Qlatin): Don't make it static.
7389
46306a17
SM
7390 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7391 New functions.
ef6e0694
KH
7392 (xfont_scripts_cache, xfont_scratch_props): New variables.
7393 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7394 (xfont_list_pattern): Argument changed. Callers changed.
7395 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7396 (xfont_list): Don't reject a font spec with :script property.
7397 (xfont_has_char): Fix setting of encoding.
7398 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7399 xfont_scratch_props.
7400
74012009-05-19 Kenichi Handa <handa@m17n.org>
7402
46306a17 7403 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7404 Callers changed.
7405
74062009-05-18 Kenichi Handa <handa@m17n.org>
7407
7408 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7409
ac71ced7
SM
74102009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7411
7412 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7413 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7414
1c6d1051
YM
74152009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7416
7417 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7418 (x_delete_terminal): Dissociate resource database from display and
7419 then call XrmDestroyDatabase before closing display.
7420
9b9b779c
AR
74212009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7422
7423 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7424 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7425 whether selected frame is viable before raising it (based on patch
7426 by David Reitter), and improve commentary.
7427 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7428
cccd42d5
KH
74292009-05-15 Kenichi Handa <handa@m17n.org>
7430
7431 * font.c (Ffont_spec): Check arguments.
7432
337fbd17
CY
74332009-05-14 Chong Yidong <cyd@stupidchicken.com>
7434
7435 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7436 weight when testing attributes (Bug#3282).
7437
47a6002f
JD
74382009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7439
7440 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7441 what we expect to get in the next ConfigureNotify event.
7442
9cb363db
YM
7443 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7444 before Xft one (Bug#1696).
7445
b9126609
CY
74462009-05-07 David Reitter <david.reitter@gmail.com>
7447
7448 * nsfns.m (Fx_display_planes): Compute bitplanes using
7449 NSBitsPerPixelFromDepth (Bug#3207).
7450
27a69fd9
CY
74512009-05-10 Chong Yidong <cyd@stupidchicken.com>
7452
7453 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7454
00f37552
TTN
74552009-05-10 Ulrich Mueller <ulm@gentoo.org>
7456
7457 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7458
2d82a920
DR
74592009-05-07 David Reitter <david.reitter@gmail.com>
7460
ec7709ba
JB
7461 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7462 Respect mouse face background.
2d82a920 7463
46b0d52d
DR
74642009-05-07 David Reitter <david.reitter@gmail.com>
7465
ec7709ba
JB
7466 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7467 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7468 in ns_update_begin and ns_update_end.
7469
ce1b23bb
SM
74702009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7471
5996e1b7
SM
7472 * nsfns.m (ns_get_screen): Rewrite.
7473 Don't presume selected-frame is of type `ns'.
7474
ba98e3a0
SM
7475 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7476 all drivers.
7477
ce1b23bb
SM
7478 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7479
bcda200f
YM
74802009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7481
7482 * keyboard.h (add_user_signal): Fix typo in extern.
7483
7484 * lisp.h (add_user_signal): Remove extern.
7485
7486 * unexelf.c (unexec): Consider a section to precede the .bss section
7487 if its addresses overlap that of .bss.
7488 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7489 instead of dumping process.
7490
864660a2
SM
74912009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7492
7493 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7494
50da4e56
SM
74952009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7496
7497 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7498
51520a1a
DN
74992009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7500
7501 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7502 any statements.
7503
409ea3a1
AS
75042009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7505
59c4c60f
AS
7506 * process.c (read_process_output): Make sure the current buffer is
7507 always restored.
7508
409ea3a1
AS
7509 * coding.c (record_conversion_result): Don't modify
7510 Vlast_code_conversion_error for successful result.
7511 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7512
56f00ed2
KH
75132009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7514
7515 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7516 (load_charset_map): Remove unnecessary code.
56f00ed2 7517
4491c9d2
DR
75182009-04-30 David Reitter <david.reitter@gmail.com>
7519
35f5b128 7520 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7521 through f24.
7522
6970f632
CY
75232009-04-30 Chong Yidong <cyd@stupidchicken.com>
7524
7525 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7526
7527 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7528 face_at_buffer_position.
7529 (face_before_or_after_it_pos, get_next_display_element)
7530 (note_mouse_highlight): Update face_at_buffer_position call.
7531
7532 * term.c (term_mouse_highlight):
7533 * msdos.c (IT_note_mouse_highlight):
7534 * fontset.c (Finternal_char_font):
35f5b128 7535 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7536
7537 * dispextern.h (face_at_buffer_position): Update prototype.
7538
0c616f63
KH
75392009-04-30 Kenichi Handa <handa@m17n.org>
7540
35f5b128 7541 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7542
ad3aaf33
AS
75432009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7544
7545 * callproc.c (Fcall_process): Fix GC protection. Make sure
7546 current buffer is always restored.
7547
c3c963a0
YM
75482009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7549
7550 * atimer.c (init_atimer): Also clear stopped_atimers.
7551
7552 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7553
7e3386cb
YM
7554 * process.c (create_process): Clean up merger residues of
7555 2008-07-17 change.
7556
91f68422
CY
75572009-04-29 Ulrich Mueller <ulm@gentoo.org>
7558
7559 * lread.c (Vread_circle): New variable.
7560 (read1): Disable recursive read if Vread_circle is nil.
7561
24b34550
KH
75622009-04-29 Kenichi Handa <handa@m17n.org>
7563
7564 * fontset.h (set_default_ascii_font): Delete extern.
7565
7566 * fontset.c (set_default_ascii_font): Delete this unused function.
7567
7568 * frame.c (x_set_font): When ARG is a font-object, check if the
7569 font-object matches with the ASCII font-spec of the frame's
9c358bda 7570 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7571
77bf07e1
AS
75722009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7573
7574 * fns.c (Flocale_info): Protect vector from GC during decoding.
7575
7576 * process.c (Fstart_process): Protect argv strings from GC during
7577 encoding.
7578
2c55aacf
AS
75792009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7580
7581 * sysdep.c: Include <ctype.h>.
7582
b892d3c9
DR
75832009-04-27 David Reitter <david.reitter@gmail.com>
7584
35f5b128 7585 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7586 Remove commented-out code.
7587
9d0644c4
JB
75882009-04-26 Johan Bockgård <bojohan@gnu.org>
7589
7590 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7591
b7053016
JR
75922009-04-25 Jason Rumney <jasonr@gnu.org>
7593
7594 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7595
4e8231f3
YM
75962009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7597
7598 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7599 Swap bytes in short integer if fringe bitmap width > 8.
7600
493dcf2c
KH
76012009-04-23 Kenichi Handa <handa@m17n.org>
7602
7603 * xfaces.c (Fx_list_fonts): If a font size is specified in
7604 PATTERN, set it in returned scalable fonts.
7605
401e9e57
CY
76062009-04-22 Chong Yidong <cyd@stupidchicken.com>
7607
708e05dc
CY
7608 * keyboard.c (Fset_input_meta_mode): Doc fix.
7609
7610 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7611
1ac9108a 7612 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7613
7614 * coding.c (Fterminal_coding_system): Doc fix.
7615
7616 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7617 (Fx_display_pixel_height, Fx_display_planes)
7618 (Fx_display_color_cells, Fx_server_max_request_size)
7619 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7620 (Fx_display_mm_height, Fx_display_mm_width)
7621 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7622 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7623 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7624 (check_x_display_info): Handle terminal objects instead of
7625 terminal ids.
7626
401e9e57
CY
7627 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7628 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7629 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7630 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7631
df80c7f0
KH
76322009-04-21 Kenichi Handa <handa@m17n.org>
7633
5a8f12af 7634 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7635 (font_score): Check AVGWIDTH too.
908567ef 7636
df80c7f0
KH
7637 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7638 worst case.
1ac9108a
SM
7639 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7640 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7641
705af33f
JR
76422009-04-19 Jason Rumney <jasonr@gnu.org>
7643
7644 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7645 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7646
7647 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7648 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7649 get_phys_cursor_geometry.
7650
b71ac3dd 7651 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7652 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7653 using get_phys_cursor_geometry.
7654
7655 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7656 correctly calculated.
7657
dc2933eb
JD
76582009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7659
1ac9108a
SM
7660 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7661 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7662 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7663 is deprecated.
7664
973e7849
AS
76652009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7666
7667 * font.c (font_put_frame_data): Use xfree instead of free.
7668
314d66f4
JB
76692009-04-17 Juanma Barranquero <lekktu@gmail.com>
7670
7671 * w32font.c (Qja, Qko): Remove declarations.
7672 (syms_of_w32font): Don't DEFSYM them.
7673
cf702558
CY
76742009-04-17 Chong Yidong <cyd@stupidchicken.com>
7675
7676 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7677
7678 * font.h (Qja, Qko): Extern them.
7679
7680 * ftfont.c (Qja, Qko): Remove declarations.
7681
7682 * xfont.c (Qja, Qko): Remove declarations.
7683
b50504f5
KH
76842009-04-17 Kenichi Handa <handa@m17n.org>
7685
bde25748
KH
7686 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7687 string from a vector to handle Latin-1 characters correctly.
7688
b50504f5
KH
7689 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7690 entity even if the cache hits.
7691
f4646fff
AS
76922009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7693
7694 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7695 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7696
e7deaab0
AS
7697 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7698 * lisp.h: Adjust prototypes.
7699
0a0e7d49
CY
77002009-04-16 Chong Yidong <cyd@stupidchicken.com>
7701
7702 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7703 change (Bug#3003).
7704
3c908a57
KH
77052009-04-16 Kenichi Handa <handa@m17n.org>
7706
1ac9108a 7707 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7708
7709 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7710 adstyle.
7711
7712 * ftfont.c (Qja, Qko): Don't make them static.
7713 (enum ftfont_cache_for): New enum.
7714 (fc_charset_table): Undo the previous change.
7715 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7716 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7717 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7718 non-scarable font, try to get AVERAGE_WIDTH.
7719 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7720 Change ft_face_cache from a list of a hash-table. Don't check
7721 `ja' and `ko' adstyle here.
7722 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7723 FTFONT_CACHE_FOR_CHARET.
7724 (ftfont_get_charset): Undo the previous change.
1ac9108a 7725 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7726 (ftfont_close): Likewise.
7727 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7728
7729 * font.c (font_sort_entites): Change the meaning of the arg
7730 BEST-ONLY. Don't optimize for VEC of lenght 1.
7731 (font_select_entity): Just return the value of font_sort_entites.
7732
7733 * xfaces.c (merge_face_vectors): Reflect font properties in
7734 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7735 font_clear_prop if a face attribute doesn't change.
7736
3c908a57
KH
7737 * charset.h (charset_ksc5601): Extern it.
7738
7739 * charset.c (charset_ksc5601): New variable.
7740 (Fdefine_charset_internal): Set charset_ksc5601.
7741 (init_charset_once): Initialize charset_ksc5601 to -1.
7742
d65859c3
DN
77432009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7744
7745 * fileio.c (history_delete_duplicates): Remove unused declaration.
7746
7747 * callint.c (history_delete_duplicates): New declaration.
7748 (Fcall_interactively): Remove command history duplicates when
7749 history_delete_duplicates is true.
7750
3ba010e5
EZ
77512009-04-14 Eli Zaretskii <eliz@gnu.org>
7752
7753 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7754
06f19b91
KH
77552009-04-14 Kenichi Handa <handa@m17n.org>
7756
7757 * font.c (Ffont_info): Fix docstring. Fix the second element of
7758 the returned value (bug#2949).
7759
2cce8bfc
CY
77602009-04-14 Chong Yidong <cyd@stupidchicken.com>
7761
7762 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7763
d156542d
KH
77642009-04-14 Kenichi Handa <handa@m17n.org>
7765
7766 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7767 encoding charset is ascii_compatible.
7768
7769 * charset.c (Fdefine_charset_internal): Make charset
7770 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7771 code_offset is 0, and covers all ASCII characters.
7772
86fa089e
SM
77732009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7774
7775 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7776 (ns_string_to_pasteboard_internal):
7777 * nsmenu.m (process_dialog):
7778 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7779 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7780 * lisp.h (Fx_load_color_file): Declare.
7781
a8a3728b
KH
77822009-04-13 Kenichi Handa <handa@m17n.org>
7783
1ac9108a 7784 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7785 (font_select_entity): Suppress the code to optimize for the same
7786 kind of fonts.
7787 (font_load_for_lface): Get a font that supports at least ASCII
7788 characters.
7789
7790 * ftfont.c (Qja, Qko): New variables.
7791 (fc_charset_table): Delete uniquifier data for iso8859-1.
7792 (ftfont_get_latin1_charset): New function.
7793 (get_adstyle_property): New function.
7794 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7795 bitmap fonts.
7796 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7797 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7798 `ko' or `ja'.
7799 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7800 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7801 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7802 property.
7803 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7804 (syms_of_ftfont): DEFSYM Qja and Qko.
7805
483670b5
KH
78062009-04-09 Kenichi Handa <handa@m17n.org>
7807
12b55765
KH
7808 * charset.c (map_charset_chars): For a charset of `superset'
7809 method, fix calculation of code range.
7810
483670b5
KH
7811 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7812 from the list of extra properties.
7813 (font_clear_prop): Be sure to delete `:name' font property.
7814
57d3b93b
KH
78152009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7816
b4b2c2ca
YM
7817 * dispnew.c (redraw_overlapping_rows): Fix detection of
7818 overlapping for topmost and bottommost rows.
7819
1ac9108a 7820 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7821
472c3609
JR
78222009-04-06 Jason Rumney <jasonr@gnu.org>
7823
7824 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7825
ab193662
KH
78262009-04-06 Kenichi Handa <handa@m17n.org>
7827
7828 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7829
7830 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7831
0c26f026
KH
78322009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7833
7834 * ftfont.c (ftfont_open): Fix checking of the return value of
7835 FT_Load_Char. Fix setting font->underline_thickness.
7836
e173bbce
CY
78372009-04-04 Chong Yidong <cyd@stupidchicken.com>
7838
7839 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7840 (Fterminal_parameters, Fterminal_parameter)
7841 (Fset_terminal_parameter): In doc string, refer to terminal
7842 objects rather than terminal ids.
7843
693a2698
EZ
78442009-04-04 Eli Zaretskii <eliz@gnu.org>
7845
7846 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7847 ret_lim_data. (Bug#2867)
7848
d5221487
CY
78492009-04-03 Chong Yidong <cyd@stupidchicken.com>
7850
7851 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7852 so they don't get wider than the window, matching 2006-01-23
7853 change to the partner function in xdisp.c (Bug#2800).
7854
223509a3
KH
78552009-04-03 Kenichi Handa <handa@m17n.org>
7856
7857 * print.c (print_object): Make each lowest sub_char_table start a
7858 new line (Bug#2866).
7859
74fcd0b1
KH
78602009-04-02 Kenichi Handa <handa@m17n.org>
7861
7862 * fontset.c (fontset_font): Record no-font when a fontset
7863 explicitly tells not to try another font-specs.
7864
c542407d
SM
78652009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7866
7867 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7868
e3869731
KH
78692009-03-30 Kenichi Handa <handa@m17n.org>
7870
d8d2f142
KH
7871 * fontset.c (fontset_from_font): Specify only registry in a
7872 font-spec for all characters supported by that registry.
7873
e3869731
KH
7874 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7875 even if HAVE_M17N_FLT is not defined.
7876
5da5f805
CY
78772009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7878
7879 * ftfont.c: Conditionalize prototyping and use of
7880 ftfont_variation_glyphs.
7881
ab226c50
SM
78822009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7883
9628fed7
SM
7884 * frame.c (delete_frame): Work around compiler bug.
7885
7886 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7887 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7888 Some more EMACS_INT.
7889 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7890
7891 * xdisp.c (dump_glyph): Fix typo.
7892
ae19ba7c
SM
7893 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7894 (adjust_markers_gap_motion, adjust_markers_for_delete)
7895 (adjust_markers_for_insert, adjust_point)
7896 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7897 (make_gap, copy_text, count_size_as_multibyte, insert)
7898 (insert_and_inherit, insert_before_markers)
7899 (insert_before_markers_and_inherit, insert_1)
7900 (count_combining_before, count_combining_after, insert_1_both)
7901 (insert_from_string, insert_from_string_before_markers)
7902 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7903 (insert_from_buffer_1, adjust_after_replace)
7904 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7905 (replace_range_2, del_range, del_range_1, del_range_byte)
7906 (del_range_both, del_range_2, modify_region)
7907 (prepare_to_modify_buffer, signal_before_change)
7908 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7909 for buffer positions and sizes.
7910 * lisp.h: Adjust prototypes accordingly.
7911
7912 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7913 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7914 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7915
ab226c50
SM
7916 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7917
46dfb8fb
JD
79182009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7919
7920 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7921 lines and columns so we keep the same pixel height and width.
7922
7923 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7924 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7925 (x_handle_net_wm_state): New function to update frame parameter
7926 fullscreen.
7927 (x_term_init): Initialize atoms for _NET_WM_STATE.
7928
7929 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7930
d347e494
SM
79312009-03-27 Kevin Ryde <user42@zip.com.au>
7932
7933 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7934 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7935 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7936 (Fgpm_mouse_stop): Pass that new parameter.
7937 * termhooks.h (close_gpm): Adjust prototype.
7938
84db11d6
SM
79392009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7940
c95a5008
SM
7941 * lisp.h (Fx_focus_frame): Declare.
7942
84db11d6
SM
7943 * callint.c (Fcall_interactively): For '^' just delegate the work to
7944 handle-shift-selection.
7945 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7946
0a1958d6
CY
79472009-03-24 Chong Yidong <cyd@stupidchicken.com>
7948
0bfdff23
CY
7949 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7950
0a1958d6
CY
7951 * data.c (Qinteractive_form): New variable.
7952 (Finteractive_form): Use it.
7953
7954 * eval.c (Fcommandp): Use Qinteractive_form.
7955
58aec0d6
JR
79562009-03-24 Jason Rumney <jasonr@gnu.org>
7957
7958 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7959 Calculate total size precisely. Decode environment variables
7960 before substituting. (Bug#38)
7961
553dd618
KH
79622009-03-24 Kenichi Handa <handa@m17n.org>
7963
7964 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7965 encoding (Bug#2722).
553dd618 7966
c39ea606
JD
79672009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7968
7969 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7970 that gdpy is set.
7971
bc9b2b5e
AM
79722009-03-22 Alan Mackenzie <acm@muc.de>
7973
7974 * callint.c (Finteractive): Clarify the doc string - even
7975 promptless elements need \n separators.
7976
9f995a76
JR
79772009-03-22 Jason Rumney <jasonr@gnu.org>
7978
7979 * w32term.c (syms_of_w32term): Doc fix for
7980 x-use-underline-position-properties.
7981
22749e9a
EZ
79822009-03-21 Eli Zaretskii <eliz@gnu.org>
7983
7984 * w32.c (getpwuid): Change argument type to unsigned.
7985 (struct w32_id): Change type of `rid' member to unsigned.
7986 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7987 argument ID to unsigned. All callers changed.
7988 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7989
e00553bf
EZ
79902009-03-20 Eli Zaretskii <eliz@gnu.org>
7991
7992 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7993 negative, produce a float value.
7994
7995 * dired.c (make_uid, make_gid): New functions.
7996 (Ffile_attributes): Use them to avoid negative UID and GID.
7997
f761d6b6
JB
79982009-03-20 Juanma Barranquero <lekktu@gmail.com>
7999
8000 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8001 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8002 Fix typos in docstrings.
8003
d507f8d7
KH
80042009-03-19 Kenichi Handa <handa@m17n.org>
8005
8006 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8007 changed, use font_load_for_lface to get a new font object.
8008 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8009
8010 * frame.c (x_set_font): Handle the case that ARG is a cons.
8011
c68845e0
GM
80122009-03-19 Glenn Morris <rgm@gnu.org>
8013
8014 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8015
bfa49dd1
CY
80162009-03-19 Chong Yidong <cyd@stupidchicken.com>
8017
8018 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8019
8458d4c1
KH
80202009-03-19 Kenichi Handa <handa@m17n.org>
8021
8022 * charset.c (load_charset_map_from_file): When a mapfile can't be
8023 loaded, signal an error.
8024
78e7d1fe
EZ
80252009-03-18 Eli Zaretskii <eliz@gnu.org>
8026
8027 * dired.c (Ffile_attributes): Make sure UID and GID are always
8028 positive, even if the value is too large for a positive EMACS_INT.
8029 Doc fix.
8030
8031 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8032
5da9fdfa
YM
80332009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8034
8035 * xmenu.c (xdialog_show): Move Fredisplay call ...
8036 (Fx_popup_dialog): ... here.
8037
7519c40d
SM
80382009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8039
8040 * dired.c (file_name_completion): Disable the first optimization just
8041 installed, since it is not implemented correctly.
8042
2cd298e2
SM
80432009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8044
8045 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8046 only if the entry can affect bestmatch.
2cd298e2
SM
8047 Stop the search early, as Ftry_completion already does.
8048
48d37adf
CY
80492009-03-17 Chong Yidong <cyd@stupidchicken.com>
8050
e10c9c93 8051 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8052
9286b16a
CY
80532009-03-15 Chong Yidong <cyd@stupidchicken.com>
8054
8055 * keyboard.c (parse_menu_item): Don't display remappings as menu
8056 equivalent bindings (Bug#788).
8057
f7b146dc
JR
80582009-03-15 Jason Rumney <jasonr@gnu.org>
8059
8060 * w32term.h (WM_EMACS_PAINT): New message.
8061 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8062 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8063 before passing to lisp thread. (Bug#950)
8064
f761d6b6 80652009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8066
d93f9575
CY
8067 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8068 variable as it was never reset.
8069 (ns_term_init): Remove initialization of Lisp-settable defaults
8070 and ns_expand_space.
8071 (-setPanelFromDefaultValues): Remove ns_expand_space.
8072 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8073 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8074 i.e. no additional spacing, similar to Carbon port.
8075
d93f9575
CY
8076 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8077 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8078
305018ec
JD
80792009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8080
8081 * sound.c (alsa_configure): Remove call to deprecated
8082 snd_pcm_sw_params_set_xfer_align.
8083
f761d6b6 80842009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8085
8086 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8087 after clicking in a detached tool bar.
8088 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8089
46e722a9
SM
80902009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8091
348db3dd
SM
8092 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8093 int/Lisp_Object mixup).
46e722a9 8094
a3d16f39
KH
80952009-03-13 Kenichi Handa <handa@m17n.org>
8096
8097 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8098 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8099 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8100 (set_fontset_font): Change ARG to a vector. Handle range_list in
8101 ARG correctly.
8102 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8103 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8104 the above change.
8105 (fontset_from_font): Fix previous change.
fe24f56a 8106 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8107 entry. If FONTSET is the default fontset, don't set the extra
8108 slot of the returning char-table.
8109
b066e6b6
JB
81102009-03-12 Juanma Barranquero <lekktu@gmail.com>
8111
8112 * nsfns.m (Fx_close_connection): Doc fix.
8113 (Fns_do_applescript): Reflow docstring.
8114 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8115 (Fx_display_pixel_width, Fx_display_pixel_height)
8116 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8117 Fix typos in docstrings.
8118 (Fns_set_alpha): Fix typos in error messages.
8119
d472514e 81202009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8121
d472514e 8122 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8123 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8124 were used for such events.
8125
d472514e
JB
8126 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8127 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8128
d472514e 8129 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8130 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8131
fb930676
KH
81322009-03-11 Kenichi Handa <handa@m17n.org>
8133
ff85581a
KH
8134 * font.h (font_open_by_spec): Extern it.
8135
c50b7e98
KH
8136 * font.c (font_open_by_spec): New function.
8137 (font_open_by_name): Use font_open_by_spec.
8138
fb930676
KH
8139 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8140 fontset of the frame.
8141
8142 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8143 modify the default font of frames that use this fontset.
8144 (num_auto_fontsets): New variable.
8145 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8146 name. Be sure to set FONTSET_ASCII to the correct font name.
8147 (update_auto_fontset_alist): New function.
8148
df4e8455
JB
81492009-03-11 Juanma Barranquero <lekktu@gmail.com>
8150
8151 * makefile.w32-in: Update dependencies.
8152
0a375797
AR
81532009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8154
8155 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8156
61313fa3
SM
81572009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8158
8159 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8160
b55103fb
CY
81612009-03-10 Chong Yidong <cyd@stupidchicken.com>
8162
8163 * lread.c (Feval_buffer): Doc fix.
8164
dde2559c
KH
81652009-03-09 Kenichi Handa <handa@m17n.org>
8166
8167 * charset.c (Qfile_name_handler_alist): Extern it.
8168 (load_charset_map_from_file): Temporarily bind
8169 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8170
df4e8455 81712009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8172
47f588bb
GM
8173 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8174 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8175
4ddf94bd
AR
81762009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8177
4c9bdfc2
AR
8178 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8179 (x_set_window_size): Change back to calculated method of setting
8180 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8181 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8182 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8183
fe41ae9e
AR
8184 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8185
4c9bdfc2
AR
8186 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8187 accelerator in parens under GNUstep.
8188
825d0875
KH
81892009-03-06 Kenichi Handa <handa@m17n.org>
8190
8191 These changes are to detect incorrect composition sequence without
f3b3be74 8192 looking ahead the source. (Bug#2370)
825d0875
KH
8193
8194 * coding.h: Include "composite.h".
8195 (enum compisition_state): New enum.
8196 (struct compisition_status): New struct.
8197 (struct iso_2022_spec): New member cmp_status.
8198 (struct emacs_mule_spec): New struct.
8199 (struct coding_system): New members ctext_extended_segment_len and
8200 embedded_utf_8. Change the union member
8201 spec.emacs_mule_full_support to spec.emacs_mule.
8202
8203 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8204 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8205 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8206 (ADD_COMPOSITION_DATA): New arg nbytes.
8207 (emacs_mule_char): New arg cmp_status.
8208 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8209 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8210 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8211 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8212 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8213 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8214 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8215 (EMACS_MULE_COMPOSITION_END): New macro.
8216 (emacs_mule_finish_composition): New function.
8217 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8218 (decode_coding_emacs_mule): Avoid long looking ahead while
8219 handling composition.
8220 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8221 (ENCODE_COMPOSITION_RULE): New macro.
8222 (finish_composition): New function.
8223 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8224 (DECODE_COMPOSITION_START): New implementation.
8225 (DECODE_COMPOSITION_END): Likewise.
8226 (STORE_COMPOSITION_RULE): New macro.
8227 (decode_coding_iso_2022): Avoid long looking ahead while handling
8228 composition, CTEXT extended segment, and embedded UTF-8.
8229 (setup_coding_system): For a coding of type iso-2022, reset
8230 CODING_ISO_EXTSEGMENT_LEN (coding) and
8231 CODING_ISO_EMBEDDED_UTF_8 (coding).
8232 (get_translation): Delete arguments last_block, from_nchars,
8233 to_nchars. Callers changed.
8234 (produce_chars): Don't modify charbuf. Adjusted for the change of
8235 get_translation.
98a326f7 8236 (produce_composition): Adjust for the new annotation sequence.
825d0875 8237 (handle_composition_annotation): Likewise.
98a326f7 8238 (consume_chars): Adjust for the change of get_translation.
825d0875 8239
ccbc4452
AR
82402009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8241
4ddf94bd 8242 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8243
988a7ddb
KH
82442009-03-05 Kenichi Handa <handa@m17n.org>
8245
8246 * font.c (font_select_entity): New function.
8247 (font_find_for_lface): Use font_select_entity to select a font.
8248
8249 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8250 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8251 font with C restriction.
8252
98a326f7 82532009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8254
be1bce46 8255 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8256
10ea2b82
JR
82572009-03-04 Jason Rumney <jasonr@gnu.org>
8258
2c93b248 8259 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8260 characters that have already been read. (Bug#2569)
2c93b248 8261
10ea2b82
JR
8262 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8263 Log an error message if check_image_size failed.
8264 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8265 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8266
71a0c011
EZ
82672009-03-02 Eli Zaretskii <eliz@gnu.org>
8268
8269 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8270 when decoding process output.
8271
2f63bba8
RS
82722009-03-01 Richard M Stallman <rms@gnu.org>
8273
8274 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8275
8276 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8277
0a9564cb
EZ
82782009-02-28 Eli Zaretskii <eliz@gnu.org>
8279
8280 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8281 (decode_coding_emacs_mule, decode_coding_iso_2022)
8282 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8283 (decode_coding_raw_text, decode_coding_charset)
8284 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8285 Honor inhibit-eol-conversion. (Bug #2186)
8286
449148b3
JR
82872009-02-28 Jason Rumney <jasonr@gnu.org>
8288
8289 * coding.c (detect_coding_charset): If not checking latin extra,
8290 fail on characters between 0x80 and 0xA0. (Bug#2354)
8291
a4aee864
EZ
82922009-02-28 Eli Zaretskii <eliz@gnu.org>
8293
8294 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8295 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8296
d88bee5a
GM
82972009-02-27 Glenn Morris <rgm@gnu.org>
8298
8299 * callint.c (Finteractive): Doc fix.
8300
a808f22d
KH
83012009-02-27 Kenichi Handa <handa@m17n.org>
8302
8303 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8304
caf8d60c
CY
83052009-02-27 Chong Yidong <cyd@stupidchicken.com>
8306
8307 * font.c (font_style_to_value): Set value for unknown symbols to
8308 100 instead of 255.
b61137ea
CY
8309 (weight_table, slant_table, width_table): Treat "unspecified" as
8310 the default value.
caf8d60c 8311
1a0de25c
JB
83122009-02-26 Juanma Barranquero <lekktu@gmail.com>
8313
8314 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8315
8fc45744
JB
83162009-02-25 Juanma Barranquero <lekktu@gmail.com>
8317
107bd7d1
JB
8318 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8319 error as soon as a recursive load is detected.
8fc45744 8320
f097e223
AR
83212009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8322
8323 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8324 before caching.
8325
8810a12f
KH
83262009-02-24 Kenichi Handa <handa@m17n.org>
8327
8328 * fontset.c (fontset_find_font): Fix the condition for checking
8329 unavailable font.
8330
2c7d1565
GM
83312009-02-24 Glenn Morris <rgm@gnu.org>
8332
8333 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8334 whitespace that confuses documentation.
8335
a20878b6
MB
83362009-02-23 Miles Bader <miles@gnu.org>
8337
8338 * process.c (Flist_system_processes, Fprocess_attributes)
8339 (syms_of_process): Rename `system-process-attributes' to
8340 `process-attributes'.
8341
b3b58c01
AS
83422009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8343
1b3b981b
AS
8344 * coding.h (struct coding_system): Make safe_charsets a pointer to
8345 unsigned char.
8346 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8347 being 255.
8348 (SAFE_CHARSET_P): Likewise.
8349 (setup_iso_safe_charsets): Properly setup safe_charsets.
8350 (Fdefine_coding_system_internal): Likewise.
8351 (setup_coding_system): Likewise. Remove unneeded casts.
8352 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8353 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8354 unneeded casts.
8355
b3b58c01
AS
8356 * insdel.c (del_range_2): Don't modify gap contents when called
8357 from decode_coding_object. (Bug#1809)
8358
0b6f228c
CY
83592009-02-21 Chong Yidong <cyd@stupidchicken.com>
8360
8361 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8362 Qfont_object.
8363 (Ftype_of): Recognize font objects.
8364
8365 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8366
8367 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8368 moved to data.c.
8369
52f8870b
AR
83702009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8371
8372 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8373 async_iconified. Based on a patch by Christian Lynbech
8374 <christian.lynbech@tieto.com>.
8375 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8376
7087d5e9
GM
83772009-02-20 Glenn Morris <rgm@gnu.org>
8378
8379 * syntax.c (Fskip_chars_forward): Fix doc typo.
8380
41d2ceef
CY
83812009-02-20 Chong Yidong <cyd@stupidchicken.com>
8382
8383 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8384
1a3b7ca6
CY
83852009-02-19 Chong Yidong <cyd@stupidchicken.com>
8386
8387 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8388
73cce38d
KH
83892009-02-19 Kenichi Handa <handa@m17n.org>
8390
8391 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8392 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8393
a51092ee
DN
83942009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8395
8396 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8397
c423ecca
KH
83982009-02-18 Kenichi Handa <handa@m17n.org>
8399
8400 * font.c (font_check_otf_features): Fix handling of `nil' element.
8401 (Ffont_spec): Describe :lang and :otf in the docstring.
8402
4c1958f4
AS
84032009-02-16 Andreas Schwab <schwab@suse.de>
8404
8405 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8406 string.
8407
5704f39a
KH
84082009-02-16 Kenichi Handa <handa@m17n.org>
8409
8410 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8411 (Bug#1723)
5704f39a 8412
8f0085aa
CY
84132009-02-14 Chong Yidong <cyd@stupidchicken.com>
8414
a057d86a 8415 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8416
8417 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8418 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8419
aff01dd9
EZ
84202009-02-14 Eli Zaretskii <eliz@gnu.org>
8421
8422 * msdos.c (MAX_SCREEN_BUF): New macro.
8423 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8424 Encode the entire run of glyphs sharing the same face, instead of
8425 doing that one glyph at a time (fixes a bug with displaying
8426 double-size characters).
8427
ba301db3
AR
84282009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8429
8430 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8431
8432 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8433 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8434 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8435
8436 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8437 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8438
51d861de
SM
84392009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8440
ac146f82 8441 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8442 invisible areas.
8443
7fed8996
JR
84442009-02-12 Jason Rumney <jasonr@gnu.org>
8445
631ea4fb
JR
8446 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8447 (add_font_entity_to_list): Call check_face_name even when family
8448 is unspecified.
8449
cb4a3e42
JR
8450 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8451 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8452 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8453
7fed8996 8454 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8455 raster fonts. (Bug#2219)
7fed8996 8456
895416e3
KH
84572009-02-12 Kenichi Handa <handa@m17n.org>
8458
8459 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8460 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8461 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8462 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8463 (find_automatic_composition): While looking forward and backward,
8464 check static composition. Fix where to stop looking forward.
8465 (composition_adjust_point): Fix checking of static composition.
8466 (Fcomposition_get_gstring): Pay attention to
1dacf998 8467 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8468
8469 * lisp.h (fast_looking_at): Extern it.
8470
8471 * search.c (fast_looking_at): New function.
8472
51d861de 8473 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8474 <struct glyph>.u.cmp.to.
8475 (append_composite_glyph): Likewise.
8476
51d861de 8477 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8478 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8479 composition.
51d861de 8480 (append_composite_glyph): Adjust for the change of
895416e3
KH
8481 <strcut glyph>.u.cmp.to.
8482
8510724d
JB
84832009-02-11 Juanma Barranquero <lekktu@gmail.com>
8484
8485 * casetab.c (init_casetab_once):
8486 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8487 * font.c (font_update_lface):
8488 * fontset.c (Fnew_fontset):
8489 * ftfont.c (ftfont_drive_otf):
8490 * xfont.c (xfont_open):
8491 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8492
294fa707
SM
84932009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8494
8495 * fileio.c (Fwrite_region): !NILP -> CONSP.
8496
b5bfebec
AS
84972009-02-10 Andreas Schwab <schwab@suse.de>
8498
8499 * process.c (send_process): Properly relocate pointer into data
adab88bd 8500 when using encoded data. (Bug#2272)
b5bfebec 8501
cb84a2be
KH
85022009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8503
8504 * coding.c (detect_coding_charset): Fix previous change.
8505
89e09428
JR
85062009-02-08 Jason Rumney <jasonr@gnu.org>
8507
8508 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8509 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8510
4470a277
AS
85112009-02-07 Andreas Schwab <schwab@suse.de>
8512
8513 * unexelf.c (unexec): Fix error message.
8514
3175b12a
AR
85152009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8516
8517 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8518 when modal window is active. (Bug #2152)
3175b12a
AR
8519 (applicationShouldTerminate:): Remove now-unneeded while loop
8520 around NSRunAlertPanel.
8521
8522 * nsmenu.m (popupSession): New file-global variable.
8523 (pop_down_menu): End the popupSession before closing dialog.
8524 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8525 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8526 don't query NSApp for events (just sleep instead).
8527
8434d0b8
EZ
85282009-02-07 Eli Zaretskii <eliz@gnu.org>
8529
51d861de
SM
8530 * coding.c (syms_of_coding) <translation-table-for-input>:
8531 Modify doc string to discourage use for character code unification.
8434d0b8 8532
aa82edfd
CY
85332009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8534
8535 * atimer.c (run_timers): Update pending_atimers.
8536
2d283c7c
CY
85372009-02-06 Chong Yidong <cyd@stupidchicken.com>
8538
eb306cab
CY
8539 * image.c (svg_load_image): Fix last change.
8540
2d283c7c
CY
8541 * xfns.c (Fx_create_frame): Signal an error if no font is
8542 found (Bug#2147).
8543
4d8e170e
JB
85442009-02-05 Juanma Barranquero <lekktu@gmail.com>
8545
8546 * character.c (syms_of_character) <script-representative-chars>:
8547 Fix typo in docstring.
8548
c96169a0
AR
85492009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8550
8551 * nsmenu.m (pop_down_menu): New function.
8552 (ns_popup_dialog): Call it on unwind.
8553 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8554 call timer_check() (Bug#2154).
8555 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8556 handling_signal is set.
8557 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8558
31fd7c5c 8559 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8560
8561 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8562
8563 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8564
51d861de
SM
8565 * keyboard.c (poll_for_input_1, handle_async_input):
8566 Set handling_signal under HAVE_NS.
c96169a0 8567
aacd8ba1
GM
85682009-02-04 Glenn Morris <rgm@gnu.org>
8569
8570 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8571
4cb75c4b
KH
85722009-02-04 Kenichi Handa <handa@m17n.org>
8573
8574 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8575
8576 * charset.c (Fchar_charset): New optional arg restriction.
8577
8578 * coding.h (coding_system_charset_list): Extern it.
8579
8580 * coding.c (coding_system_charset_list): New function.
8581
8582 * composite.c: Include coding.h and termhooks.h.
8583 (composition_gstring_p): Fix for the terminal case.
8584 (composition_gstring_width): Likewise.
8585 (fill_gstring_body): Likewise.
8586 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8587 the frame.
8588 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8589 is within a composition.
867d4bb3 8590 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8591
8592 * term.c (encode_terminal_code): Fix handling of composition.
8593 (produce_composite_glyph): For static composition, get pixel_width
8594 from struct composition.
8595
826ba17e
AS
85962009-02-02 Andreas Schwab <schwab@suse.de>
8597
8598 * unexelf.c (unexec): Handle unaligned bss offset.
8599
8ad093db
AR
86002009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8601
8602 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8603 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8604
8ad093db
AR
8605 * keyboard.c (handle_interrupt): Don't call
8606 quit_throw_to_read_char() under NS.
d0a76a6e 8607
8ad093db
AR
8608 * blockinput.h: Remove NS-specific code.
8609
4d18a7a2
DN
86102009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8611
db878925
DN
8612 * dispnew.c (window_change_signal): Don't try to get the size of a
8613 suspended tty frame.
8614 * term.c (Fresume_tty): Resize if the size has changed while the
8615 tty was suspended.
8616
4d18a7a2
DN
8617 * alloc.c (mark_stack): Properly conditionalize previous change.
8618
8984df7c
JB
86192009-01-30 Juanma Barranquero <lekktu@gmail.com>
8620
8621 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8622 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8623 Remove; this code is not used on Windows.
8624
75f4f1ac
EZ
86252009-01-30 Eli Zaretskii <eliz@gnu.org>
8626
8627 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8628 EOLs that also has stray ^M characters.
8629
07a1e794
JB
86302009-01-30 Juanma Barranquero <lekktu@gmail.com>
8631
8632 * atimer.c (run_timers, alarm_signal_handler):
8633 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8634 * w32inevt.c (w32_console_read_socket):
8635 * w32term.c (w32_read_socket):
8636 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8637
a8b11cc9
CY
86382009-01-30 Chong Yidong <cyd@stupidchicken.com>
8639
8640 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8641 Initialize it as a relative filename pattern.
8642 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8643 (Fcall_process_region): Simplify temp file creation using
8644 temporary-file-directory.
8645
c279587b
EZ
86462009-01-29 Eli Zaretskii <eliz@gnu.org>
8647
8648 * msdos.c: Rename pending_signals to msdos_pending_signals.
8649 (sig_suspender, sigprocmask): Adjust.
8650
a8fe3242
CY
86512009-01-29 Chong Yidong <cyd@stupidchicken.com>
8652
8653 * keyboard.c (pending_signals): New var.
8654 (poll_for_input, input_available_signal, init_keyboard): Set it.
8655 (process_pending_signals): New function.
8656
8657 * lisp.h (QUIT): Check pending_signals instead of
8658 interrupt_input_pending. Use process_pending_signals.
8659
51d861de 8660 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8661
51d861de 8662 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8663
8664 * sysdep.c (emacs_write): Use process_pending_signals.
8665
8666 * xterm.c (XTread_socket): Update pending_signals.
8667
8668 * w32term.c (w32_read_socket): Update pending_signals.
8669
8670 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8671
6570a1c4
KH
86722009-01-29 Kenichi Handa <handa@m17n.org>
8673
8674 * xftfont.c (xftfont_has_char): New function.
8675 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8676
d72a4afa
AR
86772009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8678
8679 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8680 under GNUstep.
8681 (ns_query_color): New declaration.
8682
8683 * nsterm.m (ns_confirm_quit): New variable.
8684 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8685 (EmacsApp-applicationShouldTerminate:): Use it.
8686 (EmacsPrefsController): Let user set it.
8687 (ns_query_color): New function.
8688 (ns_defined_color): Use it.
8689 (ns_initialize): Drop.
8690 (ns_term_init): Add two lines from ns_initialize(), and set
8691 input_interrupt_mode to nil.
8692
8693 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8694 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8695
9fe78804
KH
86962009-01-28 Kenichi Handa <handa@m17n.org>
8697
8698 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8699 (fontset_get_font_group): Remember that no font-group is specified
8700 for C.
9fe78804 8701
fa57de36
CY
87022009-01-27 Chong Yidong <cyd@stupidchicken.com>
8703
930600e9
CY
8704 * fns.c (concat): Check for string overflow (bug#1787).
8705
fa57de36
CY
8706 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8707 Quadruple undo limits (bug#1501).
8708
7179ce7b
KH
87092009-01-27 Kenichi Handa <handa@m17n.org>
8710
8711 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8712 directly use GT_Get_Char_index.
8713
8714 * xftfont.c (struct xftfont_info): New member `index'.
8715
8716 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8717 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8718
5be8fcc0
CY
87192009-01-26 Kenichi Handa <handa@m17n.org>
8720
8721 * fontset.c (fontset_find_font): Fix handling of non-cons return
8722 value of fontset_get_font_group.
8723 (fontset_font): Revert last change.
8724
19ae3e61
JR
87252009-01-26 Jason Rumney <jasonr@gnu.org>
8726
8727 * w32font.c (w32font_list_internal): Return quickly if registry is
8728 unknown. Simplify final return.
8729 (add_font_entity_to_list): Break complex logic down into more
8730 manageable chunks. Move unknown registry check to
8731 w32font_list_internal.
8732
8612b71a
AR
87332009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8734
8735 Changes to remove Feval calls from GUI under NS.
8736
d8038940
JB
8737 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8738 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8739 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8740
8741 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8742 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8743 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8744 instead of NON_ASCII_KEYSTROKE_EVENT.
8745 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8746 (EmacsApp-applicationShouldTerminate:): Query user.
8747 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8748 instead of Feval.
8749
8750 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8751
8752 * keyboard.c (kbd_buffer_get_event): Check for it.
8753 (keys_of_keyboard): Define lispy keys for
8754 ns-put/unput-working-text.
8755
8756 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8757 versions.
8758 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8759
6288ae55
CY
87602009-01-25 Chong Yidong <cyd@stupidchicken.com>
8761
8762 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8763 setting current_buffer directly. (Bug#2044)
6288ae55 8764
289e7f8f
CY
87652009-01-24 Chong Yidong <cyd@stupidchicken.com>
8766
5ce87308 8767 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8768 any work. (Bug#1952, bug#1990).
5ce87308 8769
64cc3cf6 8770 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8771
b3243e6f
AR
87722009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8773
8774 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8775 (ns_no_defaults): New declaration.
8776 (main): Use it.
e0d2e69a 8777
d900b2af 8778 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8779
d900b2af 8780 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8781
d900b2af
AR
8782 * nsterm.m (ns_no_defaults): New variable.
8783 (ns_initialize): Don't read defaults when ns_no_defaults.
8784 (EmacsView-readSelectionFromPasteboard:)
8785 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8786 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8787 (ns_dumpglyphs_stretch): New function.
8788 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8789 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8790
e0d2e69a
AR
8791 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8792
3ac71f5d
CY
87932009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8794
8795 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8796 call for Sparc64.
8797
3fe53a83
AR
87982009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8799
8800 * nsfns.m:
8801 * nsgui.h:
8802 * nsmenu.m:
8803 * nsselect.m:
8804 * nsterm.h:
8805 * nsterm.m: Remove '23' comments that indicated code added during
8806 update from emacs-20 -> emacs-23.
8807
10f87c6f 88082009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8809
8810 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8811 ns_alternate_modifier. (Bug#1217)
a3b53a85 8812
c7cef62d
AR
8813 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8814 Display all shortcuts, including those w/o super modifier.
8815
575fb8bd
AR
8816 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8817
918b848b
CY
88182009-01-22 Chong Yidong <cyd@stupidchicken.com>
8819
8820 * fileio.c (Vwrite_region_post_annotation_function)
8821 (Vwrite_region_annotation_buffers): New vars.
8822 (build_annotations_unwind): Just reset
8823 Vwrite_region_annotation_buffers.
8824 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8825 Call write-region-post-annotation-function.
8826 (build_annotations): Add to Vwrite_region_annotation_buffers if
8827 buffer changes.
8828
a39e2539
AR
88292009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8830
8831 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8832 Tiger.
51d861de
SM
8833 * nsfns.m (ns_do_applescript):
8834 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8835
35ed44db
AR
88362009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8837
8838 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8839
cbe0b5bf
AR
88402009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8841
8842 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8843
6049d3a0
AR
8844 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8845
8846 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8847 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8848 handle Ctrl-tab. (Bug#1841)
8849 (ns_get_color): Use unsigned long long for scanned hex string value.
8850 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8851 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8852 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8853 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8854 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8855 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8856 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8857
d3810c21 8858 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8859 DPI. (Bug#1316)
d3810c21
AR
8860 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8861 values in onTiger section.
4c7077c3 8862
e301e634
CY
88632009-01-19 Chong Yidong <cyd@stupidchicken.com>
8864
7f82490b
CY
8865 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8866 Check return value of font_spec_from_name.
64cc3cf6 8867 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8868
8869 * font.c (font_spec_from_name): Return Qnil if font name could not
8870 be parsed.
8871 (font_parse_name): Treat a `?' character as part of an XLFD.
8872
e301e634
CY
8873 * fns.c (Fsubstring): Doc fix.
8874
1c0db158
KH
88752009-01-19 Kenichi Handa <handa@m17n.org>
8876
51d861de 8877 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8878 (ftfont_list): Likewise.
8879
acf20901
JB
88802009-01-18 Juanma Barranquero <lekktu@gmail.com>
8881
fff4e459
JB
8882 * dbusbind.c (Fdbus_register_signal):
8883 * process.c (conv_sockaddr_to_lisp):
8884 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8885
acf20901
JB
8886 * callproc.c (Fgetenv_internal): Doc fix.
8887
e7abcdfb
CY
88882009-01-16 Chong Yidong <cyd@stupidchicken.com>
8889
8890 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8891 it is not even used.
8892
b60861e6
GM
88932009-01-16 Glenn Morris <rgm@gnu.org>
8894
8895 * font.c (Ffont_variation_glyphs): Silence compiler.
8896
8db52afe
JB
88972009-01-15 Juanma Barranquero <lekktu@gmail.com>
8898
8899 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8900 Reported by David Robinow <drobinow@gmail.com>.
8901
4cddb209
KH
89022009-01-15 Kenichi Handa <handa@m17n.org>
8903
51d861de 8904 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8905
f247f67b
JR
89062009-01-14 Jason Rumney <jasonr@gnu.org>
8907
8908 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8909 never a fontset. (Bug#1562)
f247f67b 8910
f56a4450
KH
89112009-01-14 Kenichi Handa <handa@m17n.org>
8912
8913 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8914 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8915
4e99855e
CY
89162009-01-13 Chong Yidong <cyd@stupidchicken.com>
8917
8918 * font.c (font_clear_prop): If clearing the family, clear the font
8919 width index too.
8920
fff4e459 8921 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8922
24f01470
JB
89232009-01-12 Juanma Barranquero <lekktu@gmail.com>
8924
8925 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8926 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8927 functions, use sizeof.
8928
a41240a3
MR
89292009-01-12 Martin Rudalics <rudalics@gmx.at>
8930
8931 * keyboard.c (read_char): Fix case where last_nonmenu_event
8932 returned a bad value with submenus. (Bug#447)
8933
944636b8
CY
89342009-01-12 Chong Yidong <cyd@stupidchicken.com>
8935
8936 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8937 family, clear the font width index too.
8938
0dad7c6f
JR
89392009-01-11 Jason Rumney <jasonr@gnu.org>
8940
8941 * keyboard.c (cmd_error_internal): Exit when errors occur before
8942 frame creation and not in daemon mode. (Bug#1836)
8943
7c2363af
CY
89442009-01-10 Chong Yidong <cyd@stupidchicken.com>
8945
8946 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8947 of a display vector, backtrack.
8948 (try_window_reusing_current_matrix): Check glyph type before
8949 referencing charpos member.
8950
97b1b294
EZ
89512009-01-10 Eli Zaretskii <eliz@gnu.org>
8952
8953 Fix Bug #876:
8954
8955 * coding.c (inhibit_null_byte_detection): New variable.
8956 (detect_coding, detect_coding_system): Don't pay attention to null
8957 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8958 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8959 <inhibit-iso-escape-detection>: Doc fix.
8960
4624b6e3
JR
89612009-01-09 Jason Rumney <jasonr@gnu.org>
8962
8963 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8964 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8965 Only report Unicode Plane 2 fonts as unicode-sip.
8966
323b840c
CY
89672009-01-09 Chong Yidong <cyd@stupidchicken.com>
8968
51d861de
SM
8969 * xfaces.c (Fx_font_family_list): Delete function.
8970 Move compatibility version to faces.el.
323b840c 8971
51d861de 8972 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8973
eba7400d
MR
89742009-01-09 Martin Rudalics <rudalics@gmx.at>
8975
8976 * frame.c (x_set_frame_parameters): Remember requested value for
8977 fullscreen before it's reset by the parameter handler.
8978
4b09796d
GM
89792009-01-09 Glenn Morris <rgm@gnu.org>
8980
8981 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8982 (last_command_event): ... and update all users.
4b09796d
GM
8983 (last_input_char): For clarity, rename to...
8984 (last_input_event): ... and update all users.
8985 (last-command-char, last-input-char): Move to subr.el as aliases.
8986 * cmds.c, commands.h: Update for last_command_char rename.
8987
14ccea62
CY
89882009-01-08 Chong Yidong <cyd@stupidchicken.com>
8989
51d861de 8990 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8991
5f004711
JR
89922009-01-08 Jason Rumney <jasonr@gnu.org>
8993
8994 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8995 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8996 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8997 Don't declare.
fff4e459 8998 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8999 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9000
b71f6f73
KH
90012009-01-07 Kenichi Handa <handa@m17n.org>
9002
50b06221 9003 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9004 remember the coding system used for decoding in
50b06221
KH
9005 coding_system (Bug#1039).
9006
b71f6f73 9007 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9008 breaking the loop. (Bug#870)
b71f6f73
KH
9009 (decode_coding_utf_16, decode_coding_emacs_mule)
9010 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9011 (decode_coding_charset): Likewise.
9012
56f668f7
MR
90132009-01-05 Martin Rudalics <rudalics@gmx.at>
9014
9015 * frame.c (x_set_frame_parameters): Make sure height (width) get
9016 applied when fullwidth (fullheight) is set. (Bug#1522)
9017
5da9424d
JB
90182009-01-04 Juanma Barranquero <lekktu@gmail.com>
9019
9020 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9021 (utc_base): Declare as ULONGLONG, not long double.
9022 (convert_time_raw): Delete.
9023 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9024 (initialize_utc_base): New function.
9025 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9026 (convert_from_time_t): Use initialize_utc_base; compute result with
9027 64-bit arithmetic.
9028 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9029
c4605e09
EZ
90302009-01-03 Eli Zaretskii <eliz@gnu.org>
9031
9acef61c 9032 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9033 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9034 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9035 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9036 [!subprocesses]: Define.
9037 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9038 (Flist_system_processes, Fsystem_process_attributes)
9039 [!subprocesses]: Call list_system_processes and
9040 system_process_attributes instead of returning Qnil.
9041
9acef61c
JB
9042 * dosfns.c (system_process_attributes, list_system_processes):
9043 New functions.
c4605e09
EZ
9044
9045 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9046
9047 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9048 Don't use the default (no-op) implementation.
9049
8b7d0a16
JR
90502009-01-03 Jason Rumney <jasonr@gnu.org>
9051
a6d46bc1
JR
9052 * keyboard.c (parse_modifiers_uncached): Wheel events are
9053 clicks (bug#687).
9054
8b7d0a16
JR
9055 * w32term.c (x_query_colors, x_query_color): New functions.
9056
9057 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9058 (svg_load_image): Cast returned pointers from dynamically loaded
9059 functions. Eliminate W32 specific code.
9060
bfe11752
DN
90612009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9062
89e2438a
DN
9063 * nsfns.m (x_set_foreground_color, x_set_background_color)
9064 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9065 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9066 x_ prefix instead of ns_. Update references.
9067 (syms_of_nsfns): Add a FIXME comment.
9068
9069 * nsterm.m (x_set_cursor_type): New prototype.
9070 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9071
bfe11752
DN
9072 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9073 for Solaris instead of incorrectly providing Qutime and Qcutime.
9074
031da700
EZ
90752009-01-02 Eli Zaretskii <eliz@gnu.org>
9076
9077 * w32.c (process_times): Compute sum of utime and stime.
9078 (system_process_attributes): Add Qtime to the alist.
9079
9080 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9081 and add them to the alist.
9082
9083 * process.c (top level) <Qtime, Qctime>: New variables.
9084 (syms_of_process): staticpro them.
9085 (Fsystem_process_attributes): Add their documentation to the doc
9086 string.
9087
9088 * process.h: Declare Qtime and Qctime.
9089
df23bf08
JR
90902009-01-02 Jason Rumney <jasonr@gnu.org>
9091
9acef61c 9092 * image.c (Qgobject): New symbol.
df23bf08
JR
9093 (syms_of_image): Initialize it.
9094 (init_svg_functions): Load some functions from gobject library.
9095
5bbdf7aa
DN
90962009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9097
9098 * frame.c (make_terminal_frame): Remove redundant code and useless
9099 block.
9100
63136da6
AS
91012009-01-01 Andreas Schwab <schwab@suse.de>
9102
9103 * process.c (conv_sockaddr_to_lisp): Add workaround for
9104 getsockname bug on BSD.
9105
9ef69046
CY
91062009-01-01 Chong Yidong <cyd@stupidchicken.com>
9107
d6fafbe0
CY
9108 * xfns.c (x_create_tip_frame): Set border width of the X window.
9109
51d861de 9110 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9111
f9c34147
JR
91122009-01-01 Jason Rumney <jasonr@gnu.org>
9113
9acef61c 9114 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9115 Don't block input, as per earlier xterm.c changes.
9116
f5497e45
AR
91172008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9118
9119 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9120 (ns_appkit_version_int): New function.
9121 (x-server-version): Use ns_appkit_version_int and follow 21+
9122 convention of returning 3 integers.
9123
c19cab20
KH
91242008-12-30 Kenichi Handa <handa@m17n.org>
9125
9126 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9127 (CHAR_SURROGATE_PAIR_P): New macro.
9128
9129 * font.h (struct font_driver): New member get_variation_glyphs.
9130
9acef61c 9131 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9132 (Ffont_variation_glyphs): New function.
9133 (syms_of_font): Defsubr it.
9134
9135 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9136 ftfont_variation_glyphs.
9137 (setup_otf_gstring): New function.
9138 (ftfont_drive_otf): Use it.
9139 (ftfont_shape_by_flt): Handle variation selector.
9140 (ftfont_variation_glyphs): New function.
9141
28cd591f
MR
91422008-12-30 Martin Rudalics <rudalics@gmx.at>
9143
9144 * frame.c (Vemacs_iconified): Remove.
9145
7f714baf
JR
91462008-12-30 Jason Rumney <jasonr@gnu.org>
9147
9148 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9149 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9150
9d2d22ab
CY
91512008-12-30 Chong Yidong <cyd@stupidchicken.com>
9152
9153 * indent.c (Fvertical_motion): Don't advance iterator if we have
9154 reseated to the desired position.
9155
9156 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9157 checking for pos match.
9158
545312c2
KH
91592008-12-30 Kenichi Handa <handa@m17n.org>
9160
1ede3eb6
KH
9161 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9162 just get the low 8-bit of the code.
9163
545312c2
KH
9164 * font.c (font_intern_prop): Validate str as multibyte.
9165
bd7bbf29
DN
91662008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9167
31e0750e
DN
9168 * dispextern.h (struct face): Move lface and hash from the middle
9169 of bitfields.
9170
bd7bbf29
DN
9171 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9172
b5672e7c
DN
91732008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9174
9175 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9176 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9177 instead of intervals.h.
9178
d704470f
AS
91792008-12-26 Andreas Schwab <schwab@suse.de>
9180
9181 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9182 cons.
9183
54b33868
MR
91842008-12-26 Martin Rudalics <rudalics@gmx.at>
9185
9186 * textprop.c (Qminibuffer_prompt): New variable.
9187 (syms_of_textprop): Initialize it.
9188 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9189 in minibuffer-prompt face. (Bug#1662)
9190
40b615d6
JR
91912008-12-25 Jason Rumney <jasonr@gnu.org>
9192
9193 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9194
baae5c2d
JR
91952008-12-24 Jason Rumney <jasonr@gnu.org>
9196
9197 * ralloc.c (r_alloc_reset_variable): New function.
9198
9199 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9200 record of what points where. (Bug#716)
baae5c2d 9201
a9051c88
DN
92022008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9203
9204 * minibuf.c (read_minibuf): Follow the non-interactive case when
9205 running as a daemon, before detaching.
9206
8b146312
AS
92072008-12-22 Andreas Schwab <schwab@suse.de>
9208
9209 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9210 * gtkutil.c (free_widget_value): Use xfree instead of free.
9211
56f2de10
MR
92122008-12-22 Martin Rudalics <rudalics@gmx.at>
9213
9214 * frame.c (delete_frame): New function derived from
9215 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9216 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9217 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9218 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9219 * frame.h: Extern delete_frame.
9220 * window.c (window_loop):
9221 * terminal.c (delete_terminal):
9222 * xterm.c (x_connection_closed):
9223 * xfns.c (Fx_hide_tip):
9acef61c 9224 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9225
1fc200d6
JR
92262008-12-21 Jason Rumney <jasonr@gnu.org>
9227
9228 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9229 when character maps to .notdef character.
9230
5e252df2
SM
92312008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9232
9233 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9234
99b72cc4
JR
92352008-12-20 Jason Rumney <jasonr@gnu.org>
9236
9237 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9238 a graphical frame on Windows. (Bug#1325)
99b72cc4 9239
acc49a52
JD
92402008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9241
9242 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9243
6ea15123
CY
92442008-12-20 Chong Yidong <cyd@stupidchicken.com>
9245
9246 * minibuf.c (Fread_buffer): Doc fix.
9247
b2dab6c8
JR
92482008-12-20 Jason Rumney <jasonr@gnu.org>
9249
54ea0c87 9250 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9251 server name in UNC paths. (Bug#719)
54ea0c87 9252
b2dab6c8 9253 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9254 charbuf. (Bug#1035)
b2dab6c8 9255
6d1921be
DN
92562008-12-19 Daniel Engeler <engeler@gmail.com>
9257
9258 * sysdep.c (serial_configure): Fix typo.
9259
53934c98
DN
92602008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9261
9262 * sysdep.c: Include alloca.h.
f4f634e8
DN
9263 (system_process_attributes): Add implementation for Solaris.
9264
9265 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9266
06e111a6
DN
92672008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9268
9269 Reorganize implementation of Flist_system_processes and
9270 Fsystem_process_attributes. No functional changes.
9271 * process.c: Don't #include pwd.h, grp.h and limits.h.
9272 (Flist_system_processes): Just call list_system_processes.
9273 (Fsystem_process_attributes): Just call system_process_attributes.
9274 (procfs_list_system_processes, time_from_jiffies)
9275 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9276 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9277
9278 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9279 (list_system_processes): Rename from
9280 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9281 Provide a do nothing implementation.
9282 (system_process_attributes): Rename from
9283 procfs_list_system_processes.
9284 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9285 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9286
9287 * w32.c (list_system_processes): Rename from
9288 w32_list_system_processes.
9289 (system_process_attributes): Rename from
9290 w32_system_process_attributes.
9291
9292 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9293
9294 * process.h (w32_list_system_processes)
9295 (w32_system_process_attributes): Remove.
362654a6
JB
9296 (list_system_processes, system_process_attributes):
9297 New prototypes.
06e111a6 9298
6a705b23
KH
92992008-12-19 Kenichi Handa <handa@m17n.org>
9300
9301 * xfont.c (xfont_decode_coding_xlfd): New function.
9302 (xfont_encode_coding_xlfd): New function.
9303 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9304 (xfont_list): Decode and encode XLFD by iso-8859-1.
9305 (xfont_match): Likewise.
9306 (xfont_list_family): Likewise.
9307 (xfont_open): Likewise.
9308
d66c0241 9309 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9310 names are utf-8.
9311
d66c0241 9312 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9313 names are utf-8.
9314
5a130941
JD
93152008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9316
9317 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9318 changed.
bfd20325
JD
9319 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9320 clicked on a detached tool bar button.
5a130941 9321
fd95644b
DN
93222008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9323
9324 * emacs.c (main): Print and error and exit when no data is read
9325 from the pipe.
9326
e6eee6ae
JR
93272008-12-17 Jason Rumney <jasonr@gnu.org>
9328
9329 * w32font.c (w32font_has_char): Always return -1.
9330
a35dd56b
KH
93312008-12-16 Kenichi Handa <handa@m17n.org>
9332
9333 * font.c (font_open_entity): Fix previous change.
9334
0e3635c2
DN
93352008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9336
9337 * process.c: Include <limits.h>.
9338
d4835507 93392008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9340
9341 * font.c (font_update_drivers): Fix mistake in reconstructing the
9342 driver list.
9343
93442008-12-16 Chong Yidong <cyd@stupidchicken.com>
9345
9346 * font.c (font_clear_cache): Fix format of font cache data.
9347
e2cbc401
CY
93482008-12-15 Chong Yidong <cyd@stupidchicken.com>
9349
9350 * xftfont.c (xftfont_open): Free Xft font pattern if
9351 XftFontOpenPattern fails.
9352
9353 * xterm.c (x_free_frame_resources): Remove extraneous call to
9354 free_frame_faces.
9355
b131d535
CY
93562008-12-13 Chong Yidong <cyd@stupidchicken.com>
9357
9358 * xterm.c (x_delete_display): Move xim_close_dpy call to
9359 x_delete_terminal.
9360 (x_delete_terminal): Call xim_close_dpy.
9361
e6df5336
JR
93622008-12-13 Jason Rumney <jasonr@gnu.org>
9363
9364 * w32font.c (intern_font_name): New function.
9365 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9366 (w32font_open_internal, Fx_select_font): Decode font name.
9367 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9368
9369 * w32font.h (intern_font_name): Declare new function.
9370
9371 * w32uniscribe.c (add_opentype_font_name_to_list):
9372 Use intern_font_name.
9373
20d68145
CY
93742008-12-13 Chong Yidong <cyd@stupidchicken.com>
9375
9f2554de
CY
9376 * frame.c (Fdelete_frame): Call free_font_driver_list.
9377
3d9bec9a
CY
9378 * font.c (free_font_driver_list): Implement missing function.
9379
20d68145
CY
9380 * w32term.c (w32_term_init): Don't initialize the image cache
9381 here; it will be done in init_frame_faces.
9382
9383 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9384 (struct x_display_info): Remove unused member null_pixel. New
9385 member xim_callback_data.
9386
9387 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9388 (xim_initialize): Save pointer to callback function data.
9389 (xim_close_dpy): Free callback function data. Call XCloseIM,
9390 reverting 2008-11-04 change by David Smith.
9391 (x_term_init): Don't initialize the image cache here; it will be
9392 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9393 (x_delete_display): Free x_dnd_atoms member.
9394
96f9306b
KH
93952008-12-13 Kenichi Handa <handa@m17n.org>
9396
6dec9044
JB
9397 * font.c (font_rescale_ratio): Moved from xfaces.c.
9398 Argument type changed. Handle a font-spec too.
96f9306b 9399 (font_score): Check Vface_font_rescale_alist.
6dec9044 9400 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9401
9402 * xfaces.c (font_rescale_ratio): Moved to font.c.
9403
8d5b4964
CY
94042008-12-13 Chong Yidong <cyd@stupidchicken.com>
9405
9406 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9407
e6df5336
JR
94082008-12-12 Jason Rumney <jasonr@gnu.org>
9409
9410 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9411 Vwindow_system_version to the real w32 major version.
9412
97c6058a
DN
94132008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9414
9415 * term.c (init_tty): Move setting the terminal name before the
9416 potential user: maybe_fatal.
9417
ec4e88d7
CY
94182008-12-11 Chong Yidong <cyd@stupidchicken.com>
9419
d4835507
JB
9420 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9421 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9422
b4233ec9
JR
94232008-12-11 Jason Rumney <jasonr@gnu.org>
9424
8ec71e23 9425 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9426 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9427
b4233ec9 9428 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9429 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9430
011a0143
JB
94312008-12-11 Juanma Barranquero <lekktu@gmail.com>
9432
9433 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9434
3c309f34
JB
94352008-12-11 Juanma Barranquero <lekktu@gmail.com>
9436
9437 * process.c (Fsystem_process_attributes, syms_of_process):
9438 Fix typo in name of Ssystem_process_attributes.
9439 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9440
fedc6ab5
JB
94412008-12-11 Juanma Barranquero <lekktu@gmail.com>
9442
9443 * syntax.c (Fmodify_syntax_entry): Doc fix.
9444
ba3de0e8
JB
94452008-12-10 Juanma Barranquero <lekktu@gmail.com>
9446
9447 * font.c (Ffont_spec): Move usage to end of docstring.
9448
174f1c74
JR
94492008-12-10 Jason Rumney <jasonr@gnu.org>
9450
9451 * w32font.c (Qcham): New symbol.
9452 (font_supported_scripts): Add cham, and comments for other new
9453 scripts in bitfield from OpenType spec.
9d32f818
JR
9454 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9455 contain characters beyond the bmp.
174f1c74 9456
7b649478
KH
94572008-12-10 Kenichi Handa <handa@m17n.org>
9458
9459 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9460 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9461 Qunicode_sip.
9462
2133e2d1
JB
94632008-12-10 Juanma Barranquero <lekktu@gmail.com>
9464
9465 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9466 (Fcoding_system_put): Use QCdefault_char.
9467 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9468
9af886ee
CY
94692008-12-09 Chong Yidong <cyd@stupidchicken.com>
9470
74d819eb
CY
9471 * xftfont.c (syms_of_xftfont): Fix typo.
9472
4ccfa1c0 9473 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9474
7c19d3ae
DN
94752008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9476
9477 * emacs.c (main): Close daemon_pipe on exec.
9478
567826bb
CY
94792008-12-08 Chong Yidong <cyd@stupidchicken.com>
9480
9481 * termchar.h (struct tty): New members termcap_term_buffer and
9482 termcap_strings_buffer.
9483
9484 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9485 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9486 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9487 All callers changed.
9488 (init_tty): Store termcap data and string buffers in new struct
9489 tty members termcap_term_buffer and termcap_strings_buffer.
9490 (delete_tty): Free them.
4ccfa1c0 9491 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9492
aa96c42b
SZ
94932008-12-07 Seiji Zenitani <zenitani@mac.com>
9494
9495 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9496 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9497
b7e1d896
CY
94982008-12-06 Chong Yidong <cyd@stupidchicken.com>
9499
9500 * coding.c (make_conversion_work_buffer): Disable buffer
9501 modification hooks in the work buffer.
9502
b5ec91a5
EZ
95032008-12-05 Eli Zaretskii <eliz@gnu.org>
9504
9505 * process.c (procfs_system_process_attributes): If `nread' has a
9506 negative value, assign zero to it.
9507
a5d2a52b
CY
95082008-12-05 Chong Yidong <cyd@stupidchicken.com>
9509
68c5540b 9510 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9511
7bf1bb21
KH
95122008-12-05 Kenichi Handa <handa@m17n.org>
9513
9514 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9515 second character is a combining character.
9516
2fdc7d00
EZ
95172008-12-05 Eli Zaretskii <eliz@gnu.org>
9518
9519 * process.c (procfs_system_process_attributes): Don't use cmd,
9520 cmdsize, and q without initializing them first.
9521
bf6bfba8
JR
95222008-12-04 Jason Rumney <jasonr@gnu.org>
9523
9524 * w32font.c (w32font_draw): Initialize orig_clip before getting
9525 it, and delete it when finished.
9526
a3b1a468
DN
95272008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9528
9529 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9530 case when running as a daemon before detaching.
9531
8b8be8eb
JB
95322008-12-03 Juanma Barranquero <lekktu@gmail.com>
9533
805f2638 9534 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9535
b1bde622
KH
95362008-12-03 Kenichi Handa <handa@m17n.org>
9537
e500c47d
KH
9538 * font.c (font_at): Set `multibyte' at first.
9539
ca516334
KH
9540 * coding.c (decode_coding_charset): Check type of an element of
9541 vector VALIDS.
7bf1bb21 9542 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9543
4ccfa1c0 9544 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9545 (font_for_char): Likewise.
9546
1e5ecd37
CY
95472008-12-03 Chong Yidong <cyd@stupidchicken.com>
9548
d5b01609 9549 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9550 (font_update_lface): Handle fonts with corrupted size specs,
9551 i.e. non-int and non-float.
d5b01609 9552
11e3a6e4 9553 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9554 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9555 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9556
ab06788b
CY
9557 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9558
1e5ecd37 9559 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9560 underline_minimum_offset for underline position.
1e5ecd37 9561
63c125ab
DN
95622008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9563
9564 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9565
9566 * character.c (c_string_width): Specify the type for LEN.
9567
3a8406e1
KH
95682008-12-03 Kenichi Handa <handa@m17n.org>
9569
4ccfa1c0 9570 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9571 (decode_coding_utf_8): Likewise.
4ccfa1c0 9572 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9573 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9574
651df7d9
CY
95752008-12-02 Chong Yidong <cyd@stupidchicken.com>
9576
9577 * keyboard.c (make_lispy_position): Only use PT if the selected
9578 window is current.
9579
1f625c6c
AS
95802008-12-02 Andreas Schwab <schwab@suse.de>
9581
f7741ce9
AS
9582 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9583
1f625c6c
AS
9584 * doprnt.c (doprnt1): Fix size of charbuf.
9585
92bc2678
CY
95862008-12-02 Chong Yidong <cyd@stupidchicken.com>
9587
9588 * keyboard.c (timer_check): Revert last change.
9589
93b9e8cc
JB
95902008-12-02 Juanma Barranquero <lekktu@gmail.com>
9591
9592 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9593
fd7a37d5
JB
95942008-12-01 Juanma Barranquero <lekktu@gmail.com>
9595
9596 * makefile.w32-in: Update dependencies.
9597 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9598
c115043b
AS
95992008-12-01 Andreas Schwab <schwab@suse.de>
9600
9601 * font.c (register_font_driver): Use xmalloc.
9602 (font_put_frame_data): Likewise.
9603
f5668d2a
CY
96042008-12-01 Chong Yidong <cyd@stupidchicken.com>
9605
860d96be
CY
9606 * xfaces.c (realize_x_face): Make abort condition clearer.
9607
f5668d2a
CY
9608 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9609
379c17e7
CY
96102008-11-30 Chong Yidong <cyd@stupidchicken.com>
9611
9612 * keyboard.c (timer_check): After a timer runs, ensure that the
9613 selected window's buffer is current.
9614
35f36d65
JB
96152008-11-30 Juanma Barranquero <lekktu@gmail.com>
9616
f952c61c
JB
9617 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9618 It was accidentally restored by the Unicode merge.
9619
35f36d65
JB
9620 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9621
b23077df
JB
96222008-11-29 Juanma Barranquero <lekktu@gmail.com>
9623
9624 * w32proc.c: Include "coding.h".
9625 (Fw32_short_file_name): Encode filename passed to Windows API.
9626 (Fw32_long_file_name): Encode filename passed to Windows API and
9627 decode back the result. (Bug#1433)
9628
b8ebe9dd
KH
96292008-11-29 Kenichi Handa <handa@m17n.org>
9630
8cc53f96
KH
9631 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9632 not before accessing it.
9633
b8ebe9dd
KH
9634 * charset.c (Fdefine_charset_internal): After calculating
9635 min_char, max_char, and fastmap, copy the charset structure again.
9636 (encode_char): Fix the previous change.
9637
59bc82c0
SZ
96382008-11-28 Seiji Zenitani <zenitani@mac.com>
9639
9640 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9641
9642 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9643
9644 * nsterm.m (x_set_frame_alpha): New function.
9645
32247e3d
EZ
96462008-11-27 Eli Zaretskii <eliz@gnu.org>
9647
9648 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9649
b003e5ff
JB
96502008-11-27 Juanma Barranquero <lekktu@gmail.com>
9651
9652 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9653 pointer to check_face_name.
9654
708550f5
KH
96552008-11-27 Kenichi Handa <handa@m17n.org>
9656
9657 * category.h (SET_CATEGORY_SET): Call set_category_set.
9658 (set_category_set): Extern it.
9659
9660 * category.c (hash_get_category_set): New function.
9661 (Fmodify_category_entry): Adjusted for the change of
9662 char_table_ref_and_range. Call hash_get_category_set to get a
9663 category set to store in the table.
9664
9665 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9666 Funify_charset.
9667
2ae37cf0 9668 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9669 (DECODE_CHAR): Check if the decoder vector is ready.
9670 (ENCODE_CHAR): Check if the encoder char-table is ready.
9671 (maybe_unify_char): Extern it.
9672
9673 * charset.c (Vchar_unified_charset_table): Delete it.
9674 (inhibit_load_charset_map): New variable.
9675 (temp_charset_work): New variable.
9676 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9677 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9678 New macros.
9679 (load_charset_map): Meaning of control_flag changed. If
9680 inhibit_load_charset_map is nonzero, setup a table in
9681 temp_charset_work.
9682 (load_charset): New argument control_flag.
9683 (map_charset_for_dump): New function.
9684 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9685 map_charset_for_dump.
9686 (Fdefine_charset_internal): If the charset method is MAP, load
9687 mapping tables by calling load_charset.
9688 (Funify_charset): Don't load a mapping table but directly set
9689 Vchar_unify_table.
9690 (maybe_unify_char): New function.
9691 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9692 Handle the case of inhibit_load_charset_map being nonzero.
9693 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9694 Handle the case of inhibit_load_charset_map being nonzero.
9695 (Fclear_charset_maps): Just free temp_charset_work.
9696 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9697 variable.
9698
9699 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9700 change of char_table_ref_and_range.
9701 (char_table_ref_and_range): Change the meaning of argument FROM
9702 and TO. Now the caller must provide initial values for *FROM
9703 and *TO.
9704
9705 * fontset.c (fontset_add): Adjusted for the change of
9706 char_table_ref_and_range.
9707 (fontset_get_font_group): Likewise.
9708 (Ffontset_info): Likewise.
9709
9710 * keymap.c (describe_vector): Adjusted for the change of
9711 char_table_ref_and_range. For char-table, put boundary between
9712 non-ASCII and 8-bit characters.
9713
9714 * print.c (print_object): For bool-vector, delete unnecessary
9715 check of ASCII_BYTE_P.
9716
9196133b
JR
97172008-11-26 Jason Rumney <jasonr@gnu.org>
9718
9719 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9720 leading in font height. (Bug#879)
9196133b 9721
9f688acf
GM
97222008-11-26 Glenn Morris <rgm@gnu.org>
9723
9724 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9725 redefinition with ifdef. (Bug#1383)
9726
90d19aff
AR
97272008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9728
9729 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9730
4ccfa1c0 97312008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9732
9733 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9734 New EmacsView methods.
9735 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9736 Fixes bug #1048,1357,1414.
9737
97382008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9739
9740 Fix bug #1362.
9741 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9742 is not an indexed color.
9743 * nsterm.m (free_indexed_color): Add argument checking.
9744 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9745
e7d5ecb3
CY
97462008-11-24 Chong Yidong <cyd@stupidchicken.com>
9747
9748 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9749 Document confirm-after-completion value for
9750 minibuffer-completion-confirm.
9751
c285743c
JR
97522008-11-24 Jason Rumney <jasonr@gnu.org>
9753
9754 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9755 warning.
9756
b0857706
JR
97572008-11-23 Jason Rumney <jasonr@gnu.org>
9758
9759 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9760 restored before returning.
9761
9762 * w32font.c (check_face_name): New function.
9763 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9764 fonts. (Bug#642)
b0857706 9765
ee50ff07
MR
97662008-11-22 Martin Rudalics <rudalics@gmx.at>
9767
9768 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9769 confirm-nonexistent-file-or-buffer in doc-string.
9770
b8ff72fa
SM
97712008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9772
9773 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9774 Fix copy/paste typo. Add checks.
9775
cee53ed4
KH
97762008-11-21 Kenichi Handa <handa@m17n.org>
9777
9778 * coding.c (detect_coding_iso_2022): Reject invalid composition
9779 sequence.
9780 (DECODE_COMPOSITION_START): If the current source is the last
9781 block, and the current composition doesn't end, regard this
9782 sequence as invalid.
9783 (decode_coding_iso_2022): Handle invalid composition sequence.
9784
f6ef1e65
MR
97852008-11-20 Martin Rudalics <rudalics@gmx.at>
9786
9787 * window.c (coordinates_in_window): Don't return
9788 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9789 line when the window is not the rightmost one. (Bug#1372)
9790
e08b1705
MR
97912008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9792
9793 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9794
ad98e89f
EZ
97952008-11-15 Eli Zaretskii <eliz@gnu.org>
9796
9797 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9798 and bright_bg if noninteractive is non-zero.
9799
fb098a4b
CY
98002008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9801
9802 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9803 x_draw_glyph_string_background.
9804
9805 * w32term.c (x_draw_glyph_string): Likewise.
9806
ce952b6e
CY
98072008-11-15 Chong Yidong <cyd@stupidchicken.com>
9808
9809 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9810 the next glyph string once past the overhang width.
9811
9812 * nsterm.m (ns_draw_glyph_string): Likewise.
9813
9814 * w32term.c (x_draw_glyph_string): Likewise.
9815
26ea7079
CY
98162008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9817
9818 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9819 double file close.
9820
1c33c906
MR
98212008-11-14 Martin Rudalics <rudalics@gmx.at>
9822
9823 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9824 dedicated status of window before attempting to display another
9825 buffer in it.
9826
8fc29035
JB
98272008-11-14 Juanma Barranquero <lekktu@gmail.com>
9828
9829 * msdos.c (Fmsdos_long_file_names):
9830 (syms_of_msdos) <dos-unsupported-char-glyph>:
9831 * dosfns.c (Fint86): Fix typos in docstrings.
9832
55fb4286
EZ
98332008-11-14 Eli Zaretskii <eliz@gnu.org>
9834
9835 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9836
3fda0315
KY
98372008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9838
9839 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9840
7e849c17
CY
98412008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9842
9843 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9844
9845 * frame.h: Negative alpha means "don't touch".
9846
9847 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9848
9849 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9850
b9fd67bd
DN
98512008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9852
9853 * hftctl.c:
9854 * chpdef.h:
9855 * acldef.h: Remove files used only for systems no longer supported.
9856
9857 * Makefile.in: Fix .o alphabetical ordering.
9858 (hftctl.o): Remove dependency, file removed.
9859 (keymap.o, print.o): Depend on charset.h.
9860
d5998e03
KH
98612008-11-10 Kenichi Handa <handa@m17n.org>
9862
2ae37cf0 9863 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9864
be70e183
CY
98652008-11-08 Chong Yidong <cyd@stupidchicken.com>
9866
9867 * dired.c (file_name_completion): If completion_ignore_case is
9868 enabled, ignore case when checking completion-regexp-list.
9869
7cf94eac
EZ
98702008-11-08 Eli Zaretskii <eliz@gnu.org>
9871
9872 * vm-limit.c (get_lim_data): Fix last change.
9873
ee107a89
KH
98742008-11-08 Kenichi Handa <handa@m17n.org>
9875
9876 * character.c (Fget_byte): New function.
9877 (syms_of_character): Defsubr Fget_byte.
9878
5fd15622
CY
98792008-11-07 Chong Yidong <cyd@stupidchicken.com>
9880
9881 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9882 cursor position is valid after scrolling.
9883
13d62fad
JB
98842008-11-06 Juanma Barranquero <lekktu@gmail.com>
9885
9886 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9887
a1dd2936
GM
98882008-11-06 Glenn Morris <rgm@gnu.org>
9889
9890 * xterm.c (handle_one_xevent): Don't let popup menus cause
9891 mouse-autoselect-window related window switching. (Bug#1261)
9892
860cd236
CY
98932008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9894
9895 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9896
653a3150
AS
98972008-11-04 Andreas Schwab <schwab@suse.de>
9898
9899 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9900
870f5cac
CY
99012008-11-03 Chong Yidong <cyd@stupidchicken.com>
9902
9903 * xfns.c (Fx_wm_set_size_hint): New function.
9904
1e02f3cb
MR
99052008-11-03 Martin Rudalics <rudalics@gmx.at>
9906
9907 * textprop.c (Fprevious_single_char_property_change): Return 0
9908 when there's no change in a string. (Bug#1301)
9909
e630dfc6
MR
99102008-11-02 Martin Rudalics <rudalics@gmx.at>
9911
9912 * frame.c (do_switch_frame): New argument NORECORD passed to
9913 Fselect_window.
9914 (Fselect_frame): New argument NORECORD passed to
9915 do_switch_frame.
9916 (Fset_frame_selected_window): New argument NORECORD passed to
9917 Fselect_frame.
9918 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9919 in call of do_switch_frame.
9920 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9921 Handle NORECORD argument in call of Fselect_frame.
9922 * lisp.h (do_switch_frame, Fselect_frame)
9923 (Fset_frame_selected_window): Adjust declarations.
9924 * window.c (select_frame_norecord): New function.
9925 (run_window_configuration_change_hook): Use it and call
9926 Fselect_frame with NORECORD set.
9927 (Fselect_window): Pass NORECORD to Fselect_frame.
9928 (Fset_window_configuration): Handle NORECORD argument in call of
9929 do_switch_frame.
9930 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9931 Fset_frame_selected_window.
9932 * keyboard.c (command_loop_1): Handle NORECORD in call of
9933 Fselect_frame (currently ifdefd).
9934
9020b223
GM
99352008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9936
9937 * emacs.c (USAGE2): Untabify.
9938
793ffee8
SM
99392008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9940
9941 * composite.c (fill_gstring_header): Fix copy/paste typo.
9942
ab6d1131
MR
99432008-10-31 Martin Rudalics <rudalics@gmx.at>
9944
9945 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9946 (Fother_window): Rename argument and rewrite doc-string.
9947 (select_window_norecord): Fix return value. (Bug#1276)
9948
601a9cf1
JB
99492008-10-30 Juanma Barranquero <lekktu@gmail.com>
9950
9951 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9952 new frames overriding foreground for tooltips. Based on similar patch
9953 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9954
813b0652
CY
99552008-10-29 Chong Yidong <cyd@stupidchicken.com>
9956
9957 * emacs.c (Fdaemon_initialized): Initialize nfd.
9958
4414f58f
MR
99592008-10-29 Martin Rudalics <rudalics@gmx.at>
9960
9961 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9962 (Fwindow_text_height): Clarify doc-strings.
9963 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9964 doc-string of window-scroll-functions.
9965
ecdcaa09
RS
99662008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9967
9968 * category.c (syms_of_category): Fix typo in docstring.
9969
23fe745a
JB
99702008-10-28 Juanma Barranquero <lekktu@gmail.com>
9971
9972 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9973 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9974 Fix typos in docstrings.
9975
ff808935
DN
99762008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9977
9978 * emacs.c (daemon_pipe): Make non-static.
9979 (IS_DAEMON): Move definition ...
9980 * lisp.h (IS_DAEMON): ... here.
9981 (daemon_pipe): Declare.
9982 (is_daemon): Remove.
9983 * dispnew.c (init_display): Use IS_DAEMON.
9984
fc012771
SM
99852008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9986
9987 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9988 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9989
9990 * emacs.c (is_daemon): Remove.
9991 (main): Don't set is_daemon.
9992 (IS_DAEMON): New macro.
9993 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9994 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9995 parent exits.
9996 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9997
d8bdbe6f
CY
99982008-10-27 Chong Yidong <cyd@stupidchicken.com>
9999
d1a072bf
CY
10000 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10001 over-sized glyph, draw it with the default glyph width.
10002
e2e325aa
CY
10003 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10004 glyph, draw it with the default glyph width.
10005
10006 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10007 glyph, draw it with the default glyph width.
10008
d8bdbe6f
CY
10009 * xdisp.c (try_scrolling): When computing the distance from the
10010 scroll margin to PT, try moving some distance past the window
10011 bottom before giving up.
10012
7bfac547
MR
100132008-10-27 Martin Rudalics <rudalics@gmx.at>
10014
10015 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10016 (Fset_window_buffer): Explain in doc-string that a window can be
10017 "strongly" dedicated to its buffer.
10018
4ff029f6
DN
100192008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10020
10021 * emacs.c (daemon_name): New variable.
10022 (main): Deal with --daemon=SERVER_NAME.
10023 (Fdaemonp): Return a name if one was passed to --daemon.
10024
5790ef40
DN
100252008-10-26 Romain Francoise <romain@orebokech.com>
10026
f9bd0df9 10027 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10028 (main): Create a pipe before forking, make the parent exit only after
10029 the child has closed its end of the pipe. Move closing the
10030 descriptors ...
10031 (Fdaemon_initialized): ... here. New function.
10032
f5385255
SM
100332008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10034
4d632321
SM
10035 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10036 the previous unoptimized table.
10037
f5385255
SM
10038 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10039 the distinction between non-nil and non-t value of `dedicated'.
10040
6c56a0f3
CY
100412008-10-25 Chong Yidong <cyd@stupidchicken.com>
10042
10043 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10044 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10045
fec89261
MR
100462008-10-25 Martin Rudalics <rudalics@gmx.at>
10047
10048 * window.c (Fget_buffer_window, Fdelete_windows_on)
10049 (Freplace_buffer_in_windows): Make buffer argument optional and
10050 rename to buffer_or_name.
10051
34fcddd0
CY
100522008-10-24 Chong Yidong <cyd@stupidchicken.com>
10053
f5385255
SM
10054 * xdisp.c (handle_single_display_spec, handle_display_prop):
10055 Undo 2005-05-16 change.
34fcddd0
CY
10056 (handle_stop): Pop iterator if it's loaded with an empty string.
10057 (get_overlay_strings_1): Don't save iterator if it's loaded with
10058 an empty string (bug#1201).
10059
064766f2
KH
100602008-10-24 Kenichi Handa <handa@m17n.org>
10061
10062 * ftfont.c (ftfont_otf_features): Fix previous change.
10063 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10064 calling ftfont_otf_features.
10065
f9bd0df9 100662008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10067
10068 * font.c (font_match_p): Fix for the case that a vector of
10069 characters is in script-representative-chars.
10070
1dae9197
MA
100712008-10-24 Michael Albinus <michael.albinus@gmx.de>
10072
10073 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10074 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10075 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10076 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10077 macro. (Bug#1186)
1dae9197 10078
f9bd0df9 100792008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10080
10081 * s/sol2-10.h: New file.
10082
878a4584
JB
100832008-10-23 Juanma Barranquero <lekktu@gmail.com>
10084
10085 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10086 poor beast has survived 9+ years and the jump from xterm.c!).
10087
cd265ca6
MR
100882008-10-23 Martin Rudalics <rudalics@gmx.at>
10089
10090 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10091 Reword doc-string.
f5385255 10092 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10093
472a4dc9
JB
100942008-10-23 Juanma Barranquero <lekktu@gmail.com>
10095
10096 * character.c (syms_of_character) <script-representative-chars>:
10097 <unicode-category-table>: Doc fixes.
10098
159bd5a2
NF
100992008-10-23 Noah Friedman <friedman@splode.com>
10100
10101 * coding.c (make_conversion_work_buffer): Check that
10102 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10103 Fget_buffer_create.
10104
49f9c344
KH
101052008-10-23 Kenichi Handa <handa@m17n.org>
10106
10107 * font.c (font_add_log): Check the values of extra properties.
10108
12bb3111
MR
101092008-10-22 Martin Rudalics <rudalics@gmx.at>
10110
10111 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10112 Reword doc-string.
10113 (Fset_window_parameter): Use NILP.
10114 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10115 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10116
bbeb4e99
JB
101172008-10-22 Juanma Barranquero <lekktu@gmail.com>
10118
10119 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10120
101212008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10122
10123 * nsfns.m (ns_appkit_version): New function.
10124 (x-server-version): Use it.
10125 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10126 (x-server-vendor): Don't check_ns().
10127
10128 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10129
a9b555d3
JB
101302008-10-22 Juanma Barranquero <lekktu@gmail.com>
10131
10132 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10133 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10134
4626499f
KH
101352008-10-22 Kenichi Handa <handa@m17n.org>
10136
e3681952
KH
10137 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10138 scripts.
10139
4626499f
KH
10140 * category.c (word_boundary_p): Check scripts instead of charset.
10141 Handle nil value in word-separating-categories and
10142 word-combining-categories.
10143 (syms_of_category): Fix docstrings of word-separating-categories
10144 and word-combining-categories.
10145
1560f91a
EZ
101462008-10-21 Eli Zaretskii <eliz@gnu.org>
10147
10148 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10149 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10150
f4668441
MR
101512008-10-21 Martin Rudalics <rudalics@gmx.at>
10152
10153 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10154 Rename arg "buffer" to "buffer_or_name".
10155 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10156 it optional.
10157 (no_switch_window): Remove since the return value is not used.
a9b555d3 10158 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10159 Consider window as dedicated when Fwindow_dedicated_p returns a
10160 non-nil value.
10161 * lisp.h: Remove prototype for no_switch_window.
10162
fd75ddb2
JD
101632008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10164
10165 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10166 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10167
07295713
KH
101682008-10-21 Kenichi Handa <handa@m17n.org>
10169
10170 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10171 check Vlatin_extra_code_table.
10172
712adc82
EZ
101732008-10-20 Eli Zaretskii <eliz@gnu.org>
10174
10175 * fileio.c (Fset_file_modes): Doc fix.
10176
f549eb0b
MA
101772008-10-19 Michael Albinus <michael.albinus@gmx.de>
10178
10179 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10180 in arrays.
10181
aac0c6e3
MR
101822008-10-19 Martin Rudalics <rudalics@gmx.at>
10183
10184 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10185 Mention kill-buffer in doc-string.
10186 (Fset_window_buffer): Reinsert tem check removed in last commit.
10187 (Fenlarge_window, Fshrink_window): Have argument names and
10188 doc-string follow Elisp manual more closely.
10189
101902008-10-18 Eli Zaretskii <eliz@gnu.org>
10191
10192 * fileio.c (Fset_file_modes): Doc fix.
10193
101942008-10-18 Martin Rudalics <rudalics@gmx.at>
10195
10196 * window.c (Fwindow_width, Fset_window_start)
10197 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10198 (Fdelete_windows_on, Freplace_buffer_in_windows):
10199 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10200 (Fwindow_dedicated_p): Make window argument optional.
10201 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10202 (Fset_window_buffer): Respect any non-nil dedicated value for
10203 window. Rename "buffer" argument to "buffer_or_name".
10204
102052008-10-18 Ulrich Mueller <ulm@gentoo.org>
10206
10207 * m/sh3.h: New file, machine description for SuperH.
10208
102092008-10-17 Martin Rudalics <rudalics@gmx.at>
10210
10211 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10212
102132008-10-17 Kenichi Handa <handa@m17n.org>
10214
10215 * ftfont.c (ftfont_otf_features): Fix indexing
10216 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10217
102182008-10-16 Magnus Henoch <mange@freemail.hu>
10219
10220 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10221 (Fdbus_call_method_asynchronously): Ditto.
10222 This change makes C-h f display the argument list.
10223
102242008-10-16 Chong Yidong <cyd@stupidchicken.com>
10225
10226 * fileio.c (Fexpand_file_name): Doc fix.
10227
10228 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10229 of :foreground and :background equivalent to unspecified (20.x
10230 compatibility).
10231
102322008-10-15 Eli Zaretskii <eliz@gnu.org>
10233
10234 * buffer.c (syms_of_buffer): Doc fix.
10235
102362008-10-14 Kenichi Handa <handa@m17n.org>
10237
10238 * font.c (font_clear_prop): When clearing font width, clear the
10239 average width field too.
10240
102412008-10-12 Andreas Schwab <schwab@suse.de>
10242
10243 * ftfont.c (ftfont_shape_by_flt): Make static.
10244 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10245
10246 * font.c: Don't include <m17n-flt.h>.
10247
102482008-10-10 Eli Zaretskii <eliz@gnu.org>
10249
10250 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10251
102522008-10-09 Eli Zaretskii <eliz@gnu.org>
10253
10254 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10255 away code.
10256
102572008-10-09 Chong Yidong <cyd@stupidchicken.com>
10258
10259 * dispnew.c (update_text_area): Avoid looping due to large glyph
10260 overhangs (bug#1070).
10261
102622008-10-09 Kenichi Handa <handa@m17n.org>
10263
10264 * fontset.c (face_for_char): If face->fontset is negative, just
10265 return ascii_face.
10266
f5385255
SM
10267 * font.c (font_delete_unmatched): Fix previous change.
10268 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10269
102702008-10-09 Martin Rudalics <rudalics@gmx.at>
10271
10272 * frame.c (Fraise_frame): On text-only terminals select frame in
10273 order to make it visible. (Bug#1061)
10274
102752008-10-08 Chong Yidong <cyd@stupidchicken.com>
10276
10277 * fontset.c (fontset_find_font): Check frame validity.
10278
102792008-10-07 Chong Yidong <cyd@stupidchicken.com>
10280
a9b555d3 10281 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10282 (xg_display_close): Allow Emacs to close all displays (bug#985).
10283
102842008-10-06 Andreas Schwab <schwab@suse.de>
10285
f5385255 10286 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10287
102882008-10-06 Chong Yidong <cyd@stupidchicken.com>
10289
f5385255 10290 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10291
a9b555d3 10292 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10293
10294 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10295 during initialization.
10296
102972008-10-04 Eli Zaretskii <eliz@gnu.org>
10298
10299 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10300 whole thing on MSDOS frames as well as on a TTY.
10301
10302 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10303 well as for TTY.
10304 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10305 well as on a TTY.
10306
10307 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10308 as well as for TTY.
10309
10310 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10311
10312 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10313 MSDOS frames as well.
10314
103152008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10316
10317 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10318 correct arguments.
b71ac3dd 10319 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10320
103212008-10-03 Glenn Morris <rgm@gnu.org>
10322
10323 * emacs.c (USAGE1): Add --daemon.
10324
103252008-10-02 Eli Zaretskii <eliz@gnu.org>
10326
10327 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10328 100, so it's in percents as advertised.
10329
103302008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10331
10332 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10333 (ns_output.current_cursor, ns_output.desired_cursor)
10334 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10335 (FRAME_NEW_CURSOR_COLOR): Remove.
10336
10337 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10338 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10339 enumeration (HOLLOW_BOX_CURSOR, etc.).
10340
10341 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10342 (draw_window_cursor): Simplify code.
f5385255
SM
10343 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10344 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10345 updates manually.
a9b555d3
JB
10346 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10347 Use core Emacs cursor types.
aac0c6e3 10348
b8ff72fa 10349 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10350
103512008-10-02 Martin Rudalics <rudalics@gmx.at>
10352
10353 * process.c (Faccept_process_output): Fix doc-string.
10354
103552008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10356
10357 * gmalloc.c (__sbrk): Also define for uClibc.
10358
10359 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10360 for uClibc.
10361
103622008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10363
10364 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10365 styles.
10366 (nsfont_open): Reenable the cache.
10367
103682008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10369
10370 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10371 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10372
103732008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10374
10375 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10376 a suspended terminal.
10377
103782008-09-30 Michael Albinus <michael.albinus@gmx.de>
10379
10380 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10381
103822008-09-30 Eli Zaretskii <eliz@gnu.org>
10383
10384 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10385
103862008-09-30 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10389 in a continued line coincides with a line beginning.
10390
103912008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10392
10393 * nsfont.m (nsfont_trait_distance): Fix bug.
10394 (nsfont_list): Return a list rather than a vector (syncs with Handa
10395 changes of 2008-05-14).
10396 (nsfont_open): Improve logging.
10397
103982008-09-29 Andreas Schwab <schwab@suse.de>
10399
10400 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10401
104022008-09-28 Martin Rudalics <rudalics@gmx.at>
10403
10404 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10405 name as char-resolve-modifiers.
10406 Reported by: Markus Triska <markus.triska@gmx.at>
10407
104082008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10409
10410 * dispnew.c (init_display): Return earlier when running as a daemon.
10411
104122008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10413
10414 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10415
104162008-09-27 Eli Zaretskii <eliz@gnu.org>
10417
10418 * composite.c (Fcomposition_get_gstring)
10419 (Fcompose_region_internal, Fcompose_string_internal)
10420 (Ffind_composition_internal): Doc fix.
10421 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10422 (syms_of_composite) <auto-composition-function>: Doc fix.
10423 (syms_of_composite) <composition-function-table>: Doc fix.
10424
104252008-09-25 Chong Yidong <cyd@stupidchicken.com>
10426
10427 * search.c (wordify): New argument for lax word-ends.
10428 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10429
104302008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10431
10432 * lisp.h (is_daemon): Declare.
10433 * dispnew.c (init_display): Do not try to initialize the terminal
10434 when running as a daemon.
10435
104362008-09-22 Chong Yidong <cyd@stupidchicken.com>
10437
10438 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10439 x_display_pixel_height.
10440
104412008-09-22 Martin Rudalics <rudalics@gmx.at>
10442
10443 * undo.c (record_point): Don't call Fundo_boundary for first
10444 change. (Bug#731)
10445
104462008-09-22 Juanma Barranquero <lekktu@gmail.com>
10447
10448 * emacs.c (Fdaemonp): Doc fix.
10449
104502008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10451
10452 * emacs.c (main): Place #ifdef in the proper place.
10453
104542008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10455
10456 * emacs.c (standard_args): Add --daemon.
10457 (main): Disconnect from the terminal when --daemon is passed.
10458 (is_daemon): New variable.
10459 (Fdaemonp): New function.
10460 (syms_of_emacs): Defsubr it.
10461
104622008-09-20 Chong Yidong <cyd@stupidchicken.com>
10463
10464 * xdisp.c (get_next_display_element): Handle string display
10465 correctly when checking for the end of a box run.
10466
104672008-09-20 Glenn Morris <rgm@gnu.org>
10468
10469 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10470 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10471 (Frename_file): Avoid copying to trash if a rename involves
10472 a delete. (Bug#964).
10473
104742008-09-20 Eli Zaretskii <eliz@gnu.org>
10475
10476 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10477 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10478 frames as well as termcap frames.
10479 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10480 get_named_tty.
10481
104822008-09-19 Eli Zaretskii <eliz@gnu.org>
10483
10484 * process.c (procfs_system_process_attributes): Fix cmdline in
10485 case /proc/PID/cmdline is empty.
10486
10487 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10488 x_display_pixel_height.
10489
104902008-09-19 Juanma Barranquero <lekktu@gmail.com>
10491
10492 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10493
10494 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10495 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10496
104972008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10498
10499 * dispextern.h (struct it): Move line_wrap away from the middle of
10500 bitfields. Move voffset in struct iterator_stack_entry after the
10501 bitfields. Move tab_width near after another short.
10502
105032008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10504
10505 * frame.h (struct frame): Move alpha from the middle of bitfields.
10506
10507 * window.h (struct window): Move frozen_window_start_p after the
10508 rest of the bitfields to reduce padding.
10509
105102008-09-18 Chong Yidong <cyd@stupidchicken.com>
10511
10512 * xterm.h (x_display_info): Remove `height' and `width' members.
10513
10514 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10515
10516 * w32term.h (w32_display_info): Remove `height', `width',
10517 `height_in', and `width_in' members.
10518
b8ff72fa
SM
10519 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10520 New functions.
aac0c6e3
MR
10521 (x_calc_absolute_position): Use them.
10522 (x_term_init): Omit removed `height' and `width' members.
10523
b8ff72fa
SM
10524 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10525 New functions.
aac0c6e3
MR
10526 (w32_read_socket, x_calc_absolute_position): Use them.
10527 (w32_initialize_display_info, w32_term_init): Omit removed members
10528 of w32_display_info.
10529
b8ff72fa
SM
10530 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10531 New functions.
10532 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10533
b8ff72fa
SM
10534 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10535 New functions.
aac0c6e3
MR
10536 (x_calc_absolute_position): Use them.
10537 (x_term_init): Omit removed `height' and `width' members.
10538
10539 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10540 (compute_tip_xy):
10541 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10542 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10543 x_display_pixel_width.
10544
105452008-09-18 Kenichi Handa <handa@m17n.org>
10546
10547 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10548 (composition_compute_stop_pos): Fix handling of static composition.
10549 (Fcomposition_get_gstring): Check FROM and TO at first.
10550
105512008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10552
46e722a9 10553 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10554 mixup (YAILOM).
10555
105562008-09-17 Chong Yidong <cyd@stupidchicken.com>
10557
10558 * indent.c (Fvertical_motion): Use position reported by iterator
10559 instead of PT for determining screen motion (bug#943).
10560
105612008-09-17 Romain Francoise <romain@orebokech.com>
10562
10563 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10564
105652008-09-17 Kenichi Handa <handa@m17n.org>
10566
10567 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10568
10569 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10570 if necessary.
10571
105722008-09-16 Kenichi Handa <handa@m17n.org>
10573
10574 * coding.c (make_conversion_work_buffer): Avoid calling
10575 Fget_buffer_create if it is not necessary.
10576
105772008-09-15 Martin Rudalics <rudalics@gmx.at>
10578
10579 * window.c (Fselect_window): Don't update window_select_count and
10580 use_time when norecord is not nil.
10581
105822008-09-14 Kenichi Handa <handa@m17n.org>
10583
10584 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10585 specpdl_ptr.
10586
105872008-09-12 Kenichi Handa <handa@m17n.org>
10588
10589 * indent.c (scan_for_column): Don't handle automatic composition
10590 if the current buffer is not associated with a window.
10591
10592 * composite.c (composition_reseat_it): If the current buffer is
10593 not associated with a window, ignore the automatic composition.
10594 (find_automatic_composition): Likewise.
10595
105962008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10597
10598 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10599 (Fgpm_mouse_stop): Use it.
10600 * termhooks.h (close_gpm): Declare.
10601 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10602 connection if Gpm_GetEvent fails.
10603
10604 * window.c (set_window_buffer): Always preserve current-buffer.
10605
106062008-09-12 Glenn Morris <rgm@gnu.org>
10607
10608 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10609
106102008-09-11 Glenn Morris <rgm@gnu.org>
10611
10612 * charset.c (charset-map-path): Doc fix.
10613
106142008-09-10 Kenichi Handa <handa@m17n.org>
10615
10616 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10617
10618 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10619 compose a grapheme cluster with the preceding base glyph.
10620
10621 * composite.c (composition_compute_stop_pos): Fix previous change.
10622 Reset cmp_it->id to -1 at first.
10623
106242008-09-10 Glenn Morris <rgm@gnu.org>
10625
10626 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10627
106282008-09-09 Chong Yidong <cyd@stupidchicken.com>
10629
10630 * keyboard.c (read_key_sequence): Reapply translation maps when
10631 switching keyboards.
10632
106332008-09-09 Kenichi Handa <handa@m17n.org>
10634
10635 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10636 characters.
10637
10638 * composite.c (FORWARD_CHAR): Fix calculation
10639 of (POSITION).pos_byte.
10640 (composition_compute_stop_pos): Limit the search of composition to
10641 at most 500 characters ahead. If we reach the limit or find a
10642 newline, set cmp_it->ch to -2 and return 0.
10643 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10644
106452008-09-08 Kenichi Handa <handa@m17n.org>
10646
10647 * indent.c (Fvertical_motion): Be sure to set
10648 it_overshoot_expected if it.cmp_it.id is non-negative.
10649
106502008-09-07 Andreas Schwab <schwab@suse.de>
10651
10652 * callproc.c (Fcall_process): Don't hold references to string data
10653 across garbage collection. Move initialisation of new_argv down
10654 to avoid compiler bug.
10655
106562008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10657
10658 * process.c (Fsystem_process_attributes): Doc fix.
10659
106602008-09-07 Chong Yidong <cyd@stupidchicken.com>
10661
10662 * callproc.c (Fcall_process): Canonicalize current directory name.
10663
10664 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10665 iterator advances to the next line if the current line ends in a
10666 continued tab.
10667
106682008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10669
10670 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10671 member to point to cmp_from.
10672
10673 * xdisp.c: Doc fix for references to gidx data member.
10674
106752008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10676
10677 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10678
106792008-09-07 Kenichi Handa <handa@m17n.org>
10680
10681 * composite.c (FORWARD_CHAR): Check STOP after
10682 incrementing (POSITION).pos.
10683
106842008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10685
10686 * process.c (Fsystem_process_attributes): Doc fix.
10687
106882008-09-06 Chong Yidong <cyd@stupidchicken.com>
10689
10690 * keyboard.c (Ftop_level): Doc fix.
10691
106922008-09-06 Eli Zaretskii <eliz@gnu.org>
10693
10694 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10695 minibuffer, don't let lower part of menu invade the echo area.
10696
10697 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10698 "char *q" to access menu text and advance through it. Revert the
10699 change that displayed ">" instead of ASCII character 0x10.
10700
107012008-09-05 Eli Zaretskii <eliz@gnu.org>
10702
10703 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10704 toggle boxes and radio buttons on MS-DOS as well.
10705
107062008-09-05 Kenichi Handa <handa@m17n.org>
10707
10708 * composite.c (autocmp_chars): Check lookback count.
10709 (composition_compute_stop_pos): Set cmp_it->lookback.
10710 (composition_reseat_it): Check lookback count.
10711 (struct position_record): New struct.
10712 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10713 (find_automatic_composition): New function.
10714 (composition_adjust_point): Use find_automatic_composition.
10715
10716 * dispextern.h (struct composition_it): New member lookback.
10717
107182008-09-02 Chong Yidong <cyd@stupidchicken.com>
10719
10720 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10721 if moving by a single line.
10722
107232008-09-02 Andreas Schwab <schwab@suse.de>
10724
10725 * xterm.c (x_delete_display): Fix merge error.
10726
10727 * fileio.c (Fexpand_file_name): Remove unused variables.
10728
107292008-09-02 Eli Zaretskii <eliz@gnu.org>
10730
10731 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10732 storage on all platforms, not just on DOS_NT.
10733
107342008-09-02 Jason Rumney <jasonr@gnu.org>
10735
b8ff72fa
SM
10736 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10737 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10738
107392008-09-01 Chong Yidong <cyd@stupidchicken.com>
10740
10741 * xfaces.c (Finternal_set_alternative_font_family_alist)
10742 (Finternal_set_alternative_font_registry_alist): Properly copy
10743 entire alist structure.
10744
107452008-09-01 Kenichi Handa <handa@m17n.org>
10746
d66c0241 10747 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10748 representative chars of the script is a vector.
d66c0241
JB
10749 (ftfont_list): Handle the case where the representative chars of
10750 the script is a vector.
aac0c6e3
MR
10751
10752 * character.c (syms_of_character): Docstring of
10753 script-representative-chars fixed.
10754
107552008-08-31 Eli Zaretskii <eliz@gnu.org>
10756
10757 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10758 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10759 the menu. Allocate larger buffer for `text', to account for
10760 possible ^C characters.
10761
107622008-08-31 Martin Rudalics <rudalics@gmx.at>
10763
10764 * xdisp.c (prepare_menu_bars): Don't call
10765 Vwindow_size_change_functions with arg Qt.
10766
107672008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10768
10769 * font.h (font_range):
10770 * fileio.c (report_file_error):
46e722a9
SM
10771 * composite.c (composition_update_it): Yet another int/Lisp_Object
10772 mixup (YAILOM).
aac0c6e3
MR
10773
107742008-08-30 Glenn Morris <rgm@gnu.org>
10775
10776 * data.c (Fmake_variable_frame_local): Doc fix.
10777
10778 * frame.c (Fmodify_frame_parameters): Doc fix.
10779
107802008-08-30 Eli Zaretskii <eliz@gnu.org>
10781
10782 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10783 needed by GetTokenInformation.
10784 (w32_system_process_attributes): Check return values of all system
10785 APIs.
10786
10787 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10788 only when the state changes.
10789 (IT_update_begin, IT_update_end): Add termscript trace.
10790
10791 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10792 clipboard is unavailable. Set dst to NULL if it doesn't point to
10793 malloc'ed data.
10794 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10795 passing random values to xfree.
10796
10797 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10798 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10799
108002008-08-29 Jason Rumney <jasonr@gnu.org>
10801
10802 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10803
108042008-08-29 Eli Zaretskii <eliz@gnu.org>
10805
10806 * composite.c (fill_gstring_body): Avoid compiler warnings.
10807
10808 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10809 LGLYPH_SET_CODE to avoid compiler warnings.
10810
2ae37cf0 10811 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10812
10813 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10814
10815 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10816 LGLYPH_SET_CODE.
10817
108182008-08-29 Kenichi Handa <handa@m17n.org>
10819
10820 * fileio.c (report_file_error): Don't downcase the first character
10821 of errstring if it is still unibyte.
10822
108232008-08-29 Kenichi Handa <handa@m17n.org>
10824
10825 These changes are to re-implement the automatic composition so
10826 that it doesn't use text properties.
10827
10828 * Makefile.in (ftfont.o): Depend on composite.h.
10829 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10830
10831 * character.h (Vunicode_category_table): Extern it.
10832
10833 * character.c (Vunicode_category_table): New variable.
10834 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10835
10836 * chartab.c (optimize_sub_char_table): Perform more greedy
10837 optimization.
10838
b8ff72fa
SM
10839 * composite.h (enum composition_method):
10840 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10841 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10842 (Vcomposition_function_table): Extern it.
10843 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10844 (composition_gstring_put_cache, composition_gstring_from_id)
10845 (composition_gstring_p, composition_gstring_width)
10846 (composition_compute_stop_pos, composition_reseat_it)
10847 (composition_update_it, composition_adjust_point): Extern them.
10848 (Fcomposition_get_gstring): EXFUN it.
10849
d66c0241 10850 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10851 (Vcomposition_function_table)
10852 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10853 (gstring_hash_table, gstring_work, gstring_work_headers):
10854 New variables.
aac0c6e3
MR
10855 (gstring_lookup_cache, composition_gstring_put_cache)
10856 (composition_gstring_from_id, composition_gstring_p)
10857 (composition_gstring_width, fill_gstring_header)
10858 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10859 (composition_reseat_it, composition_update_it)
b8ff72fa 10860 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10861 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10862 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10863 Defsubr composition_get_gstring.
aac0c6e3
MR
10864
10865 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10866 cmp_id.
10867 (struct glyph_string): Delete the member gidx. New members
10868 cmp_id, cmp_from, and cmp_to.
10869 (enum it_method): Delete GET_FROM_COMPOSITION.
10870 (struct composition_it): New struct.
10871 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10872 Delete c, len, cmp_id, cmp_len in u.comp.
10873
10874 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10875 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10876 (enum lglyph_indices): Likewise.
b8ff72fa 10877 (font_range): Adjust extern.
aac0c6e3
MR
10878 (font_fill_lglyph_metrics): Extern it.
10879
10880 * font.c (QCf): New variable.
10881 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10882 (font_prepare_composition): Delete this function.
10883 (font_range): Type and arguments changed.
10884 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10885 (font_fill_lglyph_metrics): New function.
b8ff72fa 10886 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10887 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10888 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10889 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10890
10891 * fontset.h (font_for_char): Extern it.
10892
10893 * fontset.c (font_for_char): New function.
10894
10895 * ftfont.c: Include composite.h.
10896 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10897 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10898
10899 * indent.c: Include composite.h and dispextern.h.
10900 (check_composition): Delete this function.
10901 (scan_for_column): Handle composition by
10902 composition_compute_stop_pos, composition_reseat_it, and
10903 composition_update_it.
10904 (compute_motion): Likewise.
10905 (Fvertical_motion): Fix checking of composition.
10906
10907 * keyboard.c (adjust_point_for_property): Check composition by
10908 composition_adjust_point.
10909
b8ff72fa 10910 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10911 struct glyph_string.
10912
b8ff72fa
SM
10913 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10914 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10915 struct glyph.
10916 (produce_composite_glyph): Likewise.
10917
b8ff72fa
SM
10918 * w32term.c (x_draw_composite_glyph_string_foreground):
10919 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10920 (x_draw_glyph_string): Likewise.
10921
10922 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10923 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10924
10925 * xdisp.c: Include font.h.
10926 (it_props): Delete the entry for Qauto_composed.
10927 (init_iterator): Initialize it->cmp_it.id to -1.
10928 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10929 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10930 (handle_auto_composed_prop): Delete it.
10931 (handle_composition_prop): Handle only static composition.
10932 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10933 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10934 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10935 (pop_it): Likewise.
10936 (get_next_element): Delete next_element_from_composition.
10937 (CHAR_COMPOSED_P): New macro.
10938 (get_next_display_element): For automatic composition, get a face
10939 from the font in the glyph-string.
10940 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10941 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10942 (next_element_from_string): Check if the character at the current
10943 position is composed by CHAR_COMPOSED_P.
10944 (next_element_from_buffer): Likewise.
d66c0241
JB
10945 (next_element_from_composition): Adjust for the change of struct it.
10946 Update it->cmp_it.
b8ff72fa
SM
10947 (dump_glyph): Adjust for the change of struct glyph.
10948 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10949 it and struct glyph. Don't handle automatic composition here.
10950 (fill_gstring_glyph_string): New function.
10951 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10952 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10953 (BUILD_GSTRING_GLYPH_STRING): New macro.
10954 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10955 automatic composition.
b8ff72fa 10956 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10957 struct glyph.
b8ff72fa 10958 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10959
b8ff72fa 10960 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10961 the change of struct glyph_string.
10962 (x_draw_glyph_string): Likewise.
10963
109642008-08-29 Glenn Morris <rgm@gnu.org>
10965
10966 * buffer.c (word-wrap): Doc fix.
10967 * xdisp.c (truncate-partial-width-windows): Doc fix.
10968 Increase default to 50.
10969
109702008-08-29 Chong Yidong <cyd@stupidchicken.com>
10971
10972 * xdisp.c (update_tool_bar_unwind): New function.
10973 (update_tool_bar): Temporarily set selected frame before building
10974 tool-bar items.
10975
109762008-08-28 Michael Albinus <michael.albinus@gmx.de>
10977
10978 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10979 snprintf, respectively.
10980 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10981
109822008-08-28 Chong Yidong <cyd@stupidchicken.com>
10983
10984 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10985 LDFLAGS to GNUstep CC invocation.
10986
109872008-08-27 Chong Yidong <cyd@stupidchicken.com>
10988
10989 * indent.c (Fvertical_motion): Revert last change. Handle the
10990 general case where we are moving forward, and PT spans multiple
10991 screen lines.
10992
10993 * eval.c (find_handler_clause): Temporarily increase
10994 max-lisp-eval-depth while printing the backtrace buffer, to
10995 guarantee that help-mode code can run.
10996
109972008-08-27 Eli Zaretskii <eliz@gnu.org>
10998
10999 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11000 colors under -rv.
11001 (IT_set_frame_parameters): Don't swap foreground and background
11002 colors if `(reverse . t)' is present in the frame properties.
11003 (internal_terminal_init): Call init_frame_faces only for the
11004 initial frame.
11005
110062008-08-27 Andreas Schwab <schwab@suse.de>
11007
11008 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11009
110102008-08-27 Andreas Schwab <schwab@suse.de>
11011
11012 * search.c (search_buffer): Set char_base to zero only at the end.
11013
110142008-08-27 Kenichi Handa <handa@m17n.org>
11015
b8ff72fa 11016 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11017
110182008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11019
11020 * xterm.c (x_term_init): Temporarily hide the partially
11021 initialized terminal while calling vendor-specific-keysyms.
11022
110232008-08-26 Eli Zaretskii <eliz@gnu.org>
11024
11025 * msdos.c (internal_terminal_init): Most initializations done only
11026 once, especially initial_screen_colors[] and termscript open.
11027
110282008-08-26 Chong Yidong <cyd@stupidchicken.com>
11029
11030 * eval.c (Fcondition_case): Doc fix.
11031
11032 * widgetprv.h (EmacsFramePart): Change font member to the new font
11033 struct.
11034
11035 * widget.c: Include character.h and font.h for XSETFONT.
11036 (setup_frame_gcs): Compute X font id from font struct, just once.
11037
110382008-08-26 Eli Zaretskii <eliz@gnu.org>
11039
11040 * term.c (get_named_tty): Fix last change.
11041
110422008-08-26 Chong Yidong <cyd@stupidchicken.com>
11043
11044 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11045 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11046
110472008-08-25 Eli Zaretskii <eliz@gnu.org>
11048
11049 * frame.c (do_switch_frame): Mark previously displayed frame as
11050 obscured for FRAME_MSDOS_P frames as well.
11051
110522008-08-24 Eli Zaretskii <eliz@gnu.org>
11053
11054 * frame.c (make_terminal_frame): Initialize f->terminal,
11055 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11056 Set the top frame to newly created frame.
11057 (Fmake_terminal_frame): Reuse the_only_display_info.
11058
11059 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11060 estimating available memory.
11061
b97439ce 110622008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11063
11064 * nsterm.m (ns_draw_window_cursor): Don't call
11065 NSDisableScreenUpdates and NSEnableScreenUpdates on
11066 non-NS_IMPL_COCOA systems.
11067
110682008-08-23 Andreas Schwab <schwab@suse.de>
11069
11070 * process.c (procfs_system_process_attributes): Fix use of
11071 uninitialized variables.
11072
110732008-08-23 Eli Zaretskii <eliz@gnu.org>
11074
11075 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11076
11077 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11078 calling tty-set-up-initial-frame-faces.
11079
b8ff72fa
SM
11080 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11081 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11082
11083 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11084 addition to output_termcap.
11085
11086 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11087
11088 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11089 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11090 highlight.
11091
11092 * process.c [!subprocesses]: Define QCname.
11093 (syms_of_process): Intern and staticpro it.
11094
11095 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11096 Adjust for changes in encoding/decoding routines.
11097 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11098 encode_coding and decode_coding.
11099
b8ff72fa 11100 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11101
11102 * dosfns.c: Include frame.h before termhooks.h.
11103 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11104 variable termscript.
11105
11106 * s/msdos.h (USER_FULL_NAME): Define.
11107 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11108
11109 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11110 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11111 pw->pw_gecos.
11112
11113 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11114 SELECTED_FRAME as additional (1st) argument.
11115 (tty_read_avail_input): Handle output_msdos_raw in
11116 addition to output_termcap.
11117
11118 * msdos.c: Include frame.h before termhooks.h.
11119 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11120 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11121 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11122 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11123 (IT_set_terminal_modes, IT_reset_terminal_modes)
11124 (IT_set_frame_parameters): Use tty->termscript instead of a global
11125 variable termscript.
11126 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11127 global variable terminal_coding. Don't refer to
11128 Vnonascii_translation_table.
11129 (internal_terminal_init): Set Vwindow_system in current_kboard.
11130 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11131 Announce date and time of session start, if termscript is open.
11132 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11133 term.c:init_tty). Open termscript only of not already open.
11134 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11135 here instead of dos_ttraw. Don't initialize display if this is an
11136 initial tty. Don't set FRAME_FONT.
11137 (Vwindow_system_version): Bump to 23.
11138 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11139 is available, set up mouse_position_hook.
11140 (dos_ttraw, IT_set_terminal_modes): If called with initial
11141 terminal, do nothing.
11142 (IT_set_frame_parameters): Handle the Qtty_type frame
11143 parameter by calling internal_terminal_init.
11144 (dos_set_window_size, show_mouse_face)
11145 (clear_mouse_face, IT_note_mode_line_highlight)
11146 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11147 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11148 (initialize_msdos_display): New function.
11149 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11150 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11151 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11152 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11153 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11154 (request_sigio, unrequest_sigio): Don't define, now defined on
11155 sysdep.c.
11156 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11157
11158 * term.c [MSDOS]: Include msdos.h.
11159 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11160 conditional to DOS_NT. Allow only one call to this function in a
11161 session. Don't allocate a new struct tty_display_info; instead,
11162 reuse the_only_display_info. Call get_tty_size to get screen
11163 dimensions. Call init_baud_rate to set bad_rate.
11164 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11165 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11166 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11167 (get_tty_terminal, get_named_tty, Ftty_type)
11168 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11169 output_termcap.
b8ff72fa
SM
11170 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11171 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11172 only when subprocesses are supported.
aac0c6e3
MR
11173
11174 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11175 f->output_data.x.
11176 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11177 terminal devices.
11178
5582fbc7 11179 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11180 x_output.
11181 (FRAME_FONT): Use output_data.tty.
11182 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11183 (struct x_display_info): Rename from display_info. Update all users in
11184 msdos.c.
aac0c6e3 11185 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11186 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11187 (dos_ttraw): Update prototype.
11188
11189 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11190 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11191
111922008-08-23 Jason Rumney <jasonr@gnu.org>
11193
11194 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11195 (fn_TIFFSetDirectory): New library function used.
11196 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11197 (tiff_load): Use :index to select among multiple images. Set count
11198 property when multiple images exist.
11199 (gif_format): Use :index, not :image.
11200
112012008-08-23 Chong Yidong <cyd@stupidchicken.com>
11202
11203 * xdisp.c (try_scrolling): Check INT_MAX instead of
11204 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11205 to obtain INT_MAX.
11206
112072008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11208
11209 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11210
112112008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11212
11213 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11214 GNUstep library location.
11215
112162008-08-21 Chong Yidong <cyd@stupidchicken.com>
11217
11218 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11219 before using it.
11220
11221 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11222
112232008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11224
11225 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11226 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11227 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11228 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11229 (EmacsApp-cursor_blink_handler): Remove declaration.
11230 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11231 match 01 Feb 2008 changes in xterm.c.
11232 (ns_read_socket): Add cast to avoid warning.
11233 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11234 GNUstep.
11235
112362008-08-20 Chong Yidong <cyd@stupidchicken.com>
11237
11238 * xselect.c (x_get_foreign_selection): Return nil if desired
11239 selection could not be obtained, instead of signalling an error.
11240
112412008-08-20 David Reitter <david.reitter@gmail.com>
11242
11243 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11244 * nsterm.m: Remove ns-specific code for cursor blinking.
11245 (ns_draw_window_cursor): Clear cursor properly rather than
11246 redrawing the area. Respect width of bar cursors.
11247 These changes enable the use of generic blink-cursor-mode and
11248 generic cursor types in NS and support smooth cursor movements (do
11249 not blink off after command).
11250 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11251 Nextstep, too.
11252
112532008-08-19 Kenichi Handa <handa@m17n.org>
11254
11255 * font.c (Vfont_log_deferred): New variable.
11256 (font_add_log): Check Vfont_log_deferred.
11257 (font_deferred_log): New function.
11258
11259 * font.h (font_deferred_log): Extern it.
11260
11261 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11262 for sorting.
11263 (face_for_char): Use deferred log.
11264
112652008-08-18 Kenichi Handa <handa@m17n.org>
11266
11267 * fontset.c (face_for_char): Add font log.
11268
11269 * font.c (font_add_log): Add the font properties :script, :lang,
11270 and :otf in the log.
11271
112722008-08-17 Chong Yidong <cyd@stupidchicken.com>
11273
11274 * xdisp.c: Remove dead code.
11275 (handle_invisible_prop, next_overlay_string): Defer call to
11276 setup_for_ellipsis.
11277 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11278
112792008-08-15 Chong Yidong <cyd@stupidchicken.com>
11280
11281 * xfaces.c (lookup_derived_face): Properly handle possible zero
11282 return value of get_lface_attributes.
11283 (merge_faces): Don't tell lookup_derived_face to signal an error
11284 if face is not found.
11285
11286 * dired.c (Fdirectory_files): Doc fix.
11287
11288 * process.c (make_process): Initialize kill_without_query struct
11289 member.
11290
112912008-08-15 Eli Zaretskii <eliz@gnu.org>
11292
11293 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11294 Alternative calculation of totphys for Visual Studio 6.
11295
11296 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11297
11298 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11299 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11300 All users changed.
11301 (stat): Only root directory passed to GetDriveType. Allow RAM
11302 disk as well as local fixed disk when w32-get-true-file-attributes
11303 is set to `local'.
11304 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11305 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11306 (w32_cached_id, w32_add_to_cache): New functions.
11307 (get_name_and_id): Look account names in the cache before calling
11308 lookup_account_sid.
11309 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11310 New initialization flags.
11311 (globals_of_w32): Initialize them to zero.
11312 (w32_system_process_attributes): Use w32_cached_id and
11313 w32_add_to_cache.
11314
113152008-08-14 Lawrence Mitchell <wence@gmx.li>
11316
11317 * lread.c (Fread_char, Fread_char_exclusive): If no character
11318 event is read before timeout is reached, return nil, rather than
11319 converting to a number.
11320
113212008-08-14 Chong Yidong <cyd@stupidchicken.com>
11322
11323 * fns.c (use_dialog_box): Doc fix.
11324
11325 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11326 on OS X.
11327
113282008-08-13 Chong Yidong <cyd@stupidchicken.com>
11329
11330 * frame.c (Qns_parse_geometry): New var.
11331 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11332
113332008-08-11 Chong Yidong <cyd@stupidchicken.com>
11334
11335 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11336 space character in calculating tabs.
11337
113382008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11339
11340 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11341
113422008-08-10 Glenn Morris <rgm@gnu.org>
11343
11344 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11345 silence gcc "limited range of data type" warnings in some
11346 make_fixnum_or_float calls.
11347
113482008-08-09 Eli Zaretskii <eliz@gnu.org>
11349
11350 * w32.c (w32_system_process_attributes): If the process does not
11351 exist, return nil.
11352
11353 * w32.c: Include thelp32.h, psapi.h and coding.h.
11354 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11355 declarations.
11356 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11357 (Process32Next_Proc): New typedefs.
11358 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11359 (g_b_init_process32_next, g_b_init_open_thread_token)
11360 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11361 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11362 (g_b_init_get_process_working_set_size)
11363 (g_b_init_global_memory_status_ex): New static variables.
11364 (globals_of_w32): Initialize them.
11365 (create_toolhelp32_snapshot, process32_first, process32_next)
11366 (open_thread_token, impersonate_self, revert_to_self)
11367 (get_process_memory_info, get_process_working_set_size)
11368 (global_memory_status, global_memory_status_ex): New wrapper
11369 functions.
11370 (w32_list_system_processes, w32_system_process_attributes)
11371 (enable_privilege, restore_privilege, ltime, process_times):
11372 New functions.
11373 (convert_time_raw): New function.
11374 (convert_time): Remove conversion of FILETIME into time in 100
11375 nsec units, call convert_time_raw instead.
11376
11377 * process.h (w32_list_system_processes, w32_system_process_attributes):
11378 Add prototypes.
11379 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11380 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11381 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11382 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11383
11384 * process.c (Fsystem_process_attributes): Doc fix.
11385
113862008-08-08 Chong Yidong <cyd@stupidchicken.com>
11387
11388 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11389 a continued multi-char glyph; if so, advance to the actual glyph.
11390
113912008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11392
11393 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11394
11395 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11396 (.m.o): Use it.
11397 * config.in: Regenerate.
11398
113992008-08-07 Chong Yidong <cyd@stupidchicken.com>
11400
11401 * xdisp.c (redisplay_window): Revert last change.
11402 (try_window): Check bottom scroll margin too.
11403
114042008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11405
11406 * config.in: Regenerate.
11407
11408 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11409 -list-load-path-shadows'.
11410 (nsgui.h): Reduce number of things depending on it.
11411
114122008-08-06 Chong Yidong <cyd@stupidchicken.com>
11413
11414 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11415 instead of window-end which does the wrong thing at eob.
11416 (try_cursor_movement): Minor optimization.
11417 (redisplay_window): If scroll margin is defined, don't assume
11418 window doesn't need scrolling.
11419
114202008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11421
11422 * config.in: Regenerate.
11423
11424 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11425 (mostlyclean): Don't delete *.d under NS.
11426
11427 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11428
114292008-08-06 Kenichi Handa <handa@m17n.org>
11430
11431 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11432
114332008-08-06 Andreas Schwab <schwab@suse.de>
11434
11435 * config.in: Regenerate.
11436
114372008-08-05 Chong Yidong <cyd@stupidchicken.com>
11438
11439 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11440 forcing a window start.
11441
11442 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11443 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11444
114452008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11446
11447 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11448 argument.
11449
114502008-08-05 Juanma Barranquero <lekktu@gmail.com>
11451
11452 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11453 <scroll-down-aggressively, before-change-functions>:
11454 <after-change-functions>: Reflow docstrings.
11455
114562008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11457 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11458
11459 Dock menu customization, based on a patch by Ken Raeburn, plus some
11460 other fixes.
11461 * nsmenu.m (dockMenu): New variable.
11462 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11463
11464 * nsterm.h (dockMenu): Declare.
11465
11466 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11467 (ns_term_init): Initialize dockMenu.
11468 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11469 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11470 left.
11471
11472 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11473
114742008-08-04 Chong Yidong <cyd@stupidchicken.com>
11475
11476 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11477
11478 * config.in: Regenerate.
11479
114802008-08-04 Seiji Zenitani <zenitani@mac.com>
11481
11482 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11483
114842008-08-04 Chong Yidong <cyd@stupidchicken.com>
11485
11486 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11487
114882008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11489
11490 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11491
11492 * keyboard.h: Comment an #endif.
11493
11494 * lisp.h (have_menus_p): Adjust comment.
11495
11496 * menu.c (find_and_return_menu_selection): Fix comparison with
11497 client_data.
11498
11499 * nsmenu.m (popup_activated_flag): New variable.
11500 (popup_activated): New function.
11501 (menu-or-popup-active-p): New exported lisp definition.
11502 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11503 when popup done.
11504 (ns_popup_dialog): Set popup_activated_flag.
11505
11506 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11507 version for GNUstep (handled by conditional typedef in nsterm.m).
11508 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11509 in rgb.txt).
11510
11511 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11512
11513 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11514
11515 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11516
11517 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11518 shortcircuit if popup_activated like GTK and X toolkit.
11519
11520 * m/inter386.h: Change DARWIN to DARWIN_OS.
11521
11522 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11523 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11524 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11525 comment on NO_SOCK_SIGIO.
11526
115272008-08-03 Chong Yidong <cyd@stupidchicken.com>
11528
11529 * nsterm.m (windowDidResize): Remove stopModal call.
11530
115312008-08-03 Andreas Schwab <schwab@suse.de>
11532
11533 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11534 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11535
115362008-08-02 Chong Yidong <cyd@stupidchicken.com>
11537
11538 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11539 Don't use uninitialized pointer variable when using getrlimit.
11540
115412008-08-02 Jason Rumney <jasonr@gnu.org>
11542
11543 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11544
115452008-08-02 Eli Zaretskii <eliz@gnu.org>
11546
11547 * alloc.c (NSTATICS): Bump to 0x640.
11548
11549 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11550
11551 * lisp.h: Add prototype for directory_files_internal.
11552
11553 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11554 New functions.
11555 (syms_of_process): Defsubr them. Add initializations for various
11556 Q* symbols used in procfs_system_process_attributes.
11557 (procfs_list_system_processes, procfs_system_process_attributes)
11558 [HAVE_PROCFS]: New functions.
11559 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11560 (procfs_get_total_memory): New functions.
11561
115622008-08-01 Juanma Barranquero <lekktu@gmail.com>
11563
11564 * xfaces.c (Fx_load_color_file): Fix previous change;
11565 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11566
115672008-08-01 Michael Albinus <michael.albinus@gmx.de>
11568
11569 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11570
115712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11572
11573 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11574
115752008-08-01 Chong Yidong <cyd@stupidchicken.com>
11576
11577 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11578
11579 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11580 define NSApplicationDelegateReplySuccess.
11581 (EmacsView -converstationIdentifier): Use long instead of
11582 NSInteger for GNUstep, since it doesn't have NSInteger.
11583
11584 * xmenu.c: Revert last change.
11585
11586 * keyboard.h: Fix last change.
11587
115882008-08-01 Juanma Barranquero <lekktu@gmail.com>
11589
11590 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11591 on Windows.
11592
115932008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11594
11595 Warning clearing and clean-up in NS port.
11596 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11597 Add prototypes.
11598 * nsgui.h (FACE_DEFAULT): Remove, unused.
11599 (XGCValues): Change colors to unsigned long.
11600 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11601 nsterm.m.
11602 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11603 (ns_list_fonts): Remove, unused.
11604 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11605 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11606 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11607 (nsfont_draw): Compare face colors to 0, not nil.
11608 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11609 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11610 (-addSubmenuWithTitle:): Use NSMenuItem class.
11611 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11612 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11613 (ns_clip_to_row): Make gc arg a BOOL.
11614 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11615 ns_clip_to_row() call.
11616 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11617 used). Cast FRAME_FONT assignments.
11618 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11619 (ns_string_to_lispmod): Change arg to const char.
11620 (ns_term_init): Use NSMenuItem class.
11621 (EmacsApp -openFile:): Move to different section of file.
11622 (EmacsApp -application:openFiles:): Don't return a value, call
11623 -replyToOpenOrPrint:.
11624 (EmacsView -keyDown:): Fix up cast.
11625 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11626 (EmacsView -menuDown:): Cast tag in call to
11627 find_and_call_menu_selection().
11628 (ns_list_fonts): Remove, unused.
11629 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11630 (ns_fontname_to_xlfd): Make static.
11631 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11632 Remove prototypes (now in keyboard.h).
11633 (next_menubar_widget_id): Remove, unused.
11634 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11635 Remove prototypes (now in keyboard.h).
11636 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11637
116382008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11639
11640 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11641 (floatfns.o): Depend on syssignal.h.
11642 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11643
11644 * systty.h: Fix previous change that removed BSD_TERMIOS.
11645 Add comments to #ifdefs.
11646
116472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11648
11649 * w32fns.c (w32-load-color-file): Remove.
11650 (x-open-connection): Use renamed Fx_load_color_file.
11651 * xfaces.c (x-load-color-file): Add.
11652 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11653 Emacs.clr.
11654 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11655
116562008-07-31 Michael Albinus <michael.albinus@gmx.de>
11657
11658 * dbusbind.c (Fdbus_call_method_asynchronously)
11659 (Fdbus_method_error_internal): New defuns.
11660 (xd_read_message): Handle also reply messages.
11661 (Vdbus_registered_functions_table): Extend docstring.
11662
116632008-07-31 Juanma Barranquero <lekktu@gmail.com>
11664
11665 * keyboard.c (gobble_input): Fix previous change.
11666
116672008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11668
11669 * bitmaps/README:
11670 * xfns.c:
11671 * termcap.c:
11672 * term.c:
11673 * syswait.h:
11674 * systty.h:
11675 * systime.h:
11676 * syssignal.h:
11677 * sysdep.c:
11678 * process.h:
11679 * process.c:
11680 * print.c:
11681 * ndir.h:
11682 * lread.c:
11683 * keyboard.c:
11684 * getpagesize.h:
11685 * floatfns.c:
11686 * fileio.c:
11687 * emacs.c:
11688 * doc.c:
11689 * dispnew.c:
11690 * dired.c:
11691 * data.c:
11692 * callproc.c:
11693 * buffer.c:
11694 * README:
11695 * Makefile.in:
11696 * s/template.h:
11697 * s/msdos.h:
11698 * m/vax.h: Remove VMS support.
11699 * s/vms.h:
11700 * vlimit.h:
11701 * uaf.h:
11702 * temacs.opt:
11703 * param.h:
11704 * ioctl.h: Remove file.
11705
117062008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11707
11708 * s/ms-w32.h (MULTI_KBOARD): Remove.
11709 * xterm.c:
11710 * xselect.c:
11711 * xfns.c:
11712 * window.c:
11713 * w32term.c:
11714 * w32fns.c:
11715 * terminal.c:
11716 * termhooks.h:
11717 * term.c:
11718 * sysdep.c:
11719 * keyboard.h:
11720 * keyboard.c:
11721 * frame.h:
11722 * frame.c:
11723 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11724 * config.in: Regenerate.
11725
117262008-07-30 Jason Rumney <jasonr@gnu.org>
11727
11728 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11729
11730 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11731 (w32font_open_internal): Get unicode version of textmetrics.
11732 Don't enable or disable glyph indices here.
11733 (w32font_open): Disable use of glyph indices.
11734
11735 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11736
117372008-07-30 Chong Yidong <cyd@stupidchicken.com>
11738
11739 * minibuf.c (Vread_buffer_function): Doc fix.
11740
117412008-07-30 John Paul Wallington <jpw@pobox.com>
11742
11743 * minibuf.c (read_buffer_completion_ignore_case): New var.
11744 (Fread_buffer): Use it.
11745
117462008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11747
11748 * systty.h (sensemode): Remove empty #if. Remove reference to
11749 BSD_TERMIOS, unused.
11750
11751 * sysdep.c: Remove reference to DGUX.
11752 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11753
11754 * config.in: Regenerate.
11755
117562008-07-30 Jason Rumney <jasonr@gnu.org>
11757
11758 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11759
117602008-07-29 Jason Rumney <jasonr@gnu.org>
11761
11762 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11763 is populated.
11764 (uniscribe_encode_char): Always use uniscribe.
11765 Avoid using context if cache is populated.
11766
117672008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11768
11769 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11770 open menu.
11771
11772 * gtkutil.c (menu_nav_ended): Remove.
11773 (create_menus): Remove signal connect for menu_nav_ended.
11774
117752008-07-28 Chong Yidong <cyd@stupidchicken.com>
11776
11777 * xdisp.c (redisplay_window): Check return value of
11778 compute_window_start_on_continuation_line before forcing a window
11779 start.
11780
117812008-07-28 Jason Rumney <jasonr@gnu.org>
11782
11783 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11784
11785 * w32term.c (w32_enable_unicode_output, cleartype_active):
11786 Remove obsolete display options.
11787 (x_draw_glyph_string_background): Don't use old cleartype_active
11788 workaround.
11789 (w32_initialize): Remove cleartype_active initialization.
11790 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11791
117922008-07-28 Andreas Schwab <schwab@suse.de>
11793
11794 * lisp.h (init_weak_hash_tables, syms_of_font)
11795 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11796 (remove_hash_entry): Don't declare.
11797 * eval.c (maybe_call_debugger): Make static and move before use.
11798 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11799 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11800 * xterm.h (x_set_frame_alpha): Declare.
11801
118022008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11803
11804 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11805 (create_menus): Connect selection-done to menu_nav_ended.
11806
118072008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11808
11809 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11810 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11811 parameter with read of 'alpha' one.
11812 (Qns_frame_parameter): Remove.
5582fbc7 11813 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11814 (next-selection-coding-system, Vselection_coding_system)
11815 (Vnext_selection_coding_system): Drop.
11816
118172008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11818
11819 * nsfns.m (do-applescript, do_applescript): Rename to
11820 ns-do-applescript, ns_do_applescript, and move within file.
11821
118222008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11823
11824 Remove support for Mac Carbon.
11825 * mactoolbox.c:
11826 * macterm.h:
11827 * macterm.c:
11828 * macselect.c:
11829 * macmenu.c:
11830 * macgui.h:
11831 * macfns.c:
11832 * mac.c: Remove file.
11833 * s/darwin.h:
11834 * m/intel386.h:
11835 * xfaces.c:
11836 * xdisp.c:
11837 * window.c:
11838 * tparam.c:
11839 * termhooks.h:
11840 * termcap.c:
11841 * term.c:
11842 * syssignal.h:
11843 * sysselect.h:
11844 * sysdep.c:
11845 * process.c:
11846 * lread.c:
11847 * lisp.h:
11848 * keyboard.c:
11849 * image.c:
11850 * fringe.c:
11851 * frame.h:
11852 * frame.c:
11853 * fontset.c:
11854 * font.h:
11855 * font.c:
11856 * fns.c:
11857 * fileio.c:
11858 * emacs.c:
11859 * dispnew.c:
11860 * dispextern.h:
11861 * config.in:
11862 * atimer.c:
2ae37cf0 11863 * Makefile.in: Remove code for Carbon.
aac0c6e3 11864
f0131492 118652008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11866
11867 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11868
118692008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11870
11871 * macterm.h (kCGBitmapByteOrder32Host): New define for
11872 non-universal SDKs.
11873
11874 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11875 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11876
11877 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11878 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11879
118802008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11881
11882 * w32inevt.c: Include dispextern.h.
11883
118842008-07-26 Andreas Schwab <schwab@suse.de>
11885
11886 * print.c (print_object): Fix off-by-one in last change.
11887
118882008-07-25 Juanma Barranquero <lekktu@gmail.com>
11889
11890 * term.c (syms_of_term): Don't initialize default_orig_pair,
11891 default_set_foreground and default_set_background on Windows.
11892
118932008-07-25 Jason Rumney <jasonr@gnu.org>
11894
11895 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11896 ScriptItemize. Clean up return value checking. Remove unused
11897 variables.
11898 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11899 shaping engine.
11900
11901 * w32font.c (w32font_has_char): Handle the case where we can't
11902 determine the script for a character.
11903
119042008-07-25 Chong Yidong <cyd@stupidchicken.com>
11905
11906 * term.c (syms_of_term): Initialize default_orig_pair,
11907 default_set_foreground, and default_set_background.
11908
11909 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11910 clash (bug#86).
11911 (getloadavg): Callers changed.
11912
11913 * image.c (svg_load_image): Fix last change.
11914 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11915 image size is valid. Use g_object_unref instead of deprecated
11916 rsvg_handle_free to free rsvg handle.
11917 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11918
119192008-07-25 Jason Rumney <jasonr@gnu.org>
11920
11921 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11922 surrogates before looking up glyph index.
11923 (w32font_text_extents): Encode as surrogates if falling back to
11924 functions that need UTF-16 wide chars.
11925
11926 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11927 BMP as surrogates before looking up glyph index.
11928
119292008-07-25 Chong Yidong <cyd@stupidchicken.com>
11930
11931 * image.c (svg_load_image): Check for failure in return value of
11932 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11933
119342008-07-25 Jason Rumney <jasonr@gnu.org>
11935
11936 * w32font.c (Fx_select_font): Reverse sense of second arg.
11937
119382008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11941 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11942
11943 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11944 (PURESIZE): Use it.
11945
119462008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11947
11948 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11949 * m/alpha.h (TEXT_END):
11950 * m/ibmrs6000.h (TEXT_END):
11951 * m/macppc.h (TEXT_END):
11952 * s/darwin.h (TEXT_END):
11953 * s/msdos.h (TEXT_END): Remove, unused.
11954 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11955 * s/cygwin.h: Remove comment.
11956
11957 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11958 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11959 * m/intel386.h (DOT_GLOBAL_START):
11960 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11961 (USG): Remove, file not used on USG platforms.
11962
11963 * Makefile.in (HAVE_X11): Remove empty #else.
11964
119652008-07-24 Andreas Schwab <schwab@suse.de>
11966
11967 * fileio.c (Finsert_file_contents): Properly adjust undo list
11968 after format conversion.
11969
119702008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11971
11972 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11973 (menu_nav_ended): Remove.
11974 (create_menus): Remove signal connect for menu_nav_ended.
11975 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11976 create_menus.
11977 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11978
119792008-07-23 Jason Rumney <jasonr@gnu.org>
11980
11981 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11982 with opened font.
11983 (w32font_open): Set font type to gdi.
11984
11985 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11986
119872008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11988
11989 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11990 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11991 defines it.
11992 * unexec.c (ADDR_CORRECT): Define unconditionally.
11993
11994 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11995
11996 * unexec.c: Remove code depending on !COFF and USG, the file is
11997 not used for such systems.
11998
11999 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12000 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12001 (LD_SWITCH_SYSTEM_1): Remove, update users.
12002
12003 * s/darwin.h (DATA_END):
12004 * m/intel386.h (DATA_END):
12005 * m/ibmrs6000.h (DATA_END):
12006 * m/alpha.h (DATA_END): Remove, unused.
12007
12008 * config.in: Regenerate.
12009 * s/ms-w32.h (subprocesses): Define unconditionally.
12010 * s/template.h (subprocesses): Update comment.
12011 * s/vms.h (subprocesses):
12012 * s/usg5-4.h (subprocesses):
12013 * s/hpux10-20.h (subprocesses):
12014 * s/gnu-linux.h (subprocesses):
12015 * s/cygwin.h (subprocesses):
12016 * s/bsd-common.h (subprocesses):
12017 * s/aix4-2.h (subprocesses):
12018 * s/darwin.h (subprocesses): Do not define, defined by default now.
12019
12020 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12021 Remove all references.
12022 (temacs): Add GNUstep specific ld flags.
12023
12024 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12025 similarly to what X does.
12026
120272008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12028
12029 * nsfns.m (x-list-fonts): Remove.
12030 (syms_of_nsfns): Drop the x-list-fonts declaration.
12031 * nsterm.m: Get rid of remaining "//" comments.
12032
120332008-07-22 Chong Yidong <cyd@stupidchicken.com>
12034
12035 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12036
12037 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12038 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12039 (Fns_own_selection_internal, Fx_disown_selection_internal)
12040 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12041
12042 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12043 ... */' style of docstrings. Doc fixes.
12044
120452008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12046
12047 * terminfo.c (UP, BC, PC): Undo previous change.
12048
12049 * nsfns.m: Rename ns prefixed functions/variables to the
12050 corresponding x versions. Update references.
12051
120522008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12053
12054 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12055
120562008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12057
12058 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12059 Remove forwarding functions.
12060 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12061 non-static.
12062 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12063 non-static.
12064 (ns_frame_parm_handlers): Use the new names.
12065 (syms_of_nsfns): Move to the end of file.
12066
12067 * nsterm.m (syms_of_nsterm): Move to the end of file.
12068
12069 * dispnew.c (init_display): Remove code for X10.
12070
120712008-07-22 Jason Rumney <jasonr@gnu.org>
12072
12073 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12074 bare drive.
12075
120762008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12077
12078 * nsterm.m (syms_of_nsterm): Remove debugging println.
12079
120802008-07-22 David Reitter <david.reitter@gmail.com>
12081
12082 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12083 Carbon implementation of the same functionality: execute arbitrary
12084 AppleScript code.
12085
120862008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12087
12088 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12089 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12090 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12091 (Fx_display_mm_height, Fx_display_mm_width)
12092 (Fx_display_backing_store, Fx_display_visual_class)
12093 (Fx_display_save_under, Fx_open_connection)
12094 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12095 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12096 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12097 (Fx_display_pixel_width, Fx_display_pixel_height)
12098 (Fx_display_usable_bounds, Fx_display_planes)
12099 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12100 ... */' style of docstrings.
12101
121022008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12103
12104 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12105 on this platform.
12106 (mips):
12107 * m/iris4d.h (mips): Do not define.
12108 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12109
12110 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12111
12112 * image.c:
12113 * nsfns.m:
12114 * nsselect.m:
12115 * nsterm.h:
12116 * nsterm.m: Rename ns prefixed functions/variables to the
12117 corresponding x versions. Update references.
12118
12119 * m/ibms390x.h (NO_REMAP): Do not undefine.
12120
12121 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12122
121232008-07-21 Chong Yidong <cyd@stupidchicken.com>
12124
12125 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12126 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12127 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12128 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12129 (Fns_display_mm_height, Fns_display_mm_width)
12130 (Fns_display_backing_store, Fns_display_visual_class)
12131 (Fns_display_save_under, Fns_open_connection)
12132 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12133 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12134 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12135 (Fns_display_pixel_width, Fns_display_pixel_height)
12136 (Fns_display_usable_bounds, Fx_display_planes)
12137 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12138
121392008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12140
12141 * print.c (print_object): Check print_depth before searching for
12142 circularities.
12143
121442008-07-21 Michael Albinus <michael.albinus@gmx.de>
12145
12146 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12147 only sprintf.
12148
121492008-07-21 Kenichi Handa <handa@m17n.org>
12150
12151 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12152
121532008-07-20 Andreas Schwab <schwab@suse.de>
12154
12155 * syntax.c (find_start_pos, find_start_value)
12156 (find_start_value_byte, find_start_begv, find_defun_start)
12157 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12158
121592008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12160
12161 * s/sol2-3.h: Insert contents of s/sol2.h.
12162 (LD_SWITCH_SYSTEM): Remove redundant definition.
12163 * s/sol2.h: Remove, unused.
12164
121652008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12166
12167 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12168
121692008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12170
12171 * Makefile.in (ns_appdir): Fix typo in find command.
12172
121732008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12174
12175 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12176
12177 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12178 added not supported anymore.
12179
12180 * s/usg5-4-2.h (LIBS_SYSTEM):
12181 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12182
12183 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12184 * s/lynxos.h (GETPGRP_NO_ARG):
12185 * s/hpux10-20.h (NO_SIOCTL_H):
12186 * s/gnu.h (GETPGRP_NO_ARG):
12187 * s/gnu-linux.h (NO_SIOCTL_H):
12188 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12189 * s/cygwin.h (GETPGRP_NO_ARG):
12190 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12191 (C_DEBUG_SWITCH): Remove duplicate definition.
12192
12193 * m/ibms390.h: Remove boilerplate comments.
12194
12195 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12196
12197 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12198 (wait_reading_process_output): Remove code for SunOS, platform not
12199 supported anymore. Use SOLARIS2 instead of sun.
12200
122012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12202
12203 * font.c (font_open_by_name): Under NS, default lface height to zero.
12204 (font_open_for_lface): Under NS, set size based on frame fontsize.
12205 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12206 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12207
122082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12209
12210 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12211 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12212 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12213 YES/NO.
12214 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12215 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12216 * Makefile.in (clean): Clear out build destination dir.
12217
122182008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12219
12220 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12221 xterm, xselect.
12222 * lisp.h: Remove declaration of hash_remove.
12223 * nsgui.h: Remove redefinitions of hash_remove.
12224 * fns.c (hash_remove): Rename to hash_remove_from_table.
12225
122262008-07-19 Seiji Zenitani <zenitani@mac.com>
12227
12228 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12229 strdup() the family UTF8String before modifying it.
12230
122312008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12232
12233 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12234 NS_FACE_BACKGROUND with 0 instead of nil.
12235 * nsfont.m (nsfont_draw): Same.
12236
122372008-07-19 Chong Yidong <cyd@stupidchicken.com>
12238
12239 * nsfns.m (ns_set_background_color): Fix crash.
12240
122412008-07-18 Chong Yidong <cyd@stupidchicken.com>
12242
12243 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12244
122452008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12246
12247 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12248
122492008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12250
12251 * gtkutil.c: Include <config.h> instead of "config.h".
12252
12253 * lisp.h (Foverlay_buffer): Add EXFUN.
12254
12255 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12256 child process to complete child_setup. Undo 2005-09-21 change.
12257
12258 * s/darwin.h: Mention setsid after vfork.
12259
122602008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12261
12262 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12263 Depend on macgui.h.
12264
12265 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12266 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12267
12268 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12269 and f19.
12270 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12271
12272 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12273 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12274 Remove enumerators.
12275
12276 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12277 Check if FACE_FROM_ID returns NULL.
12278
122792008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12280
12281 * w32inevt.c (change_frame_size): Remove extern declaration.
12282 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12283 change_frame_size.
12284
122852008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12286
12287 * getloadavg.c: Revert last change (2008-07-15).
12288
122892008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12290
12291 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12292 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12293 from configure.
12294
122952008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12296
12297 * s/sol2.h:
12298 * s/sol2-4.h: Reorganize conditionals.
12299
12300 * ecrt0.c: Remove code depending on m68000, not used anymore.
12301
12302 * fns.c (hash_remove): Make static.
12303 * lisp.h (hash_remove): Don't prototype.
12304
12305 * m/ibmrs6000.h:
12306 * m/ibms390x.h:
12307 * m/macppc.h: Remove boilerplate comments.
12308
12309 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12310 Solaris, which does not need them.
12311
12312 * m/vax.h: Remove comments about unsupported systems.
12313
12314 * s/darwin.h: Reorganize ifdefs.
12315
123162008-07-17 Andreas Schwab <schwab@suse.de>
12317
12318 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12319
123202008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12321
12322 Use SDATA. Follow coding convention of placing operators at
12323 beginning of next line rather than end of previous line, and placing
12324 spaces around infix operators.
12325
12326 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12327 in case it was defined already.
12328 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12329 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12330 ns_default.
12331 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12332 Lisp_Objects.
12333 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12334 (ns_defined_color, ns_color_to_lisp): Declare.
12335 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12336 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12337 it's accepted even with USE_LISP_UNION_TYPE.
12338 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12339 (update_frame_tool_bar): Remove apparently obsolete tests for
12340 non-integerness of f->tool_bar_lines.
12341 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12342 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12343 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12344 (nsfont_open): Don't confuse NULL for Qnil.
12345 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12346 * menu.h (find_and_call_menu_selection):
12347 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12348 (find_and_return_menu_selection): Always return something.
12349 * frame.h: Include dispextern.h for Display_Info.
12350 (display_x_get_resource): Declare.
12351
123522008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12353
12354 * syntax.c: Remove stdio.h include accidentally introduced in
12355 Emacs.app commit.
12356 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12357 NS_IMPL_COCOA.
12358 * keyboard.c (handle_async_input, input_available_signal): Remove
12359 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12360
123612008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12362
12363 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12364 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12365 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12366 Use SDATA.
12367
12368 * keymap.c: Remove all NS-specific code.
12369 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12370 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12371 where_is_preferred_modifier, return a different value depending on how
12372 preferred is the binding.
12373 (where_is_internal): Adjust accordingly.
12374 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12375 Adjust to new preferred_sequence_p.
12376 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12377 * keyboard.c (parse_solitary_modifier): Not static any more.
12378 * keyboard.h (parse_solitary_modifier): Declare.
12379
123802008-07-16 Andreas Schwab <schwab@suse.de>
12381
12382 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12383 of easymenu.
12384
123852008-07-16 Chong Yidong <cyd@stupidchicken.com>
12386
12387 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12388 that we don't move off the line.
12389
123902008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12391
12392 * keyboard.c (Qsuper): Remove.
12393 (parse_menu_item): Don't call where_is_internal specially for NS.
12394
123952008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12396
12397 * s/gnu-linux.h: Remove boilerplate comments.
12398
12399 * m/alpha.h (__ELF__): Consolidate conditions.
12400
12401 * m/m68k.h (linux): Use GNU_LINUX instead.
12402 Remove boilerplate comments.
12403
12404 * m/intel386.h: Undo refactoring from previous change.
12405 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12406 too, remove dead code.
12407 (linux): Use GNU_LINUX instead.
12408
124092008-07-16 Jason Rumney <jasonr@gnu.org>
12410
12411 * w32gui.h: Repeat 26 June changes lost by last change.
12412
124132008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12414
12415 * systty.h: Remove code for Aix on 386, unsupported platform.
12416
12417 * s/ms-w32.h: Remove boilerplate comments.
12418 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12419
12420 * s/gnu-linux.h (TERM): Remove support.
12421 (HAVE_SYSVIPC): Remove, unused.
12422 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12423 for this system.
12424
12425 * process.c: Remove support for IRIS, unused.
12426 Remove support for TERM, not relevant anymore.
12427
12428 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12429 used with the definition.
12430
12431 * s/aix4-2.h (static): Do not undef.
12432
12433 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12434 only used on Aix.
12435 (HAVE_SYSVIPC): Remove, unused.
12436
12437 * m/hp800.h (CANNOT_DUMP): Do not undef.
12438
12439 * m/alpha.h: Fix comment.
12440
12441 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12442 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12443 used by this configuration.
12444 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12445 * unexec.c: Remove code depending on HPUX and
12446 USG_SHARED_LIBRARIES, not used with this file. Remove code
12447 depending on IRIS, unused. Remove if 0-ed code.
12448
12449 * s/template.h: Remove comments about static.
12450
12451 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12452 Remove if 0-ed code.
12453 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12454 were the same as the default.
12455 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12456 Remove boilerplate comments.
12457 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12458 (HAVE_SYSVIPC): Remove, unused.
12459 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12460
12461 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12462 Remove boilerplate comments.
12463 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12464 Remove boilerplate comments.
12465 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12466 Remove boilerplate comments.
12467 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12468
12469 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12470 USG systems which do not use DATA_SEG_BITS.
12471 Refactor code. Remove boilerplate comments.
12472
12473 * m/ibms390.h:
12474 * m/m68k.h:
12475 * s/bsd-common.h:
12476 * s/cygwin.h:
12477 * s/darwin.h:
12478 * s/freebsd.h:
12479 * s/gnu.h:
12480 * s/msdos.h: Remove boilerplate comments.
12481
12482 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12483 do not use this file.
aac0c6e3
MR
12484 (IRIS_4D): Remove, unused.
12485
12486 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12487 do not use this file.
aac0c6e3
MR
12488 (SIGN_EXTEND_CHAR):
12489 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12490 * unexmips.c: Remove file, unused.
12491
12492 * editfns.c (Fuser_full_name): Replace the only use of
12493 USER_FULL_NAME with its value.
12494 * config.in: Regenerate.
12495
124962008-07-16 David Reitter <david.reitter@gmail.com>
12497
12498 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12499 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12500
125012008-07-16 Glenn Morris <rgm@gnu.org>
12502
12503 * emacs.c (system-type): Doc fix.
12504
125052008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12506
12507 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12508 If the cache doesn't work, let's fix it, rather than work around it.
12509
125102008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12511
12512 * Makefile.in: Correct additions for nsfont.o in last commit.
12513 * nsfont.m: New file (forgot last commit).
12514
125152008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12516
12517 * callproc.c (set_initial_environment): Initialize
12518 Vprocess_environment under CANNOT_DUMP (fixes crash when
12519 batch-compiling for bootstrap).
12520
125212008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12522 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12523
c4cc8b9a
JB
12524 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12525 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12526
125272008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12528
12529 Changes and additions for NeXTstep windowing system (Cocoa and
12530 GNUstep) support.
12531
12532 * Makefile.in:
12533 * config.in: Support defines and build commands for NS port.
12534 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12535 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12536 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12537 windowing.
12538 (struct face): Add synth_ital field.
12539 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12540 (init_display): Initialize Vinitial_window_system to "ns" when so
12541 compiled.
12542 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12543 (display_arg): Use under NS.
12544 (main): Under NS, allocate autorelease pool and handle command line
12545 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12546 (standard_args): Add NS-specific args.
12547 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12548 * font.c (DEFAULT_ENCODING): New variable.
12549 (font_find_for_lface): Use it.
12550 (syms_of_font): Load syms_of_nsfont under NS.
12551 * font.h: Declare nsfont_driver when compiled under NS.
12552 * fontset.c: When compiling under NS, include nsterm.h.
12553 (fontset_from_font): Autoconstruct fontset under NS.
12554 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12555 symbol, document and use it.
12556 (do_switch_frame): When for_deletion under Cocoa, add
12557 Fraise_frame(Qnil).
12558 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12559 (x_get_arg): Allow "yes" and "no" as boolean values.
12560 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12561 Qright under Cocoa.
12562 (focus-follows-mouse): Default to 0 under NS.
12563 * frame.h (enum output_method): Add output_ns.
12564 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12565 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12566 (FRAME_WINDOW_P): NS-specific definition.
12567 * fringe.c (max_used_fringe_bitmap): Make public.
12568 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12569 (getloadavg): Use NeXT code under descendant OS's.
12570 * image.c (includes and header section, x_create_bitmap_from_data)
12571 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12572 (image_background_transparent, x_clear_image_1)
12573 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12574 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12575 (x_to_xcolors, x_from_xcolors, x_disable_image)
12576 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12577 other GUIs, including XPM support using code originally written for
12578 Carbon GUI.
12579 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12580 using NS API.
12581 (image_ascent): Use font metrics macros instead of direct struct field
12582 access.
12583 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12584 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12585 Also, handle NS as GTK for menu bar purposes.
12586 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12587 toolkit where they differ.
12588 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12589 use cachelist, still needed under NS.
12590 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12591 (struct widget_value): Define it here for menu.c.
12592 * keymap.c (includes): Include modifier internals.
12593 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12594 NS.
12595 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12596 support for preferring sequences using certain modifiers, specified by
12597 the FIRSTONLY argument.
12598 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12599 under NS GNUstep implementation.
12600 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12601 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12602 * menu.c: Include nsterm.h under NS.
12603 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12604 (free_menubar_widget_tree_value, update_submenu_strings)
12605 (find_and_call_menu_selection): Treat NS as X and NT.
12606 (find_and_return_menu_selection): New function, used for popup menus.
12607 * nsgui.h:
12608 * nsterm.h:
12609 * nsfns.m:
12610 * nsimage.m:
12611 * nsmenu.m:
12612 * nsselect.m:
12613 * nsterm.m: New files.
12614 * process.c (wait_reading_process_output): Under NS, call ns_select()
12615 instead of plain select().
12616 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12617 beginning of buffer.
12618 * sysselect.h (init_process): Rename when compiling under Cocoa to
12619 avoid name conflict.
12620 * termhooks.h (display_info): Add ns_display_info to union.
12621 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12622 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12623 COCOA environment.
12624 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12625 unexec() signature. (Note, this will dump, but the resulting file
12626 crashes; unexosx is used instead; keeping around for reference and
12627 possible aid in getting dump working under GNUstep.)
12628 * w32gui.h (button_type, widget_value): Remove definitions (now in
12629 keyboard.h).
12630 * window.c: Include nsterm.h when compiling under NS.
12631 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12632 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12633 other GUI windowing systems.
12634 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12635 GTK.
12636 (x_consider_frame_title): Under NS, set icon type and frame
12637 modified-state indicator; use ns_set_name_as_filename() when using
12638 formatted title.
12639 (update_window_cursor): Make public when compiling under NS.
12640 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12641 (hourglass_atimer, Vhourglass_delay
12642 * xfaces.c (header section, init_frame_faces, clear_font_table)
12643 (defined_color, unload_color, x_face_list_fonts)
12644 (prepare_face_for_display): Add NS support parallel to other GUIs.
12645 Emulate GCs like other non-X GUIs.
12646 (split_font_name): Don't lowercase font name under NS.
12647 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12648 under NS.
12649 * s/darwin.h: Add support for compilation under NS.
12650
126512008-07-15 Jason Rumney <jasonr@gnu.org>
12652
12653 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12654 (w32_show_hourglass): Rename from show_hourglass.
12655 (w32_hide_hourglass): Rename from hide_hourglass.
12656 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12657 (Vhourglass_delay): Declare extern.
12658 (hourglass_started): Remove.
12659
12660 * xdisp.c (Vhourglass_delay): Remove static.
12661 (hourglass_started, start_hourglass, cancel_hourglass):
12662 Don't include these versions on WINDOWSNT.
12663
126642008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12665
12666 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12667 variables (formerly in xfns.c).
12668 (show_hourglass, hide_hourglass): New prototypes (same).
12669 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12670 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12671 in xfns.c).
12672 (syms_of_xdisp): Declare/initialize display-hourglass,
12673 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12674 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12675 formerly in xfns.c.
12676 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12677 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12678 (start_hourglass, cancel_hourglass): Remove.
12679 (show_hourglass, hide_hourglass): Remove prototypes and static
12680 modifiers.
12681 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12682 hourglass_atimer, hourglass_shown_p declaration/initialization.
12683 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12684 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12685 (start_hourglass, cancel_hourglass): Remove.
12686 (show_hourglass, hide_hourglass): Remove prototypes and static
12687 modifiers.
12688 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12689 hourglass_atimer, hourglass_shown_p declaration/initialization.
12690 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12691 (DEFAULT_HOURGLASS_DELAY): Remove.
12692 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12693 hourglass_shown_p declaration/initialization.
12694
126952008-07-14 Jason Rumney <jasonr@gnu.org>
12696
12697 * w32fns.c (w32_get_arg): Remove wrapper function.
12698 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12699 directly.
12700 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12701
127022008-07-14 Kenichi Handa <handa@m17n.org>
12703
12704 * xfont.c (xfont_open): Add workaround for X's bug.
12705
127062008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12707
12708 * fontset.c: Include <stdio.h> unconditionally.
12709
127102008-07-13 Michael Albinus <michael.albinus@gmx.de>
12711
12712 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12713 for filtering.
12714
127152008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12716
12717 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12718
12719 * m/macppc.h:
12720 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12721
c4cc8b9a 12722 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12723 (SPECIAL_EMACS_INT):
12724 * m/ia64.h (SPECIAL_EMACS_INT):
12725 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12726 * s/gnu.h (NLIST_STRUCT):
12727 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12728 * s/gnu-linux.h (LINUX):
12729 * s/msdos.h (HAVE_FACES):
12730 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12731
12732 * systty.h:
12733 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12734 anymore.
12735
127362008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12737
12738 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12739 always defined as int.
12740
12741 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12742 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12743 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12744 * s/freebsd.h (HAVE_WAIT_HEADER):
12745 * s/bsd-common.h (HAVE_UNION_WAIT):
12746 * s/aix4-2.h (HAVE_WAIT_HEADER):
12747 * m/mips.h (HAVE_UNION_WAIT):
12748 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12749 (COFF, static): Do not define, they are undefined later in the file.
12750
12751 * process.c (update_status): Don't use a union.
12752 (status_convert):
12753 (sigchld_handler): Use int instead of WAITTYPE.
12754
127552008-07-12 Chong Yidong <cyd@stupidchicken.com>
12756
12757 * indent.c (Fvertical_motion): Restore hscroll before moving to
12758 goal column.
12759
127602008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12761
12762 * lisp.h: Remove left over code.
12763
127642008-07-11 Andreas Schwab <schwab@suse.de>
12765
12766 * lisp.h: Fix logic in last change.
12767
12768 * menu.h: New file.
12769 * menu.c: Include it.
12770 * xmenu.c: Likewise.
12771 * Makefile.in: Update dependencies.
12772
127732008-07-11 Kenichi Handa <handa@m17n.org>
12774
12775 * fontset.c (fontset_from_font): Cancel the previous change.
12776
127772008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12778
12779 * lisp.h:
12780 * w32heap.c:
12781 * emacs.c:
12782 * alloc.c: Replace all references of NO_UNION_TYPE with
12783 USE_LISP_UNION_TYPE.
12784
12785 * m/xtensa.h (NO_UNION_TYPE):
12786 * m/vax.h (NO_UNION_TYPE):
12787 * m/template.h (NO_UNION_TYPE):
12788 * m/sparc.h (NO_UNION_TYPE):
12789 * m/mips.h (NO_UNION_TYPE):
12790 * m/macppc.h (NO_UNION_TYPE):
12791 * m/m68k.h (NO_UNION_TYPE):
12792 * m/iris4d.h (NO_UNION_TYPE):
12793 * m/intel386.h (NO_UNION_TYPE):
12794 * m/ibms390x.h (NO_UNION_TYPE):
12795 * m/ibms390.h (NO_UNION_TYPE):
12796 * m/ibmrs6000.h (NO_UNION_TYPE):
12797 * m/ia64.h (NO_UNION_TYPE):
12798 * m/hp800.h (NO_UNION_TYPE):
12799 * m/arm.h (NO_UNION_TYPE):
12800 * m/amdx86-64.h (NO_UNION_TYPE):
12801 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12802 defining it the same.
12803
128042008-07-10 Chong Yidong <cyd@stupidchicken.com>
12805
12806 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12807
128082008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12809
12810 * fileio.c:
50426a04 12811 * sysdep.c:
aac0c6e3
MR
12812 * systty.h:
12813 * m/ibmrs6000.h:
12814 * m/iris4d.h:
12815 * s/aix4-2.h:
12816 * s/freebsd.h:
12817 * s/gnu-linux.h:
12818 * s/hpux10-20.h:
12819 * s/hpux11.h:
12820 * s/netbsd.h:
12821 * s/sol2-3.h:
12822 * s/sol2-4.h:
12823 * s/sol2.h:
12824 * s/usg5-4.h:
12825 * s/vms.h: Remove references to unused variables.
12826
128272008-07-10 Andreas Schwab <schwab@suse.de>
12828
12829 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12830 pattern before matching the generic family.
12831
128322008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12833
12834 * unexec.c:
12835 * s/vms.h:
12836 * s/usg5-4-2.h:
12837 * s/sol2-5.h:
12838 * s/freebsd.h:
12839 * s/darwin.h: Remove dead code.
12840
12841 * m/template.h:
12842 * m/sparc.h:
12843 * m/mips.h:
12844 * m/m68k.h:
12845 * m/iris4d.h:
12846 * m/intel386.h:
12847 * m/ibms390x.h:
12848 * m/ibms390.h:
12849 * m/ia64.h:
12850 * m/hp800.h:
12851 * m/arm.h:
12852 * m/amdx86-64.h: Remove dead code and references to unused
12853 and compiler defined symbols.
12854
12855 * unexmips.c:
12856 * unexelf.c: Remove references to desupported systems.
12857
12858 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12859
12860 * m/powermac.h: Remove boilerplate comments.
12861 (NO_REMAP): Remove unused definition.
12862
12863 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12864 define them.
12865
128662008-07-10 Kenichi Handa <handa@m17n.org>
12867
12868 * xfont.c (xfont_open): Log the reason of failure.
12869
128702008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12871
12872 * fontset.c (fontset_get_font_group):
12873 * font.c (font_check_otf): Specify argument types.
12874
128752008-07-09 Kenichi Handa <handa@m17n.org>
12876
12877 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12878 non-ASCII char is found.
12879
12880 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12881 (reorder_font_vector): Change the arg preferred_family to font.
12882 Prefer the spec matching with font.
12883 (fontset_get_font_group): New function.
12884 (fontset_find_font): Change the format of an element of a realized
12885 fontset. Use fontset_get_font_group.
12886 (fontset_font): Try the current fontset, the default fontset, the
12887 fallbacks of the current fontset, and the fallbacks of the default
12888 fontset in this order.
12889 (face_for_char): Delete the shortcut to use the current font.
12890 (fontset_from_font): Don't set fonts for Latin in the fontset.
12891
12892 * font.h (font_make_object, font_match_p): Adjust prototypes.
12893
12894 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12895
12896 * font.c (font_make_object): New arg entity and pixelsize.
12897 (font_check_otf_features, font_check_otf): New functions.
12898 (font_match_p): Check :lang, :script, and :otf properties.
12899
12900 * xfont.c (xfont_open): Adjust it for the change of
12901 font_make_object.
12902 (xfont_text_extents): Fix initial setting of metrics.
12903
12904 * ftfont.c (struct ftfont_info): New member index, delete member
12905 fc_charset_idx. Make the member order compatible with struct
12906 xftfont_info.
12907 (fc_charset_table): Change charset names to registry names.
12908 (ftfont_pattern_entity): Delete the args registry and
12909 fc_charset_idx. Change the value of :font-entity property
12910 to (FONTNAME . INDEX). Always set :registry property to
12911 `iso10646-1'.
12912 (struct ftfont_cache_data): New struct.
12913 (ftfont_lookup_cache): New arg for_face.
12914 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12915 (ftfont_driver): Set the member otf_capability.
12916 (ftfont_get_charset): Adjust it for the change of
12917 fc_charset_table.
12918 (OTF_TAG_SYM): New macro.
12919 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12920 for the change of fc_charset_table.
12921 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12922 ftfont_pattern_entity. Add FC_INDEX to objset.
12923 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12924 and ftfont_pattern_entity.
12925 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12926 font_make_object, struct ftfont_info.
12927 (ftfont_has_char): Use ftfont_get_fc_charset.
12928 (ftfont_otf_features, ftfont_otf_capability): New functions.
12929 (ftfont_shape): Use ftfont_get_otf.
12930 (ftfont_text_extents): Fix initial setting of metrics.
12931
12932 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12933 member order compatible with struct ftfont_info.
12934 (xftfont_open): Add FC_CHARSET to the pattern. Set
12935 xftfont_info->ft_size. Don't unlock the face. Check BDF
12936 properties if appropriate.
12937 (xftfont_close): Unlock the face.
12938 (xftfont_anchor_point, xftfont_shape): Deleted.
12939 (syms_of_xftfont): Don't set members anchor_point and shape of
12940 xftfont_driver.
12941
12942 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12943 font_make_object.
12944
12945 * w32font.c (w32font_open): Adjust it for the change of
12946 font_make_object.
12947 (w32font_open_internal): Don't set properties of font_object here.
12948
129492008-07-08 Chong Yidong <cyd@stupidchicken.com>
12950
12951 * macfns.c (x_create_tip_frame):
12952 * w32fns.c (x_create_tip_frame):
12953 * xfns.c (x_create_tip_frame): Pass parameter argument to
12954 face-set-after-frame-default.
12955
12956 * xfaces.c (Finternal_merge_in_global_face): Save merged
12957 attributes for the default face back into the face vector.
12958
129592008-07-08 Andreas Schwab <schwab@suse.de>
12960
12961 * fontset.h: Declare fontset_from_font. Don't declare
12962 new_fontset_from_font and fontset_from_font_name.
12963 * xterm.c: Include "fontset.h".
12964 * Makefile.in (xterm.o): Update dependencies.
12965
129662008-07-08 Glenn Morris <rgm@gnu.org>
12967
12968 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12969 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12970
129712008-07-07 Chong Yidong <cyd@stupidchicken.com>
12972
12973 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12974 (x_set_frame_parameters): Don't bind it.
12975
129762008-07-07 Juanma Barranquero <lekktu@gmail.com>
12977
12978 * w32fns.c (map_w32_filename): Declare extern.
12979
129802008-07-07 Jason Rumney <jasonr@gnu.org>
12981
12982 * w32term.c (WS_EX_LAYERED): Define if not already.
12983
129842008-07-06 Chong Yidong <cyd@stupidchicken.com>
12985
12986 * xfaces.c (set_font_frame_param): Don't try to set the font
12987 parameter if it is still unspecified in the lface.
12988
129892008-07-05 Chong Yidong <cyd@stupidchicken.com>
12990
12991 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12992 face if it didn't already exist.
12993
12994 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12995
129962008-07-05 Andreas Schwab <schwab@suse.de>
12997
12998 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12999
130002008-07-05 Chong Yidong <cyd@stupidchicken.com>
13001
13002 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13003 word-wrapping.
13004 (IT_DISPLAYING_WHITESPACE): New macro.
13005 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13006 when word-wrapping. Simplify word-wrapping logic. Use correct
13007 pixel positions when saving copies of the iterator.
13008 (display_line): Use proper wrap point if the last character on a
13009 line was preceded by whitespace.
13010
130112008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13012
13013 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13014
130152008-07-04 Kenichi Handa <handa@m17n.org>
13016
13017 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13018
13019 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13020
130212008-07-02 Jason Rumney <jasonr@gnu.org>
13022
13023 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13024 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13025
13026 * xdisp.c (next_element_from_display_vector): Move assignment out
13027 of if statement.
13028
130292008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13030
13031 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13032
13033 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13034 (syms_of_fileio): Initialize and export them.
13035 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13036
13037 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13038 (Fsystem_move_file_to_trash): New function.
13039 (syms_of_w32fns): Export it to lisp.
13040
130412008-07-01 Jason Rumney <jasonr@gnu.org>
13042
13043 * w32font.c (w32font_text_extents): Don't count overhang as part
13044 of width.
13045
130462008-06-30 Miles Bader <miles@gnu.org>
13047
13048 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13049 Add `avoid_cursor_p' field.
13050
13051 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13052 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13053 (append_glyph, append_composite_glyph, produce_image_glyph)
13054 (append_stretch_glyph): Initialize avoid_cursor_p.
13055 (get_it_property): Rename from `get_line_height_property'.
13056 (x_produce_glyphs): Use get_it_property.
13057 (handle_line_prefix, push_display_prop): New functions.
13058 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13059 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13060 New variables.
13061 (syms_of_xdisp): Initialize them.
13062
130632008-06-30 Kenichi Handa <handa@m17n.org>
13064
13065 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13066 XftDefaultSubstitute (they are called in XftFontMatch).
13067 (xftfont_open): Fix args to ftfont_font_format.
13068
13069 * ftfont.c (fc_charset_table): New member lang.
13070 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13071 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13072 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13073 (ftfont_open): Fix args to ftfont_font_format.
13074 (ftfont_font_format): New arg filename.
13075
130762008-06-30 Chong Yidong <cyd@stupidchicken.com>
13077
13078 * xfaces.c (Finternal_merge_in_global_face): If default face was
13079 modified, realize it again. Update the font face attribute.
13080
130812008-06-29 Jason Rumney <jasonr@gnu.org>
13082
13083 * w32term.c (x_set_frame_alpha): Fix logic.
13084
130852008-06-29 Kenichi Handa <handa@m17n.org>
13086
13087 * fontset.c (Finternal_char_font): Return font-object instead of
13088 font-name.
13089
13090 * composite.c (get_composition_id): Fix the width calculation for TAB.
13091
130922008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13093
13094 * indent.c (Fvertical_motion): Properly handle float column arg.
13095
130962008-06-28 Jason Rumney <jasonr@gnu.org>
13097
13098 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13099 (pfnSetLayeredWindowAttributes): New function pointer.
13100 (w32_initialize): Initialize it when supported.
13101 (x_set_frame_alpha): New function.
13102
13103 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13104 (w32_frame_parm_handlers): Set alpha handler.
13105
13106 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13107
131082008-06-27 Jason Rumney <jasonr@gnu.org>
13109
13110 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13111 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13112 (w32_to_x_charset, x_to_w32_charset)
13113 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13114 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13115 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13116 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13117 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13118 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13119 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13120 (Qw32_charset_unicode): Remove.
13121 (syms_of_w32fns): Update for above changes.
13122
13123 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13124 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13125 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13126 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13127 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13128 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13129 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13130 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13131 (syms_of_w32font): Update for above changes.
13132
131332008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13134
13135 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13136 removed #if.
13137 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13138
131392008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13140 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13141
13142 * makefile.w32-in (LOCAL_FLAGS):
13143 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13144
13145 * sysdep.c (_spawnlp, _getpid):
13146 Declare with explicit _cdecl instead of _CRTAPI1.
13147
13148 * editfns.c (Fget_internal_run_time):
13149 Check for WINDOWSNT with #ifdef, not #if.
13150
131512008-06-26 Jason Rumney <jasonr@gnu.org>
13152
13153 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13154
13155 * w32term.c (x_draw_glyph_string_foreground)
13156 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13157 Use FONT_HANDLE macro.
13158 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13159
13160 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13161 (uniscribe_encode_char): Use FONT_HANDLE macro.
13162
13163 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13164 (w32font_text_extents): Use precast w32_font.
13165 (w32font_close): Free cached metrics.
13166 (w32font_open_internal): Allocate space for name on stack.
13167
131682008-06-26 Chong Yidong <cyd@stupidchicken.com>
13169
13170 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13171
131722008-06-26 Jason Rumney <jasonr@gnu.org>
13173
13174 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13175 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13176
131772008-06-26 Juanma Barranquero <lekktu@gmail.com>
13178
13179 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13180
131812008-06-26 Jason Rumney <jasonr@gnu.org>
13182
13183 * w32bdf.c, w32bdf.h: Remove obsolete files.
13184
13185 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13186
13187 * w32gui.h: Don't include w32bdf.h.
13188 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13189 Remove obsolete font support.
13190
13191 * w32font.h (struct w32font_info): Remove compat_w32_font.
13192 Add hfont member.
13193 (FONT_COMPAT): Remove obsolete macro.
13194
13195 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13196 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13197 (w32font_open_internal): Remove compat code. Set new hfont member.
13198 (Fx_select_font): Use new hfont member.
13199
13200 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13201 (uniscribe_encode_char): Use new hfont member.
13202
13203 * w32term.c (x_draw_glyph_string_foreground)
13204 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13205 (x_draw_glyph_string): Use metrics in w32font_info.
13206
132072008-06-26 Kenichi Handa <handa@m17n.org>
13208
13209 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13210
132112008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13212
13213 * unexnext.c:
13214 * m/ews4800.h:
13215 * m/hp9000s300.h:
13216 * m/ibm370aix.h:
13217 * m/mips-siemens.h:
13218 * m/ncr386.h:
13219 * m/next.h:
13220 * m/pmax.h:
13221 * m/powerpcle.h:
13222 * m/tandem-s2.h:
13223 * s/386bsd.h:
13224 * s/bsd386.h:
13225 * s/bsd4-1.h:
13226 * s/bsd4-2.h:
13227 * s/bsdos2-1.h:
13228 * s/bsdos2.h:
13229 * s/bsdos3.h:
13230 * s/bsdos4.h:
13231 * s/nextstep.h:
13232 * s/ultrix4-3.h:
13233 * s/usg5-0.h:
13234 * s/usg5-2-2.h:
13235 * s/usg5-2.h:
13236 * s/usg5-4-3.h:
13237 * s/ux4800.h:
13238 * s/uxpds.h:
13239 * s/uxpv.h: Remove support for obsolete systems.
13240 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13241 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13242 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13243 Remove, insert contents in s/aix4-2.h.
13244 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13245 * s/bsd4-3.h: Rename to ...
13246 * s/bsd-common.h: ... this.
13247 * data.c:
13248 * doc.c:
13249 * ecrt0.c:
13250 * emacs.c:
13251 * fileio.c:
13252 * floatfns.c:
13253 * keyboard.c:
13254 * mem-limits.h:
13255 * print.c:
13256 * process.c:
13257 * sysdep.c:
13258 * syssignal.h:
13259 * systty.h:
13260 * syswait.h:
13261 * term.c:
13262 * unexec.c:
13263 * unexelf.c:
13264 * unexhp9k800.c:
13265 * m/hp800.h:
13266 * m/ibmrs6000.h:
13267 * m/mips.h:
13268 * m/vax.h:
13269 * s/darwin.h:
13270 * s/freebsd.h:
13271 * s/gnu.h:
13272 * s/ms-w32.h:
13273 * s/msdos.h:
13274 * s/netbsd.h:
13275 * s/template.h: Remove references to obsolete variables.
13276
13277 * Makefile.in: Add dependencies for all unexec files.
13278 (admindir): Remove unused variable.
13279 (UNEXEC_SRC): Remove references.
13280
132812008-06-25 Chong Yidong <cyd@stupidchicken.com>
13282
13283 * xfns.c (x_default_font_parameter): If Xft is available, first
13284 try Monospace-12 for the default font.
13285
132862008-06-25 Jason Rumney <jasonr@gnu.org>
13287
13288 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13289
132902008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13291
13292 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13293
13294 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13295
132962008-06-25 Juanma Barranquero <lekktu@gmail.com>
13297
13298 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13299 <scroll-conservatively>: Fix typo in docstring.
13300
13301 * xselect.c (Fx_send_client_event): Doc fix.
13302
133032008-06-25 Kenichi Handa <handa@m17n.org>
13304
13305 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13306
13307 * font.c (font_parse_fcname): Remove unused variables.
13308 (font_sort_entites): Delete the arg SPEC. Caller changed.
13309 Fix for the case of ! best_only.
13310 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13311
13312 * lisp.h (Fstring_to_unibyte): EXFUN it.
13313
13314 * character.h (str_to_unibyte): Extern it.
13315
13316 * character.c (str_to_unibyte): New function.
13317
13318 * fns.c (Fstring_to_unibyte): New function.
13319 (syms_of_fns): Defsubr it.
13320
133212008-06-24 Kenichi Handa <handa@m17n.org>
13322
13323 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13324 DPI too.
13325 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13326
133272008-06-24 Andreas Schwab <schwab@suse.de>
13328
13329 * Makefile.in (${lispsource}loaddefs.el): Rename from
13330 ../lisp/loaddefs.el.
13331 (bootstrap-clean): Do what distclean does but don't remove
13332 Makefile.
13333 (distclean): Depend on bootstrap-clean and remove Makefile.
13334
133352008-06-24 Chong Yidong <cyd@stupidchicken.com>
13336
13337 * buffer.h (struct buffer): New member word_wrap.
13338
13339 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13340 word-wrap.
13341 (init_buffer_once): Initialize them.
13342
13343 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13344 line_wrap enum possessing three possible values.
13345
13346 * termopts.h: Replace truncate_partial_width_windows with
13347 Vtruncate_partial_width_windows.
13348
13349 * dispnew.c (direct_output_for_insert): Avoid direct output when
13350 inserting a space with word wrap on.
13351
13352 * indent.c (compute_motion): Obey integer values of
13353 truncate-partial-width-windows.
13354
13355 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13356 replacing truncate_partial_width_windows.
13357 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13358 truncate only if the window width is below that integer.
13359 (start_display, resize_mini_window, produce_stretch_glyph)
13360 (display_string, move_it_in_display_line_to): Use line_wrap.
13361 (back_to_previous_visible_line_start, reseat_1): Reset
13362 string_from_display_prop_p.
13363 (display_line): Extend default face to end of line when wrapping.
13364
133652008-06-24 Kim F. Storm <storm@cua.dk>
13366
13367 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13368 to wrap continued lines at word boundaries.
13369
133702008-06-24 Jason Rumney <jasonr@gnu.org>
13371
13372 * font.c (Ffont_face_attributes): Multiply pixel size before point
13373 conversion to avoid multiplying rounding error.
13374
133752008-06-23 Jason Rumney <jasonr@gnu.org>
13376
13377 * w32term.c (x_draw_glyph_string_background)
13378 (x_draw_glyph_string): Remove old bdf font code.
13379
13380 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13381
133822008-06-22 Kenichi Handa <handa@m17n.org>
13383
13384 * font.c (font_find_for_lface): Try the adstyle specified in
13385 the property of LFACE_FONT of LFACE (if any).
13386
133872008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13388 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13389
13390 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13391
133922008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13393
13394 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13395 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13396 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13397 (witness-emacs): Remove.
13398 (lisp, shortlisp): Move loaddefs.el earlier.
13399 (mostlyclean): Forget about witness-emacs.
13400
134012008-06-22 Glenn Morris <rgm@gnu.org>
13402
13403 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13404 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13405
134062008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13407
13408 * Makefile.in (PRECOMP): Remove.
13409 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13410 (witness-emacs): Run `compile-first'.
13411 (.el.elc): Use the new compile-onefile target.
13412
134132008-06-21 Kenichi Handa <handa@m17n.org>
13414
13415 * xftfont.c (xftfont_open): Handle QCembolden only when
13416 FC_EMBOLDEN is defined.
13417
134182008-06-21 Andreas Schwab <schwab@suse.de>
13419
13420 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13421 (.el.elc): Likewise.
13422
134232008-06-21 Miles Bader <miles@gnu.org>
13424
13425 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13426 build dir, not the lisp source dir.
13427
134282008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13429
13430 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13431 (bootstrapclean): Remove.
13432 (.el.elc): New rule.
13433 (PRECOMP): New var.
13434 (../lisp/subdirs.el): Remove.
13435 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13436 (witness-emacs): New target.
13437 (mostlyclean): Remove witness-emacs as well.
13438 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13439 Add witness-emacs dependency.
13440
134412008-06-20 Chong Yidong <cyd@stupidchicken.com>
13442
13443 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13444 defined by the font.
13445
134462008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13447
13448 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13449 (bootstrap-clean): New target that keeps TAGS around.
13450 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13451 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13452
134532008-06-20 Jason Rumney <jasonr@gnu.org>
13454
13455 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13456 Remove obsolete font code.
13457
13458 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13459 to determine language support.
13460
134612008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13462
13463 * sysdep.c (cfsetspeed): New fun extracted from the code.
13464 (cfmakeraw): Move before first use.
13465
134662008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13467
13468 * sysdep.c (cfmakeraw): Provide fallback implementation.
13469 (serial_configure): Provide fallback implementation of cfsetspeed.
13470
134712008-06-20 Kenichi Handa <handa@m17n.org>
13472
13473 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13474 the pattern.
13475
13476 * fontset.c (fontset_from_font): Copy font_spec before changing
13477 the elements.
13478
13479 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13480
134812008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13482
13483 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13484 for explicit `font' parameters.
13485
13486 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13487
134882008-06-19 Kenichi Handa <handa@m17n.org>
13489
13490 * frame.c: Include <ctype.h>.
13491 (x_set_font_backend): Allow spacing characters in the X resource
13492 for FontBackend.
13493
134942008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13495
13496 * w32fns.c, xfns.c (Qfont_param): New var.
13497 (syms_of_w32fns): Initialize it.
13498 (x_default_font_parameter): Record explicit `font' into
13499 `font-parameter'.
13500
135012008-06-18 Kenichi Handa <handa@m17n.org>
13502
13503 * font.c (font_parse_xlfd): Fix previous change.
13504 (font_parse_fcname): Don't use :fc-unknown-spec.
13505 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13506 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13507 (font_add_log): Prepend the driver name to the resulting fonts.
13508
13509 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13510 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13511 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13512
13513 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13514 (QCembolden): New variables.
13515 (syms_of_xftfont): DEFSYM them.
13516 (xftfont_open): Call XftFontMatch. Don't trust the result of
13517 XftTextExtents8 if the pixel_size is less than 5.
13518
135192008-06-18 Andreas Schwab <schwab@suse.de>
13520
13521 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13522 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13523
135242008-06-18 Jason Rumney <jasonr@gnu.org>
13525
13526 * w32font.c (w32font_list, w32font_match): Add logging.
13527
13528 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13529
135302008-06-17 Chong Yidong <cyd@stupidchicken.com>
13531
13532 * font.c (font_parse_fcname): Store divider characters for
13533 unknown-spec list. For known key symbols, intern using correct
13534 symbol name.
13535
135362008-06-17 Kenichi Handa <handa@m17n.org>
13537
13538 * xfaces.c (realize_default_face): If the frame is not on window
13539 system, set the fontset of face to nil.
13540
135412008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13542
13543 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13544
135452008-06-16 Juanma Barranquero <lekktu@gmail.com>
13546
13547 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13548 (build_font_name_from_vector): Delete externs.
13549
13550 * xfaces.c (struct font_name): Don't declare.
13551
135522008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13553
13554 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13555
135562008-06-16 Chong Yidong <cyd@stupidchicken.com>
13557
13558 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13559
135602008-06-16 Juanma Barranquero <lekktu@gmail.com>
13561
13562 * font.c (Ffont_spec): Fix usage in docstring.
13563 (Ffont_face_attributes): Doc fix.
13564
135652008-06-16 Andreas Schwab <schwab@suse.de>
13566
13567 * font.c (Ffont_face_attributes): Fix definition.
13568
135692008-06-16 Jason Rumney <jasonr@gnu.org>
13570
13571 * font.h (font_style_symbolic_from_value): Remove.
13572
13573 * font.c (font_style_symbolic_from_value): Remove.
13574 (font_style_symbolic): Revert to pre 2008-06-13 version.
13575
13576 * w32font.c (w32_to_fc_weight): New function.
13577 (w32font_full_name, logfont_to_fcname): Use it.
13578
135792008-06-16 Kenichi Handa <handa@m17n.org>
13580
13581 * font.c (font_check_object): Delete it.
13582 (font_clear_cache): Check if a font-object is alive.
13583 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13584 font-object to nil.
13585 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13586 (font_at): Don't call font_check_object.
13587 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13588
135892008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13590
13591 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13592
135932008-06-16 Chong Yidong <cyd@stupidchicken.com>
13594
13595 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13596
135972008-06-15 Chong Yidong <cyd@stupidchicken.com>
13598
13599 * font.c (font_parse_fcname): Only one decimal point.
13600 (font_unparse_fcname): Handle data in family and foundry indices
13601 as symbols, not strings.
13602 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13603
13604 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13605
13606 * font.h (font_unparse_gtkname): Add prototype.
13607
136082008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13609
13610 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13611
136122008-06-15 Andreas Schwab <schwab@suse.de>
13613
13614 * font.c (font_update_drivers): Fix crash when no drivers match.
13615
136162008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13617
13618 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13619 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13620
136212008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13622
13623 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13624
136252008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13626
13627 * process.c (Fserial_process_configure, Fprocess_send_eof):
13628 Use EQ to compare Lisp_Objects.
13629
136302008-06-13 Jason Rumney <jasonr@gnu.org>
13631
13632 * w32fns.c (Fw32_select_font): Remove old font API function.
13633
13634 * w32font.c (logfont_to_fcname): New function.
13635 (Fx_select_font): New font dialog function compatible with
13636 GTK/fontconfig version.
13637
13638 * font.c (font_style_symbolic_from_value): New function.
13639 (font_style_symbolic): Use it.
13640
13641 * font.h (font_style_symbolic_from_value): Declare new function.
13642
136432008-06-13 Juanma Barranquero <lekktu@gmail.com>
13644
13645 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13646 <font-width-table>: Fix typos in docstrings.
13647
136482008-06-13 Daniel Engeler <engeler@gmail.com>
13649
13650 These changes add serial port access.
13651 * process.c: Add HAVE_SERIAL.
13652 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13653 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13654 (list_processes_1, select_wrapper, Fstop_process)
13655 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13656 (status_notify): Modify to handle serial processes.
13657 [HAVE_SERIAL] (Fserial_process_configure)
13658 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13659 New functions.
13660 * process.h (struct Lisp_Process): Add `type'.
13661 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13662 New functions.
13663 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13664 serial ports.
b71ac3dd 13665 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13666 * w32.h: Add FILE_SERIAL.
13667 (struct _child_process): Add ovl_read, ovl_write.
13668
136692008-06-13 Kenichi Handa <handa@m17n.org>
13670
13671 * dispextern.h (enum lface_attribute_index): New member
13672 LFACE_FOUNDRY_INDEX.
13673
13674 * font.c (font_score): Delete arg alternate_families. Check only
13675 weight, slant, width, and size. Ignore the difference of alias
13676 style symbols.
13677 (font_sort_entites): Adjust for the above change. Reflect the
13678 order of font-driver to scores.
13679 (font_list_entities): Don't check alternate_familes here.
13680 (font_clear_prop): Handle foundry.
13681 (font_update_lface): Don't parse "foundry-family" form here.
13682 Handle FONT_FOUNDRY_INDEX.
13683 (font_find_for_lface): Likewise. Handle alternate families here.
13684 If registry is nil, try iso8859-1 and ascii-0.
13685 (font_open_for_lface): Pay attention to size in ENTITY.
13686 (font_open_by_name): Simplify by calling font_load_for_lface.
13687 (free_font_driver_list): Delete it.
13688 (font_update_drivers): Preserve the order of backends.
13689 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13690 of font_score and font_sort_entites.
13691 (font_update_sort_order): Likewise.
13692
13693 * xfaces.c (LFACE_FOUNDRY): New macro.
13694 (check_lface_attrs): Check foundry.
13695 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13696 (merge_face_vectors): Check foundry.
13697 (merge_face_ref): Likewise.
13698 (Finternal_set_lisp_face_attribute): Likewise.
13699 (x_update_menu_appearance): Likewise.
13700 (Finternal_get_lisp_face_attribute): Likewise.
13701 (lface_hash): Likewise.
13702 (lface_same_font_attributes_p): Likewise.
13703 (x_supports_face_attributes_p): Likewise.
13704 (tty_supports_face_attributes_p): Likewise.
13705 (Finternal_set_alternative_font_family_alist): Intern strings.
13706 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13707 (realize_default_face): Set LFACE_FOUNDRY (lface).
13708
13709 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13710 font-driver at first.
13711
13712 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13713
137142008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13715
13716 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13717
137182008-06-12 Jim Meyering <meyering@redhat.com>
13719
13720 Make unexec_free handle NULL the same way free does.
13721 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13722
137232008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13724
13725 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13726 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13727 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13728 (WEAK_ALIAS): Simplify.
13729 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13730 when searching a unibyte buffer.
13731
137322008-06-12 Chong Yidong <cyd@stupidchicken.com>
13733
13734 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13735
137362008-06-12 Juanma Barranquero <lekktu@gmail.com>
13737
13738 * w32font.c: Include ctype.h.
13739
137402008-06-11 Jason Rumney <jasonr@gnu.org>
13741
13742 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13743 misreported as space.
13744 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13745 as aliases for registry iso10646-1.
13746
137472008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13748
13749 * buffer.c (clone_per_buffer_values): Skip `name'.
13750
137512008-06-11 Chong Yidong <cyd@stupidchicken.com>
13752
13753 * font.c (font_parse_fcname): Fix last change; accept decimal
13754 points in font size.
13755
137562008-06-10 Jason Rumney <jasonr@gnu.org>
13757
13758 * w32uniscribe.c (add_opentype_font_name_to_list):
13759 Skip non unicode fonts.
13760
137612008-06-10 Chong Yidong <cyd@stupidchicken.com>
13762
13763 * xfns.c (Fx_font_dialog): New function.
13764
13765 * gtkutil.c (xg_dialog_response_cb): Rename from
13766 xg_file_response_callback.
13767 (pop_down_dialog): Rename from pop_down_file_dialog.
13768 (xg_get_file_name): Callers changed.
13769 (xg_get_font_name): New function.
13770
13771 * gtkutil.h (xg_get_font_name): Insert prototype.
13772
137732008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13774
13775 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13776 x_underline_minimum_display_offset.
13777 (syms_of_xdisp): Declare it here rather than in xterm.c.
13778 * dispextern.h (underline_minimum_offset): Declare it.
13779 * w32term.c (x_draw_glyph_string): Use it.
13780 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13781 (syms_of_xterm): Don't declare it any more.
13782 (x_draw_glyph_string): Adjust to the new name.
13783
8719abec 137842008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13785
13786 * xterm.c (x_underline_minimum_display_offset): New var.
13787 (x_draw_glyph_string): Use it.
13788 (syms_of_xterm): Declare it.
13789
137902008-06-10 Chong Yidong <cyd@stupidchicken.com>
13791
13792 * font.c (font_parse_fcname): Accept GTK-style font names too.
13793
137942008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13795
13796 * dired.c (file_name_completion): Don't return t if the match is exact
13797 but with different capitalization.
13798 * minibuf.c (Ftry_completion): Simplify.
13799
13800 * window.c (Vwindow_point_insertion_type): New var.
13801 (set_window_buffer): Use it.
13802 (syms_of_window): Init and export it to Lisp.
13803
138042008-06-10 Kenichi Handa <handa@m17n.org>
13805
13806 * font.h (font_intern_prop): Prototype adjusted.
13807
13808 * font.c (font_intern_prop): New arg force_symbol.
13809 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13810 Adjust for the change of font_intern_prop.
13811
13812 * ftfont.c (ftfont_pattern_entity):
13813 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13814 (w32_registry):
13815 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13816 the change of font_intern_prop.
13817
138182008-06-09 Juanma Barranquero <lekktu@gmail.com>
13819
13820 * w32menu.c (digest_single_submenu): Declare extern.
13821
138222008-06-09 Jason Rumney <jasonr@gnu.org>
13823
13824 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13825
13826 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13827 (parse_single_submenu): Remove.
13828 (digest_single_submenu): Remove.
13829 (syms_of_w32menu): Don't initialise variables that have moved
13830 to menu.c.
13831 (set_frame_menubar): Sync with version in xmenu.c.
13832 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13833
13834 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13835 Make static again.
13836
138372008-06-09 Jason Rumney <jasonr@gnu.org>
13838
13839 Changes to w32 files related to the move of common menu code
13840 to menu.c on 2008-06-08 by Chong Yidong.
13841
13842 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13843 defs to w32gui.h.
13844 (single_keymap_panes, push_menu_item, push_menu_pane):
13845 Make globally visible.
13846
13847 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13848 (local_free, malloc_widget_value, free_widget_value)
13849 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13850 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13851 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13852 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13853 (menu_items, menu_items_allocated, menu_items_used)
13854 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13855 (init_menu_items, finish_menu_items, discard_menu_items)
13856 (grow_menu_items, push_submenu_start, push_submenu_end)
13857 (push_left_right_boundary, push_menu_pane, push_menu_item)
13858 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13859 (free_menubar_widget_tree_value, parse_single_submenu)
13860 (update_submenu_strings): Remove functions.
13861 (xmalloc_widget_value): Remove and declare extern.
13862
13863 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13864 (OBJ1): Build it.
13865
13866 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13867 (local_heap, local_alloc, local_free, malloc_widget_value)
13868 (free_widget_value): Define here.
13869
138702008-06-09 Kenichi Handa <handa@m17n.org>
13871
13872 * font.h (Qascii_0): Extern it.
13873
13874 * font.c (Qascii_0): New variable.
13875 (syms_of_font): DEFSYM it.
13876 (font_open_by_name): If the registry "iso8859-1" fails, try also
13877 "ascii-0".
13878
13879 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13880
138812008-06-08 Kenichi Handa <handa@m17n.org>
13882
13883 * .gdbinit (xfont): New command.
13884
138852008-06-08 Andreas Schwab <schwab@suse.de>
13886
13887 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13888 * Makefile.in (menu.o): Update dependencies.
13889
13890 * Makefile.in (obj): Always add menu.o.
13891 * emacs.c (main): Always call syms_of_menu.
13892 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13893
138942008-06-08 Chong Yidong <cyd@stupidchicken.com>
13895
13896 * Makefile.in: Compile menu.c.
13897
13898 * lisp.h: Declare syms_of_menu.
13899
13900 * emacs.c (main): Call syms_of_menu.
13901
13902 * keyboard.h: Relocate platform-independent menu definitions from
13903 xmenu.c.
13904
13905 * menu.c: New file. Relocate platform-independent menu
13906 definitions from xmenu.c. Suggested by Adrian Robert.
13907
13908 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13909 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13910 (menu_items_used, menu_items_n_panes)
13911 (menu_items_submenu_depth): Move to keyboard.h.
13912 (init_menu_items, finish_menu_items, unuse_menu_items)
13913 (discard_menu_items, restore_menu_items, save_menu_items)
13914 (grow_menu_items, push_submenu_start, push_submenu_end)
13915 (push_left_right_boundary, push_menu_pane, push_menu_item)
13916 (keymap_panes, single_keymap_panes, single_menu_item)
13917 (list_of_panes, list_of_items, find_and_call_menu_selection)
13918 (xmalloc_widget_value, free_menubar_widget_value_tree)
13919 (parse_single_submenu, digest_single_submenu)
13920 (update_submenu_strings): Move to menu.c.
13921
139222008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13923
13924 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13925
139262008-06-06 Miles Bader <miles@gnu.org>
13927
13928 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13929 face, not frame default.
13930
139312008-06-05 Martin Rudalics <rudalics@gmx.at>
13932
13933 * window.c (pop_up_windows, pop_up_frames)
13934 (display_buffer_reuse_frames, Vpop_up_frame_function)
13935 (Vdisplay_buffer_function, Veven_window_heights)
13936 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13937 (Vspecial_display_function, Vsame_window_buffer_names)
13938 (Vsame_window_regexps, split_height_threshold)
13939 (Vsplit_window_preferred_function): Move those vars to window.el.
13940 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13941 (Fdisplay_buffer): Move those functions to window.el.
13942 (syms_of_window): Remove corresponding declarations.
13943 (display_buffer): New function.
13944 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13945 * dispnew.c (Flast_nonminibuf_frame): New function.
13946 * buffer.c (Fpop_to_buffer): Move to window.el.
13947
139482008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13949
13950 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13951
139522008-06-05 Kenichi Handa <handa@m17n.org>
13953
13954 * coding.c (detect_coding): Fix previous change.
13955 (detect_coding_system): Likewise.
13956
139572008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13958
13959 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13960
13961 * keymap.c (Vminibuffer_local_filename_must_match_map):
13962 Rename from Vminibuffer_local_must_match_filename_map.
13963 (syms_of_keymap):
13964 * minibuf.c (Fcompleting_read): Adjust accordingly.
13965 * commands.h: Rename declaration as well.
13966
139672008-06-05 Kenichi Handa <handa@m17n.org>
13968
13969 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13970 family name.
13971 (Ffont_put): Likewise.
13972
13973 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13974 current font-spec.
13975
13976 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13977 is unspecified.
13978
13979 * xfaces.c (realize_x_face): If the font-related face attributes
13980 are the same as those of default face, realize a new fontset from
13981 default->fontset.
13982 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13983
139842008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13985
13986 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13987 (move_it_in_display_line): New wrapper.
13988
13989 * window.c (window_scroll_pixel_based_preserve_x)
13990 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13991 (window_scroll_pixel_based, window_scroll_line_based):
13992 Use them to preserve column positions.
13993 (syms_of_window): Initialize them.
13994
13995 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13996 (HPOS . VPOS) pair.
13997
13998 * dispextern.h (move_it_in_display_line): Declare.
13999
140002008-06-05 Juanma Barranquero <lekktu@gmail.com>
14001
14002 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14003 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14004 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14005
140062008-06-04 Juanma Barranquero <lekktu@gmail.com>
14007
14008 * window.c (Fset_window_parameter): Doc fix.
14009 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14010
140112008-06-04 Joakim Verona <joakim@verona.se>
14012
14013 * window.h (struct window): Add new member window_parameters.
14014
14015 * window.c (Fwindow_parameters, Fwindow_parameter)
14016 (Fset_window_parameter): New defuns.
14017 (syms_of_window): Defsubr the new defuns.
14018 (make_window): Initialize window_parameters to nil.
14019
140202008-06-04 John Paul Wallington <jpw@pobox.com>
14021
14022 * eval.c (Fdefmacro): Doc fix.
14023
140242008-06-04 Kenichi Handa <handa@m17n.org>
14025
14026 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14027 Be sure to call setup_coding_system when we find a proper coding system.
14028 (detect_coding_system): Fix handling of coding->head_ascii.
14029
140302008-06-03 Andreas Schwab <schwab@suse.de>
14031
14032 * font.c (font_prop_validate_spacing): Fix last change.
14033
140342008-06-03 Kenichi Handa <handa@m17n.org>
14035
14036 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14037 (font_parse_fcname): Fix handling of unknown key.
14038
14039 * xfont.c (xfont_list): Try an alias.
14040
14041 * charset.c (char_charset): Return NULL if the arg charset_list is
14042 specified and C doesn't belong to any of them.
14043
140442008-06-02 Chip Coldwell <coldwell@redhat.com>
14045
14046 * font.c (font_pixel_size): Don't take cdr of an integer.
14047
140482008-06-02 Jim Meyering <meyering@redhat.com>
14049
14050 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14051 * alloc.c (xfree): Return right away for a NULL arg.
14052 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14053 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14054 * mac.c (create_apple_event_from_event_ref): Likewise.
14055 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14056 Likewise.
14057 * doprnt.c (doprnt1): Likewise.
14058 * frame.c (frame): Likewise.
14059 * keyboard.c (wipe_kboard): Likewise.
14060 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14061 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14062 * term.c (tty_default_color_capabilities, maybe_fatal)
14063 (delete_tty): Likewise.
14064 * w16select.c (string): Likewise.
14065 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14066 * w32bdf.c (w32_free_bdf_font): Likewise.
14067 * w32fns.c (w32_unload_font): Likewise.
14068 * w32font.c (w32font_close): Likewise.
14069 * window.c (size_window): Likewise.
14070 * xselect.c (receive_incremental_selection): Likewise.
14071 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14072 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14073 * w32.c (stat): Likewise.
14074
14075 Remove useless if-before-free tests.
14076 * editfns.c (Fset_time_zone_rule): Likewise.
14077 * lread.c (nosuffix): Likewise.
14078 * ralloc.c (get_bloc): Likewise.
14079 * regex.c (reg_free): Likewise.
14080 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14081 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14082 * xsmfns.c (smc_save_yourself_CB): Likewise.
14083
140842008-06-02 Kenichi Handa <handa@m17n.org>
14085
14086 * font.c (font_find_for_lface): Handle float font size.
14087 (font_open_for_lface): Likewise.
14088
14089 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14090 comparing the properties.
14091
140922008-06-01 Jason Rumney <jasonr@gnu.org>
14093
14094 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14095 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14096 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14097 Don't add empty script list.
14098 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14099
141002008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14101
14102 * Makefile.in (dot, dotdot): Remove, update users.
14103 ".." has been used elsewhere in the file for a long time.
14104 (LIBXT_STATIC): Remove conditional based on unused variable.
14105
141062008-06-01 Miles Bader <miles@gnu.org>
14107
14108 * xfaces.c (Vface_remapping_alist): New variable.
14109 (syms_of_xfaces): Initialize it.
14110 (enum named_merge_point_kind): New type.
14111 (struct named_merge_point): Add `named_merge_point_kind' field.
14112 (push_named_merge_point): Make cycle detection respect different
14113 named-merge-point kinds.
14114 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14115 Remove face-name alias resolution.
14116 (lface_from_face_name): New definition using
14117 `lface_from_face_name_no_resolve'.
14118 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14119 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14120 (get_lface_attributes): New definition that layers face-remapping on
14121 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14122 (lookup_basic_face): New function.
14123 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14124 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14125 `get_lface_attributes'.
14126 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14127 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14128 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14129
14130 * xdisp.c (init_iterator): Pass base_face_id through
14131 `lookup_basic_face' when we actually use it as a face-id.
14132 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14133 DEFAULT_FACE_ID.
14134
14135 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14136 lookup the initial face-id.
14137
14138 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14139
141402008-06-01 Juanma Barranquero <lekktu@gmail.com>
14141
14142 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14143 (Fremove_text_properties): Fix typos in docstrings.
14144
141452008-05-31 Kenichi Handa <handa@m17n.org>
14146
14147 * font.c (font_list_entities): Fix the car part of data to be
14148 stored in the cache.
14149
14150 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14151
141522008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14153
14154 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14155 Add a `test' argument so another predicate than `equal' can be used.
14156 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14157 (map_char_table): Remove unused vars `c' and `i'.
14158 * lisp.h (Foptimize_char_table): Adjust declaration.
14159 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14160
141612008-05-30 Kenichi Handa <handa@m17n.org>
14162
14163 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14164 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14165 defined.
14166
141672008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14168
14169 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14170 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14171 frame-local settings for the same variable.
14172
141732008-05-30 Kenichi Handa <handa@m17n.org>
14174
14175 * fontset.c (Ffont_info): Move to font.c.
14176 (syms_of_fontset): Delete defsubr of Sfont_info.
14177
14178 * font.c (font_style_to_value, font_score): Delete casting of the
14179 args to xstcasecmp.
14180 (register_font_driver): Increment num_font_drivers only when
14181 registering the driver globally.
14182 (Ffont_info): Move from fontset.c. Handle a font object too.
14183 (syms_of_font): Defsubr Sfont_info.
14184
141852008-05-29 Kenichi Handa <handa@m17n.org>
14186
14187 * coding.h (enum define_coding_utf8_arg_index): New enum.
14188 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14189 coding_attr_utf_bom.
14190 (enum utf_bom_type): Rename from utf_16_bom_type.
14191 (struct utf_16_spec): Adjust for the above change.
14192 (struct coding_system): Add utf_8_bom in `spec' union.
14193
14194 * coding.c (CODING_UTF_8_BOM): New macro.
14195 (enum coding_category): Delete coding_category_utf_8, add
14196 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14197 coding_category_utf_8_sig.
14198 (CATEGORY_MASK_UTF_8): Delete it.
14199 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14200 (CATEGORY_MASK_UTF_8_SIG): New macros.
14201 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14202 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14203 CATEGORY_MASK_UTF_8_SIG.
14204 (CATEGORY_MASK_UTF_8): New macro.
14205 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14206 (detect_coding_utf_8): Check BOM.
14207 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14208 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14209 (encode_coding_utf_16): Likewise.
14210 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14211 (detect_coding, detect_coding_system): Handle utf-8-auto.
14212 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14213 (syms_of_coding): Fix setting up of Vcoding_category_table.
14214
142152008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14216
14217 * process.c (Faccept_process_output): If `millisec' is non-nil,
14218 `seconds' default to 0.
14219 (wait_reading_process_output): Also return non-nil if we read output
14220 from a non-running process.
14221
142222008-05-29 Jason Rumney <jasonr@gnu.org>
14223
14224 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14225 `raster' specified.
14226 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14227 in the uniscribe backend, but disallow any font that has no
14228 unicode subrange support.
14229
142302008-05-29 Juanma Barranquero <lekktu@gmail.com>
14231
14232 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14233 Fix typos in docstrings.
14234
142352008-05-29 Kenichi Handa <handa@m17n.org>
14236
14237 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14238 (Fx_family_fonts): Set frame correctly.
14239
142402008-05-28 Jason Rumney <jasonr@gnu.org>
14241
14242 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14243
142442008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14245
14246 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14247 calling build_annotations.
14248
142492008-05-28 Juanma Barranquero <lekktu@gmail.com>
14250
14251 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14252 (Fencode_coding_string):
14253 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14254 <latin-extra-code-table>: Fix typos in docstrings.
14255 (syms_of_coding) <coding-system-alist>: Doc fix.
14256 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14257
142582008-05-28 Kenichi Handa <handa@m17n.org>
14259
14260 * fontset.c (Ffont_info): Don't call font_close_object.
14261
14262 * font.c (font_parse_family_registry): Use Ffont_put to validate
14263 foundry and family.
14264 (font_delete_unmatched): Don't check spacing.
14265 (font_list_entities): Add spacing to the spec to list fonts.
14266
14267 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14268 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14269
14270 * coding.c (encode_coding_raw_text): Fix previous change.
14271 (encode_coding_object): When the dst_object is a buffer and is
14272 different from src_object, move gap to PT.
14273
142742008-05-27 Chong Yidong <cyd@stupidchicken.com>
14275
14276 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14277
142782008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14279
14280 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14281 all branches. Compute it differently.
14282
14283 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14284
142852008-05-27 Juanma Barranquero <lekktu@gmail.com>
14286
14287 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14288 into "else if () ... else ...".
14289
142902008-05-27 Jason Rumney <jasonr@gnu.org>
14291
14292 * w32font.c (w32font_open_internal): Determine if glyph indices
14293 are likely to work here.
14294
142952008-05-27 Chong Yidong <cyd@stupidchicken.com>
14296
14297 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14298 draw overlap glyphs with appropriate highlighting.
14299
143002008-05-27 Kenichi Handa <handa@m17n.org>
14301
14302 * xfont.c (xfont_open): Fix calculation of font->average_width.
14303
143042008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14305
14306 * casefiddle.c (casify_object): Try to guess better whether the
14307 argument is a byte or a char.
14308
143092008-05-26 Andreas Schwab <schwab@suse.de>
14310
14311 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14312 Always send multiples of format size.
14313
14314 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14315
143162008-05-26 Jason Rumney <jasonr@gnu.org>
14317
14318 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14319 (compute_metrics): Don't set failure if we just cleared the cache.
14320 (w32_weight_table): Remove unused variable.
14321 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14322 backwards compatibility.
14323
143242008-05-25 Kenichi Handa <handa@m17n.org>
14325
14326 * w32term.c (x_draw_glyph_string):
14327 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14328
14329 * xfaces.c: Delete unused function prototypes.
14330 (xstrlwr, font_frame): Delete them.
14331 (clear_face_cache): Delete unused variable.
14332
14333 * xftfont.c (xftfont_open): Delete unused variable.
14334 If underline_thickness is not 1, adjust underline_position.
14335
14336 * ftxfont.c (ftxfont_open): Delete unused variable.
14337
14338 * fontset.c (face_for_char): Optimize for the case of no charset
14339 property.
14340
14341 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14342 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14343 (otf_open, font_otf_capability, generate_otf_features)
14344 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14345 Comment out by surrounding "#if 0" and "#endif" for the moment.
14346 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14347 (syms_of_font): Codes for accessing above commented out.
14348
143492008-05-24 Eli Zaretskii <eliz@gnu.org>
14350
14351 * w32proc.c: Include dispextern.h.
14352
14353 * w32.c: Include dispextern.h.
14354
143552008-05-23 Juanma Barranquero <lekktu@gmail.com>
14356
14357 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14358 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14359 Fix typos in docstrings.
14360
143612008-05-23 Jason Rumney <jasonr@gnu.org>
14362
14363 * xsmfns.c: Remove includes that are already included by config.h.
14364
143652008-05-23 Kenichi Handa <handa@m17n.org>
14366
14367 * charset.c (Qemacs, charset_emacs): New variables.
14368 (char_charset): Fix for non-Unicode characters.
14369 (syms_of_charset): Define charset_emacs.
14370
14371 * w32term.c (x_draw_glyph_string): Be sure to update
14372 s->underline_thickness and s->underline_position. Be sure to draw
14373 underline within the current line area.
14374
14375 * xterm.c (x_draw_glyph_string): Be sure to update
14376 s->underline_thickness and s->underline_position. Be sure to draw
14377 underline within the current line area.
14378
14379 * fontset.c: Delete unused variables and add casting for char *
14380 throughout the file.
14381 (fontset_font): Try the fallback fonts of the current fontset
14382 before consulting the default fontset.
14383
14384 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14385
14386 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14387
143882008-05-22 Jason Rumney <jasonr@gnu.org>
14389
14390 * font.c: Don't include strings.h.
14391
14392 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14393
14394 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14395 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14396 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14397 to call xstrcasecmp.
14398
14399 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14400
14401 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14402
14403 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14404
14405 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14406
144072008-05-22 Kenichi Handa <handa@m17n.org>
14408
14409 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14410
14411 * font.c (font_prop_validate_style): Adjust for the format
14412 change of font_style_table.
14413
14414 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14415 two args.
14416
14417 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14418 two args.
14419
144202008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14421
14422 * minibuf.c (keys_of_minibuf): Delete.
14423 * lisp.h (keys_of_minibuf): Delete.
14424 * emacs.c (main): Don't call keys_of_minibuf.
14425
144262008-05-22 Kenichi Handa <handa@m17n.org>
14427
14428 * ftfont.c (ftfont_resolve_generic_family): Rename from
14429 ftfont_list_generic_family. Return a single family for each
14430 generic family.
14431 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14432 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14433 Call font_add_log.
14434 (ftfont_match): Call font_add_log.
14435
14436 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14437 (FONT_DEBUG): Define it.
14438 (font_add_log): Extern it.
14439 (font_assert): Rename from xassert.
14440
14441 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14442 (xfont_list_family): Call font_add_log.
14443 (xfont_match): Likewise.
14444 (memq_no_quit): Delete.
14445
14446 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14447 call of Ffont_xlfd_name.
14448
14449 * xfaces.c (struct table_entry, slant_table, weight_table)
14450 (swidth_table): Move to font.c.
14451
14452 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14453 xassert are changed to font_assert. Delete many unused variables.
14454 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14455 New variables.
14456 (struct table_entry): Move from xfaces.c and modified.
14457 (weight_table, slant_table, width_table): Move from xfaces.c and
14458 contents adjusted for the change of struct table_entry.
14459 (font_style_to_value, font_style_symbolic): Adjust for the
14460 format change of font_style_table.
14461 (font_parse_family_registry): Don't overwrite existing foundry and
14462 family of font_spec.
14463 (font_score): Fix calculation of diff for sizes.
14464 (font_sort_entites): Call font_add_log.
14465 (font_delete_unmatched): Return a newly created list.
14466 (font_list_entities): Fix previous change. Call font_add_log.
14467 (font_matching_entity, font_open_entity, font_close_entity):
14468 Call font_add_log.
14469 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14470 (Finternal_set_font_style_table): Delete.
14471 (BUILD_STYLE_TABLE): New macro.
14472 (build_style_table): New function.
14473 (Vfont_log, font_log_env_checked): New variables.
14474 (font_add_log): New function.
14475 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14476 Declare Lisp variables "font-weight-table", "font-slant-table",
14477 "font-width-table", and "font-log". Initialize font_style_table.
14478
144792008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14480
14481 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14482
144832008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14484 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14485
14486 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14487 (Vframe_alpha_lower_limit): New variable.
14488 (x_set_alpha): New function.
14489
14490 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14491
14492 * xfns.c (x-create-frame, Qalpha):
14493 Initialize the frame parameter `alpha'.
14494 * xterm.c (OPAQUE, OPACITY): New.
14495 (x_set_frame_alpha): New function.
14496 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14497
14498 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14499 * w32fns.c (w32_frame_parm_handlers): Likewise.
14500
145012008-05-20 Jason Rumney <jasonr@gnu.org>
14502
14503 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14504 truetype fonts to opentype list.
14505
145062008-05-20 Juanma Barranquero <lekktu@gmail.com>
14507
14508 * fontset.c (Ffontset_info): Doc fix.
14509 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14510 <ignore-relative-composition>: Fix typos in docstrings.
14511
14512 * font.c (syms-of-font) <font-encoding-alist>:
14513 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14514 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14515 (Ffont_otf_alternates): Doc fixes.
14516
145172008-05-20 Kenichi Handa <handa@m17n.org>
14518
14519 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14520 font.h through out the file.
14521 (FONT_DRIVERS): Rename from FONTOBJ.
14522 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14523 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14524
14525 * emacs.c (main): Call syms_of_font unconditionally.
14526
14527 * font.h (find_font_encoding): Extern it.
14528
14529 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14530 fontset.c.
194d44e7 14531 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14532 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14533 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14534 only when HAVE_WINDOW_SYSTEM is defined.
14535 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14536 when HAVE_WINDOW_SYSTEM is defined.
14537
14538 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14539 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14540
14541 * xfaces.c: Include font.h unconditionally.
14542 (merge_face_ref, merge_face_vectors)
14543 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14544
145452008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14546
14547 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14548 indirect_variable.
14549 * eval.c (lisp_indirect_variable): New fun.
14550 (Fuser_variable_p): Use it.
14551
145522008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14553
14554 * lisp.h (indirect_variable):
14555 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14556 Use Lisp_Symbol pointers rather than Lisp_Object.
14557 Adjust callers.
14558 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14559 To this end, change calling-convention.
14560
14561 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14562 if some non-hidden buffers are selected by string&pred.
14563
145642008-05-19 Chong Yidong <cyd@stupidchicken.com>
14565
14566 * process.c (wait_reading_process_output): Always check status
14567 when in batch mode.
14568
145692008-05-19 Kenichi Handa <handa@m17n.org>
14570
14571 * font.c (font_list_entities): Fix handling of cache.
14572 (font_matching_entity): Likewise.
14573
14574 * ftfont.c (cs_iso8859_1): Delete.
14575 (ft_face_cache): New variable.
14576 (struct ftfont_info): New member fc_charset_idx.
14577 (ftfont_build_basic_charsets): Delete.
14578 (fc_charset_table): New variable.
14579 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14580 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14581 Callers changed.
14582 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14583 (ftfont_spec_pattern): New argument fc_charset_idx.
14584 Check registry more rigidly. Change callers.
14585 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14586 change of :font-entity property of the font.
14587
14588 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14589 property of the font.
14590
145912008-05-18 Juanma Barranquero <lekktu@gmail.com>
14592
14593 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14594 (Funencodable_char_position, Fcheck_coding_systems_region)
14595 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14596 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14597 (Ffind_operation_coding_system, Fset_coding_system_priority)
14598 (Fcoding_system_eol_type): Doc fixes.
14599
146002008-05-17 Glenn Morris <rgm@gnu.org>
14601
14602 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14603
146042008-05-16 Eli Zaretskii <eliz@gnu.org>
14605
14606 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14607 and st_gid.
14608
14609 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14610 HAVE_WINDOW_SYSTEM is not defined.
14611
14612 * xfaces.c (merge_face_ref, merge_face_vectors)
14613 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14614 HAVE_WINDOW_SYSTEM is defined.
14615 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14616
146172008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14618
14619 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14620
146212008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14622
14623 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14624
146252008-05-15 Kenichi Handa <handa@m17n.org>
14626
14627 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14628 preference.
14629
146302008-05-15 Glenn Morris <rgm@gnu.org>
14631
14632 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14633
146342008-05-15 Chong Yidong <cyd@stupidchicken.com>
14635
14636 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14637 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14638
14639 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14640
146412008-05-15 Kenichi Handa <handa@m17n.org>
14642
14643 * ftfont.c (ftfont_list): Downcase family name to check generic
14644 families.
14645
14646 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14647 font-spec for QCfont value.
14648
14649 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14650 buffer. Check the return value of it.
14651
146522008-05-14 Jason Rumney <jasonr@gnu.org>
14653
14654 * w32term.c (w32_get_glyph_overhangs): Remove.
14655 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14656
146572008-05-14 Kenichi Handa <handa@m17n.org>
14658
14659 * font.c (font_prop_validate): Make nil a valid value.
14660 (font_clear_cache): Check if the cached vector of entities is nil
14661 or not.
14662
146632008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14664
14665 * emacs.c (main_thread): Conditionalize on
14666 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14667 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14668
14669 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14670 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14671 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14672
146732008-05-14 Kenichi Handa <handa@m17n.org>
14674
14675 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14676 has no corresponding coding system.
14677
146782008-05-14 Jason Rumney <jasonr@gnu.org>
14679
14680 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14681
14682 * w32font.h (w32font_open_internal): Update declaration.
14683
14684 * w32font.c (w32font_open_internal): Change last argument from
14685 w32font_info struct to font object. Fill in font object from
14686 font_entity. Get Outline metrics if possible. Use them to
14687 calculate underline position and thickness. Use xlfd name as name
14688 property. Don't set codepage.
14689 (w32font_open): Pass font_object to w32font_open_internal. Don't
14690 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14691 (w32font_draw): Use s->font.
14692 (clear_cached_metrics): Don't clear non-existent blocks.
14693
14694 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14695 font was not found.
14696 (x_draw_glyph_string): Use underline position and thickness from font.
14697
14698 * w32uniscribe.c (uniscribe_open): Pass font_object to
14699 w32font_open_internal.
14700
147012008-05-14 Kenichi Handa <handa@m17n.org>
14702
14703 These changes are to delete all legacy font-handling codes, and
14704 make Emacs use only font-backends.
14705
14706 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14707 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14708
14709 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14710
14711 * charset.h (Vcharset_non_preferred_head)
14712 (Vcurrent_iso639_language): Extern them.
14713
14714 * charset.c (Vcharset_non_preferred_head): New variable.
14715 (Vcurrent_iso639_language): New variable.
14716 (syms_of_charset): Declare it as a Lisp variable.
14717 (char_charset): Don't check non preferred charsets. As a last
14718 resort, return charset_unicode.
14719 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14720
14721 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14722 conditionals. Don't check enable_font_backend. Delete all codes
14723 used only when USE_FONT_BACKEND is not defined.
14724
14725 * dispextern.h (struct glyph_string): Change type of `font' to
14726 `struct font *'.
14727 (struct glyph_string): New member underline_position and
14728 underline_thickness.
14729 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14730 (struct face): Change type of `font' to `struct font *'. Remove
14731 members `font_name', `font_info_id'.
14732 (per_char_metric, encode_char): Delete externs.
14733 (calc_pixel_width_or_height): Adjust the prototype.
14734
14735 * emacs.c (enable_font_backend): Delete extern.
14736 (main): Don't set enable_font_backend. Don't check the command
14737 line argument "-disable-font-backend".
14738
14739 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14740 (enum font_property_index): New members FONT_DPI_INDEX,
14741 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14742 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14743 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14744 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14745 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14746 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14747 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14748 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14749 (struct font_spec, struct font_entity): New structs.
14750 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14751 (struct font): Many members from old "struct font_info" moved to
14752 here. Members font and entity deleted.
14753 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14754 the new font-related objects.
14755 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14756 (CHECK_FONT_GET_OBJECT): Likewise.
14757 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14758 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14759 (struct font_driver): New members case_sensitive anc check. Type
14760 of the member list and open changed.
14761 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14762 (font_symbolic_width, font_find_object, font_get_spec)
14763 (font_set_lface_from_name): Delete extern.
14764 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14765
14766 * font.c: Include <strings.h>.
14767 (enable_font_backend): Delete it.
14768 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14769 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14770 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14771 (null_string): Delete it.
14772 (null_vector): Make it static.
14773 (font_family_alist): Delete it.
14774 (Qnormal): Extern it.
14775 (QCextra, QClanguage): Delete it.
14776 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14777 (font_make_spec, font_make_entity, font_make_object)
14778 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14779 the string. Callers changed.
14780 (font_pixel_size): Adjusted for the format change of font-related
14781 objects.
14782 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14783 (font_style_to_value, font_style_symbolic): New function.
14784 (build_font_family_alist): Delete it.
14785 (font_registry_charsets): Use Fassoc_string instead of
14786 assq_no_quit.
14787 (font_prop_validate_symbol): Don't return null_string.
14788 (font_prop_validate_style): Adjusted for the change of
14789 style-related values in a font vector.
14790 (font_property_table): Delete entries for QClanguage and
14791 QCantialias, add entries for QCavgwidth.
14792 (get_font_prop_index): Delete the 2nd argument FROM.
14793 (font_prop_validate): Arguments changed.
14794 (font_put_extra): Adjusted for the change of font-related objects.
14795 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14796 (font_parse_fcname, font_unparse_fcname)
14797 (font_prepare_composition): Likewise.
14798 (font_parse_family_registry): Renamed from font_merge_old_spec.
14799 (otf_open): Delete the 1st arg entity.
14800 (font_otf_capability): Adjusted for the above change.
14801 (font_score): New arg alternate_families. Adjusted for the change
14802 of font-related objects.
14803 (font_sort_entites): New arg best_only.
14804 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14805 Delete them.
14806 (font_match_p): Check alternate families.
14807 (font_find_object): Delete it.
14808 (font_check_object): New function.
14809 (font_clear_cache): Adjusted for the change of font-related objects.
14810 (font_delete_unmatched): New arg.
14811 (font_list_entities): Call font_driver->list with a spec that
14812 doesn't specify style-related properties.
14813 (font_matching_entity): Arguments changed. Caller changed.
14814 (font_open_entity): Adjusted for the change of font-related objects.
14815 (font_close_object, font_has_char, font_encode_char)
14816 (font_get_name, font_get_spec): Likewise.
14817 (font_spec_from_name, font_clear_prop, font_update_lface):
14818 New functions.
14819 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14820 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14821 (font_at): Adjusted for the change of font-related objects.
14822 (font_range): New function.
14823 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14824 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14825 (Fcopy_font_spec, Fmerge_font_spec): New function.
14826 (Ffont_family_list): Renamed from list-families.
14827 (Finternal_set_font_style_table): Arguments changed.
14828 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14829 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14830 change of font-related objects.
14831 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14832
14833 * fontset.h (struct font_info): Delete it. Most members go to
14834 struct font.
14835 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14836 (enum FONT_SPEC_INDEX): Delete it.
14837 (font_info, list_fonts_func, load_font_func, query_font_func)
14838 (set_frame_fontset_func, find_ccl_program_func)
14839 (get_font_repertory_func, new_fontset_from_font_name): Delete
14840 externs.
14841 (fontset_from_font_name): Extern it.
14842 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14843 (FONT_INFO_FROM_FACE): Deleted.
14844 (face_for_font): Adjust prototype.
14845
14846 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14847 conditionals. Don't check enable_font_backend. Delete all codes
14848 used only when USE_FONT_BACKEND is not defined.
14849 (get_font_info_func, list_font_func, load_font_func)
14850 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14851 (get_font_repertory_func): Delete them.
14852 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14853 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14854 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14855 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14856 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14857 (fontset_compare_rfontdef): New function.
14858 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14859 rfont-defs by qsort. Adjusted for the change of font-group vector.
14860 (load_font_get_repertory): Deleted.
14861 (fontset_find_font): Use new macros to ref/set elements of
14862 font-def and rfont-def.
14863 (fontset_font): Fix the timing of remembering that no font for C.
14864 (free_face_fontset): Do nothing if the face has no fontset.
14865 (face_suitable_for_char_p): Use new macros to ref/set elements of
14866 rfont-def.
14867 (face_for_char): Likewise. Call face_for_char with font_object.
14868 (fs_load_font): Delete. Delete #pragma surrounding it.
14869 (fs_query_fontset): Use strcasecmp instead of strcmp.
14870 (generate_ascii_font_name): Adjusted for the format change of
14871 font-spec.
14872 (Fset_fontset_font): Likewise. Use new macros to set elements of
14873 font-def.
14874 (Fnew_fontset): Use font_unparse_xlfd to generate
14875 FONTSET_ASCII (fontset).
14876 (new_fontset_from_font_name): Deleted.
14877 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14878 a fontset is already created for the font. FIx updating of
14879 Vfontset_alias_alist.
14880 (fontset_ascii_font): Deleted.
14881 (Ffont_info): Adjusted for the format change of font-spec.
14882 (Finternal_char_font): Likewise.
14883 (Ffontset_info): Likewise.
14884 (syms_of_fontset): Don't check load_font_func.
14885
14886 * fns.c (internal_equal): Handle PREV_FONT.
14887
14888 * frame.h: Delete USE_FONT_BACKEND conditional.
14889
14890 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14891 conditionals. Don't check enable_font_backend. Delete all codes
14892 used only when USE_FONT_BACKEND is not defined.
14893 (x_set_font): Call x_new_font, not x_new_fontset2.
14894 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14895 already set for the frame.
14896
14897 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14898 a font-entity by font_make_entity. Use font_intern_prop instead
14899 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14900 font property. If a font is scalable, set avgwidth property to 0.
14901 Set font-entity property by font_put_extra.
14902 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14903 (ffont_driver): Adjusted for the change of struct font_driver.
14904 (ftfont_spec_pattern): New function.
14905 (ftfont_list): Return a list, not vector.
14906 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14907 (ftfont_list_family): Don't downcase names.
14908 (ftfont_free_entity): Deleted.
14909 (ftfont_open): Return a font-object. Adjusted for the change of
14910 struct font. Get underline_thickness and underline_position from
14911 font property. Don't update dpyinfo->smallest_font_height and
14912 dpyinfo->smallest_char_width.
14913 (ftfont_close): Don't free `struct font'.
14914 (ftfont_has_char): Adjusted for the format change of font-entity.
14915 (ftfont_encode_char, ftfont_text_extents): Likewise.
14916
14917 * ftxfont.c (ftxfont_list): Return a list, not vector.
14918 (ftxfont_open): Return a font-object. Adjusted for the change of
14919 struct font. Get underline_thickness and underline_position from
14920 font property. Don't update dpyinfo->smallest_font_height and
14921 dpyinfo->smallest_char_width.
14922 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14923 (ftxfont_draw): Adjusted for the change of struct font.
14924
14925 * image.c (image_ascent): Don't include "charset.h". Include
14926 "character.h" and "font.h".
14927
14928 * lisp.h (enum pvec_type): New member PREV_FONT.
14929 (Fassoc_string): EXFUN it.
14930
14931 * print.c: Include font.h.
14932 (print_object): Handle font-related objects.
14933
14934 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14935 conditionals. Don't check enable_font_backend. Delete all codes
14936 used only when USE_FONT_BACKEND is not defined.
14937 (handle_auto_composed_prop): Do nothing if it->f is not on a
14938 window system. Check how many following characters can be
14939 displayed by the same font.
14940 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14941 'struct font *'.
14942 (get_char_face_and_encoding): Assign the whole encoding task to
14943 the `encode-char' method of a font driver.
14944 (fill_composite_glyph_string): Adjusted for the change of `struct
14945 face' and `struct glyph_string'.
14946 (fill_glyph_string): Likewise.
14947 (get_per_char_metric): Arguments changed.
14948 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14949 and `struct glyph_string'.
14950 (produce_stretch_glyph, calc_line_height_property)
14951 (x_produce_glyphs): Likewise.
14952
14953 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14954 conditionals. Don't check enable_font_backend. Delete all codes
14955 used only when USE_FONT_BACKEND is not defined. Use
14956 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14957 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14958 (Qp): Extern them.
14959 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14960 Deleted.
14961 (struct font_name): Deleted.
14962 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14963 (compare_fonts_by_sort_order): New function.
14964 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14965 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14966 Deleted.
14967 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14968 compare_fonts_by_sort_order.
14969 (Fx_font_family_list): Call Ffont_family_list.
14970 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14971 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14972 (face_symbolic_slant, face_symbolic_swidth)
14973 (split_font_name_into_vector, build_font_name_from_vector)
14974 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14975 (font_rescale_ratio, split_font_name, build_font_name)
14976 (free_font_names, sort_fonts, x_face_list_fonts)
14977 (face_font_available_p, sorted_font_list, cmp_font_names)
14978 (font_list_1, concat_font_list, font_list, remove_duplicates):
14979 Deleted.
14980 (Fx_list_fonts): Use Ffont_list.
14981 (LFACE_AVGWIDTH): Deleted.
14982 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14983 by FONTP.
14984 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14985 (set_lface_from_font_name): Delete it.
14986 (set_lface_from_font): Renamed from
14987 set_lface_from_font_and_fontset. Caller changed. Don't set
14988 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14989 for face.
14990 (merge_face_vectors): Copy font-spec if necessary.
14991 Clear properties of the font-spec if necessary.
14992 (merge_face_ref): Clear properties of the font-spec if necessary.
14993 (Finternal_set_lisp_face_attribute): Likewise.
14994 (set_font_frame_param): Use font_load_for_lface to load a
14995 font-object, and call Fmodify_frame_parameters with it.
14996 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14997 font name by Ffont_xlfd_name.
14998 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14999 QCslant, and QCwidth.
15000 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15001 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15002 Compare fonts by EQ.
15003 (lookup_non_ascii_face): Deleted.
15004 (face_for_font): The 2nd argument changed.
15005 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15006 Check atomic font properties by case insensitive.
15007 (realize_non_ascii_face): Set face->overstrike correctly.
15008 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15009 (dump_realized_face): Get font name from
15010 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15011
15012 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15013 conditionals. Don't check enable_font_backend. Delete all codes
15014 used only when USE_FONT_BACKEND is not defined.
15015 (xic_create_xfontset): Original code deleted and renamed from
15016 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15017 (x_make_gc): Don't set GCFont in GCs.
15018 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15019 opened by "fixed".
15020 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15021 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15022 get_font_repertory_func.
15023
15024 * xfont.c: Include <stdlib.h> and "ccl.h".
15025 (struct xfont_info): New structure.
15026 (xfont_query_font): Deleted.
15027 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15028 moved from xterm.c.
15029 (xfont_driver): Adjusted for the change of struct font_driver.
15030 (compare_font_names): New function.
15031 (xfont_list_pattern): Sort font names case insensitively. Make
15032 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15033 (xfont_list): Return a list, not vector.
15034 (xfont_match): If the font doesn't have QCname property, generate
15035 a name from the other font properties.
15036 (xfont_open): Return a font-object. Adjusted for the change of
15037 struct font. Get underline_thickness and underline_position from
15038 font property. Don't update dpyinfo->smallest_font_height and
15039 dpyinfo->smallest_char_width.
15040 (xfont_close): Don't free struct font.
15041 (xfont_prepare_face): Adjusted for the change of struct font.
15042 (xfont_done_face): Deleted.
15043 (xfont_has_char): Adjusted for the change of struct font.
15044 (xfont_encode_char, xfont_draw): Likewise.
15045 (xfont_check): New function.
15046
15047 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15048 callback function.
15049 (xftfont_match): Adjusted for the format change of font-entity.
15050 (xftfont_open): Adjusted for the format change of font-entity and
15051 font-object. Adjusted for the change of struct font. Return a
15052 font-object. Don't update dpyinfo->smallest_font_height and
15053 dpyinfo->smallest_char_width.
15054 (xftfont_close): Block input while calling XftFontClose.
15055 (xftfont_prepare_face): Don't block input while calling
15056 xftfont_get_colors. Adjusted for the change of struct font.
15057 (xftfont_shape): Return value of error case fixed.
15058
15059 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15060
15061 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15062 conditionals.
15063 (FONT_WIDTH): Return (f)->max_width.
15064 (struct x_display_info): Delete member `font'.
15065 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15066 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15067 (struct x_output): Change type of `font' to `struct font *'.
15068
15069 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15070 conditionals. Don't check enable_font_backend. Delete all codes
15071 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15072 (x_per_char_metric, x_encode_char): Deleted.
15073 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15074 (x_compute_glyph_string_overhangs): Adjusted for the change of
15075 `struct face'.
15076 (x_draw_glyph_string_foreground)
15077 (x_draw_composite_glyph_string_foreground): Likewise.
15078 (x_draw_glyph_string): Likewise. Use font->underline_position and
15079 font->underline_thickness.
15080 (x_new_font): Renamed from x_new_fontset2.
15081 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15082 (x_check_font): Call `check' method of a font driver.
15083 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15084 (x_query_font, x_get_font_repertory): Deleted.
15085 (x_find_ccl_program): Renamed and moved to xfont.c.
15086 (x_redisplay_interface): Adjusted for the change of `struct
15087 redisplay_interface'.
15088
15089 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15090 conditionals. Don't check enable_font_backend. Delete all codes
15091 used only when USE_FONT_BACKEND is not defined. Surround non-used
15092 code by "#ifdef OLD_FONT" and "endif".
15093 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15094
15095 * w32font.h (struct w32font_info): New member.
15096 (FONT_COMPAT): New macro.
15097 (w32font_open_internal): Prototype adjusted.
15098
15099 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15100 OLD_FONT" and "endif".
15101
15102 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15103 conditionals. Don't check enable_font_backend. Delete all codes
15104 used only when USE_FONT_BACKEND is not defined.
15105 (w32font_open): Return a font-object. Make a font-object by
15106 font_make_object. Adjusted for the change of struct w32font_info.
15107 (w32font_close): Don't free struct font. Adjusted for the change
15108 of struct w32font_info.
15109 (w32font_encode_char, w32font_text_extents, w32font_draw):
15110 Adjusted for the change of struct w32font_info.
15111 (w32font_draw): Likewise.
15112 (w32font_list_internal): Return a list, not vector.
15113 (w32font_open_internal): Change the 4th arg to font-object.
15114 Adjusted for the change of struct w32font_info and font-object format.
15115 (add_font_name_to_list): Don't downcase names.
15116 (w32_enumfont_pattern_entity): Make a font-entity by
15117 font_make_entity. Adjusted for the format change of font-entity.
15118 Use FONT_SET_STYLE to set a style-related font property. If a
15119 font is scalable, set avgwidth property to 0. Set font-entity
15120 property by font_put_extra.
15121 (font_matches_spec): Adjusted for the format change of font-entity.
15122 (w32_weight_table, w32_decode_weight): New variables.
15123 (w32_encode_weight): New function.
15124 (fill_in_logfont): Adjusted for the format change of font-spec.
15125 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15126 weight value.
15127 (w32font_driver): Adjusted for the change of struct font_driver.
15128
15129 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15130 conditionals. Don't check enable_font_backend. Surround non-used
15131 code by "#ifdef OLD_FONT" and "endif".
15132 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15133 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15134
15135 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15136 conditionals. Don't check enable_font_backend. Delete all codes
15137 used only when USE_FONT_BACKEND is not defined. Surround non-used
15138 code by "#ifdef OLD_FONT" and "endif".
15139
15140 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15141 (uniscribe_open): Return value changed to font-object.
15142 Adjusted for the format change of font-object.
15143 (uniscribe_otf_capability): Adjusted for the change of struct font.
15144 (add_opentype_font_name_to_list): Don't downcase names.
15145 (uniscribe_font_driver): Adjusted for the change of struct
15146 font_driver.
15147
151482008-05-13 Chong Yidong <cyd@stupidchicken.com>
15149
15150 * dispnew.c (update_frame_1): Check if tty output is still valid
15151 before flushing it.
15152
151532008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15154
15155 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15156 to Gtk+ menus.
15157
151582008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15159
15160 * dired.c (file_name_completion): Tweak the code so as to always do it
15161 in a single pass. Tighten the scope of some variables.
15162
15163 * dired.c (Qdefault_directory): New var.
15164 (file_name_completion): Use it instead of Fexpand_file_name.
15165 (syms_of_dired): Initialize it.
15166
151672008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15168
15169 * fileio.c (double_dollars): Remove dead code.
15170
151712008-05-10 Eli Zaretskii <eliz@gnu.org>
15172
15173 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15174 Mention w32-get-true-file-attributes in doc string.
15175
15176 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15177
151782008-05-09 Glenn Morris <rgm@gnu.org>
15179
15180 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15181 2008-04-23.
15182
151832008-05-09 Eli Zaretskii <eliz@gnu.org>
15184
15185 Support for reporting owner and group of each file on MS-Windows:
15186 * dired.c (stat_uname, stat_gname): New functions, with special
15187 implementation for w32.
15188 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15189
15190 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15191 (dflt_group_name): New static variable.
15192 (dflt_group): Rename from the_group.
15193 (init_user_info): Init dflt_group fields. Get user's group name
15194 from LookupAccountSid.
15195 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15196 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15197 New initialization states.
15198 (globals_of_w32): Initialize them to zero. Initialize the default
15199 group name to "None".
15200 (GetFileSecurity_Name): New global var, the name of the function
15201 to call for GetFileSecurity.
15202 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15203 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15204 (get_file_security, get_security_descriptor_owner)
15205 (get_security_descriptor_group, is_valid_sid)
15206 (get_file_security_desc, get_rid, get_name_and_id)
15207 (get_file_owner_and_group): New functions.
15208 (stat): Use get_file_security_desc and get_file_owner_and_group to
15209 report the owner and primary group of each file. Don't ignore the
15210 high 32 bits of file's size, now that st_size is 64-bit wide.
15211 Fix test when to get true file attributes.
15212 (init_user_info): Use get_rid instead of equivalent inline code.
15213 (fstat): Don't ignore the high 32 bits of file's size.
15214
152152008-05-09 Chong Yidong <cyd@stupidchicken.com>
15216
15217 * image.c (png_load): Use correct bit-depth for setting background
15218 color.
15219
152202008-05-08 Eli Zaretskii <eliz@gnu.org>
15221
15222 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15223 epa-hook.elc.
15224
152252008-05-08 Juanma Barranquero <lekktu@gmail.com>
15226
15227 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15228
152292008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15230
15231 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15232 because the original parameters are in pure storage now.
15233 (mac_window): Remove unused params. Update callers.
15234
152352008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15236
15237 * lread.c (substitute_object_recurse): Use lower-level primitives.
15238 Don't signal errors when traversing sub-char-tables.
15239 Don't loop over all the possible characters when traversing char-tables.
15240
15241 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15242 just like we do in print.c.
15243
152442008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15245
15246 * minibuf.c (Ftry_completion): Remove code left over from when we used
15247 scmp instead of Fcompare_strings.
15248
152492008-05-04 Juanma Barranquero <lekktu@gmail.com>
15250
15251 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15252
152532008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15254
15255 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15256 Create bitmap context in native byte order.
15257
15258 * macterm.c (XDrawLine)
15259 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15260 context in native byte order.
15261
152622008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15263
15264 * config.in: Regenerate.
15265
15266 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15267 New definitions for Image I/O support.
15268 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15269 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15270 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15271 (mac_data_provider_release_data, image_load_image_io)
15272 [USE_MAC_IMAGE_IO]: New functions.
15273 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15274 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15275 (init_image_func_pointer) [MAC_OSX]: Remove function.
15276 (image_load_quartz2d) [MAC_OSX]: Check availability of
15277 CGImageCreateWithPNGDataProvider at compile time.
15278 Use lowercase `false' for boolean constant.
15279 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15280 Use image_load_image_io.
15281 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15282 Don't check MyCGImageCreateWithPNGDataProvider.
15283 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15284 Don't call init_image_func_pointer.
15285
15286 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15287
15288 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15289 Make variable non-static.
15290 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15291 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15292
15293 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15294 (RED_FROM_ULONG): Mask off higher bits.
15295 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15296
15297 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15298 Include AvailabilityMacros.h.
15299 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15300 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15301
153022008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15303
15304 * chartab.c (Fset_char_table_range): If range is t, really set all
15305 chars to that value.
15306
153072008-05-03 Eli Zaretskii <eliz@gnu.org>
15308
15309 * dired.c (Ffile_attributes): Don't allow the device number become
15310 negative.
15311
153122008-05-02 Daiki Ueno <ueno@unixuser.org>
15313
15314 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15315
153162008-05-02 Juri Linkov <juri@jurta.org>
15317
15318 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15319 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15320 DEFAULT argument as a list of default values in docstrings.
15321
153222008-05-01 Chong Yidong <cyd@stupidchicken.com>
15323
15324 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15325
153262008-05-01 Martin Rudalics <rudalics@gmx.at>
15327
15328 * dispnew.c (change_frame_size_1): Preserve small windows when
15329 shrinking frames by calling set_window_height|width with third
15330 arg 2.
15331
15332 * window.h (struct window): Replace field too_small_ok by field
15333 resize_proportionally.
15334
15335 * window.c (make_window): Initialize resize_proportionally.
15336 (enlarge_window): Temporarily set resize_proportionally to make
15337 sure that shrink_windows does scale the window proportionally.
15338 (shrink_windows): When window has resize_proportionally set try
15339 to shrink it proportionally by stealing from other windows.
15340 (struct saved_window, Fset_window_configuration)
15341 (compare_window_configurations): Handle resize_proportionally.
15342 (WINDOW_TOTAL_SIZE): New macro.
15343 (window_min_size, shrink_windows, size_window): Use it.
15344 (check_min_window_sizes): Remove. Invalid values of
15345 window-min-height|width are handled by window_min_size_2 now.
15346 (size_window, Fsplit_window, enlarge_window)
15347 (adjust_window_trailing_edge, grow_mini_window): Don't call
15348 check_min_window_sizes.
15349 (window_min_size_2, window_min_size_1, window_min_size):
15350 New argument safe_p for retrieving "safe" minimum sizes.
15351 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15352 (adjust_window_trailing_edge, grow_mini_window):
15353 Adjust arguments of window_min_size... functions.
15354 (shrink_windows): Argument min_size removed. New argument
15355 safe_p allows shrinking windows to their safe minimum sizes.
15356 Calculate minimum size and decide whether a window shall be
15357 deleted for each window individually.
15358 (size_window): When nodelete_p equals 2, tell shrink_windows to
15359 delete windows only if their new minimum size is no more safe.
15360 (shrink_window_lowest_first): Call window_min_size_1 to make
15361 sure to preserve modeline of bottom-most window when resizing
15362 the minibuffer.
15363 (Fset_window_configuration, Fcurrent_window_configuration)
15364 (compare_window_configurations): Do not handle
15365 window-min-height|width any more.
15366 (syms_of_window): Clarify window-min-height|width doc-strings.
15367
153682008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15369
15370 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15371 some more. Copy some of the code from Ftry_completions.
15372 Remove special case code that dates back to initial revision when the
15373 slash was only added when necessary and that can't trigger nowadays.
15374
153752008-04-27 Kenichi Handa <handa@m17n.org>
15376
15377 * font.c (font_prop_validate): Signal `error' instead of `font'.
15378
153792008-04-29 Jason Rumney <jasonr@gnu.org>
15380
15381 * w32fns.c (Fw32_battery_status): New defun.
15382 (syms_of_w32fns): Defsubr it.
15383
153842008-04-28 Andreas Schwab <schwab@suse.de>
15385
15386 * dired.c (file_name_completion): Fix another mixing of encoded
15387 and decoded names.
15388
153892008-04-28 Juanma Barranquero <lekktu@gmail.com>
15390
15391 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15392
153932008-04-27 Juanma Barranquero <lekktu@gmail.com>
15394
15395 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15396
153972008-04-27 Andreas Schwab <schwab@suse.de>
15398
15399 * dired.c (file_name_completion): Fix inappropriate mixing of
15400 encoded and decoded names.
15401
15402 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15403
15404 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15405
154062008-04-26 Eli Zaretskii <eliz@gnu.org>
15407
15408 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15409 2008-03-31, it's not needed anymore with `struct stat' definition
15410 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15411 for the same reasons.
15412
154132008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15414
15415 * m/sparc.h: Additional redefinitions for GNU/Linux.
15416
154172008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15418
15419 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15420 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15421 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15422 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15423 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15424 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15425 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15426 Likewise.
15427
15428 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15429 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15430 (mac_ax_number_of_characters): Add externs.
15431 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15432 [USE_MAC_TSM]: Likewise.
15433 (mac_handle_text_input_event) [MAC_OSX]:
15434 Handle kEventTextInputOffsetToPos for no active input area case.
15435 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15436 (mac_handle_document_access_event)
15437 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15438 (install_application_handler) [MAC_OSX]: Register handlers for
15439 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15440 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15441 Register mac_handle_document_access_event.
15442
15443 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15444 Make functions non-static.
15445
154462008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15447
15448 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15449 (read_file_name_completion_ignore_case, insert_default_directory)
15450 (Qdefault_directory): Move to minibuffer.el.
15451 (Fread_file_name): Call the new `read-file-name' instead.
15452
154532008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15454
15455 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15456 Make function non-static.
15457 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15458 Remove function.
15459 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15460 Move to mactoolbox.c.
15461 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15462
15463 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15464 (mac_rect_make): New macro.
15465
15466 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15467 instead of float.
15468 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15469 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15470 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15471 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15472 CGRectMake.
15473 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15474 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15475 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15476 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15477 instead of WindowRef in argument type.
15478 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15479 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15480 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15481 instead of DISPLAY. All uses changed.
15482 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15483 (x_calc_absolute_position): Simplify so as not to use
15484 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15485
15486 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15487 instead of WindowRef in argument type.
15488 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15489 [TARGET_API_MAC_CARBON]: Remove externs.
15490 (create_apple_event, mac_event_parameters_to_lisp)
15491 [TARGET_API_MAC_CARBON]: Add externs.
15492
15493 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15494 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15495 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15496 is clicked.
15497 (x_activate_menubar): Remove extern for saved_menu_event_location.
15498 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15499 Move from mac.c.
15500
155012008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15502
15503 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15504 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15505
155062008-04-23 Jason Rumney <jasonr@gnu.org>
15507
15508 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15509 attributes only for local files.
15510
15511 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15512 default to Qlocal.
15513
155142008-04-22 Juri Linkov <juri@jurta.org>
15515
15516 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15517 read-buffer-to-switch instead of using the letter "B".
15518
155192008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15520
15521 * fileio.c (Qdefault_directory): New variable.
15522 (Fread_file_name): Use it to pass `dir' to the completion functions.
15523
155242008-04-20 Chong Yidong <cyd@stupidchicken.com>
15525
15526 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15527
155282008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15529
15530 * keyboard.c (Vpre_help_message): Remove.
15531 (show_help_echo): Remove default C code.
15532
15533 * dired.c (directory_files_internal, file_name_completion):
15534 Only call ENCODE_FILE if the string is indeed decoded.
15535
155362008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15537
15538 * Makefile.in (TOOLKIT_DEFINES): Remove.
15539 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15540
155412008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15542
15543 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15544 (mactoolbox.o): New target.
15545
15546 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15547 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15548
15549 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15550 Use mac_set_frame_window_background instead of XSetWindowBackground.
15551 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15552 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15553 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15554 instead of SetWindowTitleWithCFString.
15555 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15556 Move function to mactoolbox.c.
15557 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15558 Use mac_set_window_modified instead of SetWindowModified.
15559 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15560 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15561 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15562 FrontNonFloatingWindow. Use mac_activate_window instead of
15563 ActivateWindow. Use mac_active_non_floating_window instead of
15564 ActiveNonFloatingWindow.
15565 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15566 Use mac_show_hourglass and mac_hide_hourglass.
15567 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15568 instead of GetGlobalMouse.
15569 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15570 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15571 Use mac_bring_window_to_front instead of BringToFront.
15572 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15573 mactoolbox.c.
15574 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15575 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15576 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15577 mactoolbox.c.
15578
15579 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15580 (XtPointer): Move typedef from macmenu.c.
15581 (enum button_type): Move enum from macmenu.c.
15582 (widget_value): Move typedef from macmenu.c.
15583 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15584 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15585 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15586 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15587 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15588 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15589 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15590 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15591 (Selection): Move typedef from macselect.c.
15592 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15593 macterm.c.
15594 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15595 (mac_is_window_collapsed, mac_bring_window_to_front)
15596 (mac_send_window_behind, mac_hide_window, mac_show_window)
15597 (mac_collapse_window, mac_front_non_floating_window)
15598 (mac_active_non_floating_window, mac_activate_window)
15599 (mac_move_window_structure, mac_move_window, mac_size_window)
15600 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15601
15602 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15603 (enum mac_menu_kind): Move enum to mactoolbox.c.
15604 (min_menu_id): Move variable to mactoolbox.c.
15605 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15606 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15607 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15608 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15609 [TARGET_API_MAC_CARBON]: Likewise.
15610 (XtPointer): Move typedef to macgui.h.
15611 (enum button_type): Move enum to macgui.h.
15612 (widget_value): Move typedef to macgui.h.
15613 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15614 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15615 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15616 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15617 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15618 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15619 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15620 (popup_activated_flag): Make variable non-static.
15621 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15622 (add_menu_item, fill_menu, dispose_menus):
15623 Move functions to mactoolbox.c.
15624 (restore_show_help_function, menu_target_item_handler)
15625 (install_menu_target_item_handler, mac_handle_dialog_event)
15626 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15627 [TARGET_API_MAC_CARBON]: Likewise.
15628 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15629 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15630 (find_and_call_menu_selection, name_is_separator): Make function
15631 non-static.
15632 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15633 to mactoolbox.c.
15634 (set_frame_menubar): Don't call install_menu_quit_handler.
15635 (menu_item_selection): New variable.
15636 (mac_menu_show): Use create_and_show_popup_menu.
15637 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15638 selection but set variable menu_item_selection. All uses changed.
15639 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15640 Call install_menu_quit_handler. Move to mactoolbox.c.
15641
15642 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15643 (Selection): Move typedef to macgui.h.
15644 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15645 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15646 Make variables non-static.
15647 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15648 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15649 Make functions non-static.
15650 (Vmac_service_selection) [MAC_OSX]: Likewise.
15651 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15652 (mac_valid_selection_target_p, mac_clear_selection)
15653 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15654 (mac_put_selection_value, mac_selection_has_target_p)
15655 (mac_get_selection_value, mac_get_selection_target_list)
15656 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15657 Move functions to mactoolbox.c.
15658 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15659 Likewise.
15660 (copy_scrap_flavor_data, mac_handle_service_event)
15661 (install_service_handler) [MAC_OSX]: Likewise.
15662 (syms_of_macselect) <Vmac_dnd_known_types>:
15663 Use mac_dnd_default_known_types.
15664
15665 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15666 Move to mactoolbox.c.
15667 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15668 (Fx_selection_owner_p): Add EXFUN.
15669 (install_window_handler, remove_window_handler, XSetWindowBackground):
15670 Remove externs.
15671 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15672 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15673 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15674 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15675 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15676 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15677 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15678 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15679 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15680 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15681 (mac_valid_selection_target_p, mac_clear_selection)
15682 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15683 (mac_put_selection_value, mac_selection_has_target_p)
15684 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15685 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15686 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15687 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15688 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15689 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15690 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15691 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15692 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15693
15694 * mactoolbox.c: New file.
15695
156962008-04-18 Jason Rumney <jasonr@gnu.org>
15697
15698 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15699
157002008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15701
15702 * character.c (Fmultibyte_char_to_unibyte):
15703 Return latin1 chars unchanged.
15704
15705 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15706 relocated if it points to `name'.
15707
157082008-04-17 Kenichi Handa <handa@m17n.org>
15709
15710 * data.c (Faset): Allow setting a multibyte character in an
15711 ASCII-only unibyte string.
15712
15713 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15714
157152008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15716
15717 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15718 done in config.h.
15719
157202008-04-16 Juanma Barranquero <lekktu@gmail.com>
15721
15722 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15723 (Fchar_direction): Add usage in the docstring.
15724
157252008-04-15 Chong Yidong <cyd@stupidchicken.com>
15726
15727 * keyboard.c (read_key_sequence): Remove always-true checks.
15728
157292008-04-14 Jason Rumney <jasonr@gnu.org>
15730
15731 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15732 compatibility struct, for better underline positioning.
15733
157342008-04-13 David Hansen <david.hansen@gmx.net>
15735
15736 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15737 string.
15738
157392008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15740
15741 * m/hp800.h (XUINT, XSET): Remove.
15742
157432008-04-12 Juanma Barranquero <lekktu@gmail.com>
15744
15745 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15746 previous change.
15747
157482008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15749
15750 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15751 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15752
157532008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15754
15755 * keymap.h (map_keymap_canonical): Declare.
15756 * xmenu.c (single_keymap_panes): Use it.
15757
157582008-04-11 Glenn Morris <rgm@gnu.org>
15759
15760 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15761 set the target's value to that of the alias.
15762
157632008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15764
15765 * term.c (set_tty_color_mode): Left over typo.
15766
157672008-04-10 Michael Albinus <michael.albinus@gmx.de>
15768
15769 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15770 only after check for file name handler functions. Signal, when
15771 native functionality is not supported.
15772 (syms_of_fileio): Declare it unconditionally.
15773
157742008-04-10 Jason Rumney <jasonr@gnu.org>
15775
15776 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15777 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15778
15779 * w32.c (logon_network_drive): Also logon to remote drives that
15780 are mapped to drive letters.
15781
157822008-04-10 Glenn Morris <rgm@gnu.org>
15783
15784 * xdisp.c (truncate-partial-width-windows): Doc fix.
15785
157862008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15787
15788 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15789 Move functions to minibuffer.el.
15790 (syms_of_fileio): Don't declare them.
15791
157922008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15793
15794 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15795 (syms_of_minibuf): Remove its initialization.
15796
15797 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15798
157992008-04-09 Juanma Barranquero <lekktu@gmail.com>
15800
15801 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15802
158032008-04-09 Jason Rumney <jasonr@gnu.org>
15804
15805 * makefile.w32-in (distclean): Delete makefile too.
15806 (maintainer-clean): New target.
15807
15808 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15809
15810 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15811 for new font backend and composite cases.
15812
158132008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15814
15815 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15816 Most of the code moved to run_timers.
15817 (do_pending_atimers): Call run_timers.
15818 (run_timers): New function.
15819
15820 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15821 run atimers.
15822
15823 * process.c (wait_reading_process_output): The same as above.
15824
158252008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15826
15827 * minibuf.c (last_exact_completion): Remove variable.
15828 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15829 (complete_and_exit_1, complete_and_exit_2)
15830 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15831 (Fdisplay_completion_list, display_completion_list_1)
15832 (Fminibuffer_completion_help, Fself_insert_and_exit)
15833 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15834 minibuffer.el.
15835 (syms_of_minibuf): Remove corresponding initializations.
15836
15837 * keyboard.c (Qdeactivate_mark): New var.
15838 (command_loop_1): Use it to call `deactivate-mark'.
15839 (syms_of_keyboard): Initialize it.
15840
15841 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15842 to another frame.
15843 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15844 Don't call set_tty_color_mode.
15845 (store_frame_param): Reset previous_frame rather than call
15846 set_tty_color_mode.
15847 * term.c (set_tty_color_mode): Rewrite.
15848 * dispextern.h (set_tty_color_mode): New type.
15849 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15850
158512008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15852
15853 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15854 for generic chars, which do not exist any more in emacs-unicode.
15855
158562008-04-08 Michael Albinus <michael.albinus@gmx.de>
15857
15858 * coding.c (detect_coding_emacs_mule)
15859 (Ffind_operation_coding_system): Fix typo.
15860
158612008-04-08 Jason Rumney <jasonr@gnu.org>
15862
15863 * w32uniscribe.c (SNAME): Extract only symbol name.
15864
15865 * w32font.h (struct w32_metric_cache): New struct.
15866 (w32font_info): Use it.
15867 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15868 (CACHE_BLOCKSIZE): New constants.
15869
15870 * w32font.c (Qja, Qko, Qzh): New symbols.
15871 (syms_of_w32font): Initialise them.
15872 (font_matches_spec): Use them to filter by language.
15873 (recompute_cached_metrics): Remove function.
15874 (compute_metrics, clear_cached_metrics): New functions.
15875 (w32font_encode_char): Use them to manage metric cache.
15876 (w32font_text_extents): Cache metrics for all glyphs on demand.
15877 Delay converting glyph indices to WORD until needed.
15878 (w32font_open_internal): Initialize metric cache to empty.
15879 (registry_to_w32_charset): Charset should always be a symbol.
15880 (fill_in_logfont, list_all_matching_fonts): Family should
15881 always be a symbol.
15882
158832008-04-06 Jason Rumney <jasonr@gnu.org>
15884
15885 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15886 Give up if glyph indices not supported. Use uniscribe obtained
15887 ABC widths for individual metrics. Map glyph clusters back to
15888 characters using fClusterStart flag. Return number of glyphs
15889 produced, not chars processed.
15890 (uniscribe_shape): Map char at FROM to current glyph.
15891
158922008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15893
15894 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15895 Use SetMenuItemHierarchicalMenu.
15896
158972008-04-05 Jason Rumney <jasonr@gnu.org>
15898
15899 * image.c (pbm_load): Allow color values up to 65535.
15900 Throw an error if max_color_idx is outside the supported range.
15901 Report an error when image size is invalid.
15902 Read two bytes at a time when raw images have max_color_idx above 255.
15903
aac0c6e3
MR
159042008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15905
15906 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15907 append "CCL: Quitted" when the CCL program is quitted.
15908 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15909
15910 * ccl.h (struct ccl_program): New member quit_silently.
15911
159122008-04-05 Chong Yidong <cyd@stupidchicken.com>
15913
15914 * search.c (compile_pattern_1): Treat non-nil and non-string of
15915 search-spaces-regexp as nil.
15916
15917 * minibuf.c (Fassoc_string): Tweak docstring.
15918
159192008-04-05 Eli Zaretskii <eliz@gnu.org>
15920
15921 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15922 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15923 2008-03-14 to force inode be positive.
15924
15925 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15926 _S_* ones, since we now use our own sys/stat.h.
15927 (stat, fstat): Don't mangle the inode number.
15928 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15929
159302008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15931
15932 * frame.h (struct frame): Give one more bit to `visible' since we use
15933 values larger than 1 to indicate obscured frames on ttys.
15934
15935 * keymap.c (Qkeymap_canonicalize): New var.
15936 (Fmap_keymap_internal): New fun.
15937 (describe_map): Use keymap-canonicalize.
15938
15939 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15940 (Fundo_boundary): Set them.
15941 (syms_of_undo): Initialize them.
15942 (record_point): Use them instead of last_point_position*.
15943 (last_undo_buffer): Change type.
15944
159452008-04-04 Jason Rumney <jasonr@gnu.org>
15946
15947 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15948 (recompute_cached_metrics): Don't set ascent and descent per char.
15949
15950 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15951 (uniscribe_check_otf): Add GC protection before consing.
15952 Rearrange loop for counting features.
15953
159542008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15955
15956 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15957 buffer with byte-size of source buffer.
15958
159592008-04-03 Chong Yidong <cyd@stupidchicken.com>
15960
15961 * callint.c (Fcall_interactively): Handle temporary region even
15962 when shift-select-mode is off.
15963
159642008-04-03 Jason Rumney <jasonr@gnu.org>
15965
15966 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15967
159682008-04-03 Kenichi Handa <handa@m17n.org>
15969
15970 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15971 (CATEGORY_MASK_UTF_16): Likewise.
15972 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15973 binary file.
15974 (detect_coding): Add null-byte detection for a binary file.
15975 (detect_coding_system): Likewise.
15976
159772008-04-03 Jason Rumney <jasonr@gnu.org>
15978
15979 * w32uniscribe.c: New file.
15980
15981 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15982
15983 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15984
15985 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15986 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15987 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15988 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15989 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15990 (Qphonetic): New symbols.
15991 (syms_of_w32font): Initialize them.
15992 (font_supported_scripts): Use them.
15993 (w32font_list_family): List all charsets.
15994 (w32font_text_extents, recompute_cached_metrics): Fix metric
15995 calculations.
15996 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15997 Give opentype fonts their own format.
15998 (font_matches_spec): New arguments backend and logfont.
15999 Handle :otf spec for uniscribe backend.
16000 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16001 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16002
16003 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16004 font backend.
16005 (globals_of_w32fns): Initialize uniscribe font backend.
16006
16007 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16008 dependencies.
16009 (w32uniscribe.$(O)): New file to build.
16010 (FONT_OBJ): Include w32uniscribe.$(O).
16011 (LIBS): Add uniscribe libraries.
16012
16013 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16014
160152008-04-02 Chong Yidong <cyd@stupidchicken.com>
16016
16017 * callint.c (Vshift_select_mode): New var.
16018 (Finteractive): Document new ^ spec.
16019 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16020 is present.
16021
16022 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16023 (command_loop_1): Avoid running the direct display versions of
16024 forward-char and backward-char if shift-selection may occur.
16025 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16026 shift-translation takes place.
16027
16028 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16029 avoid clobbering by define-minor-mode.
16030
16031 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16032 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16033
16034 * syntax.c (Fforward_word): Add ^ interactive spec.
16035
16036 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16037 (Fscroll_right): Add ^ interactive spec.
16038
160392008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16040
16041 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16042
16043 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16044
16045 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16046
160472008-03-31 Juri Linkov <juri@jurta.org>
16048
16049 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16050
160512008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16052
16053 * gtkutil.c (xg_set_geometry): Fix indentation.
16054 (xg_resize_outer_widget): Remove.
16055 (x_wm_size_hint_off): Fix indentation.
16056 (xg_frame_set_char_size): Call flush_and_sync after
16057 gtk_window_resize.
16058 (x_wm_set_size_hint): Pass NULL as geometry window to
16059 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16060 Add menu bar and tool bar height to base height.
16061 (xg_update_frame_menubar, free_frame_menubar)
16062 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16063 (update_frame_tool_bar, free_frame_tool_bar):
16064 Change xg_resize_outer_widget to xg_frame_set_char_size.
16065
160662008-03-30 Michael Albinus <michael.albinus@gmx.de>
16067
16068 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16069 (Fdbus_call_method): New parameter TIMEOUT.
16070 (dbus-send-signal): Optimize UNGCPRO call.
16071
160722008-03-29 Juri Linkov <juri@jurta.org>
16073
16074 * window.c (Fdisplay_buffer): Move call to
16075 Vsplit_window_preferred_function out of conditions that check
16076 if window is eligible for vertical splitting.
16077 When Vsplit_window_preferred_function is non-nil, call it and use
16078 its non-nil return value as window. Otherwise, continue doing
16079 vertical splitting using Fsplit_window with arg horflag=nil.
16080 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16081 default value from `split-window' to nil.
16082
160832008-03-29 Juri Linkov <juri@jurta.org>
16084
16085 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16086 for interactive code letters 'b' and 'B'.
16087
160882008-03-29 Eli Zaretskii <eliz@gnu.org>
16089
16090 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16091 multibyte string.
16092
160932008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16094
16095 * keyboard.c (pending_funcalls): New var.
16096 (timer_check): Run it.
16097 (syms_of_keyboard): Initialize it.
16098 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16099 (Vdelete_terminal_functions): New vars.
16100 (syms_of_terminal): Initialize them.
16101 (Fdelete_terminal): Run delete-terminal-functions.
16102 * xdisp.c (safe_eval): Rewrite.
16103 (safe_call2): New fun.
16104 * frame.c (Qdelete_frame_functions): New var.
16105 (syms_of_frame): Initialize it.
16106 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16107 * lisp.h (safe_call2, pending_funcalls): Declare.
16108
161092008-03-28 Andreas Schwab <schwab@suse.de>
16110
16111 * indent.c (Fmove_to_column): Move declaration before statements.
16112
161132008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16114
16115 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16116 (struct frame): Use bit fields for boolean vars.
16117
16118 * process.c (server_accept_connection): Simplify naming.
16119 (emacs_get_tty_pgrp): Use SDATA.
16120
16121 * coding.c (decode_coding_object): Fix last change.
16122
161232008-03-27 Jason Rumney <jasonr@gnu.org>
16124
16125 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16126
161272008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16128
16129 * charset.c (Fdefine_charset_internal): Change the way of
16130 registering charsets in Vcharset_order_list.
16131 (syms_of_charset): Make the charset `eight-bit' supplementary.
16132
161332008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16134
16135 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16136 operations, to avoid having the difference between pointers
16137 overflow.
16138
161392008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16140
16141 * indent.c (check_display_width): New fun.
16142 (scan_for_column): Use it.
16143
16144 * data.c (syms_of_data): Mark most-positive-fixnum and
16145 most-negative-fixnum as constants.
16146
16147 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16148
16149 * indent.c (scan_for_column): Extract from current_column_1.
16150 Merge with the same code from Fmove_to_column.
16151 (current_column_1, Fmove_to_column): Use it.
16152
161532008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16154
16155 * keymap.c (map_keymap_internal): New fun.
16156 (map_keymap): Use it.
16157 (Fmap_keymap_internal): New fun.
16158 (Fmap_keymap): Remove left-out test from before make_save_value.
16159
16160 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16161
16162 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16163 Use XCAR/XCDR.
16164
16165 * process.h (struct Lisp_Process): Remove filter_multibyte.
16166 * process.c (QCfilter_multibyte): Remove.
16167 (setup_process_coding_systems): Don't use filter_multibyte.
16168 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16169 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16170 (Fset_process_filter_multibyte): Change the coding-system to
16171 approximate the previous behavior.
16172 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16173 coding-system.
16174
16175 * coding.c (decode_coding_object): When not decoding into a buffer,
16176 obey the coding system's preference of (uni|multi)byte.
16177
161782008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16179
16180 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16181 every char is changed and has a different byte-length.
16182 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16183 Fix int -> EMACS_INT.
16184
161852008-03-23 David Hansen <david.hansen@gmx.net>
16186
16187 * dbusbind.c (xd_read_message): Remove extra copying of message
16188 strings. Check for NULL `interface' or `member'.
16189
161902008-03-22 Eli Zaretskii <eliz@gnu.org>
16191
16192 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16193 cFileName a file name that includes `?' characters, use the 8+3
16194 alias in cAlternateFileName instead.
16195
161962008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16197
16198 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16199
162002008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16201
16202 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16203 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16204 work on current_buffer only instead (that was already the case
16205 for some of the code anyway).
16206 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16207 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16208 (SET_PT, SET_PT_BOTH): Adjust.
16209 * intervals.h (set_point, temp_set_point, set_point_both)
16210 (temp_set_point_both): Remove redundant declarations.
16211
162122008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16213
16214 * fileio.c (Finsert_file_contents):
16215 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16216 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16217 when buffer != current_buffer anyway.
16218
162192008-03-20 Andreas Schwab <schwab@suse.de>
16220
16221 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16222 as default.
16223
162242008-03-19 Jason Rumney <jasonr@gnu.org>
16225
16226 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16227 (syms_of_w32fns): Initialize them.
16228 (HOURGLASS_ID): New constant.
16229 (x_window_to_frame): Don't check hourglass_window.
16230 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16231 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16232 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16233 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16234 Only change the cursor if hourglass is not active.
16235 (Fx_create_frame): Initialize frame's current_cursor.
16236 (hourglass_atimer): Remove.
16237 (hourglass_started): New function.
16238 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16239 (show_hourglass): Adapt to w32, changing argument to frame.
16240
16241 * w32term.h (struct w32_output): Remove hourglass_window.
16242 Add current_cursor.
16243
16244 * eval.c (call_debugger, Fsignal):
16245 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16246 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16247 (Fexecute_extended_command, cancel_hourglass_unwind):
16248 * minibuf.c (read_minibuf):
16249 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16250
162512008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16252
16253 * window.c (run_funs): New fun.
16254 (run_window_configuration_change_hook): Use it to run the buffer-local
16255 and the global part of the hook.
16256
16257 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16258 (unwind_format_mode_line): Restore selected window.
16259 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16260
162612008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16262
16263 * editfns.c (Fchar_equal): Check they are valid characters.
16264
16265 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16266
162672008-03-17 Andreas Schwab <schwab@suse.de>
16268
16269 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16270 against a charset.
16271
16272 * lisp.h (Fbuffer_list): Declare.
16273
162742008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16275
aac0c6e3
MR
16276 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16277 handlebox_widget is != 0.
16278
162792008-03-16 Juri Linkov <juri@jurta.org>
16280
16281 * callint.c (Fcall_interactively): For interactive code letters
16282 'b' and 'B' put the buffer list into the list of default "future"
16283 values of the minibuffer.
16284
162852008-03-16 Andreas Schwab <schwab@suse.de>
16286
16287 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16288 modifiers.
16289
16290 * regex.c (re_match_2_internal): Correct matching of a charset
16291 against latin-1 characters.
16292
162932008-03-16 Kenichi Handa <handa@m17n.org>
16294
16295 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16296 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16297 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16298 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16299 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16300 CHAR_STRING_ADVANCE.
16301 (produce_chars): Fix for the case that the source and the
16302 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16303 instead of CHAR_STRING_ADVANCE.
16304 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16305 STRING_CHAR_ADVANCE.
16306
163072008-03-15 Andreas Schwab <schwab@suse.de>
16308
16309 * regex.c (re_match_2_internal): Correct matching of eight bit
16310 characters in unibyte strings.
16311
163122008-03-15 Martin Rudalics <rudalics@gmx.at>
16313
16314 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16315 at end of range when it coincides with the end of the buffer.
16316
163172008-03-14 Eli Zaretskii <eliz@gnu.org>
16318
16319 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16320
16321 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16322
163232008-03-14 Jason Rumney <jasonr@gnu.org>
16324
16325 * editfns.c (initial_tz): New variable.
16326 (syms_of_editfns): Initialize it.
16327 (Fset_time_zone_rule): Set it when first called.
16328 Use it when TZSTRING is nil.
16329
16330 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16331 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16332 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16333 (globals_of_w32fns): Initialize them.
16334 (compute_tip_xy): Use them to position tooltips.
16335
163362008-03-14 Glenn Morris <rgm@gnu.org>
16337
16338 * emacs.c (main): Revert previous change.
16339 (standard_args): Revert -internal-script back to -scriptload,
16340 and remove the long-option form.
16341
163422008-03-13 Glenn Morris <rgm@gnu.org>
16343
16344 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16345 Remove option -enable-font-backend.
16346
163472008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16348
16349 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16350
163512008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16352
16353 * xterm.c (x_connection_closed): For GTK: If this is the last
16354 terminal just exit without closing the display.
16355
163562008-03-11 Jason Rumney <jasonr@gnu.org>
16357
16358 * w32font.c (w32font_full_name): Use floor to round.
16359
f0131492 163602008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16361
16362 * sound.c (alsa_configure): Declare vol at beginning of block.
16363
16364 * fontset.c (Ffontset_info): Remove extra semicolon.
16365
163662008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16367
16368 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16369 size of resulting string.
16370
163712008-03-10 Jason Rumney <jasonr@gnu.org>
16372
16373 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16374
163752008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16376
16377 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16378 Don't pretend as if characters with display property haven't been
16379 consumed for string-replacing-string case.
16380
163812008-03-08 Kim F. Storm <storm@cua.dk>
16382
16383 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16384 (get_next_display_element, next_element_from_string)
16385 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16386
163872008-03-08 Andreas Schwab <schwab@suse.de>
16388
16389 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16390
163912008-03-06 Jason Rumney <jasonr@gnu.org>
16392
16393 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16394 when charset not specified. Only translate ANSI to unicode when
16395 font_type is truetype.
16396 (w32font_coverage_ok): New function.
16397 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16398
163992008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16400
16401 * lread.c (Fread_char): Resolve modifiers.
16402 (Fread_char_exclusive): Likewise.
16403
16404 * character.c (char_resolve_modifier_mask): New function.
16405 (char_string): Use char_resolve_modifier_mask.
16406 (Fchar_resolve_modifiers): New function.
16407 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16408 function.
16409
164102008-03-04 Jason Rumney <jasonr@gnu.org>
16411
16412 * makefile.w32-in: Always include w32font.c in the build.
16413 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16414
164152008-03-04 Andreas Schwab <schwab@suse.de>
16416
16417 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16418 (versionclean): Likewise.
16419
164202008-03-04 Juanma Barranquero <lekktu@gmail.com>
16421
16422 * .cvsignore: Add oo.
16423
164242008-03-03 Andreas Schwab <schwab@suse.de>
16425
16426 * coding.c (decode_coding_object): Inhibit gap shrinking while
16427 decoding in place.
16428
164292008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16430
16431 * w32term.c: Remove unused include "gnu.h".
16432 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16433
16434 * gnu.h: Rename to ...
16435 * emacs-icon.h: ... this.
16436 * xterm.c: Use emacs-icon.h instead of gnu.h.
16437 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16438
164392008-03-03 Juanma Barranquero <lekktu@gmail.com>
16440
16441 * w32font.c: Include math.h.
16442
164432008-03-03 Jason Rumney <jasonr@gnu.org>
16444
16445 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16446 Compute options separately.
16447 (w32font_open_internal): Set glyph_idx before caching metrics.
16448
16449 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16450 Define if system headers don't.
16451 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16452 (w32font_encode_char): Don't declare here.
16453
16454 * w32font.c (Quniscribe, QCformat): New symbols.
16455 (syms_of_w32font): Define them.
16456 (w32font_has_char): Indicate uncertainty.
16457 (w32font_encode_char): Encode as glyph point. Make static.
16458 (recompute_cached_metrics): New function.
16459 (w32font_open_internal): Use it. Set font to use glyph points
16460 initially. Set format based on type of font.
16461 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16462 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16463 on it. Set format based on information available here.
16464 (add_font_entity_to_list): Identify backend based on opentype_only.
16465
164662008-03-02 Andreas Schwab <schwab@suse.de>
16467
16468 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16469
16470 * coding.c (decode_coding_big5, produce_chars):
16471 Fix typos in last change.
16472
164732008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16474
16475 * gnu.h: New icon.
16476
164772008-03-02 Kenichi Handa <handa@m17n.org>
16478
16479 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16480 `dos', don't decode '\r' if that is the last in the source.
16481 (decode_coding_utf_16, decode_coding_emacs_mule)
16482 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16483 (decode_coding_raw_text, decode_coding_charset): Likewise.
16484 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16485
164862008-03-01 Jason Rumney <jasonr@gnu.org>
16487
16488 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16489
164902008-03-01 Kim F. Storm <storm@cua.dk>
16491
16492 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16493
164942008-03-01 Jason Rumney <jasonr@gnu.org>
16495
16496 * w32font.c (w32font_full_name): New function.
16497 (w32font_open_internal): Use it.
16498
164992008-03-01 Kim F. Storm <storm@cua.dk>
16500
16501 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16502
165032008-03-01 Jason Rumney <jasonr@gnu.org>
16504
16505 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16506
165072008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16508
16509 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16510 xg_frame_resized when the event is for the edit widget.
16511
16512 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16513
16514 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16515 set_char_size.
16516 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16517 operations on widgets here. Just set frame size if needed.
16518 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16519 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16520 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16521 the whole frame.
16522 (xg_create_tool_bar): Move attachment of the tool bar to
16523 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16524 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16525
165262008-03-01 Jason Rumney <jasonr@gnu.org>
16527
16528 * w32fns.c (w32_msg_pump): Disable debug code.
16529
165302008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16531
16532 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16533
165342008-02-29 Chong Yidong <cyd@stupidchicken.com>
16535
16536 * xdisp.c (next_overlay_string): Don't set
16537 overlay_strings_at_end_processed_p if we're currently reading from
16538 a display string.
16539
165402008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16541
16542 * xdisp.c (get_overlay_strings_1): Fix typo.
16543
165442008-02-29 Chong Yidong <cyd@stupidchicken.com>
16545
16546 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16547
165482008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16549
16550 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16551
16552 * xdisp.c (display_mode_element): Cancel the previous change.
16553 (decode_mode_spec): Likewise.
16554 (handle_auto_composed_prop): Don't make composition if it->string
16555 is a string.
16556
165572008-02-27 Kim F. Storm <storm@cua.dk>
16558
16559 * lisp.h (GLYPH): Change type from int to struct with separate char
16560 and face_id members.
16561 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16562 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16563 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16564 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16565 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16566 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16567 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16568 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16569 handle new Lisp glyph code encoding, either an integer or a cons.
16570
16571 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16572 (GLYPH_ALIAS): Delete.
16573 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16574 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16575 (GLYPH_FROM_CHAR): Replace macro by ...
16576 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16577
16578 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16579 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16580 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16581 (GLYPH_INVALID_P): New macro.
16582 (spec_glyph_lookup_face): Update prototype.
16583
16584 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16585 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16586 new glyph code encoding.
16587 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16588 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16589
16590 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16591 Adapt to new glyph type and new glyph code encoding.
16592
16593 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16594
16595 * indent.c (current_column, current_column_1, Fmove_to_column)
16596 (compute_motion): Adapt to new glyph code encoding.
16597
16598 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16599
166002008-02-27 Chong Yidong <cyd@stupidchicken.com>
16601
16602 * process.c (wait_reading_process_output): Check for window
16603 changes caused by timers.
16604 Suggested by Johan Bockgård.
16605
166062008-02-27 Glenn Morris <rgm@gnu.org>
16607
16608 * emacs.c (USAGE1): Add `--disable-font-backend'.
16609
166102008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16611
16612 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16613 is made to the buffer.
16614
166152008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16616
16617 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16618 (face_at_string_position):
16619 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16620 (face_at_string_position):
16621 * xdisp.c (display_string, next_overlay_change):
16622 * buffer.h (overlays_at):
16623 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16624 Update callers.
16625
166262008-02-26 Chong Yidong <cyd@stupidchicken.com>
16627
16628 * editfns.c (Fformat): Doc fix.
16629
166302008-02-26 Juanma Barranquero <lekktu@gmail.com>
16631
16632 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16633 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16634 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16635
166362008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16637
16638 * buffer.c (Fbuffer_swap_text): New function.
16639 (syms_of_buffer): Defsubr it.
16640
166412008-02-25 Chong Yidong <cyd@stupidchicken.com>
16642
16643 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16644
166452008-02-25 Jason Rumney <jasonr@gnu.org>
16646
16647 * w32font.c (w32font_draw): Draw one character at a time when padding.
16648
166492008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16650
16651 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16652 Handle a nil arg. Use run_window_configuration_change_hook.
16653 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16654 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16655 Use run_window_configuration_change_hook.
16656
166572008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16658
16659 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16660 1-pixel width.
16661
166622008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16663
16664 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16665 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16666 if the glyph in the font is zero pixel with.
16667
16668 * dispextern.h (struct glyph_string): New member padding_p.
16669
16670 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16671
16672 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16673
16674 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16675
16676 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16677
16678 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16679
166802008-02-25 Jason Rumney <jasonr@gnu.org>
16681
16682 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16683
166842008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16685
16686 Allow fine-grained image-cache flushing.
16687 * dispextern.h (struct image): Add `dependencies' field.
16688 (clear_image_caches): Change arg to Lisp_Object.
16689 * image.c (make_image): Initialize `dependencies' field.
16690 (clear_image_cache): Change arg to allow fine-grained flushing.
16691 Perform the flush even if image-cache-eviction-delay is nil.
16692 (clear_image_caches): Change arg to Lisp_Object.
16693 (Fclear_image_cache): Expand meaning of the argument.
16694 (mark_image): Mark `dependencies' field.
16695 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16696 (lface_hash): Use XHASH rather than XFASTINT.
16697 (face_at_buffer_position): Fix int -> EMACS_INT position.
16698 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16699 (select_frame_for_redisplay): Remove code duplication.
16700 (redisplay_internal): Adapt arg to call to clear_image_caches.
16701
167022008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16703
16704 * s/vms4-0.h:
16705 * s/vms4-2.h:
16706 * s/vms4-4.h:
16707 * s/vms5-5.h: Remove, unused.
16708
16709 * s/irix5-2.h:
16710 * s/irix6-0.h:
16711 * s/riscos5.h:
16712 * s/mach-bsd4-3.h:
16713 * m/mips4.h: Remove files for obsolete systems.
16714
16715 * Makefile.in:
16716 * filelock.c:
16717 * unexmips.c:
16718 * m/hp9000s300.h:
16719 * m/iris4d.h:
16720 * s/aix3-1.h:
16721 * s/hpux.h:
16722 * s/msdos.h:
16723 * s/usg5-0.h:
16724 * s/usg5-2-2.h:
16725 * s/usg5-2.h:
16726 * s/usg5-3.h: Remove references to obsolete variables.
16727
16728 * s/irix5-0.h: Remove, move all the contents ...
16729 * s/irix6-5.h: ... here. Simplify.
16730 * config.in: Regenerate.
16731
167322008-02-24 Jason Rumney <jasonr@gnu.org>
16733
16734 * w32term.c (x_draw_glyph_string_background): Clear the background
16735 manually when cleartype is in use.
16736 (x_draw_glyph_string_foreground): Draw text transparently when
16737 cleartype is in use.
16738
16739 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16740 a font into it unless we have to.
16741
167422008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16743
16744 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16745 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16746
aac0c6e3
MR
167472008-02-18 Jason Rumney <jasonr@gnu.org>
16748
16749 * w32fns.c (Fw32_shell_execute): Encode parameters.
16750
167512008-02-09 Eli Zaretskii <eliz@gnu.org>
16752
16753 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16754
167552008-02-05 Juanma Barranquero <lekktu@gmail.com>
16756
16757 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16758
167592008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16760
16761 * xterm.c (x_set_offset): Don't change the gravity if
16762 CHANGE_GRAVITY is -1.
16763
167642008-02-23 Chong Yidong <cyd@stupidchicken.com>
16765
16766 * fileio.c (auto_save_error_occurred): New var.
16767 (auto_save_error): Set it.
16768 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16769 error occurred.
16770
167712008-02-23 Eli Zaretskii <eliz@gnu.org>
16772
16773 * w32.c (globals_of_w32): Add initializations for
16774 g_b_init_get_sid_sub_authority and
16775 g_b_init_get_sid_sub_authority_count.
16776
167772008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16778
16779 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16780 (font_parse_xlfd): Use them for sanity check.
16781 (Finternal_set_font_style_table): Make sure the table is bijective.
16782
16783 Consolidate the image_cache to the terminal struct.
16784 * termhooks.h (P_): Remove redundant def.
16785 (struct terminal): New field `image_cache'.
16786 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16787 of FRAME_X_IMAGE_CACHE.
16788 * xterm.h (struct x_display_info): Remove image_cache field.
16789 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16790 * w32term.h (struct w32_display_info): Remove image_cache field.
16791 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16792 * macterm.h (struct mac_display_info): Remove image_cache field.
16793 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16794 * xterm.c (x_term_init):
16795 * w32term.c (w32_term_init):
16796 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16797 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16798 Remove declarations.
16799 (clear_image_caches, mark_image_cache): New declarations.
16800 * xfaces.c (clear_face_cache):
16801 * xdisp.c (redisplay_internal): Use clear_image_caches.
16802 * image.c (clear_image_cache): Don't check that a frame is on
16803 a window-system before checking if it shares the same cache.
16804 (clear_image_caches): New function.
16805 (Fclear_image_cache): Use it.
16806 (mark_image): Move from allo.c.
16807 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16808 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16809 (mark_object): Don't call mark_image_cache for frames.
16810 (mark_terminals): Call mark_image_cache.
16811
16812 * lisp.h (Fdelete_terminal): Declare.
16813
16814 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16815 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16816 wrong_type_argument.
16817
168182008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16819
16820 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16821 malayalam.el, and tamil.el. Add sinhala.el.
16822
168232008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16824
16825 * xterm.c (x_connection_closed): Consolidate identical tests.
16826 (x_delete_terminal): Don't crash if called via x_connection_closed.
16827
168282008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16829
16830 * xdisp.c (decode_mode_spec): New arg string.
16831 (display_mode_element): Adjust for the above change.
16832
168332008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16834
16835 * callint.c (Fcall_interactively): Use AREF.
16836
168372008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16838
16839 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16840
168412008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16842
16843 * xfns.c (Fx_show_tip): Set string to " " if empty.
16844
168452008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16846
16847 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16848 with Qt.
16849
168502008-02-17 Kenichi Handa <handa@m17n.org>
16851
16852 * ftfont.c (ftfont_shape): Return Lispy number.
16853
16854 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16855 for GCs.
16856 (Finternal_set_font_selection_order): Call font_update_sort_order
16857 only when enable_font_backend is set.
16858 (realize_x_face): Set face->font_info to that of default face only
16859 when enable_font_backend is set.
16860
16861 * xdisp.c (handle_composition_prop): Set it->c to the fist
16862 character of the composed region.
16863 (fill_composite_glyph_string): Set base_face->font_info to
16864 s->font_info. Get a face for ascii from base_face->ascii_face.
16865 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16866 with a face already decided.
16867 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16868 non-negative.
16869 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16870 call font_prepare_composition unconditionally.
16871
16872 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16873
16874 * xterm.h (struct x_display_info): New member font.
16875
16876 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16877 (x_set_mouse_face_gc, x_new_font): Likewise.
16878 (x_term_init): Setup display_info->font.
16879 (x_delete_terminal): Free display_info->font.
16880
16881 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16882
16883 * ftxfont.c (ftxfont_default_fid): Delete it.
16884 (ftxfont_open): Set xfont->fid to 0.
16885 (ftxfont_end_for_frame): Clear data specific to the frame and the
16886 font-driver.
16887
16888 * xftfont.c (xftfont_default_fid): Delete it.
16889 (xftfont_open): Set xfont->fid to 0.
16890
16891 * fontset.c (FONTSET_OBJLIST): New macro.
16892 (fontset_find_font): Update font-object list of the fontset.
16893 (free_realized_fontset): New function.
16894 (free_face_fontset): Call free_realized_fontset.
16895 (Ffont_info): Call font_close_object only when enable_font_backend
16896 is set.
16897
16898 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16899 [HAVE_NTGUI]: Include w32term.h.
16900 [MAC_OS]: Include macterm.ch.
16901 (font_otf_ValueRecord): Use make_number.
16902 (font_finish_cache): Fix handling of reference count.
16903 (font_clear_cache): Update num_fonts.
16904 (font_open_entity): Update smallest_char_width and
16905 smallest_font_height of the frame.
16906 (font_close_object): Update num_fonts.
16907 (Fclear_font_cache): Fix finding the target cache data.
16908
169092008-02-16 Glenn Morris <rgm@gnu.org>
16910
16911 * fontset.c (Finternal_char_font): Fix compilation warning.
16912
169132008-02-16 Eli Zaretskii <eliz@gnu.org>
16914
16915 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16916 instead of char arrays. Enlarge the size of array passed to
16917 get_token_information.
16918
16919 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16920 warnings.
16921
169222008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16923
16924 * .gdbinit: Don't set `args', it breaks gdb --args.
16925
169262008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16927
16928 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16929 within a narrowed buffer.
16930
169312008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16932
16933 * coding.c (decode_coding_object, encode_coding_object):
16934 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16935
169362008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16937
16938 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16939 hardcoding 1.
16940 (detect_coding_system):
16941 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16942 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16943 * insdel.c (insert_from_gap):
16944 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16945 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16946 (string_to_multibyte):
16947 * character.c (chars_in_text, multibyte_chars_in_text):
16948 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16949
16950 * character.h (FETCH_STRING_CHAR_ADVANCE)
16951 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16952 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16953 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16954
16955 * casefiddle.c (casify_region): Only call after-change and composition
16956 functions on the part of the region that was changed.
16957
16958 * keyboard.c (read_avail_input):
16959 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16960
169612008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16962
16963 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16964 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16965
169662008-02-11 Juanma Barranquero <lekktu@gmail.com>
16967
16968 * w32menu.c (push_submenu_start, push_submenu_end)
16969 (push_left_right_boundary, push_menu_pane, push_menu_item):
16970 * keyboard.c (read_key_sequence): Don't pass args with side effects
16971 to AREF, it fails when compiling with -DENABLE_CHECKING.
16972
169732008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16974
16975 * Makefile.in (${lispsource}international/charprop.el):
16976 Delete this target.
16977
16978 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16979 emacs-unicode-2.
16980
169812008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16982
16983 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16984
169852008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16986
16987 * frame.c (Qnoelisp): New symbol.
16988 (syms_of_frame): Initialize it.
16989 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16990 harmless Elisp code, from a strong `force' from x_connection_closed.
16991 * frame.h (Qnoelisp): Declare.
16992 * xterm.c (x_connection_closed): Pass `noelisp'.
16993
16994 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16995 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16996 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16997 rather than `int' for the type of `type'.
16998
169992008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17000
17001 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17002
17003 * Makefile.in (GNUC): Remove support for gcc-1.x.
17004
170052008-02-10 Richard Stallman <rms@gnu.org>
17006
17007 * lisp.h (ASET): Use AREF, not ASLOT.
17008
170092008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17010
17011 * lisp.h (ASET): Check bounds.
17012
170132008-02-10 Glenn Morris <rgm@gnu.org>
17014
17015 * buffer.c (mode-name): Doc fix.
17016
170172008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17018
17019 * Makefile.in:
17020 * emacs.c:
17021 * gmalloc.c:
17022 * keyboard.c:
17023 * lisp.h:
17024 * m/ibm370aix.h:
17025 * process.c:
17026 * regex.c:
17027 * s/hpux.h:
17028 * sysdep.c:
17029 * sysselect.h:
17030 * systty.h:
17031 * unexec.c:
17032 * w32term.c:
17033 * xsmfns.c:
17034 * xterm.c: Remove code that deals with obsolete variables.
17035
17036 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17037
17038 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17039 nothing else needs it anymore.
17040
170412008-02-09 Eli Zaretskii <eliz@gnu.org>
17042
17043 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17044 instead of unibyte_char_to_multibyte.
17045
170462008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17047
17048 * s/gnu-linux.h: Remove commented out code.
17049
17050 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17051
17052 * Makefile.in: Update what RMS says about using autoconf.
17053 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17054 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17055 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17056 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17057
170582008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17059
17060 * keymap.c (Fkey_description): Move side effect outside of macro call.
17061
17062 * xfaces.c (Finternal_make_lisp_face):
17063 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17064
17065 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17066 (syms_of_fontset): Use ASET.
17067
17068 * fns.c (concat): Move side effect outside of macro call.
17069 (hash_clear): Use ASET.
17070
170712008-02-08 Richard Stallman <rms@gnu.org>
17072
17073 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17074 If FORCE, and frame has a surrogate minibuffer for another frame,
17075 delete the other frame first.
17076
170772008-02-07 Timo Savola <timo.savola@iki.fi>
17078
17079 * xterm.c (x_detect_focus_change): Handle embed client message.
17080 (handle_one_xevent): Ditto.
17081 (handle_one_xevent): If embedded and we get a button press/release,
17082 request focus.
17083 (xembed_set_info, xembed_send_message): New functions.
17084 (x_make_frame_visible): Call xembed_set_info if embedded.
17085 (x_make_frame_invisible): Call xembed_set_info if embedded.
17086 (x_term_init): Initialize Xatom_XEMBED.
17087 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17088 (x_iconify_frame): Ditto.
17089
17090 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17091 (enum xembed_info, enum xembed_message, enum xembed_focus)
17092 (enum xembed_modifier, enum xembed_accelerator): New.
17093 (xembed_set_info, xembed_send_message): Declare.
17094 (FRAME_X_EMBEDDED_P): New.
17095
17096 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17097 gtk_plug_new.
17098
17099 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17100 window ID of a frame.
17101 (x_window): Reparent frame if embedded.
17102 (Fx_create_frame): Don't set border width if embedded.
17103
17104 * emacs.c (USAGE3): Add --parent-id.
17105 (standard_args): Ditto.
17106
171072008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17108
17109 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17110
171112008-02-07 Jim Meyering <meyering@redhat.com>
17112
17113 Use "do...while (0)", not "if (1)...else" in macro definitions.
17114 The latter provokes a warning from gcc about the empty else, when
17115 followed by ";". Also, without that trailing semicolon, it would
17116 silently swallow up any following statement.
17117 * syntax.h (SETUP_SYNTAX_TABLE)
17118 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17119 * buffer.h (DECODE_POSITION): Likewise.
17120 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17121 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17122 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17123 (FETCH_CHAR_ADVANCE): Likewise.
17124 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17125
171262008-02-07 Jim Meyering <meyering@redhat.com>
17127
17128 * lread.c [lint]: Don't include <sys/inode.h>.
17129
171302008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17131
17132 * xselect.c (x_handle_dnd_message):
17133 * xmenu.c (digest_single_submenu, xmenu_show):
17134 * xdisp.c (with_echo_area_buffer_unwind_data)
17135 (format_mode_line_unwind_data, unwind_format_mode_line)
17136 (display_menu_bar):
17137 * eval.c (Ffetch_bytecode):
17138 * doc.c (store_function_docstring):
17139 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17140 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17141 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17142
171432008-02-07 Kenichi Handa <handa@m17n.org>
17144
17145 * ftxfont.c (ftxfont_open): Don't set
17146 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17147
17148 * ftfont.c (ftfont_open): Fix previous change.
17149
171502008-02-06 Jason Rumney <jasonr@gnu.org>
17151
17152 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17153 Use cached metrics for ASCII characters.
17154 (w32font_open_internal): Don't set font's owning_frame.
17155 Cache metrics for ASCII characters.
17156
17157 * w32font.h (struct w32font_info): Add ascii_metrics.
17158 Remove owning_frame.
17159
171602008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17161
17162 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17163 to negative value.
17164
17165 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17166
17167 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17168
17169 * charset.c (syms_of_charset): Set QCtest and Qeq.
17170
171712008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17172
17173 * process.c (Fstart_process):
17174 * callproc.c (Fcall_process): Handle the case where
17175 Funhandled_file_name_directory returns nil.
17176
17177 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17178 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17179 * font.c (check_gstring): Use them and AREF to access the vector before
17180 we know it's really a gstring.
17181 (Ffont_shape_text): Fix typo.
46e722a9 17182 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17183
17184 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17185 Declare.
17186
17187 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17188
171892008-02-05 Jason Rumney <jasonr@gnu.org>
17190
17191 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17192 Set smallest_font_height and smallest_char_width in display info.
17193
171942008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17195
17196 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17197
171982008-02-05 Miles Bader <miles@gnu.org>
17199
17200 * xfaces.c (get_lface_attributes, merge_named_face)
17201 (lookup_named_face, lookup_derived_face, realize_named_face):
17202 Revert 2008-02-01 change by cyd@stupidchicken.com.
17203
172042008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17205
17206 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17207 fallback fonts.
17208 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17209
172102008-02-04 Jason Rumney <jasonr@gnu.org>
17211
17212 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17213 set full_name.
17214 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17215
172162008-02-03 Jason Rumney <jasonr@gnu.org>
17217
17218 * makefile.w32-in (OBJ1): Include font.o here.
17219 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17220
172212008-02-02 Jason Rumney <jasonr@gnu.org>
17222
17223 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17224
172252008-02-01 Jason Rumney <jasonr@gnu.org>
17226
17227 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17228
17229 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17230
172312008-02-01 Andreas Schwab <schwab@suse.de>
17232
17233 * Makefile.in (shortlisp, lisp): Update for rename of
17234 ../lisp/language/myanmar.el.
17235
172362008-02-01 Chong Yidong <cyd@stupidchicken.com>
17237
17238 * xfaces.c (get_lface_attributes): Delete function.
17239 (merge_named_face, lookup_named_face, lookup_derived_face)
17240 (realize_named_face): Call lface_from_face_name directly, and use
17241 the fact that merge_face_vectors does not alter its FROM argument.
17242
172432008-02-01 Jason Rumney <jasonr@gnu.org>
17244
17245 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17246 input in the default locale. Handle non-Unicode multibyte input.
17247
172482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17249
17250 * fontset.c (reorder_font_vector): Exclude nil elements from the
17251 font group. Don't try multiple fonts.
17252 (fontset_font): Adjust for the above change.
17253 (Finternal_char_font): Return nil if the found font doesn't
17254 contain the character ch.
17255
17256 * Makefile.in (lisp, shortlisp): Add cham.el.
17257
172582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17259
17260 * font.h (FONTP): Make it return 1 also for a font-object.
17261
17262 * .gdbinit (xfontset): New function.
17263
17264 * font.c (font_find_for_lface): Check if the character C is
17265 supported or not only for the first font.
17266
17267 * fontset.c (reorder_font_vector): Fix typo.
17268 (fontset_find_font): Don't add a font-spec specifying a script.
17269 Use 0 (not Qt) for the indication of empty font-group. Change the
17270 format of RFONT-DEF. Return Qt if no font in the font-group
17271 support the character.
17272 (fontset_font): Adjust for the above change. If no font was
17273 found the character, remember that.
17274 (face_for_char): Adjust for the change of RFONT-DEF.
17275 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17276 no font for the target.
17277 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17278
172792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17280
17281 * font.c (font_load_for_face): Handle the case that the font in
17282 face->lface is a string.
17283
172842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17285
17286 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17287
172882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17289
17290 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17291 Fix previous change. If the frame is not on a window system,
17292 signal an error.
17293
172942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17295
17296 * coding.c (decode_coding_object, encode_coding_object): Adjust
17297 marker positions after conversion.
17298
17299 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17300
173012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17302
17303 * font.c (font_find_for_lface): Fix the handling of the return
17304 value of font_has_char.
17305 (Ffont_shape_text): Fix previous change.
17306
17307 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17308 (fontset_ref_and_range): Delete it.
17309 (fontset_find_font): Call char_table_ref_and_range instead of
17310 FONTSET_REF_AND_RANGE.
17311 (make_fontset): Don't setup font groups of Latin here.
17312 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17313 (new_fontset_from_font): Make the specified font the default for
17314 all Latin characters.
17315
173162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17317
17318 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17319 is on a window system before accessing the fontset of the frame.
17320
173212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17322
17323 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17324
17325 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17326 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17327
17328 * font.c (Ffont_shape_text): If the font driver doesn't have a
17329 shaper function, make zero-width glyphs to have at least one-pixel
17330 width. Fix setting of `to' field of glyphs.
17331
173322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17333
17334 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17335 glyphs.
17336
17337 * font.h (struct font_driver): Improve docstring of member `shape'.
17338
173392008-02-01 Kenichi Handa <handa@m17n.org>
17340
17341 * composite.c (syms_of_composite): Fix docstring of
17342 auto-composition-function.
17343
17344 * font.h (LGLYPH_SIZE): New macro.
17345
17346 * font.c (Ffont_fill_gstring): Stop filling when a character not
17347 supported by the font is found.
17348 (Ffont_shape_text): When a shape callback function returns nil,
17349 try at most two more times with larger gstring.
17350 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17351
17352 * xdisp.c (handle_auto_composed_prop): Change the argument to
17353 auto-composition-function.
17354
17355 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17356 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17357 Lispy glyph and store it in the lgstring.
17358
17359 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17360
17361 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17362
173632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17364
17365 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17366
17367 * fontset.c (Vfont_encoding_charset_alist): New variable.
17368 (syms_of_fontset): DEFVAR it.
17369 (reorder_font_vector, fontset_find_font): Optimize for the case of
17370 no need of reordering.
17371 (face_for_char): Map the charset property by
17372 Vfont_encoding_charset_alist.
17373
173742008-02-01 Jason Rumney <jasonr@gnu.org>
17375
17376 * w32font.c (logfonts_match): Don't check adstyle here.
17377 (font_matches_spec): Check here against physical font instead.
17378 (add_font_entity_to_list): Avoid some substitutions.
17379
17380 * font.c (font_parse_fcname): Default weight and slant to normal.
17381 (font_score): Prefer normal fonts if weight or slant unspecified.
17382 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17383 match freetype scores.
17384
173852008-02-01 Jason Rumney <jasonr@gnu.org>
17386
17387 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17388 font, as it may have been deleted.
17389 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17390 most common hyphenless variation.
17391 (logfonts_match): Check generic family.
17392 (font_matches_spec): Don't check generic family here.
17393 (fill_in_logfont): Set generic family based on adstyle.
17394
17395 * w32font.h (w32font_get_cache): Update declaration.
17396
173972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17398
17399 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17400
17401 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17402 If none of the new drivers are available, call font_update_drivers
17403 with the old drivers.
17404
17405 * w32font.c (w32font_get_cache): Adjust the argument type.
17406
17407 * xfont.c (xfont_get_cache): Adjust the argument type.
17408
17409 * font.h (struct font_driver): Change argument type of get_cache.
17410
17411 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17412
17413 * font.c (Ffont_get): Fix arguments to Fassoc.
17414 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17415 (font_clear_cache): New function.
17416 (font_list_entities, font_matching_entity): Use font_get_cache.
17417 (font_update_drivers): Call font_clear_cache when finishing a driver.
17418
17419 * fontset.c (fontset_find_font): Fix previous change.
17420
174212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17422
17423 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17424 dpyinfo->font_table.
17425 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17426 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17427
17428 * font.c (font_at): Handle the case that the arg C is negative.
17429 Handle the unibyte case.
17430 (Ffont_at): Call font_at with the arg C -1.
17431
17432 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17433 the position here, and call font_at with the arg C -1.
17434 Don't check the range of the existing composition at the point.
17435
174362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17437
17438 * fontset.c (fontset_add): New args charset_id and family.
17439 Change caller.
17440 (load_font_get_repertory, fontset_find_font): Assume that
17441 font_spec is always a font-spec object.
17442 (Fset_fontset_font): Always store a font-spec object in a fontset.
17443
17444 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17445 instead of get_property_and_range.
17446
174472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17448
17449 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17450 (xftfont_open): Don't keep locking face.
17451 (xftfont_close): Don't unlock face.
17452 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17453
17454 * fontset.c (fontset_find_font): Don't prefer a font of
17455 supplementary charset.
17456
174572008-02-01 Kenichi Handa <handa@m17n.org>
17458
17459 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17460 script, langsys_tag to langsys, new member script.
17461 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17462 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17463 listing to the script specified in that property. Fix arg to
17464 OTF_check_features.
17465
174662008-02-01 Jason Rumney <jasonr@gnu.org>
17467
17468 * w32font.h: New file.
17469
17470 * w32font.c: Include it.
17471 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17472 (w32font_open): Set owning_frame.
17473 (w32font_text_extents): Use owning_frame.
17474 (struct font_callback_data): Add opentype_only field.
17475 (add_font_entity_to_list): Use it to filter fonts.
17476 Don't check against full name.
17477 (w32font_list_internal): New function.
17478 (w32font_list): Use it.
17479 (w32font_match_internal): New function.
17480 (w32font_match): Use it.
17481 (w32font_open_internal): New function.
17482 (w32font_open): Use it.
17483 (w32font_get_cache, w32font_close, w32font_has_char)
17484 (w32font_encode_char, w32font_text_extents, w32font_draw):
17485 Make non-static.
17486
17487 * makefile.w32-in (w32font.o): Depend on w32font.h.
17488
174892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17490
17491 * charset.c (Fdefine_charset_internal): Record a supplementary
17492 charset at the tail of Vcharset_order_list.
17493
17494 * font.c (Ffont_shape_text): Fix the return value.
17495
17496 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17497
17498 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17499
175002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17501
17502 * ftfont.c (struct OpenTypeSpec): New struct.
17503 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17504 (ftfont_get_open_type_spec): New function.
17505 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17506
17507 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17508
175092008-02-01 Jason Rumney <jasonr@gnu.org>
17510
17511 * w32font.c (add_font_entity_to_list): Compare only the beginning
17512 of full name.
17513
175142008-02-01 Kenichi Handa <handa@m17n.org>
17515
17516 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17517 Never return HANDLED_RECOMPUTE_PROPS.
17518
175192008-02-01 Kenichi Handa <handa@m17n.org>
17520
17521 * font.c (font_gstring_produce): Delete it.
17522
17523 * composite.h (COMPOSITION_METHOD):
17524 Handle COMPOSITION_WITH_GLYPH_STRING.
17525
175262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17527
17528 * xfont.c (Qx): Delete.
17529 (syms_of_xfont): Don't initialize Qx.
17530
17531 * composite.h (enum composition_method):
17532 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17533
175342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17535
17536 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17537 (choose_face_font): Accept new form of font-spec.
17538
17539 * frame.h (font_driver_list): Declare it unconditionally.
17540 (struct frame): Define members font_driver_list and font_data_list
17541 unconditionally.
17542
17543 * fontset.c: Include "font.h" unconditionally.
17544 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17545 (Fset_fontset_font): Accept a font-spec object.
17546
17547 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17548 PIXEL_SIZE part a wild card.
17549
17550 * dispextern.h (struct glyph_string): Define members clip and
17551 num_clips unconditionally.
17552 (struct face): Define members font_info and extra unconditionally.
17553
17554 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17555 ftfont_info only when HAVE_LIBOTF is defined.
17556
175572008-02-01 Andreas Schwab <schwab@suse.de>
17558
17559 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17560 and end.
17561
175622008-02-01 Jason Rumney <jasonr@gnu.org>
17563
17564 * w32font.c (w32font_driver): Add new fields.
17565
175662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17567
17568 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17569 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17570 (LIBES): Add @M17N_FLT_CFLAGS@.
17571
17572 * composite.c (compose_text): Don't treat the new style
17573 composition specially.
17574
17575 * emacs.c (main): Call syms_of_font unconditionally.
17576
17577 * font.h (FONT_ENTITY_NOT_LOADABLE)
17578 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17579 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17580 (struct font_driver): New member shape.
17581 (font_registry_charsets): Extern it.
17582 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17583 (font_otf_capability, font_drive_otf): Delete their externs.
17584
17585 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17586 (font_charset_alist, font_registry_charsets): Move from xfont.c
17587 and rename.
17588 (font_prop_validate_otf): New function.
17589 (font_property_table): Register it for QCotf.
17590 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17591 (font_drive_otf): Delete.
17592 (font_prepare_composition): New arg F. Adjust for the change of
17593 lispy gstring.
17594 (font_find_for_lface): New arg C.
17595 (font_load_for_face): Adjust for the change of font_find_for_lface.
17596 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17597 lispy gstring.
17598 (Ffont_shape_text): New function.
17599 (Fopen_font): If the font size is not given, use 12-pixel.
17600 (Ffont_at): New arg STRING.
17601 (syms_of_font): Initalize font_charset_alist.
17602 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17603 conditionally.
17604
17605 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17606 fonts of the same font-spec. Change the format of RFONT-DEF.
17607 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17608 Adjust for the change of RFONT-DEF.
17609 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17610
17611 * ftfont.h: New file.
17612
17613 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17614 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17615 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17616 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17617 font_otf_capability and font_drive_otf, set ftfont_shape.
17618 (ftfont_list): Adjust for the change of :otf property value.
17619 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17620 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17621 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17622 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17623 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17624 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17625
17626 * w32term.c (x_draw_composite_glyph_string_foreground):
17627 Adjust for the change of lispy gstring.
17628
17629 * xdisp.c (handle_composition_prop): Adjust for the change of
17630 lispy gstring. Call a function for auto-composition with the
17631 third arg it->window.
17632 (fill_composite_glyph_string): Adjust for the change of lispy string.
17633 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17634
17635 * xfaces.c (set_font_frame_param): Adjust for the change of
17636 font_find_for_lface.
17637
17638 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17639 (xfont_registry_charsets): Likewise. Change caller.
17640 (syms_of_xfont): Don't handle x_font_charset_alist.
17641
17642 * xftfont.c: Include "ftfont.h".
17643 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17644 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17645 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17646 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17647 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17648 Set xftfont_driver.shape to xftfont_shape.
17649
17650 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17651 the change of lispy gstring.
17652
176532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17654
17655 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17656
176572008-02-01 Jason Rumney <jasonr@gnu.org>
17658
17659 * w32font.c (w32font_draw): Fill background manually.
17660
176612008-02-01 Jason Rumney <jasonr@gnu.org>
17662
17663 * font.c (Qfontp): Remove unused symbol.
17664 (QCantialias): New symbol.
17665 (syms_of_font): Define it.
17666 (font_property_table): Set a validator for QCantialias.
17667
17668 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17669 Define if not already.
17670 (QCfamily): Share with xfaces.c.
17671 (Qstandard, Qsubpixel, Qnatural): New symbols.
17672 (syms_of_w32font): Define them. Don't define QCfamily here.
17673 (w32_antialias_type, lispy_antialias_type): New functions.
17674 (w32_enumfont_pattern_entity): New arg requested_font.
17675 Set antialias parameter if non-default was requested.
17676 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17677
176782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17679
17680 * lread.c (read1): Undo the previous change.
17681
176822008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17683
17684 * frame.c (Fdelete_frame): Call font_update_drivers only when
17685 USE_FONT_BACKEND is defined.
17686
176872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17688
17689 * font.h (struct font_bitmap): New member bits_per_pixel.
17690 (struct font_driver): New members start_for_frame and end_for_frame.
17691 (struct font_data_list): New struct.
17692 (font_put_frame_data, font_get_frame_data): Extern them.
17693
17694 * frame.h (struct frame): New member font_data_list.
17695
17696 * font.c (font_update_drivers): Call driver->start_for_frame and
17697 driver->end_for_frame at proper timings.
17698 (font_put_frame_data, font_get_frame_data): New functions.
17699 (Ffont_spec): Add usage in the docstring.
17700
17701 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17702 (Fdelete_frame): Call font_update_drivers.
17703
17704 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17705 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17706 (xftfont_get_xft_draw): New function.
17707 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17708 (xftfont_end_for_frame): New function.
17709 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17710
17711 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17712 Change argument. Cache GCs in the per-frame data.
17713 (struct ftxfont_frame_data): New struct.
17714 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17715 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17716 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17717 (ftxfont_end_for_frame): New function.
17718 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17719
17720 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * xselect.c (Vselection_coding_system)
17725 (Vnext_selection_coding_system): Delete them.
17726 (syms_of_xselect): Don't declare selection-coding-system and
17727 next-selection-coding-system. They are declared in select.el.
17728
177292008-02-01 Jason Rumney <jasonr@gnu.org>
17730
17731 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17732
17733 * w32fns.c: Include imm.h.
17734 (get_composition_string_fn, get_ime_context_fn): New optional
17735 system functions.
17736 (globals_of_w32fns): Load them from imm32.dll.
17737 (ignore_ime_char): New flag.
17738 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17739 WM_IME_ENDCOMPOSITION messages.
17740
17741 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17742 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17743
177442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17745
17746 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17747 (READCHAR_REPORT_MULTIBYTE): New macro.
17748 (readchar): New 2nd arg MULTIBYTE.
17749 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17750 Make symbol's name multibyte according to the multibyteness of the
17751 source.
17752
177532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17754
17755 * xfaces.c (face_for_overlay_string): Call lookup_face with
17756 correct arguments (fix of synching with the trunk).
17757
177582008-02-01 Kenichi Handa <handa@m17n.org>
17759
17760 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17761 (font_prop_validate_non_neg, font_prop_validate_spacing):
17762 Delete argument prop_index.
17763 (font_property_table): Change arguments to validater. Change Callers.
17764 (font_lispy_object): Delete.
17765 (font_at): Use font_find_object instead fo font_lispy_object.
17766
177672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17768
17769 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17770 and file names.
17771
177722008-02-01 Jason Rumney <jasonr@gnu.org>
17773
17774 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17775 (font_matches_spec): Remove debug output.
17776 (add_font_entity_to_list): Avoid using substituted fonts.
17777
177782008-02-01 Jason Rumney <jasonr@gnu.org>
17779
17780 * doc.c (Fsnarf_documentation):
17781 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17782
177832008-02-01 Miles Bader <miles@gnu.org>
17784
17785 * dispextern.h (struct glyph_row): Only define "clip" field if
17786 HAVE_WINDOW_SYSTEM is defined.
17787
177882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17789
17790 Fix up multi-tty merge.
17791
17792 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17793 and indentation.
17794
17795 * xfaces.c (free_realized_face, clear_face_gcs):
17796 Include font_done_for_face in the input_blocked section, just in case.
17797
17798 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17799 (get_char_face_and_encoding): Undo last change and remove the *other*
17800 duplicate definition (i.e. keep the one that's better scoped and that
17801 includes code for the font-backend).
17802
17803 * terminal.c (create_terminal): Default keyboard_coding to
17804 `no-conversion' and terminal_coding to `undecided'.
17805
17806 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17807
17808 * fontset.c (free_realized_fontsets): Check that the table entry does
17809 contain a fontset before trying to compare it to `base'.
17810
17811 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17812 syms_of_charset, and syms_of_coding earlier because init_window_once
17813 now needs Vcoding_system_hash_table to be setup.
17814
17815 * coding.h (default_buffer_file_coding): Remove.
17816
17817 * coding.c (default_buffer_file_coding): Remove.
17818 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17819 than ->symbol, and use the terminal-local coding system.
17820 (syms_of_coding): Don't setup the coding-systems that are not
17821 terminal-local.
17822 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17823
17824 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17825 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17826
17827 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17828 in chartab.c and were re-added here by mistake.
17829 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17830
17831 * doc.c (Fsnarf_documentation):
17832 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17833 src to etc.
17834
17835 * ChangeLog.10: Add mistakenly removed entry.
17836
178372008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17838
17839 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17840
178412008-02-01 Miles Bader <miles@gnu.org>
17842
17843 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17844 Add extra args to FACE_FOR_CHAR.
17845
178462008-02-01 Kenichi Handa <handa@m17n.org>
17847
17848 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17849 in sequence.
17850
17851 * chartab.c (map_sub_char_table, map_char_table): If the range
17852 contains just one character, call the function with that character
17853 even if the depth is not 3.
17854
178552008-02-01 Jason Rumney <jasonr@gnu.org>
17856
17857 * w32font.c (w32font_text_extents): Calculate metrics for the
17858 whole string.
17859
178602008-02-01 Jason Rumney <jasonr@gnu.org>
17861
17862 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17863
178642008-02-01 Jason Rumney <jasonr@gnu.org>
17865
17866 * w32term.c (x_set_glyph_string_clipping): Use
17867 get_glyph_string_clip_rects.
17868 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17869 Adjust for the change of struct glyph_string.
17870
17871 * w32font.c (w32font_draw): Do clipping here.
17872
178732008-02-01 Kenichi Handa <handa@m17n.org>
17874
17875 * xftfont.c (xftfont_draw): Adjust for the change of struct
17876 glyph_string.
17877
17878 * xterm.c (x_set_glyph_string_clipping): Use
17879 get_glyph_string_clip_rects.
17880 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17881 Adjust for the change of struct glyph_string.
17882
17883 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17884 the resulting clip(s}.
17885 (expose_overlaps): Add arg r. Change callers. Set it to
17886 row->clip temporarily.
17887 (expose_window): Redraw rows overlapping the exposed area.
17888
17889 * dispextern.h (struct glyph_row): New member clip.
17890 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17891 clip_height, new member clip, and num_clips.
17892
178932008-02-01 Kenichi Handa <handa@m17n.org>
17894
17895 * data.c (Fchar_or_string_p): Fix docstring.
17896
178972008-02-01 Kenichi Handa <handa@m17n.org>
17898
17899 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17900 create a temporary XftDraw object.
17901
179022008-02-01 Kenichi Handa <handa@m17n.org>
17903
17904 * font.c (Ffontp): Fix docstring.
17905
17906 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17907 strong evidence of ISO-2022.
17908
179092008-02-01 Kenichi Handa <handa@m17n.org>
17910
17911 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17912 SYNTAX_ENTRY_FOLLOW_PARENT.
17913
179142008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17915
17916 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17917 its type.
17918 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17919 Update to the new type of weak_hash_tables and next_weak.
17920
17921 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17922 a plain C pointer to Lisp_Hash_Table.
17923
17924 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17925 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17926 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17927 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17928 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17929 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17930 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17931 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17932 (GC_EQ): Remove since they've been identical to their non-GC_
17933 alter-egos ever since the markbit was eradicated.
17934
17935 * alloc.c:
17936 * buffer.c:
17937 * buffer.h:
17938 * data.c:
17939 * fileio.c:
17940 * filelock.c:
17941 * fns.c:
17942 * frame.h:
17943 * lisp.h:
17944 * macterm.c:
17945 * print.c:
17946 * process.c:
17947 * w32fns.c:
17948 * w32menu.c:
17949 * w32term.c:
17950 * xfns.c:
17951 * xmenu.c:
17952 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17953
179542008-02-01 Kenichi Handa <handa@m17n.org>
17955
17956 * chartab.c (map_sub_char_table): Make it work for the top-level
17957 char-table. Fix handling of parent char-table.
17958 (map_char_table): Adjust for the above change.
17959
179602008-02-01 Jason Rumney <jasonr@gnu.org>
17961
17962 * w32font.c (Qgdi): Rename from Qw32.
17963
179642008-02-01 Jason Rumney <jasonr@gnu.org>
17965
17966 * w32bdf.c (get_quoted_string): Make function static.
17967
179682008-02-01 Kenichi Handa <handa@m17n.org>
17969
17970 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17971 bigger ascent and descent than those of the font, use them as
17972 font's ascent and descent.
17973
179742008-02-01 Kenichi Handa <handa@m17n.org>
17975
17976 * Makefile.in (${lispsource}international/charprop.el): Move this
17977 target within "#ifdef HAVE_UNIDATA" and "#endif".
17978
179792008-02-01 Kenichi Handa <handa@m17n.org>
17980
17981 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17982 (shortlisp): Add ../lisp/language/tai-viet.el.
17983
179842008-02-01 Ulrich Mueller <ulm@gentoo.org>
17985
17986 * Makefile.in (${lispsource}international/charprop.el): Depend on
17987 temacs${EXEEXT}.
17988
179892008-02-01 Jason Rumney <jasonr@gnu.org>
17990
17991 * w32font.c (w32font_close): Delete the GDI font object.
17992
17993 * w32menu.c: Include character.h.
17994
17995 * w32proc.c: Likewise.
17996
17997 * w32select.c: Likewise.
17998
17999 * makefile.w32-in (w32proc.o): Depend on character.h.
18000
180012008-02-01 Jason Rumney <jasonr@gnu.org>
18002
18003 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18004
18005 * w32menu.c (syms_of_w32menu): Likewise.
18006
18007 * w32proc.c (syms_of_ntproc): Likewise.
18008
18009 * w32select.c (syms_of_w32select): Likewise.
18010
18011 * w32term.c (syms_of_w32term): Likewise.
18012
180132008-02-01 Jason Rumney <jasonr@gnu.org>
18014
18015 * w32font.c (w32font_draw): Delete brush after using it.
18016
180172008-02-01 Jason Rumney <jasonr@gnu.org>
18018
18019 * w32font.c (w32font_open): Don't set font_idx.
18020 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18021 to font settings.
18022 (w32font_draw): Fill background explicitly.
18023
180242008-02-01 Jason Rumney <jasonr@gnu.org>
18025
18026 * w32term.c (w32_initialize): Don't call w32font_initialize.
18027
18028 * w32font.c (w32font_info): Remove subranges.
18029 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18030 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18031 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18032 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18033 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18034 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18035 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18036 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18037 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18038 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18039 New symbols.
18040 (font_callback_data): New struct.
18041 (w32font_list, w32font_match): Use it.
18042 (w32font_open): Don't populate subranges.
18043 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18044 (w32font_encode_char): Always return unicode code-point as-is.
18045 (w32font_text_extents): Supply a transformation matrix to
18046 GetGlyphOutline. Never look up by glyph index. Avoid looping
18047 twice. Use unicode version of GetTexExtentPoint32 instead of
18048 glyph index version.
18049 (set_fonts_frame): Remove.
18050 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18051 set frame parameter. Use backward compatible fake foundries.
18052 Save generic family in extra slot under QCfamily. Make width slot
18053 constant. Save QCspacing value. Save list of scripts instead of
18054 binary subranges.
18055 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18056 (add_font_entity_to_list): Use font_callback_data struct. Filter
18057 unwanted fonts.
18058 (add_one_font_entity_to_list): Use font_callback_data struct.
18059 (w32_registry): Default to iso10646_1.
18060 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18061 string font registries. Don't fill in font name if it is a generic
18062 family name, fill family instead. Use spacing, family and script
18063 extra info to fill pitch, family and charset fields.
18064 (list_all_matching_fonts): Use font_callback_data struct.
18065 (unicode_range_for_char): Remove.
18066 (font_supported_scripts): New function.
18067 (w32font_initialize): Remove.
18068 (syms_of_w32font): Update which symbols are defined.
18069
180702008-02-01 Jason Rumney <jasonr@gnu.org>
18071
18072 * font.c (font_pixel_size): Reverse assq_no_quit args.
18073
18074 * w32term.h (FONT_WIDTH): Report max width, not average.
18075 (FONT_MAX_WIDTH): Remove.
18076 (FONT_AVG_WIDTH): New macro.
18077
18078 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18079 redefinition of FONT_WIDTH.
18080
18081 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18082 (w32_cache_char_metrics): Use FONT_WIDTH.
18083
18084 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18085
180862008-02-01 Jason Rumney <jasonr@gnu.org>
18087
18088 * w32font.c (w32font_open): Make lfHeight negative.
18089
18090 * w32fns.c (x_default_font_parameter): Use new style font name.
18091 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18092
180932008-02-01 Jason Rumney <jasonr@gnu.org>
18094
18095 * w32font.c (QCsubranges): New symbol.
18096 (w32font_open, w32font_has_char): Get subranges from subproperty
18097 of extra.
18098 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18099 (syms_of_w32font): Define :subranges symbol.
18100
18101 * font.c (font_put_extra): Expose externally.
18102
18103 * font.h (font_put_extra): Move declaration from font.c.
18104
18105 * font.c (Ffont_get): Use font driver to determine otf capability.
18106 (adjust_anchor): Check if driver defines anchor_point before using.
18107
18108 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18109 (w32font_draw): Use options.
18110 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18111 Fix detection of truetype fonts.
18112 (registry_to_w32_charset): Handle charsets other than iso8859-1
18113 expressed as lisp symbols.
18114 (w32_registry): Express charset as lisp symbol.
18115 (fill_in_logfont): Reverse pixel and point height logic.
18116 Don't set width here. Set quality to default.
18117
18118 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18119 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18120
18121 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18122 Remove redundant loop and allocation.
18123
18124 * makefile.w32-in (font.o, w32font.o): New objects.
18125 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18126 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18127
18128 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18129 STORE_XCHARB a valid l-value.
18130
18131 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18132 calculations for non-Truetype fonts.
18133 (x_draw_glyph_string): Sync with xterm.c.
18134 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18135 Remove redundant code.
18136 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18137
18138 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18139 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18140
18141 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18142 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18143
18144 * w32font.c: New file for w32 font backend.
18145
181462008-02-01 Kenichi Handa <handa@m17n.org>
18147
18148 * term.c: Don't include "buffer.h" twice.
18149
181502008-02-01 Kenichi Handa <handa@m17n.org>
18151
18152 * character.c (Funibyte_string): New function.
18153 (syms_of_character): Defsubr it.
18154
181552008-02-01 Jason Rumney <jasonr@gnu.org>
18156
18157 * w32term.c [USE_FONT_BACKEND]:
18158 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18159 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18160 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18161 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18162 (x_free_frame_resources): Sync with xterm.c.
18163
181642008-02-01 Andreas Schwab <schwab@suse.de>
18165
18166 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18167 char-table size.
18168
181692008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18172
181732008-02-01 Kenichi Handa <handa@m17n.org>
18174
18175 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18176 font_otf_gpos, add font_drive_otf.
18177
18178 * fontset.c (fontset_find_font): Pay attention to font size
18179 specified for a font.
18180 (reorder_font_vector): Check contents of font_def.
18181
18182 * font.c (struct otf_list): Delete it.
18183 (otf_list): Make it a lisp variable.
18184 (otf_open): Use lispy otf_list.
18185 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18186 (check_otf_features): New function.
18187 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18188 New functions.
18189 (font_drive_otf): New function merging font_otf_gsub and
18190 font_otf_gpos.
18191 (font_open_for_lface): New arg spec. Change argument order.
18192 (font_load_for_face): Adjust for the change of font_open_for_lface.
18193 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18194 Ffont_otf_gpos.
18195 (syms_of_font): Staticpro otf_list. Delete defsubr of
18196 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18197
18198 * xfaces.c (set_font_frame_param): Adjust for the change of
18199 font_open_for_lface.
18200
18201 * font.h (font_open_for_lface): Adjust prototype.
18202 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18203 member otf_drive.
18204 (font_otf_gsub, font_otf_gpos): Delete externs.
18205 (font_drive_otf): Extern it.
18206
182072008-02-01 Kenichi Handa <handa@m17n.org>
18208
18209 * font.c (font_at): If the window W is not on a window system,
18210 return Qnil.
18211
18212 * coding.c (produce_chars, encode_coding): Don't call
18213 insert_from_gap if no characters to produce.
18214
182152008-02-01 Kenichi Handa <handa@m17n.org>
18216
18217 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18218 Fclear_face_cache.
18219
18220 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18221
182222008-02-01 Miles Bader <miles@gnu.org>
18223
18224 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18225 Parse "--disable-font-backend" option.
18226 (standard_args): Add "--disable-font-backend" option.
18227
182282008-02-01 Kenichi Handa <handa@m17n.org>
18229
18230 * fontset.c (fontset_find_font): New function.
18231 (fontset_font): Use fontset_find_font.
18232 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18233 Register the specified font for all Latin characters.
18234 (new_fontset_from_font): Register the specified font for all Latin
18235 characters.
18236 (dump_fontset): For a realized fontset, include the base fontset
18237 name in the returned vector.
18238
182392008-02-01 Kenichi Handa <handa@m17n.org>
18240
18241 * character.h (CHAR_STRING): Cast C to unsigned on calling
18242 char_string.
18243
18244 * character.c (char_string): Type of arg C changed to unsigned.
18245 Signal an error if C is an invalid character code.
18246
18247 * editfns.c (general_insert_function, Fchar_to_string):
18248 Use CHARACTERP, not INTEGERP.
18249
182502008-02-01 Kenichi Handa <handa@m17n.org>
18251
18252 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18253 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18254
18255 * regex.c (analyse_first): Fix for multibyte characters in "case
18256 charset:" and "case categoryspec:".
18257
182582008-02-01 Andreas Schwab <schwab@suse.de>
18259
18260 * Makefile.in (LIBES): Move standard libraries to the end.
18261
182622008-02-01 Kenichi Handa <handa@m17n.org>
18263
18264 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18265 nonzero, don't shrink the buffer nextb.
18266
18267 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18268
18269 * coding.c (coding_alloc_by_making_gap): New arg offset.
18270 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18271 offset.
18272 (decode_coding_iso_2022): Update coding->safe_charsets.
18273 (decode_coding_gap): Temporarily set
18274 current_buffer->text->inhibit_shrinking to 1.
18275
182762008-02-01 Kenichi Handa <handa@m17n.org>
18277
18278 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18279 indexing into elements of s->cmp and s->char2b.
18280
182812008-02-01 Juanma Barranquero <lekktu@gmail.com>
18282
18283 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18284
182852008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18288 target_multibyte instead of multibyte.
18289 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18290 (bcmp_translate): Change the argument name from multibyte to
18291 target_multibyte.
18292
182932008-02-01 Kenichi Handa <handa@m17n.org>
18294
18295 These changes are to compile a regexp into a pattern that can be
18296 used both for multibyte and unibyte targets.
18297
18298 * Makefile.in (search.o): Depend on charset.h.
18299
18300 * character.c (multibyte_char_to_unibyte_safe): New function.
18301
18302 * search.c: Include "charset.h".
18303 (compile_pattern_1): Delete argument multibyte. Don't set
18304 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18305 (compile_pattern): Don't compare cp->buf.target_multibyte.
18306 Compare cp->buf.charset_unibyte.
18307 (compile_pattern): Set cp->buf.target_multibyte.
18308
18309 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18310
18311 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18312
18313 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18314 multibyte. Change callers.
18315 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18316 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18317 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18318 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18319 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18320 (regex_compile): Make the compiled pattern usable both for
18321 multibyte and unibyte targets.
18322 (analyse_first): Make the fastmap usable both for multibyte and
18323 unibyte targets.
18324 (TRANSLATE_VIA_MULTIBYTE): Delete.
18325 (re_match_2_internal): Pay attention to the case that the
18326 multibyteness of bufp and target may be different.
18327
183282008-02-01 Kenichi Handa <handa@m17n.org>
18329
18330 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18331 empty box occupy at least one column width.
18332
183332008-02-01 Miles Bader <miles@gnu.org>
18334
18335 * Makefile.in: Remove redundant HAVE_XFT clause.
18336
183372008-02-01 Kenichi Handa <handa@m17n.org>
18338
18339 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18340
183412008-02-01 Kenichi Handa <handa@m17n.org>
18342
18343 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18344 being nil.
18345
183462008-02-01 Kenichi Handa <handa@m17n.org>
18347
18348 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18349
183502008-02-01 Kenichi Handa <handa@m17n.org>
18351
18352 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18353
183542008-02-01 Kenichi Handa <handa@m17n.org>
18355
18356 * search.c (simple_search): Fix previous change.
18357
183582008-02-01 Kenichi Handa <handa@m17n.org>
18359
18360 * xftfont.c (ftfont_font_format): Extern declaration.
18361
18362 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18363
18364 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18365 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18366
18367 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18368 (ftfont_font_format): Fix previous change.
18369
18370 * font.h (Ffont_xlfd_name): EXFUN it.
18371
18372 * font.c (font_parse_xlfd): Fix the array size of `f'.
18373 (register_font_driver): Use EQ to compare driver->type.
18374
18375 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18376 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18377 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18378
183792008-02-01 Kenichi Handa <handa@m17n.org>
18380
18381 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18382 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18383
183842008-02-01 Kenichi Handa <handa@m17n.org>
18385
18386 * xfont.c (xfont_open): Set font->format.
18387
18388 * xftfont.c (xftfont_open): Set font->format.
18389
18390 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18391 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18392 (ftfont_open): Set font->format.
18393 (ftfont_font_format): New function.
18394
18395 * font.h (struct font): New member format.
18396
18397 * font.c (Qopentype): New variable.
18398 (syms_of_font): Defsym it.
18399 (Fquery_font): Change the format of the last element of the return
18400 value.
18401
184022008-02-01 Kenichi Handa <handa@m17n.org>
18403
18404 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18405 last resort.
18406
184072008-02-01 Kenichi Handa <handa@m17n.org>
18408
18409 * coding.c (detect_coding_charset): Fix detection of multi-byte
18410 charset.
18411
184122008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18413
18414 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18415
184162008-02-01 Kenichi Handa <handa@m17n.org>
18417
18418 * xdisp.c (get_next_display_element): Set it->face_id for the
18419 first component of a composition.
18420 (x_produce_glyphs): Check if the font is changed or not for composition.
18421
184222008-02-01 Kenichi Handa <handa@m17n.org>
18423
18424 * fontset.c (Qlatin): New variable.
18425 (syms_of_fontset): Define it as a lisp symbol.
18426 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18427
184282008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * font.c (font_unparse_fcname): Pay attention to the case that
18431 some of font property is a null string.
18432
184332008-02-01 Kenichi Handa <handa@m17n.org>
18434
18435 * term.c: Include "composite.h".
18436 (encode_terminal_code): Output all components of composition.
18437 Check the size of encode_terminal_src.
18438 (produce_glyphs): For composition, call produce_composite_glyph.
18439 (append_composite_glyph, produce_composite_glyph): New functions.
18440
18441 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18442 is not found, get font_info from the current ascii face.
18443
184442008-02-01 Kenichi Handa <handa@m17n.org>
18445
18446 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18447 buffer-file-name to Qnil before calling insert_from_buffer.
18448
18449 * font.c (font_unparse_fcname): Pay attention to the case that
18450 foundry is a null string.
18451
184522008-02-01 Kenichi Handa <handa@m17n.org>
18453
18454 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18455
18456 * font.c (Qunicode_sip): New variable.
18457 (syms_of_font): Declare it as a Lisp symbol.
18458
18459 * font.h (Qunicode_sip): Extern it.
18460
184612008-02-01 Kenichi Handa <handa@m17n.org>
18462
18463 * composite.c (get_composition_id): Pay attention to TAB component.
18464
18465 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18466 TAB. Adjust for the change of s->char2b which always points to
18467 the first element of allocated memory.
18468
18469 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18470
18471 * xdisp.c (handle_composition_prop): Set it->c to the first
18472 non-TAB component.
18473 (fill_composite_glyph_string): Change argument.
18474 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18475 (x_produce_glyphs): Fix handling of left/right padding.
18476
184772008-02-01 Kenichi Handa <handa@m17n.org>
18478
18479 * coding.c (detect_coding_system): Fix for handling off
18480 inhibit_iso_escape_detection. Fix for the case that no coding
18481 system is defined for a specific coding category.
18482
184832008-02-01 Kenichi Handa <handa@m17n.org>
18484
18485 * font.c (font_matching_entity): Delete unused local var.
18486
18487 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18488 opening a font.
18489
18490 * fileio.c (Finsert_file_contents): On recovering a file, assume
18491 Unix-like eol.
18492 (choose_write_coding_system): On auto-saving a file, force
18493 Unix-like eol.
18494
18495 * coding.c (setup_coding_system): Fix setting of
18496 coding->common_flags based on eol_type.
18497 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18498 inherit from it.
18499
185002008-02-01 Kenichi Handa <handa@m17n.org>
18501
18502 * alloc.c (NSTATICS): Increas to 0x600.
18503
185042008-02-01 Kenichi Handa <handa@m17n.org>
18505
18506 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18507 (ftfont_list): Don't check :name property.
18508 (ftfont_match): New function.
18509 (ftfont_pattern_entity): If the pattern doesn't contain
18510 FC_SPACING, don't assume FC_MONO.
18511
18512 * font.h (struct font_driver): New member `match'.
18513 (font_update_drivers): Adjust prototype.
18514
18515 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18516 property of FONT.
18517 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18518 them unconditionally.
18519 (font_matching_entity): New function.
18520 (font_open_by_name): Try font_matching_entity if exact match is
18521 not found.
18522 (font_update_drivers): Delete the arg FONT. Return a list of
18523 actually used backends. Don't free faces, font caches here.
18524 Don't store data in frame parameters. Don't call x_set_font.
18525 (Ffont_spec): Store :name property as is.
18526 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18527 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18528 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18529 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18530 Call font->driver->otf_gsub instead of font_otf_gsub.
18531
18532 * frame.c (x_set_font_backend): Do more works that were done in
18533 font_update_drivers before.
18534
18535 * xfont.c (xfont_match): New function.
18536 (xfont_driver): Set xfont_driver.match to xfont_match.
18537 (xfont_draw): Set font in GC if necessary.
18538
18539 * ftxfont.c (ftxfont_match): New function.
18540 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18541
18542 * xftfont.c (xftfont_match): New function.
18543 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * font.h (struct font): New member scalable.
18548 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18549 (font_otf_gsub): Adjust prototype.
18550
18551 * font.c (font_otf_capability): Fix handling of the default langsys.
18552 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18553 Check the contents of SPEC.
18554 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18555 (check_gstring): New function.
18556 (REPLACEMENT_CHARACTER): New macro.
18557 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18558 glyph codes of GSTRING.
18559 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18560 (font_prepare_composition): Set cmp->glyph_len.
18561 (font_open_entity): Set font->scalable.
18562 (Ffont_get): Handle :otf property.
18563 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18564 functions.
18565 (Fquery_font): Use font->font.full_name.
18566 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18567 Sfont_otf_alternates.
18568
18569 * ftfont.c (ftfont_open): Set font->font.full_name and
18570 font->font.name properly. Fix calculation of font->font.height
18571 and font->min_width.
18572
18573 * ftxfont.c (ftxfont_create_gcs): New function.
18574 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18575 (ftxfont_draw_backgrond): Fix filling region.
18576 (ftxfont_default_fid): New function.
18577 (ftxfont_open): Set xfont->fid to the return value of
18578 ftxfont_default_fid.
18579 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18580 (ftxfont_done_face): Free only GCs that are created by
18581 ftxfont_create_gcs.
18582 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18583
18584 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18585 Clip to src->width, etc (not src->clip_XXX).
18586
18587 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18588 FontBackend frame parameter.
18589
185902008-02-01 Kenichi Handa <handa@m17n.org>
18591
18592 * font.h (struct font_driver_list): New member `on'.
18593 (Fclear_font_cache): EXFUN it.
18594 (font_update_drivers): Extern it.
18595
18596 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18597 (font_list_entities): Check driver_list->on.
18598 (register_font_driver): Initalize `on' member to 0.
18599 (font_update_drivers): New function.
18600 (Fclear_font_cache): Check driver_list->on.
18601
18602 * frame.h (Qfont_backend): Extern it.
18603 (x_set_font_backend): Extern it.
18604
18605 * frame.c (Qfont_backend): New variable.
18606 (frame_parms): New element for font-backend.
18607 (x_set_font_backend): New function.
18608
18609 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18610 FontBackend frame parameter.
18611 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18612 x_set_font_backend.
18613
18614 * xfont.c (xfont_list): Don't try listing by :name property if the
18615 name is not for XLFD.
18616
186172008-02-01 Kenichi Handa <handa@m17n.org>
18618
18619 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18620 (LGLYPH_SET_TO): New macros.
18621 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18622 element of G is vector or not.
18623 (font_at): Extern it.
18624
18625 * font.c: Include window.h.
18626 (font_lispy_object): New function.
18627 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18628 end of valid glyph.
18629 (font_close_object): Fix getting (struct font *).
18630 (font_at): New function.
18631 (Ffont_get): If FONT is a font-object, get entity from it.
18632 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18633 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18634 range check.
18635 (Ffont_at): New function.
18636 (syms_of_font): Defsubr Sfont_at.
18637
18638 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18639 before the entry for Qcomposition.
18640 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18641 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18642 the font in gstring.
18643 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18644 LGLYPH_FORM (g) to detect the end of valid glyph.
18645 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18646 we are composing with gstring.
18647
18648 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18649 Check if adjustment is vector or not.
18650
18651 * Makefile.in (font.o): Make it depends on window.h.
18652
186532008-02-01 Kenichi Handa <handa@m17n.org>
18654
18655 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18656 adjustment is vector or not.
18657
186582008-02-01 Miles Bader <miles@gnu.org>
18659
18660 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18661
186622008-02-01 Kenichi Handa <handa@m17n.org>
18663
18664 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18665 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18666 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18667
18668 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18669 (DEVICE_DELTA): Fix typo.
18670 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18671 LGLYPH format.
18672
18673 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18674 the change of LGLYPH format.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * ftfont.c (ftfont_list): Fix typo.
18679 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18680
186812008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18682
18683 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18684
18685 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18686 xftface_info is non-NULL.
18687
186882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18689
18690 * ftfont.c (ftfont_list): Move misplaced #endif.
18691
186922008-02-01 Kenichi Handa <handa@m17n.org>
18693
18694 * ftfont.c (ftfont_list): Pay attention to the case that
18695 FC_CAPABILITY is not defined.
18696
186972008-02-01 Kenichi Handa <handa@m17n.org>
18698
18699 * xftfont.c (xftfont_open): Set charset related members to -1.
18700
18701 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18702 QCname.
18703 (ftfont_open): Set charset related members to -1.
18704
18705 * fontset.c (Votf_script_alist): New variable.
18706 (syms_of_fontset): Initialize it.
18707 (fontset_font): Delete unused variable.
18708
18709 * fontset.h (Votf_script_alist): Extern it.
18710
18711 * font.c (font_find_for_lface): Optimize code.
18712
18713 * font.h (font_close_object, font_merge_old_spec): Extern them.
18714
187152008-02-01 Kenichi Handa <handa@m17n.org>
18716
18717 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18718 (syms_of_font): Initialize them.
18719 (font_pixel_size): Allow float value in dpi.
18720 (font_prop_validate_type): Delete.
18721 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18722 Change caller.
18723 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18724 (font_prop_validate_extra): Delete.
18725 (font_prop_validate_spacing): New function.
18726 (font_property_table): Add elements for all known properties.
18727 (get_font_prop_index): Rename from check_font_prop_name. New
18728 argument FROM. Change caller.
18729 (font_prop_validate): Validate all known properties.
18730 (font_put_extra): Delete argument force. Change caller.
18731 (font_expand_wildcards): Make it static. Fix the way of shrinking
18732 the possible range.
18733 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18734 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18735 Change caller.
18736 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18737 (font_parse_fcname): Delete argument merge. Fix parsing of point
18738 size. Don't validate properties values here. Change caller.
18739 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18740 (font_open_by_name): Delete unused variable.
18741 (Ffont_spec): Likewise. Validate property values.
18742 (Ffont_match_p): New function.
18743
18744 * font.h (QCscalable): Extern it.
18745 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18746
18747 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18748
18749 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18750 (xfont_list_pattern): New function.
18751 (xfont_list): Use xfont_list_pattern.
18752
187532008-02-01 Kenichi Handa <handa@m17n.org>
18754
18755 * font.h (Flist_fonts): EXFUN it.
18756
187572008-02-01 Jason Rumney <jasonr@gnu.org>
18758
18759 * w32term.c (w32_initialize): Add back smoothing_type and
18760 smoothing_enabled definitions.
18761
187622008-02-01 Kenichi Handa <handa@m17n.org>
18763
18764 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18765 s->face->font on determining underline position.
18766
187672008-02-01 Kenichi Handa <handa@m17n.org>
18768
18769 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18770 (font_has_char): Accept font-object too.
18771 (font_find_for_lface): Try at first with a size specified in face.
18772
187732008-02-01 Kenichi Handa <handa@m17n.org>
18774
18775 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18776 font_open_by_name.
18777
187782008-02-01 Kenichi Handa <handa@m17n.org>
18779
18780 * font.h (QCspacing, QCdpi): Extern them.
18781 (enum font_spacing): New enum.
18782 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18783
18784 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18785 (QCspacing, QCdpi): New variables.
18786 (syms_of_font): Initialize them.
18787 (font_pixel_size): New function.
18788 (font_put_extra): New function.
18789 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18790 in FONT_EXTRA.
18791 (font_parse_fcname): Handle enumerated values (e.g. bold).
18792 Fix handling font size. Add QCname property that contains only
18793 unknown properties.
18794 (font_score): Change argument. Change caller. Pay attention to
18795 FONT_PIXEL_SIZE_QUANTUM.
18796 (font_sort_entites, font_list_entities, font_find_for_lface)
18797 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18798 (Ffont_spec): Add QCname property that contains only unknown properties.
18799
18800 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18801 include weight in listing pattern, instead check weight of each
18802 listed font. Don't include scalable in pattern. Pay attention to
18803 FONT_PIXEL_SIZE_QUANTUM.
18804
188052008-02-01 Kenichi Handa <handa@m17n.org>
18806
18807 * font.c (font_parse_fcname): Fix parsing of point-size.
18808 (font_unparse_fcname): Produce symbolic names for style properties.
18809 (font_list_entities): Handle float size correctly.
18810 (font_open_by_name): Prefer `normal' property values if the name
18811 doesn't specify them.
18812
18813 * fontset.c (Finternal_char_font): Use font_get_name, not
18814 Ffont_xlfd_name.
18815
18816 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18817 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18818 pattern. Don't force scalable.
18819
18820 * xftfont.c (xftfont_open): For generating a name, start from
18821 96-byte buffer.
18822
188232008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18824
18825 * frame.h (x_new_fontset2): Fix prototype.
18826
188272008-02-01 Kenichi Handa <handa@m17n.org>
18828
18829 * font.h (struct font_driver): Delete member parse_name.
18830 (font_match_p, font_get_spec, font_parse_fcname)
18831 (font_unparse_fcname): Extern them.
18832 (font_get_name): Adjust prototype.
18833
18834 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18835 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18836 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18837 unnecessary checks for weight, slant, and swidth.
18838 (font_parse_fcname): New function.
18839 (font_unparse_fcname): New function.
18840 (font_parse_name): New function.
18841 (font_match_p): New function.
18842 (font_get_name): Change return value to Lisp string.
18843 (font_get_spec): New function.
18844 (Qunspecified, Qignore_defface): Don't extern them.
18845 (font_find_for_lface): Assume that LFACE is fully specified.
18846 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18847 object, use it for FACE.
18848 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18849 driver->parse_name.
18850 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18851
18852 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18853 prototype.
18854
18855 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18856 argument F. Don't call Fnew_fontset. Instead, directly call
18857 make_fontset.
18858
18859 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18860
18861 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18862 of x_new_fontset2.
18863
18864 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18865 (Qsans__serif): New variables.
18866 (ftfont_generic_family_list): New variable.
18867 (syms_of_ftfont): Initialize the above variables.
18868 (ftfont_pattern_entity): Delete argument NAME.
18869 (ftfont_list_generic_family): New function.
18870 (ftfont_parse_name): Delete this function.
18871 (ftfont_list): Try generic family only when FcFontList found no font.
18872 (ftfont_list_family): Fix args to FcObjectSetBuild.
18873
18874 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18875 object in attrs[LFACE_FONT_INDEX].
18876 (set_lface_from_font_name): Cancel all changes for font-backend.
18877 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18878 function.
18879 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18880 font object in QCfont attribute.
18881 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18882 (realize_default_face) [USE_FONT_BACKEND]: Call
18883 set_lface_from_font_and_fontset.
18884
18885 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18886 "fixed", and signal error here if no suitable font was found.
18887
18888 * xfont.c (xfont_parse_name): Delete this function.
18889
18890 * xftfont.c (xftfont_open): Change coding style of error
18891 handling. Generate fontconfig's fontname pattern.
18892
18893 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18894 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18895
18896 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18897 Both args FONTSET and FONT_OBJECT must be existing ones.
18898
188992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18900
18901 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18902
189032008-02-01 Kenichi Handa <handa@m17n.org>
18904
18905 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18906
18907 * font.h (struct font): Fix typo.
18908
18909 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18910 XLFD_XXX_INDEX.
18911 (enum xlfd_field_mask): New enum.
18912 (intern_font_field): Changed argument. Change caller. If digits
18913 are followed by non-digits, return a symbol.
18914 (font_expand_wildcards): New function.
18915 (font_parse_xlfd): Fix wildcard handling.
18916 (Ffont_spec): If :name is specified, reflect the info in the other
18917 properties.
18918
18919 * ftfont.c (ftfont_pattern_entity): Fix typo.
18920 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18921 locale.
18922
189232008-02-01 Kenichi Handa <handa@m17n.org>
18924
18925 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18926
18927 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18928 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18929 registry doesn't specify encoding part.
18930 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18931 (font_open_by_name): At first try parsing the name.
18932 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18933 as Lisp symbols.
18934
18935 * fontset.c (reorder_font_vector): Pay attention to the case that
18936 the 3rd element of font_def is nil.
18937 (fontset_font): For the default fontset, append one more fontset
18938 elements for a script-based font specification. Don't add script
18939 attribute on finding a font.
18940 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18941 font name.
18942 (fontset_ascii_font): If a font can't be opened, return nil.
18943
18944 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18945 (ftfont_pattern_entity): New function.
18946 (ftfont_get_cache): Assume that freetype_font_cache is already
18947 initialized.
18948 (ftfont_list): Handle the case that a file is specified in font
18949 name. Use ftfont_pattern_entity to generate entities.
18950 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18951 (syms_of_ftfont): Initialize freetype_font_cache.
18952
18953 * xftfont.c (xftfont_open): Make the font name fontconfig's
18954 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18955 (xftfont_close): Free font->font.name if not NULL.
18956
18957 * xfont.c (xfont_list): If script is specified for a font, return
18958 null_vector.
18959 (xfont_list_family): Declare argument type.
18960
18961 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18962 name, set LFACE_FONT (lface) to nil.
18963
18964 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18965 return Qnil.
18966
189672008-02-01 Kenichi Handa <handa@m17n.org>
18968
18969 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18970 (standard_args): Add "-enable-font-backend".
18971
189722008-02-01 Kenichi Handa <handa@m17n.org>
18973
18974 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18975 (struct xftdraw_list, xftdraw_list): Delete them.
18976 (register_xftdraw, check_xftdraw): Delete them.
18977 (xftfont_prepare_face): Don't call register_xftdraw.
18978 (xftfont_done_face): Don't call check_xftdraw.
18979 (xftfont_draw): Get background color only when with_background is
18980 nonzero.
18981
18982 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18983
189842008-02-01 Kenichi Handa <handa@m17n.org>
18985
18986 These changes are for the new font handling codes.
18987
18988 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18989 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18990 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18991 (FONTSRC, FONTOBJ): New variables.
18992 (obj): Add $(FONTOBJ).
18993 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18994 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18995 @LIBOTF_LIBS@.
18996 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18997 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18998
18999 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19000
19001 * character.h (Vscript_representative_chars): Extern it.
19002
19003 * character.c (Vscript_representative_chars): New variable.
19004 (syms_of_character): Declare it as a Lisp variable.
19005
19006 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19007 enable_font_backend is nonzero, accept the composition method
19008 COMPOSITION_WITH_GLYPH_STRING.
19009
19010 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19011 enumeration COMPOSITION_WITH_GLYPH_STRING.
19012
19013 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19014 members clip_x, clip_y, clip_width, and clip_height.
19015 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19016
19017 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19018 --enable-font-backend. Call syms_of_font.
19019
19020 * fns.c (assoc_no_quit): New function.
19021
19022 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19023 (face_for_font, new_fontset_from_font)
19024 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19025
19026 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19027 (fontset_font, fontset_ascii, face_for_char)
19028 (make_fontset_for_ascii_face, Ffont_info)
19029 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19030 is nonzero, use font-backend mechanism.
19031 (find_font_encoding): Make it non-static.
19032 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19033 New functions.
19034
19035 * frame.h (struct frame): New members resx and resy.
19036 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19037 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19038
19039 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19040 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19041
19042 * lisp.h (assoc_no_quit): Extern it.
19043
19044 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19045 Through out the file, use FONT_INFO_FROM_FACE instead of
19046 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19047 rif->per_char_metric.
19048 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19049 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19050 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19051 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19052 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19053 nonzero, use font-backend mechanism.
19054 (get_per_char_metric): New function.
19055
19056 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19057 (set_lface_from_font_name)
19058 (set_font_frame_param, free_realized_face)
19059 (prepare_face_for_display, clear_face_gcs)
19060 (Finternal_set_font_selection_order, realize_x_face)
19061 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19062 font-backend mechanism.
19063 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19064 (load_face_font) [USE_FONT_BACKEND]: Abort.
19065 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19066 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19067
19068 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19069 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19070 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19071 nonzero, register all available font drivers. Call
19072 x_default_font_parameter for deciding a font.
19073 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19074
19075 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19076 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19077 (x_set_glyph_string_clipping_exactly)
19078 (x_compute_glyph_string_overhangs)
19079 (x_draw_glyph_string_foreground)
19080 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19081 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19082 enable_font_backend is nonzero, use font-backend mechanism.
19083 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19084
190852008-02-01 Kenichi Handa <handa@m17n.org>
19086
19087 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19088 system_eol_type.
19089 (syms_of_coding): Initialize system_eol_type.
19090
19091 * process.c (Fset_process_coding_system): Inherit system's eol
19092 format if necessary.
19093
190942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19095
19096 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19097
190982008-02-01 Kenichi Handa <handa@m17n.org>
19099
19100 * coding.c (decode_eol): Pay attention to buffer relocation in
19101 del_range_2.
19102 (decode_coding): Call decode_eol before restoring undo_list.
19103
191042008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * charset.c (Fdefine_charset_internal): Fix setting of
19107 emacs_mule_bytes.
19108
191092008-02-01 Kenichi Handa <handa@m17n.org>
19110
19111 * keyboard.c (read_char): Check if C is a character or not before
19112 looking up Vkeyboard_translate_table.
19113
191142008-02-01 Kenichi Handa <handa@m17n.org>
19115
19116 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19117 condition to terminate the loop.
19118
191192008-02-01 Kenichi Handa <handa@m17n.org>
19120
19121 * coding.c (produce_composition): Compare charbuf[i] instead of
19122 args[i] against 0.
19123 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19124
191252008-02-01 Kenichi Handa <handa@m17n.org>
19126
19127 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19128 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19129 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19130 detect_coding.
19131 (emacs_mule_char): Handle old style (Emacs 20) component character
19132 of a composition.
19133 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19134 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19135 composition rule.
19136 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19137
191382008-02-01 Kenichi Handa <handa@m17n.org>
19139
19140 * coding.c (encode_coding_ccl): Allocate destination dynamically
19141 when necessary.
19142
191432008-02-01 Kenichi Handa <handa@m17n.org>
19144
19145 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19146 the loop. When quitted, show a proper error message.
19147
191482008-02-01 Kenichi Handa <handa@m17n.org>
19149
19150 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19151 src->clip_head and src->clip_tail temporarily instead of src->hl.
19152
19153 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19154 character sequence.
19155 (Fccl_execute_on_string): Use ASET, not XSET.
19156
191572008-02-01 Kenichi Handa <handa@m17n.org>
19158
19159 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19160
191612008-02-01 Kenichi Handa <handa@m17n.org>
19162
19163 * coding.c (decode_coding): Fix the condition of terminating the
19164 decoding loop.
19165
191662008-02-01 Kenichi Handa <handa@m17n.org>
19167
19168 * data.c (Faset): On setting a character bigger than 255 in a
19169 unibyte string, signal an error instead of make the string multibyte.
19170
191712008-02-01 Kenichi Handa <handa@m17n.org>
19172
19173 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19174 made by a mapping table.
19175
191762008-02-01 Kenichi Handa <handa@m17n.org>
19177
19178 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19179 not.
19180 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19181 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19182
19183 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19184 s->face is NULL or not.
19185
191862008-02-01 Kenichi Handa <handa@m17n.org>
19187
19188 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19189 (x_draw_glyph_string): Fix drawing of right_overhang and
19190 left_overhang around/on cursor.
19191
19192 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19193
191942008-02-01 Kenichi Handa <handa@m17n.org>
19195
19196 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19197
191982008-02-01 Kenichi Handa <handa@m17n.org>
19199
19200 * coding.c (Fdefine_coding_system_internal)
19201 (Fdefine_coding_system_alias): Avoid a duplicated element in
19202 Vcoding_system_alist.
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19207
19208 * coding.c (Qcoding_system_define_form): New variable.
19209 (syms_of_coding): Intern and staticpro it.
19210 (Fcoding_system_p): Check Qcoding_system_define_form.
19211 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19212
19213 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19214 Fcoding_system_p.
19215 (CHECK_CODING_SYSTEM): If ID is not available, call
19216 Fcheck_coding_system.
19217 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19218 Try also Fcheck_coding_system.
19219
192202008-02-01 Kenichi Handa <handa@m17n.org>
19221
19222 * coding.c (code_conversion_restore): GCPRO arg.
19223
192242008-02-01 Kenichi Handa <handa@m17n.org>
19225
19226 * character.c (lisp_string_width): Check multibyteness of STRING.
19227
192282008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19229
19230 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19231 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19232 (decode_mac_font_name): Use decode_coding_c_string instead of
19233 decode_coding.
19234 (x_load_font): Initialize fontp->fontset to -1. Set
19235 fontp->encoding_type.
19236
192372008-02-01 Kenichi Handa <handa@m17n.org>
19238
19239 * search.c (search_buffer): Give up BM search on case-fold-search
19240 if one of a target character has a case-equivalence of different
19241 byte length even if that target charcter is an ASCII.
19242 (simple_search): Fix calculation of byte length of matched text.
19243 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19244
192452008-02-01 Kenichi Handa <handa@m17n.org>
19246
19247 * coding.c (decode_coding): Fix handling of invalid bytes.
19248
192492008-02-01 Kenichi Handa <handa@m17n.org>
19250
19251 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19252 Unicode characters.
19253
192542008-02-01 Kenichi Handa <handa@m17n.org>
19255
19256 * coding.c (encode_coding_object): If a pre-write-conversion
19257 function makes a new buffer, kill it.
19258
192592008-02-01 Kenichi Handa <handa@m17n.org>
19260
19261 * coding.c (QCascii_compatible_p): New variable.
19262 (syms_of_coding): Initialize it.
19263 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19264 calling string_char.
19265 (record_conversion_result): Add `default:' case.
19266 (coding_charset_list): Delete unused variable `coding_type'.
19267 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19268 property in the plist of the coding system.
19269 (Fcoding_system_put): Check QCascii_compatible_p.
19270
192712008-02-01 Miles Bader <miles@gnu.org>
19272
19273 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19274 removed calculation of frame `f', as it's now used.
19275
192762008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19279 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19280 (UNIDATA): New variable.
19281 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19282 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19283 $(RUN_TEMACS) unconditionally.
19284
192852008-02-01 Kenichi Handa <handa@m17n.org>
19286
19287 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19288 (admindir): New variable.
19289 ($(lispsource)international/charprop.el): New target.
19290
192912008-02-01 Miles Bader <miles@gnu.org>
19292
19293 * character.c (chars-in-region): Remove obsolete function.
19294 (syms_of_character): Remove its initialization.
19295
192962008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19297
19298 * w32select.c (validate_coding_system)
19299 (setup_windows_coding_system): New functions.
19300 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19301 setup_windows_coding_system.
19302 (setup_config, Fw32_get_clipboard_data): Use
19303 validate_coding_system.
19304 (Fx_selection_exists): Move call to setup_config to a place
19305 where signals are allowed.
19306
19307 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19308 (Fcheck_coding_system): Add declarations.
19309
193102008-02-01 Kenichi Handa <handa@m17n.org>
19311
19312 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19313
193142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19315
19316 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19317 string as the second argument for x_new_fontset.
19318
193192008-02-01 Kenichi Handa <handa@m17n.org>
19320
19321 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19322 (encode_coding_object): Use safe_call instead of call2.
19323
193242008-02-01 Kenichi Handa <handa@m17n.org>
19325
19326 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19327
19328 * Makefile.in (lisp): Include charprop.el.
19329
193302008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19331
19332 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19333 Not sure if it's unnecessary.
19334
193352008-02-01 Steven Tamm <steventamm@mac.com>
19336
19337 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19338 some possibly unnecessary fontset checking code that crashed
19339 when creating a new frame.
19340
193412008-02-01 Kenichi Handa <handa@m17n.org>
19342
19343 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19344 lookup_face.
19345
19346 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19347
19348 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19349
193502008-02-01 Kenichi Handa <handa@m17n.org>
19351
19352 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19353 (coding_charset_list): New function.
19354
19355 * coding.h (coding_charset_list): Extern it.
19356
193572008-02-01 Kenichi Handa <handa@m17n.org>
19358
19359 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19360 concatenation of family and registry.
19361
193622008-02-01 Kenichi Handa <handa@m17n.org>
19363
19364 * character.h (BYTE8_STRING): Fix typo.
19365
19366 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19367 string to multibyte (sync to HEAD).
19368
19369 * casefiddle.c (casify_region): Handle changes in byte-length
19370 using replace_range_2 (sync to HEAD).
19371
193722008-02-01 Andreas Schwab <schwab@suse.de>
19373
19374 * chartab.c (map_char_table): GCPRO table and arg.
19375
193762008-02-01 Kenichi Handa <handa@m17n.org>
19377
19378 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19379 already at limit.
19380
193812008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19384 instead of fast_c_string_match_ignore_case.
19385 (find_font_encoding): Change argument to Lisp_Object. Use
19386 fast_string_match_ignore_case instead of
19387 fast_c_string_match_ignore_case. Change caller.
19388
193892008-02-01 Kenichi Handa <handa@m17n.org>
19390
19391 * xdisp.c (get_next_display_element): In unibyte case, decide to
19392 display in octal form by checking a character by
19393 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19394
19395 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19396
19397 * character.c (unibyte_has_multibyte_table): New variable.
19398
19399 * character.h (unibyte_has_multibyte_table): Extern it.
19400 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19401
194022008-02-01 Kenichi Handa <handa@m17n.org>
19403
19404 * coding.c (encode_coding_iso_2022): Fix handling of charset
19405 annotation.
19406
194072008-02-01 Kenichi Handa <handa@m17n.org>
19408
19409 * coding.c (setup_coding_system): If coding_system is nil, use
19410 Qundecided.
19411 (Fterminal_coding_system): Return nil if terminal coding system is
19412 `undecided'.
19413 (syms_of_coding): Define coding-system `undecided' here. Setup
19414 terminal_coding as `undecided'.
19415
194162008-02-01 Kenichi Handa <handa@m17n.org>
19417
19418 * xdisp.c (message_dolog, set_message_1): Call
19419 unibyte_char_to_multibyte with arg type int.
19420
19421 * lread.c (read1): Fix reading of a char-table.
19422
19423 * print.c (print_object): Include sub char-table in circularities
19424 detection.
19425
194262008-02-01 Kenichi Handa <handa@m17n.org>
19427
19428 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19429 Append the found sequences in car of ARGS instead of prepending.
19430
194312008-02-01 Kenichi Handa <handa@m17n.org>
19432
19433 * fileio.c (report_file_error): Make a unibyte string from
19434 strerror (errorno).
19435 (Fsubstitute_in_file_name): Fix the arg to
19436 unibyte_char_to_multibyte. It is evaluated twice.
19437
194382008-02-01 Kenichi Handa <handa@m17n.org>
19439
19440 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19441
194422008-02-01 Kenichi Handa <handa@m17n.org>
19443
19444 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19445 BOM is not found.
19446 (detect_coding, detect_coding_system): Optimization for ISO-2022
19447 when no 8-bit data is found.
19448
194492008-02-01 Jason Rumney <jasonr@gnu.org>
19450
19451 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19452
194532008-02-01 Kenichi Handa <handa@m17n.org>
19454
19455 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19456 CHARS.
19457
194582008-02-01 Steven Tamm <steventamm@mac.com>
19459
19460 * macterm.c (mac_encode_char): Add charset argument and update
19461 to use encoding_type.
19462 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19463 switch to pure fontset.
19464 (decode_mac_font_name): Temporarily remove decoding.
19465 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19466 (x_load_font): Temporarily remove encoding.
19467
194682008-02-01 Kenichi Handa <handa@m17n.org>
19469
19470 * xfaces.c (Fface_font): If frame is not on a window system,
19471 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19472 refer to face->font.
19473 (split_font_name_into_vector, build_font_name_from_vector)
19474 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19475 when HAVE_WINDOW_SYSTEM is defined.
19476
194772008-02-01 Kenichi Handa <handa@m17n.org>
19478
19479 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19480 (x_produce_glyphs): Fix setting of members of cmp in case
19481 cmp->glyph_len is zero.
19482
19483 * fontset.c (Fset_fontset_font): Fix docstring.
19484 (Ffontset_info): Make it backward compatible. New arg ALL.
19485
194862008-02-01 Kim F. Storm <storm@cua.dk>
19487
19488 * process.c (read_process_output): Grow decoding_buf when needed;
19489 this could cause a crash in allocate_string and compact_small_strings.
19490
194912008-02-01 Kenichi Handa <handa@m17n.org>
19492
19493 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19494
194952008-02-01 Kenichi Handa <handa@m17n.org>
19496
19497 * coding.c (setup_coding_system): Set coding->common_flags
19498 correctly for raw-text.
19499 (consume_chars): On encoding unibyte text by raw-text, don't check
19500 multibyte form.
19501 (encode_coding): On encoding by raw-text, never use translation tables.
19502
19503 * fileio.c (e_write): Short cut for the case of no encoding.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * coding.c (detect_coding, detect_coding_system): Delete unused
19508 variables.
19509
195102008-02-01 Kenichi Handa <handa@m17n.org>
19511
19512 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19513 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19514
195152008-02-01 Kenichi Handa <handa@m17n.org>
19516
19517 * coding.c (Ffind_coding_systems_region_internal): Include
19518 raw-text and no-conversion in the result.
19519
195202008-02-01 Kenichi Handa <handa@m17n.org>
19521
19522 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19523 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19524 FONT_DEF.
19525 (font_def_arg, add_arg, from_arg, to_arg): New args.
19526 (set_fontset_font): Change argument.
19527 (Fset_fontset_font): Fix for the case that TARGET is a script
19528 name and charset name.
19529 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19530
195312008-02-01 Kenichi Handa <handa@m17n.org>
19532
19533 * fontset.c (fontset_font): Rename from fontset_face. Change return
19534 value.
19535 (face_suitable_for_char_p, face_for_char): Adjust for the change
19536 of fontset_font.
19537 (make_fontset_for_ascii_face): Fix setting of the fontset element
19538 for ASCII.
19539 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19540 to get a font name.
19541 (Ffontset_info): Adjust for the change of fontset_font.
19542
19543 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19544
19545 * character.h (LEADING_CODE_LATIN_1_MIN)
19546 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19547
195482008-02-01 Kenichi Handa <handa@m17n.org>
19549
19550 * editfns.c (check_translation): New function.
19551 (Ftranslate_region_internal): Handle M:N mapping.
19552
195532008-02-01 Kenichi Handa <handa@m17n.org>
19554
19555 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19556
195572008-02-01 Kenichi Handa <handa@m17n.org>
19558
19559 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19560 goto invalid_code.
19561 (decode_coding_iso_2022): Fix handling of invalid designation.
19562
19563 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19564 after calling code_conversion_save.
19565
195662008-02-01 Kenichi Handa <handa@m17n.org>
19567
19568 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19569
19570 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19571
19572 * fontset.c: Include "intervals.h".
19573 (fontset_face): Fix comparing of Lisp_Objects.
19574 (free_face_fontset, new_fontset_from_font_name): Fix
19575 Lisp_Object/int mixup.
19576
19577 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19578
19579 * coding.c: Add many prototypes for static functions.
19580 (get_translation_table): Allow max_lookup to be NULL.
19581 (decode_coding, Ffind_coding_systems_region_internal)
19582 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19583 get_translation_table with max_lookup NULL.
19584
195852008-02-01 Kenichi Handa <handa@m17n.org>
19586
19587 * coding.c (get_translation_table): Declare it as Lisp_Object.
19588 (LOOKUP_TRANSLATION_TABLE): New macro.
19589 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19590 instead of CHAR_TABLE_REF.
19591
195922008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19595 annotation data format.
19596 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19597 Change arguments FROM and TO to single argument NCHARS. Change caller.
19598 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19599 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19600 (decode_coding_ccl, decode_coding_charset): Pay attention to
19601 coding->charbuf_used.
19602 (get_translation): New function.
19603 (produce_chars): New arguments translation_table and last_block.
19604 Translate characters here. Return number of carryover chars.
19605 Change caller.
19606 (produce_composition): New argument pos. Change caller.
19607 Adjust for the change of annotation data format.
19608 (produce_charset, produce_annotation): Likewise.
19609 (decode_coding, encode_coding): Don't call translate_chars.
19610 (consume_chars): New arg translation_table. Change caller.
19611 (translate_chars): Delete.
19612 (syms_of_coding): Make translation-table's number of extra slots 2.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * search.c (simple_search): Fix setting this_pos_byte in backward
19617 search.
19618
19619 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19620 byte sequence.
19621 (detect_coding_ccl): Fix setting of the variable valids.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19626
19627 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19628
19629 * editfns.c (Ftranslate_region_internal): Rename from
19630 Ftranslate_region. Accept a char-table in TABLE.
19631 (syms_of_editfns): Defsubr Stranslate_region_internal.
19632
19633 * xfaces.c (set_lface_from_font_name): If a font is specified for
19634 a frame, generate a fontset from the font.
19635 (build_scalable_font_name): If the scalable font is requested for
19636 a specific size, don't change that size.
19637 (try_font_list): Try a scalable font also in the case that a
19638 pattern string is specified.
19639
196402008-02-01 Kenichi Handa <handa@m17n.org>
19641
19642 * xfaces.c (Fface_font): New optional arg CHARACTER.
19643
196442008-02-01 Kenichi Handa <handa@m17n.org>
19645
19646 * charset.h (CHARSET_OFFSET): New macro.
19647
196482008-02-01 Kenichi Handa <handa@m17n.org>
19649
19650 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19651
19652 * fontset.c (fontset_face): Handle the case that repertory is a
19653 char-table.
19654 (find_font_encoding): Return nil for unknown encoding.
19655 (Fset_fontset_font): Ignore a font of unknown encoding.
19656
196572008-02-01 Kenichi Handa <handa@m17n.org>
19658
19659 * keymap.c (describe_vector): Handle default value of a char table.
19660
19661 * fontset.c (fontset_face): Handle fallback fonts correctly.
19662 (Ffontset_info): Return infomation about fallback fonts.
19663
196642008-02-01 Kenichi Handa <handa@m17n.org>
19665
19666 * fontset.c (FONTSET_DEFAULT): New macro.
19667 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19668 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19669 the case that it is nil.
19670 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19671 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19672
19673 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19674 subset or superset.
19675
196762008-02-01 Kenichi Handa <handa@m17n.org>
19677
19678 * emacs.c (main): Call init_charset after syms_of_XXX.
19679
19680 * charset.c (Vcharset_map_directory): Delete.
19681 (Vcharset_map_path): New variable.
19682 (load_charset_map_from_file): Use Vcharset_map_path instead.
19683 (init_charset): Initialize Vcharset_map_path.
19684 (syms_of_charset): Delete declaration of "charset-map-directory",
19685 add declaration of "charset-map-path".
19686
196872008-02-01 Kenichi Handa <handa@m17n.org>
19688
19689 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19690 ASCII only string.
19691
19692 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19693
19694 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19695 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19696
196972008-02-01 Kenichi Handa <handa@m17n.org>
19698
19699 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19700
19701 * coding.c (QCmnemonic, QCdefalut_char)
19702 (QCdecode_translation_table, QCencode_translation_table)
19703 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19704 (get_translation_table): Return a list of translation tables if
19705 necessary.
19706 (decode_coding): Call get_translation_table with ENCODEP 0.
19707 (char_encodable_p): If translation_table is non-nil, always call
19708 translate_char.
19709 (Fdefine_coding_system_internal): Accept list of translation
19710 tables as :encode-translation-table and :decode-translation-table.
19711 (Fcoding_system_put): New function.
19712 (syms_of_coding): Declare new symbols. Defsubr
19713 Scoding_system_put.
19714 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19715 typically JISX0212.
19716
19717 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19718 when the charset is superset type.
19719
19720 * character.c (translate_char): Accept list of translation tables.
19721
197222008-02-01 Kenichi Handa <handa@m17n.org>
19723
19724 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19725 (CODING_ATTR_TRANS_TBL): New macro.
19726
19727 * coding.c (get_translation_table): New function.
19728 (translate_chars): Fix the bug of skipping annotation data.
19729 (decode_coding, encode_coding): Utilize get_translation_table.
19730 (char_encodable_p, Funencodable_char_position): Translate char if
19731 necessary.
19732 (Ffind_coding_systems_region_internal)
19733 (Fcheck_coding_systems_region): Setup translation table for encode
19734 in a coding system attribute vector in advance.
19735 (Fdefine_coding_system_internal): Allow a symbol as translation
19736 table. For shift-jis type coding system, allow 4th charset.
19737
197382008-02-01 Kenichi Handa <handa@m17n.org>
19739
19740 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19741
19742 * xdisp.c (get_next_display_element): Pass -1 as POS to
19743 FACE_FOR_CHAR if displaying a C-string.
19744
197452008-02-01 Kenichi Handa <handa@m17n.org>
19746
19747 * composite.c (get_composition_id): Handle xoff and yoff in a
19748 composition rule.
19749
19750 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19751 (struct composition): New member lbearing and rbearing.
19752
19753 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19754 (x_get_glyph_overhangs): Handle a composition glyph.
19755 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19756
19757 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19758 composition glyph.
19759
197602008-02-01 Kenichi Handa <handa@m17n.org>
19761
19762 * print.c: Include charset.h.
19763 (Vprint_charset_text_property): New variable.
19764 (Qdefault): Extern it.
19765 (PRINT_STRING_NON_CHARSET_FOUND)
19766 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19767 (print_check_string_result): New variable.
19768 (print_check_string_charset_prop): New function.
19769 (print_prune_charset_plist): New variable.
19770 (print_prune_string_charset): New function.
19771 (print_object): Call print_prune_string_charset if
19772 Vprint_charset_text_property is not t.
19773 (print_interval): Print nothing if interval->plist is nil.
19774 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19775 variable. Init and staticpro print_prune_charset_plist.
19776
197772008-02-01 Kenichi Handa <handa@m17n.org>
19778
19779 * fontset.c (new_fontset_from_font_name): Use the specified font
19780 for all characters in the new fontset.
19781
19782 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19783 OBJECT args.
19784
19785 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19786 OBJECT args for composition too.
19787
19788 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19789 OBJECT args.
19790
197912008-02-01 Kenichi Handa <handa@m17n.org>
19792
19793 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19794
19795 * fontset.c (reorder_font_vector): Adjust for the change of
19796 FONT_DEF format.
19797 (fontset_face): New arg id. Change caller.
19798 (face_for_char): New args pos and object.
19799 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19800 (fs_query_fontset): Check NAME by Fassoc too.
19801 (Fset_fontset_font): Allow non-XLFD font name.
19802 (Ffontset_info): Adjust for the change of FONT_DEF format.
19803
19804 * fontset.h (face_for_char): Adjust prototype.
19805
19806 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19807 (append_space, extend_face_to_end_of_line)
19808 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19809 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19810
19811 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19812 POS and OBJECT args.
19813
19814 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19815 POS and OBJECT args.
19816
198172008-02-01 Jason Rumney <jasonr@gnu.org>
19818
19819 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19820 of GlobalAlloc'ed memory.
19821
198222008-02-01 Kenichi Handa <handa@m17n.org>
19823
19824 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19825
19826 * charset.h (charset_table_used): Delete extern.
19827
19828 * charset.c (charset_table_used): Make it static.
19829 (map_charset_chars): Fix args to c_function with.
19830
19831 * chartab.c (map_sub_char_table_for_charset): Fix args to
19832 c_function with.
19833
19834 * coding.h (enum coding_result_code): Delete
19835 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19836
19837 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19838 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19839 (Vlast_code_conversion_error): New variables.
19840 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19841 (ONE_MORE_BYTE): Record error if any instead of signaling an
19842 error. If non-ASCII multibyte char is found, return the negative
19843 value of the code. All callers changed to check it.
19844 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19845 (record_conversion_result): New function. Change all codes setting
19846 coding->result to call this function.
19847 (detect_coding_utf_8, decode_coding_utf_8)
19848 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19849 Don't use the local variable incomplete.
19850 (emacs_mule_char): Change the second arg to `const'.
19851 (decode_coding): Fix of flushing out unprocessed data.
19852 (make_conversion_work_buffer): Fix making of a work buffer.
19853 (decode_coding_object): Return coding->dst_object.
19854
19855 * fontset.c (set_fontset_font): Fix args.
19856
19857 * lisp.h (CHARACTERBITS): Define as 22.
19858
19859 * process.c (send_process): Be sure to set coding->src_multibyte.
19860
19861 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19862
198632008-02-01 Kenichi Handa <handa@m17n.org>
19864
19865 * xdisp.c (handle_auto_composed_prop): Give limit to
19866 Fnext_single_char_property_change.
19867
198682008-02-01 Kenichi Handa <handa@m17n.org>
19869
19870 * composite.c (syms_of_composite): Don't make the composition hash
19871 table weak.
19872
19873 * fontset.c (Fset_fontset_font): Fix docstring.
19874
19875 * lisp.h (detect_coding_system): Adjust prototype.
19876
19877 * fileio.c (kill_workbuf_unwind): Delete this function.
19878 (Finsert_file_contents): Adjust the call of detect_coding_system.
19879 Get conversion_buffer by code_conversion_save. Use the macro
19880 CODING_MAY_REQUIRE_DECODING. After decoding, update
19881 coding_system.
19882
19883 * coding.h (make_conversion_work_buffer): Delete extern.
19884 (code_conversion_save): Extern it.
19885
19886 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19887 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19888 (decode_coding_utf_8): Don't do eol converion.
19889 (detect_coding_utf_16): Check coding->src_chars, not
19890 coding->src_bytes. Add heuristics for those that have no signature.
19891 (decode_coding_emacs_mule, decode_coding_iso_2022)
19892 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19893 Don't do eol converion.
19894 (adjust_coding_eol_type): Return a new coding system.
19895 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19896 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19897 each change.
19898 (decode_coding): Pay attention to undo_list. Do eol conversion for
19899 all types of coding-systems (if necessary).
19900 (Vcode_conversion_work_buf_list): Delete it.
19901 (Vcode_conversion_reused_workbuf): Rename from
19902 Vcode_conversion_reused_work_buf.
19903 (Vcode_conversion_workbuf_name): New variable.
19904 (reused_workbuf_in_use): New variable.
19905 (make_conversion_work_buffer): Delete the arg DEPTH.
19906 (code_conversion_restore): Change argument to cons.
19907 (code_conversion_save): Delete the argument BUFFER. Change callers.
19908 (detect_coding_system): New argument src_chars. Change callers.
19909 Fix for utf-16 detection.
19910 (init_coding_once): Don't use ISO_carriage_return.
19911 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19912 reused_workbuf_in_use.
19913
199142008-02-01 Kenichi Handa <handa@m17n.org>
19915
19916 * keymap.c (store_in_keymap): Pay attention to the case that idx
19917 is a cons specifying a character range.
19918
199192008-02-01 Kenichi Handa <handa@m17n.org>
19920
19921 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19922 HANDLED_RECOMPUTE_PROPS.
19923
19924 * coding.c (Fdefine_coding_system_internal): Fix checking of
19925 ascii compatibility.
19926
199272008-02-01 Kenichi Handa <handa@m17n.org>
19928
19929 * charset.c (find_charsets_in_text): Delete unused locale variable.
19930 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19931
19932 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19933 Resync charset_list to Vemacs_mule_charset_list.
19934
19935 * keymap.c (store_in_keymap): Pay attention to the case that idx
19936 is a cons specifying a character range.
19937
199382008-02-01 Kenichi Handa <handa@m17n.org>
19939
19940 * composite.c (update_compositions): Bind inhibit-read-only, etc
19941 to t before calling remove-list-of-text-properties.
19942
19943 * print.c (print_object): Always print ASCII chars as is.
19944
199452008-02-01 Kenichi Handa <handa@m17n.org>
19946
19947 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19948
19949 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19950 is a char table.
19951
199522008-02-01 Kenichi Handa <handa@m17n.org>
19953
19954 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19955
199562008-02-01 Kenichi Handa <handa@m17n.org>
19957
19958 * xfaces.c (set_lface_from_font_name): Fix for the case that
19959 FONTNAME is not fontset name.
19960
199612008-02-01 Kenichi Handa <handa@m17n.org>
19962
19963 * fns.c (base64_encode_1): Fix previous change.
19964
199652008-02-01 Kenichi Handa <handa@m17n.org>
19966
19967 * fontset.c (set_fontset_font): New function.
19968 (Fset_fontset_font): If a font is specified for a charset, use
19969 map_charset_chars to store the font spec in a fontset.
19970
199712008-02-01 Kenichi Handa <handa@m17n.org>
19972
19973 * fontset.c (fontset_face): Create a fallback fontset on demand.
19974 (make_fontset): Don't create a fallback fontset here.
19975 (free_face_fontset): Free a fallback fontset (if any) too.
19976 (n_auto_fontsets): Delete this variable.
19977 (auto_fontset_alist): New variable.
19978 (new_fontset_from_font_name): Check auto_fontset_alist.
19979 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19980 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19981 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19982 Defsubr Sfontset_list_all.
19983
199842008-02-01 Kenichi Handa <handa@m17n.org>
19985
19986 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19987
199882008-02-01 Kenichi Handa <handa@m17n.org>
19989
19990 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19991
199922008-02-01 Kenichi Handa <handa@m17n.org>
19993
19994 * editfns.c (Fgoto_char): Fix docstring.
19995
199962008-02-01 Kenichi Handa <handa@m17n.org>
19997
19998 * insdel.c (insert_from_gap): Adjust intervals correctly.
19999
200002008-02-01 Jason Rumney <jasonr@gnu.org>
20001
20002 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20003 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20004 (w32_initialize): Try to load it.
20005 (x_get_font_repertory): Use it if available.
20006 (w32_encode_char): Add shortcut for unicode output.
20007
20008 * w32fns.c (w32_load_system_font): Default charset to -1.
20009 (x_to_w32_charset): Match all fonts for unicode.
20010 (w32_to_x_charset): New parameter matching. Don't return partial
20011 or wildcard charsets.
20012 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20013 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20014 (w32_to_x_font): Match charset to real charset.
20015 (enum_font_cb2): Always list unicode versions.
20016
20017 * makefile.w32-in (temacs): Increase EMHEAP.
20018
200192008-02-01 Jason Rumney <jasonr@gnu.org>
20020
20021 * w32term.c (w32_encode_char): New charset parameter.
20022 font_info.encoding becomes encoding_type.
20023 (x_get_font_repertory): New function. Warning: stub only!
20024 (x_new_font): Return quickly if font already set.
20025 (x_new_fontset): fontsetname parameter is Lisp_Object.
20026 Use new fs_query_fontset. Try new_fontset_from_font_name.
20027 Use fontset_name for return value.
20028
20029 * w32term.h: Declare x_get_font_repertory.
20030
20031 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20032 place of find_charset_in_text. Use encode_coding_object in place
20033 of encode_coding.
20034 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20035 decode_coding.
20036
20037 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20038 of x_new_fontset.
20039 (w32_load_system_font): Initialize charset as unicode.
20040 font_info.encoding becomes encoding_type.
20041 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20042 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20043 (syms_of_w32fns): Set get_font_repertory_func.
20044
20045 * w32console.c: Include character.h. Use terminal_encode_buffer
20046 from term.c.
20047 (write_glyphs): Use new version of encode_terminal_code. Use
20048 encode_coding_object in place of encode_coding.
20049
20050 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20051 encoding becomes encoding_type.
20052
20053 * term.c (terminal_encode_buffer): Make externally visible.
20054
20055 * makefile.w32-in: Add character.h dependancies.
20056 (character.o, chartab.o): New targets.
20057
200582008-02-01 Kenichi Handa <handa@m17n.org>
20059
20060 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20061 CODING_ID_EOL_TYPE.
20062
200632008-02-01 Andreas Schwab <schwab@suse.de>
20064
20065 * coding.c (produce_chars): Revert last change.
20066
200672008-02-01 Kenichi Handa <handa@m17n.org>
20068
20069 * charset.h (charset_unicode): Extern it.
20070
20071 * charset.c (string_xstring_p): Check by (C >= 0x100).
20072 (find_charsets_in_text): Change format of the arc CHARSETS. New
20073 arg MULTIBYTE.
20074 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20075 change of find_charsets_in_text.
20076 (Fsplit_char): Fix doc. Never return unknown.
20077
20078 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20079
20080 * coding.c (Fdefine_coding_system_alias): Update
20081 Vcoding_system_list.
20082
20083 * fontset.c (load_font_get_repertory): Pay attention to the case
20084 that ENCODING of a font is specified by a char-table.
20085
20086 * xterm.c (x_get_font_repertory): Handle the case that the
20087 encoding of font is other than Unicode.
20088
200892008-02-01 Kenichi Handa <handa@m17n.org>
20090
20091 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20092 if a character is encodable by the terminal coding system. If
20093 not, produces proper number of `?'s. Update
20094 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20095 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20096
200972008-02-01 Kenichi Handa <handa@m17n.org>
20098
20099 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20100 variables.
20101 (encode_terminal_code): Change argument. Encode multiple
20102 characters at once. Store the result of encoding in
20103 terminal_encode_buffer.
20104 (write_glyphs, insert_glyphs): Adjust for the change of
20105 encode_terminal_code.
20106 (term_init): Initialize terminal_encode_buffer and
20107 terminal_encode_buf_size.
20108
20109 * coding.c (consume_chars): If coding->src_object is nil, don't
20110 check annotation.
20111
201122008-02-01 Kenichi Handa <handa@m17n.org>
20113
20114 * character.c (char_string): Use ASCII_CHAR_P instead of
20115 SINGLE_BYTE_CHAR_P.
20116
201172008-02-01 Kenichi Handa <handa@m17n.org>
20118
20119 * xdisp.c (handle_auto_composed_prop): Check if the last
20120 characters of auto-composed region is newly composed with the
20121 following characters.
20122 (handle_composition_prop): Fix checking of point being inside
20123 composition.
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * fns.c (concat): Don't change multibyteness of the result by
20128 concatenating an 8-bit character.
20129
20130 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20131 multibyteness of the result when newelt is an 8-bit character.
20132
201332008-02-01 Dave Love <fx@gnu.org>
20134
20135 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20136 EMACS_INT.
20137
20138 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20139
20140 * xfaces.c (face_numeric_value): Declare dim size_t.
20141 (Finternal_lisp_face_equal_p): Remove unused f.
20142
20143 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20144 (MATRIX_ROW): Remove unused vars.
20145 (draw_glyphs, x_insert_glyphs, fast_find_position)
20146 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20147 byte/char counts.
20148
20149 * regex.c (regex_compile): Remove unused var.
20150
20151 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20152
20153 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20154 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20155
20156 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20157
20158 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20159
20160 * fileio.c (Fwrite_region): Remove unused var.
20161
20162 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20163 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20164
20165 * composite.c (Fremove_list_of_text_properties): Declare.
20166
20167 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20168 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20169 (coding_inherit_eol_type): Remove unused attrs.
20170 (detect_coding): Cast arg of detect_eol.
20171
20172 * charset.c (syms_of_charset): Remove unused var p.
20173 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20174 byte/char counts.
20175
20176 * casetab.c (set_case_table): Remove unused var.
20177
20178 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20179 unused vars.
20180
201812008-02-01 Dave Love <fx@gnu.org>
20182
20183 * xterm.c (x_bitmap_mask): Declare.
20184
201852008-02-01 Dave Love <fx@gnu.org>
20186
20187 * xterm.c (x_term_init): Fix type error.
20188
20189 * lisp.h: Add Funibyte_char_to_multibyte.
20190
20191 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20192 (Fset_coding_system_priority): Doc fix.
20193
20194 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20195
20196 * indent.c (check_composition): Make start and end EMACS_INT.
20197
20198 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20199
20200 * xdisp.c (handle_composition_prop, check_point_in_composition):
20201 Make buffer positions EMACS_INT.
20202
20203 * composite.c (find_composition, run_composition_function)
20204 (update_compositions, Ffind_composition_internal): Make buffer
20205 positions EMACS_INT.
20206
20207 * composite.h (find_composition, update_compositions): Make
20208 position args EMACS_INT.
20209
20210 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20211
20212 * intervals.c (get_property_and_range):
20213 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20214
20215 * unexalpha.c: Don't include varargs.h.
20216
202172008-02-01 Dave Love <fx@gnu.org>
20218
20219 * coding.h (ENCODE_UTF_8): New.
20220
20221 * Makefile.in (gtkutil.o): Depend on coding.h.
20222
20223 * coding.c (Fset_coding_system_priority): Doc fix.
20224
202252008-02-01 Kenichi Handa <handa@m17n.org>
20226
20227 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20228 the case of auto saving.
20229
202302008-02-01 Andreas Schwab <schwab@suse.de>
20231
20232 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20233 `range' from GC.
20234
202352008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20238
202392008-02-01 Kenichi Handa <handa@m17n.org>
20240
20241 * fileio.c (choose_write_coding_system): Return a decided coding system.
20242 (Fwrite_region): Set Vlast_coding_system_used to the return value
20243 of choose_write_coding_system.
20244
202452008-02-01 Kenichi Handa <handa@m17n.org>
20246
20247 * charset.c (Fset_charset_priority): Pay attention to duplicated
20248 arguments.
20249
20250 * coding.c (QCcategory): New variable.
20251 (syms_of_coding): Defsym it. Set all elements of
20252 Vcoding_category_table and their symbol values.
20253 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20254 coding-category-XXX, and coding-category-list.
20255 (Fdefine_coding_system_internal): Add category in the plist.
20256
202572008-02-01 Kenichi Handa <handa@m17n.org>
20258
20259 * callproc.c (Fcall_process): Handle carryover correctly.
20260
20261 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20262 (raw_text_coding_system): Check NILP (coding_system).
20263 (coding_inherit_eol_type): Check NILP (coding_system) and
20264 NILP (parent).
20265 (consume_chars): Fix for the case of raw-text.
20266
20267 * process.c (read_process_output): Handle carryover correctly.
20268
202692008-02-01 Dave Love <fx@gnu.org>
20270
20271 * regex.c (re_search_2): Fix last change.
20272
202732008-02-01 Kenichi Handa <handa@m17n.org>
20274
20275 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20276 target_multibyte. Even in a unibyte case, return a converted
20277 multibyte char.
20278 (GET_CHAR_AFTER): New macro.
20279 (PATFETCH): Translate via multibyte char.
20280 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20281 (SETUP_MULTIBYTE_RANGE): New macro.
20282 (regex_compile): Setup compiled code so that its multibyteness
20283 matches that of a target. Fix the handling of "[X-YZ]" using
20284 SETUP_MULTIBYTE_RANGE.
20285 (analyse_first) <charset>: For filling fastmap for all multibyte
20286 characters, don't check by BASE_LEADING_CODE_P.
20287 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20288 the same as RE_MULTIBYTE_P (bufp) now.
20289 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20290 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20291 (TRANSLATE_VIA_MULTIBYTE): New macro.
20292 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20293 It is the same as RE_MULTIBYTE_P (bufp) now.
20294 <exactn>: Translate via multibyte.
20295 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20296 translate it.
20297 <charset, charset_not>: Fetch a character by
20298 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20299 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20300 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20301 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20302 by GET_CHAR_AFTER.
20303 (bcmp_translate): Likewise.
20304
20305 * search.c (compile_pattern): Check the member target_multibyte,
20306 not the member multibyte of buf.
20307
20308 * lread.c (read1): While reading a string, set force_singlebyte
20309 and force_multibyte correctly.
20310
20311 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20312 up of unibyte_to_multibyte_table.
20313
203142008-02-01 Kenichi Handa <handa@m17n.org>
20315
20316 * coding.c (setup_coding_system): If coding has
20317 post-read-conversion or pre-write-conversion, set
20318 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20319 respectively.
20320 (decode_coding_gap): Run post-read-conversion if any.
20321
20322 * fileio.c (Finsert_file_contents): Even if we read into a
20323 unibyte buffer, check if we must decode the result or not.
20324
203252008-02-01 Kenichi Handa <handa@m17n.org>
20326
20327 * coding.c (make_conversion_work_buffer): Change the work buffer
20328 name to the same one as that of Emacs 21.
20329
203302008-02-01 Kenichi Handa <handa@m17n.org>
20331
20332 * coding.h (make_conversion_work_buffer): Adjust prototype.
20333 (code_conversion_restore): Don't extern it.
20334
20335 * coding.c (detected_mask): Delete unused variable.
20336 (decode_coding_iso_2022): Pay attention to the byte sequence of
20337 CTEXT extended segment, and retain those bytes as is.
20338 (decode_coding_ccl): Delete unused variable `valids'.
20339 (setup_coding_system): Delete unused variable `category'.
20340 (consume_chars): Delete unused variable `category'. Make it work
20341 for non-multibyte case.
20342 (make_conversion_work_buffer): Change argument.
20343 (saved_coding): Delete unused variable.
20344 (code_conversion_restore): Don't check saved_coding->destination.
20345 (code_conversion_save): New function.
20346 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20347 instead of record_unwind_protect.
20348 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20349 (detect_coding_system): Delete unused variable `mask'.
20350 (Fdefine_coding_system_internal): Delete unused variable id.
20351
20352 * fileio.c (kill_workbuf_unwind): New function.
20353 (Finsert_file_contents): On replacing, call
20354 make_conversion_work_buffer with correct args, and call
20355 record_unwind_protect with the first arg kill_workbuf_unwind.
20356
20357 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20358
203592008-02-01 Kenichi Handa <handa@m17n.org>
20360
20361 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20362 (fontset_add): Fix for the case that TO is less than TO1.
20363 (Ffontset_info): Don't use fallback fontset on checking the
20364 default fontset.
20365 (dump_fontset): New function for debugging.
20366
20367 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20368 coding_type is Qcharset.
20369
203702008-02-01 Kenichi Handa <handa@m17n.org>
20371
20372 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20373 (map_char_table): Don't inherit the value from the parent on
20374 initializing VAL. Adjust for the above change.
20375
203762008-02-01 Kenichi Handa <handa@m17n.org>
20377
20378 * coding.c (Qsignature, Qendian): Delete these variables.
20379 (syms_of_coding): Don't initialize them.
20380 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20381 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20382 detect_info->found.
20383 (decode_coding_utf_16): Don't detect BOM here.
20384 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20385 is NOT utf_16_without_bom.
20386 (setup_coding_system): For a coding system of type utf-16, check
20387 if the attribute :endian is Qbig or not (not nil or not), and set
20388 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20389 (detect_coding): If coding type is utf-16 and BOM detection is
20390 required, detect it.
20391 (Fdefine_coding_system_internal): For a coding system of type
20392 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20393
203942008-02-01 Kenichi Handa <handa@m17n.org>
20395
20396 * coding.c (coding_set_source): Fix for the case that the current
20397 buffer is different from coding->src_object.
20398 (decode_coding_object): Don't use the conversion work buffer if
20399 DST_OBJECT is a buffer.
20400
204012008-02-01 Dave Love <fx@gnu.org>
20402
20403 * lread.c (read_emacs_mule_char) [len==2]: Index
20404 emacs_mule_charset correctly.
20405
204062008-02-01 Dave Love <fx@gnu.org>
20407
20408 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20409 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20410 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20411 treated specially.)
20412 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20413 (detected_mask): Remove Big5 bits.
20414
204152008-02-01 Kenichi Handa <handa@m17n.org>
20416
20417 The following changes are to make the font rescaling facility
20418 compatible with Emacs 21.
20419
20420 * xfaces.c (Vface_font_rescale_alist): Rename from
20421 Vface_resizing_fonts.
20422 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20423 (font_rescale_ratio): Rename from font_resizing_ratio.
20424 (split_font_name): Set font->rescale_ratio.
20425 (better_font_p): Pay attention to font->rescale_ratio.
20426 (build_scalable_font_name): Likewise. Change RESX, and RESY
20427 fields.
20428 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20429
204302008-02-01 Kenichi Handa <handa@m17n.org>
20431
20432 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20433 (Qutf_16_le): Remove these variables.
20434 (syms_of_coding): Don't DEFSYM them.
20435 (decode_coding_utf_16): Fix handling of BOM.
20436 (encode_coding_utf_16): Fix handling of BOM.
20437
204382008-02-01 Kenichi Handa <handa@m17n.org>
20439
20440 * fileio.c (Finsert_file_contents): On replacing, before decoding
20441 the file into the work buffer, set point of the work buffer to the end.
20442
204432008-02-01 Dave Love <fx@gnu.org>
20444
20445 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20446
204472008-02-01 Dave Love <fx@gnu.org>
20448
20449 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20450 and fix C types.
20451
204522008-02-01 Kenichi Handa <handa@m17n.org>
20453
20454 * xdisp.c (SKIP_GLYPHS): New macro.
20455 (set_cursor_from_row): Pay attention to string display properties.
20456
20457 * category.c (copy_category_entry): Fix for the case that RANGE
20458 is an integer.
20459
20460 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20461
20462 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20463
204642008-02-01 Kenichi Handa <handa@m17n.org>
20465
20466 * charset.c (Fcharset_id_internal): New function.
20467 (syms_of_charset): Defsubr it.
20468
20469 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20470 with the last arg charset_list acquired from coding.
20471 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20472 the attribute coding_attr_ccl_valids.
20473
20474 * coding.h (enum define_coding_ccl_arg_index): Set the first
20475 member coding_arg_ccl_decoder to coding_arg_max.
20476
20477 * ccl.h (ccl_driver): Adjust prototype.
20478
20479 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20480 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20481 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20482 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20483 last arg Qnil.
20484
204852008-02-01 Kenichi Handa <handa@m17n.org>
20486
20487 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20488 call encode_char.
20489
20490 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20491
204922008-02-01 Dave Love <fx@gnu.org>
20493
20494 * composite.c (syms_of_composite): Make composition_hash_table weak.
20495
204962008-02-01 Kenichi Handa <handa@m17n.org>
20497
20498 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20499 (font_name_registry): Don't extern them.
20500 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20501
20502 * fontset.h (Qfontset): Don't extern it.
20503 (new_fontset_from_font_name): Extern it.
20504
20505 * fontset.c: Give 8 extra slots to fontset objects.
20506 (Qfontset_info): New variable.
20507 (syms_of_fontset): Defsym it.
20508 (FONTSET_FALLBACK): New macro.
20509 (fontset_face): Try also the default fontset.
20510 (make_fontset): Realize a fallback fontset from the default fontset.
20511 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20512 using split_font_name_into_vector and build_font_name_from_vector.
20513 (Fset_fontset_font): Access the elements of font_spec by enum
20514 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20515 name by using split_font_name_into_vector.
20516 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20517 generate a proper font name from the fontset name. Update
20518 Vfontset_alias_alist.
20519 (n_auto_fontsets): New variable.
20520 (new_fontset_from_font_name): New function.
20521 (Ffont_info): Store the information about fonts generated from the
20522 default fontset in the first extra slot of the returned char-table.
20523
20524 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20525 (font_name_registry): Delete function.
20526 (split_font_name_into_vector): New function.
20527 (build_font_name_from_vector): New function.
20528 (font_list): The argument REGISTRY is now a list of registry names.
20529 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20530 specifies an explicit font name, return the name as is. Make a
20531 list of registy names.
20532
20533 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20534 of x_new_fontset.
20535 (Fx_create_frame): Don't call x_new_fontset here. Just use
20536 x_list_fonts to check the existence of fonts.
20537
20538 * xterm.h (x_new_fontset): Adjust prototype.
20539
20540 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20541 string. Use new_fontset_from_font_name to create a fontset from a
20542 font name.
20543
205442008-02-01 Kenichi Handa <handa@m17n.org>
20545
20546 * syntax.c (Vfind_word_boundary_function_table): New name for
20547 Vnext_word_boundary_function_table.
20548 (find-word-boundary-function-table): New name for
20549 next-word-boundary-function-table.
20550
205512008-02-01 Dave Love <fx@gnu.org>
20552
20553 * Makefile.in: Fix some dependencies.
20554
20555 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20556 set it to nil before returning.
20557
20558 * composite.c (update_compositions): Fix type error.
20559
20560 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20561
205622008-02-01 Kenichi Handa <handa@m17n.org>
20563
20564 * xterm.c (x_new_font): Optimize for the case that the font is
20565 already set for the frame.
20566
205672008-02-01 Kenichi Handa <handa@m17n.org>
20568
20569 * chartab.c (char_table_ascii): Check if the char table contents
20570 is sub-char-table or not.
20571 (char_table_set, char_table_set_range): Fix argument to
20572 char_table_ascii.
20573
20574 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20575 (detect_coding_utf_8, detect_coding_utf_16)
20576 (detect_coding_emacs_mule, detect_coding_iso_2022)
20577 (detect_coding_sjis, detect_coding_big5)
20578 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20579 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20580 sequence is valid in this coding system. Change callers.
20581 (MAX_ANNOTATION_LENGTH): New macro.
20582 (ADD_ANNOTATION_DATA): New macro.
20583 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20584 ADD_ANNOTATION_DATA. Change the format of annotation data.
20585 (ADD_CHARSET_DATA): New macro.
20586 (emacs_mule_char): New argument ID. Change callers.
20587 (decode_coding_emacs_mule, decode_coding_iso_2022)
20588 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20589 Produce charset annotation data in coding->charbuf.
20590 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20591 to charset annotation data in coding->charbuf.
20592 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20593 coding->common_flags if the coding system is iso-2022 based and
20594 uses designation.
20595 (produce_composition): Adjust for the new annotation data format.
20596 (produce_charset): New function.
20597 (produce_annotation): Handle charset annotation.
20598 (handle_composition_annotation, handle_charset_annotation): New
20599 functions.
20600 (consume_chars): Handle charset annotation. Utilize the above two
20601 functions.
20602 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20603 buffer, get the deleted text as a string and set
20604 coding->src_object to that string.
20605 (detect_coding, detect_coding_system): Use the new struct
20606 coding_detection_info.
20607
20608 * coding.h (struct coding_detection_info): New structure.
20609 (struct coding_system): Adjust prototype of the member `detector'.
20610 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20611
206122008-02-01 Kenichi Handa <handa@m17n.org>
20613
20614 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20615
206162008-02-01 Dave Love <fx@gnu.org>
20617
20618 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20619 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20620 to new local and nullify apropos_accumulate before returning.
20621 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20622
206232008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20626 correctly.
e3eea1fc 20627
aac0c6e3
MR
206282008-02-01 Dave Love <fx@gnu.org>
20629
20630 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20631
206322008-02-01 Kenichi Handa <handa@m17n.org>
20633
20634 The following changes are to make character composition happen
20635 automatically on displaying.
20636
20637 * Makefile.in (lisp, shortlisp): Add composite.elc.
20638
20639 * composite.h (Qauto_composed, Vauto_composition_function)
20640 (Qauto_composition_function): Extern them.
20641
20642 * composite.c (Vcomposition_function_table)
20643 (Qcomposition_function_table): Delete variables.
20644 (Qauto_composed, Vauto_composition_function)
20645 (Qauto_composition_function): New variables.
20646 (run_composition_function): Don't call
20647 compose-chars-after-function.
20648 (update_compositions): Clear `auto-composed' text property.
20649 (compose_chars_in_text): Delete this function.
20650 (syms_of_composite): Staticpro Qauto_composed and
20651 Qauto_composition_function. Declare Vauto_composition_function as
20652 a Lisp variable.
20653
20654 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20655
20656 * xdisp.c (it_props): Add an entry for Qauto_composed.
20657 (handle_auto_composed_prop): New function.
20658
20659 * xselect.c (selection_data_to_lisp_data): Don't call
20660 compose_chars_in_text.
20661
206622008-02-01 Dave Love <fx@gnu.org>
20663
20664 * keyboard.c (read_char): Modify checking around use of
20665 Vkeyboard_translate_table.
20666
20667 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20668 and fix C types.
20669
206702008-02-01 Kenichi Handa <handa@m17n.org>
20671
20672 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20673 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20674 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20675 the case that the last byte is '\r' correctly.
20676 (decode_coding): Flush out the unprocessed data correctly.
20677 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20678
206792008-02-01 Dave Love <fx@gnu.org>
20680
20681 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20682 Add XK_ISO... case.
20683 (xaw_scroll_callback): Revert last change.
20684
206852008-02-01 Kenichi Handa <handa@m17n.org>
20686
20687 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20688
206892008-02-01 Kenichi Handa <handa@m17n.org>
20690
20691 * xfaces.c (Vface_resizing_fonts): New variable.
20692 (struct font_name): New member `resizing_ratio'.
20693 (font_resizing_ratio): New function.
20694 (split_font_name): Set font->resizing_ratio.
20695 (better_font_p): Pay attention to font->resizing_ratio.
20696 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20697 RESX, and RESY fields.
20698 (try_alternative_families): Try scalable fonts if
20699 Vscalable_fonts_allowed is not Qt.
20700 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20701
207022008-02-01 Dave Love <fx@gnu.org>
20703
20704 * xterm.c (xaw_scroll_callback): Cast correctly.
20705
207062008-02-01 Dave Love <fx@gnu.org>
20707
20708 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20709 (lispy_kana_keys): Comment out.
20710 (make_lispy_event) [XK_kana_A]: Comment out.
20711
20712 * xterm.c (xaw_scroll_callback): Cast call_data.
20713 (XTread_socket): Deal with ASCII keysyms.
20714 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20715
207162008-02-01 Dave Love <fx@gnu.org>
20717
20718 * xterm.c (Vx_keysym_table): New.
20719 (syms_of_xterm): Initialize it.
20720 (XTread_socket): Use it.
20721 From head: Eliminate incorrect optimization that tried to avoid
20722 decoding the output of X*LookupString.
20723 (x_get_font_repertory): Delete charset declaration.
20724
207252008-02-01 Kenichi Handa <handa@m17n.org>
20726
20727 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20728 return 0.
20729 (Fdefine_coding_system_internal): Setup
20730 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20731
207322008-02-01 Dave Love <fx@gnu.org>
20733
20734 * coding.c (Fcheck_coding_system): Doc fix.
20735
20736 * editfns.c (Finsert_byte): Return a proper value.
20737
207382008-02-01 Kenichi Handa <handa@m17n.org>
20739
20740 * coding.c (decode_coding): Fix args to translate_chars. Pay
20741 attention to Vstandard_translation_table_for_decode.
20742 (encode_coding): Fix args to translate_chars. Pay attention to
20743 Vstandard_translation_table_for_encode.
20744
20745 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20746 SINGLE_BYTE_CHAR_P.
20747
20748 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20749 not by SINGLE_BYTE_CHAR_P.
20750
20751 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20752 SINGLE_BYTE_CHAR_P.
20753
20754 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20755 SINGLE_BYTE_CHAR_P.
20756
20757 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20758 by SINGLE_BYTE_CHAR_P.
20759
20760 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20761 SINGLE_BYTE_CHAR_P.
20762
207632008-02-01 Dave Love <fx@gnu.org>
20764
20765 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20766
207672008-02-01 Dave Love <fx@gnu.org>
20768
20769 * fns.c (Flanginfo): Fix typo.
20770
20771 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20772
207732008-02-01 Kenichi Handa <handa@m17n.org>
20774
20775 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20776 (detect_coding_emacs_mule, detect_coding_iso_2022)
20777 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20778 incomplete byte sequence. Don't update *mask when correctly detected.
20779 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20780 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20781 (detect_coding, detect_coding_system): Adjust for the changes above.
20782
207832008-02-01 Kenichi Handa <handa@m17n.org>
20784
20785 * character.c (char_string): Rename from
20786 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20787 (string_char): Rename from string_char.
20788
20789 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20790 if C is greater than MAX_3_BYTE_CHAR.
20791 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20792 string_char instead of string_char_with_unification.
20793
207942008-02-01 Dave Love <fx@gnu.org>
20795
20796 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20797
207982008-02-01 Kenichi Handa <handa@m17n.org>
20799
20800 * keymap.c (push_key_description): Pay attention to force_multibyte.
20801
20802 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20803
208042008-02-01 Dave Love <fx@gnu.org>
20805
20806 * charset.c (define_charset_internal): Rename `supprementary'.
20807
20808 * Makefile.in (lisp, shortlisp): Remove latin-N.
20809
208102008-02-01 Dave Love <fx@gnu.org>
20811
20812 * xfns.c (x_window, x_window): Use use_xim.
20813
20814 * xterm.c (use_xim): Initialize.
20815 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20816 (x_term_init): Maybe set use_xim.
20817
20818 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20819
208202008-02-01 Kenichi Handa <handa@m17n.org>
20821
20822 * search.c (search_buffer): Fix case-fold-search of multibyte
20823 characters.
20824 (boyer_moore): Rename the last argument to char_high_bits.
20825
208262008-02-01 Kenichi Handa <handa@m17n.org>
20827
20828 * xdisp.c (display_string): Fix for the case of zero width glyph.
20829
20830 * xfns.c (x_set_font): Change the error message of the case that
20831 x_new_fontset returns Qt.
20832
20833 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20834 (Finternal_set_lisp_face_attribute): Use signal_error for the
20835 error of invalid fontset.
20836
20837 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20838 fontset, return Qt.
20839
208402008-02-01 Dave Love <fx@gnu.org>
20841
20842 * unexelf.c (unexec): Make .got handling not SGI-specific.
20843
20844 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20845
20846 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20847
20848 * keyboard.c (read_key_sequence): Fix type error.
20849
20850 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20851 type error.
20852
20853 * fontset.c (fontset_add): Return Lisp_Object.
20854
208552008-02-01 Dave Love <fx@gnu.org>
20856
20857 * charset.h (charset_ordered_list_tick): Declare extern.
20858
208592008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 The following changes (and some of 2008-02-01 changes of mine) are
20862 for handling syntax, category, and case conversion for unibyte
20863 characters by converting them to multibyte on the fly. With these
20864 changes, we don't have to setup syntax and case tables for unibyte
20865 characters in each language environment.
20866
20867 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20868 multibyte if necessary.
20869
20870 * bytecode.c (Fbyte_code): Likewise.
20871
20872 * character.h (LEADING_CODE_LATIN_1_MIN)
20873 (LEADING_CODE_LATIN_1_MAX): New macros.
20874 (unibyte_to_multibyte_table): Extern it.
20875 (unibyte_char_to_multibyte): New macro.
20876 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20877 (CHAR_LEADING_CODE): New macro.
20878 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20879
20880 * character.c (unibyte_to_multibyte_table): New variable.
20881 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20882 (multibyte_char_to_unibyte): If C is an eight-bit character,
20883 convert it to the corresponding byte value.
20884
20885 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20886 not 1, signals an error. Update the elements of
20887 unibyte_to_multibyte_table.
20888 (init_charset_once): Initialize unibyte_to_multibyte_table.
20889 (syms_of_charset): Define the charset `iso-8859-1'.
20890
20891 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20892 as is without converting it to unibyte. In a unibyte buffer,
20893 convert C to multibyte before checking the syntax.
20894
20895 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20896
20897 * minibuf.c (Fminibuffer_complete_word): Use the macro
20898 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20899
20900 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20901
20902 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20903 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20904 that is zero, convert an eight-bit char to multibyte.
20905 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20906 non-emacs case.
20907 (PATFETCH): Convert an eight-bit char to multibyte.
20908 (HANDLE_UNIBYTE_RANGE): New macro.
20909 (regex_compile): Setup the compiled pattern for multibyte chars
20910 even if the given regex string is unibyte. Use PATFETCH_RAW
20911 instead of PATFETCH in many places. To handle `charset'
20912 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20913 only for ASCII chars.
20914 (analyse_first) <exactn>: Simplify because the compiled pattern
20915 is multibyte.
20916 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20917 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20918 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20919 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20920 multibyte always 1.
20921 (re_search_2): In emacs, set the locale variable multibyte to 1,
20922 otherwise to 0. New local variable target_multibyte. Check it
20923 to decide the multibyteness of STR1 and STR2. If
20924 target_multibyte is zero, convert unibyte chars to multibyte
20925 before translating and checking fastmap.
20926 (TARGET_CHAR_AND_LENGTH): New macro.
20927 (re_match_2_internal): In emacs, set the locale variable multibyte
20928 to 1, otherwise to 0. New local variable target_multibyte. Check
20929 it to decide the multibyteness of STR1 and STR2. Use
20930 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20931 <charset, charset_not>: If multibyte is nonzero, check fastmap
20932 only for ASCII chars. Call bcmp_translate with
20933 target_multibyte, not with multibyte.
20934 <begline>: Declare the local variable C as `unsigned'.
20935 (bcmp_translate): Change the last arg name to target_multibyte.
20936
20937 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20938 the regexp pattern and the matching target. Set cp->buf.multibyte
20939 to the multibyteness of the regexp pattern. Set
20940 cp->but.target_multibyte to the multibyteness of the matching target.
20941 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20942 FETCH_STRING_CHAR_ADVANCE.
20943 (Freplace_match): Convert unibyte chars to multibyte.
20944
20945 * syntax.c (char_quoted, back_comment, scan_words)
20946 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20947 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20948 unibyte chars to multibyte.
20949 (skip_chars): Delete the arg syntaxp, and move the code for
20950 handling syntaxes to skip_syntaxes. Change callers.
20951 Fix the case that the multibyteness of STRING and the current
20952 buffer doesn't match.
20953 (skip_syntaxes): New function.
20954 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20955 SINGLE_BYTE_CHAR_P.
20956
209572008-02-01 Kenichi Handa <handa@m17n.org>
20958
20959 * xfaces.c (QCfontset): New variable.
20960 (LFACE_FONTSET): New macro.
20961 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20962 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20963 (Finternal_set_lisp_face_attribute)
20964 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20965 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20966 check also LFACE_FONTSET_INDEX.
20967 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20968 attrs[LFACE_FONT_INDEX].
20969 (syms_of_xfaces): Intern and staticpro QCfontset.
20970
20971 * dispextern.h (enum lface_attribute_index): New member
20972 LFACE_FONTSET_INDEX.
20973
20974 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20975
209762008-02-01 Kenichi Handa <handa@m17n.org>
20977
20978 * coding.c (coding_set_destination): Fix coding->destination for
20979 the case converting a region.
20980 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20981 (encode_coding_object): Fix coding->dst_pos and
20982 coding->dst_pos_byte for the case converting a region.
20983
20984 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20985
20986 * character.h (BYTE8_STRING): New macro.
20987
20988 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20989
209902008-02-01 Kenichi Handa <handa@m17n.org>
20991
20992 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20993 characters by octal form.
20994
20995 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20996
20997 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20998 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20999 _fetch_multibyte_char_len.
21000 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21001
21002 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21003
21004 * casefiddle.c (casify_object): Simplify. Handle the case that
21005 the case conversion change the byte length.
21006 (casify_region): Likewise.
21007
21008 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21009
21010 * character.c (_fetch_multibyte_char_len): Delete this variable.
21011 (syms_of_character): Setup Vprintable_chars.
21012
21013 * editfns.c (Fchar_equal): Fix for the unibyte case.
21014 (Finsert_byte): New function.
21015 (syms_of_editfns): Defsubr it.
21016
21017 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21018 of direct code 0x3ffff.
21019
21020 * search.c (Freplace_match): Fix for the unibyte case.
21021
210222008-02-01 Kenichi Handa <handa@m17n.org>
21023
21024 * lread.c (safe_to_load_p): Fix the logic.
21025
21026 * syntax.c (scan_words): Don't treat characters belonging to
21027 different scripts as constituting a word.
21028
21029 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21030
21031 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21032
21033 * emacs.c (main): In the case of --unibyte, instead of aborting on
21034 finding non-empty buffer, make it unibyte.
21035
210362008-02-01 Kenichi Handa <handa@m17n.org>
21037
21038 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21039 to create a fontset.
21040
210412008-02-01 Dave Love <fx@gnu.org>
21042
21043 * character.c (Funibyte_char_to_multibyte): Doc fix.
21044
21045 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21046
210472008-02-01 Kenichi Handa <handa@m17n.org>
21048
21049 * fontset.c (fontset_add): Make the type `int'.
21050 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21051
21052 * character.c (unibyte_char_to_multibyte)
21053 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21054 charset_unibyte, not charset_primary.
21055
21056 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21057
21058 * charset.c (charset_unibyte): Rename from charset_primary.
21059 (Funibyte_charset): Rename from Fprimary_charset.
21060 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21061 (syms_of_charset): Adjust for the above changes.
21062
21063 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21064 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21065 it->multibyte_p is zero.
21066
21067 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21068 Delete extern.
21069
210702008-02-01 Kenichi Handa <handa@m17n.org>
21071
21072 * coding.c (Fdefine_coding_system_internal): Fix category setting
21073 for a coding system of type iso-2022.
21074
210752008-02-01 Kenichi Handa <handa@m17n.org>
21076
21077 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21078
210792008-02-01 Kenichi Handa <handa@m17n.org>
21080
21081 * syntax.c (Vnext_word_boundary_function_table): New variable.
21082 (next-word-boundary-function-table): Declare it as a Lisp variable
21083 in syms_of_syntax.
21084 (scan_words): Call functions in Vnext_word_boundary_function_table
21085 if any.
21086
21087 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21088
21089 * fontset.c (fs_load_font): If fontp->charset is not negative,
21090 return fontp without setting its members.
21091
210922008-02-01 Dave Love <fx@gnu.org>
21093
21094 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21095
21096 * m/sparc.h (HAVE_ALLOCA): Delete.
21097
21098 * s/irix6-5.h: Don't include strings.h.
21099 (bcopy, bzero, bcmp): Don't undef.
21100
21101 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21102
21103 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21104 (TIOCSIGSEND): Don't test IRIX6.
21105 (bcopy, bzero, bcmp): Define conditionally.
21106
211072008-02-01 Kenichi Handa <handa@m17n.org>
21108
21109 * buffer.c (Qas, Qmake, Qto): New variables.
21110 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21111 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21112
21113 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21114 we are inserting a process output into a multibyte buffer.
21115
21116 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21117 multibyte_char_to_unibyte.
21118
21119 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21120 by the primary charset, make it eight-bit char.
21121 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21122
21123 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21124 (charset_8_bit__control, charset_8_bit_graphic)
21125 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21126 (define_charset_internal): New function.
21127 (syms_of_charset): Call define_charset_internal for pre-defined
21128 charsets.
21129
21130 * charset.h (charset_8_bit): Extern it.
21131
21132 * coding.c (make_conversion_work_buffer): Adjust for the change
21133 of Fset_buffer_multibyte.
21134 (encode_coding_raw_text): Increment p0 in the loop.
21135
21136 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21137
21138 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21139 for the change of Fset_buffer_multibyte.
21140
21141 * fns.c (Fstring_to_multibyte): New function.
21142 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21143
211442008-02-01 Dave Love <fx@gnu.org>
21145
21146 * xfns.c (x_put_x_image): Declare args.
21147
21148 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21149 (try_font_list): Declare an arg.
21150
21151 * xdisp.c (message2_nolog, set_message): Declare an arg.
21152
21153 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21154
21155 * syntax.c (scan_sexps_forward): Declare an arg.
21156
21157 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21158 Declare an arg.
21159
21160 * lisp.h (Fnew_fontset): Declare.
21161
21162 * keymap.c (push_key_description): Call CHARACTERP correctly.
21163
21164 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21165 (face_for_char): Delete unused vars.
21166 (Fset_fontset_font): Doc fix. Delete unused vars.
21167
21168 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21169
21170 * composite.c (update_compositions): Declare arg.
21171
21172 * cm.c (calccost, cmgoto): Declare args.
21173
21174 * charset.c: Remove `emacs' conditional. Doc fixes.
21175 (map_char_table_for_charset): Declare.
21176
21177 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21178
21179 * ccl.c: Remove `emacs' conditional.
21180
211812008-02-01 Kenichi Handa <handa@m17n.org>
21182
21183 The following changes are to allow specifying multiple font
21184 patterns for a character range (specified by script or charset).
21185
21186 * Makefile.in (abbrev.o): Depend on syntax.h.
21187 (xfaces.o): Depend on charset.h.
21188
21189 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21190 SINGLE_BYTE_CHAR_P.
21191
21192 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21193
21194 * character.h (Vchar_script_table): Extern it.
21195
21196 * character.c (Vscript_alist): Delete.
21197 (Vchar_script_table, Qchar_script_table): New variable.
21198 (syms_of_character): Declare Vchar_script_table as a lisp variable
21199 and initialize it.
21200
21201 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21202 have property char-table-extra-slots, make no extra slot.
21203
21204 * dispextern.h (struct face): Delete member `charset'.
21205 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21206 SINGLE_BYTE_CHAR_P.
21207 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21208 Add prototypes.
21209 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21210 (generate_ascii_font_name): Rename from generate_ascii_font.
21211
21212 * fontset.h (get_font_repertory_func): New prototype.
21213 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21214 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21215
21216 * fontset.c (Qprepend, Qappend): New variables.
21217 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21218 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21219 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21220 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21221 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21222 (load_font_get_repertory): New functions.
21223 (fontset_set): Delete.
21224 (fontset_face): New arg FACE. Return face ID, not face.
21225 Complete re-write to handle new fontset structure. Change caller.
21226 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21227 (face_for_char): Don't call lookup_face.
21228 (make_fontset_for_ascii_face): New arg FACE.
21229 (fs_load_font): New arg CHARSET_ID. Don't check
21230 Vfont_encoding_alist here.
21231 (find_font_encoding): New function.
21232 (list_fontsets): Use STRINGP, not ! NILP.
21233 (accumulate_script_ranges): New function.
21234 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21235 re-written to handle new fontset structure.
21236 (Ffontset_font): Return a copy of element.
21237 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21238 docstring of font-encoding-alist.
21239
21240 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21241 (Fset_fotset_font): Fix arguments to 5.
21242
21243 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21244
21245 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21246 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21247 (highlight_trailing_whitespace): Adjust for the change of
21248 lookup_named_face.
21249
21250 * xfaces.c: Include charset.h.
21251 (load_face_font): Delete argument C. Change caller.
21252 (generate_ascii_font_name): Rename from generate_ascii_font.
21253 (font_name_registry): New function.
21254 (cache_face): Store ascii faces before non-ascii faces in buckets.
21255 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21256 Lookup only ascii faces.
21257 (lookup_non_ascii_face): New function.
21258 (lookup_named_face): Delete argument C. Change caller.
21259 (lookup_derived_face): Delete argument C. Change caller.
21260 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21261 a string, just call font_list with it.
21262 (choose_face_font): Delete arguments FACE and C. New arg
21263 FONT_SPEC. Change caller.
21264 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21265 Change caller.
21266 (realize_non_ascii_face): New function.
21267 (realize_x_face): Call load_face_font here.
21268 (realize_tty_face): Delete argument C. Change caller.
21269 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21270 get a face ID.
21271 (dump_realized_face): Don't print charset of FACE.
21272
21273 * xfns.c (x_set_font): Always call x_new_fontset and
21274 store_frame_parameter.
21275 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21276 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21277
21278 * xterm.h (x_get_font_repertory): Extern it.
21279
21280 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21281 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21282 it->multibyte_p is zero.
21283 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21284 (x_new_fontset): If FONTSETNAME doesn't match any existing
21285 fontsets, create a new one.
21286 (x_get_font_repertory): New function.
21287
212882008-02-01 Kenichi Handa <handa@m17n.org>
21289
21290 * coding.c (Ffind_coding_systems_region_internal): Detect an
21291 ASCII only string correctly.
21292
21293 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21294 version is 0.
21295
212962008-02-01 Kenichi Handa <handa@m17n.org>
21297
21298 * lread.c: Include "coding.h".
21299 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21300 (load_each_byte, unread_char): New variables.
21301 (readchar_backlog): Delete.
21302 (readchar): Return a character unless load_each_byte is nonzero.
21303 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21304 cons. If unread_char is not -1, simply return it.
21305 (unreadchar): Handle the case that readcharfun is
21306 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21307 (read_multibyte): Delete.
21308 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21309 (read_emacs_mule_char): New functions.
21310 (Fload): Even if the file doesn't have the extension ".elc", if
21311 safe_to_load_p returns a positive version number, assume that the
21312 file contains bytecompiled code. If the version is less than 22,
21313 load the file while decoding multibyte sequences by emacs-mule.
21314 (readevalloop): Don't use readchar_backlog.
21315 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21316 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21317 (read_escape): Delete the arg BYTEREP.
21318 (read1): Set load_each_byte to 1 temporarily while handling
21319 #@NUMBER. Don't call read_multibyte.
21320 (read_vector): Call Fread with a cons. If readcharfun is
21321 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21322 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21323 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21324 and Qload_force_doc_strings.
21325
213262008-02-01 Kenichi Handa <handa@m17n.org>
21327
21328 * xdisp.c (face_before_or_after_it_pos): Call
21329 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21330
213312008-02-01 Kenichi Handa <handa@m17n.org>
21332
21333 * character.h (TRAILING_CODE_P): New macro.
21334 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21335 (string_char_with_unification): Fix prototype.
21336 (Vscript_alist): Extern it.
21337
21338 * character.c (Vscript_alist): New variable.
21339 (string_char_with_unification, str_as_unibyte)
21340 (string_escape_byte8): Add `const' to local variables.
21341 (syms_of_character): Declare script-alist as a Lisp variable.
21342
21343 * charset.h (Vcharset_ordered_list): Extern it.
21344 (charset_ordered_list_tick): Extern it.
21345 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21346 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21347 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21348 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21349 (Funify_charset): Adjust for the change of Funify_charset.
21350
21351 * charset.c (charset_ordered_list_tick): New variable.
21352 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21353 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21354 deunify instead of unify a charset.
aac0c6e3
MR
21355 (string_xstring_p): Add `const' to local variables.
21356 (find_charsets_in_text): Add `const' to arguments and local variables.
21357 (encode_char): Adjust for the change of Funify_charset. Fix
21358 detecting of invalid code.
21359 (Fset_charset_priority): Increment charset_ordered_list_tick.
21360 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21361 and TO_CODE.
21362
21363 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21364 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21365 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21366 (decode_coding_ccl, consume_chars)
21367 (Ffind_coding_systems_region_internal)
21368 (Fcheck_coding_systems_region): Add `const' to local variables.
21369
21370 * print.c (print_object): Use octal form for printing the
21371 contents of a bool vector.
21372
213732008-02-01 Dave Love <fx@gnu.org>
21374
21375 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21376 <version == 20>: Refuse to load.
21377
213782008-02-01 Dave Love <fx@gnu.org>
21379
21380 * fns.c: Move coding.h.
21381 (Qcodeset, Qdays, Qmonths): New.
21382 (concat): Use CHARACTERP instead of INTEGERP.
21383 (Flocale_codeset): Delete.
21384 (Flanginfo): New function.
21385 (syms_of_fns): Change accordingly.
21386
21387 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21388
213892008-02-01 Dave Love <fx@gnu.org>
21390
21391 * casetab.c (init_casetab_once, init_casetab_once): Fix
21392 CHAR_TABLE_SET call.
21393
21394 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21395
21396 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21397
21398 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21399 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21400 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21401
21402 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21403
21404 * coding.c (ENCODE_DESIGNATION, decode_eol)
21405 (make_conversion_work_buffer, code_conversion_restore)
21406 (Fdefine_coding_system_internal): Convert Lisp types.
21407 (code_conversion_restore): Use EQ, not ==.
21408 (Fencode_coding_string): Fix code_convert_string call.
21409
21410 * coding.h (code_convert_region): Fix prototype.
21411
21412 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21413
21414 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21415 (Ffontset_info): Convert Lisp types.
21416
21417 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21418
21419 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21420
21421 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21422
21423 * chartab.c: Include "...h", not <...h> in some cases.
21424
21425 * callproc.c (Fcall_process): Remove unused variables.
21426
214272008-02-01 Dave Love <fx@gnu.org>
21428
21429 * coding.c (Fset_coding_system_priority): Allow null arg list.
21430
214312008-02-01 Dave Love <fx@gnu.org>
21432
21433 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21434 (Fself_insert_and_exit): Use CHARACTERP.
21435
21436 * callproc.c (Fcall_process): Remove unused vars.
21437
21438 * xterm.c (XTread_socket): Add extra dead keysyms.
21439
21440 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21441
21442 * dispextern.h: Remove prototypes for redraw_frame,
21443 redraw_garbaged_frames.
21444
21445 * cmds.c (Fself_insert_command): Use CHARACTERP.
21446
21447 * chartab.c (make_sub_char_table): Remove unused var.
21448 (Fset_char_table_default, Fmap_char_table): Doc fix.
21449
21450 * keymap.c (access_keymap): Remove generic char code.
21451 (push_key_description): Use CHARACTERP.
21452
214532008-02-01 Dave Love <fx@gnu.org>
21454
21455 * charset.c: Doc fixes.
21456 (Funify_charset): Extra checking.
21457
214582008-02-01 Dave Love <fx@gnu.org>
21459
21460 * lread.c: Remove some unused variables.
21461 (safe_to_load_p): If safe, return the magic number version byte.
21462 (Fload): Maybe use load-with-code-conversion.
21463
214642008-02-01 Kenichi Handa <handa@m17n.org>
21465
21466 * category.c (Fmodify_category_entry): Don't modify the contents
21467 of category_set for characters out of the range. Avoid
21468 unnecessary modification.
21469
21470 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21471 Vchar_unify_table. The default value of the table is now nil.
21472
21473 * character.c (syms_of_character): Setup Vchar_width_table for
21474 eight-bit-control and raw-byte chars.
21475
21476 * charset.h (enum define_charset_arg_index): Delete
21477 charset_arg_parents and add charset_arg_subset and
21478 charset_arg_superset.
21479 (enum charset_attr_index): Delete charset_parents and add
21480 charset_subset and charset_superset.
21481 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21482 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21483 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21484 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21485 (CHARSET_SUPERSET): New macros.
21486 (charset_work): Extern it.
21487 (ENCODE_CHAR): Use charset_work.
21488 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21489 (map_charset_chars): Extern it.
21490
21491 * charset.c (load_charset_map): Set the default value of encoder
21492 and deunifier char-tables to nil.
21493 (map_charset_chars): Change argument. Change callers. Use
21494 map_char_table_for_charset instead of map_char_table.
21495 (Fmap_charset_chars): New optional args from_code and to_code.
21496 (Fdefine_charset_internal): Adjust for the change of
21497 `define-charset' (:parents -> :subset or :superset).
21498 (charset_work): New variable.
21499 (encode_char, syms_of_charset): Adjust for the change of
21500 Fdefine_charset_internal.
21501 (Ffind_charset_string): Setup the vector `charsets' correctly.
21502
21503 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21504 the previous change.
21505 (char_table_ref_and_range): Adjust for the above change.
21506 (map_sub_char_table_for_charset): New function.
21507 (map_char_table_for_charset): New function.
21508
21509 * keymap.c (describe_vector): Handle a char-table directly here.
21510 (describe_char_table): Delete.
21511
21512 * lisp.h (map_charset_chars): Delete.
21513
215142008-02-01 Dave Love <fx@gnu.org>
21515
21516 * fns.c (count_combining): Comment out (unused).
21517 (Flocale_codeset): New.
21518 (syms_of_fns): Defsubr it.
21519
21520 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21521 (size_t): Remove.
21522
215232008-02-01 Dave Love <fx@gnu.org>
21524
21525 * Makefile.in (chartab.o): Depend on charset.h.
21526
215272008-02-01 Kenichi Handa <handa@m17n.org>
21528
21529 * character.c (syms_of_character): Set the default value of
21530 Vprintable_chars to Qnil.
21531
215322008-02-01 Dave Love <fx@gnu.org>
21533
21534 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21535
215362008-02-01 Kenichi Handa <handa@m17n.org>
21537
21538 * charset.c (load_charset_map): Handle the case that from < to
21539 correctly.
21540
21541 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21542 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21543 Pay attention to raw-8-bit chars.
21544
215452008-02-01 Kenichi Handa <handa@m17n.org>
21546
21547 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21548 It is not bytecompiled now.
21549
21550 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21551 (charset_jisx0208): New variables.
21552 (Fdefine_charset_internal): Setup them if appropriate.
21553 (init_charset_once): Initialize them to -1.
21554
21555 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21556 (charset_jisx0208): Extern them.
21557
21558 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21559 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21560 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21561 (setup_iso_safe_charsets): Fix arguments to Fassq.
21562 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21563 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21564 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21565 (encode_coding_iso_2022): Change the 1st arg to
21566 ENCODE_ISO_CHARACTER to a variable.
21567
215682008-02-01 Kenichi Handa <handa@m17n.org>
21569
21570 * charset.h (enum define_charset_arg_index): New enums
21571 charset_arg_min_code and charset_arg_max_code.
21572 (struct charset): New member char_index_offset.
21573
21574 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21575 Take charset->char_index_offset into account.
21576 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21577 args[charset_arg_max_code]. Setup charset.char_index_offset.
21578 (syms_of_charset): Fix args to Fdefine_charset_internal.
21579
215802008-02-01 Dave Love <fx@gnu.org>
21581
21582 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21583
215842008-02-01 Dave Love <fx@gnu.org>
21585
21586 * coding.c: Doc fixes.
21587 (Fcoding_system_aliases): Fix return value.
21588 (Qmac): Remove (duplicated) definition.
21589
215902008-02-01 Dave Love <fx@gnu.org>
21591
362654a6
JB
21592 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21593 New functions.
aac0c6e3
MR
21594
21595 * character.c (Fstring): Doc fix.
21596
21597 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21598
362654a6 21599 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21600 (font-encoding-alist): Doc fix.
21601
216022008-02-01 Dave Love <fx@gnu.org>
21603
21604 * term.c (costs_set): Declare static, non-initialized for pcc.
21605 (encode_terminal_code): Remove unused var.
21606
21607 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21608 for K&R.
21609
21610 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21611
21612 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21613 (suffixes): Move out of make_subsidiaries for K&R.
21614
21615 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21616
21617 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21618
216192008-02-01 Dave Love <fx@gnu.org>
21620
21621 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21622
21623 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21624
216252008-02-01 Yong Lu <lyongu@asia-infonet.com>
21626
21627 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21628
21629 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21630
216312008-02-01 Kenichi Handa <handa@m17n.org>
21632
21633 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21634 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21635
216362008-02-01 Kenichi Handa <handa@m17n.org>
21637
21638 * coding.c (decode_coding_charset): Adjust for the change of
21639 Fdefine_coding_system_internal.
21640 (Fdefine_coding_system_internal): For a coding system of
21641 `charset' type, store a list of charset IDs in
21642 `charset_attr_charset_valids' element of coding attributes.
21643
216442008-02-01 Kenichi Handa <handa@m17n.org>
21645
21646 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21647 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21648 caller. Handle 2-byte and 3-byte charsets correctly.
21649 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21650 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21651 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21652 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21653 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21654 sequence.
21655 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21656 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21657 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21658 and alt&rule composition.
21659 (decode_coding_iso_2022): Handle composition correctly.
21660 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21661
21662 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21663 re-defining a charset. If the charset has :emacs-mule-id, setup
21664 emacs_mule_bytes.
21665 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21666
216672008-02-01 Kenichi Handa <handa@m17n.org>
21668
21669 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21670 (encode_coding_big5, encode_coding_charset): If coding requires safe
21671 encoding, produce a character specified by
21672 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21673
216742008-02-01 Dave Love <fx@gnu.org>
21675
21676 * xterm.c (XSetIMValues): Declare.
21677
21678 * process.c: Conditionally include sys/wait.h, pty.h.
21679
21680 * print.c (print_object): Fix print format for 64-bit systems.
21681
21682 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21683
21684 * buffer.c (emacs_strerror): Declare.
21685
21686 * fontset.c (Fclear_face_cache): Declare.
21687 (accumulate_font_info): Comment-out (unused).
21688 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21689 variables.
21690
21691 * character.h (string_escape_byte8): Declare.
21692
21693 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21694 unused vars.
21695 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21696 (Fmap_charset_chars): Doc fix.
21697
21698 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21699 (Fset_coding_system_priority, Fset_coding_system_priority)
21700 (Fdefine_coding_system_internal): Doc fix.
21701
217022008-02-01 Dave Love <fx@gnu.org>
21703
21704 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21705
217062008-02-01 Kenichi Handa <handa@m17n.org>
21707
21708 * character.c (string_escape_byte8): Make multibyte string with
21709 correct size.
21710
21711 * charset.c (Fmake_char): Delete unnecessary code.
21712
217132008-02-01 Kenichi Handa <handa@m17n.org>
21714
21715 * xfns.c (x_encode_text): Allocate coding.destination here, and
21716 call encode_coding_object with dst_object Qnil.
21717
21718 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21719 multibyte form correctly.
21720
21721 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21722 against Vfont_encoding_alist.
21723
21724 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21725 handling of charset list.
21726 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21727 (decode_coding_object): Move point to coding->dst_pos before
21728 calling post-read-conversion function.
21729 (encode_coding_object): Give correct arguments to
21730 pre-write-conversion. Ignore the return value of
21731 pre-write-conversion function. Pay attention to the case that
21732 pre-write-conversion changes the current buffer. If dst_object is
21733 Qt, even if coding->src_bytes is zero, allocate at least one byte
21734 to coding->destination.
21735
21736 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21737
21738 * charset.c (Fmake_char): Make it more backward compatible.
21739 (Fmap_charset_chars): Fix docstring.
21740
217412008-02-01 Dave Love <fx@gnu.org>
21742
21743 * coding.c: Doc fixes.
21744 (Fdefine_coding_system_alias): Use names, not symbols, in
21745 coding-system-alist.
21746
217472008-02-01 Kenichi Handa <handa@m17n.org>
21748
21749 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21750 of calling free_realized_face.
21751
217522008-02-01 Yong Lu <lyongu@asia-infonet.com>
21753
21754 * charset.c (read_hex): Don't treat SPC as a comment starter.
21755 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21756 (Fdecode_char): Fix typo.
21757
217582008-02-01 Kenichi Handa <handa@m17n.org>
21759
21760 * charset.h (struct charset): New member `code_space_mask'.
21761
21762 * coding.c (coding_set_source): Delete the local variable beg_byte.
21763 (encode_coding_charset, Fdefine_coding_system_internal):
21764 Delete the local variable charset.
21765 (Fdefine_coding_system_internal): Setup
21766 attrs[coding_attr_charset_valids] correctly.
21767
21768 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21769 member to check if CODE is valid or not.
21770 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21771 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21772 is within the range of charset->min_code and carset->max_code.
21773
217742008-02-01 Dave Love <fx@gnu.org>
21775
21776 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21777
21778 * dispextern.h (generate_ascii_font): Fix return type.
21779
21780 * xfaces.c (generate_ascii_font): Fix arg declaration.
21781
21782 * coding.c (coding_inherit_eol_type)
21783 (Fset_terminal_coding_system_internal)
21784 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21785
217862008-02-01 Kenichi Handa <handa@m17n.org>
21787
21788 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21789 multiple charsets correctly.
21790
217912008-02-01 Kenichi Handa <handa@m17n.org>
21792
21793 * search.c (boyer_moore): Fix handling of multibyte character
21794 translation.
21795
21796 * xdisp.c (display_mode_element): When the variable `elt' is
21797 changed, update `this' and `lisp_string'.
21798
217992008-02-01 Kenichi Handa <handa@m17n.org>
21800
21801 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21802
21803 * callproc.c (Fcall_process): Be sure to give the current buffer
21804 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21805
21806 * charset.c (struct charset_map_entries): New struct.
21807 (load_charset_map): Rename from parse_charset_map. New args
21808 entries and n_entries. Change caller.
21809 (load_charset_map_from_file): Rename from load_charset_map.
21810 Change caller. New arg control_flag. Call load_charset_map at
21811 the tail.
21812 (load_charset_map_from_vector): New function.
21813 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21814 (encode_char): If the charset is compact, change a character index
21815 to a code point.
21816
21817 * coding.c (coding_alloc_by_making_gap): Check the case that the
21818 source and destination are the same correctly.
21819 (decode_coding_raw_text): Set coding->consumed_char and
21820 coding->consumed to 0.
21821 (produce_chars): If coding->chars_at_source is nonzero, update
21822 coding->consumed_char and coding->consumed before calling
21823 alloc_destination.
21824 (Fdefine_coding_system_alias): Register ALIAS in
21825 Vcoding_system_alist.
21826 (syms_of_coding): Define `no-conversion' coding system at the tail.
21827
21828 * fileio.c (Finsert_file_contents): Set coding_system instead of
21829 val. If the current buffer is multibyte, always call
21830 decode_coding_gap.
21831
21832 * xfaces.c (try_font_list): Give higher priority to fontset's
21833 family than face's family.
21834
218352008-02-01 Kenichi Handa <handa@m17n.org>
21836
21837 * callproc.c (Fcall_process): Be sure to give the current buffer
21838 to decode_coding_c_string.
21839
21840 * xfaces.c (try_font_list): Give a family specified in a fontset
21841 higher priority than a family specified in a face.
21842
218432008-02-01 Kenichi Handa <handa@m17n.org>
21844
21845 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21846 Fix arguments to insert_from_buffer.
21847
21848 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21849
218502008-02-01 Kenichi Handa <handa@m17n.org>
21851
21852 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21853 (decode_coding_gap): Set coding->dst_multibyte correctly.
21854
218552008-02-01 Kenichi Handa <handa@m17n.org>
21856
21857 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21858 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21859 (encode_coding_utf_16): Substitute coding->default_char for
21860 non-Unicode characters.
21861 (decode_coding): Don't call record_insert here.
21862 (setup_coding_system): Initialize `surrogate' of
21863 coding->spec.utf_16 to 0.
21864 (EMIT_ONE_BYTE): Fix for multibyte case.
21865
21866 * insdel.c (insert_from_gap): Call record_insert.
21867
218682008-02-01 Kenichi Handa <handa@m17n.org>
21869
21870 * casefiddle.c (casify_region): Fix multibyte case.
21871
21872 * character.c (c_string_width): Add return type `int'.
21873 (char_string_with_unification): Delete arg ADVANCED.
21874
21875 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21876 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21877 (CHAR_STRING_ADVANCE): Make it do-while statement.
21878
21879 * chartab.c (sub_char_table_set_range): Optimize for the case
21880 DEPTH == 3. Add workaround code for a GCC optimization bug.
21881
21882 * charset.c (parse_charset_map): Remove an unused variable.
21883
21884 * coding.c: Delete unused variables.
21885
21886 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21887 earlier. If inserted is zero and the coding system doesn't
21888 require flushing, don't call decode_coding_gap.
21889
21890 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21891
218922008-02-01 Kenichi Handa <handa@m17n.org>
21893
21894 The following changes are for using Unicode as an internal
21895 character model, and use UTF-8 format for buffer/string
21896 representation.
21897
21898 * .gdbinit (xchartable): Adjust for the change of char table structure.
21899 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21900
21901 * Makefile.in (obj): Add character.o and chartab.o.
21902 (lisp, shortlisp): Remove utf-8.elc.
21903 (*.o): For many files, change dependency on charset.h to
21904 character.h, and add dependency on character.h.
21905 (character.o, chartab.o): New targets.
21906
21907 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21908 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21909 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21910 of "charset.h".
21911
21912 * dired.c, filelock.c: Include "character.h".
21913
21914 * alloc.c: Include "character.h" instead of "charset.h".
21915 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21916 (syms_of_alloc): Remove defsubr for Smake_char_table.
21917
21918 * buffer.c: Include "character.h" instead of "charset.h", don't
21919 include "coding.h".
21920 (Fset_buffer_multibyte): Adjust for UTF-8.
21921
21922 * buffer.h: EXFUN Fbuffer_live_p.
21923
21924 * callproc.c: Include "character.h" instead of "charset.h".
21925 (Fcall_process): Big change for the new code-conversion APIs.
21926
21927 * casetab.c: Include "character.h" instead of "charset.h".
21928 (set_canon, set_identity, shuffle): Adjust for the new
21929 map_char_table spec.
21930 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21931 accessing the char table structure.
21932
21933 * chartab.c: New file that implements char table.
21934
21935 * category.c: Include "character.h".
21936 (copy_category_entry): New function.
21937 (copy_category_table): Call map_char_table and copy_category_entry.
21938 (Fmake_category_table): Initialize all top-level slots.
21939 (char_category_set): New function.
21940 (modify_lower_category_set): Delete.
21941 (Fmodify_category_entry): Call char_table_ref_and_range.
21942
21943 * category.h (CATEGORY_SET): Just call char_category_set.
21944
21945 * ccl.c: Include "character.h".
21946 (Qccl, Qcclp): New variables.
21947 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21948 it's less than 256.
21949 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21950 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21951 and DST type.
21952 (ccl_driver): Change types of argument, adjust code accordingly.
21953 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21954 ccl_driver.
21955 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21956
21957 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21958 New members src_multibyte, dst_multibyte, consumed, and produced.
21959 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21960 (CODING_SPEC_CCL_PROGRAM): New macro.
21961 (ccl_driver): Update prototype.
21962 (Qccl, Qcclp, Fccl_program_p): Extern them.
21963 (CHECK_CCL_PROGRAM): New macro.
21964
21965 * character.c, character.h, chartab.c: New files.
21966
21967 * charset.c: Mostly re-written. Move character and multibyte sequence
21968 handling codes to character.c.
21969
21970 * charset.h: Mostly re-written. Move character and multibyte sequence
21971 handling codes to character.h.
21972
21973 * coding.c, coding.h: Mostly re-written.
21974
21975 * composite.c: Include "character.h" instead of "charset.h".
21976 (CHAR_WIDTH): Move to character.h.
21977 (HASH_KEY, HASH_VALUE): Delete.
21978
21979 * composite.h (enum composition_method): Change order of enumeration
21980 symbols.
21981
21982 * data.c: Include "character.h" instead of "charset.h".
21983 (Faref): Call CHAR_TABLE_REF for a char table.
21984 (Faset): Call CHAR_TABLE_SET for a char table.
21985
21986 * dispextern.h (free_realized_face, check_face_attribytes)
21987 (generate_ascii_font): Extern them.
21988 (free_realized_multibyte_face): Delete extern.
21989
21990 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21991 table structure.
21992
21993 * editfns.c: Include "character.h" instead of "charset.h".
21994 (Fchar_to_string): Always call CHAR_STRING.
21995
21996 * emacs.c (main): Call init_charset_once, init_charset,
21997 syms_of_chartab, and syms_of_character.
21998
21999 * fileio.c: Include "character.h" instead of "charset.h".
22000 (Finsert_file_contents): Big change for the new code-conversion API.
22001 (choose_write_coding_system, Fwrite_region): Likewise.
22002 (build_annotations_2): Delete.
22003 (e_write): Big change for the new code-conversion API.
22004
22005 * fns.c: Include "character.h" instead of "charset.h".
22006 (copy_sub_char_table): Move to chartab.c.
22007 (Fcopy_sequence): Call copy_char_table for a char table.
22008 (concat): Delete codes calling count_multibyte.
22009 (string_char_to_byte, string_byte_to_char): Adjust for the new
22010 multibyte form.
22011 (internal_equal): Adjust for the change of char table structure.
22012 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22013 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22014 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22015 (char_table_translate, optimize_sub_char_table)
22016 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22017 chartab.c.
22018 (char_table_ref_and_index): Delete.
22019 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22020 (Fmd5): Call preferred_coding_system instead of accessing
22021 Vcoding_category_list. Adjust for the new code-conversion API.
22022 (syms_of_fns): Move defsubr for char table related functions to
22023 chartab.c.
22024
22025 * fontset.c: Mostly re-written.
22026
22027 * fontset.h (struct font_info): Change type of the member encoding_type.
22028 (enum FONT_SPEC_INDEX): New enum.
22029 (fontset_font_pattern, fs_load_font): Update prototype.
22030 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22031
22032 * indent.c: Include "character.h" instead of "charset.h".
22033 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22034
22035 * insdel.c: Include "character.h" instead of "charset.h".
22036 (copy_text): Don't refer to Vnonascii_translation_table.
22037 (insert_from_gap): New function.
22038
22039 * keyboard.c: Include "character.h" instead of "charset.h".
22040 (command_loop_1): Never call direct_output_forward_char before
22041 a non-ASCII character.
22042 (read_char): If Vkeyboard_translate_table is a char table, always
22043 translate a character.
22044
22045 * keymap.c: Include "character.h".
22046 (store_in_keymap): Handle the case that IDX is a cons.
22047 (Fdefine_key): Handle the case that KEY is a cons and the car part
22048 is also a cons (range).
22049 (push_key_description): Adjust for the new character code.
22050 (describe_vector): Call describe_char_table for a char table.
22051 (describe_char_table): New function.
22052
22053 * keymap.h (describe_char_table): Extern it.
22054
22055 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22056 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22057 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22058 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22059 Delete.
22060 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22061 structure.
22062 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22063 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22064 (CHARTAB_SIZE_BITS_3): New macros.
22065 (chartab_size): Extern it.
22066 (struct Lisp_Char_Table): Re-design.
22067 (struct Lisp_Sub_Char_Table): New structure.
22068 (HASH_KEY, HASH_VALUE): Move from fns.c.
22069 (CHARACTERBITS): Define as 22.
22070 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22071 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22072 (GC_SUB_CHAR_TABLE_P): New macro.
22073 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22074 (code_convert_string_norecord): Deleted extern.
22075 (init_character_once, syms_of_character, init_charset)
22076 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22077
22078 * lread.c: Include "character.h".
22079 (read_multibyte): New arg NBYTES.
22080 (read_escape): Change the meaning of returned *BYTEREP.
22081 (to_multibyte): Delete.
22082 (read1): Adjust the handling of char table and string.
22083
22084 * print.c: Include "character.h" instead of "charset.h".
22085 (print_string): Convert 8-bit raw bytes to octal form by
22086 string_escape_byte8.
22087 (print_object): Adjust for the new multibyte form. Print 8-bit
22088 raw bytes always in octal form. Handle sub char table correctly.
22089
22090 * process.c: Include "character.h" instead of "charset.h".
22091 (read_process_output, send_process): Adjust for the new
22092 code-conversion API.
22093
22094 * puresize.h (BASE_PURESIZE): Increase.
22095
22096 * regex.c: Include "character.h" instead of "charset.h".
22097 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22098 (regex_compile): Accept a range whose starting and ending
22099 character have different leading bytes.
22100 (analyse_first): Adjust for the above change.
22101
22102 * search.c: Include "character.h" instead of "charset.h".
22103 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22104 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22105
22106 * syntax.c: Include "character.h" instead of "charset.h".
22107 (syntax_parent_lookup): Delete.
22108 (Fmodify_syntax_entry): Accept a cons as CHAR.
22109 (skip_chars): Adjust for the new multibyte form.
22110 (init_syntax_once): Call char_table_set_range instead of directly
22111 accessing the structure of a char table.
22112
22113 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22114 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22115 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22116 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22117
22118 * term.c: Include "buffer.h" and "character.h".
22119 (encode_terminal_code, write_glyphs): Adjust for the new
22120 code-conversion API.
22121 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22122
22123 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22124
22125 * xdisp.c: Include "character.h".
22126 (get_next_display_element): Adjust for the new multibyte form.
22127 (disp_char_vector): Adjust for the new char table structure.
22128 (decode_mode_spec_coding): Adjust for the new structure of
22129 coding system.
22130 (decode_mode_spec): Adjust for the new code-conversion API.
22131
22132 * xfaces.c: Include "character.h" instead of "charset.h".
22133 (load_face_font): Adjust for the change of choose_face_font and
22134 FS_LOAD_FONT.
22135 (generate_ascii_font): New function.
22136 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22137 (set_font_frame_param): Adjust for the change of choose_face_font.
22138 (free_realized_face): Make it public.
22139 (free_realized_faces_for_fontset): Rename from
22140 free_realized_multibyte_face. Free also faces realized for ASCII.
22141 (choose_face_font): Change arguments. Adjust for the change of
22142 fontset_font_pattern and FS_LOAD_FONT.
22143
22144 * xfns.c: Include "character.h".
22145 (x_encode_text): Adjust for the new code-conversion API.
22146
22147 * xselect.c: Don't include "charset.h".
22148 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22149
22150 * xterm.c: Include "character.h".
22151 (x_encode_char): New argument CHARSET. Change caller.
22152 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22153 Call ENCODE_CHAR instead of SPLIT_CHAR.
22154 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22155 CHAR_WIDTH instead of CHARSET_WIDTH.
22156 (XTread_socket): Adjust for the new code-conversion API.
22157 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22158 (x_load_font): Adjust for the change of struct font.
22159
221602008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22161
22162 * xfaces.c (face_at_buffer_position): Remove unused vars.
22163
221642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22165
22166 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22167 Fix overflow checking.
22168
221692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22170
22171 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22172 Cancel previous change.
22173
221742008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22175
22176 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22177 ccl->eight_bit_control. Fix check for buffer overflow.
22178 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22179 (ccl_driver): Initialize extra_bytes to 0.
22180
221812008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22182
22183 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22184 return it ORed with ctrl_modifier.
22185
221862008-01-29 Miles Bader <miles@gnu.org>
22187
22188 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22189
221902008-01-28 Jason Rumney <jasonr@gnu.org>
22191
22192 * w32.c (stat): Don't double check for networked drive.
22193
221942008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22195
22196 * window.c (run_window_configuration_change_hook): New function.
22197 Code extracted from set_window_buffer. Set the selected frame.
22198 (set_window_buffer): Use it.
22199 * window.h (run_window_configuration_change_hook): Declare.
22200 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22201
22202 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22203
222042008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22205
22206 * Makefile.in: Remove references to unused macros.
22207
222082008-01-26 Eli Zaretskii <eliz@gnu.org>
22209
22210 * w32.c (g_b_init_get_sid_sub_authority)
22211 (g_b_init_get_sid_sub_authority_count): New static variables.
22212 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22213 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22214 (init_user_info): Use them to retrieve uid and gid.
22215 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22216 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22217 st_uid and st_gid of the file.
22218
222192008-01-26 Jason Rumney <jasonr@gnu.org>
22220
22221 * w32.c (logon_network_drive): New function.
22222 (stat): Use it.
22223
222242008-01-26 Chong Yidong <cyd@stupidchicken.com>
22225
22226 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22227 invisible text covered with an ellipsis.
22228
222292008-01-25 Richard Stallman <rms@gnu.org>
22230
22231 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22232 jump back to beginning. Move some other initializations after that.
22233 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22234 New variables.
22235 (syms_of_xdisp): Init them.
22236
22237 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22238
22239 * buffer.c (reset_buffer_local_variables):
22240 Implement `permanent-local-hook'.
22241 (Qpermanent_local_hook): New variable.
22242 (syms_of_buffer): Init and staticpro it.
22243
222442008-01-25 Michael Albinus <michael.albinus@gmx.de>
22245
22246 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22247
222482008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22249
22250 * fns.c (Fclrhash): Return TABLE.
22251
222522008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22253
22254 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22255 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22256 is set even without positional changes.
22257 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22258
22259 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22260
222612008-01-23 Jason Rumney <jasonr@gnu.org>
22262
22263 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22264
22265 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22266 the unicode range available in MULE by locale-coding-system.
22267 Improve dbcs lead byte detection. Set event timestamp and modifiers
22268 earlier.
22269
222702008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22271
22272 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22273 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22274 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22275 when used on child processes.
22276
222772008-01-21 Michael Albinus <michael.albinus@gmx.de>
22278
22279 * dbusbind.c (Fdbus_method_return_internal): Rename from
22280 Fdbus_method_return.
22281 (Fdbus_unregister_object): Move to dbus.el.
22282 (Fdbus_call_method, Fdbus_method_return_internal)
22283 (Fdbus_send_signal): Improve debug messages.
22284
222852008-01-20 Martin Rudalics <rudalics@gmx.at>
22286
22287 * undo.c (undo_inhibit_record_point): New variable.
22288 (syms_of_undo): Initialize it.
22289 (record_point): Don't record point when undo_inhibit_record_point
22290 is set.
22291
222922008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22293
22294 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22295
22296 * xdisp.c (Qauto_hscroll_mode): New var.
22297 (syms_of_xdisp): Initialize it.
22298 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22299 window's buffer.
22300 (hscroll_windows): Don't check automatic_hscrolling_p here.
22301
22302 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22303 vscroll if we're setting window-buffer to the value it already has.
22304
223052008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22306
22307 * m/intel386.h: Remove references to XENIX.
22308
223092008-01-17 Andreas Schwab <schwab@suse.de>
22310
22311 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22312 instead of HAVE_X86_64_LIB64_DIR.
22313 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22314
223152008-01-17 Glenn Morris <rgm@gnu.org>
22316
22317 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22318 to HAVE_X86_64_LIB64_DIR.
22319
223202008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22321
22322 * s/irix3-3.h:
22323 * s/irix4-0.h:
22324 * s/386-ix.h:
22325 * s/domain.h:
22326 * s/hpux9-x11r4.h:
22327 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22328
22329 * sysdep.c: Remove code containing references to symbols defined
22330 by unsupported systems.
22331
223322008-01-16 Glenn Morris <rgm@gnu.org>
22333
22334 * coding.c (select-safe-coding-system-function): Doc fix.
22335
223362008-01-15 Glenn Morris <rgm@gnu.org>
22337
22338 * config.in: Revert 2008-01-13 change: this is a generated file.
22339
223402008-01-13 Tom Tromey <tromey@redhat.com>
22341
22342 * lisp.h: Fix typo.
22343
223442008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22345
22346 * m/sequent-ptx.h:
22347 * m/sequent.h:
22348 * s/ptx.h:
22349 * s/ptx4-2.h:
22350 * s/ptx4.h: Remove files for systems no longer supported.
22351
22352 * callproc.c (Fcall_process): Fix previous change.
22353
223542008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22355
22356 * unexsunos4.c: Remove file, system not supported anymore.
22357
22358 * m/mips.h:
22359 * m/intel386.h:
22360 * callproc.c:
22361 * config.in:
22362 * ecrt0.c:
22363 * emacs.c:
22364 * fileio.c:
22365 * frame.c:
22366 * getpagesize.h:
22367 * keyboard.c:
22368 * lread.c:
22369 * process.c:
22370 * puresize.h:
22371 * sysdep.c:
22372 * systty.h:
22373 * syswait.h:
22374 * unexec.c:
22375 * xdisp.c:
22376 * alloc.c: Remove code containing references to symbols defined by
22377 unsupported systems.
22378
223792008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22380
22381 * coding.c (detect_coding_mask): Fix previous change.
22382
223832008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22384
22385 * coding.c (detect_coding_iso2022): New arg
22386 latin_extra_code_state. Allow Latin extra codes only
22387 when *latin_extra_code_state is nonzero.
22388 (detect_coding_mask): If there is a NULL byte, detect the encoding
22389 as UTF-16 or binary. If Latin extra codes exist, detect the
22390 encoding as ISO-2022 only when there's no other proper encoding is
22391 found.
22392
223932008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22394
22395 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22396 #ifdef MAC_OS.
22397
223982008-01-08 Richard Stallman <rms@gnu.org>
22399
22400 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22401
224022008-01-06 Nick Roberts <nickrob@snap.net.nz>
22403
22404 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22405 menu bar in parentheses.
22406
224072008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22408
22409 * m/7300.h:
22410 * m/acorn.h:
22411 * m/alliant-2800.h:
22412 * m/alliant.h:
22413 * m/alliant1.h:
22414 * m/alliant4.h:
22415 * m/altos.h:
22416 * m/amdahl.h:
22417 * m/apollo.h:
22418 * m/att3b.h:
22419 * m/aviion-intel.h:
22420 * m/aviion.h:
22421 * m/celerity.h:
22422 * m/clipper.h:
22423 * m/cnvrgnt.h:
22424 * m/convex.h:
22425 * m/cydra5.h:
22426 * m/delta88k.h:
22427 * m/dpx2.h:
22428 * m/dual.h:
22429 * m/elxsi.h:
22430 * m/f301.h:
22431 * m/gould-np1.h:
22432 * m/gould.h:
22433 * m/i860.h:
22434 * m/ibmps2-aix.h:
22435 * m/ibmrt-aix.h:
22436 * m/ibmrt.h:
22437 * m/irist.h:
22438 * m/is386.h:
22439 * m/isi-ov.h:
22440 * m/mega68.h:
22441 * m/mg1.h:
22442 * m/news-r6.h:
22443 * m/news-risc.h:
22444 * m/news.h:
22445 * m/nh3000.h:
22446 * m/nh4000.h:
22447 * m/ns16000.h:
22448 * m/ns32000.h:
22449 * m/nu.h:
22450 * m/orion.h:
22451 * m/orion105.h:
22452 * m/paragon.h:
22453 * m/pfa50.h:
22454 * m/plexus.h:
22455 * m/pyramid.h:
22456 * m/pyrmips.h:
22457 * m/sh3el.h:
22458 * m/sps7.h:
22459 * m/sr2k.h:
22460 * m/stride.h:
22461 * m/sun1.h:
22462 * m/sun2.h:
22463 * m/sun3-68881.h:
22464 * m/sun3-fpa.h:
22465 * m/sun3-soft.h:
22466 * m/sun3.h:
22467 * m/sun386.h:
22468 * m/symmetry.h:
22469 * m/tad68k.h:
22470 * m/tahoe.h:
22471 * m/targon31.h:
22472 * m/tek4300.h:
22473 * m/tekxd88.h:
22474 * m/tower32.h:
22475 * m/tower32v3.h:
22476 * m/ustation.h:
22477 * m/wicat.h:
22478 * m/xps100.h:
22479 * s/cxux.h:
22480 * s/cxux7.h:
22481 * s/dgux.h:
22482 * s/dgux4.h:
22483 * s/dgux5-4-3.h:
22484 * s/dgux5-4r2.h:
22485 * s/esix.h:
22486 * s/esix5r4.h:
22487 * s/hiuxmpp.h:
22488 * s/hiuxwe2.h:
22489 * s/iris3-5.h:
22490 * s/iris3-6.h:
22491 * s/isc2-2.h:
22492 * s/isc3-0.h:
22493 * s/isc4-0.h:
22494 * s/isc4-1.h:
22495 * s/newsos5.h:
22496 * s/newsos6.h:
22497 * s/osf1.h:
22498 * s/osf5-0.h:
22499 * s/riscix1-1.h:
22500 * s/riscix12.h:
22501 * s/sco4.h:
22502 * s/sco5.h:
22503 * s/sunos4-0.h:
22504 * s/sunos4-1.h:
22505 * s/sunos413.h:
22506 * s/sunos4shr.h:
22507 * s/umax.h:
22508 * s/unipl5-2.h:
22509 * s/xenix.h:
22510 * cxux-crt0.s:
22511 * unexapollo.c:
22512 * unexconvex.c:
22513 * unexenix.c:
22514 * unexsni.c: Remove files for systems no longer supported.
22515
22516 * m/intel386.h: Remove references to unsupported systems.
22517
22518 * w32.c (get_emacs_configuration): Remove reference to i860.
22519
22520 * sysdep.c: Remove dead code.
22521
225222008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22523
22524 * s/rtu.h:
22525 * m/masscomp.h: Remove files. Platform is obsolete.
22526
225272008-01-04 Michael Albinus <michael.albinus@gmx.de>
22528
22529 * dbusbind.c (Fdbus_method_return): New function.
22530 (xd_read_message): Add the serial number to the event.
22531 (Fdbus_register_method): Activate the function.
22532
225332008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22534
22535 * keyboard.c (read_key_sequence): Fix typo.
22536
225372008-01-03 Michael Albinus <michael.albinus@gmx.de>
22538
22539 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22540 (xd_signature, xd_append_arg): Handle element type detection for
22541 empty arrays.
22542 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22543 SDATA () calls; this must be solved more general.
22544 (Fdbus_register_signal): Use SBYTES instead of strlen.
22545
225462008-01-03 Magnus Henoch <magnus@zemdatav>
22547
22548 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22549 unsigned int for byte values (necessary for big-endian platform).
22550 (Fdbus_call_method): Handle the case of no returned arguments.
22551
225522007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22553
22554 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22555
225562007-12-31 Magnus Henoch <mange@freemail.hu>
22557
22558 * dbusbind.c (xd_signature): Signature of variant is just "v".
22559
225602007-12-30 Michael Albinus <michael.albinus@gmx.de>
22561
22562 * dbusbind.c: Fix several errors and compiler warnings.
22563 Reported by Tom Tromey <tromey@redhat.com>.
22564 (XD_ERROR, XD_DEBUG_MESSAGE)
22565 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22566 (xd_append_arg): Part for basic D-Bus types rewritten.
22567 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22568 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22569 appropriate.
22570 (xd_read_message): Return Qnil. Don't signal an error; it is not
22571 useful during event reading.
22572 (Fdbus_register_signal): Signal an error if the check for
22573 FUNCTIONP fails.
22574 (Fdbus_register_method): New function. The implementation is not
22575 complete, the call of the function signals an error therefore.
22576 (Fdbus_unregister_object): New function, renamed from
22577 Fdbus_unregister_signal. The initial check signals an error, if
22578 the object is not well formed.
22579
225802007-12-30 Richard Stallman <rms@gnu.org>
22581
22582 * textprop.c (get_char_property_and_overlay):
22583 Signal error if POSITION is out of range in a buffer.
22584
225852007-12-29 Martin Rudalics <rudalics@gmx.at>
22586
22587 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22588 because the original parameters are in pure storage now.
22589
225902007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22591
22592 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22593
225942007-12-22 Eli Zaretskii <eliz@gnu.org>
22595
22596 * callint.c (syms_of_callint) <command-history>: Add reference to
22597 history-length in the doc string.
22598
225992007-12-17 Jason Rumney <jasonr@gnu.org>
22600
22601 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22602 before passing as wParam.
22603
226042007-12-22 Michael Albinus <michael.albinus@gmx.de>
22605
22606 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22607 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22608 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22609 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22610 as number.
22611 (Fdbus_call_method): Fix docstring.
22612
226132007-12-21 Michael Albinus <michael.albinus@gmx.de>
22614
22615 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22616 New macros.
22617 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22618 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22619 Simplify.
22620 (xd_signature): New function.
22621 (xd_append_arg): Compute also signatures. Major rewrite.
22622 (xd_retrieve_arg): Make debug messages friendly.
22623 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22624 Check for signatures of arguments.
22625
226262007-12-19 Michael Albinus <michael.albinus@gmx.de>
22627
22628 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22629 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22630 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22631 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22632 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22633 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22634 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22635 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22636 (xd_retrieve_value): Remove. Functionality included in ...
22637 (xd_append_arg): New function.
22638 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22639
226402007-12-16 Michael Albinus <michael.albinus@gmx.de>
22641
22642 * dbusbind.c (top): Include <stdio.h>.
22643 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22644 dbus_message_new_method_call and dbus_message_new_signal.
22645 (Fdbus_register_signal): Rename unique_name to uname.
22646 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22647 non-existing unique name. Fix typos in matching rule. Return an
22648 object which is useful in Fdbus_unregister_signal.
22649 (Fdbus_unregister_signal): Reimplementation, in order to remove
22650 only the corresponding entry.
22651 (Vdbus_registered_functions_table): Change the order of entries.
22652 Apply these changes in xd_read_message and Fdbus_register_signal.
22653
226542007-12-16 Andreas Schwab <schwab@suse.de>
22655
22656 * fileio.c (Finsert_file_contents): Fix overflow check to not
22657 depend on undefined integer overflow.
22658
226592007-12-14 Jason Rumney <jasonr@gnu.org>
22660
22661 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22662 for characters above 127.
22663
226642007-12-13 Jason Rumney <jasonr@gnu.org>
22665
22666 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22667 before dereferencing array.
22668 (lookup_vk_code): Remove zero comparison.
22669
226702007-12-14 Michael Albinus <michael.albinus@gmx.de>
22671
22672 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22673 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22674 Use `unsigned int' instead of `uint'.
22675 (xd_read_message, Fdbus_register_signal): Split expressions into
22676 multiple lines before operators "&&" and "||", according to the
22677 GNU Coding Standards.
22678
226792007-12-14 Eli Zaretskii <eliz@gnu.org>
22680
22681 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22682
226832007-12-12 Juri Linkov <juri@jurta.org>
22684
22685 * buffer.c (Frename_buffer): In interactive spec replace
22686 `read-buffer' with `read-string' that uses `buffer-name-history'
22687 as history, and the current buffer's name as default.
22688
226892007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22690
22691 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22692 manipulating the backtrace manually.
22693 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22694 (struct backtrace, backtrace_list): Remove.
22695 (command_loop_1): Remove dead var `no_direct'.
22696
22697 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22698 preserve non-built-in buffer-local variables.
22699 (Fkill_all_local_variables): Don't re-create&re-set permanent
22700 buffer-local variables.
22701
227022007-12-09 Juri Linkov <juri@jurta.org>
22703
22704 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22705 Lisp code that uses `read-buffer' with current buffer as default.
22706
227072007-12-08 Michael Albinus <michael.albinus@gmx.de>
22708
22709 * dbusbind.c (xd_read_message): Generate an event for every
22710 registered handler. There might be several handlers registered
22711 for the same signal.
22712 (Fdbus_register_signal): Don't overwrite a registration for the
22713 same signal. Add a new registration if handlers are different.
22714 (Vdbus_registered_functions_table): Rework doc string.
22715
227162007-12-07 Michael Albinus <michael.albinus@gmx.de>
22717
22718 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22719 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22720 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22721 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22722 Unify argument lists.
22723 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22724 arguments and hash table keys. Use unique name for service.
22725 (Fdbus_unregister_signal): Remove checks.
22726 (Vdbus_registered_functions_table): Fix doc string.
22727
227282007-12-05 Magnus Henoch <mange@freemail.hu>
22729
22730 * process.c (make_process): Initialize pty_flag to 0.
22731
227322007-12-05 Jason Rumney <jasonr@gnu.org>
22733
22734 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22735 specified XBMs.
22736
227372007-12-05 Richard Stallman <rms@gnu.org>
22738
22739 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22740
227412007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22742
22743 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22744 New variable.
22745 (mac_try_close_socket) [MAC_OSX]: New function.
22746 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22747 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22748
22749 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22750 Use mac_try_close_socket.
22751
227522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22753
22754 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22755 reloc_base.
22756 (copy_dysymtab): Compute relocation base here.
22757 (rebase_reloc_address) [__ppc64__]: New function.
22758 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22759 changed.
22760
227612007-12-05 Jason Rumney <jasonr@gnu.org>
22762
22763 * w32proc.c (sys_spawnve): Quote args with wildcards.
22764
227652007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22766
22767 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22768 __objc_* sections.
22769 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22770
227712007-12-05 Michael Albinus <michael.albinus@gmx.de>
22772
22773 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22774 Move check for Vdbus_registered_functions_table to
22775 xd_read_queued_messages.
22776 (xd_read_queued_messages): Protect xd_read_message calls by
22777 internal_condition_case_1.
22778
227792007-12-04 Michael Albinus <michael.albinus@gmx.de>
22780
22781 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22782 Qdbus_system_bus and Qdbus_session_bus, respectively.
22783 (Vdbus_intern_symbols): Remove.
22784 (Vdbus_registered_functions_table): New hash table.
22785 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22786 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22787 Rewrite in order to manage registered functions by hash table
22788 Vdbus_registered_functions_table.
22789
227902007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22791
22792 * xterm.c: Update URL to Window Manager Specification in comment.
22793
227942007-12-02 Michael Albinus <michael.albinus@gmx.de>
22795
22796 * config.in (HAVE_DBUS): Add.
22797
22798 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22799 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22800 (obj): Add $(DBUS_OBJ).
22801 (LIBES): Add $(DBUS_LIBS).
22802 (dbusbind.o): New target.
22803
22804 * dbusbind.c: New file.
22805
22806 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22807
22808 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22809 (Qdbus_event): New Lisp symbol.
22810 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22811 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22812 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22813
22814 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22815
228162007-12-01 Richard Stallman <rms@gnu.org>
22817
22818 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22819
228202007-11-30 Jason Rumney <jasonr@gnu.org>
22821
22822 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22823 (w32con_reset_terminal_modes): Clear screen buffer.
22824 (w32_face_attributes): Don't use color indexes that are out of range.
22825 Only reverse the default colors.
22826
22827 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22828 WINDOWSNT.
22829
22830 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22831
228322007-11-29 Jason Rumney <jasonr@gnu.org>
22833
22834 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22835 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22836 if the terminal colors are initialized.
22837 (unspecified_fg, unspecified_bg): Remove unused declarations.
22838
228392007-11-29 Andreas Schwab <schwab@suse.de>
22840
22841 * keyboard.c (apply_modifiers): Fix typo.
22842
228432007-11-29 Richard Stallman <rms@gnu.org>
22844
22845 * keymap.c (Fcurrent_local_map): Doc fix.
22846
228472007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22848
22849 * s/gnu-kfreebsd.h: New file.
22850
228512007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22852
22853 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22854 Don't cast redundantly.
22855
22856 * keyboard.c (KEY_TO_CHAR): New macro.
22857 (parse_modifiers, apply_modifiers): Accept integer arguments.
22858 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22859 for chars and symbol keys.
22860 After doing such remapping, apply function-key-map again.
22861
228622007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22863
22864 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22865 compiled anymore.
22866
228672007-11-26 Andreas Schwab <schwab@suse.de>
22868
22869 * process.c (list_processes_1): Fix indentation level of the
22870 command column.
22871
228722007-11-23 Andreas Schwab <schwab@suse.de>
22873
22874 * editfns.c (Fformat): Handle %c specially since it requires the
22875 argument to be of type int.
22876
228772007-11-23 Markus Triska <markus.triska@gmx.at>
22878
22879 * emacs.c (main): Call init_editfns before init_process, since
22880 init_process sets Vprocess_connection_type depending on OS release.
22881
228822007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22883
22884 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22885 (find_symbol_value): Use do_symval_forwarding.
22886
22887 * data.c (set_internal): Set the value in the `cons-cell' (for
22888 Buffer_Local_values) not only for frame-local variables.
22889
228902007-11-22 Andreas Schwab <schwab@suse.de>
22891
22892 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22893 values to sprintf.
22894 * keymap.c (Fsingle_key_description): Likewise.
22895 * print.c (print_object): Likewise.
22896
228972007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22898
22899 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22900 file for image is nil.
22901
229022007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22903
22904 * term.c: Include stdarg.h.
22905 (fatal): Implement using varargs.
22906 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22907
229082007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22909
22910 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22911 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22912 Update call to buffer_slot_type_mismatch.
22913 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22914 (buffer_slot_type_mismatch): Update.
22915 * buffer.c (buffer_local_types): Remove.
22916 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22917 (defvar_per_buffer): Set the type in the buffer_objfwd.
22918
229192007-11-21 Jason Rumney <jasonr@gnu.org>
22920
22921 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22922 CreateFileMapping returns NULL on failure.
22923
229242007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22925
22926 * search.c (Fset_match_data): Remove the `evaporate' feature.
22927 (unwind_set_match_data): Don't use the `evaporate' feature.
22928
229292007-11-21 Jason Rumney <jasonr@gnu.org>
22930
22931 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22932
22933 * w32console.c (w32con_write_glyphs): Remove unused variables.
22934
229352007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22936
22937 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22938
22939 * s/darwin.h (MULTI_KBOARD): Remove.
22940
22941 * macfns.c (x_create_tip_frame, Fx_create_frame)
22942 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22943
229442007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22945
22946 * buffer.c (Fbuffer_local_value): Remove redundant test.
22947 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22948 than in `current-buffer' to match the comment.
22949 Do the swap using swap_in_global_binding.
22950
22951 * data.c (store_symval_forwarding, set_internal):
22952 * eval.c (specbind): Remove dead code.
22953
22954 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22955 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22956 Since we do not want to see internal Lisp_*fwd objects here.
22957
229582007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22959
22960 * sysdep.c (init_system_name): Use getaddrinfo if available.
22961
22962 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22963 (x_scroll_bar_note_movement): start, end, with, height in struct
22964 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22965
229662007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22967
22968 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22969
229702007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22971
22972 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22973 This undoes Richard's change of 14-Oct-2002.
22974
22975 * alloc.c (allocate_other_vector):
22976 * lisp.h (allocate_other_vector): Remove.
22977
22978 * window.c (struct save_window_data): Move non-lisp data to the end
22979 and make it `int' rather than Lisp_Object.
22980 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22981 Done wrap/unwrap integer values.
22982 (Fset_window_configuration, compare_window_configurations):
22983 Update use of fields to their new types.
22984
22985 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22986 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22987 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22988 (SET_SCROLL_BAR_X_WINDOW): Remove.
22989 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22990 Access the new x_window field directly.
22991 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22992 Don't wrap/unwrap integers into Lisp_Objects.
22993 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22994 (x_scroll_bar_report_motion):
22995 Don't wrap/unwrap integers into Lisp_Objects.
22996 (x_term_init): Use SDATA.
22997 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22998 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22999 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23000 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23001 * xfns.c (x_set_background_color):
23002 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23003 Access the new x_window field directly.
23004
23005 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23006 (allocate_pseudovector): Make non-static.
23007
23008 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23009 (allocate_pseudovector): Declare.
23010 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23011
230122007-11-15 Andreas Schwab <schwab@suse.de>
23013
23014 * editfns.c (Fformat): Correctly format EMACS_INT values.
23015 Also take precision into account when formatting an integer.
23016
23017 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23018
230192007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23020
23021 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23022 (syms_of_keyboard): Defsubr it.
23023
23024 * data.c (swap_in_global_binding): Fix longstanding bug where
23025 store_symval_forwarding was not called with the right second argument,
23026 thus causing objfwd-ing from being dropped.
23027
230282007-11-14 Juanma Barranquero <lekktu@gmail.com>
23029
23030 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23031 (Fx_display_pixel_height, Fx_display_planes)
23032 (Fx_display_color_cells, Fx_server_max_request_size)
23033 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23034 (Fx_display_visual_class, Fx_display_save_under):
23035 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23036 (Fx_display_pixel_height, Fx_display_planes)
23037 (Fx_display_color_cells, Fx_server_max_request_size)
23038 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23039 (Fx_display_mm_height, Fx_display_mm_width)
23040 (Fx_display_backing_store, Fx_display_visual_class)
23041 (Fw32_select_font, Fx_display_save_under):
23042 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23043 (Fx_display_pixel_height, Fx_display_planes)
23044 (Fx_display_color_cells, Fx_server_max_request_size)
23045 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23046 (Fx_display_save_under): Fix typos in docstrings.
23047
230482007-11-14 Juanma Barranquero <lekktu@gmail.com>
23049
23050 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23051 corresponding to deleted entries; they are an implementation detail.
23052 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23053 Remove variables.
23054 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23055 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23056 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23057 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23058 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23059 (Fw32_define_rgb_color, Fw32_load_color_file)
23060 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23061 Fix typos in docstrings.
23062 (Fx_server_version): Reflow docstring.
23063 (Fw32_shell_execute): Doc fixes.
23064
230652007-11-13 Juanma Barranquero <lekktu@gmail.com>
23066
23067 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23068 if w32_parse_hot_key returned nil.
23069
230702007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23071
23072 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23073
230742007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23075
aac0c6e3
MR
23076 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23077
23078 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23079
23080 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23081 Remove W32_SCROLL_BAR_CLICK_EVENT.
23082
23083 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23084 Add MULTIMEDIA_KEY_EVENT.
23085
23086 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23087 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23088 (make_lispy_event) [WINDOWSNT]: Use it to translate
23089 MULTIMEDIA_KEY_EVENT.
23090
23091 * w32term.h (WM_APPCOMMAND): Define if not already.
23092 (GET_APPCOMMAND_LPARAM): Likewise.
23093
23094 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23095 WM_APPCOMMAND.
23096
23097 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23098 (syms_of_w32fns): Export and initialize it.
23099 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23100
231012007-11-09 Chong Yidong <cyd@stupidchicken.com>
23102
23103 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23104 twice.
23105
23106 * xdisp.c (handle_face_prop): Fix last change.
23107
231082007-11-09 Richard Stallman <rms@gnu.org>
23109
23110 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23111 not just for after-strings and before-strings.
23112 Call face_for_overlay_string and pass the overlay to it.
23113 (handle_display_prop): Determine whether property came from an overlay.
23114 Pass OVERLAY arg to handle_single_display_spec.
23115 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23116 (load_overlay_strings): Fill in it->string_overlays.
23117 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23118
23119 * xfaces.c (face_for_overlay_string): Function renamed from
23120 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23121
23122 * dispextern.h (struct it): New elt string_overlays.
23123 New elt from_overlay, also in stack.
23124 Rearrange a few elements.
23125 (face_for_overlay_string): Decl renamed from
23126 face_at_buffer_position_no_overlays, and add argument.
23127
231282007-11-09 Richard Stallman <rms@gnu.org>
23129
23130 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23131 to get the base face for an overlay string.
23132
23133 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23134
23135 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23136
23137 * xdisp.c (handle_stop): Move some code out of loop.
23138
231392007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23140
23141 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23142 Fix conversion from Lisp object to ATSUFontID.
23143
231442007-11-09 Jason Rumney <jasonr@gnu.org>
23145
23146 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23147
231482007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23149
23150 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23151 Don't assume regions are aligned to page boundary.
23152 (print_load_command_name): Add LC_UUID if defined.
23153
231542007-11-09 Richard Stallman <rms@gnu.org>
23155
23156 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23157
231582007-11-07 Jason Rumney <jasonr@gnu.org>
23159
23160 * s/windows95.h: Remove.
23161
231622007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23163
23164 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23165 abort with a message on unhandled store_type values.
23166
231672007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23168
23169 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23170 Remove HAVE_X11R5 and HAVE_X11R4.
23171
231722007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23173
23174 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23175
231762007-11-01 Johan Bockgård <bojohan@gnu.org>
23177
23178 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23179 Don't set s->stippled_p here, since it has already been set by
23180 x_set_glyph_string_gc from x_draw_glyph_string.
23181
231822007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23183
23184 * sunfns.c: Remove file.
23185
23186 * m/sun386.h:
23187 * m/sun2.h:
23188 * m/sparc.h: Remove Sun windows code.
23189
231902007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23191
23192 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23193 (init_keyboard): Set current_kboard's window-system to nil.
23194 (tty_read_avail_input): Typo.
23195 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23196
231972007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23198
23199 * s/usg5-4.h:
23200 * s/usg5-3.h:
23201 * s/ptx.h:
23202 * m/is386.h:
23203 * m/ibmps2-aix.h:
23204 * Makefile.in: Remove all mentions of X10.
23205
23206 * dispnew.c (syms_of_display): Don't mention version 10.
23207
232082007-10-28 Juanma Barranquero <lekktu@gmail.com>
23209
23210 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23211 ($(BLD)/abbrev.$(O)): Remove.
23212
232132007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23214
23215 Rewrite abbrev.c in Elisp.
23216 * image.c (Qcount): Don't declare as extern.
23217 (syms_of_image): Initialize and staticpro `Qcount'.
23218 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23219 * emacs.c (main): Don't call syms_of_abbrev.
23220 * Makefile.in (obj): Remove abbrev.o.
23221 (abbrev.o): Remove.
23222 * abbrev.c: Remove.
23223
232242007-10-26 Martin Rudalics <rudalics@gmx.at>
23225
23226 * window.c (window_min_size_2): Don't count header-line.
23227
232282007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23229
23230 * frame.h (struct frame): Move all bit fields after the first bit
23231 field to take advantage of the available space. Group all the
23232 chars together to reduce wasted space due to padding.
23233
232342007-10-26 Juanma Barranquero <lekktu@gmail.com>
23235
23236 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23237
23238 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23239 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23240 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23241 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23242 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23243 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23244 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23245 (last_marked, mark_object_loop_halt): Make static.
23246
23247 * frame.c (syms_of_frame) <delete-frame-functions>:
23248 Fix typo in docstring.
23249
232502007-10-25 Juanma Barranquero <lekktu@gmail.com>
23251
23252 * w32.c (init_environment): Fix tiny memory leak.
23253 (w32_get_resource): Remove unused variable `ok'.
23254
232552007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23256
23257 Make `window-system' into a keyboard-local variable (rather than
23258 frame-local as done originally by multi-tty).
23259
23260 * keyboard.h (struct kboard): Add Vwindow_system.
23261 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23262 (mark_kboards): Mark Vwindow_system.
23263
23264 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23265 (init_display): Don't set the obsolete `window-system' frame-param.
23266
23267 * xterm.c (x_term_init):
23268 * w32term.c (w32_create_terminal):
23269 * term.c (init_tty): Set Vwindow_system.
23270 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23271 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23272
23273 * xfns.c (Fx_create_frame, x_create_tip_frame):
23274 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23275 * macfns.c (Fx_create_frame):
23276 Don't set the obsolete `window-system' frame-param.
23277
23278 * frame.h (Qwindow_system): Remove.
23279 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23280 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23281
232822007-10-24 Richard Stallman <rms@gnu.org>
23283
23284 * frame.c (x_figure_window_size): For fullscreen case,
23285 set USPosition | PPosition without clobbering rest of window_prompting.
23286
23287 * keyboard.c (Fcurrent_idle_time): Doc fix.
23288
23289 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23290
232912007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23292
23293 * process.c (unwind_request_sigio): Only define if __ultrix__.
23294
23295 * callproc.c (child_setup): Remove spurious *.
23296
23297 * lisp.h (Fget_text_property): Declare.
23298 (have_menus_p): Declare it here rather than in sys-dep header files.
23299 * macterm.h (have_menus_p):
23300 * msdos.h (have_menus_p):
23301 * xterm.h (have_menus_p): Remove.
23302
23303 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23304 (Fmake_variable_frame_local): Just check the variable's const-ness
23305 rather than checking nil or t.
23306
233072007-10-22 Jason Rumney <jasonr@gnu.org>
23308
23309 * w32fns.c: Include math.h.
23310 (w32_abort): Declaration moved to nt/config.nt.
23311
23312 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23313 (abort): Redefinition moved to nt/config.nt.
23314
23315 * m/windowsnt.h: Remove.
23316
233172007-10-22 Juanma Barranquero <lekktu@gmail.com>
23318
23319 * emacs.c (Fdump_emacs): Fix typo in message.
23320 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23321 <installation-directory>: Reflow docstring.
23322
233232007-10-22 Juri Linkov <juri@jurta.org>
23324
23325 * minibuf.c: Allow minibuffer default to be a list of default values.
23326 With empty input use the first element of this list as returned default.
23327 (string_to_object)
23328 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23329 (read_minibuf): If defalt is cons, set histstring to its car.
23330 (Fread_string): If default_value is cons, set val to its car.
23331 (Fread_buffer): If def is cons, use its car.
23332 (Fcompleting_read): If defalt is cons, set val to its car.
23333
233342007-10-21 Michael Albinus <michael.albinus@gmx.de>
23335
23336 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23337
233382007-10-20 Juanma Barranquero <lekktu@gmail.com>
23339
23340 * doc.c (Fdocumentation): Check for advice in all cases.
23341
233422007-10-19 Chong Yidong <cyd@stupidchicken.com>
23343
23344 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23345
233462007-10-19 Richard Stallman <rms@gnu.org>
23347
23348 * doc.c (Fdocumentation): Check for and handle an advised function.
23349
233502007-10-19 Juanma Barranquero <lekktu@gmail.com>
23351
23352 * process.c (Fset_process_filter): Doc fix.
23353
233542007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23355
23356 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23357 which caused key-translation-map to applied repeatedly (thus breaking
23358 double-mode).
23359
233602007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23361
23362 * xselect.c (x_own_selection, x_handle_selection_clear)
23363 (x_clear_frame_selections):
23364 * w32menu.c (list_of_panes, list_of_items):
23365 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23366 * textprop.c (validate_plist, interval_has_all_properties)
23367 (interval_has_some_properties, interval_has_some_properties_list)
23368 (add_properties, text_property_list):
23369 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23370 * minibuf.c (Fassoc_string):
23371 * macselect.c (x_own_selection, x_clear_frame_selections)
23372 (Fx_disown_selection_internal):
23373 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23374 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23375
233762007-10-17 Chong Yidong <cyd@stupidchicken.com>
23377
23378 * process.c: Link to libs for calling res_init() if available.
23379 (Fmake_network_process): Call res_init() before getaddrinfo or
23380 gethostbyname, if possible.
23381
233822007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23383
23384 * lread.c (read1): Set pvectype for char_tables.
23385
23386 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23387 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23388 Add type checks.
23389 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23390
23391 * alloc.c (free_misc): Use XMISCTYPE.
23392 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23393
233942007-10-17 Glenn Morris <rgm@gnu.org>
23395
23396 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23397 (syms_of_minibuf): Add Qcompletion_ignore_case.
23398 * dired.c (Qcompletion_ignore_case): Change to external.
23399 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23400 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23401 (Fread_file_name): Use it rather than intern'ing.
23402
23403 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23404 (Fread_coding_system): Ignore case of user input.
23405
234062007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23407
23408 * xdisp.c (handle_display_prop): Ignore display specs after
23409 replacing one when string text is being replaced.
23410 (handle_single_display_spec): Pretend as if characters with display
23411 property haven't been consumed only when buffer text is being replaced.
23412
234132007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23414
23415 * xfns.c (Fx_create_frame, Fx_display_list):
23416 * window.c (window_fixed_size_p, enlarge_window)
23417 (shrink_window_lowest_first):
23418 * macterm.c (init_font_name_table):
23419 * macfns.c (Fx_create_frame, Fx_display_list):
23420 * lread.c (close_load_descs):
23421 * keyboard.c (read_char_x_menu_prompt):
23422 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23423 * coding.c (code_convert_region_unwind): Test the type of an object
23424 rather than just !NILP before extracting data from it.
23425
23426 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23427
23428 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23429 (XMISCANY): New macro.
23430 (XMISCTYPE): Use it.
23431 (struct Lisp_Misc_Any): New type.
23432 (union Lisp_Misc): Use it.
23433 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23434 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23435 (find_symbol_value, set_internal, default_value, Fset_default)
23436 (Fmake_variable_buffer_local, Fmake_local_variable)
23437 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23438 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23439 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23440 * alloc.c (allocate_buffer): Set the size and tag.
23441 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23442 Use XMISCANY.
23443 (die): Follow the GNU convention for error messages.
23444 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23445 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23446 tag any more.
23447 (set_buffer_internal_1):
23448 * frame.c (store_frame_param):
23449 * eval.c (specbind):
23450 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23451
23452 * doc.c (Fsnarf_documentation): Simplify.
23453
234542007-10-14 Juanma Barranquero <lekktu@gmail.com>
23455
23456 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23457 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23458
234592007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23460
23461 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23462
234632007-10-14 Juanma Barranquero <lekktu@gmail.com>
23464
23465 * eval.c (do_autoload): Don't save autoloads.
23466
23467 * data.c (Ffset): Save autoload of the function being set.
23468
234692007-10-07 John Paul Wallington <jpw@pobox.com>
23470
23471 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23472 parameter before setting up faces.
23473
234742007-10-13 Eli Zaretskii <eliz@gnu.org>
23475
23476 * ccl.c (Fregister_code_conversion_map):
23477 * keyboard.c (append_tool_bar_item): Reformat last change.
23478
23479 * lisp.h (eabs): Rename from `abs'. All callers changed.
23480
234812007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23482
23483 * buffer.c (add_overlay_mod_hooklist):
23484 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23485 * fontset.c (make_fontset):
23486 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23487 (append_tool_bar_item):
23488 * macmenu.c (grow_menu_items):
23489 * w32menu.c (grow_menu_items):
23490 * xmenu.c (grow_menu_items): Use larger_vector.
23491
234922007-10-13 Eli Zaretskii <eliz@gnu.org>
23493
23494 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23495 selected frame'' on MSDOS).
23496
234972007-10-12 Martin Rudalics <rudalics@gmx.at>
23498
23499 * frame.c (Qexplicit_name): New variable.
23500 (x_report_frame_params): Report it in parameter alist.
23501 (syms_of_frame): Intern and staticpro it.
23502
235032007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23504
23505 * macfns.c (x_create_tip_frame): Set terminal for frame.
23506
235072007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23508
23509 * frame.c (Qenvironment): Remove.
23510 (syms_of_frame) <Qenvironment>: Don't initialize.
23511 (Fdelete_frame): Don't treat the `environment' param specially.
23512 * frame.h (Qenvironment): Don't declare.
23513 * callproc.c (set_initial_environment): Don't set unused frame param.
23514
23515 * frame.c (Fframe_with_environment): Remove.
23516 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23517
23518 * lisp.h (Fframe_with_environment): Don't declare.
23519
235202007-10-10 Juanma Barranquero <lekktu@gmail.com>
23521
23522 * indent.c (indent_tabs_mode, last_known_column)
23523 (last_known_column_modified): Make static.
23524 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23525
235262007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23527
23528 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23529
235302007-10-09 Jason Rumney <jasonr@gnu.org>
23531
23532 * w32term.c (x_set_window_size): Disable code that attempts to tell
23533 Lisp code about a size change before it actually happens.
23534
235352007-10-09 Richard Stallman <rms@gnu.org>
23536
23537 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23538 return HANDLED_RETURN.
23539
235402007-10-08 Martin Rudalics <rudalics@gmx.at>
23541
23542 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23543 when there's an unread command event.
23544
23545 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23546 window autoselection act appropriately when leaving selected frame.
23547 (syms_of_frame): Initialize focus_follows_mouse.
23548 * frame.h (focus_follows_mouse): Extern it.
23549 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23550 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23551 * msdos.c (dos_rawgetc): Likewise.
23552 * w32term.c (w32_read_socket): Likewise.
23553 * xterm.c (handle_one_xevent): Likewise.
23554 * xdisp.c (syms_of_xdisp): In doc-string of
23555 mouse-autoselect-window mention focus-follows-mouse.
23556
235572007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23558
23559 * macterm.c (mac_load_query_font): Fix missing return value.
23560 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23561 Add BLOCK_INPUT.
23562
235632007-10-08 Richard Stallman <rms@gnu.org>
23564
23565 * xdisp.c (get_window_cursor_type): Implement documented behavior
23566 for cursor-in-non-selected-windows = t.
23567
235682007-10-08 Jason Rumney <jasonr@gnu.org>
23569
23570 * w32.c (w32_get_resource): Always close registry keys.
23571
235722007-10-08 Jason Rumney <jasonr@gnu.org>
23573
23574 * makefile.w32-in (LIBS): Add COMCTL32.
23575
23576 * w32fns.c (globals_of_w32fns): Init common controls.
23577
235782007-10-08 Richard Stallman <rms@gnu.org>
23579
23580 * image.c (our_memory_buffer): Rename from omfib_buffer.
23581
235822007-10-08 Richard Stallman <rms@gnu.org>
23583
23584 * buffer.c (Foverlays_at): Doc fix.
23585
235862007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23587
23588 * fns.c (Fplist_put): Preserve uneven tail data.
23589
235902007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23591
23592 * termhooks.h (enum event_kind): Remove trailing comma.
23593
23594 * frame.h (enum): Remove trailing comma.
23595
235962007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23597
23598 * w32proc.c (delete_child): Don't terminate threads of zombies.
23599
236002007-10-08 Martin Rudalics <rudalics@gmx.at>
23601
23602 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23603
23604 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23605 last-repeatable-command.
23606 (init_kboard): Initialize Vlast_repeatable_command.
23607 (command_loop_1): Set it to real_this_command unless that was
23608 bound to an input event.
23609 (mark_kboards): Mark it.
23610
236112007-10-08 Richard Stallman <rms@gnu.org>
23612
23613 * eval.c (condition-case): Doc fix.
23614
236152007-10-08 Masatake YAMATO <jet@gyve.org>
23616
23617 * xfaces.c (tty_supports_face_attributes_p): Fix code
23618 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23619 was copied and not edited.
23620
236212007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23622
23623 Add new `input-decode-map' keymap and use it for terminal
23624 escape sequences.
23625 * keyboard.h (struct kboard): Add Vinput_decode_map.
23626 Remove Vlocal_key_translation_map.
23627 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23628 (init_kboard): Init input-decode-map.
23629 Replace local-key-translation-map back with key-translation-map.
23630 (syms_of_keyboard): Declare input-decode-map.
23631 Remove local-key-translation-map. Update docstrings.
23632 (mark_kboards): Mark Vinput_decode_map.
23633 Don't mark Vlocal_key_translation_map.
23634 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23635 Replace local-key-translation-map back with key-translation-map.
23636 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23637 Bind in input-decode-map rather than function-key-map.
23638
23639 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23640 This was made redundant by the previous introduction of XSETPVECTYPE.
23641
236422007-10-09 Richard Stallman <rms@gnu.org>
23643
23644 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23645
236462007-09-29 Richard Stallman <rms@gnu.org>
23647
23648 * eval.c (internal_condition_case_2, internal_condition_case_1)
23649 (internal_condition_case): Reenable abort if x_catching_errors ()
23650 to see if that really happens and why.
23651
236522007-10-06 Andreas Schwab <schwab@suse.de>
23653
23654 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23655
236562007-10-04 Juanma Barranquero <lekktu@gmail.com>
23657
23658 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23659
236602007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23661
23662 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23663
236642007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23665
23666 * window.h (struct window):
23667 * window.c (struct save_window_data, struct saved_window):
23668 * termhooks.h (struct terminal):
23669 * process.h (struct Lisp_Process):
23670 * frame.h (struct frame):
23671 * buffer.h (struct buffer):
23672 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23673 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23674 The size field of (pseudo)vectors is now unsigned.
23675 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23676
23677 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23678 Turn `count' into an integer.
23679
23680 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23681 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23682 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23683 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23684 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23685
23686 * alloc.c (allocate_pseudovector): New fun.
23687 (ALLOCATE_PSEUDOVECTOR): New macro.
23688 (allocate_window, allocate_terminal, allocate_frame)
23689 (allocate_process): Use it.
23690 (mark_vectorlike): New function.
23691 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23692 (mark_terminals): Use it.
23693 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23694 (Fmake_byte_code): Use XSETPVECTYPE.
23695
23696 * frame.c (Fframe_parameters): Minor simplification.
23697
23698 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23699
23700 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23701
23702 * buffer.c (Fget_buffer_create, init_buffer_once):
23703 * lread.c (defsubr):
23704 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23705
23706 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23707 defined differently in the m/*.h files.
23708 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23709 (XSETPVECTYPE): New macro.
23710 (XSETPSEUDOVECTOR): Use it.
23711
23712 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23713 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23714
23715 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23716 * lread.c (defvar_per_buffer):
23717 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23718
23719 * window.c (candidate_window_p): Only consider as visible frames that
23720 are on the same terminal.
23721
23722 * m/ibms390x.h (MARKBIT): Remove unused macro.
23723
237242007-10-01 Juanma Barranquero <lekktu@gmail.com>
23725
23726 * lread.c (Fload): Fix typo in docstring.
23727
237282007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23729
23730 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23731 of a non-zero value can't yield zero.
23732
237332007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23734
23735 * term.c (term_clear_mouse_face, term_mouse_highlight)
23736 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23737
23738 * print.c (safe_debug_print): Use XHASH.
23739
23740 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23741 Lisp elements such as tags.
23742 (XHASH): New macro.
23743 (EQ): Use it.
23744 (SREF, SSET, STRING_COPYIN): Use SDATA.
23745 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23746
23747 * alloc.c (mark_terminal): Remove left-over declaration.
23748 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23749 (allocate_vectorlike): Remove type argument. Adjust callers.
23750 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23751 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23752
23753 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23754 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23755 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23756 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23757 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23758 Use them.
23759
23760 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23761 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23762 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23763
237642007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23765
23766 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23767 loaded by default.
23768
237692007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23770
23771 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23772 on this tty.
23773 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23774
23775 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23776 Update all users.
23777 (handle_one_term_event): Use Gpm_DrawPointer.
23778 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23779 Signal errors instead of returning nil. Always return nil.
23780 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23781 Make it a noop if gpm-mouse was not activated.
23782 (syms_of_term): Update names.
23783
237842007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23785
23786 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23787 (init_sys_modes): Check that gpm_tty is the current tty.
23788
23789 * alloc.c (allocate_terminal): Set the vector size to only count the
23790 lisp fields. Initialize those to nil.
23791 (mark_object): Don't treat terminals specially.
23792 (mark_terminal): Remove.
23793 (mark_terminals): Use mark_object instead.
23794
23795 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23796 the GC to the beginning.
23797
23798 * indent.h:
23799 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23800
23801 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23802
238032007-09-25 Jason Rumney <jasonr@gnu.org>
23804
23805 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23806
23807 * w32console.c (create_w32cons_output): Remove.
23808
23809 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23810
23811 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23812 (reset_sys_modes): Use reset_terminal_modes_hook.
23813
238142007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23815
23816 * eval.c (do_autoload): Don't output any message.
23817
238182007-09-24 Juri Linkov <juri@jurta.org>
23819
23820 * emacs.c (standard_args): Change priority of "--no-splash"
23821 from 40 to 3. Add "--no-desktop" with the same priority.
23822
238232007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23824
23825 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23826 and optimize the case where they are all 1.
23827
238282007-09-23 Johannes Weiner <hannes@saeurebad.de>
23829
23830 * lisp.h (abs): Define if not defined.
23831 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23832 Don't define `abs', since it's defined in lisp.h.
23833
238342007-09-22 Eli Zaretskii <eliz@gnu.org>
23835
23836 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23837 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23838 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23839 (init_tty): Use DEV_TTY instead of "/dev/tty".
23840 [WINDOWSNT]: No need to protect from NAME arg being null.
23841
238422007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23843
23844 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23845 up the tty state.
23846
238472007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23848
23849 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23850 (gpm_tty): Change its type.
23851 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23852 (gpm_tty): Change its type and initialize it.
23853 (Fterm_open_connection): Check the frame is indeed a tty.
23854 Use the new gpm_tty.
23855 (Fterm_close_connection): Use the new gpm_tty.
23856 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23857 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23858
238592007-09-21 Juanma Barranquero <lekktu@gmail.com>
23860
23861 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23862 underline_color, to draw strike-through.
23863
238642007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23865
23866 * lisp.h (allocate_terminal): Declare.
23867
23868 * window.c (candidate_window_p): Consider frames that are being placed
23869 by the user as somewhere between visible and iconified.
23870 (window_loop): Prefer windows on the current frame.
23871 (Fselect_window): Move the use of select-frame to the beginning so we
23872 can just delegate all the work (it'll call us back anyway).
23873
23874 * frame.c (Qdisplay_environment_variable):
23875 * frame.h (Qdisplay_environment_variable): Delete.
23876
23877 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23878 of the first arg, since that value may be a union.
23879
23880 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23881 parameter rather than Qdisplay_environment_variable. If all else
23882 fails, look for DISPLAY in initial-environment.
23883
238842007-09-21 Glenn Morris <rgm@gnu.org>
23885
23886 * Makefile.in (emacstool): Remove target.
23887 (lisp, shortlisp): Remove termdev.elc.
23888
238892007-09-21 Markus Triska <markus.triska@gmx.at>
23890
23891 * xterm.c (x_delete_display): Compile session management conditionally.
23892
238932007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23894
23895 * callproc.c (getenv_internal_1): New function.
23896 (getenv_internal): Use it.
23897 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23898
23899 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23900 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23901 (Fset_terminal_parameter): Work with dead terminals as well.
23902 (Fmodify_terminal_parameters): Remove.
23903
23904 * terminal.c (get_terminal): Handle terminals.
23905 Make sure the terminal returned is live.
23906 (create_terminal): Use allocate_terminal.
23907 (mark_terminals): Move to alloc.c.
23908 (delete_terminal): Use terminal->name as liveness status.
23909 NULL out fields after freeing their contents.
23910 Don't deallocate the object.
23911 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23912 rather than an int.
23913 (Fterminal_live_p): Accept non-integer arguments.
23914 (Fterminal_list): Return terminal objects rather than an ints.
23915
23916 * alloc.c (enum mem_type): New member for `terminal' objects.
23917 (allocate_terminal): New function.
23918 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23919 Handle terminals.
23920 (mark_terminal): New fun.
23921 (mark_terminals): Move from terminal.c.
23922
23923 * term.c (get_tty_terminal): Don't treat output_initial specially.
23924 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23925 (delete_tty): Use terminal->name as liveness status.
23926
23927 * termhooks.h (struct terminal): Make it into a pseudovector.
23928 Remove `deleted' replaced by checking `name's nullness.
23929
23930 * print.c (print_object): Handle terminals.
23931
23932 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23933 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23934
23935 * frame.c (make_terminal_frame):
23936 * keyboard.c (tty_read_avail_input):
23937 * w32term.c (x_delete_terminal):
23938 * xfns.c (Fx_create_frame, x_create_tip_frame):
23939 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23940
239412007-09-20 Glenn Morris <rgm@gnu.org>
23942
23943 * process.c (Fmake_network_process): Doc fix.
23944
239452007-09-19 Jason Rumney <jasonr@gnu.org>
23946
23947 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23948
239492007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23950
23951 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23952 Fix a C warning regarding variable constness.
23953
23954 * xterm.c (handle_one_xevent): Fix a C warning.
23955
239562007-09-18 Jason Rumney <jasonr@gnu.org>
23957
23958 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23959
239602007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23961
23962 * gtkutil.c (gdpy_def): New variable.
23963 (xg_initialize): Initialize gdpy_def.
23964 (xg_display_close): If no other display exists, set gdpy_def to a
23965 new connection.
23966
239672007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23968
23969 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23970 when we have no file name for the icon.
23971 (xg_tool_bar_expose_callback): Remove.
23972 (xg_create_tool_bar): Don't connect expose signal to
23973 xg_tool_bar_expose_callback.
23974 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23975
239762007-09-16 Andreas Schwab <schwab@suse.de>
23977
23978 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23979 values instead of zapping them.
23980
239812007-09-14 Glenn Morris <rgm@gnu.org>
23982
23983 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23984 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23985 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23986 scope and rename to omfib_buffer for clarity.
23987 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23988
239892007-09-14 Kenichi Handa <handa@m17n.org>
23990
23991 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23992
239932007-09-13 Jason Rumney <jasonr@gnu.org>
23994
23995 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23996
23997 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23998
23999 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24000 (mac_term_init): Call here instead, passing rif.
24001
240022007-09-13 Glenn Morris <rgm@gnu.org>
24003
24004 * s/hpux.h: No longer define `static' as nothing.
24005
240062007-09-13 Johan Bockgård <bojohan@gnu.org>
24007
24008 * callint.c (Fcall_interactively): Remove unused var `fun'.
24009
240102007-09-12 Romain Francoise <romain@orebokech.com>
24011
24012 * window.c (prefer_window_split_horizontally, display_buffer):
24013 Revert 2007-09-08 change.
24014
240152007-09-12 Glenn Morris <rgm@gnu.org>
24016
24017 * alloca.c: Remove file.
24018 * Makefile.in (alloca): Do not undef.
24019 (allocaobj, alloca.o): Remove.
24020 (otherobj): Remove allocaobj.
24021 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24022 * regex.c (C_ALLOCA): Remove all references and code that was only
24023 used when this was defined.
24024 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24025 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24026 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24027
24028 * Makefile.in (SOURCES, unlock, relock): Delete.
24029
24030 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24031 (menu_grab_callback): All uses changed.
24032
24033 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24034 (x_reply_selection_request): All uses changed.
24035
240362007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24037
24038 * lread.c (load_warn_old_style_backquotes): Change message to look
24039 better when it appears in the middle of byte-compiler messages.
24040
240412007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24042
24043 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24044
24045 * xterm.c (x_create_terminal): Add comment.
24046
24047 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24048
240492007-09-10 Richard Stallman <rms@gnu.org>
24050
24051 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24052
240532007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24054
24055 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24056 (DEFUN): Document `intspec', use it instead of `prompt'.
24057
24058 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24059
24060 * data.c (Finteractive_form): If the interactive specification starts
24061 with a `(', use it as a Lisp form.
24062
24063 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24064 name and file modes.
24065
24066 * callint.c (Fcall_interactively): Comment fixes.
24067
240682007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24069
24070 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24071 and compiled functions.
24072
240732007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24074
24075 * window.c (prefer_window_split_horizontally): New variable.
24076 (display_buffer): Consider splitting window horizontally depending
24077 on prefer_window_split_horizontally.
24078
240792007-09-08 Eli Zaretskii <eliz@gnu.org>
24080
24081 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24082
240832007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24084
24085 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24086
24087 * frame.c (x_set_frame_parameters): Check number is positive before
24088 using XFASTINT.
24089
24090 * window.c (freeze_window_start): Don't presume selected_window holds
24091 a window object.
24092 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24093
240942007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24095
24096 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24097
240982007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24099
24100 * window.c (Vsplit_window_preferred_function): New var.
24101 (Fdisplay_buffer): Use it.
24102 (syms_of_window): Export, and initialize it.
24103
241042007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24105
24106 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24107
241082007-09-06 Glenn Morris <rgm@gnu.org>
24109
24110 * gtkutil.c (menu_grab_callback) <cnt>:
24111 * xselect.c (x_reply_selection_request) <cnt>: Move static
24112 variable to file scope.
24113
241142007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24115
24116 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24117 consistent values of selected_frame and selected_window.
24118
241192007-09-04 Jason Rumney <jasonr@gnu.org>
24120
24121 * w32console.c (initialize_w32_display): Zero unused hooks.
24122
241232007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24124
24125 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24126 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24127
241282007-09-04 Jason Rumney <jasonr@gnu.org>
24129
24130 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24131 in w32console.c. Set up input. Remove XXX comments that have been
24132 confirmed as correct.
24133
24134 * s/ms-w32.h (MULTI_KBOARD): Define.
24135
24136 * w32console.c (one_and_only_w32cons): Remove.
24137 (initialize_w32_display): Take terminal argument.
24138
24139 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24140 initialize_w32_display.
24141 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24142
24143 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24144
24145 * keyboard.c (discard_mouse_events): Discard it.
24146 (make_lispy_event): Translate it to a lisp event.
24147 (lispy_wheel_names): Add wheel-left and right events.
24148 (syms_of_keyboard): Enlarge wheel_syms.
24149
24150 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24151 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24152
24153 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24154
24155 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24156 from WM_MOUSEHWHEEL.
24157 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24158
24159 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24160 terminal.
24161
24162 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24163 keyboard for the terminal.
24164
241652007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24166
24167 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24168 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24169 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24170 and resume-tty-function to resume-tty-hook.
24171 (Fsuspend_tty, Fresume_tty): Use new names.
24172
241732007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24174
24175 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24176 if it starts with "n:".
24177
241782007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24179
24180 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24181
241822007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24183
24184 * frame.h:
24185 * frame.c (Qterm_environment_variable): Remove.
24186 (syms_of_frame): Don't init and staticpro it.
24187
24188 * callproc.c (getenv_internal): Remove special case for $TERM.
24189
24190 * callproc.c (Vinitial_environment): New variable.
24191 (set_initial_environment): Initialize it.
24192 (syms_of_callproc): Declare it.
24193 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24194 TERM under which a process runs is never related to the TERM in which
24195 Emacs is running.
24196
241972007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24198
24199 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24200 * s/darwin.h: ... do it here.
24201
242022007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24203
24204 * lisp.h (set_initial_environment): Rename from set_global_environment.
24205
24206 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24207 removed by mistake on the multi-tty branch.
24208
24209 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24210 (Fmodify_frame_parameters): Return a value.
24211
24212 * image.c (png_load): Comment-out var only used in commented-out code.
24213
24214 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24215 before passing it to mark_object.
24216
24217 * xfaces.c (internal_resolve_face_name): Return a value.
24218 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24219
24220 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24221 (x_icon): Comment-out var only used in commented-out code.
24222
242232007-08-29 Romain Francoise <romain@orebokech.com>
24224
24225 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24226 QUIT hasn't been provided.
24227
242282007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24229
24230 * callproc.c (child_setup, getenv_internal): Use the
24231 display-environment-variable and term-environment-variable frame params.
24232 (set_initial_environment): Initialise Vprocess_environment.
24233
24234 * config.in: Disable multi-keyboard support on a mac.
24235
24236 * frame.c (Qterm_environment_variable)
24237 (Qdisplay_environment_variable): New variables.
24238 (syms_of_frame): Intern and staticpro them.
24239 (Fmake_terminal_frame): Disable output method test.
24240
24241 * frame.h: Declare them here.
24242
24243 * macfns.c (x_set_mouse_color): Get rif from the frame.
24244 (x_set_tool_bar_lines): Don't use updating_frame.
24245 (mac_window): Add 2 new parameters for consistency with other systems.
24246 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24247 frame parameters following what is done in X11 and w32. Don't use
24248 FRAME_MAC_DISPLAY_INFO.
24249 (Fx_open_connection, start_hourglass): Remove window-system check.
24250 (x_create_tip_frame): Get the keyboard from the terminal.
24251
24252 * macmenu.c: Reorder includes.
24253 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24254
24255 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24256 terminal parameter.
24257 (x_clear_frame): Add a frame parameter.
24258 (note_mouse_movement): Get rif from the frame.
24259 (mac_term_init): Initialize the terminal.
24260 (mac_initialize): Make static and move terminal initialization ...
24261 (mac_create_terminal): ... to this new function.
24262
24263 * macterm.h (struct mac_display_info): Add terminal.
24264 (mac_initialize): Delete declaration.
24265
24266 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24267
24268 * sysdep.c: Comment out text after #endif.
24269
24270 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24271 is defined. Better initialize ttys in windows. Use terminal
24272 specific mouse_position_hook.
24273
24274 * termhooks.h (union display_info): Add mac_display_info.
24275
24276 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24277 Set the default minibuffer frame, window_system and the rest of the
24278 frame parameters following what is done in X11.
24279
24280 * w32term.c (w32_initialize): Make static.
24281
24282 * xselect.c (x_handle_selection_clear): Only access
24283 terminal->kboard when MULTI_KBOARD is defined.
24284
24285 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24286 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24287
242882007-08-29 Jason Rumney <jasonr@gnu.org>
24289
24290 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24291 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24292
24293 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24294 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24295
24296 * keyboard.c (restore_kboard_configuration): Only define when
24297 MULTI_KBOARD defined.
24298
24299 * makefile.w32-in: Update dependancies from Makefile.in.
24300 (OBJ1): Add terminal.$(O)
24301
24302 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24303 Don't define function body.
24304 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24305
24306 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24307
24308 * w32.c (request_sigio, unrequest_sigio): Remove.
24309
24310 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24311 (w32con_clear_frame, w32con_clear_end_of_line)
24312 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24313 (w32con_delete_glyphs, w32con_set_terminal_window)
24314 (scroll_line, w32_sys_ring_bell): Add frame arg.
24315 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24316 Add terminal arg.
24317 (PICK_FRAME): Remove.
24318 (w32con_write_glyphs): Use frame specific terminal coding.
24319 (one_and_only_w32cons): New global variable.
24320 (initialize_w32_display): Use it for storing hooks.
24321 (create_w32cons_output): New function.
24322
24323 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24324 arg a frame.
24325
24326 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24327 Set window_system.
24328 (x_set_tool_bar_lines): Don't use updating_frame.
24329 (Fx_create_frame): Set terminal and ref count.
24330 (Fx_open_connection): Remove window-system check.
24331
24332 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24333
24334 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24335 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24336 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24337 Add frame arg.
24338 (x_delete_terminal, w32_create_terminal): New functions.
24339 (w32_term_init): Create a terminal.
24340 (w32_initialize): Move terminal specific initialization to
24341 w32_create_terminal.
24342
24343 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24344 (w32_clear_rect, w32_clear_area): Use background from frame.
24345 (w32_display_info): Add terminal.
24346 (w32_sys_ring_bell, x_delete_display): Declare here.
24347
24348 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24349
24350 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24351
243522007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24353
24354 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24355 Fix get_named_tty calls for the controlling tty.
24356
243572007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24358
194d44e7 24359 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24360
243612007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24362
24363 * term.c (tty_insert_glyphs): Add missing first parameter.
24364
243652007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24366
24367 * buffer.c (Fbuffer_list, Fbury_buffer):
24368 Take frame->buried_buffer_list into account.
24369
24370 * cm.c (current_tty): New variable, for cmputc().
24371 (cmputc): Use it.
24372 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24373 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24374 (cmgoto): Add tty parameter. Pass it on to calccost().
24375 Use emacs_tputs() instead of tputs().
24376
24377 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24378 tputs().
24379 (current_tty): New variable, for cmputc().
24380 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24381
24382 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24383 (internal_condition_case, internal_condition_case_1)
24384 (internal_condition_case_2): Don't abort when x_catching_errors.
24385
24386 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24387 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24388 prevent crashes caused by bogus longjmps in read_char.
24389
24390 * keymap.h (Fset_keymap_parent): Add EXFUN.
24391
24392 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24393 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24394 Remove redundant definition.
24395
24396 * macfns.c (x_set_mouse_color, x_make_gc):
24397 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24398
24399 * w32term.c (x_free_frame_resources):
24400 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24401 (w32_initialize): Use the accessor macros for terminal characteristics.
24402
24403 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24404 Use the accessor macros for terminal characteristics.
24405 * msdos.c (internal_terminal_init): Use the accessor macros for
24406 terminal characteristics.
24407 (ScreenVisualBell, internal_terminal_init):
24408 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24409
24410 * termopts.h (no_redraw_on_reenter): Declare.
24411
24412 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24413 (mark_terminals, mark_ttys): Declare.
24414 (Fgarbage_collect): Call them.
24415 (mark_object): Mark buried_buffer_list.
24416
24417 * prefix-args.c: Include stdlib.h for exit.
24418
24419 * syssignal.h: Add comment.
24420
24421 * indent.c: Include stdio.h.
24422
24423 * window.h (Vinitial_window_system): Declare.
24424 (Vwindow_system): Delete declaration.
24425
24426 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24427
24428 * image.c (lookup_image): Don't initialize `c' until the xasserts
24429 have been run.
24430
24431 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24432 FRAME_FOREGROUND_PIXEL.
24433
24434 * print.c (print_preprocess): Don't lose print_depth levels while
24435 iterating.
24436
24437 * widget.c (update_from_various_frame_slots):
24438 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24439
24440 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24441 frames.
24442 (window_internal_height): Remove bogus make_number call.
24443 (init_window_once): Call make_terminal_frame with two zero parameters.
24444
24445 * fileio.c (Fread_file_name): Update comment.
24446
24447 * callint.c (Fcall_interactively):
24448 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24449 Make sure it is correctly unwound.
24450
24451 * xsmfns.c (x_session_close): New function.
24452
24453 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24454 Delete declarations.
24455
24456 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24457 (x_output): Remove background_pixel and foreground_pixel fields.
24458 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24459 (x_delete_device, x_session_close): Declare.
24460
24461 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24462 (read_filtered_event): Call `read_char' with a local
24463 `wrong_kboard_jmpbuf'.
24464
24465 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24466 Don't call single_kboard_state. Use FRAME_RIF.
24467
24468 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24469 systems.
24470
24471 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24472 (Fframe_with_environment, Fset_input_meta_mode)
24473 (Fset_quit_char): EXFUN.
24474 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24475 (init_sys_modes, reset_sys_modes): Update prototypes.
24476 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24477
24478 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24479 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24480 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24481 Delete declarations.
24482 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24483 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24484 New declarations.
24485
24486 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24487 already does that during init_display(). Call syms_of_keymap
24488 before syms_of_keyboard. Call `syms_of_terminal'.
24489 Call set_initial_environment, not set_process_environment.
24490 (shut_down_emacs): Call reset_all_sys_modes() instead of
24491 reset_sys_modes().
24492
24493 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24494 (internal_resolve_face_name, resolve_face_name_error): New functions.
24495 (resolve_face_name): Protect against loops and errors thrown by Fget.
24496 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24497 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24498
24499 * scroll.c: Replace CURTTY() with local variables throughout the
24500 file (where applicable).
24501 (calculate_scrolling, calculate_direct_scrolling)
24502 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24503 characteristics.
24504
24505 * keymap.c (Vfunction_key_map): Remove.
24506 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24507 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24508 (Vkey_translation_map): Remove.
24509 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24510 (Fdescribe_buffer_bindings)
24511 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24512 Update for terminal-local key-translation-map.
24513
24514 * Makefile.in (callproc.o): Update dependencies.
24515 (lisp, shortlisp): Add termdev.elc.
24516 (obj): Add terminal.o.
24517 (terminal.o): Add dependencies.
24518 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24519 (data.o, fns.o): Add termhooks.h dependency.
24520 (SOME_MACHINE_LISP): Add dnd.elc.
24521 (minibuf.o): Fix typo.
24522 Update dependencies.
24523
24524 * data.c (do_symval_forwarding, store_symval_forwarding)
24525 (find_symbol_value): Use the selected frame's keyboard, not
24526 current_kboard.
24527
24528 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24529 Vwindow_system.
24530
24531 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24532 Fmenu_bar_open.
24533 (syms_of_xmenu): Update defsubr.
24534 (mouse_position_for_popup, Fx_popup_menu)
24535 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24536 (set_frame_menubar, free_frame_menubar)
b97439ce 24537 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24538 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24539 an X frame.
24540
24541 * xselect.c (x_own_selection): Abort if not an X frame.
24542 (some_frame_on_display): Check if it is an X frame.
24543 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24544
24545 * coding.c: Include frame.h and termhooks.h.
24546 (terminal_coding, keyboard_coding): Delete.
24547 (Fset_terminal_coding_system_internal)
24548 (Fset_keyboard_coding_system_internal)
24549 (Fkeyboard_coding_system)
24550 (Fterminal_coding_system): Add a terminal parameter.
24551 Get terminal_coding from the terminal.
24552 (init_coding_once): Don't call setup_coding_system here.
24553
24554 * dispextern.h (set_scroll_region, turn_off_insert)
24555 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24556 (tty_clear_end_of_line, tty_setup_colors)
24557 (delete_tty, updating_frame)
24558 (produce_special_glyphs, produce_glyphs, write_glyphs)
24559 (insert_glyphs): Remove.
24560 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24561 (tty_turn_off_highlight, get_tty_size): Add declaration.
24562 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24563
24564 * frame.h (enum output_method): Add output_initial.
24565 (struct x_output): Delete.
24566 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24567 Access foreground_pixel and background_pixel directly from the frame.
24568 (tty_display): Delete.
24569 (struct frame): Add buried_buffer_list, foreground_pixel,
24570 background_pixel and terminal. Delete kboard.
24571 (union output_data): Add tty.
24572 (FRAME_KBOARD): Get the kboard from the terminal.
24573 (FRAME_INITIAL_P): New macro.
24574 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24575 (Qterm_environment_variable, Qdisplay_environment_variable)
24576 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24577 New declarations.
24578
24579 * termchar.h (tty_output, tty_display_info): New structures.
24580 (tty_list): Declare.
24581 (FRAME_TTY, CURTTY): New macros.
24582 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24583 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24584 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24585 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24586
24587 * callproc.c: Include frame.h and termhooks.h, for terminal
24588 parameters.
24589 (add_env): New function.
24590 (child_setup): Use it.
24591 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24592 (getenv_internal): Fix get_terminal_param call.
24593 (Fgetenv_internal, egetenv): Update doc.
24594 (syms_of_callproc): Initialize Vprocess_environment to nil.
24595 Register and initialize them. Remove obsolete defvars. Update doc
24596 strings.
24597 (child_setup): Handle Vlocal_environment_variables.
24598 (getenv_internal): Add terminal parameter.
24599 Handle Vlocal_environment_variables.
24600 (Fgetenv_internal): Add terminal parameter.
24601 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24602 environment in a frame (not terminal) parameter. Update doc strings.
24603 (set_initial_environment): Rename from set_global_environment.
24604 Store Emacs environment in initial frame parameter.
24605
24606 * xdisp.c (redisplay_internal): Update references to
24607 `previous_terminal_frame'.
24608 (display_mode_line, Fformat_mode_line): Replace calls to
24609 `push_frame_kboard' with `push_kboard'.
24610 (get_glyph_string_clip_rects): Add extra parentheses and
24611 braces to prevent compiler warnings.
24612 (calc_pixel_width_or_height): Add xassert to check that the
24613 frame is alive. Don't call `lookup_image' on a termcap frame.
24614 (message2_nolog, message3_nolog, redisplay_internal)
24615 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24616 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24617 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24618 (Fx_display_pixel_width, Fx_display_pixel_height)
24619 (Fx_display_planes, Fx_display_color_cells)
24620 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24621 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24622 (Fx_display_backing_store, Fx_display_visual_class)
24623 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24624 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24625
24626 * xfns.c (x_set_foreground_color x_set_background_color)
24627 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24628 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24629 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24630 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24631 terminal that is being deleted.
24632 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24633 frame parameter, and make sure it overrides any user-supplied setting.
24634 (Fx_close_connection, Fx_synchronize): Unify argument names with
24635 the rest of the DEFUNs.
24636
24637 * dispnew.c (Fsend_string_to_terminal): Update call to
24638 `get_tty_terminal'.
24639 (Fredraw_frame, Fsend_string_to_terminal)
24640 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24641 FRAME_TERMCAP_P and FRAME_TTY.
24642 (window_change_signal): Don't believe width/height values that are
24643 impossibly small.
24644 (Vinitial_window_system): Rename from Vwindow_system.
24645 (termscript, Wcm, rif): Delete.
24646
24647 * termhooks.h (struct terminal): New struct containing the
24648 previously global text display hooks and new members NAME,
24649 DELETED and PARAM_ALIST.
24650 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24651 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24652 (FRAME_RIF): New macros.
24653 (get_terminal_param, get_device): New declarations.
24654 (termscript): Delete declaration.
24655
24656 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24657 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24658 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24659 FRAME_FOREGROUND_PIXEL.
24660 (x_fully_uncatch_errors): Disable definition.
24661 (x_scroll_bar_expose): Fix reference to foreground pixel.
24662 (XTread_socket): Disable loop on all X displays.
24663 (x_delete_terminal): Don't set terminal->deleted and let
24664 delete_terminal delete the frames on the terminal.
24665 (x_delete_display): Doc update to reflect changes in
24666 delete_terminal.
24667 (x_display_info) <terminal>: Move member earlier in the struct.
24668 (deleting_tty): Remove old variable.
24669 (Fsuspend_tty): Call clear_tty_hooks.
24670 (Fresume_tty, init_tty): Call set_tty_hooks.
24671 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24672 errors on X frames.
24673 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24674 (handle_one_xevent): Initialize `f' to NULL.
24675 (x_delete_terminal, x_create_terminal): New functions.
24676 (XTset_terminal_modes, XTreset_terminal_modes)
24677 (XTread_socket, x_connection_closed, x_term_init)
24678 (x_term_init, x_delete_display): Add terminal parameter.
24679 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24680 X connections.
24681
24682 * frame.c: Include termchar.h.
24683 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24684 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24685 (Qdisplay_environment_variable): New vars.
24686 (Fframep): Deal with output_initial.
24687 (Fframe-live-p): Doc fix.
24688 (Fwindow-system): New function.
24689 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24690 (make_terminal_frame): Don't create frames on a terminal that is
24691 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24692 (store_frame_param): Check for found_for_frame before calling XFRAME.
24693 (Fmake_terminal_frame): Handle NULL tty names correctly.
24694 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24695 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24696 frames to refer to a deleted frame in their 'environment parameter.
24697 (Fframe_with_environment): New function.
24698 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24699 (get_future_frame_param): New function.
24700 (Fmake_terminal_frame): Use it.
24701 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24702
24703 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24704 * sysdep.c (reset_sys_modes): Update for renames.
24705
24706 * keyboard.c (tty_read_avail_input): New function.
24707 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24708 (syms_of_keyboard): Defsubr them.
24709 (Fset_input_meta_mode, Fset_quit_char): New functions.
24710 (Fset_input_mode): Split to above functions.
24711 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24712 parameter. Use it in call to `read_char'.
24713 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24714 Set wrong_kboard_jmpbuf correctly in recursive calls.
24715 Use current_kboard to access Vkeyboard_translate_table.
24716 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24717 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24718 Update longjmp invocations. Remember the original current_kboard,
24719 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24720 changes it. Comment out unnecessary calls to
24721 `record_single_kboard_state' and `any_kboard_state'.
24722 Update recursive calls.
24723 (wrong_kboard_jmpbuf): Remove global variable.
24724 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24725 Handle deleted interrupted_kboards correctly; that is a legal
24726 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24727 and read_char calls. Abort if interrupted_kboard died in read_char.
24728 (any_kboard_state, single_kboard_state)
24729 (push_frame_kboard): Remove function.
24730 (pop_kboard): Switch out of single_kboard mode if the kboard has
24731 been deleted. Remove unused variable. Help debugging by not
24732 changing current_kboard unnecessarily. Set current_kboard to the
24733 kboard of the selected frame when the stored kboard object has
24734 been deleted before pop_kboard.
24735 (temporarily_switch_to_single_kboard): Change first parameter to a
24736 frame pointer. Throw an error when caller wants to change kboards
24737 while in single_kboard mode. Don't push_kboard if we weren't in
24738 single kboard state. Don't pop_kboard if we popped into any
24739 kboard state.
24740 (restore_kboard_configuration): Abort if pop_kboard changed the
24741 kboard in single_kboard mode. Call pop_kboard only after setting
24742 up single_kboard mode.
24743 (Frecursive_edit): Switch to single_kboard mode only in nested
24744 command loops.
24745 (cmd_error, command_loop, command_loop_1, timer_check):
24746 Comment out unnecessary call to `any_kboard_state' and
24747 `record_single_kboard_state'.
24748 (delete_kboard): Exit single_kboard mode if we have just deleted
24749 that kboard. Use FRAME_KBOARD.
24750 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24751 `fatal_error_signal'.
24752 (record_single_kboard_state): Don't push_kboard if we weren't in
24753 single kboard state. Don't pop_kboard if we popped into any
24754 kboard state.
24755 (push_frame_kboard): Rename to push_kboard.
24756 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24757 (read_avail_input): Read input from all terminals.
24758 (mark_kboards): Also mark Vkeyboard_translate_table.
24759 (kbd_buffer_store_event_hold): Simplify condition.
24760 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24761 (Vkeyboard_translate_table): Move to struct kboard.
24762 (init_kboard): Initialize Vkeyboard_translate_table.
24763 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24764 Vkeyboard_translate_table. Update doc strings. Update docs of
24765 local-function-key-map and function-key-map.
24766
24767 * terminal.c: New file.
24768
24769 * term.c: Include errno.h.
24770 (Vring_bell_function, device_list, initial_device)
24771 (next_device_id, ring_bell, update_begin, update_end)
24772 (set_terminal_window, cursor_to, raw_cursor_to)
24773 (clear_to_end, clear_frame, clear_end_of_line)
24774 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24775 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24776 (syms_of_term): Move their initialization to terminal.c.
24777 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24778 (Ftty_display_color_cells)
24779 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24780 (clear_tty_hooks, set_tty_hooks)
24781 (init_tty, maybe_fatal): New functions.
24782 (Ftty_type): Return nil if terminal is not on a tty instead of
24783 throwing an error. Doc update.
24784 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24785 Doc update. Initialize new subrs and variables.
24786 (delete_tty): Use terminal->deleted.
24787 (tty_set_terminal_modes): Rename from set_terminal_modes.
24788 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24789 (set_scroll_region): Rename to `tty_set_scroll_region'.
24790 (turn_on_insert): Rename to `tty_turn_on_insert'.
24791 (turn_off_insert): Rename to `tty_turn_off_insert'.
24792 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24793 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24794 (toggle_highligh): Rename to `tty_toggle_highlight'.
24795 (background_highlight): Rename to `tty_background_highlight'.
24796 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24797 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24798 (tty_set_scroll_region, tty_background_highlight)
24799 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24800 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24801 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24802 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24803 Add static modifier.
24804 (tty_reset_terminal_modes, tty_set_terminal_window)
24805 (tty_set_scroll_region, tty_background_highlight)
24806 (tty_highlight_if_desired, tty_cursor_to)
24807 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24808 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24809 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24810 renames.
24811
248122007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24813
24814 * keyboard.c: Qrtl is new.
24815 (parse_tool_bar_item): Handle :rtl keyword.
24816 (syms_of_keyboard): Intern :rtl keyword.
24817
24818 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24819
24820 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24821 so no Lisp code is executed.
24822 (file_for_image, find_rtl_image): New functions.
24823 (xg_get_image_for_pixmap): Use file_for_image.
24824 (update_frame_tool_bar): If direction is RTL, use RTL image if
24825 defined. Use Gtk stock images if defined.
24826
248272007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24828
24829 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24830 for nonexistent or zero-width glyph in composition glyph.
24831
248322007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24833
24834 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24835
24836 * xdisp.c (Finvisible_p): New function.
24837 (syms_of_xdisp): defsubr it.
24838
248392007-08-24 Juanma Barranquero <lekktu@gmail.com>
24840
24841 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24842 Doc fixes.
24843
248442007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24845
24846 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24847
248482007-08-24 Martin Rudalics <rudalics@gmx.at>
24849
24850 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24851 whether decoding has modified buffer contents.
24852
248532007-08-24 Jason Rumney <jasonr@gnu.org>
24854
24855 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24856 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24857 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24858 (init_svg_functions) [HAVE_NTGUI]: New function.
24859 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24860 (svg_load_image): Use them.
24861 (svg_load_image) [HAVE_NTGUI]: Implement background.
24862
248632007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24864
24865 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24866 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24867 (LIBX): Remove @RSVG_LIBS@.
24868 (LIBES): Add $(RSVG_LIBS).
24869
24870 * image.c (svg_load_image): Blend with specified background if exists.
24871 Use IMAGE_BACKGROUND. Add Mac OS Support.
24872
24873 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24874 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24875 Remove macros.
24876 [MAC_OSX] (socket_callback): Do nothing.
24877 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24878 ReceiveNextEvent.
24879 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24880 socket_callback.
24881 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24882
248832007-08-22 Glenn Morris <rgm@gnu.org>
24884
24885 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24886
248872007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24888
24889 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24890
24891 * image.c: Add support for SVG images. Some additional comments
24892 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24893 (svg_image_p): New function to test for SVG image.
24894 (svg_load): New function to load SVG image.
24895 (svg_load_image): New function, helper for svg_load.
24896 (Qsvg): New Lisp_object.
24897 (svg_keyword_index): New enum.
24898 (svg_format): New static `image_keyword' struct.
24899 (svg_type): New static `image_type' struct.
24900 (librsvg/rsvg.h): Include it.
24901
249022007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24903
24904 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24905
249062007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24907
24908 * lread.c (Qold_style_backquotes): New var.
24909 (syms_of_lread): Init and staticpro it.
24910 (load_warn_old_style_backquotes): New fun.
24911 (Fload): Use them to warn about old style backquotes.
24912 (end_of_file_error, Fload): Remove unused vars.
24913
24914 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24915
24916 * lread.c (Vold_style_backquotes): New var.
24917 (syms_of_lread): Init and export it to Elisp.
24918 (read1): Set it when we find an old-style (back)quote.
24919
249202007-08-22 Jason Rumney <jasonr@gnu.org>
24921
24922 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24923
249242007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24925
24926 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24927
249282007-08-19 Richard Stallman <rms@gnu.org>
24929
24930 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24931
249322007-08-19 Andreas Schwab <schwab@suse.de>
24933
24934 * alloc.c (pure): Round PURESIZE up.
24935
249362007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24937
24938 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24939 active frame.
24940
249412007-08-16 Richard Stallman <rms@gnu.org>
24942
24943 * eval.c (Fcommandp): Add parens to clarify.
24944
24945 * minibuf.c (Fall_completions): Use enum for type of table.
24946
24947 * emacs.c (USAGE2): Improve text.
24948
249492007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24950
24951 * term.c (tty_default_color_capabilities): Declare static
24952 variables in file scope, to avoid HPUX compiler problem.
24953
249542007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24955
24956 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24957 to gtk_toolbar_insert.
24958
249592007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24960
24961 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24962
24963 * insdel.c (reset_var_on_error): New fun.
24964 (signal_before_change, signal_after_change):
24965 Use it to reset (after|before)-change-functions to nil in case of error.
24966 Bind inhibit-modification-hooks to t.
24967 Don't bind (after|before)-change-functions to nil while they run.
24968
249692007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24970
24971 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24972 filling pixmap with stippled background.
24973
249742007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24975
24976 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24977 Don't use invisible frame as parent window for repositioning.
24978
249792007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24980
24981 * print.c (new_backquote_output): Rename from old_backquote_output.
24982 (print): Inverse its logic (according to its name) so as to match the
24983 behavior of new_backquote_flag in lread.c.
24984
249852007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24986
24987 * gmalloc.c (posix_memalign): New function.
24988
24989 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24990 ActivateControl/DeactivateControl here.
24991 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24992 frame-notice-user-settings is non-nil.
24993 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24994 for kEventParamFMFontStyle.
24995 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24996 mac_pass_command_to_system and mac_pass_control_to_system here.
24997 (XTread_socket): Call ActivateControl/DeactivateControl here.
24998 (XTread_socket) [TARGET_API_MAC_CARBON]:
24999 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25000 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25001 for window repositioning.
25002
250032007-08-08 Glenn Morris <rgm@gnu.org>
25004
25005 * Replace `iff' in doc-strings and comments.
25006
250072007-08-07 Chong Yidong <cyd@stupidchicken.com>
25008
25009 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25010
250112007-08-07 Martin Rudalics <rudalics@gmx.at>
25012
25013 * fileio.c (Finsert_file_contents): Run format-decode and
25014 after_insert_file_functions on entire buffer when REPLACE is
25015 non-nil and inhibit modification_hooks and point_motion_hooks.
25016 For consistency, run after_insert_file_functions iff something
25017 got inserted. Move signal_after_change and update_compositions
25018 after code running after_insert_file_functions. Make sure that
25019 undo_list doesn't record intermediate steps of the decoding process.
25020
250212007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25022
25023 * emacs.c (main)
25024 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25025 Call malloc_enable_thread on interactive startup.
25026
25027 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25028 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25029 [USE_PTHREAD]: Conditionalize with it.
25030 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25031 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25032 New functions.
25033
250342007-08-06 Chong Yidong <cyd@stupidchicken.com>
25035
25036 * xdisp.c (redisplay_window): When restoring original buffer
25037 position, make sure it is still valid.
25038
25039 * image.c (png_load): Ignore png-supplied background color.
25040
250412007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25042
25043 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25044 Use kCFAbsoluteTimeIntervalSince1970.
25045
25046 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25047 New variable.
25048 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25049 event loop should be quit.
25050 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25051 Quit dialog event loop if quit_dialog_event_loop is set.
25052
25053 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25054 (Selection): New typedef. Use instead of ScrapRef.
25055 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25056 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25057 (mac_clear_selection): Rename from clear_scrap.
25058 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25059 scrap_has_target_type. All uses changed.
25060 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25061 (mac_selection_has_target_p): New functions.
25062 (mac_put_selection_value): Rename from put_scrap_string.
25063 (mac_get_selection_value): Rename from get_scrap_string.
25064 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25065 (put_scrap_private_timestamp, scrap_has_target_type)
25066 (get_scrap_private_timestamp): Remove functions.
25067 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25068 (x_own_selection, x_get_local_selection):
25069 Use mac_valid_selection_value_p.
25070 (x_own_selection): Don't use put_scrap_private_timestamp.
25071 Record OWNERSHIP-INFO into Vselection_alist instead.
25072 (x_get_local_selection): Don't check type if request is local.
25073 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25074 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25075
250762007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25077
25078 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25079 add comment explaining why.
25080
250812007-08-03 Richard Stallman <rms@gnu.org>
25082
25083 * fileio.c (Fvisited_file_modtime): Use make_time.
25084
250852007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25086
25087 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25088 build.
25089
250902007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25091
25092 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25093
250942007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25095
25096 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25097
250982007-07-30 Richard Stallman <rms@gnu.org>
25099
25100 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25101
251022007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25103
25104 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25105
251062007-07-28 Nick Roberts <nickrob@snap.net.nz>
25107
25108 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25109 remote default-directory.
25110
25111 * buffer.c (mode-line-format): Update doc string.
25112
251132007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25114
25115 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25116 scroll bar gap.
25117 (x_scroll_bar_create): Set bar->fringe_extended_p.
25118 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25119 on frame edge. Check fringe background extension. Don't clear
25120 extended fringe background area.
25121
25122 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25123 (w32_fill_area): Enclose multiple statements with do ... while (0).
25124
25125 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25126 Extend fringe background to scroll bar gap.
25127 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25128 Set bar->fringe_extended_p.
25129 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25130 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25131 background extension. Don't clear extended fringe background area.
25132
25133 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25134 New member fringe_extended_p.
25135
251362007-07-25 Glenn Morris <rgm@gnu.org>
25137
25138 * Relicense all FSF files to GPLv3 or later.
25139
25140 * COPYING: Switch to GPLv3.
25141
251422007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25143
25144 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25145
25146 * data.c (Finteractive_form): Check for the presence of an
25147 `interactive-form' symbol property more thoroughly.
25148
25149 * data.c (Finteractive_form): Use an `interactive-form' property if
25150 present, analogous to the function-documentation property.
25151
251522007-07-24 Jason Rumney <jasonr@gnu.org>
25153
25154 * w32fns.c (x_real_positions): Get real position from OS instead of
25155 calculating it.
25156
251572007-07-23 Jason Rumney <jasonr@gnu.org>
25158
25159 * filelock.c (current_lock_owner): Allow for @ sign in username.
25160
251612007-07-22 Nick Roberts <nickrob@snap.net.nz>
25162
25163 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25164 remote default-directory.
25165
25166 * buffer.c (mode-line-format): Describe above case in doc string.
25167
251682007-07-20 Eli Zaretskii <eliz@gnu.org>
25169
25170 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25171 Define if not defined.
25172
251732007-07-18 Jason Rumney <jasonr@gnu.org>
25174
25175 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25176
251772007-07-18 Richard Stallman <rms@gnu.org>
25178
25179 * data.c (Fsetq_default): Doc fix.
25180
25181 * eval.c (Fsetq): Doc fix.
25182
251832007-07-18 Juanma Barranquero <lekktu@gmail.com>
25184
25185 * coding.c (Ffind_operation_coding_system):
25186 * eval.c (For, Fand): Doc fixes.
25187 Reported by Johan Bockgård.
25188
251892007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25190
25191 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25192
25193 * xterm.h: Declare x_ewmh_activate_frame.
25194
25195 * xterm.c (x_ewmh_activate_frame): New function.
25196 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25197
251982007-07-17 Martin Rudalics <rudalics@gmx.at>
25199
25200 * window.c (Fdisplay_buffer): If largest or LRU window is the
25201 only window, split it even if it is not eligible for splitting.
25202 This restores the original behavior broken by the 2007-07-15
25203 change.
25204
252052007-07-17 Glenn Morris <rgm@gnu.org>
25206
25207 * abbrev.c (abbrev_check_chars): New function.
25208 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25209 Call abbrev_check_chars to check abbrev characters are word
25210 constituents. Doc fix.
25211
252122007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25213
25214 * process.c (Fstart_process, Fmake_network_process)
25215 (read_process_output): Fix up last changes.
25216
252172007-07-16 Eli Zaretskii <eliz@gnu.org>
25218
25219 * makefile.w32-in (clean): Don't delete *~.
25220
252212007-07-16 Andreas Schwab <schwab@suse.de>
25222
25223 * window.c (Fdisplay_buffer): Use NILP.
25224 (Fset_window_scroll_bars): Likewise.
25225
252262007-07-15 Martin Rudalics <rudalics@gmx.at>
25227
25228 * window.c (window_min_size_2): New function.
25229 (window_min_size_1, size_window, Fdisplay_buffer)
25230 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25231 windows without mode- or header-lines when window-min-height is
25232 too small.
25233 (size_window): Reset nodelete_p after testing it, following an
25234 earlier note by Kim F. Storm.
25235 (display_buffer): Do not set split_height_threshold to twice the
25236 value of window_min_height to avoid changing the value of a
25237 customizable variable. Rather explicitly check whether the
25238 height of the window that shall be splitted is at least as large
25239 as split_height_threshold.
25240 (Fwindow_full_width_p): New defun.
25241 (syms_of_window): Defsubr it.
25242
25243 * window.h: Add EXFUN for Fwindow_full_width_p.
25244
252452007-07-14 Jason Rumney <jasonr@gnu.org>
25246
25247 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25248
252492007-07-14 Richard Stallman <rms@gnu.org>
25250
25251 * eval.c (maybe_call_debugger): New function.
25252 (find_handler_clause): Use maybe_call_debugger.
25253 Call it when the handler says `debug'.
25254 Eliminate DEBUGGER_VALUE_PTR.
25255 (Fsignal): Eliminate debugger_value.
25256 (Qdebug): New variable.
25257 (syms_of_eval): Initialize it.
25258
252592007-07-14 Juanma Barranquero <lekktu@gmail.com>
25260
25261 * eval.c (Fprogn):
25262 * keyboard.c (Ftrack_mouse):
25263 * print.c (Fwith_output_to_temp_buffer):
25264 * window.c (Fsave_window_excursion): Doc fix.
25265
252662007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25267
25268 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25269
252702007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25271
25272 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25273 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25274 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25275 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25276 Remove unused encoding_carryover.
25277 * process.c: Adjust all functions accordingly.
25278
252792007-07-12 Richard Stallman <rms@gnu.org>
25280
25281 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25282
252832007-07-11 Jason Rumney <jasonr@gnu.org>
25284
25285 * makefile.w32-in (LIBS): Include OLE32.
25286
25287 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25288 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25289
252902007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25291
25292 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25293 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25294 from a Lisp_Object into a bare pointer.
25295 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25296 Adjust the code correspondingly.
25297
25298 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25299
25300 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25301 (term_show_mouse_face): Remove unused var `j'.
25302 (handle_one_term_event): Remove unused vars `i' and `j'.
25303 Don't cast return value of ttyname since it's not necessary.
25304
253052007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25306
25307 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25308 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25309
25310 * fns.c (map_char_table): Use an array of int for `indices' rather than
25311 an array of Lisp_Objects (which are only ever integers anyway).
25312 (Fmap_char_table): Update caller.
25313 * lisp.h: Update prototype.
25314 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25315 * fontset.c (Ffontset_info):
25316 * casetab.c (set_case_table): Update callers.
25317
25318 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25319
25320 * keymap.c (struct accessible_keymaps_data)
25321 (struct where_is_internal_data): New structures.
25322 (accessible_keymaps_1, where_is_internal_1): Use them to change
25323 interface to adhere to the one used by map_keymap.
25324 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25325 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25326
25327 * keymap.h (map_keymap_function_t): More informative prototype.
25328
253292007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25330
25331 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25332 (looking_at_1): Don't change search_regs and last_thing_searched
25333 if `inhibit-changing-match-data' is non-nil.
25334 (string_match_1, search_buffer, set_search_regs): Likewise.
25335 (syms_of_search): Add Lisp level definition for
25336 `inhibit-changing-match-data' and set it to nil.
25337 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25338 start and end of the match, instead of using values in search_regs.
25339
253402007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25341
25342 * minibuf.c (Fcompleting_read): New value `confirm-only'
25343 for `require-match'.
25344
253452007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25346
25347 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25348 part of the 2007-06-27 change to syms_of_fileio.
25349
253502007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25351
25352 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25353 Check WINDOWP before using XWINDOW. Consolidate return statements.
25354
253552007-06-27 Richard Stallman <rms@gnu.org>
25356
25357 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25358
253592007-06-27 Juanma Barranquero <lekktu@gmail.com>
25360
25361 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25362
253632007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25364
25365 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25366 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25367 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25368 (_free_internal, memalign): Use them.
25369 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25370 Initialize to PTHREAD_MUTEX_INITIALIZER.
25371 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25372 (morecore_nolock): Rename from morecore. All uses changed.
25373 Use only nolock versions of internal allocation functions.
25374 (_malloc_internal_nolock, _realloc_internal_nolock)
25375 (_free_internal_nolock): New functions created from
25376 _malloc_internal, _realloc_internal, and _free_internal.
25377 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25378 Copy hook value to automatic variable before its use.
25379 (memalign): Copy hook value to automatic variable before its use.
25380
253812007-06-26 Kenichi Handa <handa@m17n.org>
25382
25383 * coding.c (Ffind_operation_coding_system): Docstring improved.
25384 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25385
253862007-06-25 David Kastrup <dak@gnu.org>
25387
25388 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25389 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25390 cater for additional parameter.
25391
25392 * keymap.h: Adjust number of parameters to `current-active-maps'.
25393
25394 * doc.c (Fsubstitute_command_keys): Adjust call of
25395 `current-active-maps'.
25396
253972007-06-25 David Kastrup <dak@gnu.org>
25398
25399 * callint.c (Fcall_interactively): Make the parsing of interactive
25400 specs somewhat more readable.
25401
254022007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25403
25404 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25405 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25406 if extended background has already been filled.
25407
254082007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25409
25410 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25411 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25412
25413 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25414 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25415 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25416 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25417 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25418 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25419 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25420 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25421 Run timers during dialog popup.
25422 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25423
254242007-06-21 Jason Rumney <jasonr@gnu.org>
25425
25426 * image.c (convert_mono_to_color_image): Swap fore and background.
25427
254282007-06-20 Jason Rumney <jasonr@gnu.org>
25429
25430 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25431 (w32_free_bdf_font): Unmap memory not handle.
25432
254332007-06-20 Sam Steingold <sds@gnu.org>
25434
25435 * gmalloc.c (__morecore): Fix the declaration to comply with the
25436 definition.
25437
254382007-06-20 Juanma Barranquero <lekktu@gmail.com>
25439
25440 * w32term.c (w32_delete_display): Remove leftover declaration.
25441 (w32_define_cursor, w32_initialize): Make static.
25442
25443 * w32.c (_wsa_errlist): Fix typo in error message.
25444 (init_environment): Ignore any environment variable from the
25445 registry having a null value.
25446
254472007-06-20 Glenn Morris <rgm@gnu.org>
25448
25449 * Makefile.in (LIBGIF): Default to -lgif.
25450
254512007-06-17 Jason Rumney <jasonr@gnu.org>
25452
25453 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25454 unicode strings.
25455
254562007-06-16 Juanma Barranquero <lekktu@gmail.com>
25457
25458 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25459 Fix typo in docstring.
25460
254612007-06-16 Eli Zaretskii <eliz@gnu.org>
25462
25463 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25464 and their keybindings.
25465
254662007-06-15 Chong Yidong <cyd@stupidchicken.com>
25467
25468 * composite.c (update_compositions): Fix last fix.
25469
254702007-06-14 Jason Rumney <jasonr@gnu.org>
25471
25472 * w32.c (get_process_times_fn): New function pointer.
25473 (globals_of_w32): Intialize it if present in kernel32.dll.
25474 (w32_get_internal_run_time): New function.
25475
25476 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25477
254782007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25479
25480 * composite.c (update_compositions): Check the validness of
25481 compositions.
25482
254832007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25484
25485 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25486 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25487
25488 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25489 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25490
25491 * macgui.h (USE_MAC_TOOLBAR): New define.
25492
25493 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25494 Return immediately unless popup is activated.
25495
25496 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25497 background to scroll bar gap.
25498 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25499 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25500 scroll bars on frame edge. Check fringe background extension.
25501 Don't clear extended fringe background area.
25502 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25503 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25504 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25505 [USE_MAC_TOOLBAR]: New macros.
25506 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25507 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25508 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25509 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25510 [USE_MAC_TOOLBAR]: New functions.
25511 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25512 manually if previous repositioning has failed.
25513 (mac_handle_keyboard_event): Use precomputed event kind.
25514 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25515 as tool bar item click. Handle mouse movement over tool bar items.
25516
25517 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25518 toolbar_win_gravity.
25519 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25520 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25521 Add externs.
25522
25523 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25524 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25525
255262007-06-14 Chong Yidong <cyd@stupidchicken.com>
25527
25528 * image.c (search_image_cache): Remove unused variable.
25529
255302007-06-13 Chong Yidong <cyd@stupidchicken.com>
25531
25532 * xfns.c, xmenu.c: Link to xaw3d if available.
25533
255342007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25535
25536 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25537 frame_foreground and frame_background.
25538
25539 * image.c (lookup_image): Save frame foreground and background colors.
25540 (search_image_cache): Check if saved and current frame colors match.
25541
255422007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25543
25544 * regex.c (regex_compile): Remove the `regnum' counter.
25545 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25546
255472007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25548
25549 * term.c: Include intervals.h to declare Fget_text_property.
25550
255512007-06-10 Jason Rumney <jasonr@gnu.org>
25552
25553 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25554
255552007-06-08 Juanma Barranquero <lekktu@gmail.com>
25556
25557 * callint.c (Fcall_interactively):
25558 * editfns.c (Fdelete_and_extract_region):
25559 * fileio.c (Fread_file_name):
25560 * fns.c (Fmapconcat):
25561 * keyboard.c (cmd_error_internal):
25562 * keymap.c (Fkey_description):
25563 * lread.c (openp):
25564 * minibuf.c (read_minibuf):
25565 * search.c (wordify):
25566 * sunfns.c (sel_read):
25567 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25568 * xfns.c (x_default_scroll_bar_color_parameter):
25569 * xmenu.c (menu_help_callback):
25570 * xselect.c (Fx_get_atom_name):
25571 * xterm.c (x_term_init): Use empty_unibyte_string.
25572
255732007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25574
25575 * alloc.c (init_strings): Initialize canonical empty strings.
25576 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25577 canonical empty string when the requested size is 0.
25578
25579 * emacs.c (empty_unibyte_string): Rename from empty_string.
25580 (empty_multibyte_string): New canonical empty string.
25581 (syms_of_emacs): Don't initialize empty_string.
25582
25583 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25584 string, if appropriate.
25585 (empty_unibyte_string, empty_multibyte_string): New externs.
25586 (empty_string): Remove extern.
25587
25588 * lread.c (syms_of_lread): Use empty_unibyte_string.
25589
255902007-06-07 Jason Rumney <jasonr@gnu.org>
25591
25592 * s/ms-w32.h: Don't define HAVE_TZNAME.
25593
25594 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25595
255962007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25597
25598 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25599
25600 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25601 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25602
25603 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25604 Don't call next handler.
25605 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25606 Remove argument. Install handler to application.
25607 (set_frame_menubar): Don't change deep_p.
25608 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25609 FRAME_OUTER_TO_INNER_DIFF_Y.
25610 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25611 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25612 [HAVE_DIALOGS]: New macros.
25613 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25614 Use them.
25615 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25616
25617 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25618 init_service_handler. All callers changed. Return OSStatus value.
25619
25620 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25621 All callers changed so as not to call SetPortWindowPort.
25622 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25623 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25624 mac_draw_string_common.
25625 (mac_draw_image_string_qd): Likewise.
25626 (mac_draw_string_common): Use them. Add INLINE.
25627 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25628 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25629 GetGlobalMouse.
25630 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25631 and FRAME_OUTER_TO_INNER_DIFF_Y.
25632 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25633 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25634 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25635 repositioning window to mac_handle_window_event.
25636 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25637 saving window location to mac_handle_window_event
25638 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25639 (install_menu_target_item_handler): Remove argument in extern.
25640 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25641 Also accept command events.
25642 (do_keystroke): New function created from XTread_socket.
25643 (init_command_handler): Remove functions.
25644 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25645 and save window location by kEventWindowShowing and kEventWindowHiding
25646 handlers here. Don't call next handler for window state change and
25647 focus events.
25648 (mac_handle_application_event, mac_handle_keyboard_event)
25649 [TARGET_API_MAC_CARBON]: New functions.
25650 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25651 kEventWindowShowing and kEventWindowHiding events. Move installation
25652 of mouse, font, text input and menu target item handlers to
25653 install_application_handler.
25654 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25655 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25656 New function.
25657 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25658 Register it.
25659 (XTread_socket) [TARGET_API_MAC_CARBON]:
25660 Consolidate SendEventToEventTarget calls.
25661 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25662 Move application activation handler to mac_handle_application_event.
25663 Move keyboard handler to mac_handle_keyboard_event.
25664 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25665 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25666 init_command_handler. Call install_application_handler.
25667
25668 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25669 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25670
256712007-06-07 Glenn Morris <rgm@gnu.org>
25672
25673 * emacs.c (main): Use `emacs-copyright' in --version output.
25674
256752007-06-06 Chong Yidong <cyd@stupidchicken.com>
25676
25677 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25678
256792007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25680
25681 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25682
25683 * macgui.h: Replace WindowPtr with WindowRef.
25684
25685 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25686 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25687 Replace ControlHandle with ControlRef.
25688 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25689
25690 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25691 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25692 Replace ControlHandle with ControlRef.
25693 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25694 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25695
25696 * macterm.h (struct scroll_bar): Rename member control_handle_low
25697 and control_handle_high to control_ref_low and control_ref_high.
25698 All uses changed.
25699 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25700 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25701 respectively. All uses changed.
25702 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25703 (install_window_handler, remove_window_handler): Replace WindowPtr
25704 with WindowRef in externs.
25705
257062007-06-05 Juanma Barranquero <lekktu@gmail.com>
25707
25708 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25709
257102007-06-03 Nick Roberts <nickrob@snap.net.nz>
25711
25712 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25713
25714 * frame.c (Fmouse_position, Fmouse_pixel_position):
25715 Condition on HAVE_GPM too.
25716
25717 * term.c (term_mouse_highlight): Remove unused variables.
25718 (Fterm_open_connection): Set gpm_zerobased to 1.
25719 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25720 Use zero based co-ordinates.
25721 (handle_one_term_event): Report a drag as mouse movement too.
25722
25723 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25724
257252007-06-03 Chong Yidong <cyd@stupidchicken.com>
25726
25727 * image.c (search_image_cache): New function. Require background
25728 color match if background color is unspecified in the image spec.
25729 (uncache_image, lookup_image): Use it.
25730
257312007-06-01 Juanma Barranquero <lekktu@gmail.com>
25732
25733 * window.c (Fshrink_window): Reflow docstring.
25734
257352007-06-02 Chong Yidong <cyd@stupidchicken.com>
25736
25737 * Version 22.1 released.
25738
257392007-06-01 Richard Stallman <rms@gnu.org>
25740
25741 * xfns.c (x_encode_text): Add GCPRO.
25742
257432007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25744
25745 * xfns.c (x_set_name_internal): Save encoded name before
25746 x_encode_text in case string data is relocated.
25747
257482007-05-31 Richard Stallman <rms@gnu.org>
25749
25750 * buffer.c (syms_of_buffer): Doc fix.
25751
257522007-05-30 Nick Roberts <nickrob@snap.net.nz>
25753
25754 * sysdep.c (init_sys_modes): Add rather than replace with
25755 O_NONBLOCK.
25756
25757 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25758 term_mouse_moveto.
25759
25760 * termhooks.h (term_mouse_moveto): New extern.
25761
25762 * term.c (mouse_face_window): Rename...
25763 (Qmouse_face_window): ...to this.
25764 (term_show_mouse_face, term_clear_mouse_face)
25765 (term_mouse_highlight): Use Qmouse_face_window.
25766 (term_mouse_moveto): New function.
25767 (term_mouse_position): Make it work.
25768 (syms_of_term): Uncomment assignment to mouse_position_hook.
25769 Staticpro Qmouse_face_window.
25770
257712007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25772
25773 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25774 around current_column call.
25775
257762007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25777
25778 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25779 * xdisp.c (next_element_from_buffer):
25780 * window.c (delete_window):
25781 * term.c (term_mouse_highlight):
25782 * msdos.c (getdefdir):
25783 * macterm.c (mac_create_bitmap_from_bitmap_data)
25784 (init_font_name_table):
25785 * fns.c (Fsxhash):
25786 * data.c (Fmake_local_variable):
25787 * ccl.c (ccl_driver): Likewise.
25788
257892007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25790
25791 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25792 Call mac_wakeup_from_rne on window size change.
25793
257942007-05-25 Chong Yidong <cyd@stupidchicken.com>
25795
25796 * image.c (uncache_image): Fix typo.
25797
257982007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25799
25800 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25801
258022007-05-22 Richard Stallman <rms@gnu.org>
25803
25804 * xterm.c (x_connection_closed): Remove NO_RETURN.
25805
258062007-05-22 Martin Rudalics <rudalics@gmx.at>
25807
25808 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25809
258102007-05-21 Chong Yidong <cyd@stupidchicken.com>
25811
25812 * image.c (uncache_image): New function.
25813 (Fimage_refresh): New function.
25814
258152007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25816
25817 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25818
258192007-05-20 Nick Roberts <nickrob@snap.net.nz>
25820
25821 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25822 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25823
258242007-05-20 Nick Roberts <nickrob@snap.net.nz>
25825
25826 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25827 conditional on [HAVE_GPM_H].
25828
258292007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25830
25831 * syntax.c (skip_chars): Update syntax-table only after we checked that
25832 the new location is valid.
25833
258342007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25835
25836 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25837 mac_get_window_bounds.
25838
258392007-05-20 Nick Roberts <nickrob@snap.net.nz>
25840
25841 * Makefile.in (LIBGPM): Allow it to be set from configure.
25842 If set then link Emacs with it.
25843
25844 * config.in: Regenerate.
25845
25846 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25847 New externs.
25848
25849 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25850 Include gpm.h.
25851 (handle_one_term_event, term_gpm): New externs.
25852
25853 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25854 and allow it to be interrupted by SIGIO.
25855
25856 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25857 (wait_reading_process_output): Wait on gpm_fd too.
25858 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25859 (add_gpm_wait_descriptor_called_flag): New variable.
25860 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25861
25862 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25863 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25864 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25865 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25866 (make_lispy_event): Add case GPM_CLICK_EVENT.
25867 (read_avail_input): Handle mouse input.
25868
25869 * term.c (write_glyphs_with_face): New function.
25870 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25871 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25872 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25873 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25874 (last_mouse_x, last_mouse_y): New variables.
25875 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25876 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25877 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25878 (Fterm_close_connection): New functions.
25879 (term_init): Initialise mouse_face_window.
25880
258812007-05-19 Chong Yidong <cyd@stupidchicken.com>
25882
25883 * xdisp.c (redisplay_window): If first window line is a
25884 continuation line, recompute the new window start instead of
25885 recentering.
25886
258872007-05-18 Glenn Morris <rgm@gnu.org>
25888
25889 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25890 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25891
258922007-05-17 Glenn Morris <rgm@gnu.org>
25893
25894 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25895
258962007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25897
25898 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25899 dead key repeat and up events.
25900
259012007-05-14 Chong Yidong <cyd@stupidchicken.com>
25902
25903 * image.c (pbm_load): Check image size for monochrome pbm.
25904
259052007-05-13 Chong Yidong <cyd@stupidchicken.com>
25906
25907 * xterm.c (XTread_socket): Revert last change.
25908
259092007-05-12 Chong Yidong <cyd@stupidchicken.com>
25910
25911 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25912
25913 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25914
259152007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25916
25917 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25918 mixup (YAILOM).
25919
259202007-05-07 Andreas Schwab <schwab@suse.de>
25921
25922 * keymap.c (Flookup_key): Fix typo in last change.
25923
259242007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25925
25926 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25927 mapping for unibyte strings.
25928
259292007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25930
25931 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25932 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25933
259342007-04-29 Richard Stallman <rms@gnu.org>
25935
25936 * insdel.c (replace_range): For undo, record insertion first.
25937
259382007-04-29 Andreas Schwab <schwab@suse.de>
25939
25940 * lisp.h (VECSIZE): Use OFFSETOF.
25941
259422007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25943
25944 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25945 disabled lines.
25946
259472007-04-28 Richard Stallman <rms@gnu.org>
25948
25949 * lread.c (read_escape): In a string, \s is always space.
25950
259512007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25952
25953 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25954
25955 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25956 submenu for menu bar items.
25957
25958See ChangeLog.10 for earlier changes.
25959
25960;; Local Variables:
25961;; coding: utf-8
25962;; add-log-time-zone-rule: t
aac0c6e3
MR
25963;; End:
25964
e3eb1dae 25965 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25966
25967 This file is part of GNU Emacs.
25968
25969 GNU Emacs is free software: you can redistribute it and/or modify
25970 it under the terms of the GNU General Public License as published by
25971 the Free Software Foundation, either version 3 of the License, or
25972 (at your option) any later version.
25973
25974 GNU Emacs is distributed in the hope that it will be useful,
25975 but WITHOUT ANY WARRANTY; without even the implied warranty of
25976 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25977 GNU General Public License for more details.
25978
25979 You should have received a copy of the GNU General Public License
25980 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25981
25982;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40