* src/data.c (Flocal_variable_p): Handle variable aliases correctly.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8d1d9587
JB
12010-08-03 Johan Bockgård <bojohan@gnu.org>
2
3 * data.c (Flocal_variable_p): Handle variable aliases correctly.
4
9a747ba6
JD
52010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6
4d464ae4
JD
7 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
8 to TRUE if depth of screen is < 16.
9
ac01763e
JD
10 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
11 USE_GTK_TOOLTIP.
12 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP
13 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless
14 USE_GTK_TOOLTIP.
4d464ae4 15 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
16 USE_GTK_TOOLTIP.
17 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
18
19 * xterm.h (USE_GTK_TOOLTIP): New define.
20 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
21
9a747ba6
JD
22 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
23 to Control-D (Bug#6771).
24
7b0815ba
JB
252010-08-02 Juanma Barranquero <lekktu@gmail.com>
26
27 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
28 Wording by Drew Adams <drew.adams@oracle.com>.
29
aa1859f5
J
302010-08-01 Jan Djärv <jan.h.d@swipnet.se>
31
32 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
33 ttip_lbl.
34
35 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
36 calling gtk_widget_queue_draw.
37 (x_free_frame_resources): Call xg_free_frame_widgets.
38
39 * xfns.c (x_gtk_use_system_tooltips): New variable.
40 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
41 new gtkutil tooltip functions to show the tooltip.
42 (Fx_hide_tip): Call xg_hide_tooltip.
43 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
44
45 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
46 (xg_show_tooltip, xg_hide_tooltip): Declare.
47
48 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
49 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets): New
50 functions.
51 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
52 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
53 Remove code that is commented out.
54
76417ef4
SM
552010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
56
57 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
58
16041401
CY
592010-07-31 Chong Yidong <cyd@stupidchicken.com>
60
61 * xselect.c (x_own_selection): Use list4.
62
2c09a58f
DN
632010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
64
65 * buffer.c (Qwindow): Do not define, already defined in data.c.
66 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
67
59df9fdd 682010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 69
59df9fdd
JB
70 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
71 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
72 * config.in: Undef HAVE_DIRENT_H.
1c97e857 73 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 74 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 75
1b231651
DN
762010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
77
78 Rename s/usg5-4.h -> s/usg5-4-common.h.
79 * s/usg5-4.h: Rename file to ...
80 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
81 * s/unixware.h:
82 * s/sol2-6.h:
83 * s/irix6-5.h: Update includes accordingly.
84
bfeabdc3
JD
852010-07-29 Jan Djärv <jan.h.d@swipnet.se>
86
2ebf1083
J
87 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
88
bfeabdc3
JD
89 * xterm.h (struct x_output): Add toolbar_top_height,
90 toolbar_bottom_height, toolbar_left_width, toolbar_right_width. Remove
91 toolbar_height.
92 if USE_GTK: Add hbox_widget and toolbar_in_hbox.
93 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
94 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
95 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
96
97 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
98
99 * xfns.c (x_set_tool_bar_position): New function.
100 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
101 (x_frame_parm_handlers): Add x_set_tool_bar_position.
102 (syms_of_xfns): if USE_GTK, provide move-toolbar.
103
104 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
105 and FRAME_TOOLBAR_LEFT_WIDTH.
106
107 * gtkutil.h (xg_change_toolbar_position): Declare.
108
109 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
110 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
111 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
112 (xg_create_frame_widgets): Create a hobox for placing widgets
113 vertically. Use gtk_box_pack_start.
114 (xg_height_or_width_changed): Renamed from xg_height_changed.
115 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
116 (xg_update_frame_menubar, free_frame_menubar): Change to
117 xg_height_or_width_changed.
118 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
119 size correctly. Remove hardcoded 4, instead use handlebox size -
120 toolbar size.
121 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
122 size correctly. Use handlebox size + toolbar size as additional
123 size.
124 (xg_pack_tool_bar): POS is a new parameter.
125 Set orientation of tool bar based on pos.
126 Only make handlebox_widget if NULL.
127 Check if tool bar goes to vbox or hbox depending on pos.
128 (xg_update_tool_bar_sizes): New function.
129 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
130 height, call xg_update_tool_bar_sizes instead.
131 (free_frame_tool_bar): Remove from hbox or vbox depending on
132 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
133 (xg_change_toolbar_position): New function.
134
135 * frame.h (struct frame): Add tool_bar_position.
136 (Qbottom): Declare.
137
138 * frame.c (Qtool_bar_position): New variable.
139 (make_frame): Set tool_bar_position to Qtop.
140 (frame_parms): Add tool-bar-position.
141 (x_report_frame_params): Store tool_bar_position.
142 (x_set_fringe_width): Reset wm size hint after fringe changes.
143
26469a38
DN
1442010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
145
146 Make lisp_time_argument declaration work on all systems.
147 * lisp.h (lisp_time_argument): Move declaration ...
148 * systime.h (lisp_time_argument): ... here
149 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
150
8848b728
JD
1512010-07-29 Jan Djärv <jan.h.d@swipnet.se>
152
153 * vm-limit.c (POINTER): Add typedef for it.
154 (start_of_data): Change return type from POINTER to char *.
155
156 * frame.h (Qtty_color_mode): Move declaration out of ifdef
157 HAVE_WINDOW_SYSTEM.
158
76fd1ee9
DN
1592010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
160
0441987e
DN
161 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
162 Remove reference to __osf__, unused.
163
56a000c7
DN
164 * mem-limits.h: Remove duplicated includes.
165 (NULL): Remove definition, unused.
166 (POINTER): Remove definition.
167 (start_of_data): Use char* in prototype, as the function
168 definition does.
169
e6cba650
DN
170 Remove extern declarations from .c files, and them to .h files.
171 * keyboard.h (Qhelp_echo, waiting_for_input)
172 (input_available_clear_time, ignore_mouse_drag_p)
173 (Vdouble_click_time, real_this_command, Vthis_original_command):
174 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
175 (Voverriding_local_map_menu_flag):
176 * lisp.h (Qinteractive_form, use_file_dialog)
177 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
178 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
179 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
180 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
181 (Qfunction, debug_on_next_call, Qfield)
182 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
183 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
184 (Qfile_directory_p, Qinsert_file_contents)
185 (Qcompletion_ignore_case, Qcompletion_ignore_case)
186 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
187 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
188 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
189 (Qminibuffer_prompt)
190 (Vtemporary_file_directory,char_ins_del_vector, Qface):
191 * xterm.h (gray_bitmap_width, gray_bitmap_height)
192 (gray_bitmap_bits, xic_create_fontsetname):
193 * coding.h (Vtranslation_table_for_input): Add extern declarations.
194
195 * xsmfns.c (Vuser_login_name):
196 * xrdb.c (Vdouble_click_time):
197 * xfaces.c (xic_create_fontsetname):
198 * w32select.c (waiting_for_input):
199 * print.c (minibuffer_auto_raise):
200 * msdos.c (Qhelp_echo):
201 * macros.c (real_this_command):
202 * keymap.c (Voverriding_local_map):
203 * xterm.c (poll_for_input_1, gray_bitmap_width)
204 (gray_bitmap_height, gray_bitmap_bits;
205 * xmenu.c ( Voverriding_local_map)
206 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
207 (use_file_dialog, Xt_app_con):
208 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
209 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
210 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
211 (Qtool_bar_lines, ignore_mouse_drag_p):
212 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
213 (Qrear_nonsticky, nconc2):
214 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
215 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
216 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
217 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
218 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
219 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
220 (gc_in_progress):
221 * doc.c (Voverriding_local_map, Qremap):
222 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
223 (Vcompletion_regexp_list):
224 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
225 (Qcompletion_ignore_case):
226 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
227 (Vhistory_length, Vthis_original_command, real_this_command)
228 (Qface, Qminibuffer_prompt, history_delete_duplicates):
229 * image.c (Qrisky_local_variable):
230 * fontset.c (QCname):
231 * fns.c (minibuffer_auto_raise, QCname):
232 * dispnew.c (char_ins_del_cost):
233 * composite.c (font_fill_lglyph_metrics):
234 * cmds.c (Qface, Vtranslation_table_for_input):
235 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
236 * ccl.c (charset_unicode):
237 * callproc.c (Vtemporary_file_directory):
238 * buffer.c (emacs_strerror): Remove extern declarations.
239
240 * data.c (Qwindow): Make non-static, used from other files too.
241 * frame.c (validate_x_resource_name): Remove shadow definition for i.
242
76fd1ee9
DN
243 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
244 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
245 * s/usg5-4.h (COFF):
246 * s/template.h:
247 * s/msdos.h (COFF, NO_REMAP):
248 * s/ms-w32.h (NO_REMAP):
249 * s/hpux10-20.h (NO_REMAP):
250 * m/sparc.h (SEGMENT_MASK):
251 * m/m68k.h (NO_REMAP):
252 * m/intel386.h (SEGMENT_MASK):
253 * m/arm.h (NO_REMAP):
254 * m/alpha.h (COFF):
255 * m/template.h: Remove references to unused defines.
256
8a52f00a
JD
2572010-07-28 Jan Djärv <jan.h.d@swipnet.se>
258
259 * xsettings.c (Ftool_bar_get_system_style): Also check for
260 Qtext_image_horiz.
261
262 * xdisp.c (Qtext_image_horiz): Define.
263 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 264 to documentation of tool-bar-style.
8a52f00a
JD
265
266 * lisp.h (Qtext_image_horiz): Declare.
267
268 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
269 style text_image_horiz.
270
89dc303e
DN
2712010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
272
60799703
DN
273 * emacs.c (Fkill_emacs): Remove return statement.
274
37254dc1
DN
275 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
276 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
277 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
278 local extern declarations.
279
71c7345a
DN
280 * xmenu.c: Do not included lwlib.h, not needed.
281
6ba577cb
DN
282 * m/iris4d.h (XUINT, XSET): Remove, not needed.
283
fdb183d6
DN
284 * process.c: Move definitions earlier to minimize #ifdefs.
285
286 * xterm.h (x_get_customization_string, x_load_resources)
287 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
288 (x_check_errors, x_property_data_to_lisp, defined_color)
289 (xic_set_xfontset, x_defined_color): Use const.
290
291 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
292 (x_text_icon, x_check_errors, x_connection_closed): Use const.
293
294 * xselect.c (selection_data_to_lisp_data)
295 (x_property_data_to_lisp):
296 * xrdb.c (x_get_string_resource, file_p)
297 (x_get_customization_string, magic_file_p, search_magic_path)
298 (get_system_app, get_user_app, x_load_resources, x_get_resource)
299 (x_get_string_resource): Use const.
300
301 * xfns.c: Include xlwmenu.h when USE_LUCID.
302 (x_defined_color, xic_set_xfontset): Use const.
303 (Fx_hide_tip): Remove local extern declaration.
304
305 * xfaces.c (Qmouse_face): Remove declaration.
306 (face_color_gray_p, tty_defined_color, defined_color)
307 (face_color_gray_p, face_color_supported_p). Add const.
308
309 * xdisp.c (do_mouse_tracking): Remove declaration.
310 (add_to_log): Use const.
311
312 * minibuf.c (Qmouse_face): Remove declaration.
313
314 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
315
316 * keyboard.h (do_mouse_tracking): Add declaration.
317
318 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
319 (QCdata, QCtype, Qcenter): Remove declarations.
320
321 * frame.c (x_get_resource_string, x_get_string_resource)
322 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
323 (x_default_parameter): Use const.
324
325 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
326 (QCheight, QCsize, QCname): Remove declarations.
327
328 * emacs.c (main): Remove local extern declaration.
329
330 * editfns.c (region_limit, syms_of_editfns): Remove local extern
331 declarations.
332
333 * dispnew.c: Remove duplicate #include <unistd.h>.
334 (update_window, update_frame_1, init_display): Remove local extern
335 declarations.
336
337 * dispextern.h (add_to_log): Remove declaration.
338 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
339 (x_frame_get_and_record_arg, x_default_parameter): Add const.
340
341 * dired.c (scmp): Add const.
342 (directory_files_internal): Remove local extern declaration.
343
344 * data.c (Finteractive_form): Use const.
345
346 * composite.c (syms_of_composite): Remove local extern declarations.
347
348 * charset.c (add_to_log): Remove declaration.
349
350 * character.c (strwidth, parse_str_to_multibyte): Add const.
351
352 * character.h (strwidth, parse_str_to_multibyte): Likewise.
353
354 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
355
89dc303e 356 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
357 (Lisp_Subr): Make doc and intspec constant.
358 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
359 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
360 (QCheight, QCsize, QCname, QCwidth, QCforeground)
361 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
362 (display_arg): Add declarations.
89dc303e 363
0ed082fe 3642010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
365
366 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
367
0ed082fe
JB
368 * window.c (Fwindow_height): Doc fix (bug#6518).
369
3702010-07-27 Juanma Barranquero <lekktu@gmail.com>
371
372 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
373
ccaf0336
DN
3742010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
375
977105dc
DN
376 * keyboard.c (Ftop_level, Fexit_recursive_edit)
377 (Fabort_recursive_edit): Remove return statements in NO_RETURN
378 functions.
379
f5ada890
DN
380 * frame.h (Qtty_color_mode): Add declaration.
381
ccaf0336
DN
382 * lisp.h (Ftop_level, Fexit_recursive_edit)
383 (Fabort_recursive_edit): Mark as NO_RETURN.
384
dfe3c90f
KH
3852010-07-26 Kenichi Handa <handa@m17n.org>
386
387 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 388 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 389
7d383292
JB
3902010-07-26 Juanma Barranquero <lekktu@gmail.com>
391
392 * lread.c (unreadpure, mapatoms_1): Make static.
393
da31e629
JB
3942010-07-25 Juanma Barranquero <lekktu@gmail.com>
395
396 * terminfo.c (tparam): Fix prototype of tparm.
397
7bfa6d77
AS
3982010-07-25 Andreas Schwab <schwab@linux-m68k.org>
399
dcc19aac
AS
400 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
401 find start of text segment.
402 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
403 is defined.
404
7bfa6d77
AS
405 * callproc.c (set_initial_environment): Avoid unbalanced braces.
406
63f9a672
KB
4072010-07-25 Ken Brown <kbrown@cornell.edu>
408
409 * vm-limit.c (check_memory_limits): Fix previous change;
410 accidentally reverted an earlier change.
411
24933075
KB
4122010-07-25 Ken Brown <kbrown@cornell.edu>
413
414 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
415 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
416
361358ea
JB
4172010-07-25 Juanma Barranquero <lekktu@gmail.com>
418
419 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
420 * dired.c (opendir, readdir): Fix prototypes.
421 * editfns.c (w32_get_internal_run_time): Fix prototypes.
422 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
423 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
424 (telldir): Remove declaration.
425 * ralloc.c (real_morecore, __morecore): Fix prototypes.
426 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
427 * syssignal.h (strsignal): Fix prototype.
428 * term.c (tparam): Fix prototype.
429 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
430 (term_get_fkeys): Set inside "#ifndef DOS_NT".
431 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
432 and __morecore.
433 * w32gui.h (XParseGeometry): Fix prototype.
434 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
435 * w32term.c (my_set_focus): Declare inside #if 0.
436 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
437 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
438 (drain_message_queue, get_next_msg, post_msg, parse_button)
439 (ClipboardSequence_Proc): Fix prototypes.
440 (wait_for_sync): Remove declaration.
441
630b9592
JB
4422010-07-24 Juanma Barranquero <lekktu@gmail.com>
443
444 * w32fns.c (w32_to_x_color): Remove, unused.
445
6a0d6611
AS
4462010-07-24 Andreas Schwab <schwab@linux-m68k.org>
447
448 * lisp.h: Remove leftover P_.
449
4e8608ff
DN
4502010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
451
452 * ecrt0.c, unexalpha.c: Remove files, unused.
453
c8197983
AS
4542010-07-24 Andreas Schwab <schwab@linux-m68k.org>
455
456 * cmds.c (internal_self_insert): Make static.
457 * lisp.h (internal_self_insert): Remove declaration.
458
97b372d7
JB
4592010-07-23 Juanma Barranquero <lekktu@gmail.com>
460
33ac0414
JB
461 * alloc.c (free_float):
462 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
463 * frame.c (delete_frame_handler):
464 * ralloc.c (reorder_bloc):
465 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
466 Remove unused static functions.
467
94da8397
JB
468 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
469 it is called only from NS code.
470
2e6c8532
JB
471 * w32term.c (my_set_focus): #ifdef away; it is called only from
472 "#ifdef 0" code.
473
97b372d7
JB
474 * w32fns.c (x_edge_detection):
475 * xfaces.c (may_use_scalable_font_p):
476 Remove obsolete static declarations.
477
7c3320d8
JB
4782010-07-20 Juanma Barranquero <lekktu@gmail.com>
479
480 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
481 (emacs_blocked_realloc, uninterrupt_malloc):
482 * fringe.c (w32_reset_fringes):
483 * image.c (convert_mono_to_color_image, lookup_rgb_color)
484 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
485 * sound.c (be2hs, do_play_sound):
486 * vm-limit.c (get_lim_data, ret_lim_data):
487 * w32term.c (x_free_frame_resources):
488 * xfaces.c (x_create_gc, x_free_gc):
489 Convert definitions to standard C.
490
d5273788
SM
4912010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
492
493 * eval.c (Feval, Ffuncall): Use the new names.
494
495 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
496 (DEFUN): Add braces around the union initialisation and use ## to
497 specify the right union alternative and avoid a cast.
498
8d16a259
JB
4992010-07-18 Juanma Barranquero <lekktu@gmail.com>
500
501 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
502
3b8eff32
CY
5032010-07-17 Chong Yidong <cyd@stupidchicken.com>
504
505 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
506
499322ce
J
5072010-07-17 Jan Djärv <jan.h.d@swipnet.se>
508
509 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
510 is related to the menu bar (Bug#6499).
a628ad9d 511 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 512
f6003da5 5132010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
514
515 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
516
517 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
518
519 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
520 i.e. don't put back ButtonRelease (Bug#6608).
521
522 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
523 instead of Window. Call xg_event_is_for_menubar when
524 USE_GTK (Bug#6499).
525
526 * gtkutil.h (xg_event_is_for_menubar): Declare.
527
528 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
529
f6003da5 5302010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
531
532 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
533 when it's the same as the old foreground. (Bug#6609)
534
23243f29
J
5352010-07-16 Jan Djärv <jan.h.d@swipnet.se>
536
537 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
538 widget is non-null (Bug#6645).
539
2b23d2a6
AS
5402010-07-15 Andreas Schwab <schwab@linux-m68k.org>
541
01b564ff
AS
542 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
543 Convert old-style definition.
544
2b23d2a6
AS
545 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
546 timestamp argument.
547
c4affd2c
EZ
5482010-07-15 Eli Zaretskii <eliz@gnu.org>
549
550 * fringe.c (update_window_fringes): Restore mistakenly reverted
551 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
552
cf28cebc
J
5532010-07-14 Jan Djärv <jan.h.d@swipnet.se>
554
555 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
556 (SET_SAVED_KEY_EVENT): Remove (not used).
557 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
558 remove size parameter.
559 (handle_one_xevent): Check popup_activated () for menu for Xt also.
560 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
561 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
562 ButtonRelease.
6b2c4bd9
J
563 (x_set_window_size_1): scroll_bar_actual_width is always
564 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
565
566 * xdisp.c (pending_menu_activation): Remove extern declaration.
567 (prepare_menu_bars): Remove setting of pending_menu_activation.
568
569 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
570 (x_activate_menubar): Set popup_activated_flag for Xt also.
571 Remove setting of pending_menu_activation.
cf28cebc
J
572 (set_frame_menubar): Remove check of pending_menu_activation.
573 Declare menubar_size before code. Correct spelling in comment.
574
f6c1c771
KH
5752010-07-14 Kenichi Handa <handa@m17n.org>
576
577 * font.c (font_open_entity): Cancel previous change.
578 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
579
20477505
EZ
5802010-07-13 Eli Zaretskii <eliz@gnu.org>
581
77defa9a
EZ
582 Remove subprocesses #ifdefs.
583 * process.c <inhibit_sentinels>: Move to the common part.
584 (Fwaiting_for_user_input_p): Move to the common part; return nil
585 if async subprocesses aren't supported.
586 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
587 MS-DOS. Remove "#ifdef subprocesses".
588 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
589 (gettimeofday): Remove "#ifdef subprocesses".
590 (wait_without_blocking): Remove function.
591 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
592 Remove "#ifdef subprocesses".
593 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
594 compiled on MS-DOS.
595 * callproc.c (Fcall_process) [!MSDOS]: Don't call
596 wait_for_termination on MS-DOS.
597 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
598 initialization of inhibit_sentinels.
599 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
600 subprocesses" conditional.
601 * callproc.c (Fcall_process) [!subprocesses]: Don't call
602 wait_for_termination, since `buffer' cannot be an integer when
603 async subprocesses are not supported
604 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
605 for ifdefing away the call to Fprocess_status.
606
20477505
EZ
607 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
608 away the entire body of the function.
609
b3ffc17c
DN
6102010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
611
01faa934
DN
612 Remove subprocesses #ifdefs from term.c.
613 * process.c (add_keyboard_wait_descriptor)
614 (delete_keyboard_wait_descriptor): Move to common section, do
615 nothing when subprocesses is not defined.
a628ad9d
JB
616 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
617 Remove subprocesses #ifdefs.
01faa934 618
b3ffc17c
DN
619 Convert maybe_fatal to standard C.
620 * lisp.h (verror): Declare.
621 * eval.c (verror): New function containing the code from ...
622 (error): ... this. Call verror.
623 * term.c (vfatal): New function containing the code from ...
624 (fatal): ... this. Call vfatal.
625 (maybe_fatal): Convert to standard C, use variable number of
626 arguments. Declare as non-return.
627 (init_tty): Fix maybe_fatal call.
628
0521f580
DN
6292010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
630
631 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
632 (_scroll_bar_note_movement): Convert definitions to standard C.
633 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
634 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
635
ebd15611
DN
6362010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
637
638 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
639 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
640 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
641 (xaw_jump_callback, xaw_scroll_callback)
642 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
643 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
644 definitions to standard C.
645 * xmenu.c (menubar_id_to_frame, popup_get_selection)
646 (popup_activate_callback, popup_deactivate_callback)
647 (menu_highlight_callback, menubar_selection_callback)
648 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
649 (free_frame_menubar, popup_selection_callback, as)
650 (create_and_show_popup_menu, dialog_selection_callback)
651 (create_and_show_dialog):
652 * xfns.c (hack_wm_protocols, x_window):
653 * xfaces.c (x_update_menu_appearance):
654 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
655 (char_to_pixel_size, round_size_to_char, get_wm_shell)
656 (set_frame_size, update_wm_hints, setup_frame_gcs)
657 (update_various_frame_slots, update_from_various_frame_slots)
658 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
659 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
660 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
661
de06a2dd
AS
6622010-07-12 Andreas Schwab <schwab@linux-m68k.org>
663
a628ad9d 664 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 665
fc549af9
EZ
6662010-07-12 Eli Zaretskii <eliz@gnu.org>
667
668 * process.c (setup_process_coding_systems): Move to the part
669 shared by non-subprocesses systems, and make its body empty when
670 subprocesses is not defined.
671 (close_process_descs): Move to the part shared by non-subprocesses
672 systems.
1408902e
EZ
673 (wait_reading_process_output) [!subprocesses]: Convert arg list to
674 ANSI C.
fc549af9 675
d5a3eaaf
AS
6762010-07-12 Andreas Schwab <schwab@linux-m68k.org>
677
678 * editfns.c (transpose_markers): Convert old-style definition.
679 * emacs.c (abort, shut_down_emacs, fixup_locale)
680 (synchronize_system_time_locale)
681 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
682 * floatfns.c (extract_float, matherr, init_floatfns)
683 (syms_of_floatfns): Likewise.
684 * fns.c (make_hash_table): Likewise.
685 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
686 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
687 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
688 (ftfont_variation_glyphs): Likewise.
689 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
690 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
691 * lread.c (read_filtered_event): Likewise.
692 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
693 * process.c (wait_reading_process_output): Likewise.
694 * scroll.c (do_line_insertion_deletion_costs): Likewise.
695 * search.c (search_buffer, boyer_moore): Likewise.
696 * syntax.c (scan_sexps_forward): Likewise.
697 * xdisp.c (try_scrolling): Likewise.
698 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
699 (face_at_string_position): Likewise.
700 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
701 * xselect.c (x_get_window_property, receive_incremental_selection)
702 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
703 Likewise.
704 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
705
6f704c76
DN
7062010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
707
ded80a25
DN
708 * callproc.c (child_setup): Remove subprocesses conditional.
709 Remove code dealing with SET_EMACS_PRIORITY, unused.
710
49d937f4 711 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
712 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
713
714 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
715 (__do_global_dtors, __main): Use void in definition.
716 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
717 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
718 the only users from ...
719 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
720 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
721 (HAVE_VOLATILE): Remove, unused.
722
6f704c76
DN
723 Convert more function definitions to standard C.
724 * xdisp.c (window_box_edges, handle_single_display_spec)
725 (display_string): Convert definition to standard C.
726 * scroll.c (do_direct_scrolling, scrolling_1):
727 * dispnew.c (allocate_matrices_for_frame_redisplay)
728 (mirrored_line_dance):
729 * coding.c (code_convert_string):
730 * charset.c (map_charset_chars):
731 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
732 (Fregister_ccl_program, Fregister_code_conversion_map):
733 * keyboard.c (kbd_buffer_nr_stored): Likewise.
734 (head_table): Make static and const.
735
e6cfa7c3
AS
7362010-07-12 Andreas Schwab <schwab@linux-m68k.org>
737
738 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
739 (PROFILING_LDFLAGS): Set from substitution.
740 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
741 CFLAGS last.
742
892dd565
KH
7432010-07-12 Kenichi Handa <handa@m17n.org>
744
6f2cdcd1
KH
745 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
746 (shortlisp): Likewise.
747
892dd565
KH
748 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
749
750 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
751 of FONT_ENTITY_INDEX.
752 (Ffont_get): If KEY is :otf and the font-object doesn't have the
753 property, get the property value dynamically.
754 (Ffont_put): Accept font-entity and font-object too.
755 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
756 return value changed.
757 (syms_of_font): Adjusted for the above change.
758
ae96d47a
AS
7592010-07-11 Andreas Schwab <schwab@linux-m68k.org>
760
c8fc18ee
AS
761 * blockinput.h: Remove obsolete comment.
762
89887d67
AS
763 * lisp.h: Include <stddef.h>.
764 (OFFSETOF): Don't define.
765 (VECSIZE): Use offsetof instead of OFFSETOF.
766 (PSEUDOVECSIZE): Likewise.
767 * process.c (conv_sockaddr_to_lisp): Likewise.
768 * alloc.c: Don't include <stddef.h>.
769 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
770
ae96d47a
AS
771 * process.c: Remove obsolete comment.
772
635c0aa1
CY
7732010-07-11 Chong Yidong <cyd@stupidchicken.com>
774
775 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
776
a64df650
AS
7772010-07-11 Andreas Schwab <schwab@linux-m68k.org>
778
8966b757
AS
779 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
780 index, rindex.
781 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
782 * editfns.c (Fuser_full_name, Fformat): Likewise.
783 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
784 * fileio.c (Ffile_symlink_p): Likewise.
785 * filelock.c (current_lock_owner): Likewise.
786 * font.c (font_parse_name, font_parse_family_registry): Likewise.
787 * fontset.c (fontset_pattern_regexp): Likewise.
788 * lread.c (read1): Likewise.
789 * sysdep.c (init_system_name): Likewise.
790 * xfns.c (select_visual): Likewise.
791 * s/hpux10-20.h (index, rindex): Don't define.
792 * s/ms-w32.h (index): Likewise.
793 * s/usg5-4.h: Likewise.
794
cf237e27
AS
795 * callproc.c (relocate_fd): Use F_DUPFD if defined.
796
a8fe7202
AS
797 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
798 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
799 (egetenv): Likewise.
800 * doprnt.c (doprnt): Likewise.
801 * editfns.c (set_time_zone_rule, format2): Likewise.
802 * emacs.c (decode_env_path): Likewise.
803 * eval.c (signal_error, error): Likewise.
804 * insdel.c (replace_range_2): Likewise.
805 * keyboard.c (cmd_error_internal): Likewise.
806 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
807 * print.c (write_string, write_string_1, print_error_message):
808 Likewise.
809 * vm-limit.c (warn_function, memory_warnings): Likewise.
810 * xdisp.c (message1, message1_nolog, message_with_string)
811 (vmessage, message, message_nolog): Likewise.
812 * emacs.c: Remove duplicate declaration.
813 * keyboard.h: Likewise.
814 * lisp.h: Update prototypes.
815
bb8e180f
AS
816 * eval.c: Fix indentation problem.
817
83380e65
AS
818 * keyboard.c: Include "process.h"
819
a64df650
AS
820 * eval.c: Remove obsolete noinline declaration.
821 * fns.c: Likewise.
822
6a8033e1
KR
8232010-07-11 Ken Raeburn <raeburn@raeburn.org>
824
825 * doprnt.c (doprnt): Take a va_list argument instead of count and
826 pointer.
827 * eval.c (error): Change to a standard-C variadic function.
828 * xdisp.c (vmessage): Renamed from message, made static, and
829 changed to take a va_list argument.
830 (message): New variadic wrapper.
831 (message_nolog): Now a variadic function, calling vmessage.
832 * lisp.h: Include stdarg.h for va_list.
833 (doprnt, error, message, message_nolog): Decls updated.
834
462aa963
EZ
8352010-07-11 Eli Zaretskii <eliz@gnu.org>
836
837 * process.c (syms_of_process) <delete-exited-processes>: Define
838 even if !subprocesses.
839 (delete_exited_processes): Ditto.
840
841 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
842 (delete_exited_processes): Don't define.
843
48104462
CY
8442010-07-10 Chong Yidong <cyd@stupidchicken.com>
845
846 * frame.c (make_frame): Initialize menu_bar_lines and
847 tool_bar_lines members.
848 (make_initial_frame, make_terminal_frame): Initialize
849 menu_bar_lines using value of menu-bar-mode.
850
851 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
852
f388c88a
EZ
8532010-07-10 Eli Zaretskii <eliz@gnu.org>
854
855 * process.c: Reshuffle #include's. Condition some of the global
856 and static variables on `subprocesses'.
857 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
858 Leave only one implementation.
859 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
860 (kill_buffer_processes, Flist_system_processes)
861 (Fprocess_attributes, init_process, syms_of_process): Unify the
862 implementations for with subprocesses and without them.
863
723f5a07
J
8642010-07-09 Jan Djärv <jan.h.d@swipnet.se>
865
866 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
867 correct size for Motif.
868 (free_frame_menubar): Call x_set_window_size to update frame size.
869
870 * xfns.c (x_window): Set borderWidth to 0 for pane and
871 EmacsFrame. Frame size calculation is wrong otherwise.
872
2536a4b7
MA
8732010-07-09 Michael Albinus <michael.albinus@gmx.de>
874
875 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
876 allows to suppress errors when polling in Emacs' main loop.
877 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
878 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
879 (Fdbus_method_error_internal, Fdbus_send_signal)
880 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
881 (Fdbus_register_method): Use it. (Bug#6579)
882
5842a27b
DN
8832010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
884
885 * alloc.c: Convert DEFUNs to standard C.
886 * buffer.c:
887 * bytecode.c:
888 * callint.c:
889 * callproc.c:
890 * casefiddle.c:
891 * casetab.c:
892 * category.c:
893 * character.c:
894 * charset.c:
895 * chartab.c:
896 * cmds.c:
897 * coding.c:
898 * composite.c:
899 * data.c:
900 * dbusbind.c:
901 * dired.c:
902 * dispnew.c:
903 * doc.c:
904 * dosfns.c:
905 * editfns.c:
906 * emacs.c:
907 * eval.c:
908 * fileio.c:
909 * filelock.c:
910 * floatfns.c:
911 * fns.c:
912 * font.c:
913 * fontset.c:
914 * frame.c:
915 * fringe.c:
916 * image.c:
917 * indent.c:
918 * insdel.c:
919 * keyboard.c:
920 * keymap.c:
921 * lread.c:
922 * macros.c:
923 * marker.c:
924 * menu.c:
925 * minibuf.c:
926 * msdos.c:
927 * nsfns.m:
928 * nsmenu.m:
929 * nsselect.m:
930 * print.c:
931 * process.c:
932 * search.c:
933 * sound.c:
934 * syntax.c:
935 * term.c:
936 * terminal.c:
937 * textprop.c:
938 * undo.c:
939 * w16select.c:
940 * w32console.c:
941 * w32fns.c:
942 * w32font.c:
943 * w32menu.c:
944 * w32proc.c:
945 * w32select.c:
946 * window.c:
947 * xdisp.c:
948 * xfaces.c:
949 * xfns.c:
950 * xmenu.c:
951 * xselect.c:
952 * xsettings.c:
953 * xsmfns.c: Likewise.
954
d568829b
EZ
9552010-07-08 Eli Zaretskii <eliz@gnu.org>
956
957 * process.c (kbd_is_on_hold, hold_keyboard_input)
958 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
959
52214050
J
9602010-07-08 Jan Djärv <jan.h.d@swipnet.se>
961
962 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
963 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
964 unless USE_LUCID.
965
313d9eb2
DN
9662010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
967
a628ad9d
JB
968 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
969 declaration.
d8825aa3 970
295d0d8f
DN
971 Clean up include guards.
972 * tparam.c: Remove include guards for config.h, string.h and code
973 that assumes #ifndef emacs.
974 * termcap.c:
975 * unexalpha.c:
976 * sysdep.c:
977 * filemode.c:
978 * filelock.c:
979 * bidi.c: Likewise.
980
49d9e6b0
DN
981 Remove prefix-args.c
982 * prefix-args.c: Remove file.
983 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
984 * Makefile.in (temacs${EXEEXT}): Remove references to
985 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
986 (mostlyclean): Remove reference to prefix-args.
987 (prefix-args): Remove.
988
313d9eb2
DN
989 Simplify cstart_of_data, start_of_code and related code.
990 * mem-limits.h: Remove !emacs and _LIBC conditional code.
991 (start_of_data): Merge into start_of_data function.
992 * sysdep.c (start_of_text): Remove. Move simplified versions of
993 it in the only users: unexaix.c and unexec.c.
994 (read_input_waiting): Remove local declaration of quit_char.
995 (start, etext): Remove declarations.
996 (start_of_data): Merge with the version in mem-limits.h and move
997 to vm-limits.c.
998 * vm-limit.c (start_of_data): Merged and simplified version of the
999 code formerly in mem-limits.h and sysdep.c.
1000 * unexec.c (start): New declaration, moved from sysdep.c.
1001 (start_of_text): Simplified version of the code formerly in sysdep.c.
1002 * unexaix.c (start_of_text): Simplified version of the code
1003 formerly in sysdep.c.
1004 * m/alpha.h (HAVE_TEXT_START): Remove.
1005 (TEXT_START): Move ...
1006 * unexalpha.c (TEXT_START): ... here.
1007 * s/hpux10-20.h (TEXT_START): Remove.
1008 * s/darwin.h (TEXT_START):
1009 * m/mips.h (TEXT_START):
1010 * m/macppc.h (HAVE_TEXT_START):
1011 * m/m68k.h (TEXT_START):
1012 * m/iris4d.h (TEXT_START):
1013 * m/intel386.h (TEXT_START):
1014 * m/ibmrs6000.h (TEXT_START):
1015 * m/ia64.h (HAVE_TEXT_START):
1016 * s/msdos.h (TEXT_START): Likewise.
1017
72af86bd
AS
10182010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1019
1020 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1021 (overrun_check_free, xstrdup, allocate_string)
1022 (allocate_string_data, compact_small_strings, Fmake_string)
1023 (make_unibyte_string, make_multibyte_string)
1024 (make_string_from_bytes, make_specified_string, make_float)
1025 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1026 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1027 memcpy, memmove, memset, memcmp.
1028 * atimer.c (start_atimer, set_alarm): Likewise.
1029 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1030 (mmap_realloc, init_buffer_once): Likewise.
1031 * callint.c (Fcall_interactively): Likewise.
1032 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1033 (getenv_internal_1): Likewise.
1034 * casefiddle.c (casify_object): Likewise.
1035 * ccl.c (ccl_driver): Likewise.
1036 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1037 * charset.c (load_charset_map_from_file)
1038 (load_charset_map_from_file, load_charset_map_from_vector)
1039 (Fdefine_charset_internal): Likewise.
1040 * cm.c (Wcm_clear): Likewise.
1041 * coding.c (decode_eol, decode_coding_object)
1042 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1043 * data.c (Faset): Likewise.
1044 * dired.c (directory_files_internal, file_name_completion_stat):
1045 Likewise.
1046 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1047 (clear_glyph_row, copy_row_except_pointers)
1048 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1049 (save_current_matrix, restore_current_matrix)
1050 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1051 (mirror_line_dance, scrolling_window): Likewise.
1052 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1053 Likewise.
1054 * doprnt.c (doprnt): Likewise.
1055 * editfns.c (Fuser_full_name, make_buffer_string_both)
1056 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1057 * emacs.c (sort_args): Likewise.
1058 * eval.c (Fapply, Ffuncall): Likewise.
1059 * fileio.c (Ffile_name_directory, make_temp_name)
1060 (Fexpand_file_name, search_embedded_absfilename)
1061 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1062 (auto_save_error): Likewise.
1063 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1064 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1065 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1066 (Fmake_hash_table): Likewise.
1067 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1068 * ftfont.c (ftfont_text_extents): Likewise.
1069 * getloadavg.c (getloadavg): Likewise.
1070 * image.c (define_image_type, make_image, make_image_cache)
1071 (x_create_x_image_and_pixmap, xbm_image_p)
1072 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1073 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1074 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1075 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1076 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1077 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1078 Likewise.
1079 * indent.c (scan_for_column, compute_motion): Likewise.
1080 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1081 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1082 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1083 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1084 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1085 (store_user_signal_events, menu_bar_items, tool_bar_items)
1086 (process_tool_bar_item, append_tool_bar_item)
1087 (read_char_minibuf_menu_prompt, read_key_sequence)
1088 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1089 Likewise.
1090 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1091 Likewise.
1092 * lisp.h (STRING_COPYIN): Likewise.
1093 * lread.c (Fload, read1, oblookup): Likewise.
1094 * msdos.c (Frecent_doskeys): Likewise.
1095 * nsfns.m (Fx_create_frame): Likewise.
1096 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1097 Likewise.
1098 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1099 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1100 Likewise.
1101 * nsmenu.m (ns_update_menubar): Likewise.
1102 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1103 * print.c (print_unwind, printchar, strout, print_string)
1104 (print_error_message): Likewise.
1105 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1106 (Fmake_network_process, Fnetwork_interface_list)
1107 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1108 (init_process): Likewise.
1109 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1110 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1111 Likewise.
1112 * scroll.c (do_scrolling, do_direct_scrolling)
1113 (scrolling_max_lines_saved): Likewise.
1114 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1115 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1116 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1117 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1118 (emacs_set_tty): Likewise.
1119 * term.c (encode_terminal_code, calculate_costs)
1120 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1121 Likewise.
1122 * termcap.c (tgetst1, gobble_line): Likewise.
1123 * termhooks.h (EVENT_INIT): Likewise.
1124 * tparam.c (tparam1): Likewise.
1125 * unexalpha.c (unexec): Likewise.
1126 * unexec.c (write_segment): Likewise.
1127 * unexmacosx.c (unexec_write_zero): Likewise.
1128 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1129 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1130 * w32font.c (w32font_list_family, w32font_text_extents)
1131 (w32font_list_internal, w32font_match_internal)
1132 (w32font_open_internal, compute_metrics, Fx_select_font):
1133 Likewise.
1134 * w32menu.c (set_frame_menubar, add_menu_item)
1135 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1136 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1137 * w32uniscribe.c (uniscribe_list_family): Likewise.
1138 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1139 * window.c (make_window, replace_window, set_window_buffer)
1140 (Fsplit_window): Likewise.
1141 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1142 (add_to_log, message3, x_consider_frame_title)
1143 (append_space_for_newline, extend_face_to_end_of_line)
1144 (decode_mode_spec_coding, init_glyph_string): Likewise.
1145 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1146 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1147 (face_attr_equal_p, make_realized_face, make_face_cache)
1148 (free_realized_faces, lookup_named_face, smaller_face)
1149 (face_with_height, lookup_derived_face)
1150 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1151 (Finternal_set_font_selection_order, realize_default_face)
1152 (compute_char_face, face_at_buffer_position)
1153 (face_for_overlay_string, face_at_string_position, merge_faces):
1154 Likewise.
1155 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1156 (Fx_window_property, x_create_tip_frame)
1157 (Fx_backspace_delete_keys_p): Likewise.
1158 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1159 (xfont_text_extents): Likewise.
1160 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1161 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1162 * xselect.c (x_queue_event, x_get_window_property)
1163 (receive_incremental_selection): Likewise.
1164 * xsmfns.c (x_session_check_input): Likewise.
1165 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1166 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1167 Likewise.
1168 * character.h (BCOPY_SHORT): Removed.
1169 * config.in: Regenerate.
1170 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1171 * emacs.c (main) [PROFILING]: Don't declare
1172 dump_opcode_frequencies.
1173 * lisp.h (safe_bcopy): Remove declaration.
1174 (memset) [!HAVE_MEMSET]: Declare.
1175 (memcpy) [!HAVE_MEMCPY]: Likewise.
1176 (memmove) [!HAVE_MEMMOVE]: Likewise.
1177 (memcmp) [!HAVE_MEMCMP]: Likewise.
1178 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1179 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1180 Don't define.
1181 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1182 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1183 (BCOPY_DOWNWARD_SAFE): Don't define.
1184 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1185 (memcpy) [!HAVE_MEMCPY]: Define.
1186 (memmove) [!HAVE_MEMMOVE]: Define.
1187 (memcmp) [!HAVE_MEMCMP]: Define.
1188
cb768704
J
11892010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1190
1191 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1192 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1193 New functions.
cb768704
J
1194 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1195 select on empty input mask.
1196 (init_process): Initialize kbd_is_on_hold to 0.
1197
1198 * process.h (hold_keyboard_input, unhold_keyboard_input)
1199 (kbd_on_hold_p): Declare.
1200
1201 * keyboard.c (input_available_signal): Declare.
1202 (kbd_buffer_nr_stored): New function.
1203 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1204 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1205 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1206 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1207 (tty_read_avail_input): If input is on hold, return.
1208 Don't read more that free slots in kbd_buffer (Bug#6571).
1209
3a8ce822
EZ
12102010-07-07 Eli Zaretskii <eliz@gnu.org>
1211
1212 * msdos.h:
1213 * msdos.c:
1214 * dosfns.c:
1215 * w16select.c: Convert function definitions to ANSI C.
1216
a628ad9d
JB
1217 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1218 Remove unused prototypes.
3a8ce822 1219
cf84bb53
JB
12202010-07-07 Juanma Barranquero <lekktu@gmail.com>
1221
1222 * coding.c, sysdep.c: Convert some more functions to standard C.
1223
1a4990fb
JB
12242010-07-07 Juanma Barranquero <lekktu@gmail.com>
1225
1226 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1227 (encode_coding_object): Use SPECPDL_INDEX.
1228 (syms_of_coding): Use DOS_NT.
1229
c0f2f16b
DN
12302010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1231
48fb6855
DN
1232 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1233
c0f2f16b
DN
1234 Make the function member of Lisp_Subr use standard C prototypes.
1235 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1236 (DECL_ALIGN): Add a cast for the function.
1237 * eval.c (Feval, Ffuncall): Use the proper type for each type
1238 function call.
1239
67aecef9
CY
12402010-07-06 Chong Yidong <cyd@stupidchicken.com>
1241
1242 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1243 fringe face id, so face-remapping-alist works (Bug#6091).
1244
b56ceb92
JB
12452010-07-06 Juanma Barranquero <lekktu@gmail.com>
1246
1247 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1248 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1249 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1250
7af07b96
AS
12512010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1252
1253 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1254 * lisp.h: Declare x_get_keysym_name.
1255 * keyboard.c (modify_event_symbol): Don't declare
1256 x_get_keysym_name here.
1257
69e24e34
DN
12582010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1259
1260 * ecrt0.c: Revert conversion to standard C.
1261
d3da34e0 12622010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1263
1264 * vm-limit.c (memory_warnings):
1265 * keyboard.c (modify_event_symbol):
1266 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1267 (round2, emacs_rint):
1268 * process.c (send_process, old_sigpipe): Convert function
1269 definitions and declarations to standard C.
1270
12712010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1272
1273 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1274 * xdisp.c: Convert function definitions to standard C.
1275
1276 * cm.c (cmputc): Arg C is now int, not char.
1277 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1278
00be444c
J
12792010-07-05 James Cloos <cloos@jhcloos.com>
1280
1281 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1282
1283 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1284 _NET_WM_ICON_NAME atoms.
1285
1286 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1287 and _NET_WM_ICON_NAME properties, too, matching what is
1288 done in the Gtk+ case.
1289
e4c8d29a
J
12902010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1291
ff919460
J
1292 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1293
e4c8d29a
J
1294 * xsmfns.c (SSDATA): New macro.
1295 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1296 passed to strlen/strcpy/strcat.
1297 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1298 7:th arg to XChangeProperty to (unsigned char *)
1299
1300 * xsettings.c (something_changedCB, parse_settings)
1301 (apply_xft_settings): Reformat prototype.
1302 (something_changedCB, init_gconf): Remove unused variable i.
1303 (read_settings): Remove unused variable long_len.
1304
1305 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1306 (xg_get_image_for_pixmap, create_dialog)
1307 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1308 (menuitem_highlight_callback, make_menu_item)
1309 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1310 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1311 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1312 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1313 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1314 (xg_tool_bar_item_expose_callback): Reformat prototype.
1315 (xg_update_menubar): GList *group => GSList *group.
1316 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1317 before use.
1318 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1319 to GTK_IMAGE (wimage).
1320
dd4c5104
DN
13212010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1322
898b4c5c
DN
1323 * atimer.c: Use "" instead of <> for local includes for
1324 consistency with the rest of the code.
1325
dd4c5104
DN
1326 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1327 * xrdb.c (get_system_name):
1328 * window.c (shrink_windows):
1329 * syntax.c (forw_comment):
1330 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1331 (ins_del_costs):
1332 * mem-limits.h (start_of_data):
1333 * lread.c (readevalloop):
1334 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1335 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1336 * frame.c (x_get_focus_frame):
1337 * floatfns.c (fmod_float):
1338 * fileio.c (choose_write_coding_system):
1339 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1340 (malloc_initialize_hook, sort_args, synchronize_locale):
1341 * doprnt.c (doprnt):
1342 * dired.c (compile_pattern):
1343 * data.c (fmod_float):
1344 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1345 (map_char_table_for_charset):
1346 * charset.c (define_charset_internal):
1347 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1348 to standard C.
1349
9a39b306 13502010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1351 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1352
1353 * lread.c (read1): Fix up last change to not mess up `c'.
1354
e6cb2cbb
JB
13552010-07-04 Juanma Barranquero <lekktu@gmail.com>
1356
1357 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1358
438105ed
JB
13592010-07-04 Juanma Barranquero <lekktu@gmail.com>
1360
1361 Fix prototypes.
1362
e5447b22 1363 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1364 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1365 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1366 arg, as required by internal_condition_case_1.
dcc7404b 1367 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1368 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1369 (analyse_first): Fix "const const".
e5447b22 1370 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1371 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1372 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1373
971de7fb
DN
13742010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1375
1376 * alloc.c: Convert function definitions to standard C.
1377 * atimer.c:
1378 * bidi.c:
1379 * bytecode.c:
1380 * callint.c:
1381 * callproc.c:
1382 * casefiddle.c:
1383 * casetab.c:
1384 * category.c:
1385 * ccl.c:
1386 * character.c:
1387 * charset.c:
1388 * chartab.c:
1389 * cmds.c:
1390 * coding.c:
1391 * composite.c:
1392 * data.c:
1393 * dbusbind.c:
1394 * dired.c:
1395 * dispnew.c:
1396 * doc.c:
1397 * doprnt.c:
1398 * ecrt0.c:
1399 * editfns.c:
1400 * fileio.c:
1401 * filelock.c:
1402 * filemode.c:
1403 * fns.c:
1404 * font.c:
1405 * fontset.c:
1406 * frame.c:
1407 * fringe.c:
1408 * ftfont.c:
1409 * ftxfont.c:
1410 * gtkutil.c:
1411 * indent.c:
1412 * insdel.c:
1413 * intervals.c:
1414 * keymap.c:
1415 * lread.c:
1416 * macros.c:
1417 * marker.c:
1418 * md5.c:
1419 * menu.c:
1420 * minibuf.c:
1421 * prefix-args.c:
1422 * print.c:
1423 * ralloc.c:
1424 * regex.c:
1425 * region-cache.c:
1426 * scroll.c:
1427 * search.c:
1428 * sound.c:
1429 * strftime.c:
1430 * syntax.c:
1431 * sysdep.c:
1432 * termcap.c:
1433 * terminal.c:
1434 * terminfo.c:
1435 * textprop.c:
1436 * tparam.c:
1437 * undo.c:
1438 * unexelf.c:
1439 * window.c:
1440 * xfaces.c:
1441 * xfns.c:
1442 * xfont.c:
1443 * xftfont.c:
1444 * xgselect.c:
1445 * xmenu.c:
1446 * xrdb.c:
1447 * xselect.c:
1448 * xsettings.c:
1449 * xsmfns.c:
1450 * xterm.c: Likewise.
1451
ae492bec
EZ
14522010-07-03 Eli Zaretskii <eliz@gnu.org>
1453
76ea4cc9
EZ
1454 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1455 frames other than the initial one. Fix reversal of colors when
1456 `reverse' is specified in the frame parameters. Call
1457 update_face_from_frame_parameter instead of
1458 internal-set-lisp-face-attribute. Initialize screen colors from
1459 initial_screen_colors[] when f->default_face_done_p is zero,
1460 instead of depending on being called with default-frame-alist as
1461 the alist argument.
1462
1463 * xfaces.c (update_face_from_frame_parameter): Move out of
1464 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1465 with HAVE_WINDOW_SYSTEM.
1466
1e6255ae
EZ
1467 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1468 to menu-bar-mode, if not set in the frame parameters or in
1469 default-frame-alist.
1470
ae492bec
EZ
1471 * w32console.c (sys_tputs): Adjust argument list to prototype in
1472 term.c.
1473
3a35a84c
JB
14742010-07-03 Juanma Barranquero <lekktu@gmail.com>
1475
1476 * lisp.h (memory_warnings): Fix prototype.
1477
1478 * cm.h (evalcost): Fix prototype.
1479
1480 * cm.c (evalcost): Fix arg type.
1481
c532d349
DN
14822010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1483
1484 * term.c (term_clear_mouse_face, Fidentity):
1485 * syssignal.h (signal_handler_t):
1486 * lisp.h (memory_warnings):
1487 * coding.h (preferred_coding_system):
1488 * cm.h (evalcost):
1489 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1490
c0b36d46
EZ
14912010-07-02 Eli Zaretskii <eliz@gnu.org>
1492
1493 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1494 from prototypes.
1495
1496 * msdos.h (load_pixmap): Don't define away.
1497
383e0970
J
14982010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1499
f57e2426
J
1500 * lisp.h:
1501 * atimer.h: Remove define for P_.
1502
1503 * alloc.c: Remove __P and P_ from .c and .m files.
1504 * atimer.c:
1505 * buffer.c:
1506 * callint.c:
1507 * category.c:
1508 * charset.c:
1509 * chartab.c:
1510 * cm.c:
1511 * coding.c:
1512 * composite.c:
1513 * data.c:
1514 * dired.c:
1515 * dispnew.c:
1516 * doc.c:
1517 * editfns.c:
1518 * emacs.c:
1519 * eval.c:
1520 * fileio.c:
1521 * filelock.c:
1522 * fns.c:
1523 * font.c:
1524 * fontset.c:
1525 * frame.c:
1526 * ftfont.c:
1527 * ftxfont.c:
1528 * gmalloc.c:
1529 * gtkutil.c:
1530 * image.c:
1531 * indent.c:
1532 * intervals.c:
1533 * keyboard.c:
1534 * keymap.c:
1535 * lread.c:
1536 * marker.c:
1537 * menu.c:
1538 * minibuf.c:
1539 * print.c:
1540 * process.c:
1541 * scroll.c:
1542 * search.c:
1543 * sound.c:
1544 * strftime.c:
1545 * syntax.c:
1546 * sysdep.c:
1547 * term.c:
1548 * terminal.c:
1549 * textprop.c:
1550 * unexalpha.c:
1551 * w32console.c:
1552 * w32fns.c:
1553 * w32font.c:
1554 * w32menu.c:
1555 * w32term.c:
1556 * w32uniscribe.c:
1557 * window.c:
1558 * xdisp.c:
1559 * xfaces.c:
1560 * xfns.c:
1561 * xfont.c:
1562 * xftfont.c:
1563 * xmenu.c:
1564 * xselect.c:
1565 * xterm.c: Likewise.
1566
383e0970 1567 Remove P_ and __P macros.
f57e2426
J
1568 * atimer.h: Remove P_ and __P macros.
1569 * buffer.h:
383e0970
J
1570 * category.h:
1571 * ccl.h:
1572 * character.h:
1573 * charset.h:
1574 * cm.h:
1575 * coding.h:
1576 * composite.h:
1577 * dispextern.h:
1578 * disptab.h:
9e892c8d 1579 * dosfns.h:
383e0970
J
1580 * font.h:
1581 * fontset.h:
1582 * frame.h:
1583 * gtkutil.h:
1584 * indent.h:
1585 * intervals.h:
1586 * keyboard.h:
1587 * keymap.h:
1588 * lisp.h:
1589 * macros.h:
1590 * md5.h:
1591 * menu.h:
1592 * msdos.h:
1593 * nsterm.h:
1594 * puresize.h:
1595 * region-cache.h:
1596 * syntax.h:
1597 * syssignal.h:
1598 * systime.h:
1599 * termhooks.h:
9e892c8d 1600 * w32font.h:
383e0970
J
1601 * w32term.h:
1602 * widget.h:
1603 * window.h:
1604 * xgselect.h:
1605 * xsettings.h:
1606 * xterm.h: Likewise.
1607
98601119
DN
16082010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1609
d9170db5
DN
1610 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1611
98601119
DN
1612 Cleanup old code.
1613 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1614 * syssignal.h: Remove code for Lynx, not supported anymore.
1615 * vm-limit.c: Remove unused code the depends on emacs not being
1616 defined and NO_LIM_DATA being defined.
1617 * mem-limits.h: Remove dead code.
1618
1f984e12
J
16192010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1620
c49d071a
J
1621 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1622
9d5405ec
J
1623 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1624 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1625
7a18115b
J
1626 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1627 parameters, they are already absolute.
1628
a628ad9d
JB
1629 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1630 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1631
a628ad9d 1632 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1633
a628ad9d
JB
1634 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1635 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1636
a628ad9d
JB
1637 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1638 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1639
c1ef4455
CY
16402010-06-30 Chong Yidong <cyd@stupidchicken.com>
1641
1642 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1643 check default-frame-alist.
1644
ce8f5a9a
AS
16452010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1646
1647 * process.c (create_process): Avoid using invalid file descriptors.
1648
1649 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1650
bf935339
J
16512010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1652
1653 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1654 Improve documentation. Return font regardless of use_system_font.
1655 (syms_of_xsettings): Improve documentation for font-use-system-font.
1656
7c33a057
CY
16572010-07-10 Chong Yidong <cyd@stupidchicken.com>
1658
2ec1b5ee
CY
1659 * xfaces.c (realize_face): Garbage the frame if a face is removed
1660 (Bug#6593).
1661
16622010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1663
1664 * keyboard.c: Remove duplicate <setjmp.h>.
1665 (read_key_sequence): Remove volatile qualifiers.
1666
16672010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1668
1669 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1670 (struct glyph_row): New members left_fringe_offset and
1671 right_fringe_offset.
1672
1673 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1674 specially.
1675 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1676 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1677
1678 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1679 Take account of bitmap offset.
2ec1b5ee
CY
1680 (draw_window_fringes): Take account of window vscroll.
1681 (update_window_fringes): Likewise. Extend top-aligned top indicator
1682 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1683 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1684 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1685
16862010-07-04 Juanma Barranquero <lekktu@gmail.com>
1687
1688 * w32fns.c (Qtooltip): Declare.
1689 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1690
16912010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1692
1693 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1694 grab on just Press (Bug#6499).
1695
16962010-07-02 Chong Yidong <cyd@stupidchicken.com>
1697
1698 * frame.c (Qtooltip): New var.
1699 (delete_frame): Use it. Fix faulty if statement. Don't update
1700 mode line for tooltip frames. Suggested by Martin Rudalics.
1701
1702 * xfns.c (x_create_tip_frame):
1703 * w32fns.c (x_create_tip_frame): Use it.
1704
17052010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1706
1707 * xftfont.c (xftfont_open): Check font width one by one also when
1708 spacing is dual.
1709
1710 * ftfont.c (ftfont_open): Ditto.
1711
6259c2ec
GM
17122010-06-30 Glenn Morris <rgm@gnu.org>
1713
a46007e9
GM
1714 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1715
6259c2ec
GM
1716 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1717
1718 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1719 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1720 * s/darwin.h (SYSTEM_MALLOC):
1721 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1722
5d1d3d04
J
17232010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1724
1725 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1726 (ns_get_screen): Don't assign integer to f.
1727 (Fx_display_color_cells): Declarations before statements.
1728
e547b051
J
17292010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1730
5fc8e5bc
J
1731 * xfns.c (x_default_font_parameter): Remove got_from_system
1732 (Bug#6526).
1733
e547b051
J
1734 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1735 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1736 defines based on what configure finds.
1737
1738 * xterm.c (XTflash): Use gtk_widget_get_window.
1739 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1740 gtk_adjustment_get_page_size.
1741 (handle_one_xevent): Use gtk_widget_get_mapped.
1742 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1743 messages.
1744
1745 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1746
1747 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1748 HAVE_GTK_FILE_SELECTION_NEW.
1749
1750 * gtkutil.c (xg_display_open, xg_display_close): Remove
1751 HAVE_GTK_MULTIDISPLAY, it is always defined.
1752 (xg_display_open): Return type is void.
1753 (gtk_widget_set_has_window)
1754 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1755 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1756 (gtk_adjustment_set_page_increment)
1757 (gtk_adjustment_get_step_increment): #define these if not found
1758 by configure.
1759 (remove_submenu): New define based on Gtk+ version.
1760 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1761 gtk_widget_get_window.
1762 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1763 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1764 (create_dialog): Use gtk_dialog_get_action_area and
1765 gtk_dialog_get_content_area.
1766 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1767 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1768 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1769 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1770 g_object_ref and g_object_unref.
1771 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1772 gtk_widget_get_sensitive.
1773 (xg_update_submenu): Use remove_submenu.
1774 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1775 properties instead to get old x and y position.
1776 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1777 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1778 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1779 (xg_get_tool_bar_widgets): New function.
1780 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1781 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1782 (toolbar_set_orientation): New #define based on if configure
1783 finds gtk_orientable_set_orientation.
1784 (xg_create_tool_bar): Call toolbar_set_orientation.
1785 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1786 instead of gtk_box_pack_start_defaults.
1787
b9229673
CY
17882010-06-28 Chong Yidong <cyd@stupidchicken.com>
1789
1790 * cmds.c (Fdelete_backward_char): Move into Lisp.
1791
bbc803b0
DN
17922010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1793
1794 * s/freebsd.h (BSD4_2): Remove redundant definition.
1795 bsd-common.h defines it already.
1796
6431f2e6
CY
17972010-06-27 Chong Yidong <cyd@stupidchicken.com>
1798
1799 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1800 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1801 tool-bar-mode, which are now set using these X resources at
1802 startup, to determine the defaults (Bug#2249).
1803
1804 * w32fns.c (Fx_create_frame):
1805 * nsfns.m (Fx_create_frame): Likewise.
1806
1807 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1808
8c079ebb
JB
18092010-06-24 Juanma Barranquero <lekktu@gmail.com>
1810
1811 * gtkutil.c (xg_update_scrollbar_pos):
1812 Avoid C99 mid-block variable declaration.
1813
e9b7ab96
JD
18142010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1815
bc869eca
JD
1816 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1817
2b7e356a 1818 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1819
1820 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1821 if height is less than scroll bar min size.
1822 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1823
e9b7ab96
JD
1824 * xfns.c (x_default_font_parameter): Try to open font from system
1825 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1826
a628ad9d 18272010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1828
1829 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1830
70c4cfbb
EZ
18312010-06-20 Eli Zaretskii <eliz@gnu.org>
1832
1833 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1834 most-positive-fixnum, be extra accurate when scrolling window
1835 start, to avoid missing the cursor line.
1836
ad5a12b5
EZ
18372010-06-19 Eli Zaretskii <eliz@gnu.org>
1838
1839 * xdisp.c (try_scrolling): Compute the limit for searching point
1840 in forward scroll from scroll_max, instead of an arbitrary limit
1841 of 10 screen lines. See
1842 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1843 and
1844 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1845 for details.
1846
2a64315a 18472010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1848
1849 * editfns.c (Fbyte_to_string): Pacify compiler.
1850
288cf4e9
SM
18512010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1852
1853 * lread.c (read1): Phase out old-style backquotes a bit more.
1854
6e6e5760
EZ
18552010-06-12 Eli Zaretskii <eliz@gnu.org>
1856
cbc4fd20
EZ
1857 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1858 bidimirror.h.
1859
1860 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1861
317fbf33
EZ
1862 * bidi.c (bidi_initialize): Remove explicit initialization of
1863 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1864 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1865 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1866
1867 * biditype.h: New file.
1868
cbc4fd20
EZ
1869 * bidimirror.h: New file.
1870
6e6e5760
EZ
1871 * window.c (syms_of_window): Doc fix (bug#6409).
1872
4176cba2
RF
18732010-06-12 Romain Francoise <romain@orebokech.com>
1874
1875 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1876 ediff-hook.
1877
cb4bfcb5
GM
18782010-06-10 Glenn Morris <rgm@gnu.org>
1879
64c60c2f
GM
1880 * editfns.c (Fbyte_to_string): Pacify compiler.
1881
cb4bfcb5
GM
1882 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1883
2ec1b5ee
CY
18842010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1885
1886 * alloc.c (Fmake_byte_code): Don't access undefined argument
1887 (Bug#6517).
1888
18892010-06-25 Chong Yidong <cyd@stupidchicken.com>
1890
1891 * xdisp.c (next_element_from_image): Ensure that after-strings are
1892 read the next time we hit handle_stop (Bug#1336).
1893
18942010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1895
1896 * lread.c (read1): Signal error if #s is not followed by paren.
1897
18982010-06-19 Chong Yidong <cyd@stupidchicken.com>
1899
1900 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1901
1902 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1903
19042010-06-15 Glenn Morris <rgm@gnu.org>
1905
1906 * editfns.c (Fbyte_to_string): Pacify compiler.
1907
e454a4a3
SM
19082010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1909
1910 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1911 Check `object's type before accessing its guts.
1912
c1b1acc2
DN
19132010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1914
1915 * s/usg5-4.h: Fix previous change.
1916 Suggested by Lawrence Mitchell <wence@gmx.li>
1917
657d4c0b
AS
19182010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1919
1920 * minibuf.c (Fall_completions): Add more checks.
1921
9b27fd9f
JB
19222010-06-08 Juanma Barranquero <lekktu@gmail.com>
1923
1924 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1925
a99ebb40
DN
19262010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1927
d7c5d87d
DN
1928 * lread.c (X_OK): Remove, unused.
1929
0263a941
DN
1930 * dispnew.c: Remove obsolete comment.
1931
a99ebb40
DN
1932 Remove INCLUDED_FCNTL.
1933 * xterm.c (INCLUDED_FCNTL):
1934 * callproc.c (INCLUDED_FCNTL):
1935 * alloc.c (INCLUDED_FCNTL):
1936 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1937 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1938
13b5221f
MR
19392010-06-07 Martin Rudalics <rudalics@gmx.at>
1940
1941 * window.c (Fselect_window): Move `record_buffer' up to the
1942 beginning of this function, so the buffer gets recorded
1943 even if the selected window does not change.
1944 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1945
5220357f
JB
19462010-06-07 Juanma Barranquero <lekktu@gmail.com>
1947
1948 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1949 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1950
3085237c
DN
19512010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1952
1953 Remove BSTRING related code, all platforms define it.
1954 * s/usg5-4.h (BSTRING): Remove definition.
1955 * s/template.h (BSTRING):
1956 * s/msdos.h (BSTRING):
1957 * s/ms-w32.h (BSTRING):
1958 * s/hpux10-20.h (BSTRING):
1959 * s/gnu-linux.h (BSTRING):
1960 * s/darwin.h (BSTRING):
1961 * s/cygwin.h (BSTRING):
1962 * s/bsd-common.h (BSTRING):
1963 * s/aix4-2.h (BSTRING): Likewise.
1964 * sysdep.c: Remove code depending on BSTRING not being defined.
1965
409f2919
JB
19662010-06-05 Juanma Barranquero <lekktu@gmail.com>
1967
1968 Remove obsolete macro BASE_LEADING_CODE_P.
1969 * character.h (BASE_LEADING_CODE_P): Remove.
1970 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1971 * buffer.c (Fset_buffer_multibyte):
1972 * indent.c (scan_for_column, compute_motion):
1973 * insdel.c (count_combining_before, count_combining_after):
1974 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1975
087fc47a
JB
19762010-06-04 Juanma Barranquero <lekktu@gmail.com>
1977
1978 Turn `directory-sep-char' into a noop.
1979
1980 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1981 (DIRECTORY_SEP): Define unconditionally.
1982
1983 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1984
1985 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1986 call dostounix_filename directly.
1987
1988 * fileio.c (CORRECT_DIR_SEPS): Remove.
1989 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1990 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1991 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1992 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1993
1994 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1995 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1996
0eb7675e
AS
19972010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1998
a628ad9d
JB
1999 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2000 (Bug#6346)
0eb7675e 2001
78edd3b7
JB
20022010-06-03 Juanma Barranquero <lekktu@gmail.com>
2003
2004 * ccl.c (Fccl_program_p): Fix typo in docstring.
2005
eb697db5
DN
20062010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2007
2008 Move UNEXEC definition to autoconf.
2009 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2010 * s/sol2-10.h (UNEXEC):
2011 * s/irix6-5.h (UNEXEC):
2012 * s/hpux10-20.h (UNEXEC):
2013 * s/gnu-linux.h (UNEXEC):
2014 * s/darwin.h (UNEXEC):
2015 * s/cygwin.h (UNEXEC):
2016 * s/bsd-common.h (UNEXEC):
2017 * s/aix4-2.h (UNEXEC):
2018 * m/alpha.h (UNEXEC): Likewise.
2019 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2020
aa3830c4
JB
20212010-06-03 Juanma Barranquero <lekktu@gmail.com>
2022
2023 Remove obsolete pre-unicode2 macros.
2024 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2025 * composite.c (composition_reseat_it):
2026 * data.c (Faset):
2027 * fns.c (Ffillarray):
2028 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2029 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2030
d234d13e
JL
20312010-06-03 Juri Linkov <juri@jurta.org>
2032
2033 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2034 (Fswitch_to_buffer): Remove unused variable `err'.
2035
0d4bcf4d
GM
20362010-06-03 Glenn Morris <rgm@gnu.org>
2037
e23dc1e2
GM
2038 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2039
05b09564
GM
2040 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2041 now that AH_BOTTOM does it.
2042
824e2978
GM
2043 * m/hp800.h (HAVE_ALLOCA):
2044 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2045
0d4bcf4d
GM
2046 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2047 Remove NOT_C_CODE tests, it is always true now.
2048
c55d2abf
DN
20492010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2050
08a494a3
DN
2051 Fix config.h includes.
2052 * xsettings.c:
2053 * xgselect.c:
2054 * nsterm.m:
2055 * nsselect.m:
2056 * nsimage.m:
2057 * nsfont.m:
2058 * nsfns.m:
2059 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2060 other files do.
2061
75934b1d
DN
2062 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2063
9f32a766
DN
2064 * s/sol2-6.h: Remove obsolete comments.
2065
c55d2abf
DN
2066 Remove unnecessary alloca.h includes.
2067 * keymap.c: Do not include alloca.h, config.h does that.
2068 * sysdep.c: Likewise. Do not define fwrite, not used.
2069
06ac62b4
SM
20702010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2071
2072 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2073 the HAVE_TERMIO where it belongs (bug#6149).
2074
1ab8293c
SM
20752010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2076
2077 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2078 of bug#6305).
2079
6dcfd253
EZ
20802010-05-30 Eli Zaretskii <eliz@gnu.org>
2081
2082 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2083 state is always cached (bug#6306).
2084
6d26bbb2
EZ
20852010-05-29 Eli Zaretskii <eliz@gnu.org>
2086
06fa4a23
EZ
2087 Fix cursor motion in bidi-reordered continued lines.
2088 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2089 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2090 over continuation lines in bidi-reordered buffers. Return
2091 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2092 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2093
f5783df3
MA
20942010-05-28 Michael Albinus <michael.albinus@gmx.de>
2095
2096 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2097
7d56b2dd
KH
20982010-05-28 Kenichi Handa <handa@m17n.org>
2099
2100 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2101 Don't sheck SPEC if it is nil.
2102 (font_list_entities): Call font_delete_unmatched if
b925d231 2103 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2104
e58d4ff7
GM
21052010-05-28 Glenn Morris <rgm@gnu.org>
2106
2107 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2108
f1a5d776
CY
21092010-05-27 Chong Yidong <cyd@stupidchicken.com>
2110
2111 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2112 whether to trash.
2113 (internal_delete_file, Frename_file): Callers changed.
2114 (delete_by_moving_to_trash): Doc fix.
2115 (Fdelete_directory_internal): Don't move to trash.
2116
2117 * callproc.c (delete_temp_file):
2118 * buffer.c (Fkill_buffer): Callers changed.
2119
2120 * lisp.h: Update prototype.
2121
f44a59e6
CY
21222010-05-27 Chong Yidong <cyd@stupidchicken.com>
2123
2124 * xdisp.c (redisplay_window): After redisplay, check if point is
2125 still valid before setting it (Bug#6177).
2126
81ac4f35
GM
21272010-05-27 Glenn Morris <rgm@gnu.org>
2128
2129 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2130 Convert comments to Makefile format.
2131
2132 * Makefile.in (bootstrap-clean): No more Makefile.c.
2133
ccd89fb3
GM
21342010-05-26 Glenn Morris <rgm@gnu.org>
2135
90278cb6
GM
2136 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2137 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2138
ccd89fb3
GM
2139 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2140 Remove.
2141 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2142
b7050583
KH
21432010-05-26 Kenichi Handa <handa@m17n.org>
2144
2145 * composite.c (composition_compute_stop_pos): Fix condition for
2146 backward scanning.
2147
e5458003
GM
21482010-05-25 Glenn Morris <rgm@gnu.org>
2149
c345fe90
GM
2150 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2151 Move before TEMACS_LDFLAGS.
2152 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2153 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2154
2e0689ab
GM
2155 * Makefile.in (NOT_C_CODE): No longer define.
2156 (config.h): No longer include.
2157
8009a5e8
GM
2158 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2159 variables it may reference.
2160
e5458003
GM
2161 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2162 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2163
10f72a37
KH
21642010-05-25 Kenichi Handa <handa@m17n.org>
2165
2166 * dispextern.h (struct composition_it): New members rule_idx and
2167 charpos.
2168
2169 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2170 that the character positions of IT point the last character of the
2171 current grapheme cluster.
2172 (next_element_from_composition): Don't change character positions
2173 of IT.
2174 (append_composite_glyph): Set glyph->charpos to
2175 it->cmp_it.charpos.
2176
2177 * composite.c (autocmp_chars): Change the first argument to RULE,
2178 and try composition with RULE only.
2179 (composition_compute_stop_pos): Record the index number of the
2180 composition rule in CMP_IT->rule_idx.
2181 (composition_reseat_it): Call autocmp_chars repeatedly until the
2182 correct rule of the composition is found.
2183 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2184 is at the last character of the current grapheme cluster when
2185 CMP_IT->reversed_p is nonzero.
2186
171eda53 21872010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2188
171eda53
SM
2189 * editfns.c (Fbyte_to_string): New function.
2190
66a9f7f4
SM
21912010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2192
2193 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2194 Suggested by Masatake YAMATO <yamato@redhat.com>.
2195
d8c315d1
EZ
21962010-05-23 Eli Zaretskii <eliz@gnu.org>
2197
171eda53 2198 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2199
f5b416d2 22002010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2201
2202 * s/netbsd.h: If terminfo is found, use it in preference to
2203 termcap. (Bug#6190) [Backport from trunk]
2204
0416466c
EZ
22052010-05-19 Eli Zaretskii <eliz@gnu.org>
2206
11117830 2207 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2208
2209 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2210 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2211 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2212 and maxpos members instead of start.pos and end.pos, respectively.
2213
2214 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2215 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2216 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2217 (try_window_reusing_current_matrix, try_window_id):
2218 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2219 (init_from_display_pos, init_iterator): Use EMACS_INT for
2220 character and byte positions.
66a9f7f4 2221 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2222 arguments for minimum and maximum buffer positions seen by
2223 display_line for this row. Don't use iterator to find the
2224 position following the maximum one; instead, increment the
11117830
EZ
2225 position found by display_line directly. Fix logic; eol_pos
2226 should be tested before the rest. Handle the case of characters
2227 delivered from display vector (bug#6036). Fix tests related to
2228 it->method. Handle the truncated_on_right_p rows.
2229 (RECORD_MAX_MIN_POS): New macro.
2230 (display_line): Use it to record the minimum and maximum buffer
2231 positions for glyphs in the row being assembled. Record the
2232 position of the newline that terminates the line. If word wrap is
2233 in effect, restore minimum and maximum positions seen up to the
2234 wrap point, when iterator returns to it.
2235 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2236 row and cursor not already at point. Restore original pre-bidi
2237 code for unidirectional buffers.
d36fe237
EZ
2238
2239 * dispnew.c (increment_row_positions, check_matrix_invariants):
2240 Increment and check row->start.pos and row->end.pos, in addition
2241 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2242
11117830
EZ
2243 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2244 Display truncated_on_left_p and truncated_on_right_p flags.
2245 Formatting fixes.
2246 (pmtxrows): Display the ordinal number of each row. Don't display
2247 rows beyond the last one.
2248
2249 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2250 it is not copied by bidi_copy_it.
2251
6e83d800
EZ
22522010-05-22 Eli Zaretskii <eliz@gnu.org>
2253
2254 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2255 (Bug#6237)
2256
110683ad
CY
22572010-05-22 Chong Yidong <cyd@stupidchicken.com>
2258
2259 * image.c (Fimage_flush): Rename from image-refresh.
2260
98fe5161
CY
22612010-05-21 Chong Yidong <cyd@stupidchicken.com>
2262
2263 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2264 just one window.
2265
2266 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2267 (clear_image_cache): If the number of cached images is unusually
2268 large, decrease the cache eviction delay (Bug#6230).
2269
e8752c66
GM
22702010-05-21 Glenn Morris <rgm@gnu.org>
2271
66dbf213
GM
2272 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2273 Move these rules to ns.mk.
2274 * ns.mk: New file.
2275
04384b2d
GM
2276 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2277
e8752c66
GM
2278 * Makefile.in (CANNOT_DUMP): New, set by configure.
2279 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2280
2e2bbddb
JL
22812010-05-20 Juri Linkov <juri@jurta.org>
2282
2283 * fileio.c (Fdelete_file): Change interative spec to use
2284 `read-file-name' like in `find-file-read-args' where the default
2285 value is `default-directory' instead of `buffer-file-name'.
2286 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2287
31c4aaf6
KR
22882010-05-20 Kevin Ryde <user42@zip.com.au>
2289
2290 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2291 (Voverriding_terminal_local_map, Vsystem_key_alist)
2292 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2293
9d5cf9b6
GM
22942010-05-20 Glenn Morris <rgm@gnu.org>
2295
2296 * Makefile.in (DEPDIR): New constant.
2297 (DEPFLAGS): Set with configure, not cpp.
2298 (MKDEPDIR): New, set by configure.
2299 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2300 (clean): Use $DEPDIR.
2301 (deps_frag): Include from configure.
2302 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2303 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2304
ead6f8f5
EZ
2305 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2306 reallocation of the cache. (Bug#6210)
2307
7f34aec3
GM
23082010-05-19 Glenn Morris <rgm@gnu.org>
2309
d494e8f2
GM
2310 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2311
c1d0dcfd
GM
2312 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2313 (GNULIB_VAR): Remove.
2314 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2315
2316 * m/ibms390x.h (LINKER):
2317 * m/macppc.h (LINKER) [GNU_LINUX]:
2318 * s/aix4-2.h (ORDINARY_LINK):
2319 * s/cygwin.h (LINKER):
2320 * s/darwin.h (ORDINARY_LINK):
2321 * s/gnu.h (ORDINARY_LINK):
2322 * s/netbsd.h (LINKER):
2323 * s/usg5-4.h (ORDINARY_LINK):
2324 Move to configure.
2325
7f34aec3
GM
2326 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2327
754790b6
CY
23282010-05-18 Chong Yidong <cyd@stupidchicken.com>
2329
2330 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2331 prevent stack overflow if number of arguments is too large
2332 (Bug#6214).
2333
161e44d1
JB
23342010-05-18 Juanma Barranquero <lekktu@gmail.com>
2335
2336 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2337
be4ff9da
GM
23382010-05-18 Glenn Morris <rgm@gnu.org>
2339
9539dc5d
GM
2340 * s/gnu-linux.h: Combine two conditionals.
2341
2342 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2343 $(POST_ALLOC_OBJ).
2344
40dc6bf4
GM
2345 * Makefile.in (RALLOC_OBJ): New, set by configure.
2346 (rallocobj): Replace with the previous variable.
2347 (otherobj): Use $RALLOC_OBJ.
2348
2349 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2350 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2351
be4ff9da
GM
2352 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2353 (gmallocobj, vmlimitobj): Replace with previous two variables.
2354 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2355
16455a85
GM
23562010-05-17 Glenn Morris <rgm@gnu.org>
2357
2358 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2359 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2360
5fdb7468
GM
23612010-05-16 Glenn Morris <rgm@gnu.org>
2362
7ca1f3f9
GM
2363 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2364
7541dad5
GM
2365 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2366
da53fab9
GM
2367 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2368 trailing "/".
2369
b02a6645
GM
2370 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2371 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2372
8877ca0f
GM
2373 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2374 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2375 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2376 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2377 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2378
5fdb7468
GM
2379 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2380 Remove ${STARTFLAGS}, nothing ever sets it.
2381
95adb4b1
DN
23822010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2383
2384 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2385
676b6304
GM
23862010-05-16 Glenn Morris <rgm@gnu.org>
2387
9beab9ce
GM
2388 * Makefile.in (LIBX_BASE): Always define.
2389
8a95f0e7
GM
2390 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2391
676b6304
GM
2392 * Makefile.in (LIBXT): Always define.
2393
6e546d18
GM
23942010-05-15 Glenn Morris <rgm@gnu.org>
2395
4235ca47 2396 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2397
6e546d18
GM
2398 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2399 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2400
8c5ff6dd
KR
24012010-05-15 Ken Raeburn <raeburn@raeburn.org>
2402
560bb7ae 2403 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2404 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2405
8b4eb796
KR
2406 * emacs.c (main): Initialize initial-environment and
2407 process-environment before generating from env, not after.
2408
8c5ff6dd
KR
2409 Handle --version reasonably in CANNOT_DUMP configuration.
2410 * emacs.c (emacs_version, emacs_copyright): New string variables.
2411 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2412 (syms_of_emacs): Defvar them, and initialize them from the C
2413 string variables.
2414 (main): If initialization hasn't been done, print initial version
2415 info from the C strings, instead of starting an interactive session.
2416
dbd3f723
EZ
24172010-05-15 Eli Zaretskii <eliz@gnu.org>
2418
d20e1419
EZ
2419 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2420 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2421 (bidi_paragraph_init): Remove redundant assertion that we are at
2422 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2423
2424 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2425 (syms_of_xdisp): Defsubr it.
2426
d36fe237
EZ
2427 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2428
dbd3f723
EZ
2429 * Makefile.in: Fix MSDOS-related comments.
2430
02be533b
GM
24312010-05-15 Glenn Morris <rgm@gnu.org>
2432
1a82cca9
GM
2433 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2434 (really-lwlib, really-oldXMenu): Always define.
2435 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2436
3df7b338
GM
2437 * Makefile.in: Simplify cpp conditional.
2438
2b5f541b
GM
2439 * Makefile.in (${ns_appdir}): Simplify using umask.
2440
02be533b
GM
2441 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2442
4e2db1fe
SM
24432010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2444
2445 * eval.c (specbind): Remove left-over duplicate test.
2446 Disallow let-binding frame-local vars. Add comment.
2447
4b292a22
EZ
24482010-05-14 Eli Zaretskii <eliz@gnu.org>
2449
2fe72643 2450 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2451 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2452 (bidi_init_it): Call it.
2453 (bidi_cache_iterator_state): Enlarge the cache if needed.
2454
4e2db1fe 2455 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2456 bidi_get_next_char_visually. All callers changed.
2457
82ebc97b
KH
24582010-05-14 Kenichi Handa <handa@m17n.org>
2459
2460 * dispextern.h (struct composition_it): New member reversed_p.
2461
2462 * composite.c (composition_compute_stop_pos): Search backward if
2463 ENDPOS < CHARPOS.
2464 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2465 Set CMP_IT->reversed_p.
b4b6e17e 2466 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2467
4e2db1fe
SM
2468 * xdisp.c (set_iterator_to_next):
2469 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2470 scanning backward. Call composition_compute_stop_pos if scan
2471 direction is changed.
2472 (next_element_from_buffer): Call composition_compute_stop_pos with
2473 negative ENDPOS if we are scanning backward.
2474 (next_element_from_composition): Pay attention to
2475 IT->cmp_it.reversed_p.
2476
0e5d7800
KH
24772010-05-14 Kenichi Handa <handa@m17n.org>
2478
560bb7ae 2479 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2480
cb027b32
GM
24812010-05-14 Glenn Morris <rgm@gnu.org>
2482
177b0288
GM
2483 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2484
fbc00890
GM
2485 * Makefile.in (mktime, X11, register): Move undefs to configure.
2486
f14d1dfd
GM
2487 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2488 (MSDOS_X_OBJ): New variable.
2489 (MSDOS_SUPPORT_REAL): New constant.
2490 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2491 (obj): Use MSDOS_X_OBJ.
2492 (lisp): Use MSDOS_SUPPORT as a variable.
2493
11842bd8
GM
2494 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2495 (GPM_MOUSE_SUPPORT): Now it's a constant.
2496 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2497 not cpp.
2498
489d31a4 2499 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2500 (ns_appresdir): Remove, unused.
e20f1f07 2501
489d31a4
GM
2502 * Makefile.in (SHELL): Move outside cpp section.
2503
cb027b32
GM
2504 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2505
5a903aa9
GM
25062010-05-13 Glenn Morris <rgm@gnu.org>
2507
3369c79f
GM
2508 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2509 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2510
d5e982a6
GM
2511 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2512 HAVE_WINDOW_SYSTEM must be too.
2513
6192e163
GM
2514 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2515 (lisp): Remove WINNT_SUPPORT.
2516
472c5d6b
GM
2517 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2518 Let configure set these variables (to empty) in this case as well.
2519
0116466b
GM
2520 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2521 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2522
5a903aa9
GM
2523 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2524 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2525 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2526 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2527 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2528 the values output by configure.
5a903aa9
GM
2529 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2530
1a0d7c06
GM
25312010-05-12 Glenn Morris <rgm@gnu.org>
2532
b5457f14
GM
2533 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2534 (LINKER_WAS_SPECIFIED): Remove.
2535
1a0d7c06
GM
2536 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2537 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2538 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2539 * s/cygwin.h (LIB_GCC):
2540 * s/freebsd.h (LIB_GCC):
2541 * s/gnu-linux.h (LIB_GCC):
2542 * s/msdos.h (LIB_GCC):
2543 * s/netbsd.h (LIB_GCC):
2544 Move to configure.
2545
3ffd4615 25462010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2547
2548 * ftfont.c: Fix incorrect parentheses of #if condition for
2549 definining M17N_FLT_USE_NEW_FEATURE.
2550
acddf8ae
GM
25512010-05-11 Glenn Morris <rgm@gnu.org>
2552
2553 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2554 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2555
ae5e04fa
EZ
25562010-05-10 Eli Zaretskii <eliz@gnu.org>
2557
2558 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2559 unibyte buffers. See
2560 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2561
7490175b
GM
25622010-05-10 Glenn Morris <rgm@gnu.org>
2563
97efb629
GM
2564 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2565 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2566 (LIBES): Use LIBS_SYSTEM as a variable.
2567 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2568 * s/aix4-2.h (LIBS_SYSTEM):
2569 * s/freebsd.h (LIBS_SYSTEM):
2570 * s/hpux10-20.h (LIBS_SYSTEM):
2571 * s/sol2-6.h (LIBS_SYSTEM):
2572 * s/unixware.h (LIBS_SYSTEM):
2573 Move to configure.
2574
7490175b
GM
2575 * s/aix4-2.h (MAIL_USE_LOCKF):
2576 * s/bsd-common.h (MAIL_USE_FLOCK):
2577 * s/darwin.h (MAIL_USE_FLOCK):
2578 * s/gnu-linux.h (MAIL_USE_FLOCK):
2579 * s/irix6-5.h (MAIL_USE_FLOCK):
2580 * s/template.h (MAIL_USE_FLOCK):
2581 Move to configure.
2582
0235128c 25832010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2584
2585 * Version 23.2 released.
2586
0235128c 25872010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2588
2589 * composite.c (autocmp_chars): Save point as marker before calling
2590 auto-composition-function (Bug#5984).
2591
2592 * lisp.h (restore_point_unwind): Add prototype.
2593
2594 * fileio.c (restore_point_unwind): Remove static attribute.
2595
0235128c 25962010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2597
2598 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2599 new feature of libotf and m17n-flt.
0235128c
SM
2600 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2601 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2602 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2603 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2604 that OUT is NULL. Use OTF_drive_gsub_with_log and
2605 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2606 OTF_drive_gpos.
2607 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2608 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2609 Setup mflt_enable_new_feature and mflt_try_otf.
2610
4721152c
J
26112010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2612
2613 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2614
2615 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2616 box and toolbar (Bug #6139).
2617 (xg_create_tool_bar): Remove comment (Bug #6139).
2618 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2619 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2620
ee0a16cf
JB
26212010-05-08 Juanma Barranquero <lekktu@gmail.com>
2622
2623 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2624 Update dependencies.
2625
96d79611
EZ
26262010-05-08 Eli Zaretskii <eliz@gnu.org>
2627
2628 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2629 R2L lines.
2630
40c17879
GM
26312010-05-08 Glenn Morris <rgm@gnu.org>
2632
7b42b29f
GM
2633 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2634
40c17879
GM
2635 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2636 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2637 (termcapobj): Replace with TERMCAP_OBJ.
2638 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2639 (LIBES): Use LIBS_TERMCAP as a variable.
2640
2641 * s/freebsd.h (osreldate.h): No longer include, since this file
2642 does not use __FreeBSD_version any more.
2643
2644 * s/aix4-2.h (TERMINFO):
2645 * s/cygwin.h (TERMINFO):
2646 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2647 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2648 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2649 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2650 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2651 * s/irix6-5.h (TERMINFO):
2652 * s/netbsd.h (LIBS_TERMCAP):
2653 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2654 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2655 * s/usg5-4.h (TERMINFO):
2656 Move to configure.
2657
94b612ad
SM
26582010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2659
2660 * eval.c (unbind_to): Don't unbind a local binding into the global
2661 binding when the local binding disappeared. Inversely, don't unbind
2662 a global binding into a newly created local binding.
2663 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2664 can specify the frame to use, when applicable. Adjust callers.
2665
15e12598 26662010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2667 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2668
2669 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2670
f724825e
EZ
26712010-05-07 Eli Zaretskii <eliz@gnu.org>
2672
5cba3209
EZ
2673 * w32fns.c: Include w32.h.
2674 (Fw32_shell_execute): Decode the error message before passing it
2675 to `error'. (Bug#6126)
2676
d16bdfc3
EZ
2677 * msdos.c (dos_set_window_size):
2678 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2679 instead of `XSYMBOL (foo)->value'.
2680
59d93e87
EZ
26812010-05-07 Eli Zaretskii <eliz@gnu.org>
2682
9fdec8bc
EZ
2683 Fix the MS-DOS build, broken by autoconfiscation.
2684
2685 * Makefile.in: Don't use Make-style comments past the "start of
2686 cpp stuff" line.
2687 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2688
2689 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2690 edited directly by msdos/sed1v2.inp).
f724825e 2691
2f86b22b
GM
26922010-05-07 Glenn Morris <rgm@gnu.org>
2693
2694 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2695 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2696 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2697 move out of cpp section.
2698 * s/freebsd.h (LD_SWITCH_SYSTEM):
2699 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2700 * s/netbsd.h (LD_SWITCH_SYSTEM):
2701 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2702
49ebbd65
DN
27032010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2704
2705 Define LIB_STANDARD and START_FILES using autoconf.
2706 * s/usg5-4.h (LIB_STANDARD):
2707 * s/netbsd.h (START_FILES):
2708 * s/irix6-5.h (LIB_STANDARD):
2709 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2710 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2711 * s/freebsd.h (START_FILES):
2712 * s/darwin.h (START_FILES):
2713 * s/cygwin.h (START_FILES):
2714 * s/aix4-2.h (LIB_STANDARD):
2715 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2716 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2717 autoconf, not cpp.
2718
d43c06d6
DN
27192010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2720
28823648
DN
2721 Remove NEED_BSDTTY and NEED_UNISTD_H.
2722 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2723 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2724 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2725 <sys/ptyio.h> and <unistd.h>.
2726
aca00430
DN
2727 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2728
d43c06d6
DN
2729 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2730 * s/gnu.h (START_FILES): Remove empty definition.
2731
3e56b11d
JD
27322010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2733
2734 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2735
e3cf0cde
GM
27362010-05-06 Glenn Morris <rgm@gnu.org>
2737
2738 * Makefile.in (CPP, LN_S): Remove unused variables.
2739
774b9a60
SM
27402010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2741
2742 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2743
4ab92842
LM
27442010-05-05 Lawrence Mitchell <wence@gmx.li>
2745
2746 * m/sparc.h: Fix typo in earlier change.
2747
178f2507
SM
27482010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2749
2750 Misc tweaks.
2751 * eval.c (Fdefvaralias): Remove unintended nested if.
2752 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2753
80f00217 27542010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2755
2756 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2757
ef03a4e6
DN
27582010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2759
58eb6cf0
DN
2760 Remove BSD_PGRPS.
2761 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2762 * s/gnu-linux.h (BSD_PGRPS): Remove.
2763 * term.c (dissociate_if_controlling_tty):
2764 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2765 (init_sys_modes, reset_sys_modes):
2766 * emacs.c (main):
2767 * callproc.c (Fcall_process, child_setup): Remove code depending
2768 on BSD_PGRPS.
2769
ef03a4e6
DN
2770 Remove POSIX_SIGNALS.
2771 * s/usg5-4.h (POSIX_SIGNALS):
2772 * s/netbsd.h (POSIX_SIGNALS):
2773 * s/msdos.h (POSIX_SIGNALS):
2774 * s/ms-w32.h (POSIX_SIGNALS):
2775 * s/hpux11.h (POSIX_SIGNALS):
2776 * s/gnu.h (POSIX_SIGNALS):
2777 * s/gnu-linux.h (POSIX_SIGNALS):
2778 * s/freebsd.h (POSIX_SIGNALS):
2779 * s/darwin.h (POSIX_SIGNALS):
2780 * s/cygwin.h (POSIX_SIGNALS):
2781 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2782 * s/unixware.h:
2783 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2784 * process.c (create_process):
2785 * syssignal.h:
2786 * sysdep.c (wait_for_termination, init_signals):
2787 * process.c (create_process):
2788 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2789 remove all code that assumes the contrary.
2790
49628785
GM
27912010-05-04 Glenn Morris <rgm@gnu.org>
2792
27a2cdfc
GM
2793 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2794 variable.
2795 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2796 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2797 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2798 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2799 LD_SWITCH_SYSTEM_tmp.
2800 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2801 New variables, set by configure.
2802
eb21eab5
GM
2803 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2804 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2805 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2806 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2807 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2808
49628785
GM
2809 * s/aix4-2.h (C_SWITCH_SYSTEM):
2810 * m/alpha.h (C_SWITCH_MACHINE):
2811 Move to configure.in.
2812 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2813 New variables, set by configure.
2814 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2815 $c_switch_machine and $c_switch_system.
2816
7dff330b
DN
28172010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2818
2819 * s/hpux10-20.h (LIB_STANDARD): New definition.
2820 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2821 on it, not used anymore.
2822
53967e09
CY
28232010-05-03 Chong Yidong <cyd@stupidchicken.com>
2824
2825 * eval.c (internal_condition_case_n): Rename from
2826 internal_condition_case_2.
2827 (internal_condition_case_2): New function.
2828
2829 * xdisp.c (safe_call): Use internal_condition_case_n.
2830
2831 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2832 (internal_delete_file, Frename_file): Callers changed.
2833
2834 * buffer.c (Fkill_buffer):
2835 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2836
2837 * lisp.h: Update prototypes.
2838
3dee6fdb
GM
28392010-05-03 Glenn Morris <rgm@gnu.org>
2840
2841 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2842 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2843 (LIBXT): Set with configure, not cpp.
2844 (LIBX): Remove.
2845 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2846
a101e0fb
DN
28472010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2848
2849 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2850 The FreeBSD is not needed, the default works, Solaris version is
2851 not needed, and the remaining case is not supported by configure.
2852
f63d0028
JD
28532010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2854
2855 * xsmfns.c (CHDIR_OPT): New define.
2856 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2857 restarting emacs.
2858
2859 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2860 shut_down_emacs.
2861
2862 * emacs.c (USAGE1): Mention --chdir.
2863 (main): Handle --chdir.
2864 (standard_args): Add --chdir.
2865 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2866 #5552).
2867
e4814a9f
DN
28682010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2869
cd03c74a
DN
2870 Remove LD_SWITCH_MACHINE.
2871 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2872 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2873
c3a398a1
DN
2874 Clean up IRIX code.
2875 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2876 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2877
87e7285c
DN
2878 Clean up AIX code.
2879 * m/ibmrs6000.inp: Remove file, unused.
2880 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2881 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2882 definition ...
2883 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2884
80f00217
JB
2885 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2886 unused.
e4814a9f 2887
59ca28de
EZ
28882010-05-01 Eli Zaretskii <eliz@gnu.org>
2889
197daef4
EZ
2890 Emulate POSIX_SIGNALS on MS-Windows.
2891
2892 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2893 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2894
2895 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2896 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2897 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2898
80f00217
JB
2899 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2900 New stubs.
197daef4 2901
af7c7572
EZ
2902 Miscellaneous fixes of bidi display.
2903
59ca28de
EZ
2904 * xdisp.c (find_row_end): New function, refactored from display_line.
2905 (display_line): Use it.
017ea819
EZ
2906 (extend_face_to_end_of_line): In almost-filled rows, extend only
2907 if the row is R2L and not continued.
166e930d 2908 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2909 Preserve overlay and string info in row->end.
166e930d
EZ
2910 (insert_left_trunc_glyphs): Support addition of left truncation
2911 glyphs to R2L rows.
b47e0dcf 2912 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2913 glyph between adjacent windows. Fix a crash when a display string
2914 is continued to the next line. Don't return zero if cursor was
2915 found by `cursor' property of a display string.
b47e0dcf
EZ
2916 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2917 test for that explicitly.
59ca28de 2918
7acac9f4
GM
29192010-05-01 Glenn Morris <rgm@gnu.org>
2920
2921 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2922 for clarity.
2923 (OTHER_OBJ): Remove.
2924 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2925 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2926
45841e65
KK
29272010-05-01 Karel Klíč <kklic@redhat.com>
2928
2929 * fileio.c (Ffile_selinux_context): Context functions may return null.
2930
afc61943
DN
29312010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2932
80f00217 2933 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2934
5a1bb006
GM
29352010-04-30 Glenn Morris <rgm@gnu.org>
2936
2937 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2938 (OTHER_OBJ): Define as a separate variable, for clarity.
2939
210af043
J
29402010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2941
2942 * xsettings.c: include limits.h and update file comment.
2943
0a7df391
GM
29442010-04-30 Glenn Morris <rgm@gnu.org>
2945
d5096f16
GM
2946 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2947 Set with configure, not cpp.
2948 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2949
7eb1ac33
GM
2950 * Makefile.in (mallocobj): Remove.
2951 (otherobj): Simplify using @OTHER_OBJ@.
2952
517d086b
GM
2953 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2954 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2955 Don't bother making nsgui.h dependency platform-specific.
2956
0a7df391
GM
2957 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2958
d6d23852
SM
29592010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2960
d2630aef
SM
2961 * process.c (read_process_output, exec_sentinel): Don't burp if the
2962 sentinel/filter kills the current buffer (bug#6060).
2963
f9dddf52 2964 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2965 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2966 Remove unused var `args'.
2967 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2968 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2969 * doc.c (store_function_docstring): Use XSETCAR.
2970
f1e3642a
GM
29712010-04-28 Glenn Morris <rgm@gnu.org>
2972
faf535f8
GM
2973 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2974 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2975
c40f9449
GM
2976 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2977
658f86ca
GM
2978 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2979 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2980
bc0b5f61
GM
2981 * Makefile.in (FONT_OBJ): New, set by configure.
2982 (FONT_DRIVERS): Use $FONT_OBJ.
2983
294c50a0
GM
2984 * Makefile.in (LIBXMU): Set with configure, not cpp.
2985 * s/aix4-2.h (LIBXMU):
2986 * s/hpux10-20.h (LIBXMU):
2987 Remove definition, now set in configure.
2988
e6ec4e99
GM
2989 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2990
f1e3642a
GM
2991 * m/amdx86-64.h [i386]: Move this test to configure.in.
2992
c6ea2936
GM
29932010-04-27 Glenn Morris <rgm@gnu.org>
2994
8fdac2c3
GM
2995 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2996 * s/unixware.h (NEED_LIBW): Remove definition.
2997
986fb647
GM
2998 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2999 (TOOLKIT_LIBW): New, set by configure.
3000 (@X_TOOLKIT_TYPE@): No longer define it.
3001
c6ea2936
GM
3002 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3003 (MOTIF_LIBW): Set with configure, not cpp.
3004 * s/aix4-2.h (LIB_MOTIF):
3005 * s/gnu-linux.h (LIB_MOTIF):
3006 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3007
aaa36002
DN
30082010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3009
3010 Reduce CPP usage.
3011 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3012 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3013 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3014 definitions and undefs. Inline definitions in the only user.
3015 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3016
b678dd8b
GM
30172010-04-27 Glenn Morris <rgm@gnu.org>
3018
76cda504
GM
3019 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3020 since the defaults (set by the system file) are fine in most cases.
3021 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3022 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3023 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3024 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3025 Remove definitions, since they are set correctly in s/gnu-linux.h.
3026 * s/freebsd.h (START_FILES, LIB_STANDARD):
3027 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3028 * s/hpux10-20.h (START_FILES):
3029 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3030 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3031
b678dd8b
GM
3032 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3033 (MOTIF_LIBW): Use $LIBXP.
3034 (otherobj): Use $WIDGET_OBJ.
3035
9452ded1
DN
30362010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3037
7e10844c
DN
3038 * Makefile.in (LIBS_MACHINE): Remove, unused.
3039
9452ded1
DN
3040 Use autoconf instead of cpp for LIB_MATH.
3041 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3042 * s/cygwin.h (LIB_MATH): Likewise.
3043 * Makefile.in (LIB_MATH): Do not define with cpp.
3044 (LIBES): Use autoconf for LIB_MATH.
3045
fcebfc6a
KH
30462010-04-26 Kenichi Handa <handa@m17n.org>
3047
3048 * composite.c (Ffind_composition_internal): Fix the return value
3049 for an automatic composition.
3050
39e2ad1b
DN
30512010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3052
3053 Remove all NO_ARG_ARRAY uses.
3054 * fns.c (concat2, concat3, nconc2):
3055 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3056 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3057 * m/xtensa.h (NO_ARG_ARRAY):
3058 * m/template.h (NO_ARG_ARRAY):
3059 * m/sparc.h (NO_ARG_ARRAY):
3060 * m/sh3.h (NO_ARG_ARRAY):
3061 * m/mips.h (NO_ARG_ARRAY):
3062 * m/macppc.h (NO_ARG_ARRAY):
3063 * m/iris4d.h (NO_ARG_ARRAY):
3064 * m/intel386.h (NO_ARG_ARRAY):
3065 * m/ibms390x.h (NO_ARG_ARRAY):
3066 * m/ibms390.h (NO_ARG_ARRAY):
3067 * m/ibmrs6000.h (NO_ARG_ARRAY):
3068 * m/ia64.h (NO_ARG_ARRAY):
3069 * m/hp800.h (NO_ARG_ARRAY):
3070 * m/arm.h (NO_ARG_ARRAY):
3071 * m/amdx86-64.h (NO_ARG_ARRAY):
3072 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3073
adf4f59c
EZ
30742010-04-25 Eli Zaretskii <eliz@gnu.org>
3075
6bdf5d65
EZ
3076 * xdisp.c (display_line): Don't assume 2nd call to
3077 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3078 (iterate_out_of_display_property): New function, body from pop_it.
3079 (pop_it): Use it.
adf4f59c 3080
dfbbda83
GM
30812010-04-24 Glenn Morris <rgm@gnu.org>
3082
3083 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3084 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3085 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3086 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3087
2d4018aa
EZ
30882010-04-24 Eli Zaretskii <eliz@gnu.org>
3089
a49884a6
EZ
3090 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3091 use `get_next_display_element' and `set_iterator_to_next' to
3092 advance to the next character, when looking for the character that
3093 begins the next row.
3094
76db6fcc 3095 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3096 definition of "struct Lisp_Symbol".
3097
70eab5c1
GM
30982010-04-24 Glenn Morris <rgm@gnu.org>
3099
3100 * Makefile.in (CRT_DIR): New variable, set by configure.
3101 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3102 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3103
1ad4cc3d
DN
31042010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3105
e769f484
DN
3106 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3107
4196ff33
DN
3108 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3109
879b0ee4
DN
3110 Remove redundant flags.
3111 * s/freebsd.h (C_SWITCH_SYSTEM):
3112 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3113 * s/netbsd.h (C_SWITCH_SYSTEM):
3114 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3115 of these.
3116
03cbbcb8
DN
3117 Simplify m/intel386.h.
3118 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3119 user: ecrt0.c.
3120 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3121 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3122 the only user: s/unixware.h.
3123 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3124 from m/intel386.h.
3125 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3126 moved here from m/intel386.h.
3127
1ad4cc3d
DN
3128 * m/mips.h: Remove #if 0 code.
3129
8785b888
EZ
31302010-04-23 Eli Zaretskii <eliz@gnu.org>
3131
728588cc
EZ
3132 Fix display of composed characters from L2R scripts in bidi buffers.
3133 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3134 After advancing IT past the composition, resync the bidi iterator
3135 with IT's position. (Bug#5977)
3136
a63f80b4
DN
31372010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3138
3139 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3140 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3141
ff5dec5c
SM
31422010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3143
3144 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3145
8785b888
EZ
31462010-04-23 Eli Zaretskii <eliz@gnu.org>
3147
58ccf243 3148 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3149 * xdisp.c (pop_it): When the stack is popped after displaying
3150 from a string, bidi-iterate to exit from the text portion covered
3151 by the `display' property or overlay. (Bug#5988, bug#5920)
3152
feeb1604
DN
31532010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3154
8e324eb6
DN
3155 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3156 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3157
809fcaba
DN
3158 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3159 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3160
ed710380
DN
3161 Simplify STARTFILES definition.
3162 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3163 relying on Makefile.in to define it.
3164 * s/cygwin.h (START_FILES): Likewise.
3165 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3166
feeb1604
DN
3167 Clean up Solaris code.
3168 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3169 (LIB_MOTIF): Remove, configure takes care of this.
3170 (NOT_USING_MOTIF): Remove, unused.
3171 * xrdb.c: Remove #if 0-ed #include.
3172 (SYSV): Remove conditional for old SysV.
3173 * sysdep.c (closedir): Remove conditional code for Solaris,
3174 Solaris has closedir.
3175
a0d0b563
JD
31762010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3177
3178 * xsettings.c (read_and_apply_settings): Check if current_font is
3179 NULL before strcmp (Bug#6001).
3180
56bae7c7
DN
31812010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3182
3183 Clean up HP-UX files.
3184 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3185 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3186 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3187 * s/hpux10-20.h: ... to the only user, here.
3188
372b7a95
EZ
31892010-04-21 Eli Zaretskii <eliz@gnu.org>
3190
3191 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3192 use buffer-local values of paragraph-start and paragraph-separate.
3193 <paragraph_start_re, paragraph_separate_re>: Rename from
3194 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3195 (Bug#5992)
3196
f904c0f9
JD
31972010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3198
3199 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3200 current_tool_bar_style are new.
3201 (store_config_changed_event): Rename from store_font_changed_event.
3202 (XSETTINGS_TOOL_BAR_STYLE): New define.
3203 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3204 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3205 HAVE_XFT.
3206 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3207 store_config_changed_event.
f904c0f9
JD
3208 (parse_settings): Rename from parse_xft_settings. Read
3209 non-xft xsettings outside #ifdef HAVE_XFT.
3210 (read_settings): Renamed from read_xft_settings.
3211 (apply_xft_settings): Take current settings as parameter. Do not
3212 call read_(xft)_settings.
3213 (read_and_apply_settings): New function.
3214 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3215 read_and_apply_settings if there are settings to be read.
3216 (init_xsettings): Renamed from init_xfd_settings.
3217 Call read_and_apply_settings unconditionally.
3218 (xsettings_initialize): Call init_xsettings.
3219 (Ftool_bar_get_system_style): New function.
3220 (syms_of_xsettings): Define Qmonospace_font_name and
3221 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3222 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3223 dynamic-setting.
31a01b90 3224 Move misplaced HAVE_GCONF
f904c0f9
JD
3225
3226 * xsettings.h (Ftool_bar_get_system_style): Declare.
3227
3228 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3229 Qtext, Qboth, Qboth_horiz are new.
3230 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3231 Vtool_bar_style, tool_bar_max_label_size.
3232
3233 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3234
3235 * keyboard.c: QClabel is new.
3236 (parse_tool_bar_item): Take out QClabel from tool bar items.
3237 Try to construct a label if ther is no QClabel.
3238 (syms_of_keyboard): Intern :label as QClabel.
3239
3240 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3241 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3242 New.
3243
3244 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3245 dynamic-setting.el.
3246
3247 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3248 (xg_make_tool_item, xg_show_toolbar_item): New function.
3249 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3250 Call xg_make_tool_item to make a tool bar item.
3251 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3252
3253 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3254 into account for toolbars.
3255
c632dfda
JD
32562010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3257
3258 * data.c (make_blv): Declarations before code (Bug#5993).
3259
10efe302
GM
32602010-04-21 Glenn Morris <rgm@gnu.org>
3261
3262 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3263 Define using autoconf, not cpp.
3264 (LIBXSM): New variable, set by autoconf.
3265 (LIBXT): Use $LIBXSM.
3266
4285ac5a
DN
32672010-04-21 Dan Nicolaescu <local_user@dannlt>
3268
3ec759e7
DN
3269 Remove NOMULTIPLEJOBS, unused.
3270 * s/template.h (NOMULTIPLEJOBS):
3271 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3272
4285ac5a
DN
3273 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3274 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3275 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3276 detects -znocombreloc and passes it to the linker
3277 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3278
2807228d
GM
32792010-04-21 Glenn Morris <rgm@gnu.org>
3280
3281 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3282
574c05e2
KK
32832010-04-21 Karel Klíč <kklic@redhat.com>
3284
3285 * Makefile.in (LIBSELINUX_LIBS): New.
3286 (LIBES): Add $LIBSELINUX_LIBS.
3287 * eval.c, lisp.h (call7): New function.
3288 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3289 (Ffile_selinux_context, Fset_file_selinux_context):
3290 New functions.
3291 (Fcopy_file): New parameter preserve-selinux-context.
3292 (Frename_file): Preserve selinux context when renaming by copy-file.
3293
91eac4bb 32942010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3295 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3296
50426a04
JB
3297 Don't depend on cm.c or termcap.c on Windows, use stubs.
3298 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3299 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3300 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3301 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3302 (sys_tputs, sys_tgetstr): New stubs.
3303 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3304 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3305
938efb77
JB
33062010-04-20 Juanma Barranquero <lekktu@gmail.com>
3307
3308 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3309
b4bf28b7
SM
33102010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3311
8b1e1112
SM
3312 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3313 Just signal a warning rather than an error when inside a let.
3314 (Fmake_variable_frame_local): Add the same test.
3315
933ac235
SM
3316 * font.c (syms_of_font): Make the style table vars read-only.
3317
b4bf28b7
SM
3318 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3319 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3320
3321 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3322
93d68d0c
EZ
33232010-04-20 Eli Zaretskii <eliz@gnu.org>
3324
3325 Fix R2L paragraph display on TTY.
3326
3327 * xdisp.c (unproduce_glyphs): New function.
3328 (display_line): Use it when produced glyphs are discarded from R2L
3329 glyph rows.
3330 (append_composite_glyph): In R2L rows, prepend the glyph rather
3331 than appending it.
3332
3333 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3334 rather than append it. Set up the resolved_level and bidi_type
3335 attributes of the appended glyph.
283ccc18
EZ
3336 (produce_special_glyphs): Mirror the backslash continuation
3337 character in R2L lines.
93d68d0c 3338
283ccc18 3339 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3340
283ccc18
EZ
3341 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3342 append_stretch_glyph.
3343 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3344 off-by-one error in computing x at end of text in the row.
3345 (append_stretch_glyph): In reversed row, prepend the glyph rather
3346 than append it. Set resolved_level and bidi_type of the glyph.
3347 (extend_face_to_end_of_line): If the row is reversed, prepend a
3348 stretch glyph whose width is such that the rightmost glyph will be
3349 drawn at the right margin of the window. Fix off-by-one error on
3350 TTY frames in testing whether a line needs face extension. Fix
3351 face extension at ZV. If this is the last glyph row, use
3352 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3353 region face.
3354 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3355 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3356 row->continuation_lines_width.
283ccc18
EZ
3357 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3358 are at ZV. Fixes a crash when reseated to ZV by
3359 try_window_reusing_current_matrix.
45903529
EZ
3360 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3361 which happens with R2L glyph rows. Fixes a crash when inserting a
3362 character at end of an R2L line.
283ccc18
EZ
3363 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3364 treat them as having zero-width characters. Improve comments.
3365 Don't reverse pos_before and pos_after for reversed glyph rows.
3366 Set cursor.x to negative value when the cursor might be on the
3367 left fringe.
3368 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3369 left fringe, not the right one.
f951a506
EZ
3370 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3371 (erase_phys_cursor): For reversed cursor_row, support cursor on
3372 the left fringe.
3373
283ccc18
EZ
3374 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3375 of continuation indicators on the fringes.
3376 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3377 left fringe.
3378
f951a506
EZ
3379 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3380 draw cursor on the left fringe.
3381
3382 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3383 cursor on the left fringe.
3384
f951a506
EZ
3385 * dispnew.c (update_text_area): Handle reversed desired rows when
3386 the cursor is on the left fringe.
3387 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3388 below, not by 0, for when the cursor is on the left fringe.
3389
3bb49aaf
JD
33902010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3391
3392 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3393 widget is a scrollbar.
3394
c0be27fd
KH
33952010-04-20 Kenichi Handa <handa@m17n.org>
3396
3397 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3398 only when the arg CHARSET_LIST is nil.
3399
ce5b453a
SM
34002010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3401
3402 Make variable forwarding explicit rather the using special values.
3403 Basically, this makes the structure of buffer-local values and object
3404 forwarding explicit in the type of Lisp_Symbols rather than use
3405 special Lisp_Objects for that. This tends to lead to slightly more
3406 verbose code, but is more C-like, simpler, and makes it easier to make
3407 sure we handled all cases, among other things by letting the compiler
3408 help us check it.
3409 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3410 Removing forwarding objects.
3411 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3412 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3413 explicit rather than hiding them inside Lisp_Object "values".
3414 (XFWDTYPE): New macro.
3415 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3416 (XBUFFER_LOCAL_VALUE): Remove.
3417 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3418 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3419 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3420 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3421 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3422 Remove the Lisp_Misc_* header.
3423 (struct Lisp_Buffer_Local_Value): Redefine.
3424 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3425 (struct Lisp_Misc_Any): Add filler to get the right size.
3426 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3427 Lisp_Intfwd.
3428 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3429 (DEFVAR_KBOARD): Allocate a forwarding object.
3430 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3431 (let_shadows_global_binding_p): New function.
3432 (union Lisp_Val_Fwd): New type.
3433 (make_blv): New function.
3434 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3435 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3436 (swap_in_symval_forwarding, find_symbol_value, Fset)
3437 (let_shadows_buffer_binding_p, set_internal, default_value)
3438 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3439 (Fkill_local_variable, Fmake_variable_frame_local)
3440 (Flocal_variable_p, Flocal_variable_if_set_p)
3441 (Fvariable_binding_locus):
3442 * xdisp.c (select_frame_for_redisplay):
3443 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3444 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3445 * frame.c (store_frame_param):
3446 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3447 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3448 value structure.
3449 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3450 (clone_per_buffer_values): Only adjust markers into the current buffer.
3451 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3452 (Fbuffer_local_value, set_buffer_internal_1)
3453 (swap_out_buffer_local_variables):
3454 Adapt to the new symbol value structure.
3455 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3456 (defvar_per_buffer): Take a new arg for the fwd object.
3457 (buffer_lisp_local_variables): Return a proper alist (different fix
3458 for bug#4138).
3459 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3460 (Fgarbage_collect): Don't handle buffer_defaults specially.
3461 (mark_object): Handle new symbol value structure rather than the old
3462 special Lisp_Misc_* objects.
3463 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3464 * term.c (set_tty_color_mode):
3465 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3466 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3467 a buffer_local_flags.
3468 * print.c (print_object): Get rid of impossible forwarding objects.
3469
fd3998ff
EZ
34702010-04-19 Eli Zaretskii <eliz@gnu.org>
3471
3472 * bidi.c (bidi_get_type, bidi_get_category)
3473 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3474 (bidi_type_of_next_char, bidi_level_of_next_char):
3475 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3476
e42cd1a7
JB
34772010-04-19 Juanma Barranquero <lekktu@gmail.com>
3478
3479 * dired.c (Ffile_attributes): Fix typo in docstring.
3480
6e104790 34812010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3482
3483 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3484 NSInteger (Bug#5811).
3485
6e104790 34862010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3487
3488 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3489 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3490
6e104790 34912010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3492
3493 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3494
6e104790
SM
34952010-04-19 Chong Yidong <cyd@stupidchicken.com>
3496
3497 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3498 terminal frames (Bug#5837).
3499
37dcfea0
EZ
35002010-04-19 Eli Zaretskii <eliz@gnu.org>
3501
d1da276f
EZ
3502 * .gdbinit (xsubchartable): New command.
3503
37dcfea0
EZ
35042010-04-19 Eli Zaretskii <eliz@gnu.org>
3505
3506 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3507 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3508 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3509 and
3510 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3511
e9515805
SM
35122010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3513
3514 * alloc.c (Fpurecopy): Hash-cons if requested.
3515 (syms_of_alloc): Update purify-flag docstring.
3516
22aa44a8
JD
35172010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3518
3519 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3520 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3521
ebb5722e
EZ
35222010-04-17 Eli Zaretskii <eliz@gnu.org>
3523
3524 Fix a crash when an NSM character is inserted at BEGV.
3525
3526 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3527 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3528 NEUTRAL_B or UNKNOWN_BT.
3529
0f4442ef
EZ
35302010-04-16 Eli Zaretskii <eliz@gnu.org>
3531
3532 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3533 other rows with cursor unless they are different from this row and
3534 this row is part of a continued line. (Bug#5943)
3535
7d4e45f8
DN
35362010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3537
3538 * s/freebsd.h: Restore osreldate.h include.
3539 Suggested by Naohiro Aota.
3540
5ba5ec85
J
35412010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3542
3543 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3544
20af301d
CY
35452010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3546
3547 * s/cygwin.h: Avoid linking against static libgcc.
3548
a4b000fb
JL
35492010-04-15 Juri Linkov <juri@jurta.org>
3550
3551 * window.c: Add Qscroll_command.
3552 Remove Vscroll_preserve_screen_position_commands.
3553 (window_scroll_pixel_based, window_scroll_line_based): Check the
3554 `scroll-command' property on the last command instead of searching
3555 the last command in Vscroll_preserve_screen_position_commands.
3556 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3557 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3558 (scroll-preserve-screen-position): Doc fix.
3559 (Vscroll_preserve_screen_position_commands): Remove variable.
3560
bc319ba4
DN
35612010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3562
6bb24457
DN
3563 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3564
19d4c244
DN
35652010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3566
3567 Reduce cpp use in Makefile.in.
3568 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3569 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3570 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3571 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3572 (CRT0_COMPILE): Remove, inline it in the only user.
3573
32129746
JL
35742010-04-14 Juri Linkov <juri@jurta.org>
3575
3576 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3577 `scroll-up-command' and `M-v' from `scroll-down' to
3578 `scroll-down-command'.
3579
9013a7f8
JL
35802010-04-14 Juri Linkov <juri@jurta.org>
3581
3582 * window.c (Vscroll_preserve_screen_position_commands): New variable
3583 with the default value as the list of Qscroll_down and Qscroll_up.
3584 (window_scroll_pixel_based, window_scroll_line_based): Search the
3585 last command in the list Vscroll_preserve_screen_position_commands
3586 instead of comparing with Qscroll_up and Qscroll_down.
3587
4bef8d26
JD
35882010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3589
92848133
JD
3590 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3591 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3592 does that.
3593
4bef8d26
JD
3594 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3595 to zero.
3596
58b963f7
SM
35972010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3598
84164a0d
SM
3599 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3600
2b0a91e7
SM
3601 Try to solve the problem of spurious EOF chars in long lines of text
3602 sent to interactive subprocesses.
3603 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3604 (system_process_attributes): Remove unused var `ttotal'.
3605 * process.c (send_process): Don't bother breaking long line with EOF
3606 chars when talking to ttys any more.
3607 (wait_reading_process_output): Output a warning when called in such
3608 a way that it could block without being interruptible.
3609
58b963f7
SM
3610 Try to detect file modification within the same second.
3611 * buffer.h (struct buffer): New field modtime_size.
3612 * buffer.c (reset_buffer): Initialize it.
3613 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3614 (Fverify_visited_file_modtime): Check it.
3615 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3616 (Fset_visited_file_modtime): Set (or clear) it.
3617
01f5787b
SM
36182010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3619
3620 * process.c (status_notify): Remove unused var `ro'.
3621
83725342
JD
36222010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3623
3624 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3625 more than one visual (Bug#5938).
3626
b9465836
DN
36272010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3628
50426a04
JB
3629 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3630 Undefine.
b9465836 3631
8d9c8ece
DN
36322010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3633
b1f52161
DN
3634 Remove C_SWITCH_SYSTEM_TEMACS.
3635 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3636 (malloc, realloc, free): Use emacs, not temacs for conditional
3637 definition.
3638
3639 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3640 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3641
8d9c8ece
DN
3642 Use autoconf, not cpp for some variables.
3643 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3644 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3645 (ALL_CFLAGS): Use them as make variables.
3646 (really-lwlib, really-oldXMenu): Do not pass them.
3647
1ecb2d3f
JD
36482010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3649
3650 * xmenu.c (apply_systemfont_to_dialog): New.
3651 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3652
3a4fa2f2
SM
36532010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3654
97e53006
SM
3655 * process.c (exec_sentinel): Preserve current-buffer.
3656
3a4fa2f2
SM
3657 * process.c (read_process_output): Move the save-current-buffer to
3658 apply to both the filter and the non-filter branches.
3659
88df7221
DN
36602010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3661
3662 * s/msdos.h (UNEXEC): New definition.
3663
5634ff85
YM
36642010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3665
6eff5c3d
YM
3666 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3667 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3668
3669 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3670 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3671 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3672 TRY_WINDOW_CHECK_MARGINS.
3673
3674 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3675 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3676 width only when it is for padding.
5634ff85 3677
b13aef54
J
36782010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3679
3680 * xfns.c (Fx_show_tip): Call try_window in a loop until
3681 fonts_changed_p is zero (Bug#2423).
3682
21d28484
EZ
36832010-04-08 Eli Zaretskii <eliz@gnu.org>
3684
3685 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3686 the end of TEXT_AREA. (Bug#5856)
3687
0269ef77
JD
36882010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3689
3690 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3691 HAVE_GCONF.
3692
5930fe97
EZ
36932010-04-08 Eli Zaretskii <eliz@gnu.org>
3694
3695 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3696 prev.orig_type, for resolving type of NSM. (Bug#5858)
3697
99852628
JD
36982010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3699
3700 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3701 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3702 in current_font.
3703 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3704 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3705 New functions.
3706 (syms_of_xsettings): Initialize current_font.
3707 defsubr Sfont_get_system_normal_font.
99852628
JD
3708
3709 * xsettings.h (Ffont_get_system_normal_font,
3710 xsettings_get_system_normal_font): Declare.
3711
3712 * xfns.c (extern xlwmenu_default_font): Remove.
3713 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3714 to xlwmenu.c.
3715
3716 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3717 menu items in UTF-8.
3718
3719 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3720 (apply_systemfont_to_menu): New function.
3721 (set_frame_menubar, create_and_show_popup_menu): Call
3722 apply_systemfont_to_menu.
3723
7fc874c4
J
37242010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3725
3726 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3727 FRAME_LINE_TO_PIXEL_Y.
3728
3729 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3730 pixelwidth/height.
3731
863bf481
DN
37322010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3733
5e5a3b92
DN
3734 Simplify code for HP machines.
3735 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3736 for GNU_LINUX, not needed.
3737 (UNEXEC, NEED_BSDTTY): Move definitions...
3738 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3739
863bf481
DN
3740 * m/iris4d.h (UNEXEC): Move definition ...
3741 * s/irix6-5.h (UNEXEC): ... here.
3742
3e6bec3b
JD
37432010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3744
3745 * xfns.c (set_machine_and_pid_properties): New function.
3746 (Fx_create_frame): Call set_machine_and_pid_properties.
3747
2912322b
SM
37482010-04-03 Eli Zaretskii <eliz@gnu.org>
3749
1502b819
EZ
3750 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3751 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3752 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3753
2912322b
SM
3754 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3755 in this function. (Bug#5703)
3756
37572010-04-03 Chong Yidong <cyd@stupidchicken.com>
3758
3759 * nsterm.h: Fix last change.
3760
c435b432
DN
37612010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3762
a568f507
DN
3763 * m/intel386.h (NO_REMAP): Move definition ...
3764 * s/msdos.h (NO_REMAP): ... here.
3765
4cd9f6c2
DN
3766 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3767
c435b432
DN
3768 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3769 used on those platforms.
3770
42a2c622
DN
37712010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3772
3773 Remove extern errno declarations.
3774 * xterm.c:
3775 * xrdb.c:
3776 * w32term.c:
3777 * unexec.c:
3778 * unexaix.c:
3779 * sysdep.c:
3780 * process.c:
3781 * lread.c:
3782 * keyboard.c:
3783 * floatfns.c:
3784 * filelock.c:
3785 * fileio.c:
3786 * emacs.c (main):
3787 * ecrt0.c:
3788 * dispnew.c:
3789 * callproc.c:
3790 * buffer.c: Remove errno extern declarations.
3791 * s/netbsd.h (NEED_ERRNO): Remove.
3792
8224f93d
DN
37932010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3794
3795 Remove all uses of LIBX11_SYSTEM.
3796 * Makefile.in (LIBX11_SYSTEM): Remove.
3797 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3798 instead.
3799
814062c7
EZ
38002010-04-01 Eli Zaretskii <eliz@gnu.org>
3801
ed68db4d
EZ
3802 Remove support for DJGPP v1.x (bug#5813).
3803
3804 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3805 * s/msdos.h:
3806 * unexec.c (make_hdr, copy_text_and_data):
3807 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3808 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3809 (IT_set_terminal_modes, __write, _rename, gethostname)
3810 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3811 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3812 the value of __DJGPP__.
ed68db4d
EZ
3813 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3814 compatibility code.
8224f93d
DN
3815 * lread.c:
3816 * gmalloc.c (memalign):
3817 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3818 * emacs.c (main):
3819 * dosfns.c (init_dosfns):
ed68db4d
EZ
3820 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3821
52f4d8d5
EZ
38222010-04-01 Eli Zaretskii <eliz@gnu.org>
3823
814062c7
EZ
3824 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3825 string with `cursor' property comes from an `after-string'
3826 overlay. (Bug#5816)
3827
0dc2e11d
GM
38282010-04-01 Glenn Morris <rgm@gnu.org>
3829
3830 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3831 Define as Makefile variables.
3832 (LIBX): Use above variables rather than directly using autoconf.
3833
1d29df59
DN
38342010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3835
3836 Clean up BSD_SYSTEM use.
3837 * xterm.c:
3838 * process.c:
3839 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3840 for including <sys/ioctl.h>.
3841 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3842 code is only used for MSDOS.
3843
1546c559
JL
38442010-03-31 Juri Linkov <juri@jurta.org>
3845
3846 * image.c: Add `Qextension_data'.
3847 (syms_of_image): Initialize and staticpro `Qextension_data'.
3848 (Fimage_metadata): Rename from `Fimage_extension_data'.
3849 (gif_load): Put GIF extension data to the property
3850 `Qextension_data'.
3851
6521c534
CY
38522010-03-31 Chong Yidong <cyd@stupidchicken.com>
3853
3854 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3855 * nsterm.h: Fix prototype.
3856
52c30783
EZ
38572010-03-31 Eli Zaretskii <eliz@gnu.org>
3858
3859 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3860 trailing whitespace in right-to-left rows.
3861
855a0da7
SM
38622010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3863
3864 Get rid of the direct_output optimizations.
3865 * keyboard.c (nonundocount): Remove extern declaration.
3866 (command_loop_1): Remove brittle optimisation for cheap and
3867 common operations.
3868 * xdisp.c (redisplay_internal): Don't bother checking
3869 redisplay_performed_directly_p any more.
3870 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3871 any more.
3872 * dispnew.c (redisplay_performed_directly_p)
3873 (direct_output_for_insert, direct_output_forward_char):
3874 * dispextern.h (redisplay_performed_directly_p)
3875 (direct_output_for_insert, direct_output_forward_char): Remove.
3876 * cmds.c (nonundocount): Make it static.
3877
85738751 38782010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3879
3880 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3881
85738751 38822010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3883
3884 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3885 invisible (Bug#5766).
3886
85738751 38872010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3888
855a0da7
SM
3889 * xdisp.c (x_consider_frame_title, update_window_cursor):
3890 Remove HAVE_NS conditionals.
194d44e7 3891 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3892
3893 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3894 filename for the title.
3895 (ns_set_doc_edited): Do nothing if the selected window is a
3896 minibuffer window.
3897
3898 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3899 ns_set_doc_edited.
3900
3901 * nsterm.m: Remove unneeded prototype.
3902
85738751 39032010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3904
3905 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3906 in the DOC file. (Bug#5336)
3907
85738751 39082010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3909
3910 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3911
75d1428c
SM
39122010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3913
3914 * window.c (keys_of_window): Remove redundant/overridden bindings.
3915
82043cfb
EZ
39162010-03-30 Eli Zaretskii <eliz@gnu.org>
3917
3918 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3919 Restore original behavior when the iterator is not bidi_p.
3920
b5dd0ae7
DN
39212010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3922
3923 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3924
bd924a5d
EZ
39252010-03-30 Eli Zaretskii <eliz@gnu.org>
3926
3927 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3928 are outside the range of cached character positions.
3929
3580374b
JB
39302010-03-30 Juanma Barranquero <lekktu@gmail.com>
3931
3932 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3933
a7b02820
EZ
39342010-03-30 Eli Zaretskii <eliz@gnu.org>
3935
3936 Initial support for bidirectional editing.
3937
3938 * Makefile.in (obj): Include bidi.o.
3939 (bidi.o): New target.
3940
3941 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3942 ($(BLD)/bidi.$(O)): New target.
3943
3944 * bidi.c: New file.
3945
3946 * buffer.h (struct buffer): New members bidi_display_reordering
3947 and bidi_paragraph_direction.
3948
3949 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3950 and bidi_paragraph_direction.
3951 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3952 and bidi-paragraph-direction.
3953 (Fbuffer_swap_text): Swap the values of
3954 bidi_display_reordering and bidi_paragraph_direction.
3955
3956 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3957 (bidi_type_t, bidi_dir_t): New types.
3958 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3959 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3960 prev_stop, base_level_stop, and eol_pos.
3961 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3962 (IT_STACK_SIZE): Enlarge to 5.
3963 (struct glyph_row): New member reversed_p.
3964 <string_buffer_position>: Update prototype.
3965 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3966 glyph_row if bidi_it.paragraph_dir == R2L.
3967 (struct glyph): New members resolved_level and bidi_type.
3968
3969 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3970 processing or buffer's direction is right-to-left.
3971 (prepare_desired_row): Preserve the reversed_p flag.
3972 (row_equal_p): Compare the reversed_p attributes as well.
3973
3974 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3975 bidi_init_it and set it->paragraph_embedding from the current
3976 buffer's value of bidi_paragraph_direction.
3977 (reseat_1): Initialize bidi_it.first_elt.
3978 (set_iterator_to_next, next_element_from_buffer): Use the value of
3979 paragraph_embedding to determine the paragraph direction.
3980 (set_iterator_to_next): Under bidi reordering, call
3981 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3982 new_paragraph flag is set in the bidi iterator.
3983 (next_element_from_buffer): If bidi_it.first_elt is set,
3984 initialize paragraph direction and find the first character to
3985 display in the visual order. If reseated to a middle of a line,
3986 prime the bidi iterator starting at the line's beginning. Handle
3987 the situation where we overstepped stop_charpos due to
3988 non-linearity of the bidi iteration. Likewise for when we back up
3989 beyond the previous stop_charpos. When moving across stop_charpos,
3990 record it in prev_stop.
3991 (display_line): Set row->end and it->start for the next row to the
3992 next character in logical order. Always extend reversed_p rows to
3993 the end of line, even if they end at ZV. Copy the reversed_p flag
3994 to the next glyph row. Keep calling set_cursor_from_row for
3995 bidi-reordered rows even if we already have a possible candidate
3996 for cursor position. Set row_end after all the row's glyphs have
3997 been produced, by looping over the glyphs. Record the position
3998 after EOL in it->eol_pos, and use it to set end_pos of the last
3999 row produced for a continued line.
4000 <Qright_to_left, Qleft_to_right>: New variables.
4001 (syms_of_xdisp): Initialize and staticpro them.
4002 (string_buffer_position_lim): New function.
4003 (string_buffer_position): Most of code moved to
4004 string_buffer_position_lim. Last argument and return value are
4005 now EMACS_INT; all callers changed.
4006 (set_cursor_from_row): Rewritten to support bidirectional text and
4007 reversed glyph rows.
4008 (text_outside_line_unchanged_p, try_window_id): Disable
4009 optimizations if we are reordering bidirectional text and the
4010 paragraph direction can be affected by the change.
4011 (append_glyph, append_composite_glyph)
4012 (produce_image_glyph, append_stretch_glyph): Set the
4013 resolved_level and bidi_type members of each glyph.
4014 (append_glyph): If the glyph row is reversed, prepend the glyph
4015 rather than appending it.
4016 (handle_stop_backwards): New function.
4017 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4018 (reseat): call handle_stop_backwards to recompute prev_stop and
4019 base_level_stop for the new position.
4020 (handle_invisible_prop): Under bidi iteration, skip invisible text
4021 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4022 paragraph direction. Update IT->prev_stop after skipping
4023 invisible text.
4024 (move_it_in_display_line_to): New variables prev_method
4025 and prev_pos. Compare for strict equality in
4026 BUFFER_POS_REACHED_P.
4027 (try_cursor_movement): Examine all the candidate rows that occlude
4028 point, to return the best match. If rows are bidi-reordered
4029 and point moved backwards, back up to the row that is not a
4030 continuation line, and start looking for a suitable row from
4031 there.
4032
4033 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4034 rather than appending, if the glyph_row's reversed_p flag is set.
4035 Set the resolved_level and bidi_type members of each glyph.
4036
4037 * .gdbinit (pbiditype): New command.
4038 (pgx): Use it to display bidi level and type of the glyph.
4039 (pitx): Display some bidi information about the iterator.
4040 (prowlims, pmtxrows): New commands.
4041
32a8894e
DN
40422010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4043
4044 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4045 * s/usg5-4.h (LIBS_DEBUG):
4046 * s/irix6-5.h (C_DEBUG_SWITCH):
4047 * s/gnu-linux.h (LIBS_DEBUG):
4048 * s/darwin.h (LIBS_DEBUG):
4049 * s/bsd-common.h (LIBS_DEBUG):
4050 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4051 * m/iris4d.h (LIBS_DEBUG):
4052 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4053
4054 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4055 (LIBS_DEBUG): Remove definition.
4056
649dbf36
CY
40572010-03-27 Chong Yidong <cyd@stupidchicken.com>
4058
4059 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4060 Windows.
4061
cad4261f
YM
40622010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4063
4064 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4065 `connect' (Bug#5723).
4066
cd591dbc
HE
40672010-03-25 Helmut Eller <eller.helmut@gmail.com>
4068
4069 * process.c (Fmake_network_process): Call `select' for interrupted
4070 `connect' rather than creating new socket (Bug#5173).
4071
e867cb5d 40722010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4073
4074 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4075
4076 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4077
4078 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4079
e867cb5d 40802010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4081
4082 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4083 XLoadQueryFont.
4084
e867cb5d 40852010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4086
4087 * coding.c (decode_coding_ccl): Fix previous change for the
4088 multibyte case.
fb608df3
KH
4089 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4090 case that the output buffer is fullfilled.
4091 (encode_coding): Setup ccl program here.
fbdc1721 4092
5845f0ed
DN
40932010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4094
814fb708
DN
4095 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4096
5845f0ed
DN
4097 Simplify LIBS_MACHINE definitions.
4098 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4099 * m/iris4d.h (LIBS_MACHINE): Likewise.
4100 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4101 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4102 * s/netbsd.h: Remove commented out code.
5845f0ed 4103
b7064064
DN
41042010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4105
df7734b2
DN
4106 Remove dead code dealing with POSIX_SIGNALS.
4107 * atimer.c (set_alarm): Remove dead code, all USG systems define
4108 POSIX_SIGNALS.
4109 * data.c (arith_error): Likewise.
4110 * keyboard.c (input_available_signal, handle_user_signal)
4111 (interrupt_signal): Likewise.
4112 * process.c (sigchld_handler): Likewise.
4113 (create_process): Remove if 0 code. Remove HPUX conditional when
4114 !defined (POSIX_SIGNALS), it cannot be true.
4115 * syssignal.h: Remove USG5_4 and USG conditionals when
4116 !POSIX_SIGNALS, they cannot be true.
4117
b7064064
DN
4118 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4119 NO_SOCK_SIGIO, not used anymore.
4120
55da5ee3
DN
41212010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4122
0be96e3a
DN
4123 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4124 support vax on BSDs.
4125
55da5ee3
DN
4126 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4127 * s/aix4-2.h (ORDINARY_LINK): ... here.
4128
c0282183
AS
41292010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4130
82c3d67a
AS
4131 * Makefile.in (abs_builddir): Define.
4132 (bootstrap_exe): Use it.
4133 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4134
3613edce
SM
41352010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4136
4137 * Makefile.in (bootstrap_exe): Use an absolute name.
4138
7f110ddc
DN
41392010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4140
22e87574
DN
4141 Remove support for old GNU/Linux using libc version 5.
4142 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4143 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4144
05a670e6
DN
4145 Consolidate redundant definitions in s/bsd-common.h.
4146 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4147 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4148 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4149 doing it in all files that include this one.
4150 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4151 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4152 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4153 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4154 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4155 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4156 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4157 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4158 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4159
2968f561
DN
4160 Consolidate redundant definitions.
4161 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4162 it's undefined in all files that include this one.
4163 (POSIX_SIGNALS): Define here instead of doing it in all files that
4164 include this one.
4165 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4166 (POSIX_SIGNALS): Do not define.
4167 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4168 (POSIX_SIGNALS): Do not define.
4169 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4170 (POSIX_SIGNALS): Do not define.
4171
15d25dc0
DN
4172 Remove support for old UNIX System V systems.
4173 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4174 * s/usg-5-4-2.h: Remove.
4175
07e339e4
DN
4176 Remove support for Solaris on PPC and for old versions.
4177 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4178 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4179 that cancel each other.
4180 * s/sol2-3.h:
4181 * s/sol2-4.h:
4182 * s/sol2-5.h: Remove.
4183 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4184 (NO_REMAP): Remove, unused.
4185 (UNEXEC): Move definition ...
4186 * s/aix4-2.h (UNEXEC): ... here.
4187
7f110ddc
DN
4188 * s/openbsd.h: Remove support for non-ELF and for systems that do
4189 not support shared libraries.
4190 * s/netbsd.h:
4191 * s/freebsd.h: Likewise.
4192
605f35cd
DN
41932010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4194
4195 Remove non-working support for lynxos 3.0.
4196 * s/lynxos.h: Remove file.
4197
4198 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4199 COFF_BSD_SYMBOLS, nothing defines it anymore.
4200
aed71cf4
DN
42012010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4202
4203 Remove obsolete uses of HAVE_SHM.
4204 * emacs.c (standard_args):
4205 (Fdump_emacs):
4206 (syms_of_emacs): Remove code depending on HAVE_SHM.
4207
4208 * alloc.c: Remove HAVE_SHM dependent definition.
4209
4210 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4211
aded53ff
GM
42122010-03-18 Glenn Morris <rgm@gnu.org>
4213
17284745
GM
4214 * emacs.c (USAGE4): Hard-code bug address.
4215 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4216 (bug_reporting_address): Remove.
4217 (main): Don't call bug_reporting_address.
4218
aded53ff
GM
4219 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4220 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4221
303500aa
CY
42222010-03-15 Chong Yidong <cyd@stupidchicken.com>
4223
4224 * xfns.c (Fx_create_frame):
4225 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4226 on left.
4227
cef3058f
CY
42282010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4229
4230 * editfns.c (Fformat): Account for string precision when computing
4231 field width (Bug#5710).
4232
a647d59d
CY
42332010-03-12 Chong Yidong <cyd@stupidchicken.com>
4234
4fa42018
CY
4235 * xfns.c (Fx_create_frame): Set default to Qright.
4236
a647d59d
CY
4237 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4238 all window systems.
4239
6da23aaa
EZ
42402010-03-12 Eli Zaretskii <eliz@gnu.org>
4241
a96f6398 4242 These changes remove termcap.c from the build on Posix platforms.
83d02def 4243 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4244 (MSDOS_OBJ): ...to here.
4245 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4246 now identical to when LIBS_TERMCAP is defined.
4247
4248 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4249
4250 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4251
a96f6398 4252 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4253
288f9fc0
CY
42542010-03-10 Chong Yidong <cyd@stupidchicken.com>
4255
4256 * Branch for 23.2.
4257
d48cd3f4
SM
42582010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4259
4260 Cleanup setup of gl_state in various parts of the code.
4261 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4262 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4263 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4264 (skip_chars):
4265 * regex.c (regex_compile): Use it.
4266 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4267 it's now set in regex_compile when/if we need it.
4268
618db430
SM
42692010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4270
c0335e02
SM
4271 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4272 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4273 (QUIT): Use it to consolidate code and remove redundancy.
4274 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4275
254c06a8
SM
4276 * regex.c (regex_compile): Setup gl_state as well.
4277
618db430
SM
4278 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4279 (in_classes): Use CONSP before XCAR/XCDR.
4280
233f0c9f
CY
42812010-03-03 Chong Yidong <cyd@stupidchicken.com>
4282
4283 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4284 definitions, so that keyboard macros are correctly handled
4285 (Bug#5481).
4286
75f80e63
EZ
42872010-03-02 Eli Zaretskii <eliz@gnu.org>
4288
4289 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4290 text that could be relocated inside the call to emacs_mule_char.
4291 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4292 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4293
dcfb9bc4
KH
42942010-03-02 Kenichi Handa <handa@m17n.org>
4295
fc9a17bc
KH
4296 * character.c (parse_str_as_multibyte): Fix handling of the
4297 multibyte form of raw-bytes.
4298 (str_as_multibyte): Likewise.
4299
dcfb9bc4
KH
4300 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4301 form of raw-bytes.
4302
412c01b6
CY
43032010-02-28 Chong Yidong <cyd@stupidchicken.com>
4304
4305 * charset.c (load_charset_map_from_file)
4306 (load_charset_map_from_vector): Zero out allocated
4307 charset_map_entries before using them.
4308
df7e1ea0
AS
43092010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4310
4311 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4312
fe69a722
CY
43132010-02-27 Chong Yidong <cyd@stupidchicken.com>
4314
4ed28cf4
CY
4315 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4316 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4317
7379cfce
KH
43182010-02-26 Kenichi Handa <handa@m17n.org>
4319
f88cc4d6
KH
4320 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4321
7379cfce
KH
4322 * xdisp.c (reseat_to_string): Fix previous change.
4323
cf2fdcfb
CY
43242010-02-26 David Reitter <david.reitter@gmail.com>
4325
4326 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4327 Lisp_Object (Bug#4736).
4328
cc6c7c75
KH
43292010-02-25 Kenichi Handa <handa@m17n.org>
4330
4331 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4332
32e737d7
JD
43332010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4334
4335 * xterm.c (XTflash): Move declarations before statements.
4336
4337 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4338 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4339 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4340 (xg_create_tool_bar): Remove unused variables.
4341 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4342 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4343
676cae9f
CY
43442010-02-21 Chong Yidong <cyd@stupidchicken.com>
4345
4346 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4347
886cc2b8
SM
43482010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4349
4350 * term.c (fatal): Add a final \n if needed (bug#5596).
4351
ddb2d8e2
CY
43522010-02-18 Chong Yidong <cyd@stupidchicken.com>
4353
4354 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4355
2a4f8d3d
GM
43562010-02-18 Glenn Morris <rgm@gnu.org>
4357
4358 * callint.c (Finteractive): Doc fix.
4359
ebaf11b6
KH
43602010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4361
886cc2b8
SM
4362 * coding.c (record_conversion_result):
4363 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4364 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4365 memory allocation error.
4366
d0396581
KH
43672010-02-17 Kenichi Handa <handa@m17n.org>
4368
886cc2b8
SM
4369 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4370 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4371 (decode_coding): Setup ccl program here. Keep looping when the
4372 decoder stopped because the output buffer is
4373 fullfilled (bug#5534).
4374
4375 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4376
98599f74
JD
43772010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4378
471e4f04 4379 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4380 bug #5571.
886cc2b8 4381 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4382 overdrawn.
98599f74 4383
182659ae
JD
43842010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4385
4386 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4387 doing_interact here.
4388 (ice_connection_closed): New function.
4389 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4390 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4391 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4392 returns I/O error.
4393 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4394 bug #5512.
4395
9be32c4e 43962010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4397
4398 * nsfont.m (nsfont_open): The system's value for the font descent
4399 is negative, so round it down to avoid clipping.
4400
a2f3eb19
CY
44012010-02-06 Chong Yidong <cyd@stupidchicken.com>
4402
4403 * charset.c (load_charset_map_from_file)
4404 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4405 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4406
3088147c
CY
44072010-02-05 Chong Yidong <cyd@stupidchicken.com>
4408
4409 * charset.c (load_charset_map_from_file): Allocate large
4410 charset_map_entries structure on the heap rather than the stack.
4411 (Bug#5526).
4412
b57d9029
KH
44132010-01-31 Kenichi Handa <handa@m17n.org>
4414
4415 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4416 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4417
c67d885b
CY
44182010-01-31 Chong Yidong <cyd@stupidchicken.com>
4419
4420 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4421 <deactivated@gmail.com> (Bug#3605).
4422
8fab2362
CY
44232010-01-31 David De La Harpe Golden <david@harpegolden.net>
4424
4425 * fileio.c (Frename_file): Correctly rename symlinks to
4426 directories (Bug#5496).
4427
cb2a62f2
CY
44282010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4429
4430 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4431
944c7a26
AS
44322010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4433
4434 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4435
c024ac08
CY
44362010-01-29 Chong Yidong <cyd@stupidchicken.com>
4437
4438 * frame.c (DEFAULT_ROWS): Change default to 35.
4439
4440 * xfns.c (x_default_font_parameter): Change default XFT font to
4441 monospace-10 (Bug#3643).
4442
af93af83
EZ
44432010-01-29 Eli Zaretskii <eliz@gnu.org>
4444
4445 * w32inevt.c (key_event): Remove unnecessary comparison of
4446 event->uChar.AsciiChar with 128.
4447
ca0eb708
CY
44482010-01-28 Chong Yidong <cyd@stupidchicken.com>
4449
b242dbfc
CY
4450 * fileio.c (Frename_file): Fix last change (Bug#5487).
4451
ca0eb708
CY
4452 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4453
4454 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4455
45d45af5
JD
44562010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4457
4458 * xfns.c (Fx_create_frame): Remove window size matching code from
4459 2010-01-15.
a73f9c9d 4460 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4461
7e233730
JR
44622010-01-27 Jason Rumney <jasonr@gnu.org>
4463
4464 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4465 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4466
86e893e3
KH
44672010-01-27 Kenichi Handa <handa@m17n.org>
4468
4469 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4470 pattern string (Bug#4209).
86e893e3 4471
8719abec
CY
44722010-01-27 David De La Harpe Golden <david@harpegolden.net>
4473
4474 * fileio.c (Frename_file): Call copy-directory and
4475 delete-directory for directories, in order to handle cross-device
4476 renaming (Bug#3353).
4477
844794c8
JD
44782010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4479
aa3e13b5 4480 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4481 sizes 24 and 10. Bug #3643.
844794c8 4482
bd4b5750
SM
44832010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4484
8dc1adf6 4485 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4486 * keymap.c (shadow_lookup): Add `remap' arg.
4487 (describe_map, describe_vector): Update calls to shadow_lookup.
4488 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4489 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4490 perform remapping during shadow_lookup check of remapped_sequences.
4491
285d07e2
CY
44922010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4493
4494 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4495 png_check_sig, which has been removed in libpng 1.4.
4496
c6d09b8d
CY
44972010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4498
4499 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4500 lacks this header file).
4501
3d782998
YM
45022010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4503
4504 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4505 as in Emacs 22.
4506
2aff7c53
YM
45072010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4508
4509 * lisp.h (make_pure_string): String pointer arg now points to const.
4510
4511 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4512 args now point to const.
4513
74327f7a
EZ
45142010-01-22 Eli Zaretskii <eliz@gnu.org>
4515
4516 * lread.c (Fload): Don't treat files without .elc extension as
4517 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4518 them. (bug#5303)
4519
4d1e6632
KH
45202010-01-20 Kenichi Handa <handa@m17n.org>
4521
4522 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4523 treat the source as actual byte sequence.
4524
1fdede8f
AM
45252010-01-19 Alan Mackenzie <acm@muc.de>
4526
4527 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4528 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4529 `signal_after_change_p' to `coherent_change_p', and make the
4530 invocation of `modify_region' conditional on it.
4531
67477f30
JD
45322010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4533
4534 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4535 for debug purpose.
4536 (syms_of_xsettings): Declare xft-settings.
4537
244b023e
CY
45382010-01-18 Chong Yidong <cyd@stupidchicken.com>
4539
4540 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4541
617364fe
CY
45422010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4543
4544 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4545
4fe22cdf
CY
45462010-01-16 Chong Yidong <cyd@stupidchicken.com>
4547
4548 * emacs.c (standard_args): Adjust arg priorities to reflect how
4549 they are processed in startup.el.
4550
e118d2be
AS
45512010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4552
4553 * Makefile.in (lisp, shortlisp): Update.
4554
523ae620
SM
45552010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4556
4557 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4558 code, link the new kboard into all_kboard before running Lisp code,
4559 and protect the new terminal with GCPRO (Bug#5365).
4560 (x_term_init): Remove unused var `atom'.
4561 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4562
f0d13888
JD
45632010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4564
4565 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4566 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4567 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4568 this. Bug #3643.
f0d13888 4569
cc320f07
KH
45702010-01-15 Kenichi Handa <handa@m17n.org>
4571
4572 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4573
7ffdf101
CY
45742010-01-15 Chong Yidong <cyd@stupidchicken.com>
4575
4576 * nsterm.m (Qnone): Define.
4577
4578 * nsfns.m (Qnone): Move definition to nsterm.m.
4579
d12bd917
KH
45802010-01-14 Kenichi Handa <handa@m17n.org>
4581
4582 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4583 systems.
4584
d9a7c140
KH
45852010-01-14 Kenichi Handa <handa@m17n.org>
4586
4587 Make auto-composition work on all buffers even if they are
4588 fundamental mode.
4589
4590 * composite.c (Vauto_composition_mode): New variable.
4591 (composition_compute_stop_pos): Check Vauto_composition_mode
4592 instead of Vauto_composition_function.
4593 (composition_adjust_point, Ffind_composition_internal): Likewise.
4594 (syms_of_composite): Declare Lisp variable
4595 "auto-composition-mode" here.
4596
63286bb2
CY
45972010-01-13 Chong Yidong <cyd@stupidchicken.com>
4598
4599 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4600 during call to vendor-specific-keysyms (Bug#5365).
4601
c2623ee7
YM
46022010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4603
4604 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4605 Call SIGNAL_THREAD_CHECK (Bug#5333).
4606
4607 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4608 Call SIGNAL_THREAD_CHECK.
4609
0b5397c2
SM
46102010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4611
4612 Try to fix bug#5314. This is probably not the final word, tho.
4613 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4614 recent-auto-save-p as a side-effect.
4615 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4616 * buffer.c (Fkill_buffer, reset_buffer):
4617 * editfns.c (Fsubst_char_in_region):
4618 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4619 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4620
dc954cb2
KH
46212010-01-13 Kenichi Handa <handa@m17n.org>
4622
4623 Display buffer name, etc. in mode line by composing correctly.
4624
4625 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4626 STRING is not nil.
0b5397c2 4627 (display_mode_element): Adjust for the change of
dc954cb2
KH
4628 decode_mode_spec and display_line.
4629 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4630 (display_string): Handle the case that STRING is non-null and
4631 LISP_STRING is not nil.
4632
0b5397c2
SM
4633 * xterm.c (x_draw_composite_glyph_string_foreground):
4634 Pay attention to s->face->overstrike.
dc954cb2
KH
4635
4636 * composite.c (composition_reseat_it): Don't check PT if STRING is
4637 non nil.
4638
4a00eaca
YM
46392010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4640
4641 * keyboard.c (read_char): Don't apply previous change when current
4642 buffer is unchanged by command execution.
4643
60abb287
JD
46442010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4645
4646 * keyboard.c (read_char): Return after executing from special map.
4647
893db5bc
GM
46482010-01-12 Glenn Morris <rgm@gnu.org>
4649
4650 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4651 bug-gnu-emacs rather than emacs-pretest-bug.
4652
4d03ece0
CY
46532010-01-11 Chong Yidong <cyd@stupidchicken.com>
4654
4655 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4656 initializing the Lisp variables that depend on them.
4657
1df47e38
YM
46582010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4659
4660 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4661 Clear areas that will not be updated after change of menu bar lines.
4662 Clear the menu bar window's current matrix when the window gets empty.
4663
2f1c6384
CY
46642010-01-09 Chong Yidong <cyd@stupidchicken.com>
4665
e398c61c
CY
4666 * intervals.h, textprop.c (extend_property_ranges): Return value
4667 and args changed. Discard properties that begin at or after the
4668 new end (Bug#5306).
4669
4670 * editfns.c (Fformat): Caller changed.
4671
e5a29a10
CY
4672 * nsterm.m (ns_set_default_prefs): Delete function.
4673 (syms_of_nsterm): Initialize ns_command_modifier,
4674 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4675 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4676
2f1c6384
CY
4677 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4678 position (Bug#4040).
4679
d427a9fa
EZ
46802010-01-09 Eli Zaretskii <eliz@gnu.org>
4681
4682 * editfns.c (Ffloat_time): Doc fix.
4683
21b9df2f
JD
46842010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4685
4686 * xfns.c (Fx_create_frame): Don't create frame larger than display
4687 by default bug#3643.
4688
4b00d3b1
YM
46892010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4690
4691 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4692 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4693 windows above internal border.
4694
4695 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4696 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4697 windows above internal border.
4698
4699 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4700 tool bar windows specially.
4701
4702 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4703
4704 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4705 specially.
4706 (XTflash): Take account of menu bar height.
4707
4708 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4709 specially.
4710
5075d853
JD
47112010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4712
ac146f82 4713 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4714 also be true before we can return early (bug #5339).
4715
474217c8
CY
47162010-01-06 David Reitter <david.reitter@gmail.com>
4717
4718 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4719 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4720 (Bug#3233).
4721
c0e6d47d
JD
47222010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4723
d0cf45b7
JD
4724 * font.c (font_open_entity): Enable chache and call cached_font_ok
4725 for the driver if defined.
4726 (QCuser_spec): New symbol.
4727 (font_spec_from_name): Save name as user-spec.
4728 (font_load_for_lface): Keep user-spec instead of name.
4729 (font_open_by_name): Save name as user-spec.
4730 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4731 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4732
4733 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4734 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4735 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4736
4737 * font.h (struct font_driver): Add cached_font_ok.
4738
c0e6d47d
JD
4739 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4740
7c583cd8
JD
47412010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4742
4743 * xterm.c (x_new_font): Move code for setting rows/cols before
4744 resizing ...
ac146f82 4745 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4746
4747 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4748 (xg_frame_resized, xg_frame_set_char_size):
4749 Call xg_clear_under_internal_border.
7c583cd8 4750 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4751
03f77f0a
CY
47522010-01-05 Chong Yidong <cyd@stupidchicken.com>
4753
4754 * keyboard.c (read_key_sequence): Catch keyboard switch after
4755 making a new tty frame (Bug#5095).
4756
2a1ef5be
KH
47572010-01-05 Kenichi Handa <handa@m17n.org>
4758
4759 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4760
e3eb1dae
SM
47612010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4762
4763 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4764 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4765 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4766
777013f2
MA
47672010-01-03 Michael Albinus <michael.albinus@gmx.de>
4768
4769 * dbusbind.c (xd_add_watch): Improve debug message.
4770 (xd_remove_watch): Improve debug message. If DATA is the session
4771 bus, unset D-Bus session environment.
4772 (Fdbus_init_bus): Pass the bus as argument to
4773 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4774
8932b1c2
CY
47752010-01-01 Chong Yidong <cyd@stupidchicken.com>
4776
87231e2c
CY
4777 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4778
4801c5fa
CY
4779 * lread.c (syms_of_lread): Make it clearer that these are the
4780 names of loaded files (Bug#5068).
4781
8932b1c2
CY
4782 * eval.c (run_hook_with_args): Handle the case where the global
4783 value has the obsolete single-function form (Bug#5026).
4784
11e3c684
CY
47852009-12-27 Chong Yidong <cyd@stupidchicken.com>
4786
4787 * minibuf.c (Fall_completions): Minor optimization.
4788
5b28ce35
EZ
47892009-12-26 Eli Zaretskii <eliz@gnu.org>
4790
5ce6e4f4
JB
4791 * .gdbinit (pgx): Fix display of composite glyphs.
4792 Display cmp.from and cmp.to as well.
4793 (pitx): Fix last change.
5b28ce35 4794
bcffff46
KH
47952009-12-25 Kenichi Handa <handa@m17n.org>
4796
4797 * composite.h (composition_adjust_point): Update prototype.
4798
4799 * composite.c (composition_reseat_it): Don't make a composition
4800 spanning over point.
4801 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4802 composable characters.
4803 (composition_adjust_point): New arg NEW_PT. Callers changed.
4804
4805 * keyboard.c (command_loop_1): Force redisplay if the last point
4806 was within a composition.
4807 (adjust_point_for_property): Don't adjust point for automatic
4808 composition when called after buffer modification.
4809
3f670e9a
EZ
48102009-12-19 Eli Zaretskii <eliz@gnu.org>
4811
5ce6e4f4
JB
4812 * .gdbinit (pitx): Don't use enum names, use their values.
4813 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4814 (pgx): Don't use enum names, use their values.
4815 (pitmethod): New helper command.
4816 (pitx): Use it to display iteration method.
4817 (pgrowit): New command.
4818
ad903955
EZ
4819 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4820
3f670e9a
EZ
4821 Update dependencies in Makefile.in.
4822
4823 * Makefile.in (alloc.o): Depend on termhooks.h.
4824 (atimer.o): Depend on blockinput.h.
4825 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4826 and frame.h.
4827 (callint.o): Depend on systime.h, coding.h, and composite.h.
4828 (callproc.o): Depend on buffer.h.
4829 (casefiddle.o): Don't depend on charset.h.
4830 (casetab.o): Depend on character.h.
4831 (ccl.o): Depend on composite.h.
4832 (chartab.o): Depend on ccl.h.
4833 (cm.o): Depend on dispextern.h.
4834 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4835 (coding.o): Don't depend on $(INTERVALS_H).
4836 (composite.o): Don't depend on dispextern.h explicitly (it's in
4837 $(INTERVALS_H)). Depend on ccl.h.
4838 (data.o): Depend on systime.h, coding.h, composite.h,
4839 dispextern.h, font.h, and ccl.h.
4840 (dired.o): Depend on composite.h.
4841 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4842 composite.h (it's in $(INTERVALS_H)).
4843 (doc.o): Depend on systime.h, coding.h, and composite.h.
4844 (editfns.o): Don't depend explicitly on dispextern.h.
4845 (emacs.o): Depend on frame.h and coding.h.
4846 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4847 (fileio.o): Depend on frame.h and commands.h. Don't depend
4848 explicitly on dispextern.h.
4849 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4850 composite.h.
4851 (fns.o): Don't depend on termhooks.h.
4852 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4853 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4854 coding.h, $(INTERVALS_H), window.h, xterm.h.
4855 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4856 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4857 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4858 fontset.h, ccl.h, and ftfont.h.
4859 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4860 (gtkutil.o): Depend on dispextern.h and composite.h.
4861 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4862 termhooks.h, and ccl.h.
4863 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4864 (intervals.o): Depend on systime.h and coding.h.
4865 (keyboard.o): Depend on composite.h and coding.h.
4866 (keymap.o): Depend on coding.h and frame.h.
4867 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4868 (macros.o): Depend on systime.h, coding.h, and composite.h.
4869 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4870 and atimer.h.
4871 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4872 dispextern.h explicitly.
0b5397c2
SM
4873 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4874 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4875 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4876 (regex.o): Don't depend on charset.h.
4877 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4878 (search.o): Don't depend explicitly on composite.h.
4879 (sound.o): Depend on atimer.h and systime.h.
4880 (syntax.o): Don't depend explicitly on composite.h.
4881 (sysdep.o): Depend on coding.h and composite.h.
4882 (term.o): Depend on xterm.h and buffer.h.
4883 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4884 (textprop.o): Don't depend on dispextern.h explicitly.
4885 (undo.o): Depend on dispextern.h.
4886 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4887 dispextern.h and composite.h explicitly.
4888 (xdisp.o): Depend on ccl.h.
4889 (xfaces.o): Depend on coding.h and ccl.h.
4890 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4891 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4892 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4893 ftfont.h.
4894 (xgselect.o): New dependency.
4895 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4896 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4897 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4898 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4899 (xsmfns.o): Depend on frame.h and dispextern.h.
4900 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4901 sysselect.h.
4902
7a6f7fea
AS
49032009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4904
4905 * font.c (Fclear_font_cache): Pass correct cache argument to
4906 font_clear_cache.
4907
f4c21026
AS
49082009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4909
4910 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4911 twice.
4912
f7ab0997
CY
49132009-12-15 Chong Yidong <cyd@stupidchicken.com>
4914
4915 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4916 calling file-remote-p. Reported by Jim Meyering.
4917
fa8e045a
MA
49182009-12-15 Michael Albinus <michael.albinus@gmx.de>
4919
4920 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4921 avoid compiler warnings. (Bug #5217)
fa8e045a 4922
a63dba42
KH
49232009-12-14 Kenichi Handa <handa@m17n.org>
4924
4925 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4926 in 8-bit encoding.
4927
5ce6e4f4 49282009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4929
4930 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4931 tooltip windows.
4932
223e5fc6
JD
49332009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4934
36acb2a7
JD
4935 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4936 Xatom_net_window_type.
4937
4938 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4939 Xatom_net_window_type.
4940
b8f00677
JD
4941 * xterm.c (my_log_handler): New function.
4942 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4943 so we can filter out buggy messages. (Bug #5120).
b8f00677 4944
e5f0bc9a
JD
4945 * xterm.c (xg_scroll_callback): Parameter list changed,
4946 use parameter GtkScrollType to determine scroll/line/page.
4947 Only allow dragging if a button < 4 is grabbed (bug #5177).
4948 (xg_end_scroll_callback): New function.
4949 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4950 xg_create_scroll_bar.
4951
4952 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4953 (scroll_end_callback): Remove.
4954 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4955 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4956 bug #5177.
e5f0bc9a
JD
4957 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4958 bug #5177.
4959
4960 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4961 (xg_create_scroll_bar): Add GCallback end_callback.
4962
223e5fc6
JD
4963 * xftfont.c (QClcdfilter): New variable.
4964 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4965 (syms_of_xftfont): Initialize QClcdfilter.
4966
3c055b77
JD
49672009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4968
4969 * xsettings.c (struct xsettings): Add member seen.
4970 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4971 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4972 (apply_xft_settings): Only update Xft settings with what member seen
4973 indicates as new.
4974
05fe33ff
EZ
49752009-12-12 Eli Zaretskii <eliz@gnu.org>
4976
c4cc8b9a 4977 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4978 (struct glyph): Use EMACS_INT for charpos.
4979 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4980 region_beg_charpos, region_end_charpos,
4981 redisplay_end_trigger_charpos, and also for
4982 iterator_stack_entry.end_charpos and
4983 iterator_stack_entry.stop_charpos.
4984
e8d7886a
JD
49852009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4986
5ce6e4f4 4987 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4988 (xg_create_scroll_bar): Call scroll_end_callback on button release
4989 event (bug #5177).
4990 (xg_event_is_for_scrollbar): != replaced with ==.
4991
d0db2ec8
KH
49922009-12-12 Kenichi Handa <handa@m17n.org>
4993
4994 * ftfont.c (struct ftfont_info): New member matrix.
4995 (ftfont_open): Setup xftfont_info->matrix.
4996 (MFLTFontFT): New member matrix.
4997 (FLOOR, CEIL, ROUND): New macros.
4998 (ftfont_get_metrics): Handle matrix transformation.
4999 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5000
5001 * xftfont.c (struct xftfont_info): New member matrix.
5002 (xftfont_open): Setup xftfont_info->matrix.
5003
50042009-12-10 Kenichi Handa <handa@m17n.org>
5005
5006 * xdisp.c (append_space_for_newline): Consider face-remapping.
5007
2cc7b62f
AS
50082009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5009
b87dd913
AS
5010 * xsettings.c: Include "keyboard.h".
5011
eba5eb94
AS
5012 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5013
2cc7b62f
AS
5014 Fix implicit function declarations.
5015 * cmds.c: Include "frame.h".
5016 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5017 * frame.h: Move declaration of delete_frame outside of
5018 HAVE_WINDOW_SYSTEM.
5019
a4ef73c8
CY
50202009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5021
5022 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5023
5024 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5025 GTK builds.
5026
944a300c
AS
50272009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5028
5029 * unexelf.c (unexec): Don't search for .data twice.
5030
022eef62
CY
50312009-12-05 Chong Yidong <cyd@stupidchicken.com>
5032
426ac949
CY
5033 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5034 if push failed.
5035 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5036 of push_display_prop (Bug#5000).
5037
022eef62
CY
5038 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5039 value of font_list_entities (Bug#5085).
5040
be95bee9
JB
50412009-12-04 Juanma Barranquero <lekktu@gmail.com>
5042
5043 Fix `string-to-number' to deal consistently with integers and floats.
5044 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5045 trailing characters, not just whitespace.
5046 (read1): Pass new arg 0 to keep old behavior.
5047 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5048 trailing chars, as it is already done for integers. Doc fixes.
5049 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5050
24c2d7ce
EZ
50512009-12-04 Eli Zaretskii <eliz@gnu.org>
5052
0b5397c2
SM
5053 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5054 Delete unused enumeration value.
24c2d7ce 5055
7e694795
EZ
50562009-12-03 Eli Zaretskii <eliz@gnu.org>
5057
5058 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5059
84b31826
SM
50602009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5061
5062 * process.c (Fmake_network_process): Fix up the tests for
5063 "connectionless socket", so they DTRT for seqpacket sockets as well.
5064
f00c449b
SM
50652009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5066
5067 * process.c (Qseqpacket): New symbol.
5068 (HAVE_SEQPACKET): New macro.
5069 (Fmake_network_process): Accept new :type `seqpacket'.
5070 (init_process): Add `seqpacket' feature when applicable.
5071 (syms_of_process): Initialize Qseqpacket.
5072
8096a0ff
YM
50732009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5074
5075 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5076 if entity is Qnil.
5077
3e0de07f
SM
50782009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5079
5080 * print.c (print_preprocess): Preprocess the key_and_value table of
5081 hashtables, even tho they're "hidden" (bug#5082).
5082
abeafb2a
JD
50832009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5084
5085 * frame.c (frame_make_pointer_invisible)
5086 (frame_make_pointer_visible): Declare f before statements.
5087
4bf47195
EZ
50882009-11-28 Eli Zaretskii <eliz@gnu.org>
5089
5090 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5091 omitted dependencies on lisp.h.
5092
c525b3f2
JD
50932009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5094
ece2d4ed
JD
5095 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5096 is NULL.
5097
5098 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5099
5100 * frame.c (frame_make_pointer_invisible)
3e0de07f 5101 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5102 frame.
5103
c525b3f2
JD
5104 * search.c (simple_search): Remove warning by making *p const.
5105
2f00e299
DN
51062009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5107
5108 * xdisp.c (power_letter): Remove duplicate const.
5109
084b049b
JD
51102009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5111
a1fadc6f
JD
5112 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5113
5ce6e4f4 5114 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5115 defaults (bug #5025).
5116
28259cac
SM
51172009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5118
5119 * insdel.c (adjust_markers_for_delete): Move it in the
5120 right direction! (bug#4803)
5121
e8e14166
YM
51222009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5123
5124 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5125
5126 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5127
86677b58
GM
51282009-11-24 Glenn Morris <rgm@gnu.org>
5129
5130 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5131
581e51e8
JD
51322009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5133
cfc86c7a
JD
5134 * Makefile.in: Must create deps for ecrt0.o in its rule.
5135
581e51e8
JD
5136 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5137 because that is what Gtk+ font dialog understands.
5138
5139 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5140 of Fcopy_sequence.
5141 (font_open_by_name): Put name given into QCname for font-object returned.
5142
5143 * frame.c (x_set_font): Save original font name as frame parameter
5144 font-parameter.
5145
5146 * xsettings.c (set_default_xft_settings): New function.
5147 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5148 is found.
5149
8b264ecb
AS
51502009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5151
5152 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5153 searching backwards through multibyte buffer.
5154
872870b2
JD
51552009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5156
5157 * xterm.c: #include xgselect.h.
5158 (x_initialize): Call xgselect_initialize.
5159
5160 * xsettings.c (something_changedCB): C++ comments => C comments.
5161 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5162 does that now.
5163
5164 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5165 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5166 (scroll_bar_button_cb): Remove.
5ce6e4f4 5167 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5168 event.
5169 (xg_create_scroll_bar): Don't bind button-press-event and
5170 button-release-event.
5171
5172 * process.c: Include xgselect.h if defined (USE_GTK) ||
5173 defined (HAVE_GCONF).
5174 (wait_reading_process_output): Call xg_select for the same condition.
5175
5176 * xgselect.c (xg_select): New function to better integrate with
5177 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5178
5179 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5180
5181 * Makefile.in (XOBJ): Add xgselect.o.
5182
62a6e103
AS
51832009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5184
0b5397c2
SM
5185 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5186 Remove ignored second argument. All callers changed.
62a6e103
AS
5187 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5188 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5189 * xdisp.c (string_char_and_length): Likewise.
5190
b0ca0f33
DN
51912009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5192
5193 * xterm.c (x_new_font):
5194 * print.c (print_object):
5195 * cmds.c (Fself_insert_command): Move declarations before statements.
5196
dd5a6279
CY
51972009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5198
5199 * s/cygwin.h: Remove unneeded linker flags.
5200
4a8e097d
JD
52012009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5202
0d1d0d26
JD
5203 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5204
5205 * xsettings.h: Declare xsettings_get_system_font.
5206
5207 * xsettings.c (xsettings_get_system_font): New function.
5208 (init_gconf): No use initiating gconf unless we have Xft also.
5209 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5210 HAVE_GCONF.
5211
4a8e097d
JD
5212 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5213 add a blank entry so it doesn't collapse into nothing.
5214
8ab1650e
SM
52152009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5216
5217 * lread.c (Funintern): Comment out last change.
5218
82c602f0
RS
52192009-11-19 Richard Stallman <rms@gnu.org>
5220
5221 * lread.c (Funintern): Error if symbol is t or nil.
5222
87e32266
SM
52232009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5224
5225 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5226 representation of Lisp integers.
5227 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5228
1b9ac145
AS
52292009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5230
5231 * lisp.h: Remove declaration of Ffont_get_system_font.
5232 * xfns.c: Move include of "xsettings.h".
5233 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5234
dfb3c4c6
JD
52352009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5236
87e32266
SM
5237 * xsettings.c (something_changedCB, Ffont_get_system_font):
5238 Check use_system_font.
dfb3c4c6
JD
5239 (syms_of_xsettings): DEFVAR font-use-system-font.
5240
9370c1d8
AS
52412009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5242
25fe851a
AS
5243 * xfns.c (x_default_font_parameter): Remove dead assignment.
5244
9370c1d8
AS
5245 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5246
637fa988
JD
52472009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5248
87e32266 5249 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5250 not have FC_LCD_*. #define them if not there.
a6eb20d8 5251
87e32266 5252 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5253
637fa988
JD
5254 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5255
5256 * xterm.c (handle_one_xevent): Call xft_settings_event for
5257 ClientMessage, PropertyNotify and DestroyNotify.
5258 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5259 Call xsettings_initialize.
5260
5261 * xftfont.c (xftfont_fix_match): New function.
5262 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5263 Call xftfont_fix_match after XftFontMatch.
5264
5265 * xfont.c (xfont_driver): Initialize all members.
5266
87e32266
SM
5267 * xfns.c (x_default_font_parameter):
5268 Try font from Ffont_get_system_font.
637fa988
JD
5269 Do not get font from x_default_parameter if we got one from
5270 Ffont_get_system_font.
87e32266 5271 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5272
5273 * w32font.c (w32font_driver): Initialize all members.
5274
5275 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5276
5277 * lisp.h: Declare syms_of_xsettings.
5278
87e32266
SM
5279 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5280 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5281
5282 * ftfont.c (ftfont_filter_properties): New function.
5283
5284 * frame.c (x_set_font): Remove unused variable lval.
5285
87e32266 5286 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5287
5288 * font.c (font_put_extra): Don't return if val is nil, it means
5289 boolean option is off.
5290 (font_parse_fcname): Collect all extra properties in extra_props
5291 and call filter_properties for all drivers with extra_props and
5292 font as parameter.
87e32266
SM
5293 (font_open_entity): Do not use cache, it does not pick up new
5294 fontconfig settings like hinting.
637fa988
JD
5295 (font_load_for_lface): If spec had a name in it, store it in entity.
5296
a73f9c9d 5297 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5298
5299 * config.in: HAVE_GCONF is new.
5300
5301 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5302 xsettings.o is new.
5303
5a942932
KH
53042009-11-17 Kenichi Handa <handa@m17n.org>
5305
5306 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5307 back to the default font in case that no suitable font is found.
5308
b7c7a4d1
SM
53092009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5310
5311 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5312 Suggested by Chad Brown <yandros@mit.edu>.
5313 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5314
072f1e39
JD
53152009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5316
5317 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5318
5d1e70a2
AS
53192009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5320
87e32266 5321 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5322
a53cfbe5
JD
53232009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5324
473a99b7
JD
5325 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5326 has a parent.
5327
a53cfbe5 5328 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5329 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5330
5331 * config.in: Generated (AUTO_DEPEND).
5332
f04bb9b2
MA
53332009-11-13 Michael Albinus <michael.albinus@gmx.de>
5334
b7c7a4d1 5335 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5336 Vdbus_registered_functions_table, because it contains also
5337 properties. Fix docstring.
b7c7a4d1 5338 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5339
8f11f7ec
SM
53402009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5341
5342 * alloc.c (mark_object): Don't reprocess marked strings.
5343 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5344 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5345
8a605fe8
KH
53462009-11-13 Kenichi Handa <handa@m17n.org>
5347
8f11f7ec 5348 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5349 semantics of Vword_combining_categories.
5350 (Vword_combining_categories): Describe the slight change of the
5351 semantics.
5352
241c4680
EZ
53532009-11-13 Eli Zaretskii <eliz@gnu.org>
5354
5355 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5356
5357 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5358
5d58e44c
SM
53592009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5360
5361 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5362
5e13f9d3
JB
53632009-11-12 Juanma Barranquero <lekktu@gmail.com>
5364
5365 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5366
cf54c754
DR
53672009-11-11 David Reitter <david.reitter@gmail.com>
5368
5369 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5370 variables to fix 2009-11-09 change.
5371
a4ada374
DN
53722009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5373
91433552
DN
5374 * process.c (ifflag_def): Make flag_sym constant.
5375 (Fnetwork_interface_info): Use a constant pointer.
5376 (ifflag_table):
5377 * xfns.c (cursor_bits):
5378 * xdisp.c (power_letter):
5379 * termcap.c (speeds, esctab):
5380 * sysdep.c (baud_convert):
5381 * keyboard.c (lispy_accent_codes, modifier_names):
5382 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5383 (jpeg_format, tiff_format, gif_format, svg_format)
5384 (interlace_start, interlace_increment, gs_format):
5385 * gtkutil.c (separator_names):
5386 * fringe.c (swap_nibble):
5387 * fns.c (base64_value_to_char, base64_char_to_value):
5388 * fileio.c (make_temp_name_tbl):
5389 * coding.c (suffixes): Make constant.
5390
f4265f6c
DN
5391 * frame.c (make_initial_frame):
5392 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5393 build_string.
5394 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5395
04420943
DN
5396 * s/freebsd.h:
5397 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5398
0a5d24ae
DN
5399 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5400 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5401
a4ada374
DN
5402 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5403 * xterm.c (syms_of_xterm):
5404 * xfaces.c (syms_of_xfaces):
5405 * xdisp.c (syms_of_xdisp):
5406 * lread.c (syms_of_lread):
5407 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5408 build_string.
91433552 5409
a4ada374
DN
5410 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5411
af98fc7f
SM
54122009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5413
8ab1650e 5414 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5415
e90292a9
JD
54162009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5417
5418 * keyboard.h: Declare timer_check.
5419
5420 * keyboard.c (timer_check_2): New function that does what the old
5421 timer_check did.
5422 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5423 returned, i.e. don't return -1 with timers pending.
5424
5425 * process.c: Remove extern declaration of timer_check.
5426
5427 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5428 even if timer_check returned -1.
5429
af98fc7f
SM
5430 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5431 xg_dialog_data.
e90292a9
JD
5432 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5433 the event loop.
5434 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5435 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5436 Destroy the dialog after xg_dialog_run.
5437
045b83c0
SM
54382009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5439
5440 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5441
1fb99a3a
JD
54422009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5443
5444 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5445
04e452cb
JB
54462009-11-09 Juanma Barranquero <lekktu@gmail.com>
5447
5448 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5449
ef7417fd
SM
54502009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5451
5452 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5453 w32menu.c, and nsmenu.m.
5454 Simplify the obsolete case where position is nil.
5455 (cleanup_popup_menu): New function, moved from nsmenu.m.
5456 (struct skp): Remove slot `notreal'.
5457 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5458 adjust callers.
5459 (single_menu_item): Adjust call to parse_menu_item.
5460 (syms_of_menu): Defsubr x-popup-menu.
5461 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5462 (keymap_panes): Don't export any more.
5463 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5464 (xmenu_show): Declare.
5465 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5466 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5467 * keyboard.h (parse_menu_item): Update declaration.
5468 * xmenu.c (Fx_popup_menu): Remove.
5469 (syms_of_xmenu): Don't defsubr x-popup-menu.
5470 * w32menu.c (Fx_popup_menu): Remove.
5471 (syms_of_w32menu): Don't defsubr x-popup-menu.
5472 * nsmenu.m (cleanup_popup_menu): Remove.
5473 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5474 moved to menu.c's Fx_popup_menu.
5475 (Fx_popup_menu): Remove.
5476 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5477 menu_items (it's done in menu.c already).
5478
424d6179
SM
54792009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5480
5481 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5482 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5483
c0df13a6 54842009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5485
5486 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5487 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5488 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5489 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5490
2de9f71c
SM
54912009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5492
5493 Let integers use up 2 tags to give them one extra bit and thus double
5494 their range.
5495 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5496 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5497 New macros.
5498 (enum Lisp_Type): Use them. Give explicit values.
5499 (Lisp_Type_Limit): Remove.
5500 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5501 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5502 Pay attention to USE_2_TAGS_FOR_INTS.
5503 (INTEGERP): Use LISP_INT_TAG_P.
5504 * fns.c (internal_equal): Simplify the default case.
5505 (sxhash): Use case_Lisp_Int.
5506 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5507 any more.
5508 (Ftype_of): Use case_Lisp_Int.
5509 (store_symval_forwarding): Take into account the fact that Ints can
5510 now have more than one tag.
5511 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5512 buffer_slot_type_mismatch):
5513 * xfaces.c (face_attr_equal_p):
5514 * print.c (print_object):
5515 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5516 Use case_Lisp_Int.
5517
323637a2
EZ
55182009-11-06 Eli Zaretskii <eliz@gnu.org>
5519
7ac65b38
EZ
5520 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5521
323637a2
EZ
5522 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5523 warning.
5524
e511451f
JD
55252009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5526
5527 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5528
5529 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5530
5531 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5532 ButtonPressRelease and MotionNotify (bug#4870).
5533
5e2327cf
DN
55342009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5535
5adc433e
DN
5536 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5537
d67b4f80
DN
5538 * xterm.c (syms_of_xterm):
5539 * xselect.c (syms_of_xselect):
5540 * xmenu.c (syms_of_xmenu):
5541 * xfns.c (syms_of_xfns):
5542 * xfaces.c (syms_of_xfaces):
5543 * xdisp.c (syms_of_xdisp):
5544 * window.c (syms_of_window):
5545 * w32fns.c (syms_of_w32fns):
5546 * undo.c (syms_of_undo):
5547 * textprop.c (syms_of_textprop):
5548 * terminal.c (syms_of_terminal):
5549 * syntax.c (syms_of_syntax):
5550 * sound.c (syms_of_sound):
5551 * search.c (syms_of_search):
5552 * print.c (syms_of_print):
5553 * minibuf.c (syms_of_minibuf):
5554 * macros.c (syms_of_macros):
5555 * keymap.c (syms_of_keymap, initial_define_key)
5556 (initial_define_lispy_key):
5557 * keyboard.c (syms_of_keyboard):
5558 * insdel.c (syms_of_insdel):
5559 * image.c (syms_of_image):
5560 * fringe.c (syms_of_fringe):
5561 * frame.c (syms_of_frame):
5562 * fontset.c (syms_of_fontset):
5563 * fns.c (syms_of_fns):
5564 * fns.c (syms_of_fns):
5565 * fileio.c (syms_of_fileio):
5566 * fileio.c (syms_of_fileio):
5567 * eval.c (syms_of_eval):
5568 * doc.c (syms_of_doc):
5569 * dispnew.c (syms_of_display):
5570 * dired.c (syms_of_dired):
5571 * dbusbind.c (syms_of_dbusbind):
5572 * data.c (syms_of_data):
5573 * composite.c (syms_of_composite):
5574 * coding.c (syms_of_coding):
5575 * cmds.c (syms_of_cmds):
5576 * charset.c (define_charset_internal, syms_of_character):
5577 * ccl.c (syms_of_ccl):
5578 * category.c (syms_of_category, init_category_once):
5579 * casetab.c (syms_of_casetab):
5580 * casefiddle.c (syms_of_casefiddle):
5581 * callint.c (syms_of_callint):
5582 * bytecode.c (syms_of_bytecode):
5583 * buffer.c (keys_of_buffer, syms_of_buffer):
5584 * alloc.c (syms_of_alloc):
5585 * process.c (syms_of_process, init_process):
5586 * lread.c (syms_of_lread, init_obarray):
5587 * font.c (build_style_table):
5588 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5589 intern_c_string, calls to make_pure_string with
5590 make_pure_c_string. Use pure_cons instead of Fcons.
5591
5e2327cf
DN
5592 * process.c (socket_options): Make it const.
5593 (set_socket_option, init_process): Use a const pointer.
5594
5595 * lread.c (intern_c_string): New function.
5596 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5597 (defvar_int): Uset it. Make the name const char*.
5598
5599 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5600 (defvar_int): Update prototypes.
5601 (DEFUN, EXFUN): Support for prototypes is now required.
5602 (intern_c_string): New prototype.
5603 (struct Lisp_Subr): Make symbol_name constant.
5604
5605 * font.c (struct table_entry): Remove unused member. Make NAMES
5606 constant.
5607 (weight_table, slant_table, width_table): Make constant.
5608
5609 * emacs.c (struct standard_args): Make name and longname constant.
5610
5611 * character.h (DEFSYM): Use intern_c_string.
5612
a56eaaef
DN
56132009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5614
5615 * alloc.c (make_pure_c_string): New function.
5616
5617 * eval.c (Fautoload): Purecopy all arguments.
5618
f6a07420
KH
56192009-11-05 Kenichi Handa <handa@m17n.org>
5620
5621 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5622 the buffer in case of replace.
5623
5d28d4b1
DN
56242009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5625
5626 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5627
b349d111
SM
56282009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5629
d528b1ce
SM
5630 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5631 when applicable (bug#4851).
5632
b349d111
SM
5633 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5634 (P_): Support for prototypes is now required.
5635
c38eb027
CY
56362009-10-31 Chong Yidong <cyd@stupidchicken.com>
5637
5638 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5639 (Bug#4827).
5640
0405f8d9
EZ
56412009-10-30 Eli Zaretskii <eliz@gnu.org>
5642
d528b1ce 5643 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5644
ca0a881a
DN
56452009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5646
5647 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5648
d528b1ce
SM
5649 * lread.c (Fload): Purecopy the file name when building
5650 Vpreloaded_file_list.
ca0a881a 5651
47e0e0e4
JR
56522009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5653
5654 * w32fns.c (syms_of_w32fns): Change default value of
5655 w32-scroll-lock-modifier to nil. (Bug#2827)
5656
057bce6f
JB
56572009-10-26 Juanma Barranquero <lekktu@gmail.com>
5658
782a943e 5659 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5660
242bc74c
AS
56612009-10-26 Andreas Schwab <schwab@redhat.com>
5662
5663 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5664
522d013a
JB
56652009-10-26 Juanma Barranquero <lekktu@gmail.com>
5666
5667 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5668 For delta < 0, skip check that only makes sense when the mini-window
5669 is going to be enlarged. (Bug#4534)
5670
18060980
CY
56712009-10-25 Chong Yidong <cyd@stupidchicken.com>
5672
5673 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5674 string in menu maps (Bug#4471).
5675
fec8f0fe
CY
56762009-10-24 Chong Yidong <cyd@stupidchicken.com>
5677
5678 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5679 FRAME_NS_VIEW on terminal frames (Bug#4765).
5680
10d66ec0
AS
56812009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5682
1cae01f7
AS
5683 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5684 DBUS_TYPE_UINTnn separately to get proper sign extension.
5685
58a12889
AS
5686 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5687 can properly handle unsigned types.
d528b1ce 5688 (make_uid, make_gid): Remove.
58a12889 5689
987c9327
AS
5690 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5691 types again.
5692
522d013a 5693 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5694 (system_process_attributes): Likewise.
5695
905a9ed3
DN
56962009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5697
5698 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5699
5700 * eval.c (Fautoload): Purecopy the filename. Simplify.
5701
5702 * category.c (Fdefine_category): Purecopy docstring.
5703
a599b3e8
AS
57042009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5705
7b792fc9
AS
5706 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5707
a599b3e8
AS
5708 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5709
b35ac83e
CY
57102009-10-23 Chong Yidong <cyd@stupidchicken.com>
5711
5712 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5713 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5714 (Bug#4775).
5715
e8903e00
SM
57162009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5717
5718 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5719 (init_fileio_once):
5720 * lisp.h (init_fileio_once): Remove.
5721 * emacs.c (main): Don't call init_fileio_once.
5722
8f43cbf3
DN
57232009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5724
5725 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5726
26898943
AS
57272009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5728
5729 * doprnt.c (doprnt): Fix overflow check.
5730
5c646d5a
JD
57312009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5732
3132a7ea
JD
5733 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5734
5c646d5a
JD
5735 * xterm.h (x_wait_for_event): Declare it.
5736
5737 * xterm.c (pending_event_wait): New variable.
5738 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5739 see pending_event_wait.eventtype.
5740 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5741 (x_new_font): Call change_frame_size with new rows/columns before we
5742 try to resize the frame.
5c646d5a 5743 (x_wait_for_event): New function.
d528b1ce
SM
5744 (x_set_window_size_1): Don't change gravity unless change_gravity
5745 is set.
5c646d5a
JD
5746 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5747 don't change frame size, instead wait for the ConfigureNotify.
5748 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5749 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5750 (x_initialize): Initialize pending_event_wait.
5751
5752 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5753 size.
5754
5755 * widget.c (EmacsFrameSetValues): Add comment.
5756 (EmacsFrameSetCharSize): Just call x_set_window_size.
5757
5758 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5759 x_wait_for_event.
d528b1ce 5760 (flush_and_sync): Remove again.
5c646d5a
JD
5761 (xg_get_font_name): Suggest monospace if no previous font is known.
5762
e9c1637d
SM
57632009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5764
5765 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5766 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5767
5a72cccb
YM
57682009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5769
5770 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5771 processing pending events when event is filtered for input method.
ab04798f 5772 (Bug#3681)
5a72cccb 5773
2629aa37
JB
57742009-10-20 Juanma Barranquero <lekktu@gmail.com>
5775
5776 * fns.c: Add #endif accidentally removed in previous change.
5777
c3417a74
DN
57782009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5779
5780 * fns.c: Remove code for unsupported system: MAC_OS.
5781 * image.c: Likewise. Include setjmp.h.
5782
9685cef2
JD
57832009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5784
5785 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5786 pixel -1 (bug #4742).
5787
d7306fe6
DN
57882009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5789
019d2c4c
DN
5790 * process.c (create_pty): Remove conditionals for no longer
5791 supported systems: UNIPLUS and RTU.
5792
ee6bacd4
DN
5793 * xterm.c:
5794 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5795
d7306fe6
DN
5796 * alloc.c: Do not define struct catchtag.
5797 * eval.c: Move struct catchtag definition ...
5798 * lisp.h: ... here.
5799
5800 * image.c: Move png.h #include earlier to avoid warnings.
5801
5802 * xterm.c:
5803 * xsmfns.c:
5804 * xselect.c:
5805 * xrdb.c:
5806 * xmenu.c:
5807 * xftfont.c:
5808 * xfont.c:
5809 * xfns.c:
5810 * xfaces.c:
5811 * xdisp.c:
5812 * window.c:
5813 * widget.c:
5814 * w32xfns.c:
5815 * w32uniscribe.c:
5816 * w32term.c:
5817 * w32select.c:
5818 * w32reg.c:
5819 * w32proc.c:
5820 * w32menu.c:
5821 * w32inevt.c:
5822 * w32heap.c:
5823 * w32font.c:
5824 * w32fns.c:
5825 * w32console.c:
5826 * w32.c:
5827 * w16select.c:
5828 * vm-limit.c:
5829 * unexsol.c:
5830 * unexec.c:
5831 * unexcw.c:
5832 * unexaix.c:
5833 * undo.c:
5834 * tparam.c:
5835 * textprop.c:
5836 * terminfo.c:
5837 * terminal.c:
5838 * termcap.c:
5839 * term.c:
5840 * syntax.c:
5841 * sound.c:
5842 * sheap.c:
5843 * search.c:
5844 * scroll.c:
5845 * region-cache.c:
5846 * regex.c:
5847 * ralloc.c:
5848 * process.c:
5849 * print.c:
b024548b
DN
5850 * nsterm.m:
5851 * nsselect.m:
5852 * nsmenu.m:
5853 * nsimage.m:
5854 * nsfont.m:
5855 * nsfns.m:
d7306fe6
DN
5856 * msdos.c:
5857 * minibuf.c:
5858 * menu.c:
5859 * marker.c:
5860 * macros.c:
5861 * keymap.c:
5862 * keyboard.c:
5863 * intervals.c:
5864 * insdel.c:
5865 * indent.c:
5866 * gtkutil.c:
5867 * ftxfont.c:
5868 * ftfont.c:
5869 * fringe.c:
5870 * frame.c:
5871 * fontset.c:
5872 * font.c:
5873 * fns.c:
5874 * floatfns.c:
5875 * filelock.c:
5876 * fileio.c:
5877 * emacs.c:
5878 * editfns.c:
5879 * dosfns.c:
5880 * doprnt.c:
5881 * doc.c:
5882 * dispnew.c:
5883 * dired.c:
5884 * dbusbind.c:
5885 * data.c:
5886 * composite.c:
5887 * coding.c:
5888 * cmds.c:
5889 * cm.c:
5890 * chartab.c:
5891 * charset.c:
5892 * character.c:
5893 * ccl.c:
5894 * category.c:
5895 * casetab.c:
5896 * casefiddle.c:
5897 * callproc.c:
5898 * callint.c:
5899 * bytecode.c:
5900 * buffer.c:
5901 * atimer.c: Include setjmp.h. (Bug#4643)
5902
fd5f21e6
SM
59032009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5904
4c0354d7
SM
5905 Remove leftover table unibyte_to_multibyte_table.
5906 * character.c (unibyte_to_multibyte_table): Remove.
5907 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5908 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5909 * character.h (UNIBYTE_TO_CHAR): New macro.
5910 (MAKE_CHAR_MULTIBYTE): Use it.
5911 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5912 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5913 (message_dolog, set_message_1):
5914 * search.c (Freplace_match):
5915 * editfns.c (Fcompare_buffer_substrings):
5916 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5917 (concat):
5918 * insdel.c (copy_text, count_size_as_multibyte):
5919 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5920 * term.c (produce_glyphs):
5921 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5922 * regex.c (RE_CHAR_TO_MULTIBYTE):
5923 * cmds.c (internal_self_insert):
5924 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5925
fd5f21e6
SM
5926 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5927
4418646e
DN
59282009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5929
5930 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5931
35f5c1d2
JB
59322009-10-16 Juanma Barranquero <lekktu@gmail.com>
5933
5934 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5935
a0cd8f6b
AR
59362009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5937
5938 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5939 still needed under Tiger.
5940
5941 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5942
5943 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5944 __Apple__.
5945
5946 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5947
01a8d3fa
KH
59482009-10-15 Kenichi Handa <handa@m17n.org>
5949
5950 * print.c (print_object): Escape a symbol like "2E10" too.
5951
bf6c75c9 59522009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5953
5954 Cleanups and changes for 64-bit compile under Snow Leopard.
5955 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5956
5957 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5958
c5959062 5959 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5960 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5961 cast argument.
5962 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5963 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5964
5965 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5966
5967 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5968 where appropriate.
5969
5970 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5971 where appropriate.
6e4780c5
JB
5972 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5973 Use stringWithUTF8String.
bf6c75c9
AR
5974 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5975
6e4780c5
JB
5976 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5977 Add formal protocol mention to inheritance.
bf6c75c9
AR
5978 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5979
6e4780c5
JB
5980 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5981 Fix printf format.
bf6c75c9
AR
5982 (ns_query_color): Use CGFloat where appropriate.
5983 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5984 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5985 argument.
5986
3d87f118
AR
5987 * config.in (NS_HAVE_NSINTEGER): Drop.
5988
a95c8102
AR
5989 * dbusbind.c (dbus-method-return-internal)
5990 (dbus-method-error-internal): Use long format in printf, and cast
5991 argument.
5992
5993 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5994 in printf, and cast argument.
5995
6873acca 5996 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5997 cast argument.
5998
9ec6f100
GM
59992009-10-11 Glenn Morris <rgm@gnu.org>
6000
6001 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6002
5be883cd
JD
60032009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6004
6005 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6006 menu bar with a small width so it doesn't enlarge the frame.
6007
d7a39b51
JB
60082009-10-08 Juanma Barranquero <lekktu@gmail.com>
6009
6010 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6011
0c2b6f8e
GM
60122009-10-06 Glenn Morris <rgm@gnu.org>
6013
6014 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6015 SOME_MACHINE_LISP (this enters indirectly via DOC).
6016
e02131a2
EZ
60172009-10-05 Eli Zaretskii <eliz@gnu.org>
6018
6019 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6020
b4744254
EZ
60212009-10-04 Eli Zaretskii <eliz@gnu.org>
6022
6023 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6024 Doc fix.
6025
dbf64827
JB
60262009-10-03 Martin Rudalics <rudalics@gmx.at>
6027
6028 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6029
e9a0aef8
MA
60302009-10-02 Michael Albinus <michael.albinus@gmx.de>
6031
d528b1ce 6032 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6033 used anymore outside fileio.c.
6034
6035 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6036
64eb2b56
JB
60372009-10-01 Juanma Barranquero <lekktu@gmail.com>
6038
6039 * lisp.h (Qdelete_directory_internal):
6040 Declare, instead of Qdelete_directory.
6041
6042 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6043
9d28c33e
SM
60442009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6045
6046 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6047
9d8f3bd9
MA
60482009-10-01 Michael Albinus <michael.albinus@gmx.de>
6049
9d28c33e 6050 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6051 Fdelete_directory. It is not a command anymore. It has no file
6052 name handler.
6053
9694740b
SM
60542009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6055
6056 * xdisp.c (get_next_display_element): Use an enum in last change.
6057
748e162f
KH
60582009-09-28 Kenichi Handa <handa@m17n.org>
6059
9694740b 6060 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6061 unibyte_display_via_language_environment in handling
6062 Vnobreak_char_display.
6063
17efd58d
AR
60642009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6065
6066 * nsterm.h (ns_app_name): New extern variable.
6067
6068 * nsterm.m (ns_app_name): New variable.
6069 (ns_term_init): Set and use it.
6070 (ns_term_shutdown): Use it.
6071
6072 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6073 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6074
6075 * nsfns.m (ns_set_name_iconic, ns_set_name)
6076 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6077 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6078
9694740b
SM
6079 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6080 Remove double-casting in client_data comparison.
31c2d412 6081
3208cb35
YM
60822009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6083
6084 * keyboard.c (make_lispy_event): Remember last wheel direction.
6085 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6086
b7d552d6
GM
60872009-09-26 Glenn Morris <rgm@gnu.org>
6088
6089 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6090 internal.elc. Add term/pc-win.elc.
6091 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6092 term/x-win.elc.
6093 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6094 term/w32-win.elc.
6095 (NS_SUPPORT): New.
6096 (lisp): Add NS_SUPPORT.
6097 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6098
4ff670a8
DR
60992009-09-25 David Reitter <david.reitter@gmail.com>
6100
6101 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6102 on Mac OS X 10.6+ (bug#4513).
6103
feabfb6c
JB
61042009-09-24 Juanma Barranquero <lekktu@gmail.com>
6105
6106 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6107 some parts of Emacs code (like font selection) don't grok them.
6108 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6109
de59072a
AS
61102009-09-24 Andreas Schwab <schwab@redhat.com>
6111
6112 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6113
a489517b
JB
61142009-09-24 Juanma Barranquero <lekktu@gmail.com>
6115
6116 * dired.c (Fdirectory_files): Fix typo in docstring.
6117
0592970c
AR
61182009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6119
6120 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6121 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6122 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6123 under GNUstep.
6124 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6125
6126 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6127 glyph advancement.
6128
48e8a88b
AR
61292009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6130
6131 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6132 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6133
6134 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6135 deleted (bug #4492).
6136
e14f0a78
AR
6137 * nsfont.m (Vns_reg_to_script): New lisp variable.
6138 (syms_of_nsfont): Declare it.
6139 (ns_registry_to_script): New function.
6140 (ns_get_req_script): Call it.
6141 (ns_findfonts): Don't give up on non-unicode registry.
6142
6143 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6144
5b650faa
SM
61452009-09-20 Tom Tromey <tromey@redhat.com>
6146
6147 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6148 batch mode (bug#4228).
6149
a489517b 61502009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6151
6152 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6153 carefully. (Bug #4339)
0bae4e09 6154
fcfe06f3
CY
61552009-09-18 Chong Yidong <cyd@stupidchicken.com>
6156
d798ba87 6157 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6158
31642728
AR
61592009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6160
6161 * emacs.c (inhibit_x_resources): Update doc string for NS.
6162 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6163 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6164
6165 * nsterm.h (ns_no_defaults): Remove.
6166
6167 * nsterm.m (ns_no_defaults): Remove.
6168 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6169 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6170 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6171 don't update the NSWindow itself.
6172 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6173 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6174
6175 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6176 ns_use_qd_smoothing.
6177
6178 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6179 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6180 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6181 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6182
8686ac71
JB
61832009-09-17 Juanma Barranquero <lekktu@gmail.com>
6184
6185 * emacs.c (inhibit_x_resources): New variable.
6186 (main) [HAVE_NS]: Don't process --quick command line option.
6187 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6188
6189 * lisp.h (inhibit_x_resources): Declare it extern.
6190
6191 * w32reg.c (x_get_string_resource):
6192 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6193
e227ba05
EZ
61942009-09-17 Eli Zaretskii <eliz@gnu.org>
6195
362654a6
JB
6196 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6197 Add lisp/term/internal.elc.
e227ba05 6198
742d40e8
SM
61992009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6200
6201 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6202 (bug#4461).
6203
005bd5a2
DN
62042009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6205
6206 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6207
6208 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6209 (OBJECTS_MACHINE): Remove, unused.
6210
f9af9719
SM
62112009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6212
6213 * frame.c (x_get_resource_string): Remove unused.
6214
0307c7d2
JD
62152009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6216
6217 * xterm.c (x_new_font): Call change_frame_size before calling
6218 x_set_window_size, in case frame size won't change.
6219
6220 * frame.c (x_set_font): Remove dead code.
6221
428b13d6
SM
62222009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6223
6224 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6225
5766c380
SM
62262009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6227
6228 * lread.c (Fload): Don't output a message after loading an obsolete
6229 package any more (done in Lisp now).
6230
2fd0161b
CY
62312009-09-12 Chong Yidong <cyd@stupidchicken.com>
6232
6233 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6234
bc5e75b6
SM
62352009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6236
6237 * keymap.c (Fwhere_is_internal): Use nconc2.
6238
c31c985e
AM
62392009-09-11 Alan Mackenzie <acm@muc.de>
6240
6241 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6242 batch mode.
6243
78012bd2
AS
62442009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6245
6246 * xdisp.c (display_mode_element): Detect cycles.
6247
9d889332
SM
62482009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6249
6250 * keymap.c (where_is_internal): Don't erroneously return nil right after
6251 filling the cache.
6252 (where_is_internal_1): Fix up typo.
6253
7ab5d780
GM
62542009-09-11 Glenn Morris <rgm@gnu.org>
6255
6256 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6257 share a common doc-string.
6258
5238a749
SM
62592009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6260
66d77eda
SM
6261 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6262 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6263
5238a749
SM
6264 * keymap.c (QCadvertised_binding): New constant.
6265 (syms_of_keymap): Initialize it.
6266 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6267 if applicable.
6268
19f48442
SM
62692009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6270
50d4ba39
SM
6271 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6272 (parse_menu_item): Streamline since bindings are recomputed all the
6273 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6274 more and don't support lmenu's menu-alias any more either.
6275
a88a5372
SM
6276 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6277 (where_is_internal): Strip it down to only traverse the keymaps.
6278 Move the cache handling from Fwhere_is_internal to here.
6279 (Fwhere_is_internal): Move the handling of remapping and the choice of
6280 the best binding from where_is_internal to here.
6281 Unify the cached/noncached paths, so remapping is also handled
6282 correctly when the cache is used, and so the cache can be used to
6283 speed up remap-handling when applicable.
6284 Give preference to non-remapped bindings.
6285 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6286 non-remapped bindings.
6287 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6288 command remapping.
6289
19f48442
SM
6290 * xdisp.c (display_mode_element): Move list length limit from 50 to
6291 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6292
599498c3 62932009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6294
6295 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6296
f9b7b5ac
SM
62972009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6298
a53af587
JB
6299 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6300 (Bug#4334)
6301
f9b7b5ac
SM
6302 * keymap.c (where_is_internal): Filter out shadowed remappings.
6303 Assume that where_is_internal returns unshadowed bindings to simplify
6304 the code and get rid of the gotos. Use ASIZE.
6305
04f4b72d
JD
63062009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6307
4da146f2
JD
6308 * xterm.c (x_focus_changed): If we get a focusout and pointer
6309 is invisible, make it visible.
6310
04f4b72d
JD
6311 * xterm.h: Remove condition for declaration of
6312 x_*_window_to_frame.
6313
7cef7ce3
SM
63142009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6315
6316 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6317 initial terminal as well.
6318
a54fa5b7
JD
63192009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6320
6321 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6322 x_menubar_window_to_frame.
a54fa5b7 6323
50426a04 6324 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6325 (XTmouse_position): Do not return valid positions
6326 for clicks in the menubar and the toolbar for Gtk+.
6327
6328 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6329 if the widget for the event has the same top level as a frame,
6330 return the frame.
6331 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6332 internal windows, bug #4122.
6333 (x_non_menubar_window_to_frame): Remove.
6334
5a021dd0
GM
63352009-09-02 Glenn Morris <rgm@gnu.org>
6336
6337 * buffer.c (default-major-mode): Move most of the doc from here...
6338 (major-mode): ... to here.
6339
548fe2f3
NR
63402009-08-30 Nick Roberts <nickrob@snap.net.nz>
6341
6342 * process.c (wait_reading_process_output): Keep the descriptor
6343 when pty is used by a non-child process, e.g., in I/O buffer of
6344 GDB this allows inferior to be restarted.
6345
e0840eef
EZ
63462009-08-29 Eli Zaretskii <eliz@gnu.org>
6347
6348 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6349 both branches into one.
6350
82e98df4
SM
63512009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6352
6353 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6354 (main): Use enable-multibyte-characters rather than
6355 default-enable-multibyte-characters. Output a warning message when
6356 running a unibyte session.
6357
890617cb
YM
63582009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6359
6360 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6361 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6362 (copy_data_segment): Also copy __program_vars section.
6363 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6364 (dump_it) [LC_DYLD_INFO]: Use it.
6365
6366 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6367
e7adeadc
EZ
63682009-08-28 Eli Zaretskii <eliz@gnu.org>
6369
6370 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6371 $(SRC)/buildobj.h.
6372 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6373 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6374 $(SRC)/buildobj.h.
6375 (clean): Add buildobj.h.
6376
3ed8bbdc
TZ
63772009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6378
6379 * print.c (print_object): Set escapeflag to 1 when printing
6380 hashtable keys and values.
6381
155a6764
SM
63822009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6383
6384 * lread.c (read_integer): Use doubles (and potentially return a float
6385 number) as we do in string-to-number.
6386 (read1): Use strtol to read integers, signal errors on strtol's
6387 overflow and use floats if strtol's output is too large for
6388 Elisp integers.
6389
877610de
EZ
63902009-08-27 Eli Zaretskii <eliz@gnu.org>
6391
6392 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6393 (make-buildobj-SH): Fix last change.
6394 (SRC): Move to before where it's first used.
6395
ef73e7be
KH
63962009-08-27 Kenichi Handa <handa@m17n.org>
6397
550c8289
KH
6398 * process.c (send_process): Use encode_coding_object instead of
6399 encode_coding_string to perform eol-conversion even if the string
6400 is unibyte.
6401
60afa08d
KH
6402 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6403 character.
6404
ef73e7be 6405 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6406 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6407
7b3a82d7
DN
64082009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6409
5654bf63
DN
6410 * callproc.c (Fcall_process): Remove always true #if.
6411
7b3a82d7
DN
6412 * lisp.h: Replace #if 0 code for checking with text pointing to
6413 the --enable-checking configure flag.
6414
6415 * emacs.c (main): Mention the --enable-profiling configure flag
6416 instead of using CFLAGS.
6417
878bde49
KR
64182009-08-26 Ken Raeburn <raeburn@raeburn.org>
6419
6420 * Makefile.in (buildobj.h): New target.
6421 (doc.o): Depend on it.
6422 (temacs${EXEEXT}): Don't generate buildobj.lst.
6423 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6424 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6425 ($(BLD)/doc.$(O)): Depend on it.
6426 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6427 provided by Eli Zaretskii.)
6428 ($(TEMACS)): Don't generate buildobj.lst.
6429 * doc.c: Include buildobj.h.
6430 (buildobj): New static variable.
6431 (Fsnarf_documentation): Use it, instead of opening and reading
6432 buildobj.lst.
6433
1574224c
MA
64342009-08-25 Michael Albinus <michael.albinus@gmx.de>
6435
6436 * dbusbind.c (Fdbus_call_method)
6437 (Fdbus_call_method_asynchronously): Use English numeric format for
6438 timeout values in doc string.
6439
d9da2f45
KH
64402009-08-25 Kenichi Handa <handa@m17n.org>
6441
ef73e7be
KH
6442 * alloc.c (mark_char_table): New function.
6443 (mark_object): Use mark_char_table for a char-table.
6444
d9da2f45
KH
6445 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6446 (CHAR_TABLE_REF): Use it.
6447
c8edcc01
KR
64482009-08-23 Ken Raeburn <raeburn@raeburn.org>
6449
6450 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6451 before invoking the newly build emacs to check for load-path
6452 shadowing.
6453
7763401b
GM
64542009-08-22 Glenn Morris <rgm@gnu.org>
6455
6456 * Makefile.in (bootstrap_exe): New variable.
6457 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6458 Use ${bootstrap_exe}.
6459
729eadda
EZ
64602009-08-22 Eli Zaretskii <eliz@gnu.org>
6461
6462 * coding.h (encode_coding_string): Don't encode unibyte strings.
6463 (Bug#4047)
6464
eb4c6ace
MA
64652009-08-22 Michael Albinus <michael.albinus@gmx.de>
6466
6467 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6468
6469 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6470 intended as hotfix only.
6471 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6472
36e34d1b
AR
64732009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6474
6475 * nsterm.m (ns_get_color): Update documentation properly for last
6476 change, and clean up loose ends in the code left by it. Fix
6477 longstanding bug with 16-bit hex parsing, and add support for
6478 yet another X11 format (rgb:r/g/b) for compatibility.
6479 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6480 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6481
f983eb8a
SM
64822009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6483
6484 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6485
3f56d3c6
MA
64862009-08-20 Michael Albinus <michael.albinus@gmx.de>
6487
6488 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6489 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6490 (xd_initialize, xd_pending_messages): Check, whether
6491 $DBUS_SESSION_BUS_ADDRESS is set.
6492
fb641d68
YM
64932009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6494
6495 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6496
6497 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6498
cf59a374
GM
64992009-08-20 Glenn Morris <rgm@gnu.org>
6500
6501 * emacs.c (system-type): Doc fix.
6502
1373f3be
SM
65032009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6504
6505 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6506 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6507
058ed861
MA
65082009-08-18 Michael Albinus <michael.albinus@gmx.de>
6509
1373f3be
SM
6510 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6511 New functions.
058ed861
MA
6512 (xd_initialize): Revert change from 2009-08-16.
6513
563a866e 65142009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6515
6516 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6517 font-group vector, return nil.
5fc05db0 6518
e42bdf01
CY
65192009-08-17 Chong Yidong <cyd@stupidchicken.com>
6520
6521 * process.c (status_notify): Don't perform redisplay.
6522 (Fdelete_process, list_processes_1, process_send_signal):
6523 Expliticly perform redisplay.
6524 (wait_reading_process_output): Always check process status, but
6525 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6526
4230ab74
KR
65272009-08-17 Ken Raeburn <raeburn@raeburn.org>
6528
1373f3be 6529 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6530 (XFLOAT_INIT): New macro for storing a float value.
6531 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6532 * fns.c (sxhash): Copy out the value of a float in order to
6533 examine its bytes.
6534 * dbusbind.c (xd_append_arg): Likewise.
6535
4230ab74
KR
6536 * emacs.c (main): Don't call syms_of_data twice.
6537
a0645cdd
MA
65382009-08-16 Michael Albinus <michael.albinus@gmx.de>
6539
6540 * dbusbind.c (xd_initialize): Add connection file descriptor to
6541 input_wait_mask, in order to let select() detect, whether a new
6542 message has been arrived.
ca4f31ea 6543 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6544
485db0ba
MA
65452009-08-15 Michael Albinus <michael.albinus@gmx.de>
6546
1373f3be
SM
6547 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6548 New functions.
485db0ba
MA
6549
6550 * lisp.h (xd_pending_messages): Declare.
6551
6552 * keyboard.c (readable_events): Call xd_pending_messages.
6553
b5b98ff4
CY
65542009-08-15 Chong Yidong <cyd@stupidchicken.com>
6555
1373f3be 6556 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6557
f8354c6e
CY
6558 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6559
b5b98ff4
CY
6560 * buffer.c (set_buffer_internal_1)
6561 (swap_out_buffer_local_variables): Check for unbound local
6562 variables (Bug#4138).
6563
8b9fc636
EZ
65642009-08-14 Eli Zaretskii <eliz@gnu.org>
6565
6566 * process.c (create_pty): Fix last change.
6567
ce959360
CY
65682009-08-13 Chong Yidong <cyd@stupidchicken.com>
6569
6570 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6571 (xbm_load_image): Caller changed.
64b807c9 6572 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6573
c7baf7e9
NR
65742009-08-13 Nick Roberts <nickrob@snap.net.nz>
6575
6576 * process.c (create_pty): New function.
6577 (Fstart_process): Use it to allow Emacs to just associate a pty
6578 with the buffer. See associated change in gdb-mi.el.
6579 (list_processes_1): Deal with no program name.
6580 (start_process_unwind): Use pid == -2 to mean no process.
6581
1ac9108a
SM
65822009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6583
6584 * cmds.c (nonundocount): New global variable.
6585 (keys_of_cmds): Initialize it.
6586 (Fself_insert_command): Use it to combine upto 20 sequential chars
6587 into a single undo entry, just like the Qself_insert_command code in
6588 keyboard.c does.
6589 Call frame_make_pointer_invisible, also like the Qself_insert_command
6590 code in keyboard.c does.
6591 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6592 than its own local replacement for it.
6593
e267324c
KR
65942009-08-10 Ken Raeburn <raeburn@raeburn.org>
6595
1ac9108a 6596 * fns.c (concat): Don't re-set string length to its current value.
77437343 6597
1ac9108a
SM
6598 * coding.h (decode_coding_string, encode_coding_string):
6599 Use SBYTES macro.
f0bed503 6600
1ac9108a 6601 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6602 (doprnt): Merge with doprnt1, discarding lispstrings code.
6603 * lisp.h (doprnt_lisp): Don't declare.
6604
416e006d
JL
66052009-08-07 Juri Linkov <juri@jurta.org>
6606
6607 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6608
6f7d5780
DN
66092009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6610
6611 * print.c (syms_of_print): Undo previous change.
6612
f19a0f5b
TZ
66132009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6614
6615 * lread.c (read1, syms_of_lread): Read hashtables back from the
6616 readable format.
6617
6618 * print.c (print_preprocess, print_object): Print hashtables fully
6619 and readably.
6620 (syms_of_print): Provide 'hashtable-print-readable.
6621
b9173dc2
AR
66222009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6623
6624 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6625 no family set.
6626 (nsfont_open): Handle case when entity has no family.
6627
1586503c
AR
66282009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6629
6630 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6631 element, not a list, for match case.
6632
087048cd
KH
66332009-07-28 Kenichi Handa <handa@m17n.org>
6634
6635 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6636 rigidly.
6637
6638 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6639 font_parse_xlfd. Check font properties more rigidly.
6640
780c2506
DN
66412009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6642
31fd7c5c
JB
6643 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6644 bsd-common.h.
780c2506 6645
a8c0cc18
KH
66462009-07-27 Kenichi Handa <handa@m17n.org>
6647
6648 * xfaces.c (face_with_height): Call font_clear_prop.
6649
4fbe2306
CY
66502009-07-26 Chong Yidong <cyd@stupidchicken.com>
6651
111d9af3
CY
6652 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6653
6654 * xterm.c (x_term_init): Use Qx.
6655
4fbe2306
CY
6656 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6657
1ac9108a 6658 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6659 (ns_get_color): Revert 2009-07-16 change.
6660
beb0b7f9
EZ
66612009-07-25 Eli Zaretskii <eliz@gnu.org>
6662
6663 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6664 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6665
2baf5e76
KR
66662009-07-25 Ken Raeburn <raeburn@raeburn.org>
6667
1ac9108a
SM
6668 * coding.h (decode_coding_string, encode_coding_string):
6669 Use SCHARS macro.
8890e5f5 6670
2baf5e76 6671 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6672 (load_depth): Delete.
2baf5e76
KR
6673 (Qload_in_progress): New variable.
6674 (load_unwind): Don't reference load_depth or load_in_progress.
6675 (Fload): Likewise; specbind Qload_in_progress instead.
6676 (init_lread): Don't initialize load_depth.
6677 (syms_of_lread): Initialize and protect Qload_in_progress.
6678
1395c6f5
AR
66792009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6680
6681 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6682
4e2f36cf
AR
66832009-07-23 Yavor Doganov <yavor@gnu.org>
6684
6685 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6686
5dd9a6f7
AR
66872009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6688
6689 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6690 Bugs 3792, 3720, 2402.
6691 (ns_lookup_indexed_color): Check for bad index.
6692 (ns_index_color): Init unused slot to 0.
6693 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6694 Bug 3714, possibly 3082.
5dd9a6f7 6695
c902b920
JR
66962009-07-22 Jason Rumney <jasonr@gnu.org>
6697
1ac9108a
SM
6698 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6699 Position IME window at cursor (Bug#2570).
c902b920
JR
6700 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6701 (globals_of_w32fns): Dynamically load functions required above.
6702
6703 * w32term.c (w32_draw_window_cursor): Send message to reposition
6704 any IME window.
6705
090101cf
CY
67062009-07-21 Chong Yidong <cyd@stupidchicken.com>
6707
6708 * fileio.c: Revert 2009-07-16 changes.
6709 (Vauto_save_include_big_deletions): New variable.
6710 (Fdo_auto_save): Disable auto-save only if
6711 auto-save-include-big-deletions is nil.
6712
e6583e3d
CY
67132009-07-21 Chong Yidong <cyd@stupidchicken.com>
6714
6715 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6716 the overflowed pixels into account (Bug#3879).
6717
ece435a5
KR
67182009-07-21 Ken Raeburn <raeburn@raeburn.org>
6719
6720 * lread.c (load_depth): New variable.
6721 (Fload, load_unwind, init_lread): Set it to the load recursion
6722 depth; set load_in_progress as a simple boolean based on the
6723 current load_depth. (Bug#3892)
6724
40b2d973
AR
67252009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6726
6727 * nsfont.m (ns_has_attribute): Remove.
6728 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6729
10be7e0d
JL
67302009-07-18 Juri Linkov <juri@jurta.org>
6731
6732 * process.c (Fset_process_query_on_exit_flag): Mention killing
6733 a buffer in docstring.
6734
fa055055
KH
67352009-07-17 Kenichi Handa <handa@m17n.org>
6736
6737 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6738
042f7b69
YM
67392009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6740
6741 * nsfns.m (Fns_set_alpha): Remove function.
6742 (syms_of_nsfns): Don't defsubr it.
6743
6744 * nsterm.m (ns_get_color): Remove incompatible color formats.
6745 (ns_color_to_lisp): Generate #rrggbb color format string.
6746
4be941e3
RS
67472009-07-16 Richard Stallman <rms@gnu.org>
6748
6749 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6750 (Fset_buffer_auto_saved): Handle save_length = -2.
6751
4e6b227d
CY
67522009-07-16 Chong Yidong <cyd@stupidchicken.com>
6753
6754 * xterm.c (Qx_gtk_map_stock): New var.
6755
6756 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6757 of calling intern each time.
6758
a1856973
YM
67592009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6760
6761 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6762 does tiling.
6763
6764 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6765
497e54d8
KH
67662009-07-14 Kenichi Handa <handa@m17n.org>
6767
72d36834
KH
6768 * font.c (font_vconcat_entity_vectors): New function.
6769 (struct font_sort_data): New member font_driver_preference.
6770 (font_compare): Check font_driver_preference.
6771 (font_sort_entities): The format of the first argument changed.
6772 (font_delete_unmatched): Likewise.
6773 (font_list_entities): The return type changed.
6774 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6775 (font_find_for_lface): Adjuste for the above changes.
6776 Don't suppress the checking of C even if the repertory supports it.
6777 (Flist_fonts): Adjust for the above changes.
72d36834 6778
1ac9108a
SM
6779 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6780 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6781 Reject a font who has adstyle property that is different from a
6782 langname derived from registry property.
1ac9108a 6783 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6784
b6046155
EZ
67852009-07-13 Eli Zaretskii <eliz@gnu.org>
6786
6787 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6788 local copy of dirfilename.
6789
fb6b6049
KH
67902009-07-13 Kenichi Handa <handa@m17n.org>
6791
e2402a5e
KH
6792 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6793 against max_char.
6794
fb6b6049
KH
6795 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6796 calling XSYMBOL (sym).
6797
65156807
EZ
67982009-07-11 Eli Zaretskii <eliz@gnu.org>
6799
1ac9108a
SM
6800 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6801 New function.
6802 (directory_files_internal) [WINDOWSNT]:
6803 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6804 the filesystem of the directory is fast or slow.
6805
6806 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6807 file name.
6808 (is_slow_fs): New function.
6809 (stat): Use it to determine whether to issue more system calls to
6810 get accurate file attributes, when w32-get-true-file-attributes is
6811 `local'.
6812
e0ab5fcf
JD
68132009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6814
6815 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6816 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6817 parameter font-parameter as default to the font dialog.
6818
784ceded
KH
68192009-07-10 Kenichi Handa <handa@m17n.org>
6820
6821 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6822
fb8edc0b
EZ
68232009-07-09 Eli Zaretskii <eliz@gnu.org>
6824
1ac9108a 6825 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6826
fb8edc0b
EZ
6827 * w32.c (stat): Treat UNC file names as residing on remote
6828 drives. (Bug#3542)
6829
635c75b1
KH
68302009-07-09 Kenichi Handa <handa@m17n.org>
6831
6832 * fontset.c (fontset_find_font): Fix previous change.
6833
c1d5ce94
MA
68342009-07-08 Michael Albinus <michael.albinus@gmx.de>
6835
6836 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6837 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6838 error flag.
6839
edb61b39
KH
68402009-07-08 Kenichi Handa <handa@m17n.org>
6841
374bf7e4
KH
6842 * fontset.c (fontset_find_font): Fix the logic of handling
6843 charset_matched.
6844 (font_for_char): Delete unused var.
6845 (generate_ascii_font_name): Delete it.
6846
edb61b39
KH
6847 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6848
6849 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6850 (encode_coding_sjis): Fix the code range check.
6851
0f3f018c
CY
68522009-07-07 Chong Yidong <cyd@stupidchicken.com>
6853
6854 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6855 (Fexpand_file_name): Copy string data properly (Bug#3772).
6856
fcaf6f3a
JD
68572009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6858
6859 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6860 first MapNotify.
6861
6809ca75
KH
68622009-07-07 Kenichi Handa <handa@m17n.org>
6863
6864 * character.h (unibyte_has_multibyte_table): Delete extern.
6865 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6866
6867 * charset.c (Fset_charset_priority): Update charset_unibyte.
6868 (syms_of_charset): Initialize charset_unibyte.
6869
6870 * character.c (unibyte_has_multibyte_table): Delete it.
6871 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6872 charset_unibyte.
6873 (multibyte_char_to_unibyte_safe): Likewise.
6874 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6875
1ac9108a 6876 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6877 (x_produce_glyphs): Likewise.
6878
6879 * .gdbinit (xcharset): Fix the treating $arg0.
6880
ad9e2d54
EZ
68812009-07-04 Eli Zaretskii <eliz@gnu.org>
6882
6883 Emulation of `getloadavg' on MS-Windows.
50426a04 6884 * w32.c: Include float.h.
ad9e2d54
EZ
6885 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6886 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6887 (get_native_system_info, get_system_times): New functions.
6888 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6889 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6890 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6891 g_b_init_get_system_times, and num_of_processors.
6892
0a3472c7
JR
68932009-07-03 Jason Rumney <jasonr@gnu.org>
6894
6895 * w32term.c (w32_initialize): Use standard types.
6896
80904120
EZ
68972009-07-03 Eli Zaretskii <eliz@gnu.org>
6898
6899 * dired.c (Ffile_attributes): Decode user and group names by the
6900 locale's encoding. (Bug#3443)
6901
6978862d
DN
69022009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6903
f8d23104
DN
6904 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6905 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6906
6907 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6908
6909 * term.c (init_tty): Remove spurious #ifdef.
6910
6978862d
DN
6911 * m/mips.h: Mention this file is also used for netbsd.
6912 * m/pmax.h: Remove file.
6913
e044e4fc
JD
69142009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6915
6916 * xterm.h (struct x_display_info): Add invisible_cursor.
6917 (struct x_output): Add current_cursor.
6918
6919 * xterm.c (XTtoggle_invisible_pointer): New function.
6920 (x_define_frame_cursor): Don't define cursor if invisible or the
6921 same as before. Set current_cursor.
6922 (x_create_terminal): Set toggle_invisible_pointer_hook.
6923
6924 * xfns.c (make_invisible_cursor): New function.
6925 (x_set_mouse_color): Call make_invisible_cursor.
6926 Set current_cursor.
6927 (x_window): Set current_cursor.
6928
6929 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6930
6931 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6932 inserting a character.
6933 (read_avail_input): Call frame_make_pointer_visible.
6934
6935 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6936 (frame_make_pointer_invisible, frame_make_pointer_visible):
6937 New functions.
e044e4fc
JD
6938 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6939
6940 * frame.h: Declare frame_make_pointer_invisible and
6941 frame_make_pointer_visible.
6942 (struct frame): Add pointer_invisible.
6943
574c8efa
JD
69442009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6945
7b507248
JD
6946 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6947 frame isn't visible.
6948 (xg_frame_resized): If width/height is -1, get size of window
6949 from X server.
6950
6951 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6952 for MapNotify.
6953
835bdaa7 6954 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6955 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6956 (flush_and_sync): Reintroduce.
574c8efa 6957
3f1c6666 69582009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6959
31fd7c5c 6960 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6961
6962 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6963 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6964
6965 * frame.h: Declare Qsticky.
6966
cad9ef74
JD
6967 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6968
6969 * nsfns.m (ns_frame_parm_handlers): Ditto.
6970
6971 * frame.c: Declare Qsticky.
6972 (frame_parms): Add sticky.
6973
6974 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6975
6976 * xterm.h: Declare x_set_sticky.
6977
6978 * xterm.c (x_set_sticky): New function.
6979
69b16610
JD
6980 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6981 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6982 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6983
6984 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6985
6986 * frame.c: Qmaximized is new.
6987 (x_set_frame_parameters): Do not handle fullscreen specially.
6988 Only set width and height if explicitly set.
6989 (x_set_fullscreen): Handle Qmaximized.
6990 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6991 (syms_of_frame): Initialize Qmaximized.
6992
1ac9108a
SM
6993 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6994 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6995
6996 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6997 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6998 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6999 set gravity to NorthWestGravity when USE_GTK.
7000 (set_wm_state): New function.
31fd7c5c 7001 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7002 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7003 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7004 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7005 to x_real_positions and x_fullscreen_adjust.
7006
7007 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7008 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7009 flush_and_sync.
7010 (xg_height_changed): New function.
7011 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7012 and gtk_window_set_policy. Set frame gravity after parsing the
7013 geometry string.
3f1c6666
JD
7014 (xg_update_frame_menubar, free_frame_menubar)
7015 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7016 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7017 Remove calls to xg_frame_set_char_size.
7018
fd503d99
KH
70192009-07-01 Kenichi Handa <handa@m17n.org>
7020
7021 * keyboard.c (decode_keyboard_code): New function.
7022 (tty_read_avail_input): Decode the input bytes if necessary.
7023
1ac9108a
SM
7024 * coding.c (setup_coding_system):
7025 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7026 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7027 use Qno_conversion.
7028
24ed93fb
YM
70292009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7030
7031 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7032
99061dfc
CY
70332009-06-30 Chong Yidong <cyd@stupidchicken.com>
7034
1ac9108a 7035 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7036
ff90fbde
JR
70372009-06-30 Jason Rumney <jasonr@gnu.org>
7038
7039 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7040 is already loaded.
7041 Set user model ID if supported (bug#1849).
7042
5f445726
JM
70432009-06-29 Jim Meyering <meyering@redhat.com>
7044
7045 Remove useless if-before-xfree test.
7046 * nsfont.m (nsfont_close): Remove useless test.
7047 * term.c (delete_tty): Likewise.
7048 * w32.c (system_process_attributes): Likewise.
7049 * w32font.c (w32font_close): Likewise.
7050 * xfaces.c (x_free_gc): Likewise.
7051 * xselect.c (buffer): Likewise.
7052
b9607587
AS
70532009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7054
7055 * process.c (send_process): Keep decoded string in a local
7056 variable and protect it from GC. (Bug#3521)
7057
89ba96f4
EZ
70582009-06-28 Eli Zaretskii <eliz@gnu.org>
7059
7060 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7061 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7062
098a1589
CY
70632009-06-28 Chong Yidong <cyd@stupidchicken.com>
7064
485422be
CY
7065 * xdisp.c (start_display, handle_face_prop)
7066 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7067 (redisplay_window, try_window_id, produce_image_glyph):
7068 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7069
098a1589
CY
7070 * xterm.c (x_update_window_begin, x_new_focus_frame)
7071 (x_scroll_bar_handle_click, handle_one_xevent)
7072 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7073 (x_make_frame_visible, x_make_frame_invisible)
7074 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7075 code chunks that are now obsolete.
7076
78c38319
MA
70772009-06-28 Michael Albinus <michael.albinus@gmx.de>
7078
7079 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7080 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7081 for hours, when optimzation is enabled.
7082 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7083 (xd_read_message): Make them static.
7084
4189ed40
CY
70852009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7086
7087 * term.c (turn_on_face): Allow simultaneously bold and dim
7088 terminal faces (Bug#3530).
7089
cd9b5e16
CY
70902009-06-27 Chong Yidong <cyd@stupidchicken.com>
7091
4e23bedb
CY
7092 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7093
cd9b5e16
CY
7094 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7095 truncation glyphs (Bug#3686).
7096
07cc3c35
GM
70972009-06-27 Glenn Morris <rgm@gnu.org>
7098
7099 * m/pmax.h: Restore file, with only netbsd portions.
7100
31fd7c5c 71012009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7102
cd9b5e16 7103 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7104
42d4a64f
KH
71052009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7106
7107 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7108 the arg FORCE_SYMBOL.
7109
930fe55b 71102009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7111
7112 * fontset.c (fontset_find_font): When a usable rfont_def is found
7113 in a fallback font-group, make it the first element of the group.
7114
57ebc3fd
CY
71152009-06-24 Chong Yidong <cyd@stupidchicken.com>
7116
7117 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7118
f084f942
KH
71192009-06-24 Kenichi Handa <handa@m17n.org>
7120
7121 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7122 set for C.
7123 (fontset_font): Record the availability of a font for C both in
7124 the realized fontsets of the current one and the default one.
7125
2f686c87
DN
71262009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7127
7128 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7129 conditional, it is always defined on AIX.
7130
666e158e
MB
71312009-06-23 Miles Bader <miles@gnu.org>
7132
7133 * window.c (Vrecenter_redisplay): New variable.
7134 (syms_of_window): Initialize it.
7135 (Qtty): New extern declaration.
7136 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7137
c6da7cd2
JM
71382009-06-23 Jim Meyering <meyering@redhat.com>
7139
1ac9108a
SM
7140 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7141 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7142 pointer dereferences are guaranteed to be valid.
c6da7cd2 7143
678dca3d
KH
71442009-06-23 Kenichi Handa <handa@m17n.org>
7145
74d75424
KH
7146 * emacs.c (main): Call init_font ().
7147
7148 * font.h (Vfont_log): Extern it.
7149 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7150
7151 * font.c (font_sort_entities, font_list_entities)
7152 (font_matching_entity, font_open_entity)
7153 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7154 (Vfont_log): Delete static.
7155 (font_log_env_checked): Delete this variable.
7156 (font_add_log): Don't check font_log_env_checked.
7157 (font_deferred_log): Check Vfont_log.
7158 (init_font): New function.
7159
678dca3d
KH
7160 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7161
7162 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7163
7164 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7165
7166 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7167
7168 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7169 (face_for_char): Don't call font_deferred_log here.
7170 (font_for_char): Likewise.
7171
8a668709
CY
71722009-06-22 Chong Yidong <cyd@stupidchicken.com>
7173
9a01ee33
CY
7174 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7175 rather than its background_width for drawing the overline and
7176 underline (Bug#489).
7177
7178 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7179 rather than its background_width for drawing the overline and
7180 underline (Bug#489).
ec7c9926
CY
7181 (xg_default_icon_file): New variable.
7182 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7183 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7184
8a668709
CY
7185 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7186 (load_overlay_strings): Remove externs.
7187 (fast_find_position): Function deleted.
7188 (mouse_face_from_buffer_pos): New function, based on
7189 fast_find_position. Correctly handle before-strings,
7190 display-strings, and after-strings (Bug#1220).
7191 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7192
4d4c02d8
CY
71932009-06-21 Chong Yidong <cyd@stupidchicken.com>
7194
1ac9108a 7195 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7196 (move_it_in_display_line_to, move_it_in_display_line_to)
7197 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7198
70243478
CY
71992009-06-21 Chong Yidong <cyd@stupidchicken.com>
7200
7201 * Branch for 23.1.
7202
13087e59
JR
72032009-06-21 Jason Rumney <jasonr@gnu.org>
7204
7205 * w32term.c (keyboard_codepage): New static variable.
7206 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7207 (w32_read_socket) [WM_CHAR]: Use it to decode character
7208 input (bug#3237).
7209 (w32_initialize): Initialize it.
7210 (codepage_for_locale): New function.
7211
4735b74e
KR
72122009-06-20 Ken Raeburn <raeburn@raeburn.org>
7213
7214 * process.c (status_message): Pass Faset index argument as a lisp
7215 object, so as to work with USE_LISP_UNION_TYPE.
7216
0e727afa
YM
72172009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7218
7219 * coding.c (Ffind_coding_systems_region_internal):
7220 Cache checked characters.
7221
cf299835
KH
72222009-06-18 Kenichi Handa <handa@m17n.org>
7223
1ac9108a 7224 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7225
90f20d94
AS
72262009-06-18 Andreas Schwab <aschwab@redhat.com>
7227
7228 * xdisp.c (redisplay_internal): Check that the frame is still
7229 live after redisplay of its windows.
7230 (redisplay_windows): Check that the window is still live.
7231
7f1faf1c
KH
72322009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7233
7234 * coding.c (detect_coding_utf_16): Fix previous change.
7235
cc13543e
KH
72362009-06-16 Kenichi Handa <handa@m17n.org>
7237
7238 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7239 UTF-16 by checking the dispersion of Eth and Oth bytes.
7240
977b85f4
AS
72412009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7242
7243 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7244
66bd43d1
KH
72452009-06-15 Kenichi Handa <handa@m17n.org>
7246
7247 * process.c (status_message): Fix previous change. Be sure to
7248 decode a localized string.
7249
cb5ca9c5
YM
72502009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7251
7252 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7253 add comment explaining why.
7254
ec7709ba 72552009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7256
ec7709ba 7257 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7258
4b7f335c
AR
72592009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7260
7261 * nsfont.m (ns_attribute_value): Remove.
7262 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7263 (ns_has_attribute): Shrink the normal range.
7264 (ns_findfonts): Don't worry about requested spec in determining
7265 need for synthItal.
e41820ee 7266 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7267
73b26103
SZ
72682009-06-14 Seiji Zenitani <zenitani@mac.com>
7269
7270 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7271
5753e4da
KH
72722009-06-11 Kenichi Handa <handa@m17n.org>
7273
7274 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7275 overhang for the static composition case.
7276
3561b671
KH
72772009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7278
5753e4da
KH
7279 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7280 overhang for the automatic composition case.
7281
3561b671
KH
7282 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7283 composition case.
7284
852bbd41
CY
72852009-06-10 Chong Yidong <cyd@stupidchicken.com>
7286
7287 * xdisp.c (get_next_display_element): When handling wrap-prefix
7288 and line-prefix, treat \n as a control character (bug#3502).
7289
9903d1e6
KH
72902009-06-10 Kenichi Handa <handa@m17n.org>
7291
7292 * font.c (font_parse_family_registry): Fix for one-char foundry.
7293 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7294
0bcbaaaa
CY
72952009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7296
7297 * process.c (status_message): Fix handling of multibyte signal
7298 string (Bug#3499).
7299
40aa3f13
JM
73002009-06-09 Jim Meyering <meyering@redhat.com>
7301
1f80c7e2
CY
7302 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7303 color name is missing.
40aa3f13 7304
72d51285
KH
73052009-06-09 Kenichi Handa <handa@m17n.org>
7306
7307 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7308 FROM-CODE and TO-CODE are codepoints of CHARSET.
7309
c1d04d84
AR
73102009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7311
7312 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7313
73142009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7315
7316 Changes to support :script/:lang/:otf in NS font driver.
7317 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7318 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7319 indicate not part of font driver interface, and change callers.
7320 (ns_get_family): Remove pointless null check.
7321 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7322 ns_spec_to_descriptor, ns_descriptor_to_entity.
7323 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7324 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7325 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7326 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7327 (ns_get_req_script, ns_accumulate_script_ranges)
7328 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7329 New functions.
7330 (nsfont_list, nsfont_match): Use ns_findfonts.
7331 (nsfont_open): Use font descriptor instead of traits.
7332 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7333 (dump_glyphstring): Rename to ns_dump_glyphstring.
7334
c7eb9816
AR
7335 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7336
c1d04d84
AR
7337 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7338
7339 * fontset.c (fontset_from_font): Remove NS-specific code.
7340
ec7709ba 73412009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7342
7343 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7344 nonactive windows.
7345
31fd7c5c 73462009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7347
1ac9108a 7348 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7349
68852c13 73502009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7351
7352 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7353
6756cd1d
CY
73542009-06-07 Chong Yidong <cyd@stupidchicken.com>
7355
7356 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7357 account for the overflowing of newlines into the last glyph on the
7358 display line (Bug#3482).
7359
28bf482a
DR
73602009-06-05 David Reitter <david.reitter@gmail.com>
7361
ec7709ba
JB
7362 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7363 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7364 Fns_selection_exists_p, Fns_selection_owner_p.
7365
fdb55376
JR
73662009-06-03 Jason Rumney <jasonr@gnu.org>
7367
7368 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7369 available. (Bug#3379)
7370
05129fbe
KH
73712009-05-29 Kenichi Handa <handa@m17n.org>
7372
1ac9108a
SM
7373 * coding.c (get_translation_table):
7374 Check Venable_character_translation.
05129fbe 7375
ec7709ba 73762009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7377
ec7709ba
JB
7378 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7379 (x_make_frame_visible): Move frame to front rather than calling
15891144 7380 ns_raise_frame().
ec7709ba 7381 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7382 isn't key window.
ec7709ba 7383 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7384 drawRect may be called by NSView even if the frame is hidden.
7385
ec7709ba
JB
7386 * nsfns.m (Fx_create_frame): Follow other ports in
7387 determining visibility; default to t. Ensure async_visible is set.
15891144 7388
21f73755
EZ
73892009-05-23 Eli Zaretskii <eliz@gnu.org>
7390
7391 * dired.c (Ffile_attributes): Doc fix.
7392
34001e41
CY
73932009-05-22 Chong Yidong <cyd@stupidchicken.com>
7394
7395 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7396
46306a17
SM
73972009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7398
7399 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7400 and xfont_scratch_props.
7401 (syms_of_xfont): Do it here instead.
7402 (xfont_find_ccl_program): Delete, unused.
7403 (xfont_open): Delete unused var `i'.
7404
ef6e0694
KH
74052009-05-21 Kenichi Handa <handa@m17n.org>
7406
7407 * fontset.c (Qlatin): Don't make it static.
7408
46306a17
SM
7409 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7410 New functions.
ef6e0694
KH
7411 (xfont_scripts_cache, xfont_scratch_props): New variables.
7412 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7413 (xfont_list_pattern): Argument changed. Callers changed.
7414 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7415 (xfont_list): Don't reject a font spec with :script property.
7416 (xfont_has_char): Fix setting of encoding.
7417 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7418 xfont_scratch_props.
7419
74202009-05-19 Kenichi Handa <handa@m17n.org>
7421
46306a17 7422 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7423 Callers changed.
7424
74252009-05-18 Kenichi Handa <handa@m17n.org>
7426
7427 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7428
ac71ced7
SM
74292009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7430
7431 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7432 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7433
1c6d1051
YM
74342009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7435
7436 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7437 (x_delete_terminal): Dissociate resource database from display and
7438 then call XrmDestroyDatabase before closing display.
7439
9b9b779c
AR
74402009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7441
7442 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7443 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7444 whether selected frame is viable before raising it (based on patch
7445 by David Reitter), and improve commentary.
7446 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7447
cccd42d5
KH
74482009-05-15 Kenichi Handa <handa@m17n.org>
7449
7450 * font.c (Ffont_spec): Check arguments.
7451
337fbd17
CY
74522009-05-14 Chong Yidong <cyd@stupidchicken.com>
7453
7454 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7455 weight when testing attributes (Bug#3282).
7456
47a6002f
JD
74572009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7458
7459 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7460 what we expect to get in the next ConfigureNotify event.
7461
9cb363db
YM
7462 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7463 before Xft one (Bug#1696).
7464
b9126609
CY
74652009-05-07 David Reitter <david.reitter@gmail.com>
7466
7467 * nsfns.m (Fx_display_planes): Compute bitplanes using
7468 NSBitsPerPixelFromDepth (Bug#3207).
7469
27a69fd9
CY
74702009-05-10 Chong Yidong <cyd@stupidchicken.com>
7471
7472 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7473
00f37552
TTN
74742009-05-10 Ulrich Mueller <ulm@gentoo.org>
7475
7476 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7477
2d82a920
DR
74782009-05-07 David Reitter <david.reitter@gmail.com>
7479
ec7709ba
JB
7480 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7481 Respect mouse face background.
2d82a920 7482
46b0d52d
DR
74832009-05-07 David Reitter <david.reitter@gmail.com>
7484
ec7709ba
JB
7485 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7486 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7487 in ns_update_begin and ns_update_end.
7488
ce1b23bb
SM
74892009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7490
5996e1b7
SM
7491 * nsfns.m (ns_get_screen): Rewrite.
7492 Don't presume selected-frame is of type `ns'.
7493
ba98e3a0
SM
7494 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7495 all drivers.
7496
ce1b23bb
SM
7497 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7498
bcda200f
YM
74992009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7500
7501 * keyboard.h (add_user_signal): Fix typo in extern.
7502
7503 * lisp.h (add_user_signal): Remove extern.
7504
7505 * unexelf.c (unexec): Consider a section to precede the .bss section
7506 if its addresses overlap that of .bss.
7507 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7508 instead of dumping process.
7509
864660a2
SM
75102009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7511
7512 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7513
50da4e56
SM
75142009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7515
7516 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7517
51520a1a
DN
75182009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7519
7520 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7521 any statements.
7522
409ea3a1
AS
75232009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7524
59c4c60f
AS
7525 * process.c (read_process_output): Make sure the current buffer is
7526 always restored.
7527
409ea3a1
AS
7528 * coding.c (record_conversion_result): Don't modify
7529 Vlast_code_conversion_error for successful result.
7530 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7531
56f00ed2
KH
75322009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7533
7534 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7535 (load_charset_map): Remove unnecessary code.
56f00ed2 7536
4491c9d2
DR
75372009-04-30 David Reitter <david.reitter@gmail.com>
7538
35f5b128 7539 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7540 through f24.
7541
6970f632
CY
75422009-04-30 Chong Yidong <cyd@stupidchicken.com>
7543
7544 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7545
7546 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7547 face_at_buffer_position.
7548 (face_before_or_after_it_pos, get_next_display_element)
7549 (note_mouse_highlight): Update face_at_buffer_position call.
7550
7551 * term.c (term_mouse_highlight):
7552 * msdos.c (IT_note_mouse_highlight):
7553 * fontset.c (Finternal_char_font):
35f5b128 7554 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7555
7556 * dispextern.h (face_at_buffer_position): Update prototype.
7557
0c616f63
KH
75582009-04-30 Kenichi Handa <handa@m17n.org>
7559
35f5b128 7560 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7561
ad3aaf33
AS
75622009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7563
7564 * callproc.c (Fcall_process): Fix GC protection. Make sure
7565 current buffer is always restored.
7566
c3c963a0
YM
75672009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7568
7569 * atimer.c (init_atimer): Also clear stopped_atimers.
7570
7571 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7572
7e3386cb
YM
7573 * process.c (create_process): Clean up merger residues of
7574 2008-07-17 change.
7575
91f68422
CY
75762009-04-29 Ulrich Mueller <ulm@gentoo.org>
7577
7578 * lread.c (Vread_circle): New variable.
7579 (read1): Disable recursive read if Vread_circle is nil.
7580
24b34550
KH
75812009-04-29 Kenichi Handa <handa@m17n.org>
7582
7583 * fontset.h (set_default_ascii_font): Delete extern.
7584
7585 * fontset.c (set_default_ascii_font): Delete this unused function.
7586
7587 * frame.c (x_set_font): When ARG is a font-object, check if the
7588 font-object matches with the ASCII font-spec of the frame's
9c358bda 7589 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7590
77bf07e1
AS
75912009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7592
7593 * fns.c (Flocale_info): Protect vector from GC during decoding.
7594
7595 * process.c (Fstart_process): Protect argv strings from GC during
7596 encoding.
7597
2c55aacf
AS
75982009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7599
7600 * sysdep.c: Include <ctype.h>.
7601
b892d3c9
DR
76022009-04-27 David Reitter <david.reitter@gmail.com>
7603
35f5b128 7604 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7605 Remove commented-out code.
7606
9d0644c4
JB
76072009-04-26 Johan Bockgård <bojohan@gnu.org>
7608
7609 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7610
b7053016
JR
76112009-04-25 Jason Rumney <jasonr@gnu.org>
7612
7613 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7614
4e8231f3
YM
76152009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7616
7617 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7618 Swap bytes in short integer if fringe bitmap width > 8.
7619
493dcf2c
KH
76202009-04-23 Kenichi Handa <handa@m17n.org>
7621
7622 * xfaces.c (Fx_list_fonts): If a font size is specified in
7623 PATTERN, set it in returned scalable fonts.
7624
401e9e57
CY
76252009-04-22 Chong Yidong <cyd@stupidchicken.com>
7626
708e05dc
CY
7627 * keyboard.c (Fset_input_meta_mode): Doc fix.
7628
7629 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7630
1ac9108a 7631 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7632
7633 * coding.c (Fterminal_coding_system): Doc fix.
7634
7635 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7636 (Fx_display_pixel_height, Fx_display_planes)
7637 (Fx_display_color_cells, Fx_server_max_request_size)
7638 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7639 (Fx_display_mm_height, Fx_display_mm_width)
7640 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7641 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7642 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7643 (check_x_display_info): Handle terminal objects instead of
7644 terminal ids.
7645
401e9e57
CY
7646 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7647 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7648 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7649 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7650
df80c7f0
KH
76512009-04-21 Kenichi Handa <handa@m17n.org>
7652
5a8f12af 7653 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7654 (font_score): Check AVGWIDTH too.
908567ef 7655
df80c7f0
KH
7656 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7657 worst case.
1ac9108a
SM
7658 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7659 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7660
705af33f
JR
76612009-04-19 Jason Rumney <jasonr@gnu.org>
7662
7663 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7664 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7665
7666 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7667 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7668 get_phys_cursor_geometry.
7669
b71ac3dd 7670 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7671 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7672 using get_phys_cursor_geometry.
7673
7674 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7675 correctly calculated.
7676
dc2933eb
JD
76772009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7678
1ac9108a
SM
7679 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7680 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7681 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7682 is deprecated.
7683
973e7849
AS
76842009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7685
7686 * font.c (font_put_frame_data): Use xfree instead of free.
7687
314d66f4
JB
76882009-04-17 Juanma Barranquero <lekktu@gmail.com>
7689
7690 * w32font.c (Qja, Qko): Remove declarations.
7691 (syms_of_w32font): Don't DEFSYM them.
7692
cf702558
CY
76932009-04-17 Chong Yidong <cyd@stupidchicken.com>
7694
7695 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7696
7697 * font.h (Qja, Qko): Extern them.
7698
7699 * ftfont.c (Qja, Qko): Remove declarations.
7700
7701 * xfont.c (Qja, Qko): Remove declarations.
7702
b50504f5
KH
77032009-04-17 Kenichi Handa <handa@m17n.org>
7704
bde25748
KH
7705 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7706 string from a vector to handle Latin-1 characters correctly.
7707
b50504f5
KH
7708 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7709 entity even if the cache hits.
7710
f4646fff
AS
77112009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7712
7713 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7714 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7715
e7deaab0
AS
7716 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7717 * lisp.h: Adjust prototypes.
7718
0a0e7d49
CY
77192009-04-16 Chong Yidong <cyd@stupidchicken.com>
7720
7721 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7722 change (Bug#3003).
7723
3c908a57
KH
77242009-04-16 Kenichi Handa <handa@m17n.org>
7725
1ac9108a 7726 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7727
7728 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7729 adstyle.
7730
7731 * ftfont.c (Qja, Qko): Don't make them static.
7732 (enum ftfont_cache_for): New enum.
7733 (fc_charset_table): Undo the previous change.
7734 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7735 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7736 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7737 non-scarable font, try to get AVERAGE_WIDTH.
7738 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7739 Change ft_face_cache from a list of a hash-table. Don't check
7740 `ja' and `ko' adstyle here.
7741 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7742 FTFONT_CACHE_FOR_CHARET.
7743 (ftfont_get_charset): Undo the previous change.
1ac9108a 7744 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7745 (ftfont_close): Likewise.
7746 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7747
7748 * font.c (font_sort_entites): Change the meaning of the arg
7749 BEST-ONLY. Don't optimize for VEC of lenght 1.
7750 (font_select_entity): Just return the value of font_sort_entites.
7751
7752 * xfaces.c (merge_face_vectors): Reflect font properties in
7753 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7754 font_clear_prop if a face attribute doesn't change.
7755
3c908a57
KH
7756 * charset.h (charset_ksc5601): Extern it.
7757
7758 * charset.c (charset_ksc5601): New variable.
7759 (Fdefine_charset_internal): Set charset_ksc5601.
7760 (init_charset_once): Initialize charset_ksc5601 to -1.
7761
d65859c3
DN
77622009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7763
7764 * fileio.c (history_delete_duplicates): Remove unused declaration.
7765
7766 * callint.c (history_delete_duplicates): New declaration.
7767 (Fcall_interactively): Remove command history duplicates when
7768 history_delete_duplicates is true.
7769
3ba010e5
EZ
77702009-04-14 Eli Zaretskii <eliz@gnu.org>
7771
7772 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7773
06f19b91
KH
77742009-04-14 Kenichi Handa <handa@m17n.org>
7775
7776 * font.c (Ffont_info): Fix docstring. Fix the second element of
7777 the returned value (bug#2949).
7778
2cce8bfc
CY
77792009-04-14 Chong Yidong <cyd@stupidchicken.com>
7780
7781 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7782
d156542d
KH
77832009-04-14 Kenichi Handa <handa@m17n.org>
7784
7785 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7786 encoding charset is ascii_compatible.
7787
7788 * charset.c (Fdefine_charset_internal): Make charset
7789 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7790 code_offset is 0, and covers all ASCII characters.
7791
86fa089e
SM
77922009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7793
7794 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7795 (ns_string_to_pasteboard_internal):
7796 * nsmenu.m (process_dialog):
7797 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7798 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7799 * lisp.h (Fx_load_color_file): Declare.
7800
a8a3728b
KH
78012009-04-13 Kenichi Handa <handa@m17n.org>
7802
1ac9108a 7803 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7804 (font_select_entity): Suppress the code to optimize for the same
7805 kind of fonts.
7806 (font_load_for_lface): Get a font that supports at least ASCII
7807 characters.
7808
7809 * ftfont.c (Qja, Qko): New variables.
7810 (fc_charset_table): Delete uniquifier data for iso8859-1.
7811 (ftfont_get_latin1_charset): New function.
7812 (get_adstyle_property): New function.
7813 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7814 bitmap fonts.
7815 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7816 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7817 `ko' or `ja'.
7818 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7819 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7820 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7821 property.
7822 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7823 (syms_of_ftfont): DEFSYM Qja and Qko.
7824
483670b5
KH
78252009-04-09 Kenichi Handa <handa@m17n.org>
7826
12b55765
KH
7827 * charset.c (map_charset_chars): For a charset of `superset'
7828 method, fix calculation of code range.
7829
483670b5
KH
7830 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7831 from the list of extra properties.
7832 (font_clear_prop): Be sure to delete `:name' font property.
7833
57d3b93b
KH
78342009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7835
b4b2c2ca
YM
7836 * dispnew.c (redraw_overlapping_rows): Fix detection of
7837 overlapping for topmost and bottommost rows.
7838
1ac9108a 7839 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7840
472c3609
JR
78412009-04-06 Jason Rumney <jasonr@gnu.org>
7842
7843 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7844
ab193662
KH
78452009-04-06 Kenichi Handa <handa@m17n.org>
7846
7847 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7848
7849 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7850
0c26f026
KH
78512009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7852
7853 * ftfont.c (ftfont_open): Fix checking of the return value of
7854 FT_Load_Char. Fix setting font->underline_thickness.
7855
e173bbce
CY
78562009-04-04 Chong Yidong <cyd@stupidchicken.com>
7857
7858 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7859 (Fterminal_parameters, Fterminal_parameter)
7860 (Fset_terminal_parameter): In doc string, refer to terminal
7861 objects rather than terminal ids.
7862
693a2698
EZ
78632009-04-04 Eli Zaretskii <eliz@gnu.org>
7864
7865 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7866 ret_lim_data. (Bug#2867)
7867
d5221487
CY
78682009-04-03 Chong Yidong <cyd@stupidchicken.com>
7869
7870 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7871 so they don't get wider than the window, matching 2006-01-23
7872 change to the partner function in xdisp.c (Bug#2800).
7873
223509a3
KH
78742009-04-03 Kenichi Handa <handa@m17n.org>
7875
7876 * print.c (print_object): Make each lowest sub_char_table start a
7877 new line (Bug#2866).
7878
74fcd0b1
KH
78792009-04-02 Kenichi Handa <handa@m17n.org>
7880
7881 * fontset.c (fontset_font): Record no-font when a fontset
7882 explicitly tells not to try another font-specs.
7883
c542407d
SM
78842009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7885
7886 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7887
e3869731
KH
78882009-03-30 Kenichi Handa <handa@m17n.org>
7889
d8d2f142
KH
7890 * fontset.c (fontset_from_font): Specify only registry in a
7891 font-spec for all characters supported by that registry.
7892
e3869731
KH
7893 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7894 even if HAVE_M17N_FLT is not defined.
7895
5da5f805
CY
78962009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7897
7898 * ftfont.c: Conditionalize prototyping and use of
7899 ftfont_variation_glyphs.
7900
ab226c50
SM
79012009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7902
9628fed7
SM
7903 * frame.c (delete_frame): Work around compiler bug.
7904
7905 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7906 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7907 Some more EMACS_INT.
7908 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7909
7910 * xdisp.c (dump_glyph): Fix typo.
7911
ae19ba7c
SM
7912 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7913 (adjust_markers_gap_motion, adjust_markers_for_delete)
7914 (adjust_markers_for_insert, adjust_point)
7915 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7916 (make_gap, copy_text, count_size_as_multibyte, insert)
7917 (insert_and_inherit, insert_before_markers)
7918 (insert_before_markers_and_inherit, insert_1)
7919 (count_combining_before, count_combining_after, insert_1_both)
7920 (insert_from_string, insert_from_string_before_markers)
7921 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7922 (insert_from_buffer_1, adjust_after_replace)
7923 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7924 (replace_range_2, del_range, del_range_1, del_range_byte)
7925 (del_range_both, del_range_2, modify_region)
7926 (prepare_to_modify_buffer, signal_before_change)
7927 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7928 for buffer positions and sizes.
7929 * lisp.h: Adjust prototypes accordingly.
7930
7931 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7932 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7933 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7934
ab226c50
SM
7935 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7936
46dfb8fb
JD
79372009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7938
7939 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7940 lines and columns so we keep the same pixel height and width.
7941
7942 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7943 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7944 (x_handle_net_wm_state): New function to update frame parameter
7945 fullscreen.
7946 (x_term_init): Initialize atoms for _NET_WM_STATE.
7947
7948 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7949
d347e494
SM
79502009-03-27 Kevin Ryde <user42@zip.com.au>
7951
7952 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7953 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7954 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7955 (Fgpm_mouse_stop): Pass that new parameter.
7956 * termhooks.h (close_gpm): Adjust prototype.
7957
84db11d6
SM
79582009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7959
c95a5008
SM
7960 * lisp.h (Fx_focus_frame): Declare.
7961
84db11d6
SM
7962 * callint.c (Fcall_interactively): For '^' just delegate the work to
7963 handle-shift-selection.
7964 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7965
0a1958d6
CY
79662009-03-24 Chong Yidong <cyd@stupidchicken.com>
7967
0bfdff23
CY
7968 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7969
0a1958d6
CY
7970 * data.c (Qinteractive_form): New variable.
7971 (Finteractive_form): Use it.
7972
7973 * eval.c (Fcommandp): Use Qinteractive_form.
7974
58aec0d6
JR
79752009-03-24 Jason Rumney <jasonr@gnu.org>
7976
7977 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7978 Calculate total size precisely. Decode environment variables
7979 before substituting. (Bug#38)
7980
553dd618
KH
79812009-03-24 Kenichi Handa <handa@m17n.org>
7982
7983 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7984 encoding (Bug#2722).
553dd618 7985
c39ea606
JD
79862009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7987
7988 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7989 that gdpy is set.
7990
bc9b2b5e
AM
79912009-03-22 Alan Mackenzie <acm@muc.de>
7992
7993 * callint.c (Finteractive): Clarify the doc string - even
7994 promptless elements need \n separators.
7995
9f995a76
JR
79962009-03-22 Jason Rumney <jasonr@gnu.org>
7997
7998 * w32term.c (syms_of_w32term): Doc fix for
7999 x-use-underline-position-properties.
8000
22749e9a
EZ
80012009-03-21 Eli Zaretskii <eliz@gnu.org>
8002
8003 * w32.c (getpwuid): Change argument type to unsigned.
8004 (struct w32_id): Change type of `rid' member to unsigned.
8005 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8006 argument ID to unsigned. All callers changed.
8007 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8008
e00553bf
EZ
80092009-03-20 Eli Zaretskii <eliz@gnu.org>
8010
8011 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8012 negative, produce a float value.
8013
8014 * dired.c (make_uid, make_gid): New functions.
8015 (Ffile_attributes): Use them to avoid negative UID and GID.
8016
f761d6b6
JB
80172009-03-20 Juanma Barranquero <lekktu@gmail.com>
8018
8019 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8020 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8021 Fix typos in docstrings.
8022
d507f8d7
KH
80232009-03-19 Kenichi Handa <handa@m17n.org>
8024
8025 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8026 changed, use font_load_for_lface to get a new font object.
8027 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8028
8029 * frame.c (x_set_font): Handle the case that ARG is a cons.
8030
c68845e0
GM
80312009-03-19 Glenn Morris <rgm@gnu.org>
8032
8033 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8034
bfa49dd1
CY
80352009-03-19 Chong Yidong <cyd@stupidchicken.com>
8036
8037 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8038
8458d4c1
KH
80392009-03-19 Kenichi Handa <handa@m17n.org>
8040
8041 * charset.c (load_charset_map_from_file): When a mapfile can't be
8042 loaded, signal an error.
8043
78e7d1fe
EZ
80442009-03-18 Eli Zaretskii <eliz@gnu.org>
8045
8046 * dired.c (Ffile_attributes): Make sure UID and GID are always
8047 positive, even if the value is too large for a positive EMACS_INT.
8048 Doc fix.
8049
8050 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8051
5da9fdfa
YM
80522009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8053
8054 * xmenu.c (xdialog_show): Move Fredisplay call ...
8055 (Fx_popup_dialog): ... here.
8056
7519c40d
SM
80572009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8058
8059 * dired.c (file_name_completion): Disable the first optimization just
8060 installed, since it is not implemented correctly.
8061
2cd298e2
SM
80622009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8063
8064 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8065 only if the entry can affect bestmatch.
2cd298e2
SM
8066 Stop the search early, as Ftry_completion already does.
8067
48d37adf
CY
80682009-03-17 Chong Yidong <cyd@stupidchicken.com>
8069
e10c9c93 8070 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8071
9286b16a
CY
80722009-03-15 Chong Yidong <cyd@stupidchicken.com>
8073
8074 * keyboard.c (parse_menu_item): Don't display remappings as menu
8075 equivalent bindings (Bug#788).
8076
f7b146dc
JR
80772009-03-15 Jason Rumney <jasonr@gnu.org>
8078
8079 * w32term.h (WM_EMACS_PAINT): New message.
8080 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8081 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8082 before passing to lisp thread. (Bug#950)
8083
f761d6b6 80842009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8085
d93f9575
CY
8086 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8087 variable as it was never reset.
8088 (ns_term_init): Remove initialization of Lisp-settable defaults
8089 and ns_expand_space.
8090 (-setPanelFromDefaultValues): Remove ns_expand_space.
8091 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8092 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8093 i.e. no additional spacing, similar to Carbon port.
8094
d93f9575
CY
8095 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8096 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8097
305018ec
JD
80982009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8099
8100 * sound.c (alsa_configure): Remove call to deprecated
8101 snd_pcm_sw_params_set_xfer_align.
8102
f761d6b6 81032009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8104
8105 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8106 after clicking in a detached tool bar.
8107 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8108
46e722a9
SM
81092009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8110
348db3dd
SM
8111 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8112 int/Lisp_Object mixup).
46e722a9 8113
a3d16f39
KH
81142009-03-13 Kenichi Handa <handa@m17n.org>
8115
8116 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8117 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8118 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8119 (set_fontset_font): Change ARG to a vector. Handle range_list in
8120 ARG correctly.
8121 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8122 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8123 the above change.
8124 (fontset_from_font): Fix previous change.
fe24f56a 8125 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8126 entry. If FONTSET is the default fontset, don't set the extra
8127 slot of the returning char-table.
8128
b066e6b6
JB
81292009-03-12 Juanma Barranquero <lekktu@gmail.com>
8130
8131 * nsfns.m (Fx_close_connection): Doc fix.
8132 (Fns_do_applescript): Reflow docstring.
8133 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8134 (Fx_display_pixel_width, Fx_display_pixel_height)
8135 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8136 Fix typos in docstrings.
8137 (Fns_set_alpha): Fix typos in error messages.
8138
d472514e 81392009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8140
d472514e 8141 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8142 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8143 were used for such events.
8144
d472514e
JB
8145 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8146 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8147
d472514e 8148 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8149 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8150
fb930676
KH
81512009-03-11 Kenichi Handa <handa@m17n.org>
8152
ff85581a
KH
8153 * font.h (font_open_by_spec): Extern it.
8154
c50b7e98
KH
8155 * font.c (font_open_by_spec): New function.
8156 (font_open_by_name): Use font_open_by_spec.
8157
fb930676
KH
8158 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8159 fontset of the frame.
8160
8161 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8162 modify the default font of frames that use this fontset.
8163 (num_auto_fontsets): New variable.
8164 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8165 name. Be sure to set FONTSET_ASCII to the correct font name.
8166 (update_auto_fontset_alist): New function.
8167
df4e8455
JB
81682009-03-11 Juanma Barranquero <lekktu@gmail.com>
8169
8170 * makefile.w32-in: Update dependencies.
8171
0a375797
AR
81722009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8173
8174 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8175
61313fa3
SM
81762009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8177
8178 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8179
b55103fb
CY
81802009-03-10 Chong Yidong <cyd@stupidchicken.com>
8181
8182 * lread.c (Feval_buffer): Doc fix.
8183
dde2559c
KH
81842009-03-09 Kenichi Handa <handa@m17n.org>
8185
8186 * charset.c (Qfile_name_handler_alist): Extern it.
8187 (load_charset_map_from_file): Temporarily bind
8188 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8189
df4e8455 81902009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8191
47f588bb
GM
8192 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8193 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8194
4ddf94bd
AR
81952009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8196
4c9bdfc2
AR
8197 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8198 (x_set_window_size): Change back to calculated method of setting
8199 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8200 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8201 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8202
fe41ae9e
AR
8203 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8204
4c9bdfc2
AR
8205 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8206 accelerator in parens under GNUstep.
8207
825d0875
KH
82082009-03-06 Kenichi Handa <handa@m17n.org>
8209
8210 These changes are to detect incorrect composition sequence without
f3b3be74 8211 looking ahead the source. (Bug#2370)
825d0875
KH
8212
8213 * coding.h: Include "composite.h".
8214 (enum compisition_state): New enum.
8215 (struct compisition_status): New struct.
8216 (struct iso_2022_spec): New member cmp_status.
8217 (struct emacs_mule_spec): New struct.
8218 (struct coding_system): New members ctext_extended_segment_len and
8219 embedded_utf_8. Change the union member
8220 spec.emacs_mule_full_support to spec.emacs_mule.
8221
8222 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8223 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8224 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8225 (ADD_COMPOSITION_DATA): New arg nbytes.
8226 (emacs_mule_char): New arg cmp_status.
8227 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8228 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8229 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8230 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8231 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8232 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8233 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8234 (EMACS_MULE_COMPOSITION_END): New macro.
8235 (emacs_mule_finish_composition): New function.
8236 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8237 (decode_coding_emacs_mule): Avoid long looking ahead while
8238 handling composition.
8239 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8240 (ENCODE_COMPOSITION_RULE): New macro.
8241 (finish_composition): New function.
8242 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8243 (DECODE_COMPOSITION_START): New implementation.
8244 (DECODE_COMPOSITION_END): Likewise.
8245 (STORE_COMPOSITION_RULE): New macro.
8246 (decode_coding_iso_2022): Avoid long looking ahead while handling
8247 composition, CTEXT extended segment, and embedded UTF-8.
8248 (setup_coding_system): For a coding of type iso-2022, reset
8249 CODING_ISO_EXTSEGMENT_LEN (coding) and
8250 CODING_ISO_EMBEDDED_UTF_8 (coding).
8251 (get_translation): Delete arguments last_block, from_nchars,
8252 to_nchars. Callers changed.
8253 (produce_chars): Don't modify charbuf. Adjusted for the change of
8254 get_translation.
98a326f7 8255 (produce_composition): Adjust for the new annotation sequence.
825d0875 8256 (handle_composition_annotation): Likewise.
98a326f7 8257 (consume_chars): Adjust for the change of get_translation.
825d0875 8258
ccbc4452
AR
82592009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8260
4ddf94bd 8261 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8262
988a7ddb
KH
82632009-03-05 Kenichi Handa <handa@m17n.org>
8264
8265 * font.c (font_select_entity): New function.
8266 (font_find_for_lface): Use font_select_entity to select a font.
8267
8268 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8269 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8270 font with C restriction.
8271
98a326f7 82722009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8273
be1bce46 8274 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8275
10ea2b82
JR
82762009-03-04 Jason Rumney <jasonr@gnu.org>
8277
2c93b248 8278 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8279 characters that have already been read. (Bug#2569)
2c93b248 8280
10ea2b82
JR
8281 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8282 Log an error message if check_image_size failed.
8283 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8284 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8285
71a0c011
EZ
82862009-03-02 Eli Zaretskii <eliz@gnu.org>
8287
8288 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8289 when decoding process output.
8290
2f63bba8
RS
82912009-03-01 Richard M Stallman <rms@gnu.org>
8292
8293 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8294
8295 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8296
0a9564cb
EZ
82972009-02-28 Eli Zaretskii <eliz@gnu.org>
8298
8299 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8300 (decode_coding_emacs_mule, decode_coding_iso_2022)
8301 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8302 (decode_coding_raw_text, decode_coding_charset)
8303 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8304 Honor inhibit-eol-conversion. (Bug #2186)
8305
449148b3
JR
83062009-02-28 Jason Rumney <jasonr@gnu.org>
8307
8308 * coding.c (detect_coding_charset): If not checking latin extra,
8309 fail on characters between 0x80 and 0xA0. (Bug#2354)
8310
a4aee864
EZ
83112009-02-28 Eli Zaretskii <eliz@gnu.org>
8312
8313 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8314 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8315
d88bee5a
GM
83162009-02-27 Glenn Morris <rgm@gnu.org>
8317
8318 * callint.c (Finteractive): Doc fix.
8319
a808f22d
KH
83202009-02-27 Kenichi Handa <handa@m17n.org>
8321
8322 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8323
caf8d60c
CY
83242009-02-27 Chong Yidong <cyd@stupidchicken.com>
8325
8326 * font.c (font_style_to_value): Set value for unknown symbols to
8327 100 instead of 255.
b61137ea
CY
8328 (weight_table, slant_table, width_table): Treat "unspecified" as
8329 the default value.
caf8d60c 8330
1a0de25c
JB
83312009-02-26 Juanma Barranquero <lekktu@gmail.com>
8332
8333 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8334
8fc45744
JB
83352009-02-25 Juanma Barranquero <lekktu@gmail.com>
8336
107bd7d1
JB
8337 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8338 error as soon as a recursive load is detected.
8fc45744 8339
f097e223
AR
83402009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8341
8342 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8343 before caching.
8344
8810a12f
KH
83452009-02-24 Kenichi Handa <handa@m17n.org>
8346
8347 * fontset.c (fontset_find_font): Fix the condition for checking
8348 unavailable font.
8349
2c7d1565
GM
83502009-02-24 Glenn Morris <rgm@gnu.org>
8351
8352 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8353 whitespace that confuses documentation.
8354
a20878b6
MB
83552009-02-23 Miles Bader <miles@gnu.org>
8356
8357 * process.c (Flist_system_processes, Fprocess_attributes)
8358 (syms_of_process): Rename `system-process-attributes' to
8359 `process-attributes'.
8360
b3b58c01
AS
83612009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8362
1b3b981b
AS
8363 * coding.h (struct coding_system): Make safe_charsets a pointer to
8364 unsigned char.
8365 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8366 being 255.
8367 (SAFE_CHARSET_P): Likewise.
8368 (setup_iso_safe_charsets): Properly setup safe_charsets.
8369 (Fdefine_coding_system_internal): Likewise.
8370 (setup_coding_system): Likewise. Remove unneeded casts.
8371 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8372 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8373 unneeded casts.
8374
b3b58c01
AS
8375 * insdel.c (del_range_2): Don't modify gap contents when called
8376 from decode_coding_object. (Bug#1809)
8377
0b6f228c
CY
83782009-02-21 Chong Yidong <cyd@stupidchicken.com>
8379
8380 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8381 Qfont_object.
8382 (Ftype_of): Recognize font objects.
8383
8384 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8385
8386 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8387 moved to data.c.
8388
52f8870b
AR
83892009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8390
8391 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8392 async_iconified. Based on a patch by Christian Lynbech
8393 <christian.lynbech@tieto.com>.
8394 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8395
7087d5e9
GM
83962009-02-20 Glenn Morris <rgm@gnu.org>
8397
8398 * syntax.c (Fskip_chars_forward): Fix doc typo.
8399
41d2ceef
CY
84002009-02-20 Chong Yidong <cyd@stupidchicken.com>
8401
8402 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8403
1a3b7ca6
CY
84042009-02-19 Chong Yidong <cyd@stupidchicken.com>
8405
8406 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8407
73cce38d
KH
84082009-02-19 Kenichi Handa <handa@m17n.org>
8409
8410 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8411 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8412
a51092ee
DN
84132009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8414
8415 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8416
c423ecca
KH
84172009-02-18 Kenichi Handa <handa@m17n.org>
8418
8419 * font.c (font_check_otf_features): Fix handling of `nil' element.
8420 (Ffont_spec): Describe :lang and :otf in the docstring.
8421
4c1958f4
AS
84222009-02-16 Andreas Schwab <schwab@suse.de>
8423
8424 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8425 string.
8426
5704f39a
KH
84272009-02-16 Kenichi Handa <handa@m17n.org>
8428
8429 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8430 (Bug#1723)
5704f39a 8431
8f0085aa
CY
84322009-02-14 Chong Yidong <cyd@stupidchicken.com>
8433
a057d86a 8434 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8435
8436 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8437 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8438
aff01dd9
EZ
84392009-02-14 Eli Zaretskii <eliz@gnu.org>
8440
8441 * msdos.c (MAX_SCREEN_BUF): New macro.
8442 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8443 Encode the entire run of glyphs sharing the same face, instead of
8444 doing that one glyph at a time (fixes a bug with displaying
8445 double-size characters).
8446
ba301db3
AR
84472009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8448
8449 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8450
8451 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8452 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8453 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8454
8455 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8456 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8457
51d861de
SM
84582009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8459
ac146f82 8460 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8461 invisible areas.
8462
7fed8996
JR
84632009-02-12 Jason Rumney <jasonr@gnu.org>
8464
631ea4fb
JR
8465 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8466 (add_font_entity_to_list): Call check_face_name even when family
8467 is unspecified.
8468
cb4a3e42
JR
8469 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8470 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8471 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8472
7fed8996 8473 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8474 raster fonts. (Bug#2219)
7fed8996 8475
895416e3
KH
84762009-02-12 Kenichi Handa <handa@m17n.org>
8477
8478 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8479 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8480 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8481 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8482 (find_automatic_composition): While looking forward and backward,
8483 check static composition. Fix where to stop looking forward.
8484 (composition_adjust_point): Fix checking of static composition.
8485 (Fcomposition_get_gstring): Pay attention to
1dacf998 8486 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8487
8488 * lisp.h (fast_looking_at): Extern it.
8489
8490 * search.c (fast_looking_at): New function.
8491
51d861de 8492 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8493 <struct glyph>.u.cmp.to.
8494 (append_composite_glyph): Likewise.
8495
51d861de 8496 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8497 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8498 composition.
51d861de 8499 (append_composite_glyph): Adjust for the change of
895416e3
KH
8500 <strcut glyph>.u.cmp.to.
8501
8510724d
JB
85022009-02-11 Juanma Barranquero <lekktu@gmail.com>
8503
8504 * casetab.c (init_casetab_once):
8505 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8506 * font.c (font_update_lface):
8507 * fontset.c (Fnew_fontset):
8508 * ftfont.c (ftfont_drive_otf):
8509 * xfont.c (xfont_open):
8510 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8511
294fa707
SM
85122009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8513
8514 * fileio.c (Fwrite_region): !NILP -> CONSP.
8515
b5bfebec
AS
85162009-02-10 Andreas Schwab <schwab@suse.de>
8517
8518 * process.c (send_process): Properly relocate pointer into data
adab88bd 8519 when using encoded data. (Bug#2272)
b5bfebec 8520
cb84a2be
KH
85212009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8522
8523 * coding.c (detect_coding_charset): Fix previous change.
8524
89e09428
JR
85252009-02-08 Jason Rumney <jasonr@gnu.org>
8526
8527 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8528 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8529
4470a277
AS
85302009-02-07 Andreas Schwab <schwab@suse.de>
8531
8532 * unexelf.c (unexec): Fix error message.
8533
3175b12a
AR
85342009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8535
8536 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8537 when modal window is active. (Bug #2152)
3175b12a
AR
8538 (applicationShouldTerminate:): Remove now-unneeded while loop
8539 around NSRunAlertPanel.
8540
8541 * nsmenu.m (popupSession): New file-global variable.
8542 (pop_down_menu): End the popupSession before closing dialog.
8543 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8544 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8545 don't query NSApp for events (just sleep instead).
8546
8434d0b8
EZ
85472009-02-07 Eli Zaretskii <eliz@gnu.org>
8548
51d861de
SM
8549 * coding.c (syms_of_coding) <translation-table-for-input>:
8550 Modify doc string to discourage use for character code unification.
8434d0b8 8551
aa82edfd
CY
85522009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8553
8554 * atimer.c (run_timers): Update pending_atimers.
8555
2d283c7c
CY
85562009-02-06 Chong Yidong <cyd@stupidchicken.com>
8557
eb306cab
CY
8558 * image.c (svg_load_image): Fix last change.
8559
2d283c7c
CY
8560 * xfns.c (Fx_create_frame): Signal an error if no font is
8561 found (Bug#2147).
8562
4d8e170e
JB
85632009-02-05 Juanma Barranquero <lekktu@gmail.com>
8564
8565 * character.c (syms_of_character) <script-representative-chars>:
8566 Fix typo in docstring.
8567
c96169a0
AR
85682009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8569
8570 * nsmenu.m (pop_down_menu): New function.
8571 (ns_popup_dialog): Call it on unwind.
8572 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8573 call timer_check() (Bug#2154).
8574 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8575 handling_signal is set.
8576 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8577
31fd7c5c 8578 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8579
8580 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8581
8582 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8583
51d861de
SM
8584 * keyboard.c (poll_for_input_1, handle_async_input):
8585 Set handling_signal under HAVE_NS.
c96169a0 8586
aacd8ba1
GM
85872009-02-04 Glenn Morris <rgm@gnu.org>
8588
8589 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8590
4cb75c4b
KH
85912009-02-04 Kenichi Handa <handa@m17n.org>
8592
8593 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8594
8595 * charset.c (Fchar_charset): New optional arg restriction.
8596
8597 * coding.h (coding_system_charset_list): Extern it.
8598
8599 * coding.c (coding_system_charset_list): New function.
8600
8601 * composite.c: Include coding.h and termhooks.h.
8602 (composition_gstring_p): Fix for the terminal case.
8603 (composition_gstring_width): Likewise.
8604 (fill_gstring_body): Likewise.
8605 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8606 the frame.
8607 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8608 is within a composition.
867d4bb3 8609 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8610
8611 * term.c (encode_terminal_code): Fix handling of composition.
8612 (produce_composite_glyph): For static composition, get pixel_width
8613 from struct composition.
8614
826ba17e
AS
86152009-02-02 Andreas Schwab <schwab@suse.de>
8616
8617 * unexelf.c (unexec): Handle unaligned bss offset.
8618
8ad093db
AR
86192009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8620
8621 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8622 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8623
8ad093db
AR
8624 * keyboard.c (handle_interrupt): Don't call
8625 quit_throw_to_read_char() under NS.
d0a76a6e 8626
8ad093db
AR
8627 * blockinput.h: Remove NS-specific code.
8628
4d18a7a2
DN
86292009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8630
db878925
DN
8631 * dispnew.c (window_change_signal): Don't try to get the size of a
8632 suspended tty frame.
8633 * term.c (Fresume_tty): Resize if the size has changed while the
8634 tty was suspended.
8635
4d18a7a2
DN
8636 * alloc.c (mark_stack): Properly conditionalize previous change.
8637
8984df7c
JB
86382009-01-30 Juanma Barranquero <lekktu@gmail.com>
8639
8640 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8641 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8642 Remove; this code is not used on Windows.
8643
75f4f1ac
EZ
86442009-01-30 Eli Zaretskii <eliz@gnu.org>
8645
8646 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8647 EOLs that also has stray ^M characters.
8648
07a1e794
JB
86492009-01-30 Juanma Barranquero <lekktu@gmail.com>
8650
8651 * atimer.c (run_timers, alarm_signal_handler):
8652 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8653 * w32inevt.c (w32_console_read_socket):
8654 * w32term.c (w32_read_socket):
8655 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8656
a8b11cc9
CY
86572009-01-30 Chong Yidong <cyd@stupidchicken.com>
8658
8659 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8660 Initialize it as a relative filename pattern.
8661 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8662 (Fcall_process_region): Simplify temp file creation using
8663 temporary-file-directory.
8664
c279587b
EZ
86652009-01-29 Eli Zaretskii <eliz@gnu.org>
8666
8667 * msdos.c: Rename pending_signals to msdos_pending_signals.
8668 (sig_suspender, sigprocmask): Adjust.
8669
a8fe3242
CY
86702009-01-29 Chong Yidong <cyd@stupidchicken.com>
8671
8672 * keyboard.c (pending_signals): New var.
8673 (poll_for_input, input_available_signal, init_keyboard): Set it.
8674 (process_pending_signals): New function.
8675
8676 * lisp.h (QUIT): Check pending_signals instead of
8677 interrupt_input_pending. Use process_pending_signals.
8678
51d861de 8679 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8680
51d861de 8681 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8682
8683 * sysdep.c (emacs_write): Use process_pending_signals.
8684
8685 * xterm.c (XTread_socket): Update pending_signals.
8686
8687 * w32term.c (w32_read_socket): Update pending_signals.
8688
8689 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8690
6570a1c4
KH
86912009-01-29 Kenichi Handa <handa@m17n.org>
8692
8693 * xftfont.c (xftfont_has_char): New function.
8694 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8695
d72a4afa
AR
86962009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8697
8698 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8699 under GNUstep.
8700 (ns_query_color): New declaration.
8701
8702 * nsterm.m (ns_confirm_quit): New variable.
8703 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8704 (EmacsApp-applicationShouldTerminate:): Use it.
8705 (EmacsPrefsController): Let user set it.
8706 (ns_query_color): New function.
8707 (ns_defined_color): Use it.
8708 (ns_initialize): Drop.
8709 (ns_term_init): Add two lines from ns_initialize(), and set
8710 input_interrupt_mode to nil.
8711
8712 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8713 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8714
9fe78804
KH
87152009-01-28 Kenichi Handa <handa@m17n.org>
8716
8717 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8718 (fontset_get_font_group): Remember that no font-group is specified
8719 for C.
9fe78804 8720
fa57de36
CY
87212009-01-27 Chong Yidong <cyd@stupidchicken.com>
8722
930600e9
CY
8723 * fns.c (concat): Check for string overflow (bug#1787).
8724
fa57de36
CY
8725 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8726 Quadruple undo limits (bug#1501).
8727
7179ce7b
KH
87282009-01-27 Kenichi Handa <handa@m17n.org>
8729
8730 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8731 directly use GT_Get_Char_index.
8732
8733 * xftfont.c (struct xftfont_info): New member `index'.
8734
8735 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8736 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8737
5be8fcc0
CY
87382009-01-26 Kenichi Handa <handa@m17n.org>
8739
8740 * fontset.c (fontset_find_font): Fix handling of non-cons return
8741 value of fontset_get_font_group.
8742 (fontset_font): Revert last change.
8743
19ae3e61
JR
87442009-01-26 Jason Rumney <jasonr@gnu.org>
8745
8746 * w32font.c (w32font_list_internal): Return quickly if registry is
8747 unknown. Simplify final return.
8748 (add_font_entity_to_list): Break complex logic down into more
8749 manageable chunks. Move unknown registry check to
8750 w32font_list_internal.
8751
8612b71a
AR
87522009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8753
8754 Changes to remove Feval calls from GUI under NS.
8755
d8038940
JB
8756 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8757 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8758 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8759
8760 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8761 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8762 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8763 instead of NON_ASCII_KEYSTROKE_EVENT.
8764 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8765 (EmacsApp-applicationShouldTerminate:): Query user.
8766 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8767 instead of Feval.
8768
8769 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8770
8771 * keyboard.c (kbd_buffer_get_event): Check for it.
8772 (keys_of_keyboard): Define lispy keys for
8773 ns-put/unput-working-text.
8774
8775 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8776 versions.
8777 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8778
6288ae55
CY
87792009-01-25 Chong Yidong <cyd@stupidchicken.com>
8780
8781 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8782 setting current_buffer directly. (Bug#2044)
6288ae55 8783
289e7f8f
CY
87842009-01-24 Chong Yidong <cyd@stupidchicken.com>
8785
5ce87308 8786 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8787 any work. (Bug#1952, bug#1990).
5ce87308 8788
64cc3cf6 8789 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8790
b3243e6f
AR
87912009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8792
8793 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8794 (ns_no_defaults): New declaration.
8795 (main): Use it.
e0d2e69a 8796
d900b2af 8797 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8798
d900b2af 8799 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8800
d900b2af
AR
8801 * nsterm.m (ns_no_defaults): New variable.
8802 (ns_initialize): Don't read defaults when ns_no_defaults.
8803 (EmacsView-readSelectionFromPasteboard:)
8804 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8805 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8806 (ns_dumpglyphs_stretch): New function.
8807 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8808 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8809
e0d2e69a
AR
8810 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8811
3ac71f5d
CY
88122009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8813
8814 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8815 call for Sparc64.
8816
3fe53a83
AR
88172009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8818
8819 * nsfns.m:
8820 * nsgui.h:
8821 * nsmenu.m:
8822 * nsselect.m:
8823 * nsterm.h:
8824 * nsterm.m: Remove '23' comments that indicated code added during
8825 update from emacs-20 -> emacs-23.
8826
10f87c6f 88272009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8828
8829 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8830 ns_alternate_modifier. (Bug#1217)
a3b53a85 8831
c7cef62d
AR
8832 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8833 Display all shortcuts, including those w/o super modifier.
8834
575fb8bd
AR
8835 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8836
918b848b
CY
88372009-01-22 Chong Yidong <cyd@stupidchicken.com>
8838
8839 * fileio.c (Vwrite_region_post_annotation_function)
8840 (Vwrite_region_annotation_buffers): New vars.
8841 (build_annotations_unwind): Just reset
8842 Vwrite_region_annotation_buffers.
8843 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8844 Call write-region-post-annotation-function.
8845 (build_annotations): Add to Vwrite_region_annotation_buffers if
8846 buffer changes.
8847
a39e2539
AR
88482009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8849
8850 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8851 Tiger.
51d861de
SM
8852 * nsfns.m (ns_do_applescript):
8853 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8854
35ed44db
AR
88552009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8856
8857 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8858
cbe0b5bf
AR
88592009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8860
8861 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8862
6049d3a0
AR
8863 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8864
8865 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8866 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8867 handle Ctrl-tab. (Bug#1841)
8868 (ns_get_color): Use unsigned long long for scanned hex string value.
8869 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8870 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8871 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8872 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8873 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8874 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8875 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8876
d3810c21 8877 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8878 DPI. (Bug#1316)
d3810c21
AR
8879 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8880 values in onTiger section.
4c7077c3 8881
e301e634
CY
88822009-01-19 Chong Yidong <cyd@stupidchicken.com>
8883
7f82490b
CY
8884 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8885 Check return value of font_spec_from_name.
64cc3cf6 8886 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8887
8888 * font.c (font_spec_from_name): Return Qnil if font name could not
8889 be parsed.
8890 (font_parse_name): Treat a `?' character as part of an XLFD.
8891
e301e634
CY
8892 * fns.c (Fsubstring): Doc fix.
8893
1c0db158
KH
88942009-01-19 Kenichi Handa <handa@m17n.org>
8895
51d861de 8896 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8897 (ftfont_list): Likewise.
8898
acf20901
JB
88992009-01-18 Juanma Barranquero <lekktu@gmail.com>
8900
fff4e459
JB
8901 * dbusbind.c (Fdbus_register_signal):
8902 * process.c (conv_sockaddr_to_lisp):
8903 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8904
acf20901
JB
8905 * callproc.c (Fgetenv_internal): Doc fix.
8906
e7abcdfb
CY
89072009-01-16 Chong Yidong <cyd@stupidchicken.com>
8908
8909 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8910 it is not even used.
8911
b60861e6
GM
89122009-01-16 Glenn Morris <rgm@gnu.org>
8913
8914 * font.c (Ffont_variation_glyphs): Silence compiler.
8915
8db52afe
JB
89162009-01-15 Juanma Barranquero <lekktu@gmail.com>
8917
8918 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8919 Reported by David Robinow <drobinow@gmail.com>.
8920
4cddb209
KH
89212009-01-15 Kenichi Handa <handa@m17n.org>
8922
51d861de 8923 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8924
f247f67b
JR
89252009-01-14 Jason Rumney <jasonr@gnu.org>
8926
8927 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8928 never a fontset. (Bug#1562)
f247f67b 8929
f56a4450
KH
89302009-01-14 Kenichi Handa <handa@m17n.org>
8931
8932 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8933 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8934
4e99855e
CY
89352009-01-13 Chong Yidong <cyd@stupidchicken.com>
8936
8937 * font.c (font_clear_prop): If clearing the family, clear the font
8938 width index too.
8939
fff4e459 8940 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8941
24f01470
JB
89422009-01-12 Juanma Barranquero <lekktu@gmail.com>
8943
8944 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8945 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8946 functions, use sizeof.
8947
a41240a3
MR
89482009-01-12 Martin Rudalics <rudalics@gmx.at>
8949
8950 * keyboard.c (read_char): Fix case where last_nonmenu_event
8951 returned a bad value with submenus. (Bug#447)
8952
944636b8
CY
89532009-01-12 Chong Yidong <cyd@stupidchicken.com>
8954
8955 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8956 family, clear the font width index too.
8957
0dad7c6f
JR
89582009-01-11 Jason Rumney <jasonr@gnu.org>
8959
8960 * keyboard.c (cmd_error_internal): Exit when errors occur before
8961 frame creation and not in daemon mode. (Bug#1836)
8962
7c2363af
CY
89632009-01-10 Chong Yidong <cyd@stupidchicken.com>
8964
8965 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8966 of a display vector, backtrack.
8967 (try_window_reusing_current_matrix): Check glyph type before
8968 referencing charpos member.
8969
97b1b294
EZ
89702009-01-10 Eli Zaretskii <eliz@gnu.org>
8971
8972 Fix Bug #876:
8973
8974 * coding.c (inhibit_null_byte_detection): New variable.
8975 (detect_coding, detect_coding_system): Don't pay attention to null
8976 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8977 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8978 <inhibit-iso-escape-detection>: Doc fix.
8979
4624b6e3
JR
89802009-01-09 Jason Rumney <jasonr@gnu.org>
8981
8982 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8983 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8984 Only report Unicode Plane 2 fonts as unicode-sip.
8985
323b840c
CY
89862009-01-09 Chong Yidong <cyd@stupidchicken.com>
8987
51d861de
SM
8988 * xfaces.c (Fx_font_family_list): Delete function.
8989 Move compatibility version to faces.el.
323b840c 8990
51d861de 8991 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8992
eba7400d
MR
89932009-01-09 Martin Rudalics <rudalics@gmx.at>
8994
8995 * frame.c (x_set_frame_parameters): Remember requested value for
8996 fullscreen before it's reset by the parameter handler.
8997
4b09796d
GM
89982009-01-09 Glenn Morris <rgm@gnu.org>
8999
9000 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9001 (last_command_event): ... and update all users.
4b09796d
GM
9002 (last_input_char): For clarity, rename to...
9003 (last_input_event): ... and update all users.
9004 (last-command-char, last-input-char): Move to subr.el as aliases.
9005 * cmds.c, commands.h: Update for last_command_char rename.
9006
14ccea62
CY
90072009-01-08 Chong Yidong <cyd@stupidchicken.com>
9008
51d861de 9009 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9010
5f004711
JR
90112009-01-08 Jason Rumney <jasonr@gnu.org>
9012
9013 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9014 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9015 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9016 Don't declare.
fff4e459 9017 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9018 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9019
b71f6f73
KH
90202009-01-07 Kenichi Handa <handa@m17n.org>
9021
50b06221 9022 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9023 remember the coding system used for decoding in
50b06221
KH
9024 coding_system (Bug#1039).
9025
b71f6f73 9026 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9027 breaking the loop. (Bug#870)
b71f6f73
KH
9028 (decode_coding_utf_16, decode_coding_emacs_mule)
9029 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9030 (decode_coding_charset): Likewise.
9031
56f668f7
MR
90322009-01-05 Martin Rudalics <rudalics@gmx.at>
9033
9034 * frame.c (x_set_frame_parameters): Make sure height (width) get
9035 applied when fullwidth (fullheight) is set. (Bug#1522)
9036
5da9424d
JB
90372009-01-04 Juanma Barranquero <lekktu@gmail.com>
9038
9039 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9040 (utc_base): Declare as ULONGLONG, not long double.
9041 (convert_time_raw): Delete.
9042 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9043 (initialize_utc_base): New function.
9044 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9045 (convert_from_time_t): Use initialize_utc_base; compute result with
9046 64-bit arithmetic.
9047 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9048
c4605e09
EZ
90492009-01-03 Eli Zaretskii <eliz@gnu.org>
9050
9acef61c 9051 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9052 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9053 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9054 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9055 [!subprocesses]: Define.
9056 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9057 (Flist_system_processes, Fsystem_process_attributes)
9058 [!subprocesses]: Call list_system_processes and
9059 system_process_attributes instead of returning Qnil.
9060
9acef61c
JB
9061 * dosfns.c (system_process_attributes, list_system_processes):
9062 New functions.
c4605e09
EZ
9063
9064 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9065
9066 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9067 Don't use the default (no-op) implementation.
9068
8b7d0a16
JR
90692009-01-03 Jason Rumney <jasonr@gnu.org>
9070
a6d46bc1
JR
9071 * keyboard.c (parse_modifiers_uncached): Wheel events are
9072 clicks (bug#687).
9073
8b7d0a16
JR
9074 * w32term.c (x_query_colors, x_query_color): New functions.
9075
9076 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9077 (svg_load_image): Cast returned pointers from dynamically loaded
9078 functions. Eliminate W32 specific code.
9079
bfe11752
DN
90802009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9081
89e2438a
DN
9082 * nsfns.m (x_set_foreground_color, x_set_background_color)
9083 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9084 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9085 x_ prefix instead of ns_. Update references.
9086 (syms_of_nsfns): Add a FIXME comment.
9087
9088 * nsterm.m (x_set_cursor_type): New prototype.
9089 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9090
bfe11752
DN
9091 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9092 for Solaris instead of incorrectly providing Qutime and Qcutime.
9093
031da700
EZ
90942009-01-02 Eli Zaretskii <eliz@gnu.org>
9095
9096 * w32.c (process_times): Compute sum of utime and stime.
9097 (system_process_attributes): Add Qtime to the alist.
9098
9099 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9100 and add them to the alist.
9101
9102 * process.c (top level) <Qtime, Qctime>: New variables.
9103 (syms_of_process): staticpro them.
9104 (Fsystem_process_attributes): Add their documentation to the doc
9105 string.
9106
9107 * process.h: Declare Qtime and Qctime.
9108
df23bf08
JR
91092009-01-02 Jason Rumney <jasonr@gnu.org>
9110
9acef61c 9111 * image.c (Qgobject): New symbol.
df23bf08
JR
9112 (syms_of_image): Initialize it.
9113 (init_svg_functions): Load some functions from gobject library.
9114
5bbdf7aa
DN
91152009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9116
9117 * frame.c (make_terminal_frame): Remove redundant code and useless
9118 block.
9119
63136da6
AS
91202009-01-01 Andreas Schwab <schwab@suse.de>
9121
9122 * process.c (conv_sockaddr_to_lisp): Add workaround for
9123 getsockname bug on BSD.
9124
9ef69046
CY
91252009-01-01 Chong Yidong <cyd@stupidchicken.com>
9126
d6fafbe0
CY
9127 * xfns.c (x_create_tip_frame): Set border width of the X window.
9128
51d861de 9129 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9130
f9c34147
JR
91312009-01-01 Jason Rumney <jasonr@gnu.org>
9132
9acef61c 9133 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9134 Don't block input, as per earlier xterm.c changes.
9135
f5497e45
AR
91362008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9137
9138 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9139 (ns_appkit_version_int): New function.
9140 (x-server-version): Use ns_appkit_version_int and follow 21+
9141 convention of returning 3 integers.
9142
c19cab20
KH
91432008-12-30 Kenichi Handa <handa@m17n.org>
9144
9145 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9146 (CHAR_SURROGATE_PAIR_P): New macro.
9147
9148 * font.h (struct font_driver): New member get_variation_glyphs.
9149
9acef61c 9150 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9151 (Ffont_variation_glyphs): New function.
9152 (syms_of_font): Defsubr it.
9153
9154 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9155 ftfont_variation_glyphs.
9156 (setup_otf_gstring): New function.
9157 (ftfont_drive_otf): Use it.
9158 (ftfont_shape_by_flt): Handle variation selector.
9159 (ftfont_variation_glyphs): New function.
9160
28cd591f
MR
91612008-12-30 Martin Rudalics <rudalics@gmx.at>
9162
9163 * frame.c (Vemacs_iconified): Remove.
9164
7f714baf
JR
91652008-12-30 Jason Rumney <jasonr@gnu.org>
9166
9167 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9168 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9169
9d2d22ab
CY
91702008-12-30 Chong Yidong <cyd@stupidchicken.com>
9171
9172 * indent.c (Fvertical_motion): Don't advance iterator if we have
9173 reseated to the desired position.
9174
9175 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9176 checking for pos match.
9177
545312c2
KH
91782008-12-30 Kenichi Handa <handa@m17n.org>
9179
1ede3eb6
KH
9180 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9181 just get the low 8-bit of the code.
9182
545312c2
KH
9183 * font.c (font_intern_prop): Validate str as multibyte.
9184
bd7bbf29
DN
91852008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9186
31e0750e
DN
9187 * dispextern.h (struct face): Move lface and hash from the middle
9188 of bitfields.
9189
bd7bbf29
DN
9190 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9191
b5672e7c
DN
91922008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9193
9194 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9195 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9196 instead of intervals.h.
9197
d704470f
AS
91982008-12-26 Andreas Schwab <schwab@suse.de>
9199
9200 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9201 cons.
9202
54b33868
MR
92032008-12-26 Martin Rudalics <rudalics@gmx.at>
9204
9205 * textprop.c (Qminibuffer_prompt): New variable.
9206 (syms_of_textprop): Initialize it.
9207 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9208 in minibuffer-prompt face. (Bug#1662)
9209
40b615d6
JR
92102008-12-25 Jason Rumney <jasonr@gnu.org>
9211
9212 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9213
baae5c2d
JR
92142008-12-24 Jason Rumney <jasonr@gnu.org>
9215
9216 * ralloc.c (r_alloc_reset_variable): New function.
9217
9218 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9219 record of what points where. (Bug#716)
baae5c2d 9220
a9051c88
DN
92212008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9222
9223 * minibuf.c (read_minibuf): Follow the non-interactive case when
9224 running as a daemon, before detaching.
9225
8b146312
AS
92262008-12-22 Andreas Schwab <schwab@suse.de>
9227
9228 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9229 * gtkutil.c (free_widget_value): Use xfree instead of free.
9230
56f2de10
MR
92312008-12-22 Martin Rudalics <rudalics@gmx.at>
9232
9233 * frame.c (delete_frame): New function derived from
9234 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9235 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9236 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9237 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9238 * frame.h: Extern delete_frame.
9239 * window.c (window_loop):
9240 * terminal.c (delete_terminal):
9241 * xterm.c (x_connection_closed):
9242 * xfns.c (Fx_hide_tip):
9acef61c 9243 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9244
1fc200d6
JR
92452008-12-21 Jason Rumney <jasonr@gnu.org>
9246
9247 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9248 when character maps to .notdef character.
9249
5e252df2
SM
92502008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9251
9252 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9253
99b72cc4
JR
92542008-12-20 Jason Rumney <jasonr@gnu.org>
9255
9256 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9257 a graphical frame on Windows. (Bug#1325)
99b72cc4 9258
acc49a52
JD
92592008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9260
9261 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9262
6ea15123
CY
92632008-12-20 Chong Yidong <cyd@stupidchicken.com>
9264
9265 * minibuf.c (Fread_buffer): Doc fix.
9266
b2dab6c8
JR
92672008-12-20 Jason Rumney <jasonr@gnu.org>
9268
54ea0c87 9269 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9270 server name in UNC paths. (Bug#719)
54ea0c87 9271
b2dab6c8 9272 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9273 charbuf. (Bug#1035)
b2dab6c8 9274
6d1921be
DN
92752008-12-19 Daniel Engeler <engeler@gmail.com>
9276
9277 * sysdep.c (serial_configure): Fix typo.
9278
53934c98
DN
92792008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9280
9281 * sysdep.c: Include alloca.h.
f4f634e8
DN
9282 (system_process_attributes): Add implementation for Solaris.
9283
9284 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9285
06e111a6
DN
92862008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9287
9288 Reorganize implementation of Flist_system_processes and
9289 Fsystem_process_attributes. No functional changes.
9290 * process.c: Don't #include pwd.h, grp.h and limits.h.
9291 (Flist_system_processes): Just call list_system_processes.
9292 (Fsystem_process_attributes): Just call system_process_attributes.
9293 (procfs_list_system_processes, time_from_jiffies)
9294 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9295 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9296
9297 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9298 (list_system_processes): Rename from
9299 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9300 Provide a do nothing implementation.
9301 (system_process_attributes): Rename from
9302 procfs_list_system_processes.
9303 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9304 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9305
9306 * w32.c (list_system_processes): Rename from
9307 w32_list_system_processes.
9308 (system_process_attributes): Rename from
9309 w32_system_process_attributes.
9310
9311 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9312
9313 * process.h (w32_list_system_processes)
9314 (w32_system_process_attributes): Remove.
362654a6
JB
9315 (list_system_processes, system_process_attributes):
9316 New prototypes.
06e111a6 9317
6a705b23
KH
93182008-12-19 Kenichi Handa <handa@m17n.org>
9319
9320 * xfont.c (xfont_decode_coding_xlfd): New function.
9321 (xfont_encode_coding_xlfd): New function.
9322 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9323 (xfont_list): Decode and encode XLFD by iso-8859-1.
9324 (xfont_match): Likewise.
9325 (xfont_list_family): Likewise.
9326 (xfont_open): Likewise.
9327
d66c0241 9328 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9329 names are utf-8.
9330
d66c0241 9331 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9332 names are utf-8.
9333
5a130941
JD
93342008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9335
9336 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9337 changed.
bfd20325
JD
9338 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9339 clicked on a detached tool bar button.
5a130941 9340
fd95644b
DN
93412008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9342
9343 * emacs.c (main): Print and error and exit when no data is read
9344 from the pipe.
9345
e6eee6ae
JR
93462008-12-17 Jason Rumney <jasonr@gnu.org>
9347
9348 * w32font.c (w32font_has_char): Always return -1.
9349
a35dd56b
KH
93502008-12-16 Kenichi Handa <handa@m17n.org>
9351
9352 * font.c (font_open_entity): Fix previous change.
9353
0e3635c2
DN
93542008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9355
9356 * process.c: Include <limits.h>.
9357
d4835507 93582008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9359
9360 * font.c (font_update_drivers): Fix mistake in reconstructing the
9361 driver list.
9362
93632008-12-16 Chong Yidong <cyd@stupidchicken.com>
9364
9365 * font.c (font_clear_cache): Fix format of font cache data.
9366
e2cbc401
CY
93672008-12-15 Chong Yidong <cyd@stupidchicken.com>
9368
9369 * xftfont.c (xftfont_open): Free Xft font pattern if
9370 XftFontOpenPattern fails.
9371
9372 * xterm.c (x_free_frame_resources): Remove extraneous call to
9373 free_frame_faces.
9374
b131d535
CY
93752008-12-13 Chong Yidong <cyd@stupidchicken.com>
9376
9377 * xterm.c (x_delete_display): Move xim_close_dpy call to
9378 x_delete_terminal.
9379 (x_delete_terminal): Call xim_close_dpy.
9380
e6df5336
JR
93812008-12-13 Jason Rumney <jasonr@gnu.org>
9382
9383 * w32font.c (intern_font_name): New function.
9384 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9385 (w32font_open_internal, Fx_select_font): Decode font name.
9386 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9387
9388 * w32font.h (intern_font_name): Declare new function.
9389
9390 * w32uniscribe.c (add_opentype_font_name_to_list):
9391 Use intern_font_name.
9392
20d68145
CY
93932008-12-13 Chong Yidong <cyd@stupidchicken.com>
9394
9f2554de
CY
9395 * frame.c (Fdelete_frame): Call free_font_driver_list.
9396
3d9bec9a
CY
9397 * font.c (free_font_driver_list): Implement missing function.
9398
20d68145
CY
9399 * w32term.c (w32_term_init): Don't initialize the image cache
9400 here; it will be done in init_frame_faces.
9401
9402 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9403 (struct x_display_info): Remove unused member null_pixel. New
9404 member xim_callback_data.
9405
9406 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9407 (xim_initialize): Save pointer to callback function data.
9408 (xim_close_dpy): Free callback function data. Call XCloseIM,
9409 reverting 2008-11-04 change by David Smith.
9410 (x_term_init): Don't initialize the image cache here; it will be
9411 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9412 (x_delete_display): Free x_dnd_atoms member.
9413
96f9306b
KH
94142008-12-13 Kenichi Handa <handa@m17n.org>
9415
6dec9044
JB
9416 * font.c (font_rescale_ratio): Moved from xfaces.c.
9417 Argument type changed. Handle a font-spec too.
96f9306b 9418 (font_score): Check Vface_font_rescale_alist.
6dec9044 9419 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9420
9421 * xfaces.c (font_rescale_ratio): Moved to font.c.
9422
8d5b4964
CY
94232008-12-13 Chong Yidong <cyd@stupidchicken.com>
9424
9425 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9426
e6df5336
JR
94272008-12-12 Jason Rumney <jasonr@gnu.org>
9428
9429 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9430 Vwindow_system_version to the real w32 major version.
9431
97c6058a
DN
94322008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9433
9434 * term.c (init_tty): Move setting the terminal name before the
9435 potential user: maybe_fatal.
9436
ec4e88d7
CY
94372008-12-11 Chong Yidong <cyd@stupidchicken.com>
9438
d4835507
JB
9439 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9440 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9441
b4233ec9
JR
94422008-12-11 Jason Rumney <jasonr@gnu.org>
9443
8ec71e23 9444 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9445 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9446
b4233ec9 9447 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9448 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9449
011a0143
JB
94502008-12-11 Juanma Barranquero <lekktu@gmail.com>
9451
9452 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9453
3c309f34
JB
94542008-12-11 Juanma Barranquero <lekktu@gmail.com>
9455
9456 * process.c (Fsystem_process_attributes, syms_of_process):
9457 Fix typo in name of Ssystem_process_attributes.
9458 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9459
fedc6ab5
JB
94602008-12-11 Juanma Barranquero <lekktu@gmail.com>
9461
9462 * syntax.c (Fmodify_syntax_entry): Doc fix.
9463
ba3de0e8
JB
94642008-12-10 Juanma Barranquero <lekktu@gmail.com>
9465
9466 * font.c (Ffont_spec): Move usage to end of docstring.
9467
174f1c74
JR
94682008-12-10 Jason Rumney <jasonr@gnu.org>
9469
9470 * w32font.c (Qcham): New symbol.
9471 (font_supported_scripts): Add cham, and comments for other new
9472 scripts in bitfield from OpenType spec.
9d32f818
JR
9473 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9474 contain characters beyond the bmp.
174f1c74 9475
7b649478
KH
94762008-12-10 Kenichi Handa <handa@m17n.org>
9477
9478 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9479 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9480 Qunicode_sip.
9481
2133e2d1
JB
94822008-12-10 Juanma Barranquero <lekktu@gmail.com>
9483
9484 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9485 (Fcoding_system_put): Use QCdefault_char.
9486 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9487
9af886ee
CY
94882008-12-09 Chong Yidong <cyd@stupidchicken.com>
9489
74d819eb
CY
9490 * xftfont.c (syms_of_xftfont): Fix typo.
9491
4ccfa1c0 9492 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9493
7c19d3ae
DN
94942008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9495
9496 * emacs.c (main): Close daemon_pipe on exec.
9497
567826bb
CY
94982008-12-08 Chong Yidong <cyd@stupidchicken.com>
9499
9500 * termchar.h (struct tty): New members termcap_term_buffer and
9501 termcap_strings_buffer.
9502
9503 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9504 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9505 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9506 All callers changed.
9507 (init_tty): Store termcap data and string buffers in new struct
9508 tty members termcap_term_buffer and termcap_strings_buffer.
9509 (delete_tty): Free them.
4ccfa1c0 9510 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9511
aa96c42b
SZ
95122008-12-07 Seiji Zenitani <zenitani@mac.com>
9513
9514 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9515 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9516
b7e1d896
CY
95172008-12-06 Chong Yidong <cyd@stupidchicken.com>
9518
9519 * coding.c (make_conversion_work_buffer): Disable buffer
9520 modification hooks in the work buffer.
9521
b5ec91a5
EZ
95222008-12-05 Eli Zaretskii <eliz@gnu.org>
9523
9524 * process.c (procfs_system_process_attributes): If `nread' has a
9525 negative value, assign zero to it.
9526
a5d2a52b
CY
95272008-12-05 Chong Yidong <cyd@stupidchicken.com>
9528
68c5540b 9529 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9530
7bf1bb21
KH
95312008-12-05 Kenichi Handa <handa@m17n.org>
9532
9533 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9534 second character is a combining character.
9535
2fdc7d00
EZ
95362008-12-05 Eli Zaretskii <eliz@gnu.org>
9537
9538 * process.c (procfs_system_process_attributes): Don't use cmd,
9539 cmdsize, and q without initializing them first.
9540
bf6bfba8
JR
95412008-12-04 Jason Rumney <jasonr@gnu.org>
9542
9543 * w32font.c (w32font_draw): Initialize orig_clip before getting
9544 it, and delete it when finished.
9545
a3b1a468
DN
95462008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9547
9548 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9549 case when running as a daemon before detaching.
9550
8b8be8eb
JB
95512008-12-03 Juanma Barranquero <lekktu@gmail.com>
9552
805f2638 9553 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9554
b1bde622
KH
95552008-12-03 Kenichi Handa <handa@m17n.org>
9556
e500c47d
KH
9557 * font.c (font_at): Set `multibyte' at first.
9558
ca516334
KH
9559 * coding.c (decode_coding_charset): Check type of an element of
9560 vector VALIDS.
7bf1bb21 9561 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9562
4ccfa1c0 9563 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9564 (font_for_char): Likewise.
9565
1e5ecd37
CY
95662008-12-03 Chong Yidong <cyd@stupidchicken.com>
9567
d5b01609 9568 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9569 (font_update_lface): Handle fonts with corrupted size specs,
9570 i.e. non-int and non-float.
d5b01609 9571
11e3a6e4 9572 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9573 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9574 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9575
ab06788b
CY
9576 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9577
1e5ecd37 9578 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9579 underline_minimum_offset for underline position.
1e5ecd37 9580
63c125ab
DN
95812008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9582
9583 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9584
9585 * character.c (c_string_width): Specify the type for LEN.
9586
3a8406e1
KH
95872008-12-03 Kenichi Handa <handa@m17n.org>
9588
4ccfa1c0 9589 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9590 (decode_coding_utf_8): Likewise.
4ccfa1c0 9591 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9592 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9593
651df7d9
CY
95942008-12-02 Chong Yidong <cyd@stupidchicken.com>
9595
9596 * keyboard.c (make_lispy_position): Only use PT if the selected
9597 window is current.
9598
1f625c6c
AS
95992008-12-02 Andreas Schwab <schwab@suse.de>
9600
f7741ce9
AS
9601 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9602
1f625c6c
AS
9603 * doprnt.c (doprnt1): Fix size of charbuf.
9604
92bc2678
CY
96052008-12-02 Chong Yidong <cyd@stupidchicken.com>
9606
9607 * keyboard.c (timer_check): Revert last change.
9608
93b9e8cc
JB
96092008-12-02 Juanma Barranquero <lekktu@gmail.com>
9610
9611 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9612
fd7a37d5
JB
96132008-12-01 Juanma Barranquero <lekktu@gmail.com>
9614
9615 * makefile.w32-in: Update dependencies.
9616 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9617
c115043b
AS
96182008-12-01 Andreas Schwab <schwab@suse.de>
9619
9620 * font.c (register_font_driver): Use xmalloc.
9621 (font_put_frame_data): Likewise.
9622
f5668d2a
CY
96232008-12-01 Chong Yidong <cyd@stupidchicken.com>
9624
860d96be
CY
9625 * xfaces.c (realize_x_face): Make abort condition clearer.
9626
f5668d2a
CY
9627 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9628
379c17e7
CY
96292008-11-30 Chong Yidong <cyd@stupidchicken.com>
9630
9631 * keyboard.c (timer_check): After a timer runs, ensure that the
9632 selected window's buffer is current.
9633
35f36d65
JB
96342008-11-30 Juanma Barranquero <lekktu@gmail.com>
9635
f952c61c
JB
9636 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9637 It was accidentally restored by the Unicode merge.
9638
35f36d65
JB
9639 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9640
b23077df
JB
96412008-11-29 Juanma Barranquero <lekktu@gmail.com>
9642
9643 * w32proc.c: Include "coding.h".
9644 (Fw32_short_file_name): Encode filename passed to Windows API.
9645 (Fw32_long_file_name): Encode filename passed to Windows API and
9646 decode back the result. (Bug#1433)
9647
b8ebe9dd
KH
96482008-11-29 Kenichi Handa <handa@m17n.org>
9649
8cc53f96
KH
9650 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9651 not before accessing it.
9652
b8ebe9dd
KH
9653 * charset.c (Fdefine_charset_internal): After calculating
9654 min_char, max_char, and fastmap, copy the charset structure again.
9655 (encode_char): Fix the previous change.
9656
59bc82c0
SZ
96572008-11-28 Seiji Zenitani <zenitani@mac.com>
9658
9659 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9660
9661 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9662
9663 * nsterm.m (x_set_frame_alpha): New function.
9664
32247e3d
EZ
96652008-11-27 Eli Zaretskii <eliz@gnu.org>
9666
9667 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9668
b003e5ff
JB
96692008-11-27 Juanma Barranquero <lekktu@gmail.com>
9670
9671 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9672 pointer to check_face_name.
9673
708550f5
KH
96742008-11-27 Kenichi Handa <handa@m17n.org>
9675
9676 * category.h (SET_CATEGORY_SET): Call set_category_set.
9677 (set_category_set): Extern it.
9678
9679 * category.c (hash_get_category_set): New function.
9680 (Fmodify_category_entry): Adjusted for the change of
9681 char_table_ref_and_range. Call hash_get_category_set to get a
9682 category set to store in the table.
9683
9684 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9685 Funify_charset.
9686
2ae37cf0 9687 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9688 (DECODE_CHAR): Check if the decoder vector is ready.
9689 (ENCODE_CHAR): Check if the encoder char-table is ready.
9690 (maybe_unify_char): Extern it.
9691
9692 * charset.c (Vchar_unified_charset_table): Delete it.
9693 (inhibit_load_charset_map): New variable.
9694 (temp_charset_work): New variable.
9695 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9696 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9697 New macros.
9698 (load_charset_map): Meaning of control_flag changed. If
9699 inhibit_load_charset_map is nonzero, setup a table in
9700 temp_charset_work.
9701 (load_charset): New argument control_flag.
9702 (map_charset_for_dump): New function.
9703 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9704 map_charset_for_dump.
9705 (Fdefine_charset_internal): If the charset method is MAP, load
9706 mapping tables by calling load_charset.
9707 (Funify_charset): Don't load a mapping table but directly set
9708 Vchar_unify_table.
9709 (maybe_unify_char): New function.
9710 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9711 Handle the case of inhibit_load_charset_map being nonzero.
9712 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9713 Handle the case of inhibit_load_charset_map being nonzero.
9714 (Fclear_charset_maps): Just free temp_charset_work.
9715 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9716 variable.
9717
9718 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9719 change of char_table_ref_and_range.
9720 (char_table_ref_and_range): Change the meaning of argument FROM
9721 and TO. Now the caller must provide initial values for *FROM
9722 and *TO.
9723
9724 * fontset.c (fontset_add): Adjusted for the change of
9725 char_table_ref_and_range.
9726 (fontset_get_font_group): Likewise.
9727 (Ffontset_info): Likewise.
9728
9729 * keymap.c (describe_vector): Adjusted for the change of
9730 char_table_ref_and_range. For char-table, put boundary between
9731 non-ASCII and 8-bit characters.
9732
9733 * print.c (print_object): For bool-vector, delete unnecessary
9734 check of ASCII_BYTE_P.
9735
9196133b
JR
97362008-11-26 Jason Rumney <jasonr@gnu.org>
9737
9738 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9739 leading in font height. (Bug#879)
9196133b 9740
9f688acf
GM
97412008-11-26 Glenn Morris <rgm@gnu.org>
9742
9743 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9744 redefinition with ifdef. (Bug#1383)
9745
90d19aff
AR
97462008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9747
9748 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9749
4ccfa1c0 97502008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9751
9752 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9753 New EmacsView methods.
9754 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9755 Fixes bug #1048,1357,1414.
9756
97572008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9758
9759 Fix bug #1362.
9760 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9761 is not an indexed color.
9762 * nsterm.m (free_indexed_color): Add argument checking.
9763 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9764
e7d5ecb3
CY
97652008-11-24 Chong Yidong <cyd@stupidchicken.com>
9766
9767 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9768 Document confirm-after-completion value for
9769 minibuffer-completion-confirm.
9770
c285743c
JR
97712008-11-24 Jason Rumney <jasonr@gnu.org>
9772
9773 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9774 warning.
9775
b0857706
JR
97762008-11-23 Jason Rumney <jasonr@gnu.org>
9777
9778 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9779 restored before returning.
9780
9781 * w32font.c (check_face_name): New function.
9782 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9783 fonts. (Bug#642)
b0857706 9784
ee50ff07
MR
97852008-11-22 Martin Rudalics <rudalics@gmx.at>
9786
9787 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9788 confirm-nonexistent-file-or-buffer in doc-string.
9789
b8ff72fa
SM
97902008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9791
9792 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9793 Fix copy/paste typo. Add checks.
9794
cee53ed4
KH
97952008-11-21 Kenichi Handa <handa@m17n.org>
9796
9797 * coding.c (detect_coding_iso_2022): Reject invalid composition
9798 sequence.
9799 (DECODE_COMPOSITION_START): If the current source is the last
9800 block, and the current composition doesn't end, regard this
9801 sequence as invalid.
9802 (decode_coding_iso_2022): Handle invalid composition sequence.
9803
f6ef1e65
MR
98042008-11-20 Martin Rudalics <rudalics@gmx.at>
9805
9806 * window.c (coordinates_in_window): Don't return
9807 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9808 line when the window is not the rightmost one. (Bug#1372)
9809
e08b1705
MR
98102008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9811
9812 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9813
ad98e89f
EZ
98142008-11-15 Eli Zaretskii <eliz@gnu.org>
9815
9816 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9817 and bright_bg if noninteractive is non-zero.
9818
fb098a4b
CY
98192008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9820
9821 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9822 x_draw_glyph_string_background.
9823
9824 * w32term.c (x_draw_glyph_string): Likewise.
9825
ce952b6e
CY
98262008-11-15 Chong Yidong <cyd@stupidchicken.com>
9827
9828 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9829 the next glyph string once past the overhang width.
9830
9831 * nsterm.m (ns_draw_glyph_string): Likewise.
9832
9833 * w32term.c (x_draw_glyph_string): Likewise.
9834
26ea7079
CY
98352008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9836
9837 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9838 double file close.
9839
1c33c906
MR
98402008-11-14 Martin Rudalics <rudalics@gmx.at>
9841
9842 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9843 dedicated status of window before attempting to display another
9844 buffer in it.
9845
8fc29035
JB
98462008-11-14 Juanma Barranquero <lekktu@gmail.com>
9847
9848 * msdos.c (Fmsdos_long_file_names):
9849 (syms_of_msdos) <dos-unsupported-char-glyph>:
9850 * dosfns.c (Fint86): Fix typos in docstrings.
9851
55fb4286
EZ
98522008-11-14 Eli Zaretskii <eliz@gnu.org>
9853
9854 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9855
3fda0315
KY
98562008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9857
9858 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9859
7e849c17
CY
98602008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9861
9862 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9863
9864 * frame.h: Negative alpha means "don't touch".
9865
9866 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9867
9868 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9869
b9fd67bd
DN
98702008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9871
9872 * hftctl.c:
9873 * chpdef.h:
9874 * acldef.h: Remove files used only for systems no longer supported.
9875
9876 * Makefile.in: Fix .o alphabetical ordering.
9877 (hftctl.o): Remove dependency, file removed.
9878 (keymap.o, print.o): Depend on charset.h.
9879
d5998e03
KH
98802008-11-10 Kenichi Handa <handa@m17n.org>
9881
2ae37cf0 9882 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9883
be70e183
CY
98842008-11-08 Chong Yidong <cyd@stupidchicken.com>
9885
9886 * dired.c (file_name_completion): If completion_ignore_case is
9887 enabled, ignore case when checking completion-regexp-list.
9888
7cf94eac
EZ
98892008-11-08 Eli Zaretskii <eliz@gnu.org>
9890
9891 * vm-limit.c (get_lim_data): Fix last change.
9892
ee107a89
KH
98932008-11-08 Kenichi Handa <handa@m17n.org>
9894
9895 * character.c (Fget_byte): New function.
9896 (syms_of_character): Defsubr Fget_byte.
9897
5fd15622
CY
98982008-11-07 Chong Yidong <cyd@stupidchicken.com>
9899
9900 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9901 cursor position is valid after scrolling.
9902
13d62fad
JB
99032008-11-06 Juanma Barranquero <lekktu@gmail.com>
9904
9905 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9906
a1dd2936
GM
99072008-11-06 Glenn Morris <rgm@gnu.org>
9908
9909 * xterm.c (handle_one_xevent): Don't let popup menus cause
9910 mouse-autoselect-window related window switching. (Bug#1261)
9911
860cd236
CY
99122008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9913
9914 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9915
653a3150
AS
99162008-11-04 Andreas Schwab <schwab@suse.de>
9917
9918 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9919
870f5cac
CY
99202008-11-03 Chong Yidong <cyd@stupidchicken.com>
9921
9922 * xfns.c (Fx_wm_set_size_hint): New function.
9923
1e02f3cb
MR
99242008-11-03 Martin Rudalics <rudalics@gmx.at>
9925
9926 * textprop.c (Fprevious_single_char_property_change): Return 0
9927 when there's no change in a string. (Bug#1301)
9928
e630dfc6
MR
99292008-11-02 Martin Rudalics <rudalics@gmx.at>
9930
9931 * frame.c (do_switch_frame): New argument NORECORD passed to
9932 Fselect_window.
9933 (Fselect_frame): New argument NORECORD passed to
9934 do_switch_frame.
9935 (Fset_frame_selected_window): New argument NORECORD passed to
9936 Fselect_frame.
9937 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9938 in call of do_switch_frame.
9939 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9940 Handle NORECORD argument in call of Fselect_frame.
9941 * lisp.h (do_switch_frame, Fselect_frame)
9942 (Fset_frame_selected_window): Adjust declarations.
9943 * window.c (select_frame_norecord): New function.
9944 (run_window_configuration_change_hook): Use it and call
9945 Fselect_frame with NORECORD set.
9946 (Fselect_window): Pass NORECORD to Fselect_frame.
9947 (Fset_window_configuration): Handle NORECORD argument in call of
9948 do_switch_frame.
9949 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9950 Fset_frame_selected_window.
9951 * keyboard.c (command_loop_1): Handle NORECORD in call of
9952 Fselect_frame (currently ifdefd).
9953
9020b223
GM
99542008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9955
9956 * emacs.c (USAGE2): Untabify.
9957
793ffee8
SM
99582008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9959
9960 * composite.c (fill_gstring_header): Fix copy/paste typo.
9961
ab6d1131
MR
99622008-10-31 Martin Rudalics <rudalics@gmx.at>
9963
9964 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9965 (Fother_window): Rename argument and rewrite doc-string.
9966 (select_window_norecord): Fix return value. (Bug#1276)
9967
601a9cf1
JB
99682008-10-30 Juanma Barranquero <lekktu@gmail.com>
9969
9970 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9971 new frames overriding foreground for tooltips. Based on similar patch
9972 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9973
813b0652
CY
99742008-10-29 Chong Yidong <cyd@stupidchicken.com>
9975
9976 * emacs.c (Fdaemon_initialized): Initialize nfd.
9977
4414f58f
MR
99782008-10-29 Martin Rudalics <rudalics@gmx.at>
9979
9980 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9981 (Fwindow_text_height): Clarify doc-strings.
9982 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9983 doc-string of window-scroll-functions.
9984
ecdcaa09
RS
99852008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9986
9987 * category.c (syms_of_category): Fix typo in docstring.
9988
23fe745a
JB
99892008-10-28 Juanma Barranquero <lekktu@gmail.com>
9990
9991 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9992 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9993 Fix typos in docstrings.
9994
ff808935
DN
99952008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9996
9997 * emacs.c (daemon_pipe): Make non-static.
9998 (IS_DAEMON): Move definition ...
9999 * lisp.h (IS_DAEMON): ... here.
10000 (daemon_pipe): Declare.
10001 (is_daemon): Remove.
10002 * dispnew.c (init_display): Use IS_DAEMON.
10003
fc012771
SM
100042008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10005
10006 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10007 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10008
10009 * emacs.c (is_daemon): Remove.
10010 (main): Don't set is_daemon.
10011 (IS_DAEMON): New macro.
10012 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10013 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10014 parent exits.
10015 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10016
d8bdbe6f
CY
100172008-10-27 Chong Yidong <cyd@stupidchicken.com>
10018
d1a072bf
CY
10019 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10020 over-sized glyph, draw it with the default glyph width.
10021
e2e325aa
CY
10022 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10023 glyph, draw it with the default glyph width.
10024
10025 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10026 glyph, draw it with the default glyph width.
10027
d8bdbe6f
CY
10028 * xdisp.c (try_scrolling): When computing the distance from the
10029 scroll margin to PT, try moving some distance past the window
10030 bottom before giving up.
10031
7bfac547
MR
100322008-10-27 Martin Rudalics <rudalics@gmx.at>
10033
10034 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10035 (Fset_window_buffer): Explain in doc-string that a window can be
10036 "strongly" dedicated to its buffer.
10037
4ff029f6
DN
100382008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10039
10040 * emacs.c (daemon_name): New variable.
10041 (main): Deal with --daemon=SERVER_NAME.
10042 (Fdaemonp): Return a name if one was passed to --daemon.
10043
5790ef40
DN
100442008-10-26 Romain Francoise <romain@orebokech.com>
10045
f9bd0df9 10046 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10047 (main): Create a pipe before forking, make the parent exit only after
10048 the child has closed its end of the pipe. Move closing the
10049 descriptors ...
10050 (Fdaemon_initialized): ... here. New function.
10051
f5385255
SM
100522008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10053
4d632321
SM
10054 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10055 the previous unoptimized table.
10056
f5385255
SM
10057 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10058 the distinction between non-nil and non-t value of `dedicated'.
10059
6c56a0f3
CY
100602008-10-25 Chong Yidong <cyd@stupidchicken.com>
10061
10062 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10063 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10064
fec89261
MR
100652008-10-25 Martin Rudalics <rudalics@gmx.at>
10066
10067 * window.c (Fget_buffer_window, Fdelete_windows_on)
10068 (Freplace_buffer_in_windows): Make buffer argument optional and
10069 rename to buffer_or_name.
10070
34fcddd0
CY
100712008-10-24 Chong Yidong <cyd@stupidchicken.com>
10072
f5385255
SM
10073 * xdisp.c (handle_single_display_spec, handle_display_prop):
10074 Undo 2005-05-16 change.
34fcddd0
CY
10075 (handle_stop): Pop iterator if it's loaded with an empty string.
10076 (get_overlay_strings_1): Don't save iterator if it's loaded with
10077 an empty string (bug#1201).
10078
064766f2
KH
100792008-10-24 Kenichi Handa <handa@m17n.org>
10080
10081 * ftfont.c (ftfont_otf_features): Fix previous change.
10082 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10083 calling ftfont_otf_features.
10084
f9bd0df9 100852008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10086
10087 * font.c (font_match_p): Fix for the case that a vector of
10088 characters is in script-representative-chars.
10089
1dae9197
MA
100902008-10-24 Michael Albinus <michael.albinus@gmx.de>
10091
10092 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10093 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10094 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10095 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10096 macro. (Bug#1186)
1dae9197 10097
f9bd0df9 100982008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10099
10100 * s/sol2-10.h: New file.
10101
878a4584
JB
101022008-10-23 Juanma Barranquero <lekktu@gmail.com>
10103
10104 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10105 poor beast has survived 9+ years and the jump from xterm.c!).
10106
cd265ca6
MR
101072008-10-23 Martin Rudalics <rudalics@gmx.at>
10108
10109 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10110 Reword doc-string.
f5385255 10111 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10112
472a4dc9
JB
101132008-10-23 Juanma Barranquero <lekktu@gmail.com>
10114
10115 * character.c (syms_of_character) <script-representative-chars>:
10116 <unicode-category-table>: Doc fixes.
10117
159bd5a2
NF
101182008-10-23 Noah Friedman <friedman@splode.com>
10119
10120 * coding.c (make_conversion_work_buffer): Check that
10121 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10122 Fget_buffer_create.
10123
49f9c344
KH
101242008-10-23 Kenichi Handa <handa@m17n.org>
10125
10126 * font.c (font_add_log): Check the values of extra properties.
10127
12bb3111
MR
101282008-10-22 Martin Rudalics <rudalics@gmx.at>
10129
10130 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10131 Reword doc-string.
10132 (Fset_window_parameter): Use NILP.
10133 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10134 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10135
bbeb4e99
JB
101362008-10-22 Juanma Barranquero <lekktu@gmail.com>
10137
10138 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10139
101402008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10141
10142 * nsfns.m (ns_appkit_version): New function.
10143 (x-server-version): Use it.
10144 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10145 (x-server-vendor): Don't check_ns().
10146
10147 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10148
a9b555d3
JB
101492008-10-22 Juanma Barranquero <lekktu@gmail.com>
10150
10151 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10152 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10153
4626499f
KH
101542008-10-22 Kenichi Handa <handa@m17n.org>
10155
e3681952
KH
10156 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10157 scripts.
10158
4626499f
KH
10159 * category.c (word_boundary_p): Check scripts instead of charset.
10160 Handle nil value in word-separating-categories and
10161 word-combining-categories.
10162 (syms_of_category): Fix docstrings of word-separating-categories
10163 and word-combining-categories.
10164
1560f91a
EZ
101652008-10-21 Eli Zaretskii <eliz@gnu.org>
10166
10167 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10168 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10169
f4668441
MR
101702008-10-21 Martin Rudalics <rudalics@gmx.at>
10171
10172 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10173 Rename arg "buffer" to "buffer_or_name".
10174 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10175 it optional.
10176 (no_switch_window): Remove since the return value is not used.
a9b555d3 10177 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10178 Consider window as dedicated when Fwindow_dedicated_p returns a
10179 non-nil value.
10180 * lisp.h: Remove prototype for no_switch_window.
10181
fd75ddb2
JD
101822008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10183
10184 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10185 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10186
07295713
KH
101872008-10-21 Kenichi Handa <handa@m17n.org>
10188
10189 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10190 check Vlatin_extra_code_table.
10191
712adc82
EZ
101922008-10-20 Eli Zaretskii <eliz@gnu.org>
10193
10194 * fileio.c (Fset_file_modes): Doc fix.
10195
f549eb0b
MA
101962008-10-19 Michael Albinus <michael.albinus@gmx.de>
10197
10198 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10199 in arrays.
10200
aac0c6e3
MR
102012008-10-19 Martin Rudalics <rudalics@gmx.at>
10202
10203 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10204 Mention kill-buffer in doc-string.
10205 (Fset_window_buffer): Reinsert tem check removed in last commit.
10206 (Fenlarge_window, Fshrink_window): Have argument names and
10207 doc-string follow Elisp manual more closely.
10208
102092008-10-18 Eli Zaretskii <eliz@gnu.org>
10210
10211 * fileio.c (Fset_file_modes): Doc fix.
10212
102132008-10-18 Martin Rudalics <rudalics@gmx.at>
10214
10215 * window.c (Fwindow_width, Fset_window_start)
10216 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10217 (Fdelete_windows_on, Freplace_buffer_in_windows):
10218 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10219 (Fwindow_dedicated_p): Make window argument optional.
10220 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10221 (Fset_window_buffer): Respect any non-nil dedicated value for
10222 window. Rename "buffer" argument to "buffer_or_name".
10223
102242008-10-18 Ulrich Mueller <ulm@gentoo.org>
10225
10226 * m/sh3.h: New file, machine description for SuperH.
10227
102282008-10-17 Martin Rudalics <rudalics@gmx.at>
10229
10230 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10231
102322008-10-17 Kenichi Handa <handa@m17n.org>
10233
10234 * ftfont.c (ftfont_otf_features): Fix indexing
10235 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10236
102372008-10-16 Magnus Henoch <mange@freemail.hu>
10238
10239 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10240 (Fdbus_call_method_asynchronously): Ditto.
10241 This change makes C-h f display the argument list.
10242
102432008-10-16 Chong Yidong <cyd@stupidchicken.com>
10244
10245 * fileio.c (Fexpand_file_name): Doc fix.
10246
10247 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10248 of :foreground and :background equivalent to unspecified (20.x
10249 compatibility).
10250
102512008-10-15 Eli Zaretskii <eliz@gnu.org>
10252
10253 * buffer.c (syms_of_buffer): Doc fix.
10254
102552008-10-14 Kenichi Handa <handa@m17n.org>
10256
10257 * font.c (font_clear_prop): When clearing font width, clear the
10258 average width field too.
10259
102602008-10-12 Andreas Schwab <schwab@suse.de>
10261
10262 * ftfont.c (ftfont_shape_by_flt): Make static.
10263 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10264
10265 * font.c: Don't include <m17n-flt.h>.
10266
102672008-10-10 Eli Zaretskii <eliz@gnu.org>
10268
10269 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10270
102712008-10-09 Eli Zaretskii <eliz@gnu.org>
10272
10273 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10274 away code.
10275
102762008-10-09 Chong Yidong <cyd@stupidchicken.com>
10277
10278 * dispnew.c (update_text_area): Avoid looping due to large glyph
10279 overhangs (bug#1070).
10280
102812008-10-09 Kenichi Handa <handa@m17n.org>
10282
10283 * fontset.c (face_for_char): If face->fontset is negative, just
10284 return ascii_face.
10285
f5385255
SM
10286 * font.c (font_delete_unmatched): Fix previous change.
10287 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10288
102892008-10-09 Martin Rudalics <rudalics@gmx.at>
10290
10291 * frame.c (Fraise_frame): On text-only terminals select frame in
10292 order to make it visible. (Bug#1061)
10293
102942008-10-08 Chong Yidong <cyd@stupidchicken.com>
10295
10296 * fontset.c (fontset_find_font): Check frame validity.
10297
102982008-10-07 Chong Yidong <cyd@stupidchicken.com>
10299
a9b555d3 10300 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10301 (xg_display_close): Allow Emacs to close all displays (bug#985).
10302
103032008-10-06 Andreas Schwab <schwab@suse.de>
10304
f5385255 10305 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10306
103072008-10-06 Chong Yidong <cyd@stupidchicken.com>
10308
f5385255 10309 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10310
a9b555d3 10311 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10312
10313 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10314 during initialization.
10315
103162008-10-04 Eli Zaretskii <eliz@gnu.org>
10317
10318 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10319 whole thing on MSDOS frames as well as on a TTY.
10320
10321 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10322 well as for TTY.
10323 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10324 well as on a TTY.
10325
10326 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10327 as well as for TTY.
10328
10329 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10330
10331 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10332 MSDOS frames as well.
10333
103342008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10335
10336 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10337 correct arguments.
b71ac3dd 10338 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10339
103402008-10-03 Glenn Morris <rgm@gnu.org>
10341
10342 * emacs.c (USAGE1): Add --daemon.
10343
103442008-10-02 Eli Zaretskii <eliz@gnu.org>
10345
10346 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10347 100, so it's in percents as advertised.
10348
103492008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10350
10351 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10352 (ns_output.current_cursor, ns_output.desired_cursor)
10353 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10354 (FRAME_NEW_CURSOR_COLOR): Remove.
10355
10356 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10357 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10358 enumeration (HOLLOW_BOX_CURSOR, etc.).
10359
10360 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10361 (draw_window_cursor): Simplify code.
f5385255
SM
10362 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10363 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10364 updates manually.
a9b555d3
JB
10365 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10366 Use core Emacs cursor types.
aac0c6e3 10367
b8ff72fa 10368 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10369
103702008-10-02 Martin Rudalics <rudalics@gmx.at>
10371
10372 * process.c (Faccept_process_output): Fix doc-string.
10373
103742008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10375
10376 * gmalloc.c (__sbrk): Also define for uClibc.
10377
10378 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10379 for uClibc.
10380
103812008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10382
10383 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10384 styles.
10385 (nsfont_open): Reenable the cache.
10386
103872008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10388
10389 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10390 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10391
103922008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10393
10394 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10395 a suspended terminal.
10396
103972008-09-30 Michael Albinus <michael.albinus@gmx.de>
10398
10399 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10400
104012008-09-30 Eli Zaretskii <eliz@gnu.org>
10402
10403 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10404
104052008-09-30 Chong Yidong <cyd@stupidchicken.com>
10406
10407 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10408 in a continued line coincides with a line beginning.
10409
104102008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10411
10412 * nsfont.m (nsfont_trait_distance): Fix bug.
10413 (nsfont_list): Return a list rather than a vector (syncs with Handa
10414 changes of 2008-05-14).
10415 (nsfont_open): Improve logging.
10416
104172008-09-29 Andreas Schwab <schwab@suse.de>
10418
10419 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10420
104212008-09-28 Martin Rudalics <rudalics@gmx.at>
10422
10423 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10424 name as char-resolve-modifiers.
10425 Reported by: Markus Triska <markus.triska@gmx.at>
10426
104272008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10428
10429 * dispnew.c (init_display): Return earlier when running as a daemon.
10430
104312008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10432
10433 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10434
104352008-09-27 Eli Zaretskii <eliz@gnu.org>
10436
10437 * composite.c (Fcomposition_get_gstring)
10438 (Fcompose_region_internal, Fcompose_string_internal)
10439 (Ffind_composition_internal): Doc fix.
10440 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10441 (syms_of_composite) <auto-composition-function>: Doc fix.
10442 (syms_of_composite) <composition-function-table>: Doc fix.
10443
104442008-09-25 Chong Yidong <cyd@stupidchicken.com>
10445
10446 * search.c (wordify): New argument for lax word-ends.
10447 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10448
104492008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10450
10451 * lisp.h (is_daemon): Declare.
10452 * dispnew.c (init_display): Do not try to initialize the terminal
10453 when running as a daemon.
10454
104552008-09-22 Chong Yidong <cyd@stupidchicken.com>
10456
10457 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10458 x_display_pixel_height.
10459
104602008-09-22 Martin Rudalics <rudalics@gmx.at>
10461
10462 * undo.c (record_point): Don't call Fundo_boundary for first
10463 change. (Bug#731)
10464
104652008-09-22 Juanma Barranquero <lekktu@gmail.com>
10466
10467 * emacs.c (Fdaemonp): Doc fix.
10468
104692008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10470
10471 * emacs.c (main): Place #ifdef in the proper place.
10472
104732008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10474
10475 * emacs.c (standard_args): Add --daemon.
10476 (main): Disconnect from the terminal when --daemon is passed.
10477 (is_daemon): New variable.
10478 (Fdaemonp): New function.
10479 (syms_of_emacs): Defsubr it.
10480
104812008-09-20 Chong Yidong <cyd@stupidchicken.com>
10482
10483 * xdisp.c (get_next_display_element): Handle string display
10484 correctly when checking for the end of a box run.
10485
104862008-09-20 Glenn Morris <rgm@gnu.org>
10487
10488 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10489 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10490 (Frename_file): Avoid copying to trash if a rename involves
10491 a delete. (Bug#964).
10492
104932008-09-20 Eli Zaretskii <eliz@gnu.org>
10494
10495 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10496 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10497 frames as well as termcap frames.
10498 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10499 get_named_tty.
10500
105012008-09-19 Eli Zaretskii <eliz@gnu.org>
10502
10503 * process.c (procfs_system_process_attributes): Fix cmdline in
10504 case /proc/PID/cmdline is empty.
10505
10506 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10507 x_display_pixel_height.
10508
105092008-09-19 Juanma Barranquero <lekktu@gmail.com>
10510
10511 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10512
10513 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10514 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10515
105162008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10517
10518 * dispextern.h (struct it): Move line_wrap away from the middle of
10519 bitfields. Move voffset in struct iterator_stack_entry after the
10520 bitfields. Move tab_width near after another short.
10521
105222008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10523
10524 * frame.h (struct frame): Move alpha from the middle of bitfields.
10525
10526 * window.h (struct window): Move frozen_window_start_p after the
10527 rest of the bitfields to reduce padding.
10528
105292008-09-18 Chong Yidong <cyd@stupidchicken.com>
10530
10531 * xterm.h (x_display_info): Remove `height' and `width' members.
10532
10533 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10534
10535 * w32term.h (w32_display_info): Remove `height', `width',
10536 `height_in', and `width_in' members.
10537
b8ff72fa
SM
10538 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10539 New functions.
aac0c6e3
MR
10540 (x_calc_absolute_position): Use them.
10541 (x_term_init): Omit removed `height' and `width' members.
10542
b8ff72fa
SM
10543 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10544 New functions.
aac0c6e3
MR
10545 (w32_read_socket, x_calc_absolute_position): Use them.
10546 (w32_initialize_display_info, w32_term_init): Omit removed members
10547 of w32_display_info.
10548
b8ff72fa
SM
10549 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10550 New functions.
10551 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10552
b8ff72fa
SM
10553 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10554 New functions.
aac0c6e3
MR
10555 (x_calc_absolute_position): Use them.
10556 (x_term_init): Omit removed `height' and `width' members.
10557
10558 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10559 (compute_tip_xy):
10560 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10561 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10562 x_display_pixel_width.
10563
105642008-09-18 Kenichi Handa <handa@m17n.org>
10565
10566 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10567 (composition_compute_stop_pos): Fix handling of static composition.
10568 (Fcomposition_get_gstring): Check FROM and TO at first.
10569
105702008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10571
46e722a9 10572 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10573 mixup (YAILOM).
10574
105752008-09-17 Chong Yidong <cyd@stupidchicken.com>
10576
10577 * indent.c (Fvertical_motion): Use position reported by iterator
10578 instead of PT for determining screen motion (bug#943).
10579
105802008-09-17 Romain Francoise <romain@orebokech.com>
10581
10582 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10583
105842008-09-17 Kenichi Handa <handa@m17n.org>
10585
10586 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10587
10588 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10589 if necessary.
10590
105912008-09-16 Kenichi Handa <handa@m17n.org>
10592
10593 * coding.c (make_conversion_work_buffer): Avoid calling
10594 Fget_buffer_create if it is not necessary.
10595
105962008-09-15 Martin Rudalics <rudalics@gmx.at>
10597
10598 * window.c (Fselect_window): Don't update window_select_count and
10599 use_time when norecord is not nil.
10600
106012008-09-14 Kenichi Handa <handa@m17n.org>
10602
10603 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10604 specpdl_ptr.
10605
106062008-09-12 Kenichi Handa <handa@m17n.org>
10607
10608 * indent.c (scan_for_column): Don't handle automatic composition
10609 if the current buffer is not associated with a window.
10610
10611 * composite.c (composition_reseat_it): If the current buffer is
10612 not associated with a window, ignore the automatic composition.
10613 (find_automatic_composition): Likewise.
10614
106152008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10616
10617 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10618 (Fgpm_mouse_stop): Use it.
10619 * termhooks.h (close_gpm): Declare.
10620 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10621 connection if Gpm_GetEvent fails.
10622
10623 * window.c (set_window_buffer): Always preserve current-buffer.
10624
106252008-09-12 Glenn Morris <rgm@gnu.org>
10626
10627 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10628
106292008-09-11 Glenn Morris <rgm@gnu.org>
10630
10631 * charset.c (charset-map-path): Doc fix.
10632
106332008-09-10 Kenichi Handa <handa@m17n.org>
10634
10635 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10636
10637 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10638 compose a grapheme cluster with the preceding base glyph.
10639
10640 * composite.c (composition_compute_stop_pos): Fix previous change.
10641 Reset cmp_it->id to -1 at first.
10642
106432008-09-10 Glenn Morris <rgm@gnu.org>
10644
10645 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10646
106472008-09-09 Chong Yidong <cyd@stupidchicken.com>
10648
10649 * keyboard.c (read_key_sequence): Reapply translation maps when
10650 switching keyboards.
10651
106522008-09-09 Kenichi Handa <handa@m17n.org>
10653
10654 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10655 characters.
10656
10657 * composite.c (FORWARD_CHAR): Fix calculation
10658 of (POSITION).pos_byte.
10659 (composition_compute_stop_pos): Limit the search of composition to
10660 at most 500 characters ahead. If we reach the limit or find a
10661 newline, set cmp_it->ch to -2 and return 0.
10662 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10663
106642008-09-08 Kenichi Handa <handa@m17n.org>
10665
10666 * indent.c (Fvertical_motion): Be sure to set
10667 it_overshoot_expected if it.cmp_it.id is non-negative.
10668
106692008-09-07 Andreas Schwab <schwab@suse.de>
10670
10671 * callproc.c (Fcall_process): Don't hold references to string data
10672 across garbage collection. Move initialisation of new_argv down
10673 to avoid compiler bug.
10674
106752008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10676
10677 * process.c (Fsystem_process_attributes): Doc fix.
10678
106792008-09-07 Chong Yidong <cyd@stupidchicken.com>
10680
10681 * callproc.c (Fcall_process): Canonicalize current directory name.
10682
10683 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10684 iterator advances to the next line if the current line ends in a
10685 continued tab.
10686
106872008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10688
10689 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10690 member to point to cmp_from.
10691
10692 * xdisp.c: Doc fix for references to gidx data member.
10693
106942008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10695
10696 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10697
106982008-09-07 Kenichi Handa <handa@m17n.org>
10699
10700 * composite.c (FORWARD_CHAR): Check STOP after
10701 incrementing (POSITION).pos.
10702
107032008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10704
10705 * process.c (Fsystem_process_attributes): Doc fix.
10706
107072008-09-06 Chong Yidong <cyd@stupidchicken.com>
10708
10709 * keyboard.c (Ftop_level): Doc fix.
10710
107112008-09-06 Eli Zaretskii <eliz@gnu.org>
10712
10713 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10714 minibuffer, don't let lower part of menu invade the echo area.
10715
10716 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10717 "char *q" to access menu text and advance through it. Revert the
10718 change that displayed ">" instead of ASCII character 0x10.
10719
107202008-09-05 Eli Zaretskii <eliz@gnu.org>
10721
10722 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10723 toggle boxes and radio buttons on MS-DOS as well.
10724
107252008-09-05 Kenichi Handa <handa@m17n.org>
10726
10727 * composite.c (autocmp_chars): Check lookback count.
10728 (composition_compute_stop_pos): Set cmp_it->lookback.
10729 (composition_reseat_it): Check lookback count.
10730 (struct position_record): New struct.
10731 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10732 (find_automatic_composition): New function.
10733 (composition_adjust_point): Use find_automatic_composition.
10734
10735 * dispextern.h (struct composition_it): New member lookback.
10736
107372008-09-02 Chong Yidong <cyd@stupidchicken.com>
10738
10739 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10740 if moving by a single line.
10741
107422008-09-02 Andreas Schwab <schwab@suse.de>
10743
10744 * xterm.c (x_delete_display): Fix merge error.
10745
10746 * fileio.c (Fexpand_file_name): Remove unused variables.
10747
107482008-09-02 Eli Zaretskii <eliz@gnu.org>
10749
10750 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10751 storage on all platforms, not just on DOS_NT.
10752
107532008-09-02 Jason Rumney <jasonr@gnu.org>
10754
b8ff72fa
SM
10755 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10756 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10757
107582008-09-01 Chong Yidong <cyd@stupidchicken.com>
10759
10760 * xfaces.c (Finternal_set_alternative_font_family_alist)
10761 (Finternal_set_alternative_font_registry_alist): Properly copy
10762 entire alist structure.
10763
107642008-09-01 Kenichi Handa <handa@m17n.org>
10765
d66c0241 10766 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10767 representative chars of the script is a vector.
d66c0241
JB
10768 (ftfont_list): Handle the case where the representative chars of
10769 the script is a vector.
aac0c6e3
MR
10770
10771 * character.c (syms_of_character): Docstring of
10772 script-representative-chars fixed.
10773
107742008-08-31 Eli Zaretskii <eliz@gnu.org>
10775
10776 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10777 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10778 the menu. Allocate larger buffer for `text', to account for
10779 possible ^C characters.
10780
107812008-08-31 Martin Rudalics <rudalics@gmx.at>
10782
10783 * xdisp.c (prepare_menu_bars): Don't call
10784 Vwindow_size_change_functions with arg Qt.
10785
107862008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10787
10788 * font.h (font_range):
10789 * fileio.c (report_file_error):
46e722a9
SM
10790 * composite.c (composition_update_it): Yet another int/Lisp_Object
10791 mixup (YAILOM).
aac0c6e3
MR
10792
107932008-08-30 Glenn Morris <rgm@gnu.org>
10794
10795 * data.c (Fmake_variable_frame_local): Doc fix.
10796
10797 * frame.c (Fmodify_frame_parameters): Doc fix.
10798
107992008-08-30 Eli Zaretskii <eliz@gnu.org>
10800
10801 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10802 needed by GetTokenInformation.
10803 (w32_system_process_attributes): Check return values of all system
10804 APIs.
10805
10806 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10807 only when the state changes.
10808 (IT_update_begin, IT_update_end): Add termscript trace.
10809
10810 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10811 clipboard is unavailable. Set dst to NULL if it doesn't point to
10812 malloc'ed data.
10813 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10814 passing random values to xfree.
10815
10816 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10817 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10818
108192008-08-29 Jason Rumney <jasonr@gnu.org>
10820
10821 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10822
108232008-08-29 Eli Zaretskii <eliz@gnu.org>
10824
10825 * composite.c (fill_gstring_body): Avoid compiler warnings.
10826
10827 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10828 LGLYPH_SET_CODE to avoid compiler warnings.
10829
2ae37cf0 10830 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10831
10832 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10833
10834 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10835 LGLYPH_SET_CODE.
10836
108372008-08-29 Kenichi Handa <handa@m17n.org>
10838
10839 * fileio.c (report_file_error): Don't downcase the first character
10840 of errstring if it is still unibyte.
10841
108422008-08-29 Kenichi Handa <handa@m17n.org>
10843
10844 These changes are to re-implement the automatic composition so
10845 that it doesn't use text properties.
10846
10847 * Makefile.in (ftfont.o): Depend on composite.h.
10848 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10849
10850 * character.h (Vunicode_category_table): Extern it.
10851
10852 * character.c (Vunicode_category_table): New variable.
10853 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10854
10855 * chartab.c (optimize_sub_char_table): Perform more greedy
10856 optimization.
10857
b8ff72fa
SM
10858 * composite.h (enum composition_method):
10859 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10860 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10861 (Vcomposition_function_table): Extern it.
10862 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10863 (composition_gstring_put_cache, composition_gstring_from_id)
10864 (composition_gstring_p, composition_gstring_width)
10865 (composition_compute_stop_pos, composition_reseat_it)
10866 (composition_update_it, composition_adjust_point): Extern them.
10867 (Fcomposition_get_gstring): EXFUN it.
10868
d66c0241 10869 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10870 (Vcomposition_function_table)
10871 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10872 (gstring_hash_table, gstring_work, gstring_work_headers):
10873 New variables.
aac0c6e3
MR
10874 (gstring_lookup_cache, composition_gstring_put_cache)
10875 (composition_gstring_from_id, composition_gstring_p)
10876 (composition_gstring_width, fill_gstring_header)
10877 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10878 (composition_reseat_it, composition_update_it)
b8ff72fa 10879 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10880 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10881 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10882 Defsubr composition_get_gstring.
aac0c6e3
MR
10883
10884 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10885 cmp_id.
10886 (struct glyph_string): Delete the member gidx. New members
10887 cmp_id, cmp_from, and cmp_to.
10888 (enum it_method): Delete GET_FROM_COMPOSITION.
10889 (struct composition_it): New struct.
10890 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10891 Delete c, len, cmp_id, cmp_len in u.comp.
10892
10893 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10894 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10895 (enum lglyph_indices): Likewise.
b8ff72fa 10896 (font_range): Adjust extern.
aac0c6e3
MR
10897 (font_fill_lglyph_metrics): Extern it.
10898
10899 * font.c (QCf): New variable.
10900 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10901 (font_prepare_composition): Delete this function.
10902 (font_range): Type and arguments changed.
10903 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10904 (font_fill_lglyph_metrics): New function.
b8ff72fa 10905 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10906 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10907 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10908 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10909
10910 * fontset.h (font_for_char): Extern it.
10911
10912 * fontset.c (font_for_char): New function.
10913
10914 * ftfont.c: Include composite.h.
10915 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10916 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10917
10918 * indent.c: Include composite.h and dispextern.h.
10919 (check_composition): Delete this function.
10920 (scan_for_column): Handle composition by
10921 composition_compute_stop_pos, composition_reseat_it, and
10922 composition_update_it.
10923 (compute_motion): Likewise.
10924 (Fvertical_motion): Fix checking of composition.
10925
10926 * keyboard.c (adjust_point_for_property): Check composition by
10927 composition_adjust_point.
10928
b8ff72fa 10929 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10930 struct glyph_string.
10931
b8ff72fa
SM
10932 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10933 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10934 struct glyph.
10935 (produce_composite_glyph): Likewise.
10936
b8ff72fa
SM
10937 * w32term.c (x_draw_composite_glyph_string_foreground):
10938 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10939 (x_draw_glyph_string): Likewise.
10940
10941 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10942 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10943
10944 * xdisp.c: Include font.h.
10945 (it_props): Delete the entry for Qauto_composed.
10946 (init_iterator): Initialize it->cmp_it.id to -1.
10947 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10948 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10949 (handle_auto_composed_prop): Delete it.
10950 (handle_composition_prop): Handle only static composition.
10951 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10952 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10953 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10954 (pop_it): Likewise.
10955 (get_next_element): Delete next_element_from_composition.
10956 (CHAR_COMPOSED_P): New macro.
10957 (get_next_display_element): For automatic composition, get a face
10958 from the font in the glyph-string.
10959 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10960 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10961 (next_element_from_string): Check if the character at the current
10962 position is composed by CHAR_COMPOSED_P.
10963 (next_element_from_buffer): Likewise.
d66c0241
JB
10964 (next_element_from_composition): Adjust for the change of struct it.
10965 Update it->cmp_it.
b8ff72fa
SM
10966 (dump_glyph): Adjust for the change of struct glyph.
10967 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10968 it and struct glyph. Don't handle automatic composition here.
10969 (fill_gstring_glyph_string): New function.
10970 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10971 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10972 (BUILD_GSTRING_GLYPH_STRING): New macro.
10973 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10974 automatic composition.
b8ff72fa 10975 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10976 struct glyph.
b8ff72fa 10977 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10978
b8ff72fa 10979 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10980 the change of struct glyph_string.
10981 (x_draw_glyph_string): Likewise.
10982
109832008-08-29 Glenn Morris <rgm@gnu.org>
10984
10985 * buffer.c (word-wrap): Doc fix.
10986 * xdisp.c (truncate-partial-width-windows): Doc fix.
10987 Increase default to 50.
10988
109892008-08-29 Chong Yidong <cyd@stupidchicken.com>
10990
10991 * xdisp.c (update_tool_bar_unwind): New function.
10992 (update_tool_bar): Temporarily set selected frame before building
10993 tool-bar items.
10994
109952008-08-28 Michael Albinus <michael.albinus@gmx.de>
10996
10997 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10998 snprintf, respectively.
10999 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11000
110012008-08-28 Chong Yidong <cyd@stupidchicken.com>
11002
11003 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11004 LDFLAGS to GNUstep CC invocation.
11005
110062008-08-27 Chong Yidong <cyd@stupidchicken.com>
11007
11008 * indent.c (Fvertical_motion): Revert last change. Handle the
11009 general case where we are moving forward, and PT spans multiple
11010 screen lines.
11011
11012 * eval.c (find_handler_clause): Temporarily increase
11013 max-lisp-eval-depth while printing the backtrace buffer, to
11014 guarantee that help-mode code can run.
11015
110162008-08-27 Eli Zaretskii <eliz@gnu.org>
11017
11018 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11019 colors under -rv.
11020 (IT_set_frame_parameters): Don't swap foreground and background
11021 colors if `(reverse . t)' is present in the frame properties.
11022 (internal_terminal_init): Call init_frame_faces only for the
11023 initial frame.
11024
110252008-08-27 Andreas Schwab <schwab@suse.de>
11026
11027 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11028
110292008-08-27 Andreas Schwab <schwab@suse.de>
11030
11031 * search.c (search_buffer): Set char_base to zero only at the end.
11032
110332008-08-27 Kenichi Handa <handa@m17n.org>
11034
b8ff72fa 11035 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11036
110372008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11038
11039 * xterm.c (x_term_init): Temporarily hide the partially
11040 initialized terminal while calling vendor-specific-keysyms.
11041
110422008-08-26 Eli Zaretskii <eliz@gnu.org>
11043
11044 * msdos.c (internal_terminal_init): Most initializations done only
11045 once, especially initial_screen_colors[] and termscript open.
11046
110472008-08-26 Chong Yidong <cyd@stupidchicken.com>
11048
11049 * eval.c (Fcondition_case): Doc fix.
11050
11051 * widgetprv.h (EmacsFramePart): Change font member to the new font
11052 struct.
11053
11054 * widget.c: Include character.h and font.h for XSETFONT.
11055 (setup_frame_gcs): Compute X font id from font struct, just once.
11056
110572008-08-26 Eli Zaretskii <eliz@gnu.org>
11058
11059 * term.c (get_named_tty): Fix last change.
11060
110612008-08-26 Chong Yidong <cyd@stupidchicken.com>
11062
11063 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11064 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11065
110662008-08-25 Eli Zaretskii <eliz@gnu.org>
11067
11068 * frame.c (do_switch_frame): Mark previously displayed frame as
11069 obscured for FRAME_MSDOS_P frames as well.
11070
110712008-08-24 Eli Zaretskii <eliz@gnu.org>
11072
11073 * frame.c (make_terminal_frame): Initialize f->terminal,
11074 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11075 Set the top frame to newly created frame.
11076 (Fmake_terminal_frame): Reuse the_only_display_info.
11077
11078 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11079 estimating available memory.
11080
b97439ce 110812008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11082
11083 * nsterm.m (ns_draw_window_cursor): Don't call
11084 NSDisableScreenUpdates and NSEnableScreenUpdates on
11085 non-NS_IMPL_COCOA systems.
11086
110872008-08-23 Andreas Schwab <schwab@suse.de>
11088
11089 * process.c (procfs_system_process_attributes): Fix use of
11090 uninitialized variables.
11091
110922008-08-23 Eli Zaretskii <eliz@gnu.org>
11093
11094 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11095
11096 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11097 calling tty-set-up-initial-frame-faces.
11098
b8ff72fa
SM
11099 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11100 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11101
11102 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11103 addition to output_termcap.
11104
11105 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11106
11107 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11108 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11109 highlight.
11110
11111 * process.c [!subprocesses]: Define QCname.
11112 (syms_of_process): Intern and staticpro it.
11113
11114 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11115 Adjust for changes in encoding/decoding routines.
11116 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11117 encode_coding and decode_coding.
11118
b8ff72fa 11119 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11120
11121 * dosfns.c: Include frame.h before termhooks.h.
11122 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11123 variable termscript.
11124
11125 * s/msdos.h (USER_FULL_NAME): Define.
11126 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11127
11128 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11129 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11130 pw->pw_gecos.
11131
11132 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11133 SELECTED_FRAME as additional (1st) argument.
11134 (tty_read_avail_input): Handle output_msdos_raw in
11135 addition to output_termcap.
11136
11137 * msdos.c: Include frame.h before termhooks.h.
11138 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11139 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11140 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11141 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11142 (IT_set_terminal_modes, IT_reset_terminal_modes)
11143 (IT_set_frame_parameters): Use tty->termscript instead of a global
11144 variable termscript.
11145 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11146 global variable terminal_coding. Don't refer to
11147 Vnonascii_translation_table.
11148 (internal_terminal_init): Set Vwindow_system in current_kboard.
11149 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11150 Announce date and time of session start, if termscript is open.
11151 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11152 term.c:init_tty). Open termscript only of not already open.
11153 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11154 here instead of dos_ttraw. Don't initialize display if this is an
11155 initial tty. Don't set FRAME_FONT.
11156 (Vwindow_system_version): Bump to 23.
11157 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11158 is available, set up mouse_position_hook.
11159 (dos_ttraw, IT_set_terminal_modes): If called with initial
11160 terminal, do nothing.
11161 (IT_set_frame_parameters): Handle the Qtty_type frame
11162 parameter by calling internal_terminal_init.
11163 (dos_set_window_size, show_mouse_face)
11164 (clear_mouse_face, IT_note_mode_line_highlight)
11165 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11166 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11167 (initialize_msdos_display): New function.
11168 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11169 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11170 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11171 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11172 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11173 (request_sigio, unrequest_sigio): Don't define, now defined on
11174 sysdep.c.
11175 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11176
11177 * term.c [MSDOS]: Include msdos.h.
11178 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11179 conditional to DOS_NT. Allow only one call to this function in a
11180 session. Don't allocate a new struct tty_display_info; instead,
11181 reuse the_only_display_info. Call get_tty_size to get screen
11182 dimensions. Call init_baud_rate to set bad_rate.
11183 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11184 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11185 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11186 (get_tty_terminal, get_named_tty, Ftty_type)
11187 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11188 output_termcap.
b8ff72fa
SM
11189 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11190 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11191 only when subprocesses are supported.
aac0c6e3
MR
11192
11193 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11194 f->output_data.x.
11195 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11196 terminal devices.
11197
5582fbc7 11198 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11199 x_output.
11200 (FRAME_FONT): Use output_data.tty.
11201 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11202 (struct x_display_info): Rename from display_info. Update all users in
11203 msdos.c.
aac0c6e3 11204 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11205 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11206 (dos_ttraw): Update prototype.
11207
11208 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11209 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11210
112112008-08-23 Jason Rumney <jasonr@gnu.org>
11212
11213 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11214 (fn_TIFFSetDirectory): New library function used.
11215 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11216 (tiff_load): Use :index to select among multiple images. Set count
11217 property when multiple images exist.
11218 (gif_format): Use :index, not :image.
11219
112202008-08-23 Chong Yidong <cyd@stupidchicken.com>
11221
11222 * xdisp.c (try_scrolling): Check INT_MAX instead of
11223 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11224 to obtain INT_MAX.
11225
112262008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11227
11228 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11229
112302008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11231
11232 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11233 GNUstep library location.
11234
112352008-08-21 Chong Yidong <cyd@stupidchicken.com>
11236
11237 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11238 before using it.
11239
11240 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11241
112422008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11243
11244 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11245 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11246 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11247 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11248 (EmacsApp-cursor_blink_handler): Remove declaration.
11249 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11250 match 01 Feb 2008 changes in xterm.c.
11251 (ns_read_socket): Add cast to avoid warning.
11252 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11253 GNUstep.
11254
112552008-08-20 Chong Yidong <cyd@stupidchicken.com>
11256
11257 * xselect.c (x_get_foreign_selection): Return nil if desired
11258 selection could not be obtained, instead of signalling an error.
11259
112602008-08-20 David Reitter <david.reitter@gmail.com>
11261
11262 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11263 * nsterm.m: Remove ns-specific code for cursor blinking.
11264 (ns_draw_window_cursor): Clear cursor properly rather than
11265 redrawing the area. Respect width of bar cursors.
11266 These changes enable the use of generic blink-cursor-mode and
11267 generic cursor types in NS and support smooth cursor movements (do
11268 not blink off after command).
11269 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11270 Nextstep, too.
11271
112722008-08-19 Kenichi Handa <handa@m17n.org>
11273
11274 * font.c (Vfont_log_deferred): New variable.
11275 (font_add_log): Check Vfont_log_deferred.
11276 (font_deferred_log): New function.
11277
11278 * font.h (font_deferred_log): Extern it.
11279
11280 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11281 for sorting.
11282 (face_for_char): Use deferred log.
11283
112842008-08-18 Kenichi Handa <handa@m17n.org>
11285
11286 * fontset.c (face_for_char): Add font log.
11287
11288 * font.c (font_add_log): Add the font properties :script, :lang,
11289 and :otf in the log.
11290
112912008-08-17 Chong Yidong <cyd@stupidchicken.com>
11292
11293 * xdisp.c: Remove dead code.
11294 (handle_invisible_prop, next_overlay_string): Defer call to
11295 setup_for_ellipsis.
11296 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11297
112982008-08-15 Chong Yidong <cyd@stupidchicken.com>
11299
11300 * xfaces.c (lookup_derived_face): Properly handle possible zero
11301 return value of get_lface_attributes.
11302 (merge_faces): Don't tell lookup_derived_face to signal an error
11303 if face is not found.
11304
11305 * dired.c (Fdirectory_files): Doc fix.
11306
11307 * process.c (make_process): Initialize kill_without_query struct
11308 member.
11309
113102008-08-15 Eli Zaretskii <eliz@gnu.org>
11311
11312 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11313 Alternative calculation of totphys for Visual Studio 6.
11314
11315 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11316
11317 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11318 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11319 All users changed.
11320 (stat): Only root directory passed to GetDriveType. Allow RAM
11321 disk as well as local fixed disk when w32-get-true-file-attributes
11322 is set to `local'.
11323 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11324 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11325 (w32_cached_id, w32_add_to_cache): New functions.
11326 (get_name_and_id): Look account names in the cache before calling
11327 lookup_account_sid.
11328 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11329 New initialization flags.
11330 (globals_of_w32): Initialize them to zero.
11331 (w32_system_process_attributes): Use w32_cached_id and
11332 w32_add_to_cache.
11333
113342008-08-14 Lawrence Mitchell <wence@gmx.li>
11335
11336 * lread.c (Fread_char, Fread_char_exclusive): If no character
11337 event is read before timeout is reached, return nil, rather than
11338 converting to a number.
11339
113402008-08-14 Chong Yidong <cyd@stupidchicken.com>
11341
11342 * fns.c (use_dialog_box): Doc fix.
11343
11344 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11345 on OS X.
11346
113472008-08-13 Chong Yidong <cyd@stupidchicken.com>
11348
11349 * frame.c (Qns_parse_geometry): New var.
11350 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11351
113522008-08-11 Chong Yidong <cyd@stupidchicken.com>
11353
11354 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11355 space character in calculating tabs.
11356
113572008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11358
11359 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11360
113612008-08-10 Glenn Morris <rgm@gnu.org>
11362
11363 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11364 silence gcc "limited range of data type" warnings in some
11365 make_fixnum_or_float calls.
11366
113672008-08-09 Eli Zaretskii <eliz@gnu.org>
11368
11369 * w32.c (w32_system_process_attributes): If the process does not
11370 exist, return nil.
11371
11372 * w32.c: Include thelp32.h, psapi.h and coding.h.
11373 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11374 declarations.
11375 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11376 (Process32Next_Proc): New typedefs.
11377 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11378 (g_b_init_process32_next, g_b_init_open_thread_token)
11379 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11380 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11381 (g_b_init_get_process_working_set_size)
11382 (g_b_init_global_memory_status_ex): New static variables.
11383 (globals_of_w32): Initialize them.
11384 (create_toolhelp32_snapshot, process32_first, process32_next)
11385 (open_thread_token, impersonate_self, revert_to_self)
11386 (get_process_memory_info, get_process_working_set_size)
11387 (global_memory_status, global_memory_status_ex): New wrapper
11388 functions.
11389 (w32_list_system_processes, w32_system_process_attributes)
11390 (enable_privilege, restore_privilege, ltime, process_times):
11391 New functions.
11392 (convert_time_raw): New function.
11393 (convert_time): Remove conversion of FILETIME into time in 100
11394 nsec units, call convert_time_raw instead.
11395
11396 * process.h (w32_list_system_processes, w32_system_process_attributes):
11397 Add prototypes.
11398 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11399 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11400 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11401 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11402
11403 * process.c (Fsystem_process_attributes): Doc fix.
11404
114052008-08-08 Chong Yidong <cyd@stupidchicken.com>
11406
11407 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11408 a continued multi-char glyph; if so, advance to the actual glyph.
11409
114102008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11411
11412 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11413
11414 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11415 (.m.o): Use it.
11416 * config.in: Regenerate.
11417
114182008-08-07 Chong Yidong <cyd@stupidchicken.com>
11419
11420 * xdisp.c (redisplay_window): Revert last change.
11421 (try_window): Check bottom scroll margin too.
11422
114232008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11424
11425 * config.in: Regenerate.
11426
11427 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11428 -list-load-path-shadows'.
11429 (nsgui.h): Reduce number of things depending on it.
11430
114312008-08-06 Chong Yidong <cyd@stupidchicken.com>
11432
11433 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11434 instead of window-end which does the wrong thing at eob.
11435 (try_cursor_movement): Minor optimization.
11436 (redisplay_window): If scroll margin is defined, don't assume
11437 window doesn't need scrolling.
11438
114392008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11440
11441 * config.in: Regenerate.
11442
11443 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11444 (mostlyclean): Don't delete *.d under NS.
11445
11446 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11447
114482008-08-06 Kenichi Handa <handa@m17n.org>
11449
11450 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11451
114522008-08-06 Andreas Schwab <schwab@suse.de>
11453
11454 * config.in: Regenerate.
11455
114562008-08-05 Chong Yidong <cyd@stupidchicken.com>
11457
11458 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11459 forcing a window start.
11460
11461 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11462 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11463
114642008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11465
11466 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11467 argument.
11468
114692008-08-05 Juanma Barranquero <lekktu@gmail.com>
11470
11471 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11472 <scroll-down-aggressively, before-change-functions>:
11473 <after-change-functions>: Reflow docstrings.
11474
114752008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11476 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11477
11478 Dock menu customization, based on a patch by Ken Raeburn, plus some
11479 other fixes.
11480 * nsmenu.m (dockMenu): New variable.
11481 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11482
11483 * nsterm.h (dockMenu): Declare.
11484
11485 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11486 (ns_term_init): Initialize dockMenu.
11487 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11488 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11489 left.
11490
11491 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11492
114932008-08-04 Chong Yidong <cyd@stupidchicken.com>
11494
11495 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11496
11497 * config.in: Regenerate.
11498
114992008-08-04 Seiji Zenitani <zenitani@mac.com>
11500
11501 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11502
115032008-08-04 Chong Yidong <cyd@stupidchicken.com>
11504
11505 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11506
115072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11508
11509 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11510
11511 * keyboard.h: Comment an #endif.
11512
11513 * lisp.h (have_menus_p): Adjust comment.
11514
11515 * menu.c (find_and_return_menu_selection): Fix comparison with
11516 client_data.
11517
11518 * nsmenu.m (popup_activated_flag): New variable.
11519 (popup_activated): New function.
11520 (menu-or-popup-active-p): New exported lisp definition.
11521 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11522 when popup done.
11523 (ns_popup_dialog): Set popup_activated_flag.
11524
11525 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11526 version for GNUstep (handled by conditional typedef in nsterm.m).
11527 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11528 in rgb.txt).
11529
11530 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11531
11532 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11533
11534 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11535
11536 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11537 shortcircuit if popup_activated like GTK and X toolkit.
11538
11539 * m/inter386.h: Change DARWIN to DARWIN_OS.
11540
11541 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11542 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11543 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11544 comment on NO_SOCK_SIGIO.
11545
115462008-08-03 Chong Yidong <cyd@stupidchicken.com>
11547
11548 * nsterm.m (windowDidResize): Remove stopModal call.
11549
115502008-08-03 Andreas Schwab <schwab@suse.de>
11551
11552 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11553 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11554
115552008-08-02 Chong Yidong <cyd@stupidchicken.com>
11556
11557 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11558 Don't use uninitialized pointer variable when using getrlimit.
11559
115602008-08-02 Jason Rumney <jasonr@gnu.org>
11561
11562 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11563
115642008-08-02 Eli Zaretskii <eliz@gnu.org>
11565
11566 * alloc.c (NSTATICS): Bump to 0x640.
11567
11568 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11569
11570 * lisp.h: Add prototype for directory_files_internal.
11571
11572 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11573 New functions.
11574 (syms_of_process): Defsubr them. Add initializations for various
11575 Q* symbols used in procfs_system_process_attributes.
11576 (procfs_list_system_processes, procfs_system_process_attributes)
11577 [HAVE_PROCFS]: New functions.
11578 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11579 (procfs_get_total_memory): New functions.
11580
115812008-08-01 Juanma Barranquero <lekktu@gmail.com>
11582
11583 * xfaces.c (Fx_load_color_file): Fix previous change;
11584 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11585
115862008-08-01 Michael Albinus <michael.albinus@gmx.de>
11587
11588 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11589
115902008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11591
11592 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11593
115942008-08-01 Chong Yidong <cyd@stupidchicken.com>
11595
11596 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11597
11598 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11599 define NSApplicationDelegateReplySuccess.
11600 (EmacsView -converstationIdentifier): Use long instead of
11601 NSInteger for GNUstep, since it doesn't have NSInteger.
11602
11603 * xmenu.c: Revert last change.
11604
11605 * keyboard.h: Fix last change.
11606
116072008-08-01 Juanma Barranquero <lekktu@gmail.com>
11608
11609 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11610 on Windows.
11611
116122008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11613
11614 Warning clearing and clean-up in NS port.
11615 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11616 Add prototypes.
11617 * nsgui.h (FACE_DEFAULT): Remove, unused.
11618 (XGCValues): Change colors to unsigned long.
11619 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11620 nsterm.m.
11621 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11622 (ns_list_fonts): Remove, unused.
11623 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11624 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11625 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11626 (nsfont_draw): Compare face colors to 0, not nil.
11627 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11628 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11629 (-addSubmenuWithTitle:): Use NSMenuItem class.
11630 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11631 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11632 (ns_clip_to_row): Make gc arg a BOOL.
11633 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11634 ns_clip_to_row() call.
11635 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11636 used). Cast FRAME_FONT assignments.
11637 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11638 (ns_string_to_lispmod): Change arg to const char.
11639 (ns_term_init): Use NSMenuItem class.
11640 (EmacsApp -openFile:): Move to different section of file.
11641 (EmacsApp -application:openFiles:): Don't return a value, call
11642 -replyToOpenOrPrint:.
11643 (EmacsView -keyDown:): Fix up cast.
11644 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11645 (EmacsView -menuDown:): Cast tag in call to
11646 find_and_call_menu_selection().
11647 (ns_list_fonts): Remove, unused.
11648 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11649 (ns_fontname_to_xlfd): Make static.
11650 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11651 Remove prototypes (now in keyboard.h).
11652 (next_menubar_widget_id): Remove, unused.
11653 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11654 Remove prototypes (now in keyboard.h).
11655 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11656
116572008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11658
11659 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11660 (floatfns.o): Depend on syssignal.h.
11661 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11662
11663 * systty.h: Fix previous change that removed BSD_TERMIOS.
11664 Add comments to #ifdefs.
11665
116662008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11667
11668 * w32fns.c (w32-load-color-file): Remove.
11669 (x-open-connection): Use renamed Fx_load_color_file.
11670 * xfaces.c (x-load-color-file): Add.
11671 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11672 Emacs.clr.
11673 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11674
116752008-07-31 Michael Albinus <michael.albinus@gmx.de>
11676
11677 * dbusbind.c (Fdbus_call_method_asynchronously)
11678 (Fdbus_method_error_internal): New defuns.
11679 (xd_read_message): Handle also reply messages.
11680 (Vdbus_registered_functions_table): Extend docstring.
11681
116822008-07-31 Juanma Barranquero <lekktu@gmail.com>
11683
11684 * keyboard.c (gobble_input): Fix previous change.
11685
116862008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11687
11688 * bitmaps/README:
11689 * xfns.c:
11690 * termcap.c:
11691 * term.c:
11692 * syswait.h:
11693 * systty.h:
11694 * systime.h:
11695 * syssignal.h:
11696 * sysdep.c:
11697 * process.h:
11698 * process.c:
11699 * print.c:
11700 * ndir.h:
11701 * lread.c:
11702 * keyboard.c:
11703 * getpagesize.h:
11704 * floatfns.c:
11705 * fileio.c:
11706 * emacs.c:
11707 * doc.c:
11708 * dispnew.c:
11709 * dired.c:
11710 * data.c:
11711 * callproc.c:
11712 * buffer.c:
11713 * README:
11714 * Makefile.in:
11715 * s/template.h:
11716 * s/msdos.h:
11717 * m/vax.h: Remove VMS support.
11718 * s/vms.h:
11719 * vlimit.h:
11720 * uaf.h:
11721 * temacs.opt:
11722 * param.h:
11723 * ioctl.h: Remove file.
11724
117252008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11726
11727 * s/ms-w32.h (MULTI_KBOARD): Remove.
11728 * xterm.c:
11729 * xselect.c:
11730 * xfns.c:
11731 * window.c:
11732 * w32term.c:
11733 * w32fns.c:
11734 * terminal.c:
11735 * termhooks.h:
11736 * term.c:
11737 * sysdep.c:
11738 * keyboard.h:
11739 * keyboard.c:
11740 * frame.h:
11741 * frame.c:
11742 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11743 * config.in: Regenerate.
11744
117452008-07-30 Jason Rumney <jasonr@gnu.org>
11746
11747 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11748
11749 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11750 (w32font_open_internal): Get unicode version of textmetrics.
11751 Don't enable or disable glyph indices here.
11752 (w32font_open): Disable use of glyph indices.
11753
11754 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11755
117562008-07-30 Chong Yidong <cyd@stupidchicken.com>
11757
11758 * minibuf.c (Vread_buffer_function): Doc fix.
11759
117602008-07-30 John Paul Wallington <jpw@pobox.com>
11761
11762 * minibuf.c (read_buffer_completion_ignore_case): New var.
11763 (Fread_buffer): Use it.
11764
117652008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11766
11767 * systty.h (sensemode): Remove empty #if. Remove reference to
11768 BSD_TERMIOS, unused.
11769
11770 * sysdep.c: Remove reference to DGUX.
11771 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11772
11773 * config.in: Regenerate.
11774
117752008-07-30 Jason Rumney <jasonr@gnu.org>
11776
11777 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11778
117792008-07-29 Jason Rumney <jasonr@gnu.org>
11780
11781 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11782 is populated.
11783 (uniscribe_encode_char): Always use uniscribe.
11784 Avoid using context if cache is populated.
11785
117862008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11787
11788 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11789 open menu.
11790
11791 * gtkutil.c (menu_nav_ended): Remove.
11792 (create_menus): Remove signal connect for menu_nav_ended.
11793
117942008-07-28 Chong Yidong <cyd@stupidchicken.com>
11795
11796 * xdisp.c (redisplay_window): Check return value of
11797 compute_window_start_on_continuation_line before forcing a window
11798 start.
11799
118002008-07-28 Jason Rumney <jasonr@gnu.org>
11801
11802 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11803
11804 * w32term.c (w32_enable_unicode_output, cleartype_active):
11805 Remove obsolete display options.
11806 (x_draw_glyph_string_background): Don't use old cleartype_active
11807 workaround.
11808 (w32_initialize): Remove cleartype_active initialization.
11809 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11810
118112008-07-28 Andreas Schwab <schwab@suse.de>
11812
11813 * lisp.h (init_weak_hash_tables, syms_of_font)
11814 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11815 (remove_hash_entry): Don't declare.
11816 * eval.c (maybe_call_debugger): Make static and move before use.
11817 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11818 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11819 * xterm.h (x_set_frame_alpha): Declare.
11820
118212008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11822
11823 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11824 (create_menus): Connect selection-done to menu_nav_ended.
11825
118262008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11827
11828 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11829 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11830 parameter with read of 'alpha' one.
11831 (Qns_frame_parameter): Remove.
5582fbc7 11832 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11833 (next-selection-coding-system, Vselection_coding_system)
11834 (Vnext_selection_coding_system): Drop.
11835
118362008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11837
11838 * nsfns.m (do-applescript, do_applescript): Rename to
11839 ns-do-applescript, ns_do_applescript, and move within file.
11840
118412008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11842
11843 Remove support for Mac Carbon.
11844 * mactoolbox.c:
11845 * macterm.h:
11846 * macterm.c:
11847 * macselect.c:
11848 * macmenu.c:
11849 * macgui.h:
11850 * macfns.c:
11851 * mac.c: Remove file.
11852 * s/darwin.h:
11853 * m/intel386.h:
11854 * xfaces.c:
11855 * xdisp.c:
11856 * window.c:
11857 * tparam.c:
11858 * termhooks.h:
11859 * termcap.c:
11860 * term.c:
11861 * syssignal.h:
11862 * sysselect.h:
11863 * sysdep.c:
11864 * process.c:
11865 * lread.c:
11866 * lisp.h:
11867 * keyboard.c:
11868 * image.c:
11869 * fringe.c:
11870 * frame.h:
11871 * frame.c:
11872 * fontset.c:
11873 * font.h:
11874 * font.c:
11875 * fns.c:
11876 * fileio.c:
11877 * emacs.c:
11878 * dispnew.c:
11879 * dispextern.h:
11880 * config.in:
11881 * atimer.c:
2ae37cf0 11882 * Makefile.in: Remove code for Carbon.
aac0c6e3 11883
f0131492 118842008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11885
11886 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11887
118882008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11889
11890 * macterm.h (kCGBitmapByteOrder32Host): New define for
11891 non-universal SDKs.
11892
11893 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11894 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11895
11896 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11897 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11898
118992008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11900
11901 * w32inevt.c: Include dispextern.h.
11902
119032008-07-26 Andreas Schwab <schwab@suse.de>
11904
11905 * print.c (print_object): Fix off-by-one in last change.
11906
119072008-07-25 Juanma Barranquero <lekktu@gmail.com>
11908
11909 * term.c (syms_of_term): Don't initialize default_orig_pair,
11910 default_set_foreground and default_set_background on Windows.
11911
119122008-07-25 Jason Rumney <jasonr@gnu.org>
11913
11914 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11915 ScriptItemize. Clean up return value checking. Remove unused
11916 variables.
11917 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11918 shaping engine.
11919
11920 * w32font.c (w32font_has_char): Handle the case where we can't
11921 determine the script for a character.
11922
119232008-07-25 Chong Yidong <cyd@stupidchicken.com>
11924
11925 * term.c (syms_of_term): Initialize default_orig_pair,
11926 default_set_foreground, and default_set_background.
11927
11928 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11929 clash (bug#86).
11930 (getloadavg): Callers changed.
11931
11932 * image.c (svg_load_image): Fix last change.
11933 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11934 image size is valid. Use g_object_unref instead of deprecated
11935 rsvg_handle_free to free rsvg handle.
11936 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11937
119382008-07-25 Jason Rumney <jasonr@gnu.org>
11939
11940 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11941 surrogates before looking up glyph index.
11942 (w32font_text_extents): Encode as surrogates if falling back to
11943 functions that need UTF-16 wide chars.
11944
11945 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11946 BMP as surrogates before looking up glyph index.
11947
119482008-07-25 Chong Yidong <cyd@stupidchicken.com>
11949
11950 * image.c (svg_load_image): Check for failure in return value of
11951 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11952
119532008-07-25 Jason Rumney <jasonr@gnu.org>
11954
11955 * w32font.c (Fx_select_font): Reverse sense of second arg.
11956
119572008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11958
11959 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11960 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11961
11962 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11963 (PURESIZE): Use it.
11964
119652008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11966
11967 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11968 * m/alpha.h (TEXT_END):
11969 * m/ibmrs6000.h (TEXT_END):
11970 * m/macppc.h (TEXT_END):
11971 * s/darwin.h (TEXT_END):
11972 * s/msdos.h (TEXT_END): Remove, unused.
11973 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11974 * s/cygwin.h: Remove comment.
11975
11976 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11977 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11978 * m/intel386.h (DOT_GLOBAL_START):
11979 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11980 (USG): Remove, file not used on USG platforms.
11981
11982 * Makefile.in (HAVE_X11): Remove empty #else.
11983
119842008-07-24 Andreas Schwab <schwab@suse.de>
11985
11986 * fileio.c (Finsert_file_contents): Properly adjust undo list
11987 after format conversion.
11988
119892008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11990
11991 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11992 (menu_nav_ended): Remove.
11993 (create_menus): Remove signal connect for menu_nav_ended.
11994 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11995 create_menus.
11996 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11997
119982008-07-23 Jason Rumney <jasonr@gnu.org>
11999
12000 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12001 with opened font.
12002 (w32font_open): Set font type to gdi.
12003
12004 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12005
120062008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12007
12008 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12009 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12010 defines it.
12011 * unexec.c (ADDR_CORRECT): Define unconditionally.
12012
12013 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12014
12015 * unexec.c: Remove code depending on !COFF and USG, the file is
12016 not used for such systems.
12017
12018 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12019 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12020 (LD_SWITCH_SYSTEM_1): Remove, update users.
12021
12022 * s/darwin.h (DATA_END):
12023 * m/intel386.h (DATA_END):
12024 * m/ibmrs6000.h (DATA_END):
12025 * m/alpha.h (DATA_END): Remove, unused.
12026
12027 * config.in: Regenerate.
12028 * s/ms-w32.h (subprocesses): Define unconditionally.
12029 * s/template.h (subprocesses): Update comment.
12030 * s/vms.h (subprocesses):
12031 * s/usg5-4.h (subprocesses):
12032 * s/hpux10-20.h (subprocesses):
12033 * s/gnu-linux.h (subprocesses):
12034 * s/cygwin.h (subprocesses):
12035 * s/bsd-common.h (subprocesses):
12036 * s/aix4-2.h (subprocesses):
12037 * s/darwin.h (subprocesses): Do not define, defined by default now.
12038
12039 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12040 Remove all references.
12041 (temacs): Add GNUstep specific ld flags.
12042
12043 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12044 similarly to what X does.
12045
120462008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12047
12048 * nsfns.m (x-list-fonts): Remove.
12049 (syms_of_nsfns): Drop the x-list-fonts declaration.
12050 * nsterm.m: Get rid of remaining "//" comments.
12051
120522008-07-22 Chong Yidong <cyd@stupidchicken.com>
12053
12054 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12055
12056 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12057 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12058 (Fns_own_selection_internal, Fx_disown_selection_internal)
12059 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12060
12061 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12062 ... */' style of docstrings. Doc fixes.
12063
120642008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12065
12066 * terminfo.c (UP, BC, PC): Undo previous change.
12067
12068 * nsfns.m: Rename ns prefixed functions/variables to the
12069 corresponding x versions. Update references.
12070
120712008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12072
12073 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12074
120752008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12076
12077 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12078 Remove forwarding functions.
12079 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12080 non-static.
12081 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12082 non-static.
12083 (ns_frame_parm_handlers): Use the new names.
12084 (syms_of_nsfns): Move to the end of file.
12085
12086 * nsterm.m (syms_of_nsterm): Move to the end of file.
12087
12088 * dispnew.c (init_display): Remove code for X10.
12089
120902008-07-22 Jason Rumney <jasonr@gnu.org>
12091
12092 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12093 bare drive.
12094
120952008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12096
12097 * nsterm.m (syms_of_nsterm): Remove debugging println.
12098
120992008-07-22 David Reitter <david.reitter@gmail.com>
12100
12101 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12102 Carbon implementation of the same functionality: execute arbitrary
12103 AppleScript code.
12104
121052008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12106
12107 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12108 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12109 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12110 (Fx_display_mm_height, Fx_display_mm_width)
12111 (Fx_display_backing_store, Fx_display_visual_class)
12112 (Fx_display_save_under, Fx_open_connection)
12113 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12114 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12115 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12116 (Fx_display_pixel_width, Fx_display_pixel_height)
12117 (Fx_display_usable_bounds, Fx_display_planes)
12118 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12119 ... */' style of docstrings.
12120
121212008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12122
12123 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12124 on this platform.
12125 (mips):
12126 * m/iris4d.h (mips): Do not define.
12127 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12128
12129 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12130
12131 * image.c:
12132 * nsfns.m:
12133 * nsselect.m:
12134 * nsterm.h:
12135 * nsterm.m: Rename ns prefixed functions/variables to the
12136 corresponding x versions. Update references.
12137
12138 * m/ibms390x.h (NO_REMAP): Do not undefine.
12139
12140 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12141
121422008-07-21 Chong Yidong <cyd@stupidchicken.com>
12143
12144 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12145 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12146 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12147 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12148 (Fns_display_mm_height, Fns_display_mm_width)
12149 (Fns_display_backing_store, Fns_display_visual_class)
12150 (Fns_display_save_under, Fns_open_connection)
12151 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12152 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12153 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12154 (Fns_display_pixel_width, Fns_display_pixel_height)
12155 (Fns_display_usable_bounds, Fx_display_planes)
12156 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12157
121582008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12159
12160 * print.c (print_object): Check print_depth before searching for
12161 circularities.
12162
121632008-07-21 Michael Albinus <michael.albinus@gmx.de>
12164
12165 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12166 only sprintf.
12167
121682008-07-21 Kenichi Handa <handa@m17n.org>
12169
12170 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12171
121722008-07-20 Andreas Schwab <schwab@suse.de>
12173
12174 * syntax.c (find_start_pos, find_start_value)
12175 (find_start_value_byte, find_start_begv, find_defun_start)
12176 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12177
121782008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12179
12180 * s/sol2-3.h: Insert contents of s/sol2.h.
12181 (LD_SWITCH_SYSTEM): Remove redundant definition.
12182 * s/sol2.h: Remove, unused.
12183
121842008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12185
12186 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12187
121882008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12189
12190 * Makefile.in (ns_appdir): Fix typo in find command.
12191
121922008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12193
12194 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12195
12196 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12197 added not supported anymore.
12198
12199 * s/usg5-4-2.h (LIBS_SYSTEM):
12200 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12201
12202 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12203 * s/lynxos.h (GETPGRP_NO_ARG):
12204 * s/hpux10-20.h (NO_SIOCTL_H):
12205 * s/gnu.h (GETPGRP_NO_ARG):
12206 * s/gnu-linux.h (NO_SIOCTL_H):
12207 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12208 * s/cygwin.h (GETPGRP_NO_ARG):
12209 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12210 (C_DEBUG_SWITCH): Remove duplicate definition.
12211
12212 * m/ibms390.h: Remove boilerplate comments.
12213
12214 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12215
12216 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12217 (wait_reading_process_output): Remove code for SunOS, platform not
12218 supported anymore. Use SOLARIS2 instead of sun.
12219
122202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12221
12222 * font.c (font_open_by_name): Under NS, default lface height to zero.
12223 (font_open_for_lface): Under NS, set size based on frame fontsize.
12224 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12225 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12226
122272008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12228
12229 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12230 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12231 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12232 YES/NO.
12233 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12234 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12235 * Makefile.in (clean): Clear out build destination dir.
12236
122372008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12238
12239 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12240 xterm, xselect.
12241 * lisp.h: Remove declaration of hash_remove.
12242 * nsgui.h: Remove redefinitions of hash_remove.
12243 * fns.c (hash_remove): Rename to hash_remove_from_table.
12244
122452008-07-19 Seiji Zenitani <zenitani@mac.com>
12246
12247 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12248 strdup() the family UTF8String before modifying it.
12249
122502008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12251
12252 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12253 NS_FACE_BACKGROUND with 0 instead of nil.
12254 * nsfont.m (nsfont_draw): Same.
12255
122562008-07-19 Chong Yidong <cyd@stupidchicken.com>
12257
12258 * nsfns.m (ns_set_background_color): Fix crash.
12259
122602008-07-18 Chong Yidong <cyd@stupidchicken.com>
12261
12262 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12263
122642008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12265
12266 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12267
122682008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12269
12270 * gtkutil.c: Include <config.h> instead of "config.h".
12271
12272 * lisp.h (Foverlay_buffer): Add EXFUN.
12273
12274 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12275 child process to complete child_setup. Undo 2005-09-21 change.
12276
12277 * s/darwin.h: Mention setsid after vfork.
12278
122792008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12280
12281 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12282 Depend on macgui.h.
12283
12284 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12285 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12286
12287 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12288 and f19.
12289 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12290
12291 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12292 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12293 Remove enumerators.
12294
12295 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12296 Check if FACE_FROM_ID returns NULL.
12297
122982008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12299
12300 * w32inevt.c (change_frame_size): Remove extern declaration.
12301 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12302 change_frame_size.
12303
123042008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12305
12306 * getloadavg.c: Revert last change (2008-07-15).
12307
123082008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12309
12310 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12311 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12312 from configure.
12313
123142008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12315
12316 * s/sol2.h:
12317 * s/sol2-4.h: Reorganize conditionals.
12318
12319 * ecrt0.c: Remove code depending on m68000, not used anymore.
12320
12321 * fns.c (hash_remove): Make static.
12322 * lisp.h (hash_remove): Don't prototype.
12323
12324 * m/ibmrs6000.h:
12325 * m/ibms390x.h:
12326 * m/macppc.h: Remove boilerplate comments.
12327
12328 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12329 Solaris, which does not need them.
12330
12331 * m/vax.h: Remove comments about unsupported systems.
12332
12333 * s/darwin.h: Reorganize ifdefs.
12334
123352008-07-17 Andreas Schwab <schwab@suse.de>
12336
12337 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12338
123392008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12340
12341 Use SDATA. Follow coding convention of placing operators at
12342 beginning of next line rather than end of previous line, and placing
12343 spaces around infix operators.
12344
12345 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12346 in case it was defined already.
12347 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12348 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12349 ns_default.
12350 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12351 Lisp_Objects.
12352 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12353 (ns_defined_color, ns_color_to_lisp): Declare.
12354 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12355 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12356 it's accepted even with USE_LISP_UNION_TYPE.
12357 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12358 (update_frame_tool_bar): Remove apparently obsolete tests for
12359 non-integerness of f->tool_bar_lines.
12360 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12361 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12362 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12363 (nsfont_open): Don't confuse NULL for Qnil.
12364 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12365 * menu.h (find_and_call_menu_selection):
12366 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12367 (find_and_return_menu_selection): Always return something.
12368 * frame.h: Include dispextern.h for Display_Info.
12369 (display_x_get_resource): Declare.
12370
123712008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12372
12373 * syntax.c: Remove stdio.h include accidentally introduced in
12374 Emacs.app commit.
12375 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12376 NS_IMPL_COCOA.
12377 * keyboard.c (handle_async_input, input_available_signal): Remove
12378 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12379
123802008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12381
12382 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12383 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12384 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12385 Use SDATA.
12386
12387 * keymap.c: Remove all NS-specific code.
12388 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12389 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12390 where_is_preferred_modifier, return a different value depending on how
12391 preferred is the binding.
12392 (where_is_internal): Adjust accordingly.
12393 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12394 Adjust to new preferred_sequence_p.
12395 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12396 * keyboard.c (parse_solitary_modifier): Not static any more.
12397 * keyboard.h (parse_solitary_modifier): Declare.
12398
123992008-07-16 Andreas Schwab <schwab@suse.de>
12400
12401 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12402 of easymenu.
12403
124042008-07-16 Chong Yidong <cyd@stupidchicken.com>
12405
12406 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12407 that we don't move off the line.
12408
124092008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12410
12411 * keyboard.c (Qsuper): Remove.
12412 (parse_menu_item): Don't call where_is_internal specially for NS.
12413
124142008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12415
12416 * s/gnu-linux.h: Remove boilerplate comments.
12417
12418 * m/alpha.h (__ELF__): Consolidate conditions.
12419
12420 * m/m68k.h (linux): Use GNU_LINUX instead.
12421 Remove boilerplate comments.
12422
12423 * m/intel386.h: Undo refactoring from previous change.
12424 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12425 too, remove dead code.
12426 (linux): Use GNU_LINUX instead.
12427
124282008-07-16 Jason Rumney <jasonr@gnu.org>
12429
12430 * w32gui.h: Repeat 26 June changes lost by last change.
12431
124322008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12433
12434 * systty.h: Remove code for Aix on 386, unsupported platform.
12435
12436 * s/ms-w32.h: Remove boilerplate comments.
12437 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12438
12439 * s/gnu-linux.h (TERM): Remove support.
12440 (HAVE_SYSVIPC): Remove, unused.
12441 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12442 for this system.
12443
12444 * process.c: Remove support for IRIS, unused.
12445 Remove support for TERM, not relevant anymore.
12446
12447 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12448 used with the definition.
12449
12450 * s/aix4-2.h (static): Do not undef.
12451
12452 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12453 only used on Aix.
12454 (HAVE_SYSVIPC): Remove, unused.
12455
12456 * m/hp800.h (CANNOT_DUMP): Do not undef.
12457
12458 * m/alpha.h: Fix comment.
12459
12460 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12461 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12462 used by this configuration.
12463 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12464 * unexec.c: Remove code depending on HPUX and
12465 USG_SHARED_LIBRARIES, not used with this file. Remove code
12466 depending on IRIS, unused. Remove if 0-ed code.
12467
12468 * s/template.h: Remove comments about static.
12469
12470 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12471 Remove if 0-ed code.
12472 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12473 were the same as the default.
12474 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12475 Remove boilerplate comments.
12476 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12477 (HAVE_SYSVIPC): Remove, unused.
12478 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12479
12480 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12481 Remove boilerplate comments.
12482 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12483 Remove boilerplate comments.
12484 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12485 Remove boilerplate comments.
12486 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12487
12488 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12489 USG systems which do not use DATA_SEG_BITS.
12490 Refactor code. Remove boilerplate comments.
12491
12492 * m/ibms390.h:
12493 * m/m68k.h:
12494 * s/bsd-common.h:
12495 * s/cygwin.h:
12496 * s/darwin.h:
12497 * s/freebsd.h:
12498 * s/gnu.h:
12499 * s/msdos.h: Remove boilerplate comments.
12500
12501 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12502 do not use this file.
aac0c6e3
MR
12503 (IRIS_4D): Remove, unused.
12504
12505 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12506 do not use this file.
aac0c6e3
MR
12507 (SIGN_EXTEND_CHAR):
12508 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12509 * unexmips.c: Remove file, unused.
12510
12511 * editfns.c (Fuser_full_name): Replace the only use of
12512 USER_FULL_NAME with its value.
12513 * config.in: Regenerate.
12514
125152008-07-16 David Reitter <david.reitter@gmail.com>
12516
12517 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12518 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12519
125202008-07-16 Glenn Morris <rgm@gnu.org>
12521
12522 * emacs.c (system-type): Doc fix.
12523
125242008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12525
12526 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12527 If the cache doesn't work, let's fix it, rather than work around it.
12528
125292008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12530
12531 * Makefile.in: Correct additions for nsfont.o in last commit.
12532 * nsfont.m: New file (forgot last commit).
12533
125342008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12535
12536 * callproc.c (set_initial_environment): Initialize
12537 Vprocess_environment under CANNOT_DUMP (fixes crash when
12538 batch-compiling for bootstrap).
12539
125402008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12541 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12542
c4cc8b9a
JB
12543 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12544 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12545
125462008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12547
12548 Changes and additions for NeXTstep windowing system (Cocoa and
12549 GNUstep) support.
12550
12551 * Makefile.in:
12552 * config.in: Support defines and build commands for NS port.
12553 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12554 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12555 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12556 windowing.
12557 (struct face): Add synth_ital field.
12558 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12559 (init_display): Initialize Vinitial_window_system to "ns" when so
12560 compiled.
12561 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12562 (display_arg): Use under NS.
12563 (main): Under NS, allocate autorelease pool and handle command line
12564 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12565 (standard_args): Add NS-specific args.
12566 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12567 * font.c (DEFAULT_ENCODING): New variable.
12568 (font_find_for_lface): Use it.
12569 (syms_of_font): Load syms_of_nsfont under NS.
12570 * font.h: Declare nsfont_driver when compiled under NS.
12571 * fontset.c: When compiling under NS, include nsterm.h.
12572 (fontset_from_font): Autoconstruct fontset under NS.
12573 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12574 symbol, document and use it.
12575 (do_switch_frame): When for_deletion under Cocoa, add
12576 Fraise_frame(Qnil).
12577 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12578 (x_get_arg): Allow "yes" and "no" as boolean values.
12579 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12580 Qright under Cocoa.
12581 (focus-follows-mouse): Default to 0 under NS.
12582 * frame.h (enum output_method): Add output_ns.
12583 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12584 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12585 (FRAME_WINDOW_P): NS-specific definition.
12586 * fringe.c (max_used_fringe_bitmap): Make public.
12587 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12588 (getloadavg): Use NeXT code under descendant OS's.
12589 * image.c (includes and header section, x_create_bitmap_from_data)
12590 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12591 (image_background_transparent, x_clear_image_1)
12592 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12593 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12594 (x_to_xcolors, x_from_xcolors, x_disable_image)
12595 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12596 other GUIs, including XPM support using code originally written for
12597 Carbon GUI.
12598 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12599 using NS API.
12600 (image_ascent): Use font metrics macros instead of direct struct field
12601 access.
12602 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12603 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12604 Also, handle NS as GTK for menu bar purposes.
12605 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12606 toolkit where they differ.
12607 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12608 use cachelist, still needed under NS.
12609 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12610 (struct widget_value): Define it here for menu.c.
12611 * keymap.c (includes): Include modifier internals.
12612 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12613 NS.
12614 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12615 support for preferring sequences using certain modifiers, specified by
12616 the FIRSTONLY argument.
12617 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12618 under NS GNUstep implementation.
12619 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12620 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12621 * menu.c: Include nsterm.h under NS.
12622 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12623 (free_menubar_widget_tree_value, update_submenu_strings)
12624 (find_and_call_menu_selection): Treat NS as X and NT.
12625 (find_and_return_menu_selection): New function, used for popup menus.
12626 * nsgui.h:
12627 * nsterm.h:
12628 * nsfns.m:
12629 * nsimage.m:
12630 * nsmenu.m:
12631 * nsselect.m:
12632 * nsterm.m: New files.
12633 * process.c (wait_reading_process_output): Under NS, call ns_select()
12634 instead of plain select().
12635 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12636 beginning of buffer.
12637 * sysselect.h (init_process): Rename when compiling under Cocoa to
12638 avoid name conflict.
12639 * termhooks.h (display_info): Add ns_display_info to union.
12640 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12641 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12642 COCOA environment.
12643 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12644 unexec() signature. (Note, this will dump, but the resulting file
12645 crashes; unexosx is used instead; keeping around for reference and
12646 possible aid in getting dump working under GNUstep.)
12647 * w32gui.h (button_type, widget_value): Remove definitions (now in
12648 keyboard.h).
12649 * window.c: Include nsterm.h when compiling under NS.
12650 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12651 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12652 other GUI windowing systems.
12653 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12654 GTK.
12655 (x_consider_frame_title): Under NS, set icon type and frame
12656 modified-state indicator; use ns_set_name_as_filename() when using
12657 formatted title.
12658 (update_window_cursor): Make public when compiling under NS.
12659 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12660 (hourglass_atimer, Vhourglass_delay
12661 * xfaces.c (header section, init_frame_faces, clear_font_table)
12662 (defined_color, unload_color, x_face_list_fonts)
12663 (prepare_face_for_display): Add NS support parallel to other GUIs.
12664 Emulate GCs like other non-X GUIs.
12665 (split_font_name): Don't lowercase font name under NS.
12666 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12667 under NS.
12668 * s/darwin.h: Add support for compilation under NS.
12669
126702008-07-15 Jason Rumney <jasonr@gnu.org>
12671
12672 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12673 (w32_show_hourglass): Rename from show_hourglass.
12674 (w32_hide_hourglass): Rename from hide_hourglass.
12675 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12676 (Vhourglass_delay): Declare extern.
12677 (hourglass_started): Remove.
12678
12679 * xdisp.c (Vhourglass_delay): Remove static.
12680 (hourglass_started, start_hourglass, cancel_hourglass):
12681 Don't include these versions on WINDOWSNT.
12682
126832008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12684
12685 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12686 variables (formerly in xfns.c).
12687 (show_hourglass, hide_hourglass): New prototypes (same).
12688 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12689 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12690 in xfns.c).
12691 (syms_of_xdisp): Declare/initialize display-hourglass,
12692 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12693 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12694 formerly in xfns.c.
12695 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12696 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12697 (start_hourglass, cancel_hourglass): Remove.
12698 (show_hourglass, hide_hourglass): Remove prototypes and static
12699 modifiers.
12700 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12701 hourglass_atimer, hourglass_shown_p declaration/initialization.
12702 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12703 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12704 (start_hourglass, cancel_hourglass): Remove.
12705 (show_hourglass, hide_hourglass): Remove prototypes and static
12706 modifiers.
12707 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12708 hourglass_atimer, hourglass_shown_p declaration/initialization.
12709 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12710 (DEFAULT_HOURGLASS_DELAY): Remove.
12711 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12712 hourglass_shown_p declaration/initialization.
12713
127142008-07-14 Jason Rumney <jasonr@gnu.org>
12715
12716 * w32fns.c (w32_get_arg): Remove wrapper function.
12717 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12718 directly.
12719 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12720
127212008-07-14 Kenichi Handa <handa@m17n.org>
12722
12723 * xfont.c (xfont_open): Add workaround for X's bug.
12724
127252008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12726
12727 * fontset.c: Include <stdio.h> unconditionally.
12728
127292008-07-13 Michael Albinus <michael.albinus@gmx.de>
12730
12731 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12732 for filtering.
12733
127342008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12735
12736 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12737
12738 * m/macppc.h:
12739 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12740
c4cc8b9a 12741 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12742 (SPECIAL_EMACS_INT):
12743 * m/ia64.h (SPECIAL_EMACS_INT):
12744 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12745 * s/gnu.h (NLIST_STRUCT):
12746 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12747 * s/gnu-linux.h (LINUX):
12748 * s/msdos.h (HAVE_FACES):
12749 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12750
12751 * systty.h:
12752 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12753 anymore.
12754
127552008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12756
12757 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12758 always defined as int.
12759
12760 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12761 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12762 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12763 * s/freebsd.h (HAVE_WAIT_HEADER):
12764 * s/bsd-common.h (HAVE_UNION_WAIT):
12765 * s/aix4-2.h (HAVE_WAIT_HEADER):
12766 * m/mips.h (HAVE_UNION_WAIT):
12767 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12768 (COFF, static): Do not define, they are undefined later in the file.
12769
12770 * process.c (update_status): Don't use a union.
12771 (status_convert):
12772 (sigchld_handler): Use int instead of WAITTYPE.
12773
127742008-07-12 Chong Yidong <cyd@stupidchicken.com>
12775
12776 * indent.c (Fvertical_motion): Restore hscroll before moving to
12777 goal column.
12778
127792008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12780
12781 * lisp.h: Remove left over code.
12782
127832008-07-11 Andreas Schwab <schwab@suse.de>
12784
12785 * lisp.h: Fix logic in last change.
12786
12787 * menu.h: New file.
12788 * menu.c: Include it.
12789 * xmenu.c: Likewise.
12790 * Makefile.in: Update dependencies.
12791
127922008-07-11 Kenichi Handa <handa@m17n.org>
12793
12794 * fontset.c (fontset_from_font): Cancel the previous change.
12795
127962008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12797
12798 * lisp.h:
12799 * w32heap.c:
12800 * emacs.c:
12801 * alloc.c: Replace all references of NO_UNION_TYPE with
12802 USE_LISP_UNION_TYPE.
12803
12804 * m/xtensa.h (NO_UNION_TYPE):
12805 * m/vax.h (NO_UNION_TYPE):
12806 * m/template.h (NO_UNION_TYPE):
12807 * m/sparc.h (NO_UNION_TYPE):
12808 * m/mips.h (NO_UNION_TYPE):
12809 * m/macppc.h (NO_UNION_TYPE):
12810 * m/m68k.h (NO_UNION_TYPE):
12811 * m/iris4d.h (NO_UNION_TYPE):
12812 * m/intel386.h (NO_UNION_TYPE):
12813 * m/ibms390x.h (NO_UNION_TYPE):
12814 * m/ibms390.h (NO_UNION_TYPE):
12815 * m/ibmrs6000.h (NO_UNION_TYPE):
12816 * m/ia64.h (NO_UNION_TYPE):
12817 * m/hp800.h (NO_UNION_TYPE):
12818 * m/arm.h (NO_UNION_TYPE):
12819 * m/amdx86-64.h (NO_UNION_TYPE):
12820 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12821 defining it the same.
12822
128232008-07-10 Chong Yidong <cyd@stupidchicken.com>
12824
12825 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12826
128272008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12828
12829 * fileio.c:
50426a04 12830 * sysdep.c:
aac0c6e3
MR
12831 * systty.h:
12832 * m/ibmrs6000.h:
12833 * m/iris4d.h:
12834 * s/aix4-2.h:
12835 * s/freebsd.h:
12836 * s/gnu-linux.h:
12837 * s/hpux10-20.h:
12838 * s/hpux11.h:
12839 * s/netbsd.h:
12840 * s/sol2-3.h:
12841 * s/sol2-4.h:
12842 * s/sol2.h:
12843 * s/usg5-4.h:
12844 * s/vms.h: Remove references to unused variables.
12845
128462008-07-10 Andreas Schwab <schwab@suse.de>
12847
12848 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12849 pattern before matching the generic family.
12850
128512008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12852
12853 * unexec.c:
12854 * s/vms.h:
12855 * s/usg5-4-2.h:
12856 * s/sol2-5.h:
12857 * s/freebsd.h:
12858 * s/darwin.h: Remove dead code.
12859
12860 * m/template.h:
12861 * m/sparc.h:
12862 * m/mips.h:
12863 * m/m68k.h:
12864 * m/iris4d.h:
12865 * m/intel386.h:
12866 * m/ibms390x.h:
12867 * m/ibms390.h:
12868 * m/ia64.h:
12869 * m/hp800.h:
12870 * m/arm.h:
12871 * m/amdx86-64.h: Remove dead code and references to unused
12872 and compiler defined symbols.
12873
12874 * unexmips.c:
12875 * unexelf.c: Remove references to desupported systems.
12876
12877 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12878
12879 * m/powermac.h: Remove boilerplate comments.
12880 (NO_REMAP): Remove unused definition.
12881
12882 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12883 define them.
12884
128852008-07-10 Kenichi Handa <handa@m17n.org>
12886
12887 * xfont.c (xfont_open): Log the reason of failure.
12888
128892008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12890
12891 * fontset.c (fontset_get_font_group):
12892 * font.c (font_check_otf): Specify argument types.
12893
128942008-07-09 Kenichi Handa <handa@m17n.org>
12895
12896 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12897 non-ASCII char is found.
12898
12899 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12900 (reorder_font_vector): Change the arg preferred_family to font.
12901 Prefer the spec matching with font.
12902 (fontset_get_font_group): New function.
12903 (fontset_find_font): Change the format of an element of a realized
12904 fontset. Use fontset_get_font_group.
12905 (fontset_font): Try the current fontset, the default fontset, the
12906 fallbacks of the current fontset, and the fallbacks of the default
12907 fontset in this order.
12908 (face_for_char): Delete the shortcut to use the current font.
12909 (fontset_from_font): Don't set fonts for Latin in the fontset.
12910
12911 * font.h (font_make_object, font_match_p): Adjust prototypes.
12912
12913 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12914
12915 * font.c (font_make_object): New arg entity and pixelsize.
12916 (font_check_otf_features, font_check_otf): New functions.
12917 (font_match_p): Check :lang, :script, and :otf properties.
12918
12919 * xfont.c (xfont_open): Adjust it for the change of
12920 font_make_object.
12921 (xfont_text_extents): Fix initial setting of metrics.
12922
12923 * ftfont.c (struct ftfont_info): New member index, delete member
12924 fc_charset_idx. Make the member order compatible with struct
12925 xftfont_info.
12926 (fc_charset_table): Change charset names to registry names.
12927 (ftfont_pattern_entity): Delete the args registry and
12928 fc_charset_idx. Change the value of :font-entity property
12929 to (FONTNAME . INDEX). Always set :registry property to
12930 `iso10646-1'.
12931 (struct ftfont_cache_data): New struct.
12932 (ftfont_lookup_cache): New arg for_face.
12933 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12934 (ftfont_driver): Set the member otf_capability.
12935 (ftfont_get_charset): Adjust it for the change of
12936 fc_charset_table.
12937 (OTF_TAG_SYM): New macro.
12938 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12939 for the change of fc_charset_table.
12940 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12941 ftfont_pattern_entity. Add FC_INDEX to objset.
12942 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12943 and ftfont_pattern_entity.
12944 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12945 font_make_object, struct ftfont_info.
12946 (ftfont_has_char): Use ftfont_get_fc_charset.
12947 (ftfont_otf_features, ftfont_otf_capability): New functions.
12948 (ftfont_shape): Use ftfont_get_otf.
12949 (ftfont_text_extents): Fix initial setting of metrics.
12950
12951 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12952 member order compatible with struct ftfont_info.
12953 (xftfont_open): Add FC_CHARSET to the pattern. Set
12954 xftfont_info->ft_size. Don't unlock the face. Check BDF
12955 properties if appropriate.
12956 (xftfont_close): Unlock the face.
12957 (xftfont_anchor_point, xftfont_shape): Deleted.
12958 (syms_of_xftfont): Don't set members anchor_point and shape of
12959 xftfont_driver.
12960
12961 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12962 font_make_object.
12963
12964 * w32font.c (w32font_open): Adjust it for the change of
12965 font_make_object.
12966 (w32font_open_internal): Don't set properties of font_object here.
12967
129682008-07-08 Chong Yidong <cyd@stupidchicken.com>
12969
12970 * macfns.c (x_create_tip_frame):
12971 * w32fns.c (x_create_tip_frame):
12972 * xfns.c (x_create_tip_frame): Pass parameter argument to
12973 face-set-after-frame-default.
12974
12975 * xfaces.c (Finternal_merge_in_global_face): Save merged
12976 attributes for the default face back into the face vector.
12977
129782008-07-08 Andreas Schwab <schwab@suse.de>
12979
12980 * fontset.h: Declare fontset_from_font. Don't declare
12981 new_fontset_from_font and fontset_from_font_name.
12982 * xterm.c: Include "fontset.h".
12983 * Makefile.in (xterm.o): Update dependencies.
12984
129852008-07-08 Glenn Morris <rgm@gnu.org>
12986
12987 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12988 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12989
129902008-07-07 Chong Yidong <cyd@stupidchicken.com>
12991
12992 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12993 (x_set_frame_parameters): Don't bind it.
12994
129952008-07-07 Juanma Barranquero <lekktu@gmail.com>
12996
12997 * w32fns.c (map_w32_filename): Declare extern.
12998
129992008-07-07 Jason Rumney <jasonr@gnu.org>
13000
13001 * w32term.c (WS_EX_LAYERED): Define if not already.
13002
130032008-07-06 Chong Yidong <cyd@stupidchicken.com>
13004
13005 * xfaces.c (set_font_frame_param): Don't try to set the font
13006 parameter if it is still unspecified in the lface.
13007
130082008-07-05 Chong Yidong <cyd@stupidchicken.com>
13009
13010 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13011 face if it didn't already exist.
13012
13013 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13014
130152008-07-05 Andreas Schwab <schwab@suse.de>
13016
13017 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13018
130192008-07-05 Chong Yidong <cyd@stupidchicken.com>
13020
13021 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13022 word-wrapping.
13023 (IT_DISPLAYING_WHITESPACE): New macro.
13024 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13025 when word-wrapping. Simplify word-wrapping logic. Use correct
13026 pixel positions when saving copies of the iterator.
13027 (display_line): Use proper wrap point if the last character on a
13028 line was preceded by whitespace.
13029
130302008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13031
13032 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13033
130342008-07-04 Kenichi Handa <handa@m17n.org>
13035
13036 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13037
13038 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13039
130402008-07-02 Jason Rumney <jasonr@gnu.org>
13041
13042 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13043 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13044
13045 * xdisp.c (next_element_from_display_vector): Move assignment out
13046 of if statement.
13047
130482008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13049
13050 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13051
13052 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13053 (syms_of_fileio): Initialize and export them.
13054 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13055
13056 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13057 (Fsystem_move_file_to_trash): New function.
13058 (syms_of_w32fns): Export it to lisp.
13059
130602008-07-01 Jason Rumney <jasonr@gnu.org>
13061
13062 * w32font.c (w32font_text_extents): Don't count overhang as part
13063 of width.
13064
130652008-06-30 Miles Bader <miles@gnu.org>
13066
13067 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13068 Add `avoid_cursor_p' field.
13069
13070 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13071 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13072 (append_glyph, append_composite_glyph, produce_image_glyph)
13073 (append_stretch_glyph): Initialize avoid_cursor_p.
13074 (get_it_property): Rename from `get_line_height_property'.
13075 (x_produce_glyphs): Use get_it_property.
13076 (handle_line_prefix, push_display_prop): New functions.
13077 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13078 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13079 New variables.
13080 (syms_of_xdisp): Initialize them.
13081
130822008-06-30 Kenichi Handa <handa@m17n.org>
13083
13084 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13085 XftDefaultSubstitute (they are called in XftFontMatch).
13086 (xftfont_open): Fix args to ftfont_font_format.
13087
13088 * ftfont.c (fc_charset_table): New member lang.
13089 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13090 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13091 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13092 (ftfont_open): Fix args to ftfont_font_format.
13093 (ftfont_font_format): New arg filename.
13094
130952008-06-30 Chong Yidong <cyd@stupidchicken.com>
13096
13097 * xfaces.c (Finternal_merge_in_global_face): If default face was
13098 modified, realize it again. Update the font face attribute.
13099
131002008-06-29 Jason Rumney <jasonr@gnu.org>
13101
13102 * w32term.c (x_set_frame_alpha): Fix logic.
13103
131042008-06-29 Kenichi Handa <handa@m17n.org>
13105
13106 * fontset.c (Finternal_char_font): Return font-object instead of
13107 font-name.
13108
13109 * composite.c (get_composition_id): Fix the width calculation for TAB.
13110
131112008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13112
13113 * indent.c (Fvertical_motion): Properly handle float column arg.
13114
131152008-06-28 Jason Rumney <jasonr@gnu.org>
13116
13117 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13118 (pfnSetLayeredWindowAttributes): New function pointer.
13119 (w32_initialize): Initialize it when supported.
13120 (x_set_frame_alpha): New function.
13121
13122 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13123 (w32_frame_parm_handlers): Set alpha handler.
13124
13125 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13126
131272008-06-27 Jason Rumney <jasonr@gnu.org>
13128
13129 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13130 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13131 (w32_to_x_charset, x_to_w32_charset)
13132 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13133 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13134 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13135 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13136 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13137 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13138 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13139 (Qw32_charset_unicode): Remove.
13140 (syms_of_w32fns): Update for above changes.
13141
13142 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13143 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13144 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13145 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13146 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13147 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13148 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13149 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13150 (syms_of_w32font): Update for above changes.
13151
131522008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13153
13154 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13155 removed #if.
13156 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13157
131582008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13159 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13160
13161 * makefile.w32-in (LOCAL_FLAGS):
13162 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13163
13164 * sysdep.c (_spawnlp, _getpid):
13165 Declare with explicit _cdecl instead of _CRTAPI1.
13166
13167 * editfns.c (Fget_internal_run_time):
13168 Check for WINDOWSNT with #ifdef, not #if.
13169
131702008-06-26 Jason Rumney <jasonr@gnu.org>
13171
13172 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13173
13174 * w32term.c (x_draw_glyph_string_foreground)
13175 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13176 Use FONT_HANDLE macro.
13177 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13178
13179 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13180 (uniscribe_encode_char): Use FONT_HANDLE macro.
13181
13182 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13183 (w32font_text_extents): Use precast w32_font.
13184 (w32font_close): Free cached metrics.
13185 (w32font_open_internal): Allocate space for name on stack.
13186
131872008-06-26 Chong Yidong <cyd@stupidchicken.com>
13188
13189 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13190
131912008-06-26 Jason Rumney <jasonr@gnu.org>
13192
13193 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13194 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13195
131962008-06-26 Juanma Barranquero <lekktu@gmail.com>
13197
13198 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13199
132002008-06-26 Jason Rumney <jasonr@gnu.org>
13201
13202 * w32bdf.c, w32bdf.h: Remove obsolete files.
13203
13204 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13205
13206 * w32gui.h: Don't include w32bdf.h.
13207 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13208 Remove obsolete font support.
13209
13210 * w32font.h (struct w32font_info): Remove compat_w32_font.
13211 Add hfont member.
13212 (FONT_COMPAT): Remove obsolete macro.
13213
13214 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13215 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13216 (w32font_open_internal): Remove compat code. Set new hfont member.
13217 (Fx_select_font): Use new hfont member.
13218
13219 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13220 (uniscribe_encode_char): Use new hfont member.
13221
13222 * w32term.c (x_draw_glyph_string_foreground)
13223 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13224 (x_draw_glyph_string): Use metrics in w32font_info.
13225
132262008-06-26 Kenichi Handa <handa@m17n.org>
13227
13228 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13229
132302008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13231
13232 * unexnext.c:
13233 * m/ews4800.h:
13234 * m/hp9000s300.h:
13235 * m/ibm370aix.h:
13236 * m/mips-siemens.h:
13237 * m/ncr386.h:
13238 * m/next.h:
13239 * m/pmax.h:
13240 * m/powerpcle.h:
13241 * m/tandem-s2.h:
13242 * s/386bsd.h:
13243 * s/bsd386.h:
13244 * s/bsd4-1.h:
13245 * s/bsd4-2.h:
13246 * s/bsdos2-1.h:
13247 * s/bsdos2.h:
13248 * s/bsdos3.h:
13249 * s/bsdos4.h:
13250 * s/nextstep.h:
13251 * s/ultrix4-3.h:
13252 * s/usg5-0.h:
13253 * s/usg5-2-2.h:
13254 * s/usg5-2.h:
13255 * s/usg5-4-3.h:
13256 * s/ux4800.h:
13257 * s/uxpds.h:
13258 * s/uxpv.h: Remove support for obsolete systems.
13259 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13260 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13261 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13262 Remove, insert contents in s/aix4-2.h.
13263 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13264 * s/bsd4-3.h: Rename to ...
13265 * s/bsd-common.h: ... this.
13266 * data.c:
13267 * doc.c:
13268 * ecrt0.c:
13269 * emacs.c:
13270 * fileio.c:
13271 * floatfns.c:
13272 * keyboard.c:
13273 * mem-limits.h:
13274 * print.c:
13275 * process.c:
13276 * sysdep.c:
13277 * syssignal.h:
13278 * systty.h:
13279 * syswait.h:
13280 * term.c:
13281 * unexec.c:
13282 * unexelf.c:
13283 * unexhp9k800.c:
13284 * m/hp800.h:
13285 * m/ibmrs6000.h:
13286 * m/mips.h:
13287 * m/vax.h:
13288 * s/darwin.h:
13289 * s/freebsd.h:
13290 * s/gnu.h:
13291 * s/ms-w32.h:
13292 * s/msdos.h:
13293 * s/netbsd.h:
13294 * s/template.h: Remove references to obsolete variables.
13295
13296 * Makefile.in: Add dependencies for all unexec files.
13297 (admindir): Remove unused variable.
13298 (UNEXEC_SRC): Remove references.
13299
133002008-06-25 Chong Yidong <cyd@stupidchicken.com>
13301
13302 * xfns.c (x_default_font_parameter): If Xft is available, first
13303 try Monospace-12 for the default font.
13304
133052008-06-25 Jason Rumney <jasonr@gnu.org>
13306
13307 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13308
133092008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13310
13311 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13312
13313 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13314
133152008-06-25 Juanma Barranquero <lekktu@gmail.com>
13316
13317 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13318 <scroll-conservatively>: Fix typo in docstring.
13319
13320 * xselect.c (Fx_send_client_event): Doc fix.
13321
133222008-06-25 Kenichi Handa <handa@m17n.org>
13323
13324 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13325
13326 * font.c (font_parse_fcname): Remove unused variables.
13327 (font_sort_entites): Delete the arg SPEC. Caller changed.
13328 Fix for the case of ! best_only.
13329 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13330
13331 * lisp.h (Fstring_to_unibyte): EXFUN it.
13332
13333 * character.h (str_to_unibyte): Extern it.
13334
13335 * character.c (str_to_unibyte): New function.
13336
13337 * fns.c (Fstring_to_unibyte): New function.
13338 (syms_of_fns): Defsubr it.
13339
133402008-06-24 Kenichi Handa <handa@m17n.org>
13341
13342 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13343 DPI too.
13344 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13345
133462008-06-24 Andreas Schwab <schwab@suse.de>
13347
13348 * Makefile.in (${lispsource}loaddefs.el): Rename from
13349 ../lisp/loaddefs.el.
13350 (bootstrap-clean): Do what distclean does but don't remove
13351 Makefile.
13352 (distclean): Depend on bootstrap-clean and remove Makefile.
13353
133542008-06-24 Chong Yidong <cyd@stupidchicken.com>
13355
13356 * buffer.h (struct buffer): New member word_wrap.
13357
13358 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13359 word-wrap.
13360 (init_buffer_once): Initialize them.
13361
13362 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13363 line_wrap enum possessing three possible values.
13364
13365 * termopts.h: Replace truncate_partial_width_windows with
13366 Vtruncate_partial_width_windows.
13367
13368 * dispnew.c (direct_output_for_insert): Avoid direct output when
13369 inserting a space with word wrap on.
13370
13371 * indent.c (compute_motion): Obey integer values of
13372 truncate-partial-width-windows.
13373
13374 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13375 replacing truncate_partial_width_windows.
13376 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13377 truncate only if the window width is below that integer.
13378 (start_display, resize_mini_window, produce_stretch_glyph)
13379 (display_string, move_it_in_display_line_to): Use line_wrap.
13380 (back_to_previous_visible_line_start, reseat_1): Reset
13381 string_from_display_prop_p.
13382 (display_line): Extend default face to end of line when wrapping.
13383
133842008-06-24 Kim F. Storm <storm@cua.dk>
13385
13386 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13387 to wrap continued lines at word boundaries.
13388
133892008-06-24 Jason Rumney <jasonr@gnu.org>
13390
13391 * font.c (Ffont_face_attributes): Multiply pixel size before point
13392 conversion to avoid multiplying rounding error.
13393
133942008-06-23 Jason Rumney <jasonr@gnu.org>
13395
13396 * w32term.c (x_draw_glyph_string_background)
13397 (x_draw_glyph_string): Remove old bdf font code.
13398
13399 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13400
134012008-06-22 Kenichi Handa <handa@m17n.org>
13402
13403 * font.c (font_find_for_lface): Try the adstyle specified in
13404 the property of LFACE_FONT of LFACE (if any).
13405
134062008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13407 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13408
13409 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13410
134112008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13412
13413 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13414 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13415 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13416 (witness-emacs): Remove.
13417 (lisp, shortlisp): Move loaddefs.el earlier.
13418 (mostlyclean): Forget about witness-emacs.
13419
134202008-06-22 Glenn Morris <rgm@gnu.org>
13421
13422 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13423 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13424
134252008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13426
13427 * Makefile.in (PRECOMP): Remove.
13428 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13429 (witness-emacs): Run `compile-first'.
13430 (.el.elc): Use the new compile-onefile target.
13431
134322008-06-21 Kenichi Handa <handa@m17n.org>
13433
13434 * xftfont.c (xftfont_open): Handle QCembolden only when
13435 FC_EMBOLDEN is defined.
13436
134372008-06-21 Andreas Schwab <schwab@suse.de>
13438
13439 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13440 (.el.elc): Likewise.
13441
134422008-06-21 Miles Bader <miles@gnu.org>
13443
13444 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13445 build dir, not the lisp source dir.
13446
134472008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13448
13449 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13450 (bootstrapclean): Remove.
13451 (.el.elc): New rule.
13452 (PRECOMP): New var.
13453 (../lisp/subdirs.el): Remove.
13454 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13455 (witness-emacs): New target.
13456 (mostlyclean): Remove witness-emacs as well.
13457 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13458 Add witness-emacs dependency.
13459
134602008-06-20 Chong Yidong <cyd@stupidchicken.com>
13461
13462 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13463 defined by the font.
13464
134652008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13466
13467 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13468 (bootstrap-clean): New target that keeps TAGS around.
13469 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13470 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13471
134722008-06-20 Jason Rumney <jasonr@gnu.org>
13473
13474 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13475 Remove obsolete font code.
13476
13477 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13478 to determine language support.
13479
134802008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13481
13482 * sysdep.c (cfsetspeed): New fun extracted from the code.
13483 (cfmakeraw): Move before first use.
13484
134852008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13486
13487 * sysdep.c (cfmakeraw): Provide fallback implementation.
13488 (serial_configure): Provide fallback implementation of cfsetspeed.
13489
134902008-06-20 Kenichi Handa <handa@m17n.org>
13491
13492 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13493 the pattern.
13494
13495 * fontset.c (fontset_from_font): Copy font_spec before changing
13496 the elements.
13497
13498 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13499
135002008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13501
13502 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13503 for explicit `font' parameters.
13504
13505 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13506
135072008-06-19 Kenichi Handa <handa@m17n.org>
13508
13509 * frame.c: Include <ctype.h>.
13510 (x_set_font_backend): Allow spacing characters in the X resource
13511 for FontBackend.
13512
135132008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13514
13515 * w32fns.c, xfns.c (Qfont_param): New var.
13516 (syms_of_w32fns): Initialize it.
13517 (x_default_font_parameter): Record explicit `font' into
13518 `font-parameter'.
13519
135202008-06-18 Kenichi Handa <handa@m17n.org>
13521
13522 * font.c (font_parse_xlfd): Fix previous change.
13523 (font_parse_fcname): Don't use :fc-unknown-spec.
13524 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13525 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13526 (font_add_log): Prepend the driver name to the resulting fonts.
13527
13528 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13529 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13530 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13531
13532 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13533 (QCembolden): New variables.
13534 (syms_of_xftfont): DEFSYM them.
13535 (xftfont_open): Call XftFontMatch. Don't trust the result of
13536 XftTextExtents8 if the pixel_size is less than 5.
13537
135382008-06-18 Andreas Schwab <schwab@suse.de>
13539
13540 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13541 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13542
135432008-06-18 Jason Rumney <jasonr@gnu.org>
13544
13545 * w32font.c (w32font_list, w32font_match): Add logging.
13546
13547 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13548
135492008-06-17 Chong Yidong <cyd@stupidchicken.com>
13550
13551 * font.c (font_parse_fcname): Store divider characters for
13552 unknown-spec list. For known key symbols, intern using correct
13553 symbol name.
13554
135552008-06-17 Kenichi Handa <handa@m17n.org>
13556
13557 * xfaces.c (realize_default_face): If the frame is not on window
13558 system, set the fontset of face to nil.
13559
135602008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13561
13562 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13563
135642008-06-16 Juanma Barranquero <lekktu@gmail.com>
13565
13566 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13567 (build_font_name_from_vector): Delete externs.
13568
13569 * xfaces.c (struct font_name): Don't declare.
13570
135712008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13572
13573 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13574
135752008-06-16 Chong Yidong <cyd@stupidchicken.com>
13576
13577 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13578
135792008-06-16 Juanma Barranquero <lekktu@gmail.com>
13580
13581 * font.c (Ffont_spec): Fix usage in docstring.
13582 (Ffont_face_attributes): Doc fix.
13583
135842008-06-16 Andreas Schwab <schwab@suse.de>
13585
13586 * font.c (Ffont_face_attributes): Fix definition.
13587
135882008-06-16 Jason Rumney <jasonr@gnu.org>
13589
13590 * font.h (font_style_symbolic_from_value): Remove.
13591
13592 * font.c (font_style_symbolic_from_value): Remove.
13593 (font_style_symbolic): Revert to pre 2008-06-13 version.
13594
13595 * w32font.c (w32_to_fc_weight): New function.
13596 (w32font_full_name, logfont_to_fcname): Use it.
13597
135982008-06-16 Kenichi Handa <handa@m17n.org>
13599
13600 * font.c (font_check_object): Delete it.
13601 (font_clear_cache): Check if a font-object is alive.
13602 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13603 font-object to nil.
13604 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13605 (font_at): Don't call font_check_object.
13606 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13607
136082008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13609
13610 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13611
136122008-06-16 Chong Yidong <cyd@stupidchicken.com>
13613
13614 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13615
136162008-06-15 Chong Yidong <cyd@stupidchicken.com>
13617
13618 * font.c (font_parse_fcname): Only one decimal point.
13619 (font_unparse_fcname): Handle data in family and foundry indices
13620 as symbols, not strings.
13621 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13622
13623 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13624
13625 * font.h (font_unparse_gtkname): Add prototype.
13626
136272008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13628
13629 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13630
136312008-06-15 Andreas Schwab <schwab@suse.de>
13632
13633 * font.c (font_update_drivers): Fix crash when no drivers match.
13634
136352008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13636
13637 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13638 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13639
136402008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13641
13642 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13643
136442008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13645
13646 * process.c (Fserial_process_configure, Fprocess_send_eof):
13647 Use EQ to compare Lisp_Objects.
13648
136492008-06-13 Jason Rumney <jasonr@gnu.org>
13650
13651 * w32fns.c (Fw32_select_font): Remove old font API function.
13652
13653 * w32font.c (logfont_to_fcname): New function.
13654 (Fx_select_font): New font dialog function compatible with
13655 GTK/fontconfig version.
13656
13657 * font.c (font_style_symbolic_from_value): New function.
13658 (font_style_symbolic): Use it.
13659
13660 * font.h (font_style_symbolic_from_value): Declare new function.
13661
136622008-06-13 Juanma Barranquero <lekktu@gmail.com>
13663
13664 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13665 <font-width-table>: Fix typos in docstrings.
13666
136672008-06-13 Daniel Engeler <engeler@gmail.com>
13668
13669 These changes add serial port access.
13670 * process.c: Add HAVE_SERIAL.
13671 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13672 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13673 (list_processes_1, select_wrapper, Fstop_process)
13674 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13675 (status_notify): Modify to handle serial processes.
13676 [HAVE_SERIAL] (Fserial_process_configure)
13677 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13678 New functions.
13679 * process.h (struct Lisp_Process): Add `type'.
13680 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13681 New functions.
13682 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13683 serial ports.
b71ac3dd 13684 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13685 * w32.h: Add FILE_SERIAL.
13686 (struct _child_process): Add ovl_read, ovl_write.
13687
136882008-06-13 Kenichi Handa <handa@m17n.org>
13689
13690 * dispextern.h (enum lface_attribute_index): New member
13691 LFACE_FOUNDRY_INDEX.
13692
13693 * font.c (font_score): Delete arg alternate_families. Check only
13694 weight, slant, width, and size. Ignore the difference of alias
13695 style symbols.
13696 (font_sort_entites): Adjust for the above change. Reflect the
13697 order of font-driver to scores.
13698 (font_list_entities): Don't check alternate_familes here.
13699 (font_clear_prop): Handle foundry.
13700 (font_update_lface): Don't parse "foundry-family" form here.
13701 Handle FONT_FOUNDRY_INDEX.
13702 (font_find_for_lface): Likewise. Handle alternate families here.
13703 If registry is nil, try iso8859-1 and ascii-0.
13704 (font_open_for_lface): Pay attention to size in ENTITY.
13705 (font_open_by_name): Simplify by calling font_load_for_lface.
13706 (free_font_driver_list): Delete it.
13707 (font_update_drivers): Preserve the order of backends.
13708 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13709 of font_score and font_sort_entites.
13710 (font_update_sort_order): Likewise.
13711
13712 * xfaces.c (LFACE_FOUNDRY): New macro.
13713 (check_lface_attrs): Check foundry.
13714 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13715 (merge_face_vectors): Check foundry.
13716 (merge_face_ref): Likewise.
13717 (Finternal_set_lisp_face_attribute): Likewise.
13718 (x_update_menu_appearance): Likewise.
13719 (Finternal_get_lisp_face_attribute): Likewise.
13720 (lface_hash): Likewise.
13721 (lface_same_font_attributes_p): Likewise.
13722 (x_supports_face_attributes_p): Likewise.
13723 (tty_supports_face_attributes_p): Likewise.
13724 (Finternal_set_alternative_font_family_alist): Intern strings.
13725 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13726 (realize_default_face): Set LFACE_FOUNDRY (lface).
13727
13728 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13729 font-driver at first.
13730
13731 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13732
137332008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13734
13735 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13736
137372008-06-12 Jim Meyering <meyering@redhat.com>
13738
13739 Make unexec_free handle NULL the same way free does.
13740 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13741
137422008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13743
13744 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13745 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13746 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13747 (WEAK_ALIAS): Simplify.
13748 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13749 when searching a unibyte buffer.
13750
137512008-06-12 Chong Yidong <cyd@stupidchicken.com>
13752
13753 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13754
137552008-06-12 Juanma Barranquero <lekktu@gmail.com>
13756
13757 * w32font.c: Include ctype.h.
13758
137592008-06-11 Jason Rumney <jasonr@gnu.org>
13760
13761 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13762 misreported as space.
13763 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13764 as aliases for registry iso10646-1.
13765
137662008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13767
13768 * buffer.c (clone_per_buffer_values): Skip `name'.
13769
137702008-06-11 Chong Yidong <cyd@stupidchicken.com>
13771
13772 * font.c (font_parse_fcname): Fix last change; accept decimal
13773 points in font size.
13774
137752008-06-10 Jason Rumney <jasonr@gnu.org>
13776
13777 * w32uniscribe.c (add_opentype_font_name_to_list):
13778 Skip non unicode fonts.
13779
137802008-06-10 Chong Yidong <cyd@stupidchicken.com>
13781
13782 * xfns.c (Fx_font_dialog): New function.
13783
13784 * gtkutil.c (xg_dialog_response_cb): Rename from
13785 xg_file_response_callback.
13786 (pop_down_dialog): Rename from pop_down_file_dialog.
13787 (xg_get_file_name): Callers changed.
13788 (xg_get_font_name): New function.
13789
13790 * gtkutil.h (xg_get_font_name): Insert prototype.
13791
137922008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13793
13794 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13795 x_underline_minimum_display_offset.
13796 (syms_of_xdisp): Declare it here rather than in xterm.c.
13797 * dispextern.h (underline_minimum_offset): Declare it.
13798 * w32term.c (x_draw_glyph_string): Use it.
13799 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13800 (syms_of_xterm): Don't declare it any more.
13801 (x_draw_glyph_string): Adjust to the new name.
13802
8719abec 138032008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13804
13805 * xterm.c (x_underline_minimum_display_offset): New var.
13806 (x_draw_glyph_string): Use it.
13807 (syms_of_xterm): Declare it.
13808
138092008-06-10 Chong Yidong <cyd@stupidchicken.com>
13810
13811 * font.c (font_parse_fcname): Accept GTK-style font names too.
13812
138132008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13814
13815 * dired.c (file_name_completion): Don't return t if the match is exact
13816 but with different capitalization.
13817 * minibuf.c (Ftry_completion): Simplify.
13818
13819 * window.c (Vwindow_point_insertion_type): New var.
13820 (set_window_buffer): Use it.
13821 (syms_of_window): Init and export it to Lisp.
13822
138232008-06-10 Kenichi Handa <handa@m17n.org>
13824
13825 * font.h (font_intern_prop): Prototype adjusted.
13826
13827 * font.c (font_intern_prop): New arg force_symbol.
13828 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13829 Adjust for the change of font_intern_prop.
13830
13831 * ftfont.c (ftfont_pattern_entity):
13832 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13833 (w32_registry):
13834 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13835 the change of font_intern_prop.
13836
138372008-06-09 Juanma Barranquero <lekktu@gmail.com>
13838
13839 * w32menu.c (digest_single_submenu): Declare extern.
13840
138412008-06-09 Jason Rumney <jasonr@gnu.org>
13842
13843 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13844
13845 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13846 (parse_single_submenu): Remove.
13847 (digest_single_submenu): Remove.
13848 (syms_of_w32menu): Don't initialise variables that have moved
13849 to menu.c.
13850 (set_frame_menubar): Sync with version in xmenu.c.
13851 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13852
13853 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13854 Make static again.
13855
138562008-06-09 Jason Rumney <jasonr@gnu.org>
13857
13858 Changes to w32 files related to the move of common menu code
13859 to menu.c on 2008-06-08 by Chong Yidong.
13860
13861 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13862 defs to w32gui.h.
13863 (single_keymap_panes, push_menu_item, push_menu_pane):
13864 Make globally visible.
13865
13866 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13867 (local_free, malloc_widget_value, free_widget_value)
13868 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13869 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13870 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13871 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13872 (menu_items, menu_items_allocated, menu_items_used)
13873 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13874 (init_menu_items, finish_menu_items, discard_menu_items)
13875 (grow_menu_items, push_submenu_start, push_submenu_end)
13876 (push_left_right_boundary, push_menu_pane, push_menu_item)
13877 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13878 (free_menubar_widget_tree_value, parse_single_submenu)
13879 (update_submenu_strings): Remove functions.
13880 (xmalloc_widget_value): Remove and declare extern.
13881
13882 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13883 (OBJ1): Build it.
13884
13885 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13886 (local_heap, local_alloc, local_free, malloc_widget_value)
13887 (free_widget_value): Define here.
13888
138892008-06-09 Kenichi Handa <handa@m17n.org>
13890
13891 * font.h (Qascii_0): Extern it.
13892
13893 * font.c (Qascii_0): New variable.
13894 (syms_of_font): DEFSYM it.
13895 (font_open_by_name): If the registry "iso8859-1" fails, try also
13896 "ascii-0".
13897
13898 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13899
139002008-06-08 Kenichi Handa <handa@m17n.org>
13901
13902 * .gdbinit (xfont): New command.
13903
139042008-06-08 Andreas Schwab <schwab@suse.de>
13905
13906 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13907 * Makefile.in (menu.o): Update dependencies.
13908
13909 * Makefile.in (obj): Always add menu.o.
13910 * emacs.c (main): Always call syms_of_menu.
13911 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13912
139132008-06-08 Chong Yidong <cyd@stupidchicken.com>
13914
13915 * Makefile.in: Compile menu.c.
13916
13917 * lisp.h: Declare syms_of_menu.
13918
13919 * emacs.c (main): Call syms_of_menu.
13920
13921 * keyboard.h: Relocate platform-independent menu definitions from
13922 xmenu.c.
13923
13924 * menu.c: New file. Relocate platform-independent menu
13925 definitions from xmenu.c. Suggested by Adrian Robert.
13926
13927 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13928 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13929 (menu_items_used, menu_items_n_panes)
13930 (menu_items_submenu_depth): Move to keyboard.h.
13931 (init_menu_items, finish_menu_items, unuse_menu_items)
13932 (discard_menu_items, restore_menu_items, save_menu_items)
13933 (grow_menu_items, push_submenu_start, push_submenu_end)
13934 (push_left_right_boundary, push_menu_pane, push_menu_item)
13935 (keymap_panes, single_keymap_panes, single_menu_item)
13936 (list_of_panes, list_of_items, find_and_call_menu_selection)
13937 (xmalloc_widget_value, free_menubar_widget_value_tree)
13938 (parse_single_submenu, digest_single_submenu)
13939 (update_submenu_strings): Move to menu.c.
13940
139412008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13942
13943 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13944
139452008-06-06 Miles Bader <miles@gnu.org>
13946
13947 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13948 face, not frame default.
13949
139502008-06-05 Martin Rudalics <rudalics@gmx.at>
13951
13952 * window.c (pop_up_windows, pop_up_frames)
13953 (display_buffer_reuse_frames, Vpop_up_frame_function)
13954 (Vdisplay_buffer_function, Veven_window_heights)
13955 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13956 (Vspecial_display_function, Vsame_window_buffer_names)
13957 (Vsame_window_regexps, split_height_threshold)
13958 (Vsplit_window_preferred_function): Move those vars to window.el.
13959 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13960 (Fdisplay_buffer): Move those functions to window.el.
13961 (syms_of_window): Remove corresponding declarations.
13962 (display_buffer): New function.
13963 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13964 * dispnew.c (Flast_nonminibuf_frame): New function.
13965 * buffer.c (Fpop_to_buffer): Move to window.el.
13966
139672008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13968
13969 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13970
139712008-06-05 Kenichi Handa <handa@m17n.org>
13972
13973 * coding.c (detect_coding): Fix previous change.
13974 (detect_coding_system): Likewise.
13975
139762008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13979
13980 * keymap.c (Vminibuffer_local_filename_must_match_map):
13981 Rename from Vminibuffer_local_must_match_filename_map.
13982 (syms_of_keymap):
13983 * minibuf.c (Fcompleting_read): Adjust accordingly.
13984 * commands.h: Rename declaration as well.
13985
139862008-06-05 Kenichi Handa <handa@m17n.org>
13987
13988 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13989 family name.
13990 (Ffont_put): Likewise.
13991
13992 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13993 current font-spec.
13994
13995 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13996 is unspecified.
13997
13998 * xfaces.c (realize_x_face): If the font-related face attributes
13999 are the same as those of default face, realize a new fontset from
14000 default->fontset.
14001 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14002
140032008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14004
14005 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14006 (move_it_in_display_line): New wrapper.
14007
14008 * window.c (window_scroll_pixel_based_preserve_x)
14009 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14010 (window_scroll_pixel_based, window_scroll_line_based):
14011 Use them to preserve column positions.
14012 (syms_of_window): Initialize them.
14013
14014 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14015 (HPOS . VPOS) pair.
14016
14017 * dispextern.h (move_it_in_display_line): Declare.
14018
140192008-06-05 Juanma Barranquero <lekktu@gmail.com>
14020
14021 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14022 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14023 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14024
140252008-06-04 Juanma Barranquero <lekktu@gmail.com>
14026
14027 * window.c (Fset_window_parameter): Doc fix.
14028 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14029
140302008-06-04 Joakim Verona <joakim@verona.se>
14031
14032 * window.h (struct window): Add new member window_parameters.
14033
14034 * window.c (Fwindow_parameters, Fwindow_parameter)
14035 (Fset_window_parameter): New defuns.
14036 (syms_of_window): Defsubr the new defuns.
14037 (make_window): Initialize window_parameters to nil.
14038
140392008-06-04 John Paul Wallington <jpw@pobox.com>
14040
14041 * eval.c (Fdefmacro): Doc fix.
14042
140432008-06-04 Kenichi Handa <handa@m17n.org>
14044
14045 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14046 Be sure to call setup_coding_system when we find a proper coding system.
14047 (detect_coding_system): Fix handling of coding->head_ascii.
14048
140492008-06-03 Andreas Schwab <schwab@suse.de>
14050
14051 * font.c (font_prop_validate_spacing): Fix last change.
14052
140532008-06-03 Kenichi Handa <handa@m17n.org>
14054
14055 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14056 (font_parse_fcname): Fix handling of unknown key.
14057
14058 * xfont.c (xfont_list): Try an alias.
14059
14060 * charset.c (char_charset): Return NULL if the arg charset_list is
14061 specified and C doesn't belong to any of them.
14062
140632008-06-02 Chip Coldwell <coldwell@redhat.com>
14064
14065 * font.c (font_pixel_size): Don't take cdr of an integer.
14066
140672008-06-02 Jim Meyering <meyering@redhat.com>
14068
14069 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14070 * alloc.c (xfree): Return right away for a NULL arg.
14071 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14072 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14073 * mac.c (create_apple_event_from_event_ref): Likewise.
14074 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14075 Likewise.
14076 * doprnt.c (doprnt1): Likewise.
14077 * frame.c (frame): Likewise.
14078 * keyboard.c (wipe_kboard): Likewise.
14079 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14080 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14081 * term.c (tty_default_color_capabilities, maybe_fatal)
14082 (delete_tty): Likewise.
14083 * w16select.c (string): Likewise.
14084 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14085 * w32bdf.c (w32_free_bdf_font): Likewise.
14086 * w32fns.c (w32_unload_font): Likewise.
14087 * w32font.c (w32font_close): Likewise.
14088 * window.c (size_window): Likewise.
14089 * xselect.c (receive_incremental_selection): Likewise.
14090 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14091 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14092 * w32.c (stat): Likewise.
14093
14094 Remove useless if-before-free tests.
14095 * editfns.c (Fset_time_zone_rule): Likewise.
14096 * lread.c (nosuffix): Likewise.
14097 * ralloc.c (get_bloc): Likewise.
14098 * regex.c (reg_free): Likewise.
14099 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14100 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14101 * xsmfns.c (smc_save_yourself_CB): Likewise.
14102
141032008-06-02 Kenichi Handa <handa@m17n.org>
14104
14105 * font.c (font_find_for_lface): Handle float font size.
14106 (font_open_for_lface): Likewise.
14107
14108 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14109 comparing the properties.
14110
141112008-06-01 Jason Rumney <jasonr@gnu.org>
14112
14113 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14114 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14115 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14116 Don't add empty script list.
14117 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14118
141192008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14120
14121 * Makefile.in (dot, dotdot): Remove, update users.
14122 ".." has been used elsewhere in the file for a long time.
14123 (LIBXT_STATIC): Remove conditional based on unused variable.
14124
141252008-06-01 Miles Bader <miles@gnu.org>
14126
14127 * xfaces.c (Vface_remapping_alist): New variable.
14128 (syms_of_xfaces): Initialize it.
14129 (enum named_merge_point_kind): New type.
14130 (struct named_merge_point): Add `named_merge_point_kind' field.
14131 (push_named_merge_point): Make cycle detection respect different
14132 named-merge-point kinds.
14133 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14134 Remove face-name alias resolution.
14135 (lface_from_face_name): New definition using
14136 `lface_from_face_name_no_resolve'.
14137 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14138 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14139 (get_lface_attributes): New definition that layers face-remapping on
14140 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14141 (lookup_basic_face): New function.
14142 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14143 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14144 `get_lface_attributes'.
14145 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14146 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14147 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14148
14149 * xdisp.c (init_iterator): Pass base_face_id through
14150 `lookup_basic_face' when we actually use it as a face-id.
14151 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14152 DEFAULT_FACE_ID.
14153
14154 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14155 lookup the initial face-id.
14156
14157 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14158
141592008-06-01 Juanma Barranquero <lekktu@gmail.com>
14160
14161 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14162 (Fremove_text_properties): Fix typos in docstrings.
14163
141642008-05-31 Kenichi Handa <handa@m17n.org>
14165
14166 * font.c (font_list_entities): Fix the car part of data to be
14167 stored in the cache.
14168
14169 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14170
141712008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14172
14173 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14174 Add a `test' argument so another predicate than `equal' can be used.
14175 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14176 (map_char_table): Remove unused vars `c' and `i'.
14177 * lisp.h (Foptimize_char_table): Adjust declaration.
14178 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14179
141802008-05-30 Kenichi Handa <handa@m17n.org>
14181
14182 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14183 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14184 defined.
14185
141862008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14187
14188 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14189 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14190 frame-local settings for the same variable.
14191
141922008-05-30 Kenichi Handa <handa@m17n.org>
14193
14194 * fontset.c (Ffont_info): Move to font.c.
14195 (syms_of_fontset): Delete defsubr of Sfont_info.
14196
14197 * font.c (font_style_to_value, font_score): Delete casting of the
14198 args to xstcasecmp.
14199 (register_font_driver): Increment num_font_drivers only when
14200 registering the driver globally.
14201 (Ffont_info): Move from fontset.c. Handle a font object too.
14202 (syms_of_font): Defsubr Sfont_info.
14203
142042008-05-29 Kenichi Handa <handa@m17n.org>
14205
14206 * coding.h (enum define_coding_utf8_arg_index): New enum.
14207 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14208 coding_attr_utf_bom.
14209 (enum utf_bom_type): Rename from utf_16_bom_type.
14210 (struct utf_16_spec): Adjust for the above change.
14211 (struct coding_system): Add utf_8_bom in `spec' union.
14212
14213 * coding.c (CODING_UTF_8_BOM): New macro.
14214 (enum coding_category): Delete coding_category_utf_8, add
14215 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14216 coding_category_utf_8_sig.
14217 (CATEGORY_MASK_UTF_8): Delete it.
14218 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14219 (CATEGORY_MASK_UTF_8_SIG): New macros.
14220 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14221 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14222 CATEGORY_MASK_UTF_8_SIG.
14223 (CATEGORY_MASK_UTF_8): New macro.
14224 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14225 (detect_coding_utf_8): Check BOM.
14226 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14227 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14228 (encode_coding_utf_16): Likewise.
14229 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14230 (detect_coding, detect_coding_system): Handle utf-8-auto.
14231 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14232 (syms_of_coding): Fix setting up of Vcoding_category_table.
14233
142342008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14235
14236 * process.c (Faccept_process_output): If `millisec' is non-nil,
14237 `seconds' default to 0.
14238 (wait_reading_process_output): Also return non-nil if we read output
14239 from a non-running process.
14240
142412008-05-29 Jason Rumney <jasonr@gnu.org>
14242
14243 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14244 `raster' specified.
14245 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14246 in the uniscribe backend, but disallow any font that has no
14247 unicode subrange support.
14248
142492008-05-29 Juanma Barranquero <lekktu@gmail.com>
14250
14251 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14252 Fix typos in docstrings.
14253
142542008-05-29 Kenichi Handa <handa@m17n.org>
14255
14256 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14257 (Fx_family_fonts): Set frame correctly.
14258
142592008-05-28 Jason Rumney <jasonr@gnu.org>
14260
14261 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14262
142632008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14264
14265 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14266 calling build_annotations.
14267
142682008-05-28 Juanma Barranquero <lekktu@gmail.com>
14269
14270 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14271 (Fencode_coding_string):
14272 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14273 <latin-extra-code-table>: Fix typos in docstrings.
14274 (syms_of_coding) <coding-system-alist>: Doc fix.
14275 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14276
142772008-05-28 Kenichi Handa <handa@m17n.org>
14278
14279 * fontset.c (Ffont_info): Don't call font_close_object.
14280
14281 * font.c (font_parse_family_registry): Use Ffont_put to validate
14282 foundry and family.
14283 (font_delete_unmatched): Don't check spacing.
14284 (font_list_entities): Add spacing to the spec to list fonts.
14285
14286 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14287 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14288
14289 * coding.c (encode_coding_raw_text): Fix previous change.
14290 (encode_coding_object): When the dst_object is a buffer and is
14291 different from src_object, move gap to PT.
14292
142932008-05-27 Chong Yidong <cyd@stupidchicken.com>
14294
14295 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14296
142972008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14298
14299 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14300 all branches. Compute it differently.
14301
14302 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14303
143042008-05-27 Juanma Barranquero <lekktu@gmail.com>
14305
14306 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14307 into "else if () ... else ...".
14308
143092008-05-27 Jason Rumney <jasonr@gnu.org>
14310
14311 * w32font.c (w32font_open_internal): Determine if glyph indices
14312 are likely to work here.
14313
143142008-05-27 Chong Yidong <cyd@stupidchicken.com>
14315
14316 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14317 draw overlap glyphs with appropriate highlighting.
14318
143192008-05-27 Kenichi Handa <handa@m17n.org>
14320
14321 * xfont.c (xfont_open): Fix calculation of font->average_width.
14322
143232008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14324
14325 * casefiddle.c (casify_object): Try to guess better whether the
14326 argument is a byte or a char.
14327
143282008-05-26 Andreas Schwab <schwab@suse.de>
14329
14330 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14331 Always send multiples of format size.
14332
14333 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14334
143352008-05-26 Jason Rumney <jasonr@gnu.org>
14336
14337 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14338 (compute_metrics): Don't set failure if we just cleared the cache.
14339 (w32_weight_table): Remove unused variable.
14340 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14341 backwards compatibility.
14342
143432008-05-25 Kenichi Handa <handa@m17n.org>
14344
14345 * w32term.c (x_draw_glyph_string):
14346 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14347
14348 * xfaces.c: Delete unused function prototypes.
14349 (xstrlwr, font_frame): Delete them.
14350 (clear_face_cache): Delete unused variable.
14351
14352 * xftfont.c (xftfont_open): Delete unused variable.
14353 If underline_thickness is not 1, adjust underline_position.
14354
14355 * ftxfont.c (ftxfont_open): Delete unused variable.
14356
14357 * fontset.c (face_for_char): Optimize for the case of no charset
14358 property.
14359
14360 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14361 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14362 (otf_open, font_otf_capability, generate_otf_features)
14363 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14364 Comment out by surrounding "#if 0" and "#endif" for the moment.
14365 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14366 (syms_of_font): Codes for accessing above commented out.
14367
143682008-05-24 Eli Zaretskii <eliz@gnu.org>
14369
14370 * w32proc.c: Include dispextern.h.
14371
14372 * w32.c: Include dispextern.h.
14373
143742008-05-23 Juanma Barranquero <lekktu@gmail.com>
14375
14376 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14377 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14378 Fix typos in docstrings.
14379
143802008-05-23 Jason Rumney <jasonr@gnu.org>
14381
14382 * xsmfns.c: Remove includes that are already included by config.h.
14383
143842008-05-23 Kenichi Handa <handa@m17n.org>
14385
14386 * charset.c (Qemacs, charset_emacs): New variables.
14387 (char_charset): Fix for non-Unicode characters.
14388 (syms_of_charset): Define charset_emacs.
14389
14390 * w32term.c (x_draw_glyph_string): Be sure to update
14391 s->underline_thickness and s->underline_position. Be sure to draw
14392 underline within the current line area.
14393
14394 * xterm.c (x_draw_glyph_string): Be sure to update
14395 s->underline_thickness and s->underline_position. Be sure to draw
14396 underline within the current line area.
14397
14398 * fontset.c: Delete unused variables and add casting for char *
14399 throughout the file.
14400 (fontset_font): Try the fallback fonts of the current fontset
14401 before consulting the default fontset.
14402
14403 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14404
14405 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14406
144072008-05-22 Jason Rumney <jasonr@gnu.org>
14408
14409 * font.c: Don't include strings.h.
14410
14411 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14412
14413 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14414 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14415 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14416 to call xstrcasecmp.
14417
14418 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14419
14420 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14421
14422 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14423
14424 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14425
144262008-05-22 Kenichi Handa <handa@m17n.org>
14427
14428 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14429
14430 * font.c (font_prop_validate_style): Adjust for the format
14431 change of font_style_table.
14432
14433 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14434 two args.
14435
14436 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14437 two args.
14438
144392008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14440
14441 * minibuf.c (keys_of_minibuf): Delete.
14442 * lisp.h (keys_of_minibuf): Delete.
14443 * emacs.c (main): Don't call keys_of_minibuf.
14444
144452008-05-22 Kenichi Handa <handa@m17n.org>
14446
14447 * ftfont.c (ftfont_resolve_generic_family): Rename from
14448 ftfont_list_generic_family. Return a single family for each
14449 generic family.
14450 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14451 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14452 Call font_add_log.
14453 (ftfont_match): Call font_add_log.
14454
14455 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14456 (FONT_DEBUG): Define it.
14457 (font_add_log): Extern it.
14458 (font_assert): Rename from xassert.
14459
14460 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14461 (xfont_list_family): Call font_add_log.
14462 (xfont_match): Likewise.
14463 (memq_no_quit): Delete.
14464
14465 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14466 call of Ffont_xlfd_name.
14467
14468 * xfaces.c (struct table_entry, slant_table, weight_table)
14469 (swidth_table): Move to font.c.
14470
14471 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14472 xassert are changed to font_assert. Delete many unused variables.
14473 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14474 New variables.
14475 (struct table_entry): Move from xfaces.c and modified.
14476 (weight_table, slant_table, width_table): Move from xfaces.c and
14477 contents adjusted for the change of struct table_entry.
14478 (font_style_to_value, font_style_symbolic): Adjust for the
14479 format change of font_style_table.
14480 (font_parse_family_registry): Don't overwrite existing foundry and
14481 family of font_spec.
14482 (font_score): Fix calculation of diff for sizes.
14483 (font_sort_entites): Call font_add_log.
14484 (font_delete_unmatched): Return a newly created list.
14485 (font_list_entities): Fix previous change. Call font_add_log.
14486 (font_matching_entity, font_open_entity, font_close_entity):
14487 Call font_add_log.
14488 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14489 (Finternal_set_font_style_table): Delete.
14490 (BUILD_STYLE_TABLE): New macro.
14491 (build_style_table): New function.
14492 (Vfont_log, font_log_env_checked): New variables.
14493 (font_add_log): New function.
14494 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14495 Declare Lisp variables "font-weight-table", "font-slant-table",
14496 "font-width-table", and "font-log". Initialize font_style_table.
14497
144982008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14499
14500 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14501
145022008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14503 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14504
14505 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14506 (Vframe_alpha_lower_limit): New variable.
14507 (x_set_alpha): New function.
14508
14509 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14510
14511 * xfns.c (x-create-frame, Qalpha):
14512 Initialize the frame parameter `alpha'.
14513 * xterm.c (OPAQUE, OPACITY): New.
14514 (x_set_frame_alpha): New function.
14515 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14516
14517 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14518 * w32fns.c (w32_frame_parm_handlers): Likewise.
14519
145202008-05-20 Jason Rumney <jasonr@gnu.org>
14521
14522 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14523 truetype fonts to opentype list.
14524
145252008-05-20 Juanma Barranquero <lekktu@gmail.com>
14526
14527 * fontset.c (Ffontset_info): Doc fix.
14528 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14529 <ignore-relative-composition>: Fix typos in docstrings.
14530
14531 * font.c (syms-of-font) <font-encoding-alist>:
14532 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14533 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14534 (Ffont_otf_alternates): Doc fixes.
14535
145362008-05-20 Kenichi Handa <handa@m17n.org>
14537
14538 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14539 font.h through out the file.
14540 (FONT_DRIVERS): Rename from FONTOBJ.
14541 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14542 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14543
14544 * emacs.c (main): Call syms_of_font unconditionally.
14545
14546 * font.h (find_font_encoding): Extern it.
14547
14548 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14549 fontset.c.
194d44e7 14550 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14551 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14552 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14553 only when HAVE_WINDOW_SYSTEM is defined.
14554 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14555 when HAVE_WINDOW_SYSTEM is defined.
14556
14557 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14558 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14559
14560 * xfaces.c: Include font.h unconditionally.
14561 (merge_face_ref, merge_face_vectors)
14562 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14563
145642008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14565
14566 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14567 indirect_variable.
14568 * eval.c (lisp_indirect_variable): New fun.
14569 (Fuser_variable_p): Use it.
14570
145712008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14572
14573 * lisp.h (indirect_variable):
14574 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14575 Use Lisp_Symbol pointers rather than Lisp_Object.
14576 Adjust callers.
14577 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14578 To this end, change calling-convention.
14579
14580 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14581 if some non-hidden buffers are selected by string&pred.
14582
145832008-05-19 Chong Yidong <cyd@stupidchicken.com>
14584
14585 * process.c (wait_reading_process_output): Always check status
14586 when in batch mode.
14587
145882008-05-19 Kenichi Handa <handa@m17n.org>
14589
14590 * font.c (font_list_entities): Fix handling of cache.
14591 (font_matching_entity): Likewise.
14592
14593 * ftfont.c (cs_iso8859_1): Delete.
14594 (ft_face_cache): New variable.
14595 (struct ftfont_info): New member fc_charset_idx.
14596 (ftfont_build_basic_charsets): Delete.
14597 (fc_charset_table): New variable.
14598 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14599 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14600 Callers changed.
14601 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14602 (ftfont_spec_pattern): New argument fc_charset_idx.
14603 Check registry more rigidly. Change callers.
14604 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14605 change of :font-entity property of the font.
14606
14607 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14608 property of the font.
14609
146102008-05-18 Juanma Barranquero <lekktu@gmail.com>
14611
14612 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14613 (Funencodable_char_position, Fcheck_coding_systems_region)
14614 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14615 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14616 (Ffind_operation_coding_system, Fset_coding_system_priority)
14617 (Fcoding_system_eol_type): Doc fixes.
14618
146192008-05-17 Glenn Morris <rgm@gnu.org>
14620
14621 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14622
146232008-05-16 Eli Zaretskii <eliz@gnu.org>
14624
14625 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14626 and st_gid.
14627
14628 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14629 HAVE_WINDOW_SYSTEM is not defined.
14630
14631 * xfaces.c (merge_face_ref, merge_face_vectors)
14632 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14633 HAVE_WINDOW_SYSTEM is defined.
14634 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14635
146362008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14637
14638 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14639
146402008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14641
14642 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14643
146442008-05-15 Kenichi Handa <handa@m17n.org>
14645
14646 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14647 preference.
14648
146492008-05-15 Glenn Morris <rgm@gnu.org>
14650
14651 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14652
146532008-05-15 Chong Yidong <cyd@stupidchicken.com>
14654
14655 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14656 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14657
14658 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14659
146602008-05-15 Kenichi Handa <handa@m17n.org>
14661
14662 * ftfont.c (ftfont_list): Downcase family name to check generic
14663 families.
14664
14665 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14666 font-spec for QCfont value.
14667
14668 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14669 buffer. Check the return value of it.
14670
146712008-05-14 Jason Rumney <jasonr@gnu.org>
14672
14673 * w32term.c (w32_get_glyph_overhangs): Remove.
14674 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14675
146762008-05-14 Kenichi Handa <handa@m17n.org>
14677
14678 * font.c (font_prop_validate): Make nil a valid value.
14679 (font_clear_cache): Check if the cached vector of entities is nil
14680 or not.
14681
146822008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14683
14684 * emacs.c (main_thread): Conditionalize on
14685 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14686 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14687
14688 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14689 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14690 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14691
146922008-05-14 Kenichi Handa <handa@m17n.org>
14693
14694 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14695 has no corresponding coding system.
14696
146972008-05-14 Jason Rumney <jasonr@gnu.org>
14698
14699 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14700
14701 * w32font.h (w32font_open_internal): Update declaration.
14702
14703 * w32font.c (w32font_open_internal): Change last argument from
14704 w32font_info struct to font object. Fill in font object from
14705 font_entity. Get Outline metrics if possible. Use them to
14706 calculate underline position and thickness. Use xlfd name as name
14707 property. Don't set codepage.
14708 (w32font_open): Pass font_object to w32font_open_internal. Don't
14709 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14710 (w32font_draw): Use s->font.
14711 (clear_cached_metrics): Don't clear non-existent blocks.
14712
14713 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14714 font was not found.
14715 (x_draw_glyph_string): Use underline position and thickness from font.
14716
14717 * w32uniscribe.c (uniscribe_open): Pass font_object to
14718 w32font_open_internal.
14719
147202008-05-14 Kenichi Handa <handa@m17n.org>
14721
14722 These changes are to delete all legacy font-handling codes, and
14723 make Emacs use only font-backends.
14724
14725 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14726 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14727
14728 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14729
14730 * charset.h (Vcharset_non_preferred_head)
14731 (Vcurrent_iso639_language): Extern them.
14732
14733 * charset.c (Vcharset_non_preferred_head): New variable.
14734 (Vcurrent_iso639_language): New variable.
14735 (syms_of_charset): Declare it as a Lisp variable.
14736 (char_charset): Don't check non preferred charsets. As a last
14737 resort, return charset_unicode.
14738 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14739
14740 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14741 conditionals. Don't check enable_font_backend. Delete all codes
14742 used only when USE_FONT_BACKEND is not defined.
14743
14744 * dispextern.h (struct glyph_string): Change type of `font' to
14745 `struct font *'.
14746 (struct glyph_string): New member underline_position and
14747 underline_thickness.
14748 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14749 (struct face): Change type of `font' to `struct font *'. Remove
14750 members `font_name', `font_info_id'.
14751 (per_char_metric, encode_char): Delete externs.
14752 (calc_pixel_width_or_height): Adjust the prototype.
14753
14754 * emacs.c (enable_font_backend): Delete extern.
14755 (main): Don't set enable_font_backend. Don't check the command
14756 line argument "-disable-font-backend".
14757
14758 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14759 (enum font_property_index): New members FONT_DPI_INDEX,
14760 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14761 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14762 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14763 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14764 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14765 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14766 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14767 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14768 (struct font_spec, struct font_entity): New structs.
14769 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14770 (struct font): Many members from old "struct font_info" moved to
14771 here. Members font and entity deleted.
14772 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14773 the new font-related objects.
14774 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14775 (CHECK_FONT_GET_OBJECT): Likewise.
14776 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14777 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14778 (struct font_driver): New members case_sensitive anc check. Type
14779 of the member list and open changed.
14780 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14781 (font_symbolic_width, font_find_object, font_get_spec)
14782 (font_set_lface_from_name): Delete extern.
14783 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14784
14785 * font.c: Include <strings.h>.
14786 (enable_font_backend): Delete it.
14787 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14788 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14789 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14790 (null_string): Delete it.
14791 (null_vector): Make it static.
14792 (font_family_alist): Delete it.
14793 (Qnormal): Extern it.
14794 (QCextra, QClanguage): Delete it.
14795 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14796 (font_make_spec, font_make_entity, font_make_object)
14797 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14798 the string. Callers changed.
14799 (font_pixel_size): Adjusted for the format change of font-related
14800 objects.
14801 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14802 (font_style_to_value, font_style_symbolic): New function.
14803 (build_font_family_alist): Delete it.
14804 (font_registry_charsets): Use Fassoc_string instead of
14805 assq_no_quit.
14806 (font_prop_validate_symbol): Don't return null_string.
14807 (font_prop_validate_style): Adjusted for the change of
14808 style-related values in a font vector.
14809 (font_property_table): Delete entries for QClanguage and
14810 QCantialias, add entries for QCavgwidth.
14811 (get_font_prop_index): Delete the 2nd argument FROM.
14812 (font_prop_validate): Arguments changed.
14813 (font_put_extra): Adjusted for the change of font-related objects.
14814 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14815 (font_parse_fcname, font_unparse_fcname)
14816 (font_prepare_composition): Likewise.
14817 (font_parse_family_registry): Renamed from font_merge_old_spec.
14818 (otf_open): Delete the 1st arg entity.
14819 (font_otf_capability): Adjusted for the above change.
14820 (font_score): New arg alternate_families. Adjusted for the change
14821 of font-related objects.
14822 (font_sort_entites): New arg best_only.
14823 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14824 Delete them.
14825 (font_match_p): Check alternate families.
14826 (font_find_object): Delete it.
14827 (font_check_object): New function.
14828 (font_clear_cache): Adjusted for the change of font-related objects.
14829 (font_delete_unmatched): New arg.
14830 (font_list_entities): Call font_driver->list with a spec that
14831 doesn't specify style-related properties.
14832 (font_matching_entity): Arguments changed. Caller changed.
14833 (font_open_entity): Adjusted for the change of font-related objects.
14834 (font_close_object, font_has_char, font_encode_char)
14835 (font_get_name, font_get_spec): Likewise.
14836 (font_spec_from_name, font_clear_prop, font_update_lface):
14837 New functions.
14838 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14839 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14840 (font_at): Adjusted for the change of font-related objects.
14841 (font_range): New function.
14842 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14843 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14844 (Fcopy_font_spec, Fmerge_font_spec): New function.
14845 (Ffont_family_list): Renamed from list-families.
14846 (Finternal_set_font_style_table): Arguments changed.
14847 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14848 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14849 change of font-related objects.
14850 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14851
14852 * fontset.h (struct font_info): Delete it. Most members go to
14853 struct font.
14854 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14855 (enum FONT_SPEC_INDEX): Delete it.
14856 (font_info, list_fonts_func, load_font_func, query_font_func)
14857 (set_frame_fontset_func, find_ccl_program_func)
14858 (get_font_repertory_func, new_fontset_from_font_name): Delete
14859 externs.
14860 (fontset_from_font_name): Extern it.
14861 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14862 (FONT_INFO_FROM_FACE): Deleted.
14863 (face_for_font): Adjust prototype.
14864
14865 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14866 conditionals. Don't check enable_font_backend. Delete all codes
14867 used only when USE_FONT_BACKEND is not defined.
14868 (get_font_info_func, list_font_func, load_font_func)
14869 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14870 (get_font_repertory_func): Delete them.
14871 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14872 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14873 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14874 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14875 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14876 (fontset_compare_rfontdef): New function.
14877 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14878 rfont-defs by qsort. Adjusted for the change of font-group vector.
14879 (load_font_get_repertory): Deleted.
14880 (fontset_find_font): Use new macros to ref/set elements of
14881 font-def and rfont-def.
14882 (fontset_font): Fix the timing of remembering that no font for C.
14883 (free_face_fontset): Do nothing if the face has no fontset.
14884 (face_suitable_for_char_p): Use new macros to ref/set elements of
14885 rfont-def.
14886 (face_for_char): Likewise. Call face_for_char with font_object.
14887 (fs_load_font): Delete. Delete #pragma surrounding it.
14888 (fs_query_fontset): Use strcasecmp instead of strcmp.
14889 (generate_ascii_font_name): Adjusted for the format change of
14890 font-spec.
14891 (Fset_fontset_font): Likewise. Use new macros to set elements of
14892 font-def.
14893 (Fnew_fontset): Use font_unparse_xlfd to generate
14894 FONTSET_ASCII (fontset).
14895 (new_fontset_from_font_name): Deleted.
14896 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14897 a fontset is already created for the font. FIx updating of
14898 Vfontset_alias_alist.
14899 (fontset_ascii_font): Deleted.
14900 (Ffont_info): Adjusted for the format change of font-spec.
14901 (Finternal_char_font): Likewise.
14902 (Ffontset_info): Likewise.
14903 (syms_of_fontset): Don't check load_font_func.
14904
14905 * fns.c (internal_equal): Handle PREV_FONT.
14906
14907 * frame.h: Delete USE_FONT_BACKEND conditional.
14908
14909 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14910 conditionals. Don't check enable_font_backend. Delete all codes
14911 used only when USE_FONT_BACKEND is not defined.
14912 (x_set_font): Call x_new_font, not x_new_fontset2.
14913 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14914 already set for the frame.
14915
14916 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14917 a font-entity by font_make_entity. Use font_intern_prop instead
14918 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14919 font property. If a font is scalable, set avgwidth property to 0.
14920 Set font-entity property by font_put_extra.
14921 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14922 (ffont_driver): Adjusted for the change of struct font_driver.
14923 (ftfont_spec_pattern): New function.
14924 (ftfont_list): Return a list, not vector.
14925 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14926 (ftfont_list_family): Don't downcase names.
14927 (ftfont_free_entity): Deleted.
14928 (ftfont_open): Return a font-object. Adjusted for the change of
14929 struct font. Get underline_thickness and underline_position from
14930 font property. Don't update dpyinfo->smallest_font_height and
14931 dpyinfo->smallest_char_width.
14932 (ftfont_close): Don't free `struct font'.
14933 (ftfont_has_char): Adjusted for the format change of font-entity.
14934 (ftfont_encode_char, ftfont_text_extents): Likewise.
14935
14936 * ftxfont.c (ftxfont_list): Return a list, not vector.
14937 (ftxfont_open): Return a font-object. Adjusted for the change of
14938 struct font. Get underline_thickness and underline_position from
14939 font property. Don't update dpyinfo->smallest_font_height and
14940 dpyinfo->smallest_char_width.
14941 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14942 (ftxfont_draw): Adjusted for the change of struct font.
14943
14944 * image.c (image_ascent): Don't include "charset.h". Include
14945 "character.h" and "font.h".
14946
14947 * lisp.h (enum pvec_type): New member PREV_FONT.
14948 (Fassoc_string): EXFUN it.
14949
14950 * print.c: Include font.h.
14951 (print_object): Handle font-related objects.
14952
14953 * xdisp.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.
14956 (handle_auto_composed_prop): Do nothing if it->f is not on a
14957 window system. Check how many following characters can be
14958 displayed by the same font.
14959 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14960 'struct font *'.
14961 (get_char_face_and_encoding): Assign the whole encoding task to
14962 the `encode-char' method of a font driver.
14963 (fill_composite_glyph_string): Adjusted for the change of `struct
14964 face' and `struct glyph_string'.
14965 (fill_glyph_string): Likewise.
14966 (get_per_char_metric): Arguments changed.
14967 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14968 and `struct glyph_string'.
14969 (produce_stretch_glyph, calc_line_height_property)
14970 (x_produce_glyphs): Likewise.
14971
14972 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14973 conditionals. Don't check enable_font_backend. Delete all codes
14974 used only when USE_FONT_BACKEND is not defined. Use
14975 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14976 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14977 (Qp): Extern them.
14978 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14979 Deleted.
14980 (struct font_name): Deleted.
14981 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14982 (compare_fonts_by_sort_order): New function.
14983 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14984 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14985 Deleted.
14986 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14987 compare_fonts_by_sort_order.
14988 (Fx_font_family_list): Call Ffont_family_list.
14989 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14990 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14991 (face_symbolic_slant, face_symbolic_swidth)
14992 (split_font_name_into_vector, build_font_name_from_vector)
14993 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14994 (font_rescale_ratio, split_font_name, build_font_name)
14995 (free_font_names, sort_fonts, x_face_list_fonts)
14996 (face_font_available_p, sorted_font_list, cmp_font_names)
14997 (font_list_1, concat_font_list, font_list, remove_duplicates):
14998 Deleted.
14999 (Fx_list_fonts): Use Ffont_list.
15000 (LFACE_AVGWIDTH): Deleted.
15001 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15002 by FONTP.
15003 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15004 (set_lface_from_font_name): Delete it.
15005 (set_lface_from_font): Renamed from
15006 set_lface_from_font_and_fontset. Caller changed. Don't set
15007 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15008 for face.
15009 (merge_face_vectors): Copy font-spec if necessary.
15010 Clear properties of the font-spec if necessary.
15011 (merge_face_ref): Clear properties of the font-spec if necessary.
15012 (Finternal_set_lisp_face_attribute): Likewise.
15013 (set_font_frame_param): Use font_load_for_lface to load a
15014 font-object, and call Fmodify_frame_parameters with it.
15015 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15016 font name by Ffont_xlfd_name.
15017 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15018 QCslant, and QCwidth.
15019 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15020 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15021 Compare fonts by EQ.
15022 (lookup_non_ascii_face): Deleted.
15023 (face_for_font): The 2nd argument changed.
15024 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15025 Check atomic font properties by case insensitive.
15026 (realize_non_ascii_face): Set face->overstrike correctly.
15027 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15028 (dump_realized_face): Get font name from
15029 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15030
15031 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15032 conditionals. Don't check enable_font_backend. Delete all codes
15033 used only when USE_FONT_BACKEND is not defined.
15034 (xic_create_xfontset): Original code deleted and renamed from
15035 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15036 (x_make_gc): Don't set GCFont in GCs.
15037 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15038 opened by "fixed".
15039 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15040 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15041 get_font_repertory_func.
15042
15043 * xfont.c: Include <stdlib.h> and "ccl.h".
15044 (struct xfont_info): New structure.
15045 (xfont_query_font): Deleted.
15046 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15047 moved from xterm.c.
15048 (xfont_driver): Adjusted for the change of struct font_driver.
15049 (compare_font_names): New function.
15050 (xfont_list_pattern): Sort font names case insensitively. Make
15051 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15052 (xfont_list): Return a list, not vector.
15053 (xfont_match): If the font doesn't have QCname property, generate
15054 a name from the other font properties.
15055 (xfont_open): Return a font-object. Adjusted for the change of
15056 struct font. Get underline_thickness and underline_position from
15057 font property. Don't update dpyinfo->smallest_font_height and
15058 dpyinfo->smallest_char_width.
15059 (xfont_close): Don't free struct font.
15060 (xfont_prepare_face): Adjusted for the change of struct font.
15061 (xfont_done_face): Deleted.
15062 (xfont_has_char): Adjusted for the change of struct font.
15063 (xfont_encode_char, xfont_draw): Likewise.
15064 (xfont_check): New function.
15065
15066 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15067 callback function.
15068 (xftfont_match): Adjusted for the format change of font-entity.
15069 (xftfont_open): Adjusted for the format change of font-entity and
15070 font-object. Adjusted for the change of struct font. Return a
15071 font-object. Don't update dpyinfo->smallest_font_height and
15072 dpyinfo->smallest_char_width.
15073 (xftfont_close): Block input while calling XftFontClose.
15074 (xftfont_prepare_face): Don't block input while calling
15075 xftfont_get_colors. Adjusted for the change of struct font.
15076 (xftfont_shape): Return value of error case fixed.
15077
15078 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15079
15080 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15081 conditionals.
15082 (FONT_WIDTH): Return (f)->max_width.
15083 (struct x_display_info): Delete member `font'.
15084 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15085 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15086 (struct x_output): Change type of `font' to `struct font *'.
15087
15088 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15089 conditionals. Don't check enable_font_backend. Delete all codes
15090 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15091 (x_per_char_metric, x_encode_char): Deleted.
15092 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15093 (x_compute_glyph_string_overhangs): Adjusted for the change of
15094 `struct face'.
15095 (x_draw_glyph_string_foreground)
15096 (x_draw_composite_glyph_string_foreground): Likewise.
15097 (x_draw_glyph_string): Likewise. Use font->underline_position and
15098 font->underline_thickness.
15099 (x_new_font): Renamed from x_new_fontset2.
15100 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15101 (x_check_font): Call `check' method of a font driver.
15102 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15103 (x_query_font, x_get_font_repertory): Deleted.
15104 (x_find_ccl_program): Renamed and moved to xfont.c.
15105 (x_redisplay_interface): Adjusted for the change of `struct
15106 redisplay_interface'.
15107
15108 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15109 conditionals. Don't check enable_font_backend. Delete all codes
15110 used only when USE_FONT_BACKEND is not defined. Surround non-used
15111 code by "#ifdef OLD_FONT" and "endif".
15112 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15113
15114 * w32font.h (struct w32font_info): New member.
15115 (FONT_COMPAT): New macro.
15116 (w32font_open_internal): Prototype adjusted.
15117
15118 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15119 OLD_FONT" and "endif".
15120
15121 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15122 conditionals. Don't check enable_font_backend. Delete all codes
15123 used only when USE_FONT_BACKEND is not defined.
15124 (w32font_open): Return a font-object. Make a font-object by
15125 font_make_object. Adjusted for the change of struct w32font_info.
15126 (w32font_close): Don't free struct font. Adjusted for the change
15127 of struct w32font_info.
15128 (w32font_encode_char, w32font_text_extents, w32font_draw):
15129 Adjusted for the change of struct w32font_info.
15130 (w32font_draw): Likewise.
15131 (w32font_list_internal): Return a list, not vector.
15132 (w32font_open_internal): Change the 4th arg to font-object.
15133 Adjusted for the change of struct w32font_info and font-object format.
15134 (add_font_name_to_list): Don't downcase names.
15135 (w32_enumfont_pattern_entity): Make a font-entity by
15136 font_make_entity. Adjusted for the format change of font-entity.
15137 Use FONT_SET_STYLE to set a style-related font property. If a
15138 font is scalable, set avgwidth property to 0. Set font-entity
15139 property by font_put_extra.
15140 (font_matches_spec): Adjusted for the format change of font-entity.
15141 (w32_weight_table, w32_decode_weight): New variables.
15142 (w32_encode_weight): New function.
15143 (fill_in_logfont): Adjusted for the format change of font-spec.
15144 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15145 weight value.
15146 (w32font_driver): Adjusted for the change of struct font_driver.
15147
15148 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15149 conditionals. Don't check enable_font_backend. Surround non-used
15150 code by "#ifdef OLD_FONT" and "endif".
15151 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15152 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15153
15154 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15155 conditionals. Don't check enable_font_backend. Delete all codes
15156 used only when USE_FONT_BACKEND is not defined. Surround non-used
15157 code by "#ifdef OLD_FONT" and "endif".
15158
15159 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15160 (uniscribe_open): Return value changed to font-object.
15161 Adjusted for the format change of font-object.
15162 (uniscribe_otf_capability): Adjusted for the change of struct font.
15163 (add_opentype_font_name_to_list): Don't downcase names.
15164 (uniscribe_font_driver): Adjusted for the change of struct
15165 font_driver.
15166
151672008-05-13 Chong Yidong <cyd@stupidchicken.com>
15168
15169 * dispnew.c (update_frame_1): Check if tty output is still valid
15170 before flushing it.
15171
151722008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15173
15174 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15175 to Gtk+ menus.
15176
151772008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15178
15179 * dired.c (file_name_completion): Tweak the code so as to always do it
15180 in a single pass. Tighten the scope of some variables.
15181
15182 * dired.c (Qdefault_directory): New var.
15183 (file_name_completion): Use it instead of Fexpand_file_name.
15184 (syms_of_dired): Initialize it.
15185
151862008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15187
15188 * fileio.c (double_dollars): Remove dead code.
15189
151902008-05-10 Eli Zaretskii <eliz@gnu.org>
15191
15192 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15193 Mention w32-get-true-file-attributes in doc string.
15194
15195 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15196
151972008-05-09 Glenn Morris <rgm@gnu.org>
15198
15199 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15200 2008-04-23.
15201
152022008-05-09 Eli Zaretskii <eliz@gnu.org>
15203
15204 Support for reporting owner and group of each file on MS-Windows:
15205 * dired.c (stat_uname, stat_gname): New functions, with special
15206 implementation for w32.
15207 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15208
15209 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15210 (dflt_group_name): New static variable.
15211 (dflt_group): Rename from the_group.
15212 (init_user_info): Init dflt_group fields. Get user's group name
15213 from LookupAccountSid.
15214 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15215 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15216 New initialization states.
15217 (globals_of_w32): Initialize them to zero. Initialize the default
15218 group name to "None".
15219 (GetFileSecurity_Name): New global var, the name of the function
15220 to call for GetFileSecurity.
15221 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15222 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15223 (get_file_security, get_security_descriptor_owner)
15224 (get_security_descriptor_group, is_valid_sid)
15225 (get_file_security_desc, get_rid, get_name_and_id)
15226 (get_file_owner_and_group): New functions.
15227 (stat): Use get_file_security_desc and get_file_owner_and_group to
15228 report the owner and primary group of each file. Don't ignore the
15229 high 32 bits of file's size, now that st_size is 64-bit wide.
15230 Fix test when to get true file attributes.
15231 (init_user_info): Use get_rid instead of equivalent inline code.
15232 (fstat): Don't ignore the high 32 bits of file's size.
15233
152342008-05-09 Chong Yidong <cyd@stupidchicken.com>
15235
15236 * image.c (png_load): Use correct bit-depth for setting background
15237 color.
15238
152392008-05-08 Eli Zaretskii <eliz@gnu.org>
15240
15241 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15242 epa-hook.elc.
15243
152442008-05-08 Juanma Barranquero <lekktu@gmail.com>
15245
15246 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15247
152482008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15249
15250 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15251 because the original parameters are in pure storage now.
15252 (mac_window): Remove unused params. Update callers.
15253
152542008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15255
15256 * lread.c (substitute_object_recurse): Use lower-level primitives.
15257 Don't signal errors when traversing sub-char-tables.
15258 Don't loop over all the possible characters when traversing char-tables.
15259
15260 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15261 just like we do in print.c.
15262
152632008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15264
15265 * minibuf.c (Ftry_completion): Remove code left over from when we used
15266 scmp instead of Fcompare_strings.
15267
152682008-05-04 Juanma Barranquero <lekktu@gmail.com>
15269
15270 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15271
152722008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15273
15274 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15275 Create bitmap context in native byte order.
15276
15277 * macterm.c (XDrawLine)
15278 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15279 context in native byte order.
15280
152812008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15282
15283 * config.in: Regenerate.
15284
15285 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15286 New definitions for Image I/O support.
15287 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15288 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15289 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15290 (mac_data_provider_release_data, image_load_image_io)
15291 [USE_MAC_IMAGE_IO]: New functions.
15292 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15293 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15294 (init_image_func_pointer) [MAC_OSX]: Remove function.
15295 (image_load_quartz2d) [MAC_OSX]: Check availability of
15296 CGImageCreateWithPNGDataProvider at compile time.
15297 Use lowercase `false' for boolean constant.
15298 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15299 Use image_load_image_io.
15300 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15301 Don't check MyCGImageCreateWithPNGDataProvider.
15302 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15303 Don't call init_image_func_pointer.
15304
15305 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15306
15307 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15308 Make variable non-static.
15309 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15310 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15311
15312 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15313 (RED_FROM_ULONG): Mask off higher bits.
15314 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15315
15316 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15317 Include AvailabilityMacros.h.
15318 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15319 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15320
153212008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15322
15323 * chartab.c (Fset_char_table_range): If range is t, really set all
15324 chars to that value.
15325
153262008-05-03 Eli Zaretskii <eliz@gnu.org>
15327
15328 * dired.c (Ffile_attributes): Don't allow the device number become
15329 negative.
15330
153312008-05-02 Daiki Ueno <ueno@unixuser.org>
15332
15333 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15334
153352008-05-02 Juri Linkov <juri@jurta.org>
15336
15337 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15338 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15339 DEFAULT argument as a list of default values in docstrings.
15340
153412008-05-01 Chong Yidong <cyd@stupidchicken.com>
15342
15343 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15344
153452008-05-01 Martin Rudalics <rudalics@gmx.at>
15346
15347 * dispnew.c (change_frame_size_1): Preserve small windows when
15348 shrinking frames by calling set_window_height|width with third
15349 arg 2.
15350
15351 * window.h (struct window): Replace field too_small_ok by field
15352 resize_proportionally.
15353
15354 * window.c (make_window): Initialize resize_proportionally.
15355 (enlarge_window): Temporarily set resize_proportionally to make
15356 sure that shrink_windows does scale the window proportionally.
15357 (shrink_windows): When window has resize_proportionally set try
15358 to shrink it proportionally by stealing from other windows.
15359 (struct saved_window, Fset_window_configuration)
15360 (compare_window_configurations): Handle resize_proportionally.
15361 (WINDOW_TOTAL_SIZE): New macro.
15362 (window_min_size, shrink_windows, size_window): Use it.
15363 (check_min_window_sizes): Remove. Invalid values of
15364 window-min-height|width are handled by window_min_size_2 now.
15365 (size_window, Fsplit_window, enlarge_window)
15366 (adjust_window_trailing_edge, grow_mini_window): Don't call
15367 check_min_window_sizes.
15368 (window_min_size_2, window_min_size_1, window_min_size):
15369 New argument safe_p for retrieving "safe" minimum sizes.
15370 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15371 (adjust_window_trailing_edge, grow_mini_window):
15372 Adjust arguments of window_min_size... functions.
15373 (shrink_windows): Argument min_size removed. New argument
15374 safe_p allows shrinking windows to their safe minimum sizes.
15375 Calculate minimum size and decide whether a window shall be
15376 deleted for each window individually.
15377 (size_window): When nodelete_p equals 2, tell shrink_windows to
15378 delete windows only if their new minimum size is no more safe.
15379 (shrink_window_lowest_first): Call window_min_size_1 to make
15380 sure to preserve modeline of bottom-most window when resizing
15381 the minibuffer.
15382 (Fset_window_configuration, Fcurrent_window_configuration)
15383 (compare_window_configurations): Do not handle
15384 window-min-height|width any more.
15385 (syms_of_window): Clarify window-min-height|width doc-strings.
15386
153872008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15388
15389 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15390 some more. Copy some of the code from Ftry_completions.
15391 Remove special case code that dates back to initial revision when the
15392 slash was only added when necessary and that can't trigger nowadays.
15393
153942008-04-27 Kenichi Handa <handa@m17n.org>
15395
15396 * font.c (font_prop_validate): Signal `error' instead of `font'.
15397
153982008-04-29 Jason Rumney <jasonr@gnu.org>
15399
15400 * w32fns.c (Fw32_battery_status): New defun.
15401 (syms_of_w32fns): Defsubr it.
15402
154032008-04-28 Andreas Schwab <schwab@suse.de>
15404
15405 * dired.c (file_name_completion): Fix another mixing of encoded
15406 and decoded names.
15407
154082008-04-28 Juanma Barranquero <lekktu@gmail.com>
15409
15410 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15411
154122008-04-27 Juanma Barranquero <lekktu@gmail.com>
15413
15414 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15415
154162008-04-27 Andreas Schwab <schwab@suse.de>
15417
15418 * dired.c (file_name_completion): Fix inappropriate mixing of
15419 encoded and decoded names.
15420
15421 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15422
15423 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15424
154252008-04-26 Eli Zaretskii <eliz@gnu.org>
15426
15427 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15428 2008-03-31, it's not needed anymore with `struct stat' definition
15429 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15430 for the same reasons.
15431
154322008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15433
15434 * m/sparc.h: Additional redefinitions for GNU/Linux.
15435
154362008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15437
15438 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15439 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15440 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15441 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15442 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15443 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15444 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15445 Likewise.
15446
15447 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15448 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15449 (mac_ax_number_of_characters): Add externs.
15450 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15451 [USE_MAC_TSM]: Likewise.
15452 (mac_handle_text_input_event) [MAC_OSX]:
15453 Handle kEventTextInputOffsetToPos for no active input area case.
15454 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15455 (mac_handle_document_access_event)
15456 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15457 (install_application_handler) [MAC_OSX]: Register handlers for
15458 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15459 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15460 Register mac_handle_document_access_event.
15461
15462 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15463 Make functions non-static.
15464
154652008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15466
15467 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15468 (read_file_name_completion_ignore_case, insert_default_directory)
15469 (Qdefault_directory): Move to minibuffer.el.
15470 (Fread_file_name): Call the new `read-file-name' instead.
15471
154722008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15473
15474 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15475 Make function non-static.
15476 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15477 Remove function.
15478 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15479 Move to mactoolbox.c.
15480 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15481
15482 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15483 (mac_rect_make): New macro.
15484
15485 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15486 instead of float.
15487 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15488 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15489 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15490 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15491 CGRectMake.
15492 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15493 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15494 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15495 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15496 instead of WindowRef in argument type.
15497 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15498 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15499 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15500 instead of DISPLAY. All uses changed.
15501 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15502 (x_calc_absolute_position): Simplify so as not to use
15503 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15504
15505 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15506 instead of WindowRef in argument type.
15507 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15508 [TARGET_API_MAC_CARBON]: Remove externs.
15509 (create_apple_event, mac_event_parameters_to_lisp)
15510 [TARGET_API_MAC_CARBON]: Add externs.
15511
15512 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15513 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15514 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15515 is clicked.
15516 (x_activate_menubar): Remove extern for saved_menu_event_location.
15517 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15518 Move from mac.c.
15519
155202008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15521
15522 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15523 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15524
155252008-04-23 Jason Rumney <jasonr@gnu.org>
15526
15527 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15528 attributes only for local files.
15529
15530 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15531 default to Qlocal.
15532
155332008-04-22 Juri Linkov <juri@jurta.org>
15534
15535 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15536 read-buffer-to-switch instead of using the letter "B".
15537
155382008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15539
15540 * fileio.c (Qdefault_directory): New variable.
15541 (Fread_file_name): Use it to pass `dir' to the completion functions.
15542
155432008-04-20 Chong Yidong <cyd@stupidchicken.com>
15544
15545 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15546
155472008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15548
15549 * keyboard.c (Vpre_help_message): Remove.
15550 (show_help_echo): Remove default C code.
15551
15552 * dired.c (directory_files_internal, file_name_completion):
15553 Only call ENCODE_FILE if the string is indeed decoded.
15554
155552008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15556
15557 * Makefile.in (TOOLKIT_DEFINES): Remove.
15558 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15559
155602008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15561
15562 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15563 (mactoolbox.o): New target.
15564
15565 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15566 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15567
15568 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15569 Use mac_set_frame_window_background instead of XSetWindowBackground.
15570 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15571 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15572 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15573 instead of SetWindowTitleWithCFString.
15574 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15575 Move function to mactoolbox.c.
15576 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15577 Use mac_set_window_modified instead of SetWindowModified.
15578 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15579 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15580 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15581 FrontNonFloatingWindow. Use mac_activate_window instead of
15582 ActivateWindow. Use mac_active_non_floating_window instead of
15583 ActiveNonFloatingWindow.
15584 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15585 Use mac_show_hourglass and mac_hide_hourglass.
15586 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15587 instead of GetGlobalMouse.
15588 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15589 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15590 Use mac_bring_window_to_front instead of BringToFront.
15591 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15592 mactoolbox.c.
15593 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15594 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15595 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15596 mactoolbox.c.
15597
15598 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15599 (XtPointer): Move typedef from macmenu.c.
15600 (enum button_type): Move enum from macmenu.c.
15601 (widget_value): Move typedef from macmenu.c.
15602 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15603 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15604 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15605 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15606 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15607 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15608 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15609 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15610 (Selection): Move typedef from macselect.c.
15611 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15612 macterm.c.
15613 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15614 (mac_is_window_collapsed, mac_bring_window_to_front)
15615 (mac_send_window_behind, mac_hide_window, mac_show_window)
15616 (mac_collapse_window, mac_front_non_floating_window)
15617 (mac_active_non_floating_window, mac_activate_window)
15618 (mac_move_window_structure, mac_move_window, mac_size_window)
15619 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15620
15621 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15622 (enum mac_menu_kind): Move enum to mactoolbox.c.
15623 (min_menu_id): Move variable to mactoolbox.c.
15624 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15625 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15626 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15627 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15628 [TARGET_API_MAC_CARBON]: Likewise.
15629 (XtPointer): Move typedef to macgui.h.
15630 (enum button_type): Move enum to macgui.h.
15631 (widget_value): Move typedef to macgui.h.
15632 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15633 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15634 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15635 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15636 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15637 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15638 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15639 (popup_activated_flag): Make variable non-static.
15640 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15641 (add_menu_item, fill_menu, dispose_menus):
15642 Move functions to mactoolbox.c.
15643 (restore_show_help_function, menu_target_item_handler)
15644 (install_menu_target_item_handler, mac_handle_dialog_event)
15645 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15646 [TARGET_API_MAC_CARBON]: Likewise.
15647 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15648 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15649 (find_and_call_menu_selection, name_is_separator): Make function
15650 non-static.
15651 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15652 to mactoolbox.c.
15653 (set_frame_menubar): Don't call install_menu_quit_handler.
15654 (menu_item_selection): New variable.
15655 (mac_menu_show): Use create_and_show_popup_menu.
15656 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15657 selection but set variable menu_item_selection. All uses changed.
15658 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15659 Call install_menu_quit_handler. Move to mactoolbox.c.
15660
15661 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15662 (Selection): Move typedef to macgui.h.
15663 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15664 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15665 Make variables non-static.
15666 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15667 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15668 Make functions non-static.
15669 (Vmac_service_selection) [MAC_OSX]: Likewise.
15670 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15671 (mac_valid_selection_target_p, mac_clear_selection)
15672 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15673 (mac_put_selection_value, mac_selection_has_target_p)
15674 (mac_get_selection_value, mac_get_selection_target_list)
15675 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15676 Move functions to mactoolbox.c.
15677 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15678 Likewise.
15679 (copy_scrap_flavor_data, mac_handle_service_event)
15680 (install_service_handler) [MAC_OSX]: Likewise.
15681 (syms_of_macselect) <Vmac_dnd_known_types>:
15682 Use mac_dnd_default_known_types.
15683
15684 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15685 Move to mactoolbox.c.
15686 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15687 (Fx_selection_owner_p): Add EXFUN.
15688 (install_window_handler, remove_window_handler, XSetWindowBackground):
15689 Remove externs.
15690 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15691 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15692 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15693 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15694 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15695 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15696 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15697 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15698 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15699 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15700 (mac_valid_selection_target_p, mac_clear_selection)
15701 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15702 (mac_put_selection_value, mac_selection_has_target_p)
15703 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15704 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15705 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15706 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15707 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15708 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15709 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15710 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15711 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15712
15713 * mactoolbox.c: New file.
15714
157152008-04-18 Jason Rumney <jasonr@gnu.org>
15716
15717 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15718
157192008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15720
15721 * character.c (Fmultibyte_char_to_unibyte):
15722 Return latin1 chars unchanged.
15723
15724 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15725 relocated if it points to `name'.
15726
157272008-04-17 Kenichi Handa <handa@m17n.org>
15728
15729 * data.c (Faset): Allow setting a multibyte character in an
15730 ASCII-only unibyte string.
15731
15732 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15733
157342008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15735
15736 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15737 done in config.h.
15738
157392008-04-16 Juanma Barranquero <lekktu@gmail.com>
15740
15741 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15742 (Fchar_direction): Add usage in the docstring.
15743
157442008-04-15 Chong Yidong <cyd@stupidchicken.com>
15745
15746 * keyboard.c (read_key_sequence): Remove always-true checks.
15747
157482008-04-14 Jason Rumney <jasonr@gnu.org>
15749
15750 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15751 compatibility struct, for better underline positioning.
15752
157532008-04-13 David Hansen <david.hansen@gmx.net>
15754
15755 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15756 string.
15757
157582008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15759
15760 * m/hp800.h (XUINT, XSET): Remove.
15761
157622008-04-12 Juanma Barranquero <lekktu@gmail.com>
15763
15764 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15765 previous change.
15766
157672008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15768
15769 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15770 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15771
157722008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15773
15774 * keymap.h (map_keymap_canonical): Declare.
15775 * xmenu.c (single_keymap_panes): Use it.
15776
157772008-04-11 Glenn Morris <rgm@gnu.org>
15778
15779 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15780 set the target's value to that of the alias.
15781
157822008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15783
15784 * term.c (set_tty_color_mode): Left over typo.
15785
157862008-04-10 Michael Albinus <michael.albinus@gmx.de>
15787
15788 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15789 only after check for file name handler functions. Signal, when
15790 native functionality is not supported.
15791 (syms_of_fileio): Declare it unconditionally.
15792
157932008-04-10 Jason Rumney <jasonr@gnu.org>
15794
15795 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15796 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15797
15798 * w32.c (logon_network_drive): Also logon to remote drives that
15799 are mapped to drive letters.
15800
158012008-04-10 Glenn Morris <rgm@gnu.org>
15802
15803 * xdisp.c (truncate-partial-width-windows): Doc fix.
15804
158052008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15806
15807 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15808 Move functions to minibuffer.el.
15809 (syms_of_fileio): Don't declare them.
15810
158112008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15812
15813 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15814 (syms_of_minibuf): Remove its initialization.
15815
15816 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15817
158182008-04-09 Juanma Barranquero <lekktu@gmail.com>
15819
15820 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15821
158222008-04-09 Jason Rumney <jasonr@gnu.org>
15823
15824 * makefile.w32-in (distclean): Delete makefile too.
15825 (maintainer-clean): New target.
15826
15827 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15828
15829 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15830 for new font backend and composite cases.
15831
158322008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15833
15834 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15835 Most of the code moved to run_timers.
15836 (do_pending_atimers): Call run_timers.
15837 (run_timers): New function.
15838
15839 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15840 run atimers.
15841
15842 * process.c (wait_reading_process_output): The same as above.
15843
158442008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15845
15846 * minibuf.c (last_exact_completion): Remove variable.
15847 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15848 (complete_and_exit_1, complete_and_exit_2)
15849 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15850 (Fdisplay_completion_list, display_completion_list_1)
15851 (Fminibuffer_completion_help, Fself_insert_and_exit)
15852 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15853 minibuffer.el.
15854 (syms_of_minibuf): Remove corresponding initializations.
15855
15856 * keyboard.c (Qdeactivate_mark): New var.
15857 (command_loop_1): Use it to call `deactivate-mark'.
15858 (syms_of_keyboard): Initialize it.
15859
15860 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15861 to another frame.
15862 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15863 Don't call set_tty_color_mode.
15864 (store_frame_param): Reset previous_frame rather than call
15865 set_tty_color_mode.
15866 * term.c (set_tty_color_mode): Rewrite.
15867 * dispextern.h (set_tty_color_mode): New type.
15868 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15869
158702008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15871
15872 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15873 for generic chars, which do not exist any more in emacs-unicode.
15874
158752008-04-08 Michael Albinus <michael.albinus@gmx.de>
15876
15877 * coding.c (detect_coding_emacs_mule)
15878 (Ffind_operation_coding_system): Fix typo.
15879
158802008-04-08 Jason Rumney <jasonr@gnu.org>
15881
15882 * w32uniscribe.c (SNAME): Extract only symbol name.
15883
15884 * w32font.h (struct w32_metric_cache): New struct.
15885 (w32font_info): Use it.
15886 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15887 (CACHE_BLOCKSIZE): New constants.
15888
15889 * w32font.c (Qja, Qko, Qzh): New symbols.
15890 (syms_of_w32font): Initialise them.
15891 (font_matches_spec): Use them to filter by language.
15892 (recompute_cached_metrics): Remove function.
15893 (compute_metrics, clear_cached_metrics): New functions.
15894 (w32font_encode_char): Use them to manage metric cache.
15895 (w32font_text_extents): Cache metrics for all glyphs on demand.
15896 Delay converting glyph indices to WORD until needed.
15897 (w32font_open_internal): Initialize metric cache to empty.
15898 (registry_to_w32_charset): Charset should always be a symbol.
15899 (fill_in_logfont, list_all_matching_fonts): Family should
15900 always be a symbol.
15901
159022008-04-06 Jason Rumney <jasonr@gnu.org>
15903
15904 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15905 Give up if glyph indices not supported. Use uniscribe obtained
15906 ABC widths for individual metrics. Map glyph clusters back to
15907 characters using fClusterStart flag. Return number of glyphs
15908 produced, not chars processed.
15909 (uniscribe_shape): Map char at FROM to current glyph.
15910
159112008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15912
15913 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15914 Use SetMenuItemHierarchicalMenu.
15915
159162008-04-05 Jason Rumney <jasonr@gnu.org>
15917
15918 * image.c (pbm_load): Allow color values up to 65535.
15919 Throw an error if max_color_idx is outside the supported range.
15920 Report an error when image size is invalid.
15921 Read two bytes at a time when raw images have max_color_idx above 255.
15922
aac0c6e3
MR
159232008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15924
15925 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15926 append "CCL: Quitted" when the CCL program is quitted.
15927 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15928
15929 * ccl.h (struct ccl_program): New member quit_silently.
15930
159312008-04-05 Chong Yidong <cyd@stupidchicken.com>
15932
15933 * search.c (compile_pattern_1): Treat non-nil and non-string of
15934 search-spaces-regexp as nil.
15935
15936 * minibuf.c (Fassoc_string): Tweak docstring.
15937
159382008-04-05 Eli Zaretskii <eliz@gnu.org>
15939
15940 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15941 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15942 2008-03-14 to force inode be positive.
15943
15944 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15945 _S_* ones, since we now use our own sys/stat.h.
15946 (stat, fstat): Don't mangle the inode number.
15947 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15948
159492008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15950
15951 * frame.h (struct frame): Give one more bit to `visible' since we use
15952 values larger than 1 to indicate obscured frames on ttys.
15953
15954 * keymap.c (Qkeymap_canonicalize): New var.
15955 (Fmap_keymap_internal): New fun.
15956 (describe_map): Use keymap-canonicalize.
15957
15958 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15959 (Fundo_boundary): Set them.
15960 (syms_of_undo): Initialize them.
15961 (record_point): Use them instead of last_point_position*.
15962 (last_undo_buffer): Change type.
15963
159642008-04-04 Jason Rumney <jasonr@gnu.org>
15965
15966 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15967 (recompute_cached_metrics): Don't set ascent and descent per char.
15968
15969 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15970 (uniscribe_check_otf): Add GC protection before consing.
15971 Rearrange loop for counting features.
15972
159732008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15974
15975 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15976 buffer with byte-size of source buffer.
15977
159782008-04-03 Chong Yidong <cyd@stupidchicken.com>
15979
15980 * callint.c (Fcall_interactively): Handle temporary region even
15981 when shift-select-mode is off.
15982
159832008-04-03 Jason Rumney <jasonr@gnu.org>
15984
15985 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15986
159872008-04-03 Kenichi Handa <handa@m17n.org>
15988
15989 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15990 (CATEGORY_MASK_UTF_16): Likewise.
15991 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15992 binary file.
15993 (detect_coding): Add null-byte detection for a binary file.
15994 (detect_coding_system): Likewise.
15995
159962008-04-03 Jason Rumney <jasonr@gnu.org>
15997
15998 * w32uniscribe.c: New file.
15999
16000 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16001
16002 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16003
16004 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16005 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16006 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16007 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16008 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16009 (Qphonetic): New symbols.
16010 (syms_of_w32font): Initialize them.
16011 (font_supported_scripts): Use them.
16012 (w32font_list_family): List all charsets.
16013 (w32font_text_extents, recompute_cached_metrics): Fix metric
16014 calculations.
16015 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16016 Give opentype fonts their own format.
16017 (font_matches_spec): New arguments backend and logfont.
16018 Handle :otf spec for uniscribe backend.
16019 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16020 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16021
16022 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16023 font backend.
16024 (globals_of_w32fns): Initialize uniscribe font backend.
16025
16026 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16027 dependencies.
16028 (w32uniscribe.$(O)): New file to build.
16029 (FONT_OBJ): Include w32uniscribe.$(O).
16030 (LIBS): Add uniscribe libraries.
16031
16032 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16033
160342008-04-02 Chong Yidong <cyd@stupidchicken.com>
16035
16036 * callint.c (Vshift_select_mode): New var.
16037 (Finteractive): Document new ^ spec.
16038 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16039 is present.
16040
16041 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16042 (command_loop_1): Avoid running the direct display versions of
16043 forward-char and backward-char if shift-selection may occur.
16044 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16045 shift-translation takes place.
16046
16047 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16048 avoid clobbering by define-minor-mode.
16049
16050 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16051 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16052
16053 * syntax.c (Fforward_word): Add ^ interactive spec.
16054
16055 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16056 (Fscroll_right): Add ^ interactive spec.
16057
160582008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16059
16060 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16061
16062 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16063
16064 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16065
160662008-03-31 Juri Linkov <juri@jurta.org>
16067
16068 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16069
160702008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16071
16072 * gtkutil.c (xg_set_geometry): Fix indentation.
16073 (xg_resize_outer_widget): Remove.
16074 (x_wm_size_hint_off): Fix indentation.
16075 (xg_frame_set_char_size): Call flush_and_sync after
16076 gtk_window_resize.
16077 (x_wm_set_size_hint): Pass NULL as geometry window to
16078 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16079 Add menu bar and tool bar height to base height.
16080 (xg_update_frame_menubar, free_frame_menubar)
16081 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16082 (update_frame_tool_bar, free_frame_tool_bar):
16083 Change xg_resize_outer_widget to xg_frame_set_char_size.
16084
160852008-03-30 Michael Albinus <michael.albinus@gmx.de>
16086
16087 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16088 (Fdbus_call_method): New parameter TIMEOUT.
16089 (dbus-send-signal): Optimize UNGCPRO call.
16090
160912008-03-29 Juri Linkov <juri@jurta.org>
16092
16093 * window.c (Fdisplay_buffer): Move call to
16094 Vsplit_window_preferred_function out of conditions that check
16095 if window is eligible for vertical splitting.
16096 When Vsplit_window_preferred_function is non-nil, call it and use
16097 its non-nil return value as window. Otherwise, continue doing
16098 vertical splitting using Fsplit_window with arg horflag=nil.
16099 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16100 default value from `split-window' to nil.
16101
161022008-03-29 Juri Linkov <juri@jurta.org>
16103
16104 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16105 for interactive code letters 'b' and 'B'.
16106
161072008-03-29 Eli Zaretskii <eliz@gnu.org>
16108
16109 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16110 multibyte string.
16111
161122008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16113
16114 * keyboard.c (pending_funcalls): New var.
16115 (timer_check): Run it.
16116 (syms_of_keyboard): Initialize it.
16117 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16118 (Vdelete_terminal_functions): New vars.
16119 (syms_of_terminal): Initialize them.
16120 (Fdelete_terminal): Run delete-terminal-functions.
16121 * xdisp.c (safe_eval): Rewrite.
16122 (safe_call2): New fun.
16123 * frame.c (Qdelete_frame_functions): New var.
16124 (syms_of_frame): Initialize it.
16125 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16126 * lisp.h (safe_call2, pending_funcalls): Declare.
16127
161282008-03-28 Andreas Schwab <schwab@suse.de>
16129
16130 * indent.c (Fmove_to_column): Move declaration before statements.
16131
161322008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16133
16134 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16135 (struct frame): Use bit fields for boolean vars.
16136
16137 * process.c (server_accept_connection): Simplify naming.
16138 (emacs_get_tty_pgrp): Use SDATA.
16139
16140 * coding.c (decode_coding_object): Fix last change.
16141
161422008-03-27 Jason Rumney <jasonr@gnu.org>
16143
16144 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16145
161462008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16147
16148 * charset.c (Fdefine_charset_internal): Change the way of
16149 registering charsets in Vcharset_order_list.
16150 (syms_of_charset): Make the charset `eight-bit' supplementary.
16151
161522008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16153
16154 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16155 operations, to avoid having the difference between pointers
16156 overflow.
16157
161582008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16159
16160 * indent.c (check_display_width): New fun.
16161 (scan_for_column): Use it.
16162
16163 * data.c (syms_of_data): Mark most-positive-fixnum and
16164 most-negative-fixnum as constants.
16165
16166 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16167
16168 * indent.c (scan_for_column): Extract from current_column_1.
16169 Merge with the same code from Fmove_to_column.
16170 (current_column_1, Fmove_to_column): Use it.
16171
161722008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16173
16174 * keymap.c (map_keymap_internal): New fun.
16175 (map_keymap): Use it.
16176 (Fmap_keymap_internal): New fun.
16177 (Fmap_keymap): Remove left-out test from before make_save_value.
16178
16179 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16180
16181 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16182 Use XCAR/XCDR.
16183
16184 * process.h (struct Lisp_Process): Remove filter_multibyte.
16185 * process.c (QCfilter_multibyte): Remove.
16186 (setup_process_coding_systems): Don't use filter_multibyte.
16187 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16188 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16189 (Fset_process_filter_multibyte): Change the coding-system to
16190 approximate the previous behavior.
16191 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16192 coding-system.
16193
16194 * coding.c (decode_coding_object): When not decoding into a buffer,
16195 obey the coding system's preference of (uni|multi)byte.
16196
161972008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16198
16199 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16200 every char is changed and has a different byte-length.
16201 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16202 Fix int -> EMACS_INT.
16203
162042008-03-23 David Hansen <david.hansen@gmx.net>
16205
16206 * dbusbind.c (xd_read_message): Remove extra copying of message
16207 strings. Check for NULL `interface' or `member'.
16208
162092008-03-22 Eli Zaretskii <eliz@gnu.org>
16210
16211 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16212 cFileName a file name that includes `?' characters, use the 8+3
16213 alias in cAlternateFileName instead.
16214
162152008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16216
16217 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16218
162192008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16220
16221 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16222 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16223 work on current_buffer only instead (that was already the case
16224 for some of the code anyway).
16225 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16226 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16227 (SET_PT, SET_PT_BOTH): Adjust.
16228 * intervals.h (set_point, temp_set_point, set_point_both)
16229 (temp_set_point_both): Remove redundant declarations.
16230
162312008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16232
16233 * fileio.c (Finsert_file_contents):
16234 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16235 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16236 when buffer != current_buffer anyway.
16237
162382008-03-20 Andreas Schwab <schwab@suse.de>
16239
16240 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16241 as default.
16242
162432008-03-19 Jason Rumney <jasonr@gnu.org>
16244
16245 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16246 (syms_of_w32fns): Initialize them.
16247 (HOURGLASS_ID): New constant.
16248 (x_window_to_frame): Don't check hourglass_window.
16249 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16250 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16251 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16252 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16253 Only change the cursor if hourglass is not active.
16254 (Fx_create_frame): Initialize frame's current_cursor.
16255 (hourglass_atimer): Remove.
16256 (hourglass_started): New function.
16257 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16258 (show_hourglass): Adapt to w32, changing argument to frame.
16259
16260 * w32term.h (struct w32_output): Remove hourglass_window.
16261 Add current_cursor.
16262
16263 * eval.c (call_debugger, Fsignal):
16264 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16265 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16266 (Fexecute_extended_command, cancel_hourglass_unwind):
16267 * minibuf.c (read_minibuf):
16268 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16269
162702008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16271
16272 * window.c (run_funs): New fun.
16273 (run_window_configuration_change_hook): Use it to run the buffer-local
16274 and the global part of the hook.
16275
16276 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16277 (unwind_format_mode_line): Restore selected window.
16278 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16279
162802008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16281
16282 * editfns.c (Fchar_equal): Check they are valid characters.
16283
16284 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16285
162862008-03-17 Andreas Schwab <schwab@suse.de>
16287
16288 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16289 against a charset.
16290
16291 * lisp.h (Fbuffer_list): Declare.
16292
162932008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16294
aac0c6e3
MR
16295 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16296 handlebox_widget is != 0.
16297
162982008-03-16 Juri Linkov <juri@jurta.org>
16299
16300 * callint.c (Fcall_interactively): For interactive code letters
16301 'b' and 'B' put the buffer list into the list of default "future"
16302 values of the minibuffer.
16303
163042008-03-16 Andreas Schwab <schwab@suse.de>
16305
16306 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16307 modifiers.
16308
16309 * regex.c (re_match_2_internal): Correct matching of a charset
16310 against latin-1 characters.
16311
163122008-03-16 Kenichi Handa <handa@m17n.org>
16313
16314 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16315 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16316 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16317 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16318 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16319 CHAR_STRING_ADVANCE.
16320 (produce_chars): Fix for the case that the source and the
16321 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16322 instead of CHAR_STRING_ADVANCE.
16323 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16324 STRING_CHAR_ADVANCE.
16325
163262008-03-15 Andreas Schwab <schwab@suse.de>
16327
16328 * regex.c (re_match_2_internal): Correct matching of eight bit
16329 characters in unibyte strings.
16330
163312008-03-15 Martin Rudalics <rudalics@gmx.at>
16332
16333 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16334 at end of range when it coincides with the end of the buffer.
16335
163362008-03-14 Eli Zaretskii <eliz@gnu.org>
16337
16338 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16339
16340 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16341
163422008-03-14 Jason Rumney <jasonr@gnu.org>
16343
16344 * editfns.c (initial_tz): New variable.
16345 (syms_of_editfns): Initialize it.
16346 (Fset_time_zone_rule): Set it when first called.
16347 Use it when TZSTRING is nil.
16348
16349 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16350 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16351 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16352 (globals_of_w32fns): Initialize them.
16353 (compute_tip_xy): Use them to position tooltips.
16354
163552008-03-14 Glenn Morris <rgm@gnu.org>
16356
16357 * emacs.c (main): Revert previous change.
16358 (standard_args): Revert -internal-script back to -scriptload,
16359 and remove the long-option form.
16360
163612008-03-13 Glenn Morris <rgm@gnu.org>
16362
16363 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16364 Remove option -enable-font-backend.
16365
163662008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16367
16368 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16369
163702008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16371
16372 * xterm.c (x_connection_closed): For GTK: If this is the last
16373 terminal just exit without closing the display.
16374
163752008-03-11 Jason Rumney <jasonr@gnu.org>
16376
16377 * w32font.c (w32font_full_name): Use floor to round.
16378
f0131492 163792008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16380
16381 * sound.c (alsa_configure): Declare vol at beginning of block.
16382
16383 * fontset.c (Ffontset_info): Remove extra semicolon.
16384
163852008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16386
16387 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16388 size of resulting string.
16389
163902008-03-10 Jason Rumney <jasonr@gnu.org>
16391
16392 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16393
163942008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16395
16396 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16397 Don't pretend as if characters with display property haven't been
16398 consumed for string-replacing-string case.
16399
164002008-03-08 Kim F. Storm <storm@cua.dk>
16401
16402 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16403 (get_next_display_element, next_element_from_string)
16404 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16405
164062008-03-08 Andreas Schwab <schwab@suse.de>
16407
16408 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16409
164102008-03-06 Jason Rumney <jasonr@gnu.org>
16411
16412 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16413 when charset not specified. Only translate ANSI to unicode when
16414 font_type is truetype.
16415 (w32font_coverage_ok): New function.
16416 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16417
164182008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16419
16420 * lread.c (Fread_char): Resolve modifiers.
16421 (Fread_char_exclusive): Likewise.
16422
16423 * character.c (char_resolve_modifier_mask): New function.
16424 (char_string): Use char_resolve_modifier_mask.
16425 (Fchar_resolve_modifiers): New function.
16426 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16427 function.
16428
164292008-03-04 Jason Rumney <jasonr@gnu.org>
16430
16431 * makefile.w32-in: Always include w32font.c in the build.
16432 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16433
164342008-03-04 Andreas Schwab <schwab@suse.de>
16435
16436 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16437 (versionclean): Likewise.
16438
164392008-03-04 Juanma Barranquero <lekktu@gmail.com>
16440
16441 * .cvsignore: Add oo.
16442
164432008-03-03 Andreas Schwab <schwab@suse.de>
16444
16445 * coding.c (decode_coding_object): Inhibit gap shrinking while
16446 decoding in place.
16447
164482008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16449
16450 * w32term.c: Remove unused include "gnu.h".
16451 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16452
16453 * gnu.h: Rename to ...
16454 * emacs-icon.h: ... this.
16455 * xterm.c: Use emacs-icon.h instead of gnu.h.
16456 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16457
164582008-03-03 Juanma Barranquero <lekktu@gmail.com>
16459
16460 * w32font.c: Include math.h.
16461
164622008-03-03 Jason Rumney <jasonr@gnu.org>
16463
16464 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16465 Compute options separately.
16466 (w32font_open_internal): Set glyph_idx before caching metrics.
16467
16468 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16469 Define if system headers don't.
16470 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16471 (w32font_encode_char): Don't declare here.
16472
16473 * w32font.c (Quniscribe, QCformat): New symbols.
16474 (syms_of_w32font): Define them.
16475 (w32font_has_char): Indicate uncertainty.
16476 (w32font_encode_char): Encode as glyph point. Make static.
16477 (recompute_cached_metrics): New function.
16478 (w32font_open_internal): Use it. Set font to use glyph points
16479 initially. Set format based on type of font.
16480 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16481 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16482 on it. Set format based on information available here.
16483 (add_font_entity_to_list): Identify backend based on opentype_only.
16484
164852008-03-02 Andreas Schwab <schwab@suse.de>
16486
16487 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16488
16489 * coding.c (decode_coding_big5, produce_chars):
16490 Fix typos in last change.
16491
164922008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16493
16494 * gnu.h: New icon.
16495
164962008-03-02 Kenichi Handa <handa@m17n.org>
16497
16498 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16499 `dos', don't decode '\r' if that is the last in the source.
16500 (decode_coding_utf_16, decode_coding_emacs_mule)
16501 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16502 (decode_coding_raw_text, decode_coding_charset): Likewise.
16503 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16504
165052008-03-01 Jason Rumney <jasonr@gnu.org>
16506
16507 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16508
165092008-03-01 Kim F. Storm <storm@cua.dk>
16510
16511 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16512
165132008-03-01 Jason Rumney <jasonr@gnu.org>
16514
16515 * w32font.c (w32font_full_name): New function.
16516 (w32font_open_internal): Use it.
16517
165182008-03-01 Kim F. Storm <storm@cua.dk>
16519
16520 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16521
165222008-03-01 Jason Rumney <jasonr@gnu.org>
16523
16524 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16525
165262008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16527
16528 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16529 xg_frame_resized when the event is for the edit widget.
16530
16531 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16532
16533 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16534 set_char_size.
16535 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16536 operations on widgets here. Just set frame size if needed.
16537 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16538 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16539 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16540 the whole frame.
16541 (xg_create_tool_bar): Move attachment of the tool bar to
16542 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16543 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16544
165452008-03-01 Jason Rumney <jasonr@gnu.org>
16546
16547 * w32fns.c (w32_msg_pump): Disable debug code.
16548
165492008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16550
16551 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16552
165532008-02-29 Chong Yidong <cyd@stupidchicken.com>
16554
16555 * xdisp.c (next_overlay_string): Don't set
16556 overlay_strings_at_end_processed_p if we're currently reading from
16557 a display string.
16558
165592008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16560
16561 * xdisp.c (get_overlay_strings_1): Fix typo.
16562
165632008-02-29 Chong Yidong <cyd@stupidchicken.com>
16564
16565 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16566
165672008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16568
16569 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16570
16571 * xdisp.c (display_mode_element): Cancel the previous change.
16572 (decode_mode_spec): Likewise.
16573 (handle_auto_composed_prop): Don't make composition if it->string
16574 is a string.
16575
165762008-02-27 Kim F. Storm <storm@cua.dk>
16577
16578 * lisp.h (GLYPH): Change type from int to struct with separate char
16579 and face_id members.
16580 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16581 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16582 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16583 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16584 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16585 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16586 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16587 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16588 handle new Lisp glyph code encoding, either an integer or a cons.
16589
16590 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16591 (GLYPH_ALIAS): Delete.
16592 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16593 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16594 (GLYPH_FROM_CHAR): Replace macro by ...
16595 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16596
16597 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16598 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16599 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16600 (GLYPH_INVALID_P): New macro.
16601 (spec_glyph_lookup_face): Update prototype.
16602
16603 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16604 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16605 new glyph code encoding.
16606 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16607 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16608
16609 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16610 Adapt to new glyph type and new glyph code encoding.
16611
16612 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16613
16614 * indent.c (current_column, current_column_1, Fmove_to_column)
16615 (compute_motion): Adapt to new glyph code encoding.
16616
16617 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16618
166192008-02-27 Chong Yidong <cyd@stupidchicken.com>
16620
16621 * process.c (wait_reading_process_output): Check for window
16622 changes caused by timers.
16623 Suggested by Johan Bockgård.
16624
166252008-02-27 Glenn Morris <rgm@gnu.org>
16626
16627 * emacs.c (USAGE1): Add `--disable-font-backend'.
16628
166292008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16630
16631 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16632 is made to the buffer.
16633
166342008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16635
16636 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16637 (face_at_string_position):
16638 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16639 (face_at_string_position):
16640 * xdisp.c (display_string, next_overlay_change):
16641 * buffer.h (overlays_at):
16642 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16643 Update callers.
16644
166452008-02-26 Chong Yidong <cyd@stupidchicken.com>
16646
16647 * editfns.c (Fformat): Doc fix.
16648
166492008-02-26 Juanma Barranquero <lekktu@gmail.com>
16650
16651 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16652 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16653 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16654
166552008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16656
16657 * buffer.c (Fbuffer_swap_text): New function.
16658 (syms_of_buffer): Defsubr it.
16659
166602008-02-25 Chong Yidong <cyd@stupidchicken.com>
16661
16662 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16663
166642008-02-25 Jason Rumney <jasonr@gnu.org>
16665
16666 * w32font.c (w32font_draw): Draw one character at a time when padding.
16667
166682008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16669
16670 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16671 Handle a nil arg. Use run_window_configuration_change_hook.
16672 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16673 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16674 Use run_window_configuration_change_hook.
16675
166762008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16677
16678 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16679 1-pixel width.
16680
166812008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16682
16683 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16684 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16685 if the glyph in the font is zero pixel with.
16686
16687 * dispextern.h (struct glyph_string): New member padding_p.
16688
16689 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16690
16691 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16692
16693 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16694
16695 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16696
16697 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16698
166992008-02-25 Jason Rumney <jasonr@gnu.org>
16700
16701 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16702
167032008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16704
16705 Allow fine-grained image-cache flushing.
16706 * dispextern.h (struct image): Add `dependencies' field.
16707 (clear_image_caches): Change arg to Lisp_Object.
16708 * image.c (make_image): Initialize `dependencies' field.
16709 (clear_image_cache): Change arg to allow fine-grained flushing.
16710 Perform the flush even if image-cache-eviction-delay is nil.
16711 (clear_image_caches): Change arg to Lisp_Object.
16712 (Fclear_image_cache): Expand meaning of the argument.
16713 (mark_image): Mark `dependencies' field.
16714 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16715 (lface_hash): Use XHASH rather than XFASTINT.
16716 (face_at_buffer_position): Fix int -> EMACS_INT position.
16717 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16718 (select_frame_for_redisplay): Remove code duplication.
16719 (redisplay_internal): Adapt arg to call to clear_image_caches.
16720
167212008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16722
16723 * s/vms4-0.h:
16724 * s/vms4-2.h:
16725 * s/vms4-4.h:
16726 * s/vms5-5.h: Remove, unused.
16727
16728 * s/irix5-2.h:
16729 * s/irix6-0.h:
16730 * s/riscos5.h:
16731 * s/mach-bsd4-3.h:
16732 * m/mips4.h: Remove files for obsolete systems.
16733
16734 * Makefile.in:
16735 * filelock.c:
16736 * unexmips.c:
16737 * m/hp9000s300.h:
16738 * m/iris4d.h:
16739 * s/aix3-1.h:
16740 * s/hpux.h:
16741 * s/msdos.h:
16742 * s/usg5-0.h:
16743 * s/usg5-2-2.h:
16744 * s/usg5-2.h:
16745 * s/usg5-3.h: Remove references to obsolete variables.
16746
16747 * s/irix5-0.h: Remove, move all the contents ...
16748 * s/irix6-5.h: ... here. Simplify.
16749 * config.in: Regenerate.
16750
167512008-02-24 Jason Rumney <jasonr@gnu.org>
16752
16753 * w32term.c (x_draw_glyph_string_background): Clear the background
16754 manually when cleartype is in use.
16755 (x_draw_glyph_string_foreground): Draw text transparently when
16756 cleartype is in use.
16757
16758 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16759 a font into it unless we have to.
16760
167612008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16762
16763 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16764 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16765
aac0c6e3
MR
167662008-02-18 Jason Rumney <jasonr@gnu.org>
16767
16768 * w32fns.c (Fw32_shell_execute): Encode parameters.
16769
167702008-02-09 Eli Zaretskii <eliz@gnu.org>
16771
16772 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16773
167742008-02-05 Juanma Barranquero <lekktu@gmail.com>
16775
16776 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16777
167782008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16779
16780 * xterm.c (x_set_offset): Don't change the gravity if
16781 CHANGE_GRAVITY is -1.
16782
167832008-02-23 Chong Yidong <cyd@stupidchicken.com>
16784
16785 * fileio.c (auto_save_error_occurred): New var.
16786 (auto_save_error): Set it.
16787 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16788 error occurred.
16789
167902008-02-23 Eli Zaretskii <eliz@gnu.org>
16791
16792 * w32.c (globals_of_w32): Add initializations for
16793 g_b_init_get_sid_sub_authority and
16794 g_b_init_get_sid_sub_authority_count.
16795
167962008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16797
16798 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16799 (font_parse_xlfd): Use them for sanity check.
16800 (Finternal_set_font_style_table): Make sure the table is bijective.
16801
16802 Consolidate the image_cache to the terminal struct.
16803 * termhooks.h (P_): Remove redundant def.
16804 (struct terminal): New field `image_cache'.
16805 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16806 of FRAME_X_IMAGE_CACHE.
16807 * xterm.h (struct x_display_info): Remove image_cache field.
16808 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16809 * w32term.h (struct w32_display_info): Remove image_cache field.
16810 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16811 * macterm.h (struct mac_display_info): Remove image_cache field.
16812 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16813 * xterm.c (x_term_init):
16814 * w32term.c (w32_term_init):
16815 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16816 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16817 Remove declarations.
16818 (clear_image_caches, mark_image_cache): New declarations.
16819 * xfaces.c (clear_face_cache):
16820 * xdisp.c (redisplay_internal): Use clear_image_caches.
16821 * image.c (clear_image_cache): Don't check that a frame is on
16822 a window-system before checking if it shares the same cache.
16823 (clear_image_caches): New function.
16824 (Fclear_image_cache): Use it.
16825 (mark_image): Move from allo.c.
16826 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16827 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16828 (mark_object): Don't call mark_image_cache for frames.
16829 (mark_terminals): Call mark_image_cache.
16830
16831 * lisp.h (Fdelete_terminal): Declare.
16832
16833 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16834 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16835 wrong_type_argument.
16836
168372008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16838
16839 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16840 malayalam.el, and tamil.el. Add sinhala.el.
16841
168422008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16843
16844 * xterm.c (x_connection_closed): Consolidate identical tests.
16845 (x_delete_terminal): Don't crash if called via x_connection_closed.
16846
168472008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16848
16849 * xdisp.c (decode_mode_spec): New arg string.
16850 (display_mode_element): Adjust for the above change.
16851
168522008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16853
16854 * callint.c (Fcall_interactively): Use AREF.
16855
168562008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16857
16858 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16859
168602008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16861
16862 * xfns.c (Fx_show_tip): Set string to " " if empty.
16863
168642008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16865
16866 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16867 with Qt.
16868
168692008-02-17 Kenichi Handa <handa@m17n.org>
16870
16871 * ftfont.c (ftfont_shape): Return Lispy number.
16872
16873 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16874 for GCs.
16875 (Finternal_set_font_selection_order): Call font_update_sort_order
16876 only when enable_font_backend is set.
16877 (realize_x_face): Set face->font_info to that of default face only
16878 when enable_font_backend is set.
16879
16880 * xdisp.c (handle_composition_prop): Set it->c to the fist
16881 character of the composed region.
16882 (fill_composite_glyph_string): Set base_face->font_info to
16883 s->font_info. Get a face for ascii from base_face->ascii_face.
16884 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16885 with a face already decided.
16886 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16887 non-negative.
16888 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16889 call font_prepare_composition unconditionally.
16890
16891 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16892
16893 * xterm.h (struct x_display_info): New member font.
16894
16895 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16896 (x_set_mouse_face_gc, x_new_font): Likewise.
16897 (x_term_init): Setup display_info->font.
16898 (x_delete_terminal): Free display_info->font.
16899
16900 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16901
16902 * ftxfont.c (ftxfont_default_fid): Delete it.
16903 (ftxfont_open): Set xfont->fid to 0.
16904 (ftxfont_end_for_frame): Clear data specific to the frame and the
16905 font-driver.
16906
16907 * xftfont.c (xftfont_default_fid): Delete it.
16908 (xftfont_open): Set xfont->fid to 0.
16909
16910 * fontset.c (FONTSET_OBJLIST): New macro.
16911 (fontset_find_font): Update font-object list of the fontset.
16912 (free_realized_fontset): New function.
16913 (free_face_fontset): Call free_realized_fontset.
16914 (Ffont_info): Call font_close_object only when enable_font_backend
16915 is set.
16916
16917 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16918 [HAVE_NTGUI]: Include w32term.h.
16919 [MAC_OS]: Include macterm.ch.
16920 (font_otf_ValueRecord): Use make_number.
16921 (font_finish_cache): Fix handling of reference count.
16922 (font_clear_cache): Update num_fonts.
16923 (font_open_entity): Update smallest_char_width and
16924 smallest_font_height of the frame.
16925 (font_close_object): Update num_fonts.
16926 (Fclear_font_cache): Fix finding the target cache data.
16927
169282008-02-16 Glenn Morris <rgm@gnu.org>
16929
16930 * fontset.c (Finternal_char_font): Fix compilation warning.
16931
169322008-02-16 Eli Zaretskii <eliz@gnu.org>
16933
16934 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16935 instead of char arrays. Enlarge the size of array passed to
16936 get_token_information.
16937
16938 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16939 warnings.
16940
169412008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16942
16943 * .gdbinit: Don't set `args', it breaks gdb --args.
16944
169452008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16946
16947 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16948 within a narrowed buffer.
16949
169502008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16951
16952 * coding.c (decode_coding_object, encode_coding_object):
16953 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16954
169552008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16956
16957 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16958 hardcoding 1.
16959 (detect_coding_system):
16960 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16961 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16962 * insdel.c (insert_from_gap):
16963 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16964 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16965 (string_to_multibyte):
16966 * character.c (chars_in_text, multibyte_chars_in_text):
16967 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16968
16969 * character.h (FETCH_STRING_CHAR_ADVANCE)
16970 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16971 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16972 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16973
16974 * casefiddle.c (casify_region): Only call after-change and composition
16975 functions on the part of the region that was changed.
16976
16977 * keyboard.c (read_avail_input):
16978 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16979
169802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16981
16982 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16983 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16984
169852008-02-11 Juanma Barranquero <lekktu@gmail.com>
16986
16987 * w32menu.c (push_submenu_start, push_submenu_end)
16988 (push_left_right_boundary, push_menu_pane, push_menu_item):
16989 * keyboard.c (read_key_sequence): Don't pass args with side effects
16990 to AREF, it fails when compiling with -DENABLE_CHECKING.
16991
169922008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16993
16994 * Makefile.in (${lispsource}international/charprop.el):
16995 Delete this target.
16996
16997 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16998 emacs-unicode-2.
16999
170002008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17001
17002 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17003
170042008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17005
17006 * frame.c (Qnoelisp): New symbol.
17007 (syms_of_frame): Initialize it.
17008 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17009 harmless Elisp code, from a strong `force' from x_connection_closed.
17010 * frame.h (Qnoelisp): Declare.
17011 * xterm.c (x_connection_closed): Pass `noelisp'.
17012
17013 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17014 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17015 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17016 rather than `int' for the type of `type'.
17017
170182008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17019
17020 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17021
17022 * Makefile.in (GNUC): Remove support for gcc-1.x.
17023
170242008-02-10 Richard Stallman <rms@gnu.org>
17025
17026 * lisp.h (ASET): Use AREF, not ASLOT.
17027
170282008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17029
17030 * lisp.h (ASET): Check bounds.
17031
170322008-02-10 Glenn Morris <rgm@gnu.org>
17033
17034 * buffer.c (mode-name): Doc fix.
17035
170362008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17037
17038 * Makefile.in:
17039 * emacs.c:
17040 * gmalloc.c:
17041 * keyboard.c:
17042 * lisp.h:
17043 * m/ibm370aix.h:
17044 * process.c:
17045 * regex.c:
17046 * s/hpux.h:
17047 * sysdep.c:
17048 * sysselect.h:
17049 * systty.h:
17050 * unexec.c:
17051 * w32term.c:
17052 * xsmfns.c:
17053 * xterm.c: Remove code that deals with obsolete variables.
17054
17055 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17056
17057 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17058 nothing else needs it anymore.
17059
170602008-02-09 Eli Zaretskii <eliz@gnu.org>
17061
17062 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17063 instead of unibyte_char_to_multibyte.
17064
170652008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17066
17067 * s/gnu-linux.h: Remove commented out code.
17068
17069 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17070
17071 * Makefile.in: Update what RMS says about using autoconf.
17072 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17073 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17074 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17075 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17076
170772008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17078
17079 * keymap.c (Fkey_description): Move side effect outside of macro call.
17080
17081 * xfaces.c (Finternal_make_lisp_face):
17082 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17083
17084 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17085 (syms_of_fontset): Use ASET.
17086
17087 * fns.c (concat): Move side effect outside of macro call.
17088 (hash_clear): Use ASET.
17089
170902008-02-08 Richard Stallman <rms@gnu.org>
17091
17092 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17093 If FORCE, and frame has a surrogate minibuffer for another frame,
17094 delete the other frame first.
17095
170962008-02-07 Timo Savola <timo.savola@iki.fi>
17097
17098 * xterm.c (x_detect_focus_change): Handle embed client message.
17099 (handle_one_xevent): Ditto.
17100 (handle_one_xevent): If embedded and we get a button press/release,
17101 request focus.
17102 (xembed_set_info, xembed_send_message): New functions.
17103 (x_make_frame_visible): Call xembed_set_info if embedded.
17104 (x_make_frame_invisible): Call xembed_set_info if embedded.
17105 (x_term_init): Initialize Xatom_XEMBED.
17106 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17107 (x_iconify_frame): Ditto.
17108
17109 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17110 (enum xembed_info, enum xembed_message, enum xembed_focus)
17111 (enum xembed_modifier, enum xembed_accelerator): New.
17112 (xembed_set_info, xembed_send_message): Declare.
17113 (FRAME_X_EMBEDDED_P): New.
17114
17115 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17116 gtk_plug_new.
17117
17118 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17119 window ID of a frame.
17120 (x_window): Reparent frame if embedded.
17121 (Fx_create_frame): Don't set border width if embedded.
17122
17123 * emacs.c (USAGE3): Add --parent-id.
17124 (standard_args): Ditto.
17125
171262008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17127
17128 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17129
171302008-02-07 Jim Meyering <meyering@redhat.com>
17131
17132 Use "do...while (0)", not "if (1)...else" in macro definitions.
17133 The latter provokes a warning from gcc about the empty else, when
17134 followed by ";". Also, without that trailing semicolon, it would
17135 silently swallow up any following statement.
17136 * syntax.h (SETUP_SYNTAX_TABLE)
17137 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17138 * buffer.h (DECODE_POSITION): Likewise.
17139 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17140 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17141 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17142 (FETCH_CHAR_ADVANCE): Likewise.
17143 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17144
171452008-02-07 Jim Meyering <meyering@redhat.com>
17146
17147 * lread.c [lint]: Don't include <sys/inode.h>.
17148
171492008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17150
17151 * xselect.c (x_handle_dnd_message):
17152 * xmenu.c (digest_single_submenu, xmenu_show):
17153 * xdisp.c (with_echo_area_buffer_unwind_data)
17154 (format_mode_line_unwind_data, unwind_format_mode_line)
17155 (display_menu_bar):
17156 * eval.c (Ffetch_bytecode):
17157 * doc.c (store_function_docstring):
17158 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17159 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17160 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17161
171622008-02-07 Kenichi Handa <handa@m17n.org>
17163
17164 * ftxfont.c (ftxfont_open): Don't set
17165 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17166
17167 * ftfont.c (ftfont_open): Fix previous change.
17168
171692008-02-06 Jason Rumney <jasonr@gnu.org>
17170
17171 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17172 Use cached metrics for ASCII characters.
17173 (w32font_open_internal): Don't set font's owning_frame.
17174 Cache metrics for ASCII characters.
17175
17176 * w32font.h (struct w32font_info): Add ascii_metrics.
17177 Remove owning_frame.
17178
171792008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17180
17181 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17182 to negative value.
17183
17184 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17185
17186 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17187
17188 * charset.c (syms_of_charset): Set QCtest and Qeq.
17189
171902008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17191
17192 * process.c (Fstart_process):
17193 * callproc.c (Fcall_process): Handle the case where
17194 Funhandled_file_name_directory returns nil.
17195
17196 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17197 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17198 * font.c (check_gstring): Use them and AREF to access the vector before
17199 we know it's really a gstring.
17200 (Ffont_shape_text): Fix typo.
46e722a9 17201 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17202
17203 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17204 Declare.
17205
17206 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17207
172082008-02-05 Jason Rumney <jasonr@gnu.org>
17209
17210 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17211 Set smallest_font_height and smallest_char_width in display info.
17212
172132008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17214
17215 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17216
172172008-02-05 Miles Bader <miles@gnu.org>
17218
17219 * xfaces.c (get_lface_attributes, merge_named_face)
17220 (lookup_named_face, lookup_derived_face, realize_named_face):
17221 Revert 2008-02-01 change by cyd@stupidchicken.com.
17222
172232008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17224
17225 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17226 fallback fonts.
17227 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17228
172292008-02-04 Jason Rumney <jasonr@gnu.org>
17230
17231 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17232 set full_name.
17233 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17234
172352008-02-03 Jason Rumney <jasonr@gnu.org>
17236
17237 * makefile.w32-in (OBJ1): Include font.o here.
17238 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17239
172402008-02-02 Jason Rumney <jasonr@gnu.org>
17241
17242 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17243
172442008-02-01 Jason Rumney <jasonr@gnu.org>
17245
17246 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17247
17248 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17249
172502008-02-01 Andreas Schwab <schwab@suse.de>
17251
17252 * Makefile.in (shortlisp, lisp): Update for rename of
17253 ../lisp/language/myanmar.el.
17254
172552008-02-01 Chong Yidong <cyd@stupidchicken.com>
17256
17257 * xfaces.c (get_lface_attributes): Delete function.
17258 (merge_named_face, lookup_named_face, lookup_derived_face)
17259 (realize_named_face): Call lface_from_face_name directly, and use
17260 the fact that merge_face_vectors does not alter its FROM argument.
17261
172622008-02-01 Jason Rumney <jasonr@gnu.org>
17263
17264 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17265 input in the default locale. Handle non-Unicode multibyte input.
17266
172672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17268
17269 * fontset.c (reorder_font_vector): Exclude nil elements from the
17270 font group. Don't try multiple fonts.
17271 (fontset_font): Adjust for the above change.
17272 (Finternal_char_font): Return nil if the found font doesn't
17273 contain the character ch.
17274
17275 * Makefile.in (lisp, shortlisp): Add cham.el.
17276
172772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17278
17279 * font.h (FONTP): Make it return 1 also for a font-object.
17280
17281 * .gdbinit (xfontset): New function.
17282
17283 * font.c (font_find_for_lface): Check if the character C is
17284 supported or not only for the first font.
17285
17286 * fontset.c (reorder_font_vector): Fix typo.
17287 (fontset_find_font): Don't add a font-spec specifying a script.
17288 Use 0 (not Qt) for the indication of empty font-group. Change the
17289 format of RFONT-DEF. Return Qt if no font in the font-group
17290 support the character.
17291 (fontset_font): Adjust for the above change. If no font was
17292 found the character, remember that.
17293 (face_for_char): Adjust for the change of RFONT-DEF.
17294 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17295 no font for the target.
17296 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17297
172982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17299
17300 * font.c (font_load_for_face): Handle the case that the font in
17301 face->lface is a string.
17302
173032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17304
17305 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17306
173072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17308
17309 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17310 Fix previous change. If the frame is not on a window system,
17311 signal an error.
17312
173132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17314
17315 * coding.c (decode_coding_object, encode_coding_object): Adjust
17316 marker positions after conversion.
17317
17318 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17319
173202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17321
17322 * font.c (font_find_for_lface): Fix the handling of the return
17323 value of font_has_char.
17324 (Ffont_shape_text): Fix previous change.
17325
17326 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17327 (fontset_ref_and_range): Delete it.
17328 (fontset_find_font): Call char_table_ref_and_range instead of
17329 FONTSET_REF_AND_RANGE.
17330 (make_fontset): Don't setup font groups of Latin here.
17331 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17332 (new_fontset_from_font): Make the specified font the default for
17333 all Latin characters.
17334
173352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17336
17337 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17338 is on a window system before accessing the fontset of the frame.
17339
173402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17341
17342 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17343
17344 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17345 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17346
17347 * font.c (Ffont_shape_text): If the font driver doesn't have a
17348 shaper function, make zero-width glyphs to have at least one-pixel
17349 width. Fix setting of `to' field of glyphs.
17350
173512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17352
17353 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17354 glyphs.
17355
17356 * font.h (struct font_driver): Improve docstring of member `shape'.
17357
173582008-02-01 Kenichi Handa <handa@m17n.org>
17359
17360 * composite.c (syms_of_composite): Fix docstring of
17361 auto-composition-function.
17362
17363 * font.h (LGLYPH_SIZE): New macro.
17364
17365 * font.c (Ffont_fill_gstring): Stop filling when a character not
17366 supported by the font is found.
17367 (Ffont_shape_text): When a shape callback function returns nil,
17368 try at most two more times with larger gstring.
17369 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17370
17371 * xdisp.c (handle_auto_composed_prop): Change the argument to
17372 auto-composition-function.
17373
17374 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17375 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17376 Lispy glyph and store it in the lgstring.
17377
17378 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17379
17380 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17381
173822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17383
17384 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17385
17386 * fontset.c (Vfont_encoding_charset_alist): New variable.
17387 (syms_of_fontset): DEFVAR it.
17388 (reorder_font_vector, fontset_find_font): Optimize for the case of
17389 no need of reordering.
17390 (face_for_char): Map the charset property by
17391 Vfont_encoding_charset_alist.
17392
173932008-02-01 Jason Rumney <jasonr@gnu.org>
17394
17395 * w32font.c (logfonts_match): Don't check adstyle here.
17396 (font_matches_spec): Check here against physical font instead.
17397 (add_font_entity_to_list): Avoid some substitutions.
17398
17399 * font.c (font_parse_fcname): Default weight and slant to normal.
17400 (font_score): Prefer normal fonts if weight or slant unspecified.
17401 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17402 match freetype scores.
17403
174042008-02-01 Jason Rumney <jasonr@gnu.org>
17405
17406 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17407 font, as it may have been deleted.
17408 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17409 most common hyphenless variation.
17410 (logfonts_match): Check generic family.
17411 (font_matches_spec): Don't check generic family here.
17412 (fill_in_logfont): Set generic family based on adstyle.
17413
17414 * w32font.h (w32font_get_cache): Update declaration.
17415
174162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17417
17418 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17419
17420 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17421 If none of the new drivers are available, call font_update_drivers
17422 with the old drivers.
17423
17424 * w32font.c (w32font_get_cache): Adjust the argument type.
17425
17426 * xfont.c (xfont_get_cache): Adjust the argument type.
17427
17428 * font.h (struct font_driver): Change argument type of get_cache.
17429
17430 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17431
17432 * font.c (Ffont_get): Fix arguments to Fassoc.
17433 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17434 (font_clear_cache): New function.
17435 (font_list_entities, font_matching_entity): Use font_get_cache.
17436 (font_update_drivers): Call font_clear_cache when finishing a driver.
17437
17438 * fontset.c (fontset_find_font): Fix previous change.
17439
174402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17441
17442 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17443 dpyinfo->font_table.
17444 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17445 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17446
17447 * font.c (font_at): Handle the case that the arg C is negative.
17448 Handle the unibyte case.
17449 (Ffont_at): Call font_at with the arg C -1.
17450
17451 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17452 the position here, and call font_at with the arg C -1.
17453 Don't check the range of the existing composition at the point.
17454
174552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17456
17457 * fontset.c (fontset_add): New args charset_id and family.
17458 Change caller.
17459 (load_font_get_repertory, fontset_find_font): Assume that
17460 font_spec is always a font-spec object.
17461 (Fset_fontset_font): Always store a font-spec object in a fontset.
17462
17463 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17464 instead of get_property_and_range.
17465
174662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17467
17468 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17469 (xftfont_open): Don't keep locking face.
17470 (xftfont_close): Don't unlock face.
17471 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17472
17473 * fontset.c (fontset_find_font): Don't prefer a font of
17474 supplementary charset.
17475
174762008-02-01 Kenichi Handa <handa@m17n.org>
17477
17478 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17479 script, langsys_tag to langsys, new member script.
17480 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17481 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17482 listing to the script specified in that property. Fix arg to
17483 OTF_check_features.
17484
174852008-02-01 Jason Rumney <jasonr@gnu.org>
17486
17487 * w32font.h: New file.
17488
17489 * w32font.c: Include it.
17490 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17491 (w32font_open): Set owning_frame.
17492 (w32font_text_extents): Use owning_frame.
17493 (struct font_callback_data): Add opentype_only field.
17494 (add_font_entity_to_list): Use it to filter fonts.
17495 Don't check against full name.
17496 (w32font_list_internal): New function.
17497 (w32font_list): Use it.
17498 (w32font_match_internal): New function.
17499 (w32font_match): Use it.
17500 (w32font_open_internal): New function.
17501 (w32font_open): Use it.
17502 (w32font_get_cache, w32font_close, w32font_has_char)
17503 (w32font_encode_char, w32font_text_extents, w32font_draw):
17504 Make non-static.
17505
17506 * makefile.w32-in (w32font.o): Depend on w32font.h.
17507
175082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17509
17510 * charset.c (Fdefine_charset_internal): Record a supplementary
17511 charset at the tail of Vcharset_order_list.
17512
17513 * font.c (Ffont_shape_text): Fix the return value.
17514
17515 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17516
17517 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17518
175192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17520
17521 * ftfont.c (struct OpenTypeSpec): New struct.
17522 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17523 (ftfont_get_open_type_spec): New function.
17524 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17525
17526 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17527
175282008-02-01 Jason Rumney <jasonr@gnu.org>
17529
17530 * w32font.c (add_font_entity_to_list): Compare only the beginning
17531 of full name.
17532
175332008-02-01 Kenichi Handa <handa@m17n.org>
17534
17535 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17536 Never return HANDLED_RECOMPUTE_PROPS.
17537
175382008-02-01 Kenichi Handa <handa@m17n.org>
17539
17540 * font.c (font_gstring_produce): Delete it.
17541
17542 * composite.h (COMPOSITION_METHOD):
17543 Handle COMPOSITION_WITH_GLYPH_STRING.
17544
175452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17546
17547 * xfont.c (Qx): Delete.
17548 (syms_of_xfont): Don't initialize Qx.
17549
17550 * composite.h (enum composition_method):
17551 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17552
175532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17554
17555 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17556 (choose_face_font): Accept new form of font-spec.
17557
17558 * frame.h (font_driver_list): Declare it unconditionally.
17559 (struct frame): Define members font_driver_list and font_data_list
17560 unconditionally.
17561
17562 * fontset.c: Include "font.h" unconditionally.
17563 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17564 (Fset_fontset_font): Accept a font-spec object.
17565
17566 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17567 PIXEL_SIZE part a wild card.
17568
17569 * dispextern.h (struct glyph_string): Define members clip and
17570 num_clips unconditionally.
17571 (struct face): Define members font_info and extra unconditionally.
17572
17573 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17574 ftfont_info only when HAVE_LIBOTF is defined.
17575
175762008-02-01 Andreas Schwab <schwab@suse.de>
17577
17578 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17579 and end.
17580
175812008-02-01 Jason Rumney <jasonr@gnu.org>
17582
17583 * w32font.c (w32font_driver): Add new fields.
17584
175852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17586
17587 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17588 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17589 (LIBES): Add @M17N_FLT_CFLAGS@.
17590
17591 * composite.c (compose_text): Don't treat the new style
17592 composition specially.
17593
17594 * emacs.c (main): Call syms_of_font unconditionally.
17595
17596 * font.h (FONT_ENTITY_NOT_LOADABLE)
17597 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17598 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17599 (struct font_driver): New member shape.
17600 (font_registry_charsets): Extern it.
17601 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17602 (font_otf_capability, font_drive_otf): Delete their externs.
17603
17604 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17605 (font_charset_alist, font_registry_charsets): Move from xfont.c
17606 and rename.
17607 (font_prop_validate_otf): New function.
17608 (font_property_table): Register it for QCotf.
17609 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17610 (font_drive_otf): Delete.
17611 (font_prepare_composition): New arg F. Adjust for the change of
17612 lispy gstring.
17613 (font_find_for_lface): New arg C.
17614 (font_load_for_face): Adjust for the change of font_find_for_lface.
17615 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17616 lispy gstring.
17617 (Ffont_shape_text): New function.
17618 (Fopen_font): If the font size is not given, use 12-pixel.
17619 (Ffont_at): New arg STRING.
17620 (syms_of_font): Initalize font_charset_alist.
17621 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17622 conditionally.
17623
17624 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17625 fonts of the same font-spec. Change the format of RFONT-DEF.
17626 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17627 Adjust for the change of RFONT-DEF.
17628 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17629
17630 * ftfont.h: New file.
17631
17632 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17633 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17634 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17635 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17636 font_otf_capability and font_drive_otf, set ftfont_shape.
17637 (ftfont_list): Adjust for the change of :otf property value.
17638 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17639 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17640 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17641 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17642 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17643 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17644
17645 * w32term.c (x_draw_composite_glyph_string_foreground):
17646 Adjust for the change of lispy gstring.
17647
17648 * xdisp.c (handle_composition_prop): Adjust for the change of
17649 lispy gstring. Call a function for auto-composition with the
17650 third arg it->window.
17651 (fill_composite_glyph_string): Adjust for the change of lispy string.
17652 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17653
17654 * xfaces.c (set_font_frame_param): Adjust for the change of
17655 font_find_for_lface.
17656
17657 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17658 (xfont_registry_charsets): Likewise. Change caller.
17659 (syms_of_xfont): Don't handle x_font_charset_alist.
17660
17661 * xftfont.c: Include "ftfont.h".
17662 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17663 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17664 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17665 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17666 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17667 Set xftfont_driver.shape to xftfont_shape.
17668
17669 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17670 the change of lispy gstring.
17671
176722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17673
17674 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17675
176762008-02-01 Jason Rumney <jasonr@gnu.org>
17677
17678 * w32font.c (w32font_draw): Fill background manually.
17679
176802008-02-01 Jason Rumney <jasonr@gnu.org>
17681
17682 * font.c (Qfontp): Remove unused symbol.
17683 (QCantialias): New symbol.
17684 (syms_of_font): Define it.
17685 (font_property_table): Set a validator for QCantialias.
17686
17687 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17688 Define if not already.
17689 (QCfamily): Share with xfaces.c.
17690 (Qstandard, Qsubpixel, Qnatural): New symbols.
17691 (syms_of_w32font): Define them. Don't define QCfamily here.
17692 (w32_antialias_type, lispy_antialias_type): New functions.
17693 (w32_enumfont_pattern_entity): New arg requested_font.
17694 Set antialias parameter if non-default was requested.
17695 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17696
176972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17698
17699 * lread.c (read1): Undo the previous change.
17700
177012008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17702
17703 * frame.c (Fdelete_frame): Call font_update_drivers only when
17704 USE_FONT_BACKEND is defined.
17705
177062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17707
17708 * font.h (struct font_bitmap): New member bits_per_pixel.
17709 (struct font_driver): New members start_for_frame and end_for_frame.
17710 (struct font_data_list): New struct.
17711 (font_put_frame_data, font_get_frame_data): Extern them.
17712
17713 * frame.h (struct frame): New member font_data_list.
17714
17715 * font.c (font_update_drivers): Call driver->start_for_frame and
17716 driver->end_for_frame at proper timings.
17717 (font_put_frame_data, font_get_frame_data): New functions.
17718 (Ffont_spec): Add usage in the docstring.
17719
17720 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17721 (Fdelete_frame): Call font_update_drivers.
17722
17723 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17724 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17725 (xftfont_get_xft_draw): New function.
17726 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17727 (xftfont_end_for_frame): New function.
17728 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17729
17730 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17731 Change argument. Cache GCs in the per-frame data.
17732 (struct ftxfont_frame_data): New struct.
17733 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17734 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17735 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17736 (ftxfont_end_for_frame): New function.
17737 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17738
17739 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17740
177412008-02-01 Kenichi Handa <handa@m17n.org>
17742
17743 * xselect.c (Vselection_coding_system)
17744 (Vnext_selection_coding_system): Delete them.
17745 (syms_of_xselect): Don't declare selection-coding-system and
17746 next-selection-coding-system. They are declared in select.el.
17747
177482008-02-01 Jason Rumney <jasonr@gnu.org>
17749
17750 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17751
17752 * w32fns.c: Include imm.h.
17753 (get_composition_string_fn, get_ime_context_fn): New optional
17754 system functions.
17755 (globals_of_w32fns): Load them from imm32.dll.
17756 (ignore_ime_char): New flag.
17757 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17758 WM_IME_ENDCOMPOSITION messages.
17759
17760 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17761 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17762
177632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17764
17765 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17766 (READCHAR_REPORT_MULTIBYTE): New macro.
17767 (readchar): New 2nd arg MULTIBYTE.
17768 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17769 Make symbol's name multibyte according to the multibyteness of the
17770 source.
17771
177722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17773
17774 * xfaces.c (face_for_overlay_string): Call lookup_face with
17775 correct arguments (fix of synching with the trunk).
17776
177772008-02-01 Kenichi Handa <handa@m17n.org>
17778
17779 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17780 (font_prop_validate_non_neg, font_prop_validate_spacing):
17781 Delete argument prop_index.
17782 (font_property_table): Change arguments to validater. Change Callers.
17783 (font_lispy_object): Delete.
17784 (font_at): Use font_find_object instead fo font_lispy_object.
17785
177862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17787
17788 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17789 and file names.
17790
177912008-02-01 Jason Rumney <jasonr@gnu.org>
17792
17793 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17794 (font_matches_spec): Remove debug output.
17795 (add_font_entity_to_list): Avoid using substituted fonts.
17796
177972008-02-01 Jason Rumney <jasonr@gnu.org>
17798
17799 * doc.c (Fsnarf_documentation):
17800 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17801
178022008-02-01 Miles Bader <miles@gnu.org>
17803
17804 * dispextern.h (struct glyph_row): Only define "clip" field if
17805 HAVE_WINDOW_SYSTEM is defined.
17806
178072008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17808
17809 Fix up multi-tty merge.
17810
17811 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17812 and indentation.
17813
17814 * xfaces.c (free_realized_face, clear_face_gcs):
17815 Include font_done_for_face in the input_blocked section, just in case.
17816
17817 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17818 (get_char_face_and_encoding): Undo last change and remove the *other*
17819 duplicate definition (i.e. keep the one that's better scoped and that
17820 includes code for the font-backend).
17821
17822 * terminal.c (create_terminal): Default keyboard_coding to
17823 `no-conversion' and terminal_coding to `undecided'.
17824
17825 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17826
17827 * fontset.c (free_realized_fontsets): Check that the table entry does
17828 contain a fontset before trying to compare it to `base'.
17829
17830 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17831 syms_of_charset, and syms_of_coding earlier because init_window_once
17832 now needs Vcoding_system_hash_table to be setup.
17833
17834 * coding.h (default_buffer_file_coding): Remove.
17835
17836 * coding.c (default_buffer_file_coding): Remove.
17837 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17838 than ->symbol, and use the terminal-local coding system.
17839 (syms_of_coding): Don't setup the coding-systems that are not
17840 terminal-local.
17841 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17842
17843 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17844 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17845
17846 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17847 in chartab.c and were re-added here by mistake.
17848 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17849
17850 * doc.c (Fsnarf_documentation):
17851 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17852 src to etc.
17853
17854 * ChangeLog.10: Add mistakenly removed entry.
17855
178562008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17857
17858 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17859
178602008-02-01 Miles Bader <miles@gnu.org>
17861
17862 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17863 Add extra args to FACE_FOR_CHAR.
17864
178652008-02-01 Kenichi Handa <handa@m17n.org>
17866
17867 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17868 in sequence.
17869
17870 * chartab.c (map_sub_char_table, map_char_table): If the range
17871 contains just one character, call the function with that character
17872 even if the depth is not 3.
17873
178742008-02-01 Jason Rumney <jasonr@gnu.org>
17875
17876 * w32font.c (w32font_text_extents): Calculate metrics for the
17877 whole string.
17878
178792008-02-01 Jason Rumney <jasonr@gnu.org>
17880
17881 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17882
178832008-02-01 Jason Rumney <jasonr@gnu.org>
17884
17885 * w32term.c (x_set_glyph_string_clipping): Use
17886 get_glyph_string_clip_rects.
17887 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17888 Adjust for the change of struct glyph_string.
17889
17890 * w32font.c (w32font_draw): Do clipping here.
17891
178922008-02-01 Kenichi Handa <handa@m17n.org>
17893
17894 * xftfont.c (xftfont_draw): Adjust for the change of struct
17895 glyph_string.
17896
17897 * xterm.c (x_set_glyph_string_clipping): Use
17898 get_glyph_string_clip_rects.
17899 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17900 Adjust for the change of struct glyph_string.
17901
17902 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17903 the resulting clip(s}.
17904 (expose_overlaps): Add arg r. Change callers. Set it to
17905 row->clip temporarily.
17906 (expose_window): Redraw rows overlapping the exposed area.
17907
17908 * dispextern.h (struct glyph_row): New member clip.
17909 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17910 clip_height, new member clip, and num_clips.
17911
179122008-02-01 Kenichi Handa <handa@m17n.org>
17913
17914 * data.c (Fchar_or_string_p): Fix docstring.
17915
179162008-02-01 Kenichi Handa <handa@m17n.org>
17917
17918 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17919 create a temporary XftDraw object.
17920
179212008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * font.c (Ffontp): Fix docstring.
17924
17925 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17926 strong evidence of ISO-2022.
17927
179282008-02-01 Kenichi Handa <handa@m17n.org>
17929
17930 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17931 SYNTAX_ENTRY_FOLLOW_PARENT.
17932
179332008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17934
17935 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17936 its type.
17937 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17938 Update to the new type of weak_hash_tables and next_weak.
17939
17940 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17941 a plain C pointer to Lisp_Hash_Table.
17942
17943 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17944 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17945 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17946 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17947 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17948 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17949 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17950 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17951 (GC_EQ): Remove since they've been identical to their non-GC_
17952 alter-egos ever since the markbit was eradicated.
17953
17954 * alloc.c:
17955 * buffer.c:
17956 * buffer.h:
17957 * data.c:
17958 * fileio.c:
17959 * filelock.c:
17960 * fns.c:
17961 * frame.h:
17962 * lisp.h:
17963 * macterm.c:
17964 * print.c:
17965 * process.c:
17966 * w32fns.c:
17967 * w32menu.c:
17968 * w32term.c:
17969 * xfns.c:
17970 * xmenu.c:
17971 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17972
179732008-02-01 Kenichi Handa <handa@m17n.org>
17974
17975 * chartab.c (map_sub_char_table): Make it work for the top-level
17976 char-table. Fix handling of parent char-table.
17977 (map_char_table): Adjust for the above change.
17978
179792008-02-01 Jason Rumney <jasonr@gnu.org>
17980
17981 * w32font.c (Qgdi): Rename from Qw32.
17982
179832008-02-01 Jason Rumney <jasonr@gnu.org>
17984
17985 * w32bdf.c (get_quoted_string): Make function static.
17986
179872008-02-01 Kenichi Handa <handa@m17n.org>
17988
17989 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17990 bigger ascent and descent than those of the font, use them as
17991 font's ascent and descent.
17992
179932008-02-01 Kenichi Handa <handa@m17n.org>
17994
17995 * Makefile.in (${lispsource}international/charprop.el): Move this
17996 target within "#ifdef HAVE_UNIDATA" and "#endif".
17997
179982008-02-01 Kenichi Handa <handa@m17n.org>
17999
18000 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18001 (shortlisp): Add ../lisp/language/tai-viet.el.
18002
180032008-02-01 Ulrich Mueller <ulm@gentoo.org>
18004
18005 * Makefile.in (${lispsource}international/charprop.el): Depend on
18006 temacs${EXEEXT}.
18007
180082008-02-01 Jason Rumney <jasonr@gnu.org>
18009
18010 * w32font.c (w32font_close): Delete the GDI font object.
18011
18012 * w32menu.c: Include character.h.
18013
18014 * w32proc.c: Likewise.
18015
18016 * w32select.c: Likewise.
18017
18018 * makefile.w32-in (w32proc.o): Depend on character.h.
18019
180202008-02-01 Jason Rumney <jasonr@gnu.org>
18021
18022 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18023
18024 * w32menu.c (syms_of_w32menu): Likewise.
18025
18026 * w32proc.c (syms_of_ntproc): Likewise.
18027
18028 * w32select.c (syms_of_w32select): Likewise.
18029
18030 * w32term.c (syms_of_w32term): Likewise.
18031
180322008-02-01 Jason Rumney <jasonr@gnu.org>
18033
18034 * w32font.c (w32font_draw): Delete brush after using it.
18035
180362008-02-01 Jason Rumney <jasonr@gnu.org>
18037
18038 * w32font.c (w32font_open): Don't set font_idx.
18039 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18040 to font settings.
18041 (w32font_draw): Fill background explicitly.
18042
180432008-02-01 Jason Rumney <jasonr@gnu.org>
18044
18045 * w32term.c (w32_initialize): Don't call w32font_initialize.
18046
18047 * w32font.c (w32font_info): Remove subranges.
18048 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18049 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18050 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18051 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18052 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18053 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18054 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18055 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18056 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18057 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18058 New symbols.
18059 (font_callback_data): New struct.
18060 (w32font_list, w32font_match): Use it.
18061 (w32font_open): Don't populate subranges.
18062 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18063 (w32font_encode_char): Always return unicode code-point as-is.
18064 (w32font_text_extents): Supply a transformation matrix to
18065 GetGlyphOutline. Never look up by glyph index. Avoid looping
18066 twice. Use unicode version of GetTexExtentPoint32 instead of
18067 glyph index version.
18068 (set_fonts_frame): Remove.
18069 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18070 set frame parameter. Use backward compatible fake foundries.
18071 Save generic family in extra slot under QCfamily. Make width slot
18072 constant. Save QCspacing value. Save list of scripts instead of
18073 binary subranges.
18074 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18075 (add_font_entity_to_list): Use font_callback_data struct. Filter
18076 unwanted fonts.
18077 (add_one_font_entity_to_list): Use font_callback_data struct.
18078 (w32_registry): Default to iso10646_1.
18079 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18080 string font registries. Don't fill in font name if it is a generic
18081 family name, fill family instead. Use spacing, family and script
18082 extra info to fill pitch, family and charset fields.
18083 (list_all_matching_fonts): Use font_callback_data struct.
18084 (unicode_range_for_char): Remove.
18085 (font_supported_scripts): New function.
18086 (w32font_initialize): Remove.
18087 (syms_of_w32font): Update which symbols are defined.
18088
180892008-02-01 Jason Rumney <jasonr@gnu.org>
18090
18091 * font.c (font_pixel_size): Reverse assq_no_quit args.
18092
18093 * w32term.h (FONT_WIDTH): Report max width, not average.
18094 (FONT_MAX_WIDTH): Remove.
18095 (FONT_AVG_WIDTH): New macro.
18096
18097 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18098 redefinition of FONT_WIDTH.
18099
18100 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18101 (w32_cache_char_metrics): Use FONT_WIDTH.
18102
18103 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18104
181052008-02-01 Jason Rumney <jasonr@gnu.org>
18106
18107 * w32font.c (w32font_open): Make lfHeight negative.
18108
18109 * w32fns.c (x_default_font_parameter): Use new style font name.
18110 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18111
181122008-02-01 Jason Rumney <jasonr@gnu.org>
18113
18114 * w32font.c (QCsubranges): New symbol.
18115 (w32font_open, w32font_has_char): Get subranges from subproperty
18116 of extra.
18117 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18118 (syms_of_w32font): Define :subranges symbol.
18119
18120 * font.c (font_put_extra): Expose externally.
18121
18122 * font.h (font_put_extra): Move declaration from font.c.
18123
18124 * font.c (Ffont_get): Use font driver to determine otf capability.
18125 (adjust_anchor): Check if driver defines anchor_point before using.
18126
18127 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18128 (w32font_draw): Use options.
18129 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18130 Fix detection of truetype fonts.
18131 (registry_to_w32_charset): Handle charsets other than iso8859-1
18132 expressed as lisp symbols.
18133 (w32_registry): Express charset as lisp symbol.
18134 (fill_in_logfont): Reverse pixel and point height logic.
18135 Don't set width here. Set quality to default.
18136
18137 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18138 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18139
18140 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18141 Remove redundant loop and allocation.
18142
18143 * makefile.w32-in (font.o, w32font.o): New objects.
18144 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18145 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18146
18147 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18148 STORE_XCHARB a valid l-value.
18149
18150 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18151 calculations for non-Truetype fonts.
18152 (x_draw_glyph_string): Sync with xterm.c.
18153 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18154 Remove redundant code.
18155 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18156
18157 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18158 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18159
18160 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18161 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18162
18163 * w32font.c: New file for w32 font backend.
18164
181652008-02-01 Kenichi Handa <handa@m17n.org>
18166
18167 * term.c: Don't include "buffer.h" twice.
18168
181692008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 * character.c (Funibyte_string): New function.
18172 (syms_of_character): Defsubr it.
18173
181742008-02-01 Jason Rumney <jasonr@gnu.org>
18175
18176 * w32term.c [USE_FONT_BACKEND]:
18177 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18178 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18179 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18180 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18181 (x_free_frame_resources): Sync with xterm.c.
18182
181832008-02-01 Andreas Schwab <schwab@suse.de>
18184
18185 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18186 char-table size.
18187
181882008-02-01 Kenichi Handa <handa@m17n.org>
18189
18190 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18191
181922008-02-01 Kenichi Handa <handa@m17n.org>
18193
18194 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18195 font_otf_gpos, add font_drive_otf.
18196
18197 * fontset.c (fontset_find_font): Pay attention to font size
18198 specified for a font.
18199 (reorder_font_vector): Check contents of font_def.
18200
18201 * font.c (struct otf_list): Delete it.
18202 (otf_list): Make it a lisp variable.
18203 (otf_open): Use lispy otf_list.
18204 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18205 (check_otf_features): New function.
18206 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18207 New functions.
18208 (font_drive_otf): New function merging font_otf_gsub and
18209 font_otf_gpos.
18210 (font_open_for_lface): New arg spec. Change argument order.
18211 (font_load_for_face): Adjust for the change of font_open_for_lface.
18212 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18213 Ffont_otf_gpos.
18214 (syms_of_font): Staticpro otf_list. Delete defsubr of
18215 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18216
18217 * xfaces.c (set_font_frame_param): Adjust for the change of
18218 font_open_for_lface.
18219
18220 * font.h (font_open_for_lface): Adjust prototype.
18221 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18222 member otf_drive.
18223 (font_otf_gsub, font_otf_gpos): Delete externs.
18224 (font_drive_otf): Extern it.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * font.c (font_at): If the window W is not on a window system,
18229 return Qnil.
18230
18231 * coding.c (produce_chars, encode_coding): Don't call
18232 insert_from_gap if no characters to produce.
18233
182342008-02-01 Kenichi Handa <handa@m17n.org>
18235
18236 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18237 Fclear_face_cache.
18238
18239 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18240
182412008-02-01 Miles Bader <miles@gnu.org>
18242
18243 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18244 Parse "--disable-font-backend" option.
18245 (standard_args): Add "--disable-font-backend" option.
18246
182472008-02-01 Kenichi Handa <handa@m17n.org>
18248
18249 * fontset.c (fontset_find_font): New function.
18250 (fontset_font): Use fontset_find_font.
18251 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18252 Register the specified font for all Latin characters.
18253 (new_fontset_from_font): Register the specified font for all Latin
18254 characters.
18255 (dump_fontset): For a realized fontset, include the base fontset
18256 name in the returned vector.
18257
182582008-02-01 Kenichi Handa <handa@m17n.org>
18259
18260 * character.h (CHAR_STRING): Cast C to unsigned on calling
18261 char_string.
18262
18263 * character.c (char_string): Type of arg C changed to unsigned.
18264 Signal an error if C is an invalid character code.
18265
18266 * editfns.c (general_insert_function, Fchar_to_string):
18267 Use CHARACTERP, not INTEGERP.
18268
182692008-02-01 Kenichi Handa <handa@m17n.org>
18270
18271 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18272 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18273
18274 * regex.c (analyse_first): Fix for multibyte characters in "case
18275 charset:" and "case categoryspec:".
18276
182772008-02-01 Andreas Schwab <schwab@suse.de>
18278
18279 * Makefile.in (LIBES): Move standard libraries to the end.
18280
182812008-02-01 Kenichi Handa <handa@m17n.org>
18282
18283 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18284 nonzero, don't shrink the buffer nextb.
18285
18286 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18287
18288 * coding.c (coding_alloc_by_making_gap): New arg offset.
18289 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18290 offset.
18291 (decode_coding_iso_2022): Update coding->safe_charsets.
18292 (decode_coding_gap): Temporarily set
18293 current_buffer->text->inhibit_shrinking to 1.
18294
182952008-02-01 Kenichi Handa <handa@m17n.org>
18296
18297 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18298 indexing into elements of s->cmp and s->char2b.
18299
183002008-02-01 Juanma Barranquero <lekktu@gmail.com>
18301
18302 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18303
183042008-02-01 Kenichi Handa <handa@m17n.org>
18305
18306 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18307 target_multibyte instead of multibyte.
18308 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18309 (bcmp_translate): Change the argument name from multibyte to
18310 target_multibyte.
18311
183122008-02-01 Kenichi Handa <handa@m17n.org>
18313
18314 These changes are to compile a regexp into a pattern that can be
18315 used both for multibyte and unibyte targets.
18316
18317 * Makefile.in (search.o): Depend on charset.h.
18318
18319 * character.c (multibyte_char_to_unibyte_safe): New function.
18320
18321 * search.c: Include "charset.h".
18322 (compile_pattern_1): Delete argument multibyte. Don't set
18323 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18324 (compile_pattern): Don't compare cp->buf.target_multibyte.
18325 Compare cp->buf.charset_unibyte.
18326 (compile_pattern): Set cp->buf.target_multibyte.
18327
18328 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18329
18330 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18331
18332 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18333 multibyte. Change callers.
18334 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18335 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18336 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18337 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18338 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18339 (regex_compile): Make the compiled pattern usable both for
18340 multibyte and unibyte targets.
18341 (analyse_first): Make the fastmap usable both for multibyte and
18342 unibyte targets.
18343 (TRANSLATE_VIA_MULTIBYTE): Delete.
18344 (re_match_2_internal): Pay attention to the case that the
18345 multibyteness of bufp and target may be different.
18346
183472008-02-01 Kenichi Handa <handa@m17n.org>
18348
18349 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18350 empty box occupy at least one column width.
18351
183522008-02-01 Miles Bader <miles@gnu.org>
18353
18354 * Makefile.in: Remove redundant HAVE_XFT clause.
18355
183562008-02-01 Kenichi Handa <handa@m17n.org>
18357
18358 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18359
183602008-02-01 Kenichi Handa <handa@m17n.org>
18361
18362 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18363 being nil.
18364
183652008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18368
183692008-02-01 Kenichi Handa <handa@m17n.org>
18370
18371 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18372
183732008-02-01 Kenichi Handa <handa@m17n.org>
18374
18375 * search.c (simple_search): Fix previous change.
18376
183772008-02-01 Kenichi Handa <handa@m17n.org>
18378
18379 * xftfont.c (ftfont_font_format): Extern declaration.
18380
18381 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18382
18383 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18384 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18385
18386 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18387 (ftfont_font_format): Fix previous change.
18388
18389 * font.h (Ffont_xlfd_name): EXFUN it.
18390
18391 * font.c (font_parse_xlfd): Fix the array size of `f'.
18392 (register_font_driver): Use EQ to compare driver->type.
18393
18394 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18395 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18396 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18397
183982008-02-01 Kenichi Handa <handa@m17n.org>
18399
18400 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18401 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18402
184032008-02-01 Kenichi Handa <handa@m17n.org>
18404
18405 * xfont.c (xfont_open): Set font->format.
18406
18407 * xftfont.c (xftfont_open): Set font->format.
18408
18409 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18410 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18411 (ftfont_open): Set font->format.
18412 (ftfont_font_format): New function.
18413
18414 * font.h (struct font): New member format.
18415
18416 * font.c (Qopentype): New variable.
18417 (syms_of_font): Defsym it.
18418 (Fquery_font): Change the format of the last element of the return
18419 value.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18424 last resort.
18425
184262008-02-01 Kenichi Handa <handa@m17n.org>
18427
18428 * coding.c (detect_coding_charset): Fix detection of multi-byte
18429 charset.
18430
184312008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18432
18433 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18434
184352008-02-01 Kenichi Handa <handa@m17n.org>
18436
18437 * xdisp.c (get_next_display_element): Set it->face_id for the
18438 first component of a composition.
18439 (x_produce_glyphs): Check if the font is changed or not for composition.
18440
184412008-02-01 Kenichi Handa <handa@m17n.org>
18442
18443 * fontset.c (Qlatin): New variable.
18444 (syms_of_fontset): Define it as a lisp symbol.
18445 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18446
184472008-02-01 Kenichi Handa <handa@m17n.org>
18448
18449 * font.c (font_unparse_fcname): Pay attention to the case that
18450 some of font property is a null string.
18451
184522008-02-01 Kenichi Handa <handa@m17n.org>
18453
18454 * term.c: Include "composite.h".
18455 (encode_terminal_code): Output all components of composition.
18456 Check the size of encode_terminal_src.
18457 (produce_glyphs): For composition, call produce_composite_glyph.
18458 (append_composite_glyph, produce_composite_glyph): New functions.
18459
18460 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18461 is not found, get font_info from the current ascii face.
18462
184632008-02-01 Kenichi Handa <handa@m17n.org>
18464
18465 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18466 buffer-file-name to Qnil before calling insert_from_buffer.
18467
18468 * font.c (font_unparse_fcname): Pay attention to the case that
18469 foundry is a null string.
18470
184712008-02-01 Kenichi Handa <handa@m17n.org>
18472
18473 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18474
18475 * font.c (Qunicode_sip): New variable.
18476 (syms_of_font): Declare it as a Lisp symbol.
18477
18478 * font.h (Qunicode_sip): Extern it.
18479
184802008-02-01 Kenichi Handa <handa@m17n.org>
18481
18482 * composite.c (get_composition_id): Pay attention to TAB component.
18483
18484 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18485 TAB. Adjust for the change of s->char2b which always points to
18486 the first element of allocated memory.
18487
18488 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18489
18490 * xdisp.c (handle_composition_prop): Set it->c to the first
18491 non-TAB component.
18492 (fill_composite_glyph_string): Change argument.
18493 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18494 (x_produce_glyphs): Fix handling of left/right padding.
18495
184962008-02-01 Kenichi Handa <handa@m17n.org>
18497
18498 * coding.c (detect_coding_system): Fix for handling off
18499 inhibit_iso_escape_detection. Fix for the case that no coding
18500 system is defined for a specific coding category.
18501
185022008-02-01 Kenichi Handa <handa@m17n.org>
18503
18504 * font.c (font_matching_entity): Delete unused local var.
18505
18506 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18507 opening a font.
18508
18509 * fileio.c (Finsert_file_contents): On recovering a file, assume
18510 Unix-like eol.
18511 (choose_write_coding_system): On auto-saving a file, force
18512 Unix-like eol.
18513
18514 * coding.c (setup_coding_system): Fix setting of
18515 coding->common_flags based on eol_type.
18516 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18517 inherit from it.
18518
185192008-02-01 Kenichi Handa <handa@m17n.org>
18520
18521 * alloc.c (NSTATICS): Increas to 0x600.
18522
185232008-02-01 Kenichi Handa <handa@m17n.org>
18524
18525 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18526 (ftfont_list): Don't check :name property.
18527 (ftfont_match): New function.
18528 (ftfont_pattern_entity): If the pattern doesn't contain
18529 FC_SPACING, don't assume FC_MONO.
18530
18531 * font.h (struct font_driver): New member `match'.
18532 (font_update_drivers): Adjust prototype.
18533
18534 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18535 property of FONT.
18536 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18537 them unconditionally.
18538 (font_matching_entity): New function.
18539 (font_open_by_name): Try font_matching_entity if exact match is
18540 not found.
18541 (font_update_drivers): Delete the arg FONT. Return a list of
18542 actually used backends. Don't free faces, font caches here.
18543 Don't store data in frame parameters. Don't call x_set_font.
18544 (Ffont_spec): Store :name property as is.
18545 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18546 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18547 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18548 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18549 Call font->driver->otf_gsub instead of font_otf_gsub.
18550
18551 * frame.c (x_set_font_backend): Do more works that were done in
18552 font_update_drivers before.
18553
18554 * xfont.c (xfont_match): New function.
18555 (xfont_driver): Set xfont_driver.match to xfont_match.
18556 (xfont_draw): Set font in GC if necessary.
18557
18558 * ftxfont.c (ftxfont_match): New function.
18559 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18560
18561 * xftfont.c (xftfont_match): New function.
18562 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18563
185642008-02-01 Kenichi Handa <handa@m17n.org>
18565
18566 * font.h (struct font): New member scalable.
18567 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18568 (font_otf_gsub): Adjust prototype.
18569
18570 * font.c (font_otf_capability): Fix handling of the default langsys.
18571 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18572 Check the contents of SPEC.
18573 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18574 (check_gstring): New function.
18575 (REPLACEMENT_CHARACTER): New macro.
18576 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18577 glyph codes of GSTRING.
18578 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18579 (font_prepare_composition): Set cmp->glyph_len.
18580 (font_open_entity): Set font->scalable.
18581 (Ffont_get): Handle :otf property.
18582 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18583 functions.
18584 (Fquery_font): Use font->font.full_name.
18585 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18586 Sfont_otf_alternates.
18587
18588 * ftfont.c (ftfont_open): Set font->font.full_name and
18589 font->font.name properly. Fix calculation of font->font.height
18590 and font->min_width.
18591
18592 * ftxfont.c (ftxfont_create_gcs): New function.
18593 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18594 (ftxfont_draw_backgrond): Fix filling region.
18595 (ftxfont_default_fid): New function.
18596 (ftxfont_open): Set xfont->fid to the return value of
18597 ftxfont_default_fid.
18598 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18599 (ftxfont_done_face): Free only GCs that are created by
18600 ftxfont_create_gcs.
18601 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18602
18603 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18604 Clip to src->width, etc (not src->clip_XXX).
18605
18606 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18607 FontBackend frame parameter.
18608
186092008-02-01 Kenichi Handa <handa@m17n.org>
18610
18611 * font.h (struct font_driver_list): New member `on'.
18612 (Fclear_font_cache): EXFUN it.
18613 (font_update_drivers): Extern it.
18614
18615 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18616 (font_list_entities): Check driver_list->on.
18617 (register_font_driver): Initalize `on' member to 0.
18618 (font_update_drivers): New function.
18619 (Fclear_font_cache): Check driver_list->on.
18620
18621 * frame.h (Qfont_backend): Extern it.
18622 (x_set_font_backend): Extern it.
18623
18624 * frame.c (Qfont_backend): New variable.
18625 (frame_parms): New element for font-backend.
18626 (x_set_font_backend): New function.
18627
18628 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18629 FontBackend frame parameter.
18630 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18631 x_set_font_backend.
18632
18633 * xfont.c (xfont_list): Don't try listing by :name property if the
18634 name is not for XLFD.
18635
186362008-02-01 Kenichi Handa <handa@m17n.org>
18637
18638 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18639 (LGLYPH_SET_TO): New macros.
18640 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18641 element of G is vector or not.
18642 (font_at): Extern it.
18643
18644 * font.c: Include window.h.
18645 (font_lispy_object): New function.
18646 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18647 end of valid glyph.
18648 (font_close_object): Fix getting (struct font *).
18649 (font_at): New function.
18650 (Ffont_get): If FONT is a font-object, get entity from it.
18651 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18652 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18653 range check.
18654 (Ffont_at): New function.
18655 (syms_of_font): Defsubr Sfont_at.
18656
18657 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18658 before the entry for Qcomposition.
18659 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18660 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18661 the font in gstring.
18662 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18663 LGLYPH_FORM (g) to detect the end of valid glyph.
18664 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18665 we are composing with gstring.
18666
18667 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18668 Check if adjustment is vector or not.
18669
18670 * Makefile.in (font.o): Make it depends on window.h.
18671
186722008-02-01 Kenichi Handa <handa@m17n.org>
18673
18674 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18675 adjustment is vector or not.
18676
186772008-02-01 Miles Bader <miles@gnu.org>
18678
18679 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18684 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18685 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18686
18687 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18688 (DEVICE_DELTA): Fix typo.
18689 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18690 LGLYPH format.
18691
18692 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18693 the change of LGLYPH format.
18694
186952008-02-01 Kenichi Handa <handa@m17n.org>
18696
18697 * ftfont.c (ftfont_list): Fix typo.
18698 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18699
187002008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18701
18702 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18703
18704 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18705 xftface_info is non-NULL.
18706
187072008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18708
18709 * ftfont.c (ftfont_list): Move misplaced #endif.
18710
187112008-02-01 Kenichi Handa <handa@m17n.org>
18712
18713 * ftfont.c (ftfont_list): Pay attention to the case that
18714 FC_CAPABILITY is not defined.
18715
187162008-02-01 Kenichi Handa <handa@m17n.org>
18717
18718 * xftfont.c (xftfont_open): Set charset related members to -1.
18719
18720 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18721 QCname.
18722 (ftfont_open): Set charset related members to -1.
18723
18724 * fontset.c (Votf_script_alist): New variable.
18725 (syms_of_fontset): Initialize it.
18726 (fontset_font): Delete unused variable.
18727
18728 * fontset.h (Votf_script_alist): Extern it.
18729
18730 * font.c (font_find_for_lface): Optimize code.
18731
18732 * font.h (font_close_object, font_merge_old_spec): Extern them.
18733
187342008-02-01 Kenichi Handa <handa@m17n.org>
18735
18736 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18737 (syms_of_font): Initialize them.
18738 (font_pixel_size): Allow float value in dpi.
18739 (font_prop_validate_type): Delete.
18740 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18741 Change caller.
18742 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18743 (font_prop_validate_extra): Delete.
18744 (font_prop_validate_spacing): New function.
18745 (font_property_table): Add elements for all known properties.
18746 (get_font_prop_index): Rename from check_font_prop_name. New
18747 argument FROM. Change caller.
18748 (font_prop_validate): Validate all known properties.
18749 (font_put_extra): Delete argument force. Change caller.
18750 (font_expand_wildcards): Make it static. Fix the way of shrinking
18751 the possible range.
18752 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18753 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18754 Change caller.
18755 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18756 (font_parse_fcname): Delete argument merge. Fix parsing of point
18757 size. Don't validate properties values here. Change caller.
18758 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18759 (font_open_by_name): Delete unused variable.
18760 (Ffont_spec): Likewise. Validate property values.
18761 (Ffont_match_p): New function.
18762
18763 * font.h (QCscalable): Extern it.
18764 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18765
18766 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18767
18768 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18769 (xfont_list_pattern): New function.
18770 (xfont_list): Use xfont_list_pattern.
18771
187722008-02-01 Kenichi Handa <handa@m17n.org>
18773
18774 * font.h (Flist_fonts): EXFUN it.
18775
187762008-02-01 Jason Rumney <jasonr@gnu.org>
18777
18778 * w32term.c (w32_initialize): Add back smoothing_type and
18779 smoothing_enabled definitions.
18780
187812008-02-01 Kenichi Handa <handa@m17n.org>
18782
18783 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18784 s->face->font on determining underline position.
18785
187862008-02-01 Kenichi Handa <handa@m17n.org>
18787
18788 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18789 (font_has_char): Accept font-object too.
18790 (font_find_for_lface): Try at first with a size specified in face.
18791
187922008-02-01 Kenichi Handa <handa@m17n.org>
18793
18794 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18795 font_open_by_name.
18796
187972008-02-01 Kenichi Handa <handa@m17n.org>
18798
18799 * font.h (QCspacing, QCdpi): Extern them.
18800 (enum font_spacing): New enum.
18801 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18802
18803 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18804 (QCspacing, QCdpi): New variables.
18805 (syms_of_font): Initialize them.
18806 (font_pixel_size): New function.
18807 (font_put_extra): New function.
18808 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18809 in FONT_EXTRA.
18810 (font_parse_fcname): Handle enumerated values (e.g. bold).
18811 Fix handling font size. Add QCname property that contains only
18812 unknown properties.
18813 (font_score): Change argument. Change caller. Pay attention to
18814 FONT_PIXEL_SIZE_QUANTUM.
18815 (font_sort_entites, font_list_entities, font_find_for_lface)
18816 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18817 (Ffont_spec): Add QCname property that contains only unknown properties.
18818
18819 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18820 include weight in listing pattern, instead check weight of each
18821 listed font. Don't include scalable in pattern. Pay attention to
18822 FONT_PIXEL_SIZE_QUANTUM.
18823
188242008-02-01 Kenichi Handa <handa@m17n.org>
18825
18826 * font.c (font_parse_fcname): Fix parsing of point-size.
18827 (font_unparse_fcname): Produce symbolic names for style properties.
18828 (font_list_entities): Handle float size correctly.
18829 (font_open_by_name): Prefer `normal' property values if the name
18830 doesn't specify them.
18831
18832 * fontset.c (Finternal_char_font): Use font_get_name, not
18833 Ffont_xlfd_name.
18834
18835 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18836 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18837 pattern. Don't force scalable.
18838
18839 * xftfont.c (xftfont_open): For generating a name, start from
18840 96-byte buffer.
18841
188422008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18843
18844 * frame.h (x_new_fontset2): Fix prototype.
18845
188462008-02-01 Kenichi Handa <handa@m17n.org>
18847
18848 * font.h (struct font_driver): Delete member parse_name.
18849 (font_match_p, font_get_spec, font_parse_fcname)
18850 (font_unparse_fcname): Extern them.
18851 (font_get_name): Adjust prototype.
18852
18853 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18854 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18855 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18856 unnecessary checks for weight, slant, and swidth.
18857 (font_parse_fcname): New function.
18858 (font_unparse_fcname): New function.
18859 (font_parse_name): New function.
18860 (font_match_p): New function.
18861 (font_get_name): Change return value to Lisp string.
18862 (font_get_spec): New function.
18863 (Qunspecified, Qignore_defface): Don't extern them.
18864 (font_find_for_lface): Assume that LFACE is fully specified.
18865 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18866 object, use it for FACE.
18867 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18868 driver->parse_name.
18869 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18870
18871 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18872 prototype.
18873
18874 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18875 argument F. Don't call Fnew_fontset. Instead, directly call
18876 make_fontset.
18877
18878 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18879
18880 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18881 of x_new_fontset2.
18882
18883 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18884 (Qsans__serif): New variables.
18885 (ftfont_generic_family_list): New variable.
18886 (syms_of_ftfont): Initialize the above variables.
18887 (ftfont_pattern_entity): Delete argument NAME.
18888 (ftfont_list_generic_family): New function.
18889 (ftfont_parse_name): Delete this function.
18890 (ftfont_list): Try generic family only when FcFontList found no font.
18891 (ftfont_list_family): Fix args to FcObjectSetBuild.
18892
18893 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18894 object in attrs[LFACE_FONT_INDEX].
18895 (set_lface_from_font_name): Cancel all changes for font-backend.
18896 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18897 function.
18898 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18899 font object in QCfont attribute.
18900 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18901 (realize_default_face) [USE_FONT_BACKEND]: Call
18902 set_lface_from_font_and_fontset.
18903
18904 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18905 "fixed", and signal error here if no suitable font was found.
18906
18907 * xfont.c (xfont_parse_name): Delete this function.
18908
18909 * xftfont.c (xftfont_open): Change coding style of error
18910 handling. Generate fontconfig's fontname pattern.
18911
18912 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18913 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18914
18915 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18916 Both args FONTSET and FONT_OBJECT must be existing ones.
18917
189182008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18919
18920 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18921
189222008-02-01 Kenichi Handa <handa@m17n.org>
18923
18924 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18925
18926 * font.h (struct font): Fix typo.
18927
18928 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18929 XLFD_XXX_INDEX.
18930 (enum xlfd_field_mask): New enum.
18931 (intern_font_field): Changed argument. Change caller. If digits
18932 are followed by non-digits, return a symbol.
18933 (font_expand_wildcards): New function.
18934 (font_parse_xlfd): Fix wildcard handling.
18935 (Ffont_spec): If :name is specified, reflect the info in the other
18936 properties.
18937
18938 * ftfont.c (ftfont_pattern_entity): Fix typo.
18939 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18940 locale.
18941
189422008-02-01 Kenichi Handa <handa@m17n.org>
18943
18944 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18945
18946 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18947 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18948 registry doesn't specify encoding part.
18949 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18950 (font_open_by_name): At first try parsing the name.
18951 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18952 as Lisp symbols.
18953
18954 * fontset.c (reorder_font_vector): Pay attention to the case that
18955 the 3rd element of font_def is nil.
18956 (fontset_font): For the default fontset, append one more fontset
18957 elements for a script-based font specification. Don't add script
18958 attribute on finding a font.
18959 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18960 font name.
18961 (fontset_ascii_font): If a font can't be opened, return nil.
18962
18963 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18964 (ftfont_pattern_entity): New function.
18965 (ftfont_get_cache): Assume that freetype_font_cache is already
18966 initialized.
18967 (ftfont_list): Handle the case that a file is specified in font
18968 name. Use ftfont_pattern_entity to generate entities.
18969 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18970 (syms_of_ftfont): Initialize freetype_font_cache.
18971
18972 * xftfont.c (xftfont_open): Make the font name fontconfig's
18973 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18974 (xftfont_close): Free font->font.name if not NULL.
18975
18976 * xfont.c (xfont_list): If script is specified for a font, return
18977 null_vector.
18978 (xfont_list_family): Declare argument type.
18979
18980 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18981 name, set LFACE_FONT (lface) to nil.
18982
18983 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18984 return Qnil.
18985
189862008-02-01 Kenichi Handa <handa@m17n.org>
18987
18988 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18989 (standard_args): Add "-enable-font-backend".
18990
189912008-02-01 Kenichi Handa <handa@m17n.org>
18992
18993 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18994 (struct xftdraw_list, xftdraw_list): Delete them.
18995 (register_xftdraw, check_xftdraw): Delete them.
18996 (xftfont_prepare_face): Don't call register_xftdraw.
18997 (xftfont_done_face): Don't call check_xftdraw.
18998 (xftfont_draw): Get background color only when with_background is
18999 nonzero.
19000
19001 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19002
190032008-02-01 Kenichi Handa <handa@m17n.org>
19004
19005 These changes are for the new font handling codes.
19006
19007 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19008 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19009 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19010 (FONTSRC, FONTOBJ): New variables.
19011 (obj): Add $(FONTOBJ).
19012 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19013 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19014 @LIBOTF_LIBS@.
19015 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19016 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19017
19018 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19019
19020 * character.h (Vscript_representative_chars): Extern it.
19021
19022 * character.c (Vscript_representative_chars): New variable.
19023 (syms_of_character): Declare it as a Lisp variable.
19024
19025 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19026 enable_font_backend is nonzero, accept the composition method
19027 COMPOSITION_WITH_GLYPH_STRING.
19028
19029 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19030 enumeration COMPOSITION_WITH_GLYPH_STRING.
19031
19032 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19033 members clip_x, clip_y, clip_width, and clip_height.
19034 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19035
19036 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19037 --enable-font-backend. Call syms_of_font.
19038
19039 * fns.c (assoc_no_quit): New function.
19040
19041 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19042 (face_for_font, new_fontset_from_font)
19043 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19044
19045 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19046 (fontset_font, fontset_ascii, face_for_char)
19047 (make_fontset_for_ascii_face, Ffont_info)
19048 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19049 is nonzero, use font-backend mechanism.
19050 (find_font_encoding): Make it non-static.
19051 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19052 New functions.
19053
19054 * frame.h (struct frame): New members resx and resy.
19055 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19056 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19057
19058 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19059 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19060
19061 * lisp.h (assoc_no_quit): Extern it.
19062
19063 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19064 Through out the file, use FONT_INFO_FROM_FACE instead of
19065 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19066 rif->per_char_metric.
19067 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19068 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19069 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19070 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19071 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19072 nonzero, use font-backend mechanism.
19073 (get_per_char_metric): New function.
19074
19075 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19076 (set_lface_from_font_name)
19077 (set_font_frame_param, free_realized_face)
19078 (prepare_face_for_display, clear_face_gcs)
19079 (Finternal_set_font_selection_order, realize_x_face)
19080 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19081 font-backend mechanism.
19082 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19083 (load_face_font) [USE_FONT_BACKEND]: Abort.
19084 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19085 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19086
19087 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19088 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19089 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19090 nonzero, register all available font drivers. Call
19091 x_default_font_parameter for deciding a font.
19092 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19093
19094 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19095 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19096 (x_set_glyph_string_clipping_exactly)
19097 (x_compute_glyph_string_overhangs)
19098 (x_draw_glyph_string_foreground)
19099 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19100 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19101 enable_font_backend is nonzero, use font-backend mechanism.
19102 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19103
191042008-02-01 Kenichi Handa <handa@m17n.org>
19105
19106 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19107 system_eol_type.
19108 (syms_of_coding): Initialize system_eol_type.
19109
19110 * process.c (Fset_process_coding_system): Inherit system's eol
19111 format if necessary.
19112
191132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19114
19115 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19116
191172008-02-01 Kenichi Handa <handa@m17n.org>
19118
19119 * coding.c (decode_eol): Pay attention to buffer relocation in
19120 del_range_2.
19121 (decode_coding): Call decode_eol before restoring undo_list.
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * charset.c (Fdefine_charset_internal): Fix setting of
19126 emacs_mule_bytes.
19127
191282008-02-01 Kenichi Handa <handa@m17n.org>
19129
19130 * keyboard.c (read_char): Check if C is a character or not before
19131 looking up Vkeyboard_translate_table.
19132
191332008-02-01 Kenichi Handa <handa@m17n.org>
19134
19135 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19136 condition to terminate the loop.
19137
191382008-02-01 Kenichi Handa <handa@m17n.org>
19139
19140 * coding.c (produce_composition): Compare charbuf[i] instead of
19141 args[i] against 0.
19142 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19143
191442008-02-01 Kenichi Handa <handa@m17n.org>
19145
19146 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19147 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19148 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19149 detect_coding.
19150 (emacs_mule_char): Handle old style (Emacs 20) component character
19151 of a composition.
19152 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19153 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19154 composition rule.
19155 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19156
191572008-02-01 Kenichi Handa <handa@m17n.org>
19158
19159 * coding.c (encode_coding_ccl): Allocate destination dynamically
19160 when necessary.
19161
191622008-02-01 Kenichi Handa <handa@m17n.org>
19163
19164 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19165 the loop. When quitted, show a proper error message.
19166
191672008-02-01 Kenichi Handa <handa@m17n.org>
19168
19169 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19170 src->clip_head and src->clip_tail temporarily instead of src->hl.
19171
19172 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19173 character sequence.
19174 (Fccl_execute_on_string): Use ASET, not XSET.
19175
191762008-02-01 Kenichi Handa <handa@m17n.org>
19177
19178 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19179
191802008-02-01 Kenichi Handa <handa@m17n.org>
19181
19182 * coding.c (decode_coding): Fix the condition of terminating the
19183 decoding loop.
19184
191852008-02-01 Kenichi Handa <handa@m17n.org>
19186
19187 * data.c (Faset): On setting a character bigger than 255 in a
19188 unibyte string, signal an error instead of make the string multibyte.
19189
191902008-02-01 Kenichi Handa <handa@m17n.org>
19191
19192 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19193 made by a mapping table.
19194
191952008-02-01 Kenichi Handa <handa@m17n.org>
19196
19197 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19198 not.
19199 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19200 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19201
19202 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19203 s->face is NULL or not.
19204
192052008-02-01 Kenichi Handa <handa@m17n.org>
19206
19207 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19208 (x_draw_glyph_string): Fix drawing of right_overhang and
19209 left_overhang around/on cursor.
19210
19211 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19212
192132008-02-01 Kenichi Handa <handa@m17n.org>
19214
19215 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19216
192172008-02-01 Kenichi Handa <handa@m17n.org>
19218
19219 * coding.c (Fdefine_coding_system_internal)
19220 (Fdefine_coding_system_alias): Avoid a duplicated element in
19221 Vcoding_system_alist.
19222
192232008-02-01 Kenichi Handa <handa@m17n.org>
19224
19225 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19226
19227 * coding.c (Qcoding_system_define_form): New variable.
19228 (syms_of_coding): Intern and staticpro it.
19229 (Fcoding_system_p): Check Qcoding_system_define_form.
19230 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19231
19232 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19233 Fcoding_system_p.
19234 (CHECK_CODING_SYSTEM): If ID is not available, call
19235 Fcheck_coding_system.
19236 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19237 Try also Fcheck_coding_system.
19238
192392008-02-01 Kenichi Handa <handa@m17n.org>
19240
19241 * coding.c (code_conversion_restore): GCPRO arg.
19242
192432008-02-01 Kenichi Handa <handa@m17n.org>
19244
19245 * character.c (lisp_string_width): Check multibyteness of STRING.
19246
192472008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19248
19249 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19250 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19251 (decode_mac_font_name): Use decode_coding_c_string instead of
19252 decode_coding.
19253 (x_load_font): Initialize fontp->fontset to -1. Set
19254 fontp->encoding_type.
19255
192562008-02-01 Kenichi Handa <handa@m17n.org>
19257
19258 * search.c (search_buffer): Give up BM search on case-fold-search
19259 if one of a target character has a case-equivalence of different
19260 byte length even if that target charcter is an ASCII.
19261 (simple_search): Fix calculation of byte length of matched text.
19262 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19263
192642008-02-01 Kenichi Handa <handa@m17n.org>
19265
19266 * coding.c (decode_coding): Fix handling of invalid bytes.
19267
192682008-02-01 Kenichi Handa <handa@m17n.org>
19269
19270 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19271 Unicode characters.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * coding.c (encode_coding_object): If a pre-write-conversion
19276 function makes a new buffer, kill it.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * coding.c (QCascii_compatible_p): New variable.
19281 (syms_of_coding): Initialize it.
19282 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19283 calling string_char.
19284 (record_conversion_result): Add `default:' case.
19285 (coding_charset_list): Delete unused variable `coding_type'.
19286 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19287 property in the plist of the coding system.
19288 (Fcoding_system_put): Check QCascii_compatible_p.
19289
192902008-02-01 Miles Bader <miles@gnu.org>
19291
19292 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19293 removed calculation of frame `f', as it's now used.
19294
192952008-02-01 Kenichi Handa <handa@m17n.org>
19296
19297 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19298 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19299 (UNIDATA): New variable.
19300 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19301 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19302 $(RUN_TEMACS) unconditionally.
19303
193042008-02-01 Kenichi Handa <handa@m17n.org>
19305
19306 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19307 (admindir): New variable.
19308 ($(lispsource)international/charprop.el): New target.
19309
193102008-02-01 Miles Bader <miles@gnu.org>
19311
19312 * character.c (chars-in-region): Remove obsolete function.
19313 (syms_of_character): Remove its initialization.
19314
193152008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19316
19317 * w32select.c (validate_coding_system)
19318 (setup_windows_coding_system): New functions.
19319 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19320 setup_windows_coding_system.
19321 (setup_config, Fw32_get_clipboard_data): Use
19322 validate_coding_system.
19323 (Fx_selection_exists): Move call to setup_config to a place
19324 where signals are allowed.
19325
19326 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19327 (Fcheck_coding_system): Add declarations.
19328
193292008-02-01 Kenichi Handa <handa@m17n.org>
19330
19331 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19332
193332008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19334
19335 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19336 string as the second argument for x_new_fontset.
19337
193382008-02-01 Kenichi Handa <handa@m17n.org>
19339
19340 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19341 (encode_coding_object): Use safe_call instead of call2.
19342
193432008-02-01 Kenichi Handa <handa@m17n.org>
19344
19345 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19346
19347 * Makefile.in (lisp): Include charprop.el.
19348
193492008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19350
19351 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19352 Not sure if it's unnecessary.
19353
193542008-02-01 Steven Tamm <steventamm@mac.com>
19355
19356 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19357 some possibly unnecessary fontset checking code that crashed
19358 when creating a new frame.
19359
193602008-02-01 Kenichi Handa <handa@m17n.org>
19361
19362 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19363 lookup_face.
19364
19365 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19366
19367 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19368
193692008-02-01 Kenichi Handa <handa@m17n.org>
19370
19371 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19372 (coding_charset_list): New function.
19373
19374 * coding.h (coding_charset_list): Extern it.
19375
193762008-02-01 Kenichi Handa <handa@m17n.org>
19377
19378 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19379 concatenation of family and registry.
19380
193812008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * character.h (BYTE8_STRING): Fix typo.
19384
19385 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19386 string to multibyte (sync to HEAD).
19387
19388 * casefiddle.c (casify_region): Handle changes in byte-length
19389 using replace_range_2 (sync to HEAD).
19390
193912008-02-01 Andreas Schwab <schwab@suse.de>
19392
19393 * chartab.c (map_char_table): GCPRO table and arg.
19394
193952008-02-01 Kenichi Handa <handa@m17n.org>
19396
19397 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19398 already at limit.
19399
194002008-02-01 Kenichi Handa <handa@m17n.org>
19401
19402 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19403 instead of fast_c_string_match_ignore_case.
19404 (find_font_encoding): Change argument to Lisp_Object. Use
19405 fast_string_match_ignore_case instead of
19406 fast_c_string_match_ignore_case. Change caller.
19407
194082008-02-01 Kenichi Handa <handa@m17n.org>
19409
19410 * xdisp.c (get_next_display_element): In unibyte case, decide to
19411 display in octal form by checking a character by
19412 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19413
19414 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19415
19416 * character.c (unibyte_has_multibyte_table): New variable.
19417
19418 * character.h (unibyte_has_multibyte_table): Extern it.
19419 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19420
194212008-02-01 Kenichi Handa <handa@m17n.org>
19422
19423 * coding.c (encode_coding_iso_2022): Fix handling of charset
19424 annotation.
19425
194262008-02-01 Kenichi Handa <handa@m17n.org>
19427
19428 * coding.c (setup_coding_system): If coding_system is nil, use
19429 Qundecided.
19430 (Fterminal_coding_system): Return nil if terminal coding system is
19431 `undecided'.
19432 (syms_of_coding): Define coding-system `undecided' here. Setup
19433 terminal_coding as `undecided'.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * xdisp.c (message_dolog, set_message_1): Call
19438 unibyte_char_to_multibyte with arg type int.
19439
19440 * lread.c (read1): Fix reading of a char-table.
19441
19442 * print.c (print_object): Include sub char-table in circularities
19443 detection.
19444
194452008-02-01 Kenichi Handa <handa@m17n.org>
19446
19447 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19448 Append the found sequences in car of ARGS instead of prepending.
19449
194502008-02-01 Kenichi Handa <handa@m17n.org>
19451
19452 * fileio.c (report_file_error): Make a unibyte string from
19453 strerror (errorno).
19454 (Fsubstitute_in_file_name): Fix the arg to
19455 unibyte_char_to_multibyte. It is evaluated twice.
19456
194572008-02-01 Kenichi Handa <handa@m17n.org>
19458
19459 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19464 BOM is not found.
19465 (detect_coding, detect_coding_system): Optimization for ISO-2022
19466 when no 8-bit data is found.
19467
194682008-02-01 Jason Rumney <jasonr@gnu.org>
19469
19470 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19471
194722008-02-01 Kenichi Handa <handa@m17n.org>
19473
19474 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19475 CHARS.
19476
194772008-02-01 Steven Tamm <steventamm@mac.com>
19478
19479 * macterm.c (mac_encode_char): Add charset argument and update
19480 to use encoding_type.
19481 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19482 switch to pure fontset.
19483 (decode_mac_font_name): Temporarily remove decoding.
19484 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19485 (x_load_font): Temporarily remove encoding.
19486
194872008-02-01 Kenichi Handa <handa@m17n.org>
19488
19489 * xfaces.c (Fface_font): If frame is not on a window system,
19490 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19491 refer to face->font.
19492 (split_font_name_into_vector, build_font_name_from_vector)
19493 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19494 when HAVE_WINDOW_SYSTEM is defined.
19495
194962008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19499 (x_produce_glyphs): Fix setting of members of cmp in case
19500 cmp->glyph_len is zero.
19501
19502 * fontset.c (Fset_fontset_font): Fix docstring.
19503 (Ffontset_info): Make it backward compatible. New arg ALL.
19504
195052008-02-01 Kim F. Storm <storm@cua.dk>
19506
19507 * process.c (read_process_output): Grow decoding_buf when needed;
19508 this could cause a crash in allocate_string and compact_small_strings.
19509
195102008-02-01 Kenichi Handa <handa@m17n.org>
19511
19512 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19513
195142008-02-01 Kenichi Handa <handa@m17n.org>
19515
19516 * coding.c (setup_coding_system): Set coding->common_flags
19517 correctly for raw-text.
19518 (consume_chars): On encoding unibyte text by raw-text, don't check
19519 multibyte form.
19520 (encode_coding): On encoding by raw-text, never use translation tables.
19521
19522 * fileio.c (e_write): Short cut for the case of no encoding.
19523
195242008-02-01 Kenichi Handa <handa@m17n.org>
19525
19526 * coding.c (detect_coding, detect_coding_system): Delete unused
19527 variables.
19528
195292008-02-01 Kenichi Handa <handa@m17n.org>
19530
19531 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19532 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19533
195342008-02-01 Kenichi Handa <handa@m17n.org>
19535
19536 * coding.c (Ffind_coding_systems_region_internal): Include
19537 raw-text and no-conversion in the result.
19538
195392008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19542 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19543 FONT_DEF.
19544 (font_def_arg, add_arg, from_arg, to_arg): New args.
19545 (set_fontset_font): Change argument.
19546 (Fset_fontset_font): Fix for the case that TARGET is a script
19547 name and charset name.
19548 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19549
195502008-02-01 Kenichi Handa <handa@m17n.org>
19551
19552 * fontset.c (fontset_font): Rename from fontset_face. Change return
19553 value.
19554 (face_suitable_for_char_p, face_for_char): Adjust for the change
19555 of fontset_font.
19556 (make_fontset_for_ascii_face): Fix setting of the fontset element
19557 for ASCII.
19558 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19559 to get a font name.
19560 (Ffontset_info): Adjust for the change of fontset_font.
19561
19562 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19563
19564 * character.h (LEADING_CODE_LATIN_1_MIN)
19565 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19566
195672008-02-01 Kenichi Handa <handa@m17n.org>
19568
19569 * editfns.c (check_translation): New function.
19570 (Ftranslate_region_internal): Handle M:N mapping.
19571
195722008-02-01 Kenichi Handa <handa@m17n.org>
19573
19574 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19575
195762008-02-01 Kenichi Handa <handa@m17n.org>
19577
19578 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19579 goto invalid_code.
19580 (decode_coding_iso_2022): Fix handling of invalid designation.
19581
19582 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19583 after calling code_conversion_save.
19584
195852008-02-01 Kenichi Handa <handa@m17n.org>
19586
19587 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19588
19589 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19590
19591 * fontset.c: Include "intervals.h".
19592 (fontset_face): Fix comparing of Lisp_Objects.
19593 (free_face_fontset, new_fontset_from_font_name): Fix
19594 Lisp_Object/int mixup.
19595
19596 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19597
19598 * coding.c: Add many prototypes for static functions.
19599 (get_translation_table): Allow max_lookup to be NULL.
19600 (decode_coding, Ffind_coding_systems_region_internal)
19601 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19602 get_translation_table with max_lookup NULL.
19603
196042008-02-01 Kenichi Handa <handa@m17n.org>
19605
19606 * coding.c (get_translation_table): Declare it as Lisp_Object.
19607 (LOOKUP_TRANSLATION_TABLE): New macro.
19608 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19609 instead of CHAR_TABLE_REF.
19610
196112008-02-01 Kenichi Handa <handa@m17n.org>
19612
19613 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19614 annotation data format.
19615 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19616 Change arguments FROM and TO to single argument NCHARS. Change caller.
19617 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19618 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19619 (decode_coding_ccl, decode_coding_charset): Pay attention to
19620 coding->charbuf_used.
19621 (get_translation): New function.
19622 (produce_chars): New arguments translation_table and last_block.
19623 Translate characters here. Return number of carryover chars.
19624 Change caller.
19625 (produce_composition): New argument pos. Change caller.
19626 Adjust for the change of annotation data format.
19627 (produce_charset, produce_annotation): Likewise.
19628 (decode_coding, encode_coding): Don't call translate_chars.
19629 (consume_chars): New arg translation_table. Change caller.
19630 (translate_chars): Delete.
19631 (syms_of_coding): Make translation-table's number of extra slots 2.
19632
196332008-02-01 Kenichi Handa <handa@m17n.org>
19634
19635 * search.c (simple_search): Fix setting this_pos_byte in backward
19636 search.
19637
19638 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19639 byte sequence.
19640 (detect_coding_ccl): Fix setting of the variable valids.
19641
196422008-02-01 Kenichi Handa <handa@m17n.org>
19643
19644 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19645
19646 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19647
19648 * editfns.c (Ftranslate_region_internal): Rename from
19649 Ftranslate_region. Accept a char-table in TABLE.
19650 (syms_of_editfns): Defsubr Stranslate_region_internal.
19651
19652 * xfaces.c (set_lface_from_font_name): If a font is specified for
19653 a frame, generate a fontset from the font.
19654 (build_scalable_font_name): If the scalable font is requested for
19655 a specific size, don't change that size.
19656 (try_font_list): Try a scalable font also in the case that a
19657 pattern string is specified.
19658
196592008-02-01 Kenichi Handa <handa@m17n.org>
19660
19661 * xfaces.c (Fface_font): New optional arg CHARACTER.
19662
196632008-02-01 Kenichi Handa <handa@m17n.org>
19664
19665 * charset.h (CHARSET_OFFSET): New macro.
19666
196672008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19670
19671 * fontset.c (fontset_face): Handle the case that repertory is a
19672 char-table.
19673 (find_font_encoding): Return nil for unknown encoding.
19674 (Fset_fontset_font): Ignore a font of unknown encoding.
19675
196762008-02-01 Kenichi Handa <handa@m17n.org>
19677
19678 * keymap.c (describe_vector): Handle default value of a char table.
19679
19680 * fontset.c (fontset_face): Handle fallback fonts correctly.
19681 (Ffontset_info): Return infomation about fallback fonts.
19682
196832008-02-01 Kenichi Handa <handa@m17n.org>
19684
19685 * fontset.c (FONTSET_DEFAULT): New macro.
19686 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19687 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19688 the case that it is nil.
19689 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19690 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19691
19692 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19693 subset or superset.
19694
196952008-02-01 Kenichi Handa <handa@m17n.org>
19696
19697 * emacs.c (main): Call init_charset after syms_of_XXX.
19698
19699 * charset.c (Vcharset_map_directory): Delete.
19700 (Vcharset_map_path): New variable.
19701 (load_charset_map_from_file): Use Vcharset_map_path instead.
19702 (init_charset): Initialize Vcharset_map_path.
19703 (syms_of_charset): Delete declaration of "charset-map-directory",
19704 add declaration of "charset-map-path".
19705
197062008-02-01 Kenichi Handa <handa@m17n.org>
19707
19708 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19709 ASCII only string.
19710
19711 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19712
19713 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19714 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19715
197162008-02-01 Kenichi Handa <handa@m17n.org>
19717
19718 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19719
19720 * coding.c (QCmnemonic, QCdefalut_char)
19721 (QCdecode_translation_table, QCencode_translation_table)
19722 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19723 (get_translation_table): Return a list of translation tables if
19724 necessary.
19725 (decode_coding): Call get_translation_table with ENCODEP 0.
19726 (char_encodable_p): If translation_table is non-nil, always call
19727 translate_char.
19728 (Fdefine_coding_system_internal): Accept list of translation
19729 tables as :encode-translation-table and :decode-translation-table.
19730 (Fcoding_system_put): New function.
19731 (syms_of_coding): Declare new symbols. Defsubr
19732 Scoding_system_put.
19733 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19734 typically JISX0212.
19735
19736 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19737 when the charset is superset type.
19738
19739 * character.c (translate_char): Accept list of translation tables.
19740
197412008-02-01 Kenichi Handa <handa@m17n.org>
19742
19743 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19744 (CODING_ATTR_TRANS_TBL): New macro.
19745
19746 * coding.c (get_translation_table): New function.
19747 (translate_chars): Fix the bug of skipping annotation data.
19748 (decode_coding, encode_coding): Utilize get_translation_table.
19749 (char_encodable_p, Funencodable_char_position): Translate char if
19750 necessary.
19751 (Ffind_coding_systems_region_internal)
19752 (Fcheck_coding_systems_region): Setup translation table for encode
19753 in a coding system attribute vector in advance.
19754 (Fdefine_coding_system_internal): Allow a symbol as translation
19755 table. For shift-jis type coding system, allow 4th charset.
19756
197572008-02-01 Kenichi Handa <handa@m17n.org>
19758
19759 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19760
19761 * xdisp.c (get_next_display_element): Pass -1 as POS to
19762 FACE_FOR_CHAR if displaying a C-string.
19763
197642008-02-01 Kenichi Handa <handa@m17n.org>
19765
19766 * composite.c (get_composition_id): Handle xoff and yoff in a
19767 composition rule.
19768
19769 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19770 (struct composition): New member lbearing and rbearing.
19771
19772 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19773 (x_get_glyph_overhangs): Handle a composition glyph.
19774 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19775
19776 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19777 composition glyph.
19778
197792008-02-01 Kenichi Handa <handa@m17n.org>
19780
19781 * print.c: Include charset.h.
19782 (Vprint_charset_text_property): New variable.
19783 (Qdefault): Extern it.
19784 (PRINT_STRING_NON_CHARSET_FOUND)
19785 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19786 (print_check_string_result): New variable.
19787 (print_check_string_charset_prop): New function.
19788 (print_prune_charset_plist): New variable.
19789 (print_prune_string_charset): New function.
19790 (print_object): Call print_prune_string_charset if
19791 Vprint_charset_text_property is not t.
19792 (print_interval): Print nothing if interval->plist is nil.
19793 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19794 variable. Init and staticpro print_prune_charset_plist.
19795
197962008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * fontset.c (new_fontset_from_font_name): Use the specified font
19799 for all characters in the new fontset.
19800
19801 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19802 OBJECT args.
19803
19804 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19805 OBJECT args for composition too.
19806
19807 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19808 OBJECT args.
19809
198102008-02-01 Kenichi Handa <handa@m17n.org>
19811
19812 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19813
19814 * fontset.c (reorder_font_vector): Adjust for the change of
19815 FONT_DEF format.
19816 (fontset_face): New arg id. Change caller.
19817 (face_for_char): New args pos and object.
19818 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19819 (fs_query_fontset): Check NAME by Fassoc too.
19820 (Fset_fontset_font): Allow non-XLFD font name.
19821 (Ffontset_info): Adjust for the change of FONT_DEF format.
19822
19823 * fontset.h (face_for_char): Adjust prototype.
19824
19825 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19826 (append_space, extend_face_to_end_of_line)
19827 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19828 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19829
19830 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19831 POS and OBJECT args.
19832
19833 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19834 POS and OBJECT args.
19835
198362008-02-01 Jason Rumney <jasonr@gnu.org>
19837
19838 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19839 of GlobalAlloc'ed memory.
19840
198412008-02-01 Kenichi Handa <handa@m17n.org>
19842
19843 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19844
19845 * charset.h (charset_table_used): Delete extern.
19846
19847 * charset.c (charset_table_used): Make it static.
19848 (map_charset_chars): Fix args to c_function with.
19849
19850 * chartab.c (map_sub_char_table_for_charset): Fix args to
19851 c_function with.
19852
19853 * coding.h (enum coding_result_code): Delete
19854 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19855
19856 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19857 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19858 (Vlast_code_conversion_error): New variables.
19859 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19860 (ONE_MORE_BYTE): Record error if any instead of signaling an
19861 error. If non-ASCII multibyte char is found, return the negative
19862 value of the code. All callers changed to check it.
19863 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19864 (record_conversion_result): New function. Change all codes setting
19865 coding->result to call this function.
19866 (detect_coding_utf_8, decode_coding_utf_8)
19867 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19868 Don't use the local variable incomplete.
19869 (emacs_mule_char): Change the second arg to `const'.
19870 (decode_coding): Fix of flushing out unprocessed data.
19871 (make_conversion_work_buffer): Fix making of a work buffer.
19872 (decode_coding_object): Return coding->dst_object.
19873
19874 * fontset.c (set_fontset_font): Fix args.
19875
19876 * lisp.h (CHARACTERBITS): Define as 22.
19877
19878 * process.c (send_process): Be sure to set coding->src_multibyte.
19879
19880 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19881
198822008-02-01 Kenichi Handa <handa@m17n.org>
19883
19884 * xdisp.c (handle_auto_composed_prop): Give limit to
19885 Fnext_single_char_property_change.
19886
198872008-02-01 Kenichi Handa <handa@m17n.org>
19888
19889 * composite.c (syms_of_composite): Don't make the composition hash
19890 table weak.
19891
19892 * fontset.c (Fset_fontset_font): Fix docstring.
19893
19894 * lisp.h (detect_coding_system): Adjust prototype.
19895
19896 * fileio.c (kill_workbuf_unwind): Delete this function.
19897 (Finsert_file_contents): Adjust the call of detect_coding_system.
19898 Get conversion_buffer by code_conversion_save. Use the macro
19899 CODING_MAY_REQUIRE_DECODING. After decoding, update
19900 coding_system.
19901
19902 * coding.h (make_conversion_work_buffer): Delete extern.
19903 (code_conversion_save): Extern it.
19904
19905 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19906 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19907 (decode_coding_utf_8): Don't do eol converion.
19908 (detect_coding_utf_16): Check coding->src_chars, not
19909 coding->src_bytes. Add heuristics for those that have no signature.
19910 (decode_coding_emacs_mule, decode_coding_iso_2022)
19911 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19912 Don't do eol converion.
19913 (adjust_coding_eol_type): Return a new coding system.
19914 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19915 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19916 each change.
19917 (decode_coding): Pay attention to undo_list. Do eol conversion for
19918 all types of coding-systems (if necessary).
19919 (Vcode_conversion_work_buf_list): Delete it.
19920 (Vcode_conversion_reused_workbuf): Rename from
19921 Vcode_conversion_reused_work_buf.
19922 (Vcode_conversion_workbuf_name): New variable.
19923 (reused_workbuf_in_use): New variable.
19924 (make_conversion_work_buffer): Delete the arg DEPTH.
19925 (code_conversion_restore): Change argument to cons.
19926 (code_conversion_save): Delete the argument BUFFER. Change callers.
19927 (detect_coding_system): New argument src_chars. Change callers.
19928 Fix for utf-16 detection.
19929 (init_coding_once): Don't use ISO_carriage_return.
19930 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19931 reused_workbuf_in_use.
19932
199332008-02-01 Kenichi Handa <handa@m17n.org>
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 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19941 HANDLED_RECOMPUTE_PROPS.
19942
19943 * coding.c (Fdefine_coding_system_internal): Fix checking of
19944 ascii compatibility.
19945
199462008-02-01 Kenichi Handa <handa@m17n.org>
19947
19948 * charset.c (find_charsets_in_text): Delete unused locale variable.
19949 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19950
19951 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19952 Resync charset_list to Vemacs_mule_charset_list.
19953
19954 * keymap.c (store_in_keymap): Pay attention to the case that idx
19955 is a cons specifying a character range.
19956
199572008-02-01 Kenichi Handa <handa@m17n.org>
19958
19959 * composite.c (update_compositions): Bind inhibit-read-only, etc
19960 to t before calling remove-list-of-text-properties.
19961
19962 * print.c (print_object): Always print ASCII chars as is.
19963
199642008-02-01 Kenichi Handa <handa@m17n.org>
19965
19966 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19967
19968 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19969 is a char table.
19970
199712008-02-01 Kenichi Handa <handa@m17n.org>
19972
19973 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19974
199752008-02-01 Kenichi Handa <handa@m17n.org>
19976
19977 * xfaces.c (set_lface_from_font_name): Fix for the case that
19978 FONTNAME is not fontset name.
19979
199802008-02-01 Kenichi Handa <handa@m17n.org>
19981
19982 * fns.c (base64_encode_1): Fix previous change.
19983
199842008-02-01 Kenichi Handa <handa@m17n.org>
19985
19986 * fontset.c (set_fontset_font): New function.
19987 (Fset_fontset_font): If a font is specified for a charset, use
19988 map_charset_chars to store the font spec in a fontset.
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * fontset.c (fontset_face): Create a fallback fontset on demand.
19993 (make_fontset): Don't create a fallback fontset here.
19994 (free_face_fontset): Free a fallback fontset (if any) too.
19995 (n_auto_fontsets): Delete this variable.
19996 (auto_fontset_alist): New variable.
19997 (new_fontset_from_font_name): Check auto_fontset_alist.
19998 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19999 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20000 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20001 Defsubr Sfontset_list_all.
20002
200032008-02-01 Kenichi Handa <handa@m17n.org>
20004
20005 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20006
200072008-02-01 Kenichi Handa <handa@m17n.org>
20008
20009 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20010
200112008-02-01 Kenichi Handa <handa@m17n.org>
20012
20013 * editfns.c (Fgoto_char): Fix docstring.
20014
200152008-02-01 Kenichi Handa <handa@m17n.org>
20016
20017 * insdel.c (insert_from_gap): Adjust intervals correctly.
20018
200192008-02-01 Jason Rumney <jasonr@gnu.org>
20020
20021 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20022 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20023 (w32_initialize): Try to load it.
20024 (x_get_font_repertory): Use it if available.
20025 (w32_encode_char): Add shortcut for unicode output.
20026
20027 * w32fns.c (w32_load_system_font): Default charset to -1.
20028 (x_to_w32_charset): Match all fonts for unicode.
20029 (w32_to_x_charset): New parameter matching. Don't return partial
20030 or wildcard charsets.
20031 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20032 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20033 (w32_to_x_font): Match charset to real charset.
20034 (enum_font_cb2): Always list unicode versions.
20035
20036 * makefile.w32-in (temacs): Increase EMHEAP.
20037
200382008-02-01 Jason Rumney <jasonr@gnu.org>
20039
20040 * w32term.c (w32_encode_char): New charset parameter.
20041 font_info.encoding becomes encoding_type.
20042 (x_get_font_repertory): New function. Warning: stub only!
20043 (x_new_font): Return quickly if font already set.
20044 (x_new_fontset): fontsetname parameter is Lisp_Object.
20045 Use new fs_query_fontset. Try new_fontset_from_font_name.
20046 Use fontset_name for return value.
20047
20048 * w32term.h: Declare x_get_font_repertory.
20049
20050 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20051 place of find_charset_in_text. Use encode_coding_object in place
20052 of encode_coding.
20053 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20054 decode_coding.
20055
20056 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20057 of x_new_fontset.
20058 (w32_load_system_font): Initialize charset as unicode.
20059 font_info.encoding becomes encoding_type.
20060 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20061 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20062 (syms_of_w32fns): Set get_font_repertory_func.
20063
20064 * w32console.c: Include character.h. Use terminal_encode_buffer
20065 from term.c.
20066 (write_glyphs): Use new version of encode_terminal_code. Use
20067 encode_coding_object in place of encode_coding.
20068
20069 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20070 encoding becomes encoding_type.
20071
20072 * term.c (terminal_encode_buffer): Make externally visible.
20073
20074 * makefile.w32-in: Add character.h dependancies.
20075 (character.o, chartab.o): New targets.
20076
200772008-02-01 Kenichi Handa <handa@m17n.org>
20078
20079 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20080 CODING_ID_EOL_TYPE.
20081
200822008-02-01 Andreas Schwab <schwab@suse.de>
20083
20084 * coding.c (produce_chars): Revert last change.
20085
200862008-02-01 Kenichi Handa <handa@m17n.org>
20087
20088 * charset.h (charset_unicode): Extern it.
20089
20090 * charset.c (string_xstring_p): Check by (C >= 0x100).
20091 (find_charsets_in_text): Change format of the arc CHARSETS. New
20092 arg MULTIBYTE.
20093 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20094 change of find_charsets_in_text.
20095 (Fsplit_char): Fix doc. Never return unknown.
20096
20097 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20098
20099 * coding.c (Fdefine_coding_system_alias): Update
20100 Vcoding_system_list.
20101
20102 * fontset.c (load_font_get_repertory): Pay attention to the case
20103 that ENCODING of a font is specified by a char-table.
20104
20105 * xterm.c (x_get_font_repertory): Handle the case that the
20106 encoding of font is other than Unicode.
20107
201082008-02-01 Kenichi Handa <handa@m17n.org>
20109
20110 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20111 if a character is encodable by the terminal coding system. If
20112 not, produces proper number of `?'s. Update
20113 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20114 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20115
201162008-02-01 Kenichi Handa <handa@m17n.org>
20117
20118 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20119 variables.
20120 (encode_terminal_code): Change argument. Encode multiple
20121 characters at once. Store the result of encoding in
20122 terminal_encode_buffer.
20123 (write_glyphs, insert_glyphs): Adjust for the change of
20124 encode_terminal_code.
20125 (term_init): Initialize terminal_encode_buffer and
20126 terminal_encode_buf_size.
20127
20128 * coding.c (consume_chars): If coding->src_object is nil, don't
20129 check annotation.
20130
201312008-02-01 Kenichi Handa <handa@m17n.org>
20132
20133 * character.c (char_string): Use ASCII_CHAR_P instead of
20134 SINGLE_BYTE_CHAR_P.
20135
201362008-02-01 Kenichi Handa <handa@m17n.org>
20137
20138 * xdisp.c (handle_auto_composed_prop): Check if the last
20139 characters of auto-composed region is newly composed with the
20140 following characters.
20141 (handle_composition_prop): Fix checking of point being inside
20142 composition.
20143
201442008-02-01 Kenichi Handa <handa@m17n.org>
20145
20146 * fns.c (concat): Don't change multibyteness of the result by
20147 concatenating an 8-bit character.
20148
20149 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20150 multibyteness of the result when newelt is an 8-bit character.
20151
201522008-02-01 Dave Love <fx@gnu.org>
20153
20154 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20155 EMACS_INT.
20156
20157 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20158
20159 * xfaces.c (face_numeric_value): Declare dim size_t.
20160 (Finternal_lisp_face_equal_p): Remove unused f.
20161
20162 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20163 (MATRIX_ROW): Remove unused vars.
20164 (draw_glyphs, x_insert_glyphs, fast_find_position)
20165 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20166 byte/char counts.
20167
20168 * regex.c (regex_compile): Remove unused var.
20169
20170 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20171
20172 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20173 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20174
20175 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20176
20177 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20178
20179 * fileio.c (Fwrite_region): Remove unused var.
20180
20181 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20182 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20183
20184 * composite.c (Fremove_list_of_text_properties): Declare.
20185
20186 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20187 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20188 (coding_inherit_eol_type): Remove unused attrs.
20189 (detect_coding): Cast arg of detect_eol.
20190
20191 * charset.c (syms_of_charset): Remove unused var p.
20192 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20193 byte/char counts.
20194
20195 * casetab.c (set_case_table): Remove unused var.
20196
20197 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20198 unused vars.
20199
202002008-02-01 Dave Love <fx@gnu.org>
20201
20202 * xterm.c (x_bitmap_mask): Declare.
20203
202042008-02-01 Dave Love <fx@gnu.org>
20205
20206 * xterm.c (x_term_init): Fix type error.
20207
20208 * lisp.h: Add Funibyte_char_to_multibyte.
20209
20210 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20211 (Fset_coding_system_priority): Doc fix.
20212
20213 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20214
20215 * indent.c (check_composition): Make start and end EMACS_INT.
20216
20217 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20218
20219 * xdisp.c (handle_composition_prop, check_point_in_composition):
20220 Make buffer positions EMACS_INT.
20221
20222 * composite.c (find_composition, run_composition_function)
20223 (update_compositions, Ffind_composition_internal): Make buffer
20224 positions EMACS_INT.
20225
20226 * composite.h (find_composition, update_compositions): Make
20227 position args EMACS_INT.
20228
20229 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20230
20231 * intervals.c (get_property_and_range):
20232 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20233
20234 * unexalpha.c: Don't include varargs.h.
20235
202362008-02-01 Dave Love <fx@gnu.org>
20237
20238 * coding.h (ENCODE_UTF_8): New.
20239
20240 * Makefile.in (gtkutil.o): Depend on coding.h.
20241
20242 * coding.c (Fset_coding_system_priority): Doc fix.
20243
202442008-02-01 Kenichi Handa <handa@m17n.org>
20245
20246 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20247 the case of auto saving.
20248
202492008-02-01 Andreas Schwab <schwab@suse.de>
20250
20251 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20252 `range' from GC.
20253
202542008-02-01 Kenichi Handa <handa@m17n.org>
20255
20256 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20257
202582008-02-01 Kenichi Handa <handa@m17n.org>
20259
20260 * fileio.c (choose_write_coding_system): Return a decided coding system.
20261 (Fwrite_region): Set Vlast_coding_system_used to the return value
20262 of choose_write_coding_system.
20263
202642008-02-01 Kenichi Handa <handa@m17n.org>
20265
20266 * charset.c (Fset_charset_priority): Pay attention to duplicated
20267 arguments.
20268
20269 * coding.c (QCcategory): New variable.
20270 (syms_of_coding): Defsym it. Set all elements of
20271 Vcoding_category_table and their symbol values.
20272 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20273 coding-category-XXX, and coding-category-list.
20274 (Fdefine_coding_system_internal): Add category in the plist.
20275
202762008-02-01 Kenichi Handa <handa@m17n.org>
20277
20278 * callproc.c (Fcall_process): Handle carryover correctly.
20279
20280 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20281 (raw_text_coding_system): Check NILP (coding_system).
20282 (coding_inherit_eol_type): Check NILP (coding_system) and
20283 NILP (parent).
20284 (consume_chars): Fix for the case of raw-text.
20285
20286 * process.c (read_process_output): Handle carryover correctly.
20287
202882008-02-01 Dave Love <fx@gnu.org>
20289
20290 * regex.c (re_search_2): Fix last change.
20291
202922008-02-01 Kenichi Handa <handa@m17n.org>
20293
20294 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20295 target_multibyte. Even in a unibyte case, return a converted
20296 multibyte char.
20297 (GET_CHAR_AFTER): New macro.
20298 (PATFETCH): Translate via multibyte char.
20299 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20300 (SETUP_MULTIBYTE_RANGE): New macro.
20301 (regex_compile): Setup compiled code so that its multibyteness
20302 matches that of a target. Fix the handling of "[X-YZ]" using
20303 SETUP_MULTIBYTE_RANGE.
20304 (analyse_first) <charset>: For filling fastmap for all multibyte
20305 characters, don't check by BASE_LEADING_CODE_P.
20306 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20307 the same as RE_MULTIBYTE_P (bufp) now.
20308 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20309 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20310 (TRANSLATE_VIA_MULTIBYTE): New macro.
20311 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20312 It is the same as RE_MULTIBYTE_P (bufp) now.
20313 <exactn>: Translate via multibyte.
20314 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20315 translate it.
20316 <charset, charset_not>: Fetch a character by
20317 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20318 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20319 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20320 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20321 by GET_CHAR_AFTER.
20322 (bcmp_translate): Likewise.
20323
20324 * search.c (compile_pattern): Check the member target_multibyte,
20325 not the member multibyte of buf.
20326
20327 * lread.c (read1): While reading a string, set force_singlebyte
20328 and force_multibyte correctly.
20329
20330 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20331 up of unibyte_to_multibyte_table.
20332
203332008-02-01 Kenichi Handa <handa@m17n.org>
20334
20335 * coding.c (setup_coding_system): If coding has
20336 post-read-conversion or pre-write-conversion, set
20337 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20338 respectively.
20339 (decode_coding_gap): Run post-read-conversion if any.
20340
20341 * fileio.c (Finsert_file_contents): Even if we read into a
20342 unibyte buffer, check if we must decode the result or not.
20343
203442008-02-01 Kenichi Handa <handa@m17n.org>
20345
20346 * coding.c (make_conversion_work_buffer): Change the work buffer
20347 name to the same one as that of Emacs 21.
20348
203492008-02-01 Kenichi Handa <handa@m17n.org>
20350
20351 * coding.h (make_conversion_work_buffer): Adjust prototype.
20352 (code_conversion_restore): Don't extern it.
20353
20354 * coding.c (detected_mask): Delete unused variable.
20355 (decode_coding_iso_2022): Pay attention to the byte sequence of
20356 CTEXT extended segment, and retain those bytes as is.
20357 (decode_coding_ccl): Delete unused variable `valids'.
20358 (setup_coding_system): Delete unused variable `category'.
20359 (consume_chars): Delete unused variable `category'. Make it work
20360 for non-multibyte case.
20361 (make_conversion_work_buffer): Change argument.
20362 (saved_coding): Delete unused variable.
20363 (code_conversion_restore): Don't check saved_coding->destination.
20364 (code_conversion_save): New function.
20365 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20366 instead of record_unwind_protect.
20367 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20368 (detect_coding_system): Delete unused variable `mask'.
20369 (Fdefine_coding_system_internal): Delete unused variable id.
20370
20371 * fileio.c (kill_workbuf_unwind): New function.
20372 (Finsert_file_contents): On replacing, call
20373 make_conversion_work_buffer with correct args, and call
20374 record_unwind_protect with the first arg kill_workbuf_unwind.
20375
20376 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20377
203782008-02-01 Kenichi Handa <handa@m17n.org>
20379
20380 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20381 (fontset_add): Fix for the case that TO is less than TO1.
20382 (Ffontset_info): Don't use fallback fontset on checking the
20383 default fontset.
20384 (dump_fontset): New function for debugging.
20385
20386 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20387 coding_type is Qcharset.
20388
203892008-02-01 Kenichi Handa <handa@m17n.org>
20390
20391 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20392 (map_char_table): Don't inherit the value from the parent on
20393 initializing VAL. Adjust for the above change.
20394
203952008-02-01 Kenichi Handa <handa@m17n.org>
20396
20397 * coding.c (Qsignature, Qendian): Delete these variables.
20398 (syms_of_coding): Don't initialize them.
20399 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20400 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20401 detect_info->found.
20402 (decode_coding_utf_16): Don't detect BOM here.
20403 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20404 is NOT utf_16_without_bom.
20405 (setup_coding_system): For a coding system of type utf-16, check
20406 if the attribute :endian is Qbig or not (not nil or not), and set
20407 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20408 (detect_coding): If coding type is utf-16 and BOM detection is
20409 required, detect it.
20410 (Fdefine_coding_system_internal): For a coding system of type
20411 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20412
204132008-02-01 Kenichi Handa <handa@m17n.org>
20414
20415 * coding.c (coding_set_source): Fix for the case that the current
20416 buffer is different from coding->src_object.
20417 (decode_coding_object): Don't use the conversion work buffer if
20418 DST_OBJECT is a buffer.
20419
204202008-02-01 Dave Love <fx@gnu.org>
20421
20422 * lread.c (read_emacs_mule_char) [len==2]: Index
20423 emacs_mule_charset correctly.
20424
204252008-02-01 Dave Love <fx@gnu.org>
20426
20427 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20428 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20429 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20430 treated specially.)
20431 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20432 (detected_mask): Remove Big5 bits.
20433
204342008-02-01 Kenichi Handa <handa@m17n.org>
20435
20436 The following changes are to make the font rescaling facility
20437 compatible with Emacs 21.
20438
20439 * xfaces.c (Vface_font_rescale_alist): Rename from
20440 Vface_resizing_fonts.
20441 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20442 (font_rescale_ratio): Rename from font_resizing_ratio.
20443 (split_font_name): Set font->rescale_ratio.
20444 (better_font_p): Pay attention to font->rescale_ratio.
20445 (build_scalable_font_name): Likewise. Change RESX, and RESY
20446 fields.
20447 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20448
204492008-02-01 Kenichi Handa <handa@m17n.org>
20450
20451 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20452 (Qutf_16_le): Remove these variables.
20453 (syms_of_coding): Don't DEFSYM them.
20454 (decode_coding_utf_16): Fix handling of BOM.
20455 (encode_coding_utf_16): Fix handling of BOM.
20456
204572008-02-01 Kenichi Handa <handa@m17n.org>
20458
20459 * fileio.c (Finsert_file_contents): On replacing, before decoding
20460 the file into the work buffer, set point of the work buffer to the end.
20461
204622008-02-01 Dave Love <fx@gnu.org>
20463
20464 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20465
204662008-02-01 Dave Love <fx@gnu.org>
20467
20468 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20469 and fix C types.
20470
204712008-02-01 Kenichi Handa <handa@m17n.org>
20472
20473 * xdisp.c (SKIP_GLYPHS): New macro.
20474 (set_cursor_from_row): Pay attention to string display properties.
20475
20476 * category.c (copy_category_entry): Fix for the case that RANGE
20477 is an integer.
20478
20479 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20480
20481 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20482
204832008-02-01 Kenichi Handa <handa@m17n.org>
20484
20485 * charset.c (Fcharset_id_internal): New function.
20486 (syms_of_charset): Defsubr it.
20487
20488 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20489 with the last arg charset_list acquired from coding.
20490 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20491 the attribute coding_attr_ccl_valids.
20492
20493 * coding.h (enum define_coding_ccl_arg_index): Set the first
20494 member coding_arg_ccl_decoder to coding_arg_max.
20495
20496 * ccl.h (ccl_driver): Adjust prototype.
20497
20498 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20499 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20500 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20501 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20502 last arg Qnil.
20503
205042008-02-01 Kenichi Handa <handa@m17n.org>
20505
20506 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20507 call encode_char.
20508
20509 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20510
205112008-02-01 Dave Love <fx@gnu.org>
20512
20513 * composite.c (syms_of_composite): Make composition_hash_table weak.
20514
205152008-02-01 Kenichi Handa <handa@m17n.org>
20516
20517 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20518 (font_name_registry): Don't extern them.
20519 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20520
20521 * fontset.h (Qfontset): Don't extern it.
20522 (new_fontset_from_font_name): Extern it.
20523
20524 * fontset.c: Give 8 extra slots to fontset objects.
20525 (Qfontset_info): New variable.
20526 (syms_of_fontset): Defsym it.
20527 (FONTSET_FALLBACK): New macro.
20528 (fontset_face): Try also the default fontset.
20529 (make_fontset): Realize a fallback fontset from the default fontset.
20530 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20531 using split_font_name_into_vector and build_font_name_from_vector.
20532 (Fset_fontset_font): Access the elements of font_spec by enum
20533 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20534 name by using split_font_name_into_vector.
20535 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20536 generate a proper font name from the fontset name. Update
20537 Vfontset_alias_alist.
20538 (n_auto_fontsets): New variable.
20539 (new_fontset_from_font_name): New function.
20540 (Ffont_info): Store the information about fonts generated from the
20541 default fontset in the first extra slot of the returned char-table.
20542
20543 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20544 (font_name_registry): Delete function.
20545 (split_font_name_into_vector): New function.
20546 (build_font_name_from_vector): New function.
20547 (font_list): The argument REGISTRY is now a list of registry names.
20548 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20549 specifies an explicit font name, return the name as is. Make a
20550 list of registy names.
20551
20552 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20553 of x_new_fontset.
20554 (Fx_create_frame): Don't call x_new_fontset here. Just use
20555 x_list_fonts to check the existence of fonts.
20556
20557 * xterm.h (x_new_fontset): Adjust prototype.
20558
20559 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20560 string. Use new_fontset_from_font_name to create a fontset from a
20561 font name.
20562
205632008-02-01 Kenichi Handa <handa@m17n.org>
20564
20565 * syntax.c (Vfind_word_boundary_function_table): New name for
20566 Vnext_word_boundary_function_table.
20567 (find-word-boundary-function-table): New name for
20568 next-word-boundary-function-table.
20569
205702008-02-01 Dave Love <fx@gnu.org>
20571
20572 * Makefile.in: Fix some dependencies.
20573
20574 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20575 set it to nil before returning.
20576
20577 * composite.c (update_compositions): Fix type error.
20578
20579 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20580
205812008-02-01 Kenichi Handa <handa@m17n.org>
20582
20583 * xterm.c (x_new_font): Optimize for the case that the font is
20584 already set for the frame.
20585
205862008-02-01 Kenichi Handa <handa@m17n.org>
20587
20588 * chartab.c (char_table_ascii): Check if the char table contents
20589 is sub-char-table or not.
20590 (char_table_set, char_table_set_range): Fix argument to
20591 char_table_ascii.
20592
20593 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20594 (detect_coding_utf_8, detect_coding_utf_16)
20595 (detect_coding_emacs_mule, detect_coding_iso_2022)
20596 (detect_coding_sjis, detect_coding_big5)
20597 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20598 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20599 sequence is valid in this coding system. Change callers.
20600 (MAX_ANNOTATION_LENGTH): New macro.
20601 (ADD_ANNOTATION_DATA): New macro.
20602 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20603 ADD_ANNOTATION_DATA. Change the format of annotation data.
20604 (ADD_CHARSET_DATA): New macro.
20605 (emacs_mule_char): New argument ID. Change callers.
20606 (decode_coding_emacs_mule, decode_coding_iso_2022)
20607 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20608 Produce charset annotation data in coding->charbuf.
20609 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20610 to charset annotation data in coding->charbuf.
20611 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20612 coding->common_flags if the coding system is iso-2022 based and
20613 uses designation.
20614 (produce_composition): Adjust for the new annotation data format.
20615 (produce_charset): New function.
20616 (produce_annotation): Handle charset annotation.
20617 (handle_composition_annotation, handle_charset_annotation): New
20618 functions.
20619 (consume_chars): Handle charset annotation. Utilize the above two
20620 functions.
20621 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20622 buffer, get the deleted text as a string and set
20623 coding->src_object to that string.
20624 (detect_coding, detect_coding_system): Use the new struct
20625 coding_detection_info.
20626
20627 * coding.h (struct coding_detection_info): New structure.
20628 (struct coding_system): Adjust prototype of the member `detector'.
20629 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20630
206312008-02-01 Kenichi Handa <handa@m17n.org>
20632
20633 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20634
206352008-02-01 Dave Love <fx@gnu.org>
20636
20637 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20638 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20639 to new local and nullify apropos_accumulate before returning.
20640 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20641
206422008-02-01 Kenichi Handa <handa@m17n.org>
20643
20644 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20645 correctly.
e3eea1fc 20646
aac0c6e3
MR
206472008-02-01 Dave Love <fx@gnu.org>
20648
20649 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20650
206512008-02-01 Kenichi Handa <handa@m17n.org>
20652
20653 The following changes are to make character composition happen
20654 automatically on displaying.
20655
20656 * Makefile.in (lisp, shortlisp): Add composite.elc.
20657
20658 * composite.h (Qauto_composed, Vauto_composition_function)
20659 (Qauto_composition_function): Extern them.
20660
20661 * composite.c (Vcomposition_function_table)
20662 (Qcomposition_function_table): Delete variables.
20663 (Qauto_composed, Vauto_composition_function)
20664 (Qauto_composition_function): New variables.
20665 (run_composition_function): Don't call
20666 compose-chars-after-function.
20667 (update_compositions): Clear `auto-composed' text property.
20668 (compose_chars_in_text): Delete this function.
20669 (syms_of_composite): Staticpro Qauto_composed and
20670 Qauto_composition_function. Declare Vauto_composition_function as
20671 a Lisp variable.
20672
20673 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20674
20675 * xdisp.c (it_props): Add an entry for Qauto_composed.
20676 (handle_auto_composed_prop): New function.
20677
20678 * xselect.c (selection_data_to_lisp_data): Don't call
20679 compose_chars_in_text.
20680
206812008-02-01 Dave Love <fx@gnu.org>
20682
20683 * keyboard.c (read_char): Modify checking around use of
20684 Vkeyboard_translate_table.
20685
20686 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20687 and fix C types.
20688
206892008-02-01 Kenichi Handa <handa@m17n.org>
20690
20691 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20692 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20693 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20694 the case that the last byte is '\r' correctly.
20695 (decode_coding): Flush out the unprocessed data correctly.
20696 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20697
206982008-02-01 Dave Love <fx@gnu.org>
20699
20700 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20701 Add XK_ISO... case.
20702 (xaw_scroll_callback): Revert last change.
20703
207042008-02-01 Kenichi Handa <handa@m17n.org>
20705
20706 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20707
207082008-02-01 Kenichi Handa <handa@m17n.org>
20709
20710 * xfaces.c (Vface_resizing_fonts): New variable.
20711 (struct font_name): New member `resizing_ratio'.
20712 (font_resizing_ratio): New function.
20713 (split_font_name): Set font->resizing_ratio.
20714 (better_font_p): Pay attention to font->resizing_ratio.
20715 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20716 RESX, and RESY fields.
20717 (try_alternative_families): Try scalable fonts if
20718 Vscalable_fonts_allowed is not Qt.
20719 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20720
207212008-02-01 Dave Love <fx@gnu.org>
20722
20723 * xterm.c (xaw_scroll_callback): Cast correctly.
20724
207252008-02-01 Dave Love <fx@gnu.org>
20726
20727 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20728 (lispy_kana_keys): Comment out.
20729 (make_lispy_event) [XK_kana_A]: Comment out.
20730
20731 * xterm.c (xaw_scroll_callback): Cast call_data.
20732 (XTread_socket): Deal with ASCII keysyms.
20733 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20734
207352008-02-01 Dave Love <fx@gnu.org>
20736
20737 * xterm.c (Vx_keysym_table): New.
20738 (syms_of_xterm): Initialize it.
20739 (XTread_socket): Use it.
20740 From head: Eliminate incorrect optimization that tried to avoid
20741 decoding the output of X*LookupString.
20742 (x_get_font_repertory): Delete charset declaration.
20743
207442008-02-01 Kenichi Handa <handa@m17n.org>
20745
20746 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20747 return 0.
20748 (Fdefine_coding_system_internal): Setup
20749 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20750
207512008-02-01 Dave Love <fx@gnu.org>
20752
20753 * coding.c (Fcheck_coding_system): Doc fix.
20754
20755 * editfns.c (Finsert_byte): Return a proper value.
20756
207572008-02-01 Kenichi Handa <handa@m17n.org>
20758
20759 * coding.c (decode_coding): Fix args to translate_chars. Pay
20760 attention to Vstandard_translation_table_for_decode.
20761 (encode_coding): Fix args to translate_chars. Pay attention to
20762 Vstandard_translation_table_for_encode.
20763
20764 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20765 SINGLE_BYTE_CHAR_P.
20766
20767 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20768 not by SINGLE_BYTE_CHAR_P.
20769
20770 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20771 SINGLE_BYTE_CHAR_P.
20772
20773 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20774 SINGLE_BYTE_CHAR_P.
20775
20776 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20777 by SINGLE_BYTE_CHAR_P.
20778
20779 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20780 SINGLE_BYTE_CHAR_P.
20781
207822008-02-01 Dave Love <fx@gnu.org>
20783
20784 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20785
207862008-02-01 Dave Love <fx@gnu.org>
20787
20788 * fns.c (Flanginfo): Fix typo.
20789
20790 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20791
207922008-02-01 Kenichi Handa <handa@m17n.org>
20793
20794 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20795 (detect_coding_emacs_mule, detect_coding_iso_2022)
20796 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20797 incomplete byte sequence. Don't update *mask when correctly detected.
20798 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20799 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20800 (detect_coding, detect_coding_system): Adjust for the changes above.
20801
208022008-02-01 Kenichi Handa <handa@m17n.org>
20803
20804 * character.c (char_string): Rename from
20805 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20806 (string_char): Rename from string_char.
20807
20808 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20809 if C is greater than MAX_3_BYTE_CHAR.
20810 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20811 string_char instead of string_char_with_unification.
20812
208132008-02-01 Dave Love <fx@gnu.org>
20814
20815 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20816
208172008-02-01 Kenichi Handa <handa@m17n.org>
20818
20819 * keymap.c (push_key_description): Pay attention to force_multibyte.
20820
20821 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20822
208232008-02-01 Dave Love <fx@gnu.org>
20824
20825 * charset.c (define_charset_internal): Rename `supprementary'.
20826
20827 * Makefile.in (lisp, shortlisp): Remove latin-N.
20828
208292008-02-01 Dave Love <fx@gnu.org>
20830
20831 * xfns.c (x_window, x_window): Use use_xim.
20832
20833 * xterm.c (use_xim): Initialize.
20834 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20835 (x_term_init): Maybe set use_xim.
20836
20837 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20838
208392008-02-01 Kenichi Handa <handa@m17n.org>
20840
20841 * search.c (search_buffer): Fix case-fold-search of multibyte
20842 characters.
20843 (boyer_moore): Rename the last argument to char_high_bits.
20844
208452008-02-01 Kenichi Handa <handa@m17n.org>
20846
20847 * xdisp.c (display_string): Fix for the case of zero width glyph.
20848
20849 * xfns.c (x_set_font): Change the error message of the case that
20850 x_new_fontset returns Qt.
20851
20852 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20853 (Finternal_set_lisp_face_attribute): Use signal_error for the
20854 error of invalid fontset.
20855
20856 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20857 fontset, return Qt.
20858
208592008-02-01 Dave Love <fx@gnu.org>
20860
20861 * unexelf.c (unexec): Make .got handling not SGI-specific.
20862
20863 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20864
20865 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20866
20867 * keyboard.c (read_key_sequence): Fix type error.
20868
20869 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20870 type error.
20871
20872 * fontset.c (fontset_add): Return Lisp_Object.
20873
208742008-02-01 Dave Love <fx@gnu.org>
20875
20876 * charset.h (charset_ordered_list_tick): Declare extern.
20877
208782008-02-01 Kenichi Handa <handa@m17n.org>
20879
20880 The following changes (and some of 2008-02-01 changes of mine) are
20881 for handling syntax, category, and case conversion for unibyte
20882 characters by converting them to multibyte on the fly. With these
20883 changes, we don't have to setup syntax and case tables for unibyte
20884 characters in each language environment.
20885
20886 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20887 multibyte if necessary.
20888
20889 * bytecode.c (Fbyte_code): Likewise.
20890
20891 * character.h (LEADING_CODE_LATIN_1_MIN)
20892 (LEADING_CODE_LATIN_1_MAX): New macros.
20893 (unibyte_to_multibyte_table): Extern it.
20894 (unibyte_char_to_multibyte): New macro.
20895 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20896 (CHAR_LEADING_CODE): New macro.
20897 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20898
20899 * character.c (unibyte_to_multibyte_table): New variable.
20900 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20901 (multibyte_char_to_unibyte): If C is an eight-bit character,
20902 convert it to the corresponding byte value.
20903
20904 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20905 not 1, signals an error. Update the elements of
20906 unibyte_to_multibyte_table.
20907 (init_charset_once): Initialize unibyte_to_multibyte_table.
20908 (syms_of_charset): Define the charset `iso-8859-1'.
20909
20910 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20911 as is without converting it to unibyte. In a unibyte buffer,
20912 convert C to multibyte before checking the syntax.
20913
20914 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20915
20916 * minibuf.c (Fminibuffer_complete_word): Use the macro
20917 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20918
20919 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20920
20921 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20922 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20923 that is zero, convert an eight-bit char to multibyte.
20924 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20925 non-emacs case.
20926 (PATFETCH): Convert an eight-bit char to multibyte.
20927 (HANDLE_UNIBYTE_RANGE): New macro.
20928 (regex_compile): Setup the compiled pattern for multibyte chars
20929 even if the given regex string is unibyte. Use PATFETCH_RAW
20930 instead of PATFETCH in many places. To handle `charset'
20931 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20932 only for ASCII chars.
20933 (analyse_first) <exactn>: Simplify because the compiled pattern
20934 is multibyte.
20935 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20936 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20937 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20938 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20939 multibyte always 1.
20940 (re_search_2): In emacs, set the locale variable multibyte to 1,
20941 otherwise to 0. New local variable target_multibyte. Check it
20942 to decide the multibyteness of STR1 and STR2. If
20943 target_multibyte is zero, convert unibyte chars to multibyte
20944 before translating and checking fastmap.
20945 (TARGET_CHAR_AND_LENGTH): New macro.
20946 (re_match_2_internal): In emacs, set the locale variable multibyte
20947 to 1, otherwise to 0. New local variable target_multibyte. Check
20948 it to decide the multibyteness of STR1 and STR2. Use
20949 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20950 <charset, charset_not>: If multibyte is nonzero, check fastmap
20951 only for ASCII chars. Call bcmp_translate with
20952 target_multibyte, not with multibyte.
20953 <begline>: Declare the local variable C as `unsigned'.
20954 (bcmp_translate): Change the last arg name to target_multibyte.
20955
20956 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20957 the regexp pattern and the matching target. Set cp->buf.multibyte
20958 to the multibyteness of the regexp pattern. Set
20959 cp->but.target_multibyte to the multibyteness of the matching target.
20960 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20961 FETCH_STRING_CHAR_ADVANCE.
20962 (Freplace_match): Convert unibyte chars to multibyte.
20963
20964 * syntax.c (char_quoted, back_comment, scan_words)
20965 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20966 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20967 unibyte chars to multibyte.
20968 (skip_chars): Delete the arg syntaxp, and move the code for
20969 handling syntaxes to skip_syntaxes. Change callers.
20970 Fix the case that the multibyteness of STRING and the current
20971 buffer doesn't match.
20972 (skip_syntaxes): New function.
20973 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20974 SINGLE_BYTE_CHAR_P.
20975
209762008-02-01 Kenichi Handa <handa@m17n.org>
20977
20978 * xfaces.c (QCfontset): New variable.
20979 (LFACE_FONTSET): New macro.
20980 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20981 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20982 (Finternal_set_lisp_face_attribute)
20983 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20984 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20985 check also LFACE_FONTSET_INDEX.
20986 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20987 attrs[LFACE_FONT_INDEX].
20988 (syms_of_xfaces): Intern and staticpro QCfontset.
20989
20990 * dispextern.h (enum lface_attribute_index): New member
20991 LFACE_FONTSET_INDEX.
20992
20993 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20994
209952008-02-01 Kenichi Handa <handa@m17n.org>
20996
20997 * coding.c (coding_set_destination): Fix coding->destination for
20998 the case converting a region.
20999 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21000 (encode_coding_object): Fix coding->dst_pos and
21001 coding->dst_pos_byte for the case converting a region.
21002
21003 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21004
21005 * character.h (BYTE8_STRING): New macro.
21006
21007 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21008
210092008-02-01 Kenichi Handa <handa@m17n.org>
21010
21011 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21012 characters by octal form.
21013
21014 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21015
21016 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21017 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21018 _fetch_multibyte_char_len.
21019 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21020
21021 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21022
21023 * casefiddle.c (casify_object): Simplify. Handle the case that
21024 the case conversion change the byte length.
21025 (casify_region): Likewise.
21026
21027 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21028
21029 * character.c (_fetch_multibyte_char_len): Delete this variable.
21030 (syms_of_character): Setup Vprintable_chars.
21031
21032 * editfns.c (Fchar_equal): Fix for the unibyte case.
21033 (Finsert_byte): New function.
21034 (syms_of_editfns): Defsubr it.
21035
21036 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21037 of direct code 0x3ffff.
21038
21039 * search.c (Freplace_match): Fix for the unibyte case.
21040
210412008-02-01 Kenichi Handa <handa@m17n.org>
21042
21043 * lread.c (safe_to_load_p): Fix the logic.
21044
21045 * syntax.c (scan_words): Don't treat characters belonging to
21046 different scripts as constituting a word.
21047
21048 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21049
21050 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21051
21052 * emacs.c (main): In the case of --unibyte, instead of aborting on
21053 finding non-empty buffer, make it unibyte.
21054
210552008-02-01 Kenichi Handa <handa@m17n.org>
21056
21057 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21058 to create a fontset.
21059
210602008-02-01 Dave Love <fx@gnu.org>
21061
21062 * character.c (Funibyte_char_to_multibyte): Doc fix.
21063
21064 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21065
210662008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * fontset.c (fontset_add): Make the type `int'.
21069 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21070
21071 * character.c (unibyte_char_to_multibyte)
21072 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21073 charset_unibyte, not charset_primary.
21074
21075 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21076
21077 * charset.c (charset_unibyte): Rename from charset_primary.
21078 (Funibyte_charset): Rename from Fprimary_charset.
21079 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21080 (syms_of_charset): Adjust for the above changes.
21081
21082 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21083 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21084 it->multibyte_p is zero.
21085
21086 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21087 Delete extern.
21088
210892008-02-01 Kenichi Handa <handa@m17n.org>
21090
21091 * coding.c (Fdefine_coding_system_internal): Fix category setting
21092 for a coding system of type iso-2022.
21093
210942008-02-01 Kenichi Handa <handa@m17n.org>
21095
21096 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21097
210982008-02-01 Kenichi Handa <handa@m17n.org>
21099
21100 * syntax.c (Vnext_word_boundary_function_table): New variable.
21101 (next-word-boundary-function-table): Declare it as a Lisp variable
21102 in syms_of_syntax.
21103 (scan_words): Call functions in Vnext_word_boundary_function_table
21104 if any.
21105
21106 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21107
21108 * fontset.c (fs_load_font): If fontp->charset is not negative,
21109 return fontp without setting its members.
21110
211112008-02-01 Dave Love <fx@gnu.org>
21112
21113 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21114
21115 * m/sparc.h (HAVE_ALLOCA): Delete.
21116
21117 * s/irix6-5.h: Don't include strings.h.
21118 (bcopy, bzero, bcmp): Don't undef.
21119
21120 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21121
21122 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21123 (TIOCSIGSEND): Don't test IRIX6.
21124 (bcopy, bzero, bcmp): Define conditionally.
21125
211262008-02-01 Kenichi Handa <handa@m17n.org>
21127
21128 * buffer.c (Qas, Qmake, Qto): New variables.
21129 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21130 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21131
21132 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21133 we are inserting a process output into a multibyte buffer.
21134
21135 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21136 multibyte_char_to_unibyte.
21137
21138 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21139 by the primary charset, make it eight-bit char.
21140 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21141
21142 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21143 (charset_8_bit__control, charset_8_bit_graphic)
21144 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21145 (define_charset_internal): New function.
21146 (syms_of_charset): Call define_charset_internal for pre-defined
21147 charsets.
21148
21149 * charset.h (charset_8_bit): Extern it.
21150
21151 * coding.c (make_conversion_work_buffer): Adjust for the change
21152 of Fset_buffer_multibyte.
21153 (encode_coding_raw_text): Increment p0 in the loop.
21154
21155 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21156
21157 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21158 for the change of Fset_buffer_multibyte.
21159
21160 * fns.c (Fstring_to_multibyte): New function.
21161 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21162
211632008-02-01 Dave Love <fx@gnu.org>
21164
21165 * xfns.c (x_put_x_image): Declare args.
21166
21167 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21168 (try_font_list): Declare an arg.
21169
21170 * xdisp.c (message2_nolog, set_message): Declare an arg.
21171
21172 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21173
21174 * syntax.c (scan_sexps_forward): Declare an arg.
21175
21176 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21177 Declare an arg.
21178
21179 * lisp.h (Fnew_fontset): Declare.
21180
21181 * keymap.c (push_key_description): Call CHARACTERP correctly.
21182
21183 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21184 (face_for_char): Delete unused vars.
21185 (Fset_fontset_font): Doc fix. Delete unused vars.
21186
21187 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21188
21189 * composite.c (update_compositions): Declare arg.
21190
21191 * cm.c (calccost, cmgoto): Declare args.
21192
21193 * charset.c: Remove `emacs' conditional. Doc fixes.
21194 (map_char_table_for_charset): Declare.
21195
21196 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21197
21198 * ccl.c: Remove `emacs' conditional.
21199
212002008-02-01 Kenichi Handa <handa@m17n.org>
21201
21202 The following changes are to allow specifying multiple font
21203 patterns for a character range (specified by script or charset).
21204
21205 * Makefile.in (abbrev.o): Depend on syntax.h.
21206 (xfaces.o): Depend on charset.h.
21207
21208 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21209 SINGLE_BYTE_CHAR_P.
21210
21211 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21212
21213 * character.h (Vchar_script_table): Extern it.
21214
21215 * character.c (Vscript_alist): Delete.
21216 (Vchar_script_table, Qchar_script_table): New variable.
21217 (syms_of_character): Declare Vchar_script_table as a lisp variable
21218 and initialize it.
21219
21220 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21221 have property char-table-extra-slots, make no extra slot.
21222
21223 * dispextern.h (struct face): Delete member `charset'.
21224 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21225 SINGLE_BYTE_CHAR_P.
21226 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21227 Add prototypes.
21228 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21229 (generate_ascii_font_name): Rename from generate_ascii_font.
21230
21231 * fontset.h (get_font_repertory_func): New prototype.
21232 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21233 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21234
21235 * fontset.c (Qprepend, Qappend): New variables.
21236 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21237 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21238 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21239 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21240 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21241 (load_font_get_repertory): New functions.
21242 (fontset_set): Delete.
21243 (fontset_face): New arg FACE. Return face ID, not face.
21244 Complete re-write to handle new fontset structure. Change caller.
21245 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21246 (face_for_char): Don't call lookup_face.
21247 (make_fontset_for_ascii_face): New arg FACE.
21248 (fs_load_font): New arg CHARSET_ID. Don't check
21249 Vfont_encoding_alist here.
21250 (find_font_encoding): New function.
21251 (list_fontsets): Use STRINGP, not ! NILP.
21252 (accumulate_script_ranges): New function.
21253 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21254 re-written to handle new fontset structure.
21255 (Ffontset_font): Return a copy of element.
21256 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21257 docstring of font-encoding-alist.
21258
21259 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21260 (Fset_fotset_font): Fix arguments to 5.
21261
21262 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21263
21264 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21265 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21266 (highlight_trailing_whitespace): Adjust for the change of
21267 lookup_named_face.
21268
21269 * xfaces.c: Include charset.h.
21270 (load_face_font): Delete argument C. Change caller.
21271 (generate_ascii_font_name): Rename from generate_ascii_font.
21272 (font_name_registry): New function.
21273 (cache_face): Store ascii faces before non-ascii faces in buckets.
21274 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21275 Lookup only ascii faces.
21276 (lookup_non_ascii_face): New function.
21277 (lookup_named_face): Delete argument C. Change caller.
21278 (lookup_derived_face): Delete argument C. Change caller.
21279 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21280 a string, just call font_list with it.
21281 (choose_face_font): Delete arguments FACE and C. New arg
21282 FONT_SPEC. Change caller.
21283 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21284 Change caller.
21285 (realize_non_ascii_face): New function.
21286 (realize_x_face): Call load_face_font here.
21287 (realize_tty_face): Delete argument C. Change caller.
21288 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21289 get a face ID.
21290 (dump_realized_face): Don't print charset of FACE.
21291
21292 * xfns.c (x_set_font): Always call x_new_fontset and
21293 store_frame_parameter.
21294 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21295 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21296
21297 * xterm.h (x_get_font_repertory): Extern it.
21298
21299 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21300 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21301 it->multibyte_p is zero.
21302 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21303 (x_new_fontset): If FONTSETNAME doesn't match any existing
21304 fontsets, create a new one.
21305 (x_get_font_repertory): New function.
21306
213072008-02-01 Kenichi Handa <handa@m17n.org>
21308
21309 * coding.c (Ffind_coding_systems_region_internal): Detect an
21310 ASCII only string correctly.
21311
21312 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21313 version is 0.
21314
213152008-02-01 Kenichi Handa <handa@m17n.org>
21316
21317 * lread.c: Include "coding.h".
21318 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21319 (load_each_byte, unread_char): New variables.
21320 (readchar_backlog): Delete.
21321 (readchar): Return a character unless load_each_byte is nonzero.
21322 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21323 cons. If unread_char is not -1, simply return it.
21324 (unreadchar): Handle the case that readcharfun is
21325 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21326 (read_multibyte): Delete.
21327 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21328 (read_emacs_mule_char): New functions.
21329 (Fload): Even if the file doesn't have the extension ".elc", if
21330 safe_to_load_p returns a positive version number, assume that the
21331 file contains bytecompiled code. If the version is less than 22,
21332 load the file while decoding multibyte sequences by emacs-mule.
21333 (readevalloop): Don't use readchar_backlog.
21334 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21335 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21336 (read_escape): Delete the arg BYTEREP.
21337 (read1): Set load_each_byte to 1 temporarily while handling
21338 #@NUMBER. Don't call read_multibyte.
21339 (read_vector): Call Fread with a cons. If readcharfun is
21340 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21341 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21342 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21343 and Qload_force_doc_strings.
21344
213452008-02-01 Kenichi Handa <handa@m17n.org>
21346
21347 * xdisp.c (face_before_or_after_it_pos): Call
21348 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21349
213502008-02-01 Kenichi Handa <handa@m17n.org>
21351
21352 * character.h (TRAILING_CODE_P): New macro.
21353 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21354 (string_char_with_unification): Fix prototype.
21355 (Vscript_alist): Extern it.
21356
21357 * character.c (Vscript_alist): New variable.
21358 (string_char_with_unification, str_as_unibyte)
21359 (string_escape_byte8): Add `const' to local variables.
21360 (syms_of_character): Declare script-alist as a Lisp variable.
21361
21362 * charset.h (Vcharset_ordered_list): Extern it.
21363 (charset_ordered_list_tick): Extern it.
21364 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21365 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21366 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21367 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21368 (Funify_charset): Adjust for the change of Funify_charset.
21369
21370 * charset.c (charset_ordered_list_tick): New variable.
21371 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21372 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21373 deunify instead of unify a charset.
aac0c6e3
MR
21374 (string_xstring_p): Add `const' to local variables.
21375 (find_charsets_in_text): Add `const' to arguments and local variables.
21376 (encode_char): Adjust for the change of Funify_charset. Fix
21377 detecting of invalid code.
21378 (Fset_charset_priority): Increment charset_ordered_list_tick.
21379 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21380 and TO_CODE.
21381
21382 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21383 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21384 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21385 (decode_coding_ccl, consume_chars)
21386 (Ffind_coding_systems_region_internal)
21387 (Fcheck_coding_systems_region): Add `const' to local variables.
21388
21389 * print.c (print_object): Use octal form for printing the
21390 contents of a bool vector.
21391
213922008-02-01 Dave Love <fx@gnu.org>
21393
21394 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21395 <version == 20>: Refuse to load.
21396
213972008-02-01 Dave Love <fx@gnu.org>
21398
21399 * fns.c: Move coding.h.
21400 (Qcodeset, Qdays, Qmonths): New.
21401 (concat): Use CHARACTERP instead of INTEGERP.
21402 (Flocale_codeset): Delete.
21403 (Flanginfo): New function.
21404 (syms_of_fns): Change accordingly.
21405
21406 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21407
214082008-02-01 Dave Love <fx@gnu.org>
21409
21410 * casetab.c (init_casetab_once, init_casetab_once): Fix
21411 CHAR_TABLE_SET call.
21412
21413 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21414
21415 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21416
21417 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21418 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21419 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21420
21421 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21422
21423 * coding.c (ENCODE_DESIGNATION, decode_eol)
21424 (make_conversion_work_buffer, code_conversion_restore)
21425 (Fdefine_coding_system_internal): Convert Lisp types.
21426 (code_conversion_restore): Use EQ, not ==.
21427 (Fencode_coding_string): Fix code_convert_string call.
21428
21429 * coding.h (code_convert_region): Fix prototype.
21430
21431 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21432
21433 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21434 (Ffontset_info): Convert Lisp types.
21435
21436 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21437
21438 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21439
21440 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21441
21442 * chartab.c: Include "...h", not <...h> in some cases.
21443
21444 * callproc.c (Fcall_process): Remove unused variables.
21445
214462008-02-01 Dave Love <fx@gnu.org>
21447
21448 * coding.c (Fset_coding_system_priority): Allow null arg list.
21449
214502008-02-01 Dave Love <fx@gnu.org>
21451
21452 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21453 (Fself_insert_and_exit): Use CHARACTERP.
21454
21455 * callproc.c (Fcall_process): Remove unused vars.
21456
21457 * xterm.c (XTread_socket): Add extra dead keysyms.
21458
21459 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21460
21461 * dispextern.h: Remove prototypes for redraw_frame,
21462 redraw_garbaged_frames.
21463
21464 * cmds.c (Fself_insert_command): Use CHARACTERP.
21465
21466 * chartab.c (make_sub_char_table): Remove unused var.
21467 (Fset_char_table_default, Fmap_char_table): Doc fix.
21468
21469 * keymap.c (access_keymap): Remove generic char code.
21470 (push_key_description): Use CHARACTERP.
21471
214722008-02-01 Dave Love <fx@gnu.org>
21473
21474 * charset.c: Doc fixes.
21475 (Funify_charset): Extra checking.
21476
214772008-02-01 Dave Love <fx@gnu.org>
21478
21479 * lread.c: Remove some unused variables.
21480 (safe_to_load_p): If safe, return the magic number version byte.
21481 (Fload): Maybe use load-with-code-conversion.
21482
214832008-02-01 Kenichi Handa <handa@m17n.org>
21484
21485 * category.c (Fmodify_category_entry): Don't modify the contents
21486 of category_set for characters out of the range. Avoid
21487 unnecessary modification.
21488
21489 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21490 Vchar_unify_table. The default value of the table is now nil.
21491
21492 * character.c (syms_of_character): Setup Vchar_width_table for
21493 eight-bit-control and raw-byte chars.
21494
21495 * charset.h (enum define_charset_arg_index): Delete
21496 charset_arg_parents and add charset_arg_subset and
21497 charset_arg_superset.
21498 (enum charset_attr_index): Delete charset_parents and add
21499 charset_subset and charset_superset.
21500 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21501 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21502 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21503 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21504 (CHARSET_SUPERSET): New macros.
21505 (charset_work): Extern it.
21506 (ENCODE_CHAR): Use charset_work.
21507 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21508 (map_charset_chars): Extern it.
21509
21510 * charset.c (load_charset_map): Set the default value of encoder
21511 and deunifier char-tables to nil.
21512 (map_charset_chars): Change argument. Change callers. Use
21513 map_char_table_for_charset instead of map_char_table.
21514 (Fmap_charset_chars): New optional args from_code and to_code.
21515 (Fdefine_charset_internal): Adjust for the change of
21516 `define-charset' (:parents -> :subset or :superset).
21517 (charset_work): New variable.
21518 (encode_char, syms_of_charset): Adjust for the change of
21519 Fdefine_charset_internal.
21520 (Ffind_charset_string): Setup the vector `charsets' correctly.
21521
21522 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21523 the previous change.
21524 (char_table_ref_and_range): Adjust for the above change.
21525 (map_sub_char_table_for_charset): New function.
21526 (map_char_table_for_charset): New function.
21527
21528 * keymap.c (describe_vector): Handle a char-table directly here.
21529 (describe_char_table): Delete.
21530
21531 * lisp.h (map_charset_chars): Delete.
21532
215332008-02-01 Dave Love <fx@gnu.org>
21534
21535 * fns.c (count_combining): Comment out (unused).
21536 (Flocale_codeset): New.
21537 (syms_of_fns): Defsubr it.
21538
21539 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21540 (size_t): Remove.
21541
215422008-02-01 Dave Love <fx@gnu.org>
21543
21544 * Makefile.in (chartab.o): Depend on charset.h.
21545
215462008-02-01 Kenichi Handa <handa@m17n.org>
21547
21548 * character.c (syms_of_character): Set the default value of
21549 Vprintable_chars to Qnil.
21550
215512008-02-01 Dave Love <fx@gnu.org>
21552
21553 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21554
215552008-02-01 Kenichi Handa <handa@m17n.org>
21556
21557 * charset.c (load_charset_map): Handle the case that from < to
21558 correctly.
21559
21560 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21561 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21562 Pay attention to raw-8-bit chars.
21563
215642008-02-01 Kenichi Handa <handa@m17n.org>
21565
21566 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21567 It is not bytecompiled now.
21568
21569 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21570 (charset_jisx0208): New variables.
21571 (Fdefine_charset_internal): Setup them if appropriate.
21572 (init_charset_once): Initialize them to -1.
21573
21574 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21575 (charset_jisx0208): Extern them.
21576
21577 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21578 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21579 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21580 (setup_iso_safe_charsets): Fix arguments to Fassq.
21581 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21582 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21583 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21584 (encode_coding_iso_2022): Change the 1st arg to
21585 ENCODE_ISO_CHARACTER to a variable.
21586
215872008-02-01 Kenichi Handa <handa@m17n.org>
21588
21589 * charset.h (enum define_charset_arg_index): New enums
21590 charset_arg_min_code and charset_arg_max_code.
21591 (struct charset): New member char_index_offset.
21592
21593 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21594 Take charset->char_index_offset into account.
21595 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21596 args[charset_arg_max_code]. Setup charset.char_index_offset.
21597 (syms_of_charset): Fix args to Fdefine_charset_internal.
21598
215992008-02-01 Dave Love <fx@gnu.org>
21600
21601 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21602
216032008-02-01 Dave Love <fx@gnu.org>
21604
21605 * coding.c: Doc fixes.
21606 (Fcoding_system_aliases): Fix return value.
21607 (Qmac): Remove (duplicated) definition.
21608
216092008-02-01 Dave Love <fx@gnu.org>
21610
362654a6
JB
21611 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21612 New functions.
aac0c6e3
MR
21613
21614 * character.c (Fstring): Doc fix.
21615
21616 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21617
362654a6 21618 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21619 (font-encoding-alist): Doc fix.
21620
216212008-02-01 Dave Love <fx@gnu.org>
21622
21623 * term.c (costs_set): Declare static, non-initialized for pcc.
21624 (encode_terminal_code): Remove unused var.
21625
21626 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21627 for K&R.
21628
21629 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21630
21631 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21632 (suffixes): Move out of make_subsidiaries for K&R.
21633
21634 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21635
21636 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21637
216382008-02-01 Dave Love <fx@gnu.org>
21639
21640 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21641
21642 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21643
216442008-02-01 Yong Lu <lyongu@asia-infonet.com>
21645
21646 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21647
21648 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21649
216502008-02-01 Kenichi Handa <handa@m17n.org>
21651
21652 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21653 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21654
216552008-02-01 Kenichi Handa <handa@m17n.org>
21656
21657 * coding.c (decode_coding_charset): Adjust for the change of
21658 Fdefine_coding_system_internal.
21659 (Fdefine_coding_system_internal): For a coding system of
21660 `charset' type, store a list of charset IDs in
21661 `charset_attr_charset_valids' element of coding attributes.
21662
216632008-02-01 Kenichi Handa <handa@m17n.org>
21664
21665 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21666 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21667 caller. Handle 2-byte and 3-byte charsets correctly.
21668 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21669 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21670 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21671 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21672 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21673 sequence.
21674 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21675 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21676 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21677 and alt&rule composition.
21678 (decode_coding_iso_2022): Handle composition correctly.
21679 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21680
21681 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21682 re-defining a charset. If the charset has :emacs-mule-id, setup
21683 emacs_mule_bytes.
21684 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21685
216862008-02-01 Kenichi Handa <handa@m17n.org>
21687
21688 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21689 (encode_coding_big5, encode_coding_charset): If coding requires safe
21690 encoding, produce a character specified by
21691 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21692
216932008-02-01 Dave Love <fx@gnu.org>
21694
21695 * xterm.c (XSetIMValues): Declare.
21696
21697 * process.c: Conditionally include sys/wait.h, pty.h.
21698
21699 * print.c (print_object): Fix print format for 64-bit systems.
21700
21701 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21702
21703 * buffer.c (emacs_strerror): Declare.
21704
21705 * fontset.c (Fclear_face_cache): Declare.
21706 (accumulate_font_info): Comment-out (unused).
21707 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21708 variables.
21709
21710 * character.h (string_escape_byte8): Declare.
21711
21712 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21713 unused vars.
21714 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21715 (Fmap_charset_chars): Doc fix.
21716
21717 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21718 (Fset_coding_system_priority, Fset_coding_system_priority)
21719 (Fdefine_coding_system_internal): Doc fix.
21720
217212008-02-01 Dave Love <fx@gnu.org>
21722
21723 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21724
217252008-02-01 Kenichi Handa <handa@m17n.org>
21726
21727 * character.c (string_escape_byte8): Make multibyte string with
21728 correct size.
21729
21730 * charset.c (Fmake_char): Delete unnecessary code.
21731
217322008-02-01 Kenichi Handa <handa@m17n.org>
21733
21734 * xfns.c (x_encode_text): Allocate coding.destination here, and
21735 call encode_coding_object with dst_object Qnil.
21736
21737 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21738 multibyte form correctly.
21739
21740 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21741 against Vfont_encoding_alist.
21742
21743 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21744 handling of charset list.
21745 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21746 (decode_coding_object): Move point to coding->dst_pos before
21747 calling post-read-conversion function.
21748 (encode_coding_object): Give correct arguments to
21749 pre-write-conversion. Ignore the return value of
21750 pre-write-conversion function. Pay attention to the case that
21751 pre-write-conversion changes the current buffer. If dst_object is
21752 Qt, even if coding->src_bytes is zero, allocate at least one byte
21753 to coding->destination.
21754
21755 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21756
21757 * charset.c (Fmake_char): Make it more backward compatible.
21758 (Fmap_charset_chars): Fix docstring.
21759
217602008-02-01 Dave Love <fx@gnu.org>
21761
21762 * coding.c: Doc fixes.
21763 (Fdefine_coding_system_alias): Use names, not symbols, in
21764 coding-system-alist.
21765
217662008-02-01 Kenichi Handa <handa@m17n.org>
21767
21768 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21769 of calling free_realized_face.
21770
217712008-02-01 Yong Lu <lyongu@asia-infonet.com>
21772
21773 * charset.c (read_hex): Don't treat SPC as a comment starter.
21774 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21775 (Fdecode_char): Fix typo.
21776
217772008-02-01 Kenichi Handa <handa@m17n.org>
21778
21779 * charset.h (struct charset): New member `code_space_mask'.
21780
21781 * coding.c (coding_set_source): Delete the local variable beg_byte.
21782 (encode_coding_charset, Fdefine_coding_system_internal):
21783 Delete the local variable charset.
21784 (Fdefine_coding_system_internal): Setup
21785 attrs[coding_attr_charset_valids] correctly.
21786
21787 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21788 member to check if CODE is valid or not.
21789 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21790 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21791 is within the range of charset->min_code and carset->max_code.
21792
217932008-02-01 Dave Love <fx@gnu.org>
21794
21795 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21796
21797 * dispextern.h (generate_ascii_font): Fix return type.
21798
21799 * xfaces.c (generate_ascii_font): Fix arg declaration.
21800
21801 * coding.c (coding_inherit_eol_type)
21802 (Fset_terminal_coding_system_internal)
21803 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21804
218052008-02-01 Kenichi Handa <handa@m17n.org>
21806
21807 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21808 multiple charsets correctly.
21809
218102008-02-01 Kenichi Handa <handa@m17n.org>
21811
21812 * search.c (boyer_moore): Fix handling of multibyte character
21813 translation.
21814
21815 * xdisp.c (display_mode_element): When the variable `elt' is
21816 changed, update `this' and `lisp_string'.
21817
218182008-02-01 Kenichi Handa <handa@m17n.org>
21819
21820 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21821
21822 * callproc.c (Fcall_process): Be sure to give the current buffer
21823 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21824
21825 * charset.c (struct charset_map_entries): New struct.
21826 (load_charset_map): Rename from parse_charset_map. New args
21827 entries and n_entries. Change caller.
21828 (load_charset_map_from_file): Rename from load_charset_map.
21829 Change caller. New arg control_flag. Call load_charset_map at
21830 the tail.
21831 (load_charset_map_from_vector): New function.
21832 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21833 (encode_char): If the charset is compact, change a character index
21834 to a code point.
21835
21836 * coding.c (coding_alloc_by_making_gap): Check the case that the
21837 source and destination are the same correctly.
21838 (decode_coding_raw_text): Set coding->consumed_char and
21839 coding->consumed to 0.
21840 (produce_chars): If coding->chars_at_source is nonzero, update
21841 coding->consumed_char and coding->consumed before calling
21842 alloc_destination.
21843 (Fdefine_coding_system_alias): Register ALIAS in
21844 Vcoding_system_alist.
21845 (syms_of_coding): Define `no-conversion' coding system at the tail.
21846
21847 * fileio.c (Finsert_file_contents): Set coding_system instead of
21848 val. If the current buffer is multibyte, always call
21849 decode_coding_gap.
21850
21851 * xfaces.c (try_font_list): Give higher priority to fontset's
21852 family than face's family.
21853
218542008-02-01 Kenichi Handa <handa@m17n.org>
21855
21856 * callproc.c (Fcall_process): Be sure to give the current buffer
21857 to decode_coding_c_string.
21858
21859 * xfaces.c (try_font_list): Give a family specified in a fontset
21860 higher priority than a family specified in a face.
21861
218622008-02-01 Kenichi Handa <handa@m17n.org>
21863
21864 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21865 Fix arguments to insert_from_buffer.
21866
21867 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21868
218692008-02-01 Kenichi Handa <handa@m17n.org>
21870
21871 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21872 (decode_coding_gap): Set coding->dst_multibyte correctly.
21873
218742008-02-01 Kenichi Handa <handa@m17n.org>
21875
21876 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21877 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21878 (encode_coding_utf_16): Substitute coding->default_char for
21879 non-Unicode characters.
21880 (decode_coding): Don't call record_insert here.
21881 (setup_coding_system): Initialize `surrogate' of
21882 coding->spec.utf_16 to 0.
21883 (EMIT_ONE_BYTE): Fix for multibyte case.
21884
21885 * insdel.c (insert_from_gap): Call record_insert.
21886
218872008-02-01 Kenichi Handa <handa@m17n.org>
21888
21889 * casefiddle.c (casify_region): Fix multibyte case.
21890
21891 * character.c (c_string_width): Add return type `int'.
21892 (char_string_with_unification): Delete arg ADVANCED.
21893
21894 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21895 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21896 (CHAR_STRING_ADVANCE): Make it do-while statement.
21897
21898 * chartab.c (sub_char_table_set_range): Optimize for the case
21899 DEPTH == 3. Add workaround code for a GCC optimization bug.
21900
21901 * charset.c (parse_charset_map): Remove an unused variable.
21902
21903 * coding.c: Delete unused variables.
21904
21905 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21906 earlier. If inserted is zero and the coding system doesn't
21907 require flushing, don't call decode_coding_gap.
21908
21909 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21910
219112008-02-01 Kenichi Handa <handa@m17n.org>
21912
21913 The following changes are for using Unicode as an internal
21914 character model, and use UTF-8 format for buffer/string
21915 representation.
21916
21917 * .gdbinit (xchartable): Adjust for the change of char table structure.
21918 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21919
21920 * Makefile.in (obj): Add character.o and chartab.o.
21921 (lisp, shortlisp): Remove utf-8.elc.
21922 (*.o): For many files, change dependency on charset.h to
21923 character.h, and add dependency on character.h.
21924 (character.o, chartab.o): New targets.
21925
21926 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21927 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21928 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21929 of "charset.h".
21930
21931 * dired.c, filelock.c: Include "character.h".
21932
21933 * alloc.c: Include "character.h" instead of "charset.h".
21934 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21935 (syms_of_alloc): Remove defsubr for Smake_char_table.
21936
21937 * buffer.c: Include "character.h" instead of "charset.h", don't
21938 include "coding.h".
21939 (Fset_buffer_multibyte): Adjust for UTF-8.
21940
21941 * buffer.h: EXFUN Fbuffer_live_p.
21942
21943 * callproc.c: Include "character.h" instead of "charset.h".
21944 (Fcall_process): Big change for the new code-conversion APIs.
21945
21946 * casetab.c: Include "character.h" instead of "charset.h".
21947 (set_canon, set_identity, shuffle): Adjust for the new
21948 map_char_table spec.
21949 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21950 accessing the char table structure.
21951
21952 * chartab.c: New file that implements char table.
21953
21954 * category.c: Include "character.h".
21955 (copy_category_entry): New function.
21956 (copy_category_table): Call map_char_table and copy_category_entry.
21957 (Fmake_category_table): Initialize all top-level slots.
21958 (char_category_set): New function.
21959 (modify_lower_category_set): Delete.
21960 (Fmodify_category_entry): Call char_table_ref_and_range.
21961
21962 * category.h (CATEGORY_SET): Just call char_category_set.
21963
21964 * ccl.c: Include "character.h".
21965 (Qccl, Qcclp): New variables.
21966 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21967 it's less than 256.
21968 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21969 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21970 and DST type.
21971 (ccl_driver): Change types of argument, adjust code accordingly.
21972 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21973 ccl_driver.
21974 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21975
21976 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21977 New members src_multibyte, dst_multibyte, consumed, and produced.
21978 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21979 (CODING_SPEC_CCL_PROGRAM): New macro.
21980 (ccl_driver): Update prototype.
21981 (Qccl, Qcclp, Fccl_program_p): Extern them.
21982 (CHECK_CCL_PROGRAM): New macro.
21983
21984 * character.c, character.h, chartab.c: New files.
21985
21986 * charset.c: Mostly re-written. Move character and multibyte sequence
21987 handling codes to character.c.
21988
21989 * charset.h: Mostly re-written. Move character and multibyte sequence
21990 handling codes to character.h.
21991
21992 * coding.c, coding.h: Mostly re-written.
21993
21994 * composite.c: Include "character.h" instead of "charset.h".
21995 (CHAR_WIDTH): Move to character.h.
21996 (HASH_KEY, HASH_VALUE): Delete.
21997
21998 * composite.h (enum composition_method): Change order of enumeration
21999 symbols.
22000
22001 * data.c: Include "character.h" instead of "charset.h".
22002 (Faref): Call CHAR_TABLE_REF for a char table.
22003 (Faset): Call CHAR_TABLE_SET for a char table.
22004
22005 * dispextern.h (free_realized_face, check_face_attribytes)
22006 (generate_ascii_font): Extern them.
22007 (free_realized_multibyte_face): Delete extern.
22008
22009 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22010 table structure.
22011
22012 * editfns.c: Include "character.h" instead of "charset.h".
22013 (Fchar_to_string): Always call CHAR_STRING.
22014
22015 * emacs.c (main): Call init_charset_once, init_charset,
22016 syms_of_chartab, and syms_of_character.
22017
22018 * fileio.c: Include "character.h" instead of "charset.h".
22019 (Finsert_file_contents): Big change for the new code-conversion API.
22020 (choose_write_coding_system, Fwrite_region): Likewise.
22021 (build_annotations_2): Delete.
22022 (e_write): Big change for the new code-conversion API.
22023
22024 * fns.c: Include "character.h" instead of "charset.h".
22025 (copy_sub_char_table): Move to chartab.c.
22026 (Fcopy_sequence): Call copy_char_table for a char table.
22027 (concat): Delete codes calling count_multibyte.
22028 (string_char_to_byte, string_byte_to_char): Adjust for the new
22029 multibyte form.
22030 (internal_equal): Adjust for the change of char table structure.
22031 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22032 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22033 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22034 (char_table_translate, optimize_sub_char_table)
22035 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22036 chartab.c.
22037 (char_table_ref_and_index): Delete.
22038 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22039 (Fmd5): Call preferred_coding_system instead of accessing
22040 Vcoding_category_list. Adjust for the new code-conversion API.
22041 (syms_of_fns): Move defsubr for char table related functions to
22042 chartab.c.
22043
22044 * fontset.c: Mostly re-written.
22045
22046 * fontset.h (struct font_info): Change type of the member encoding_type.
22047 (enum FONT_SPEC_INDEX): New enum.
22048 (fontset_font_pattern, fs_load_font): Update prototype.
22049 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22050
22051 * indent.c: Include "character.h" instead of "charset.h".
22052 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22053
22054 * insdel.c: Include "character.h" instead of "charset.h".
22055 (copy_text): Don't refer to Vnonascii_translation_table.
22056 (insert_from_gap): New function.
22057
22058 * keyboard.c: Include "character.h" instead of "charset.h".
22059 (command_loop_1): Never call direct_output_forward_char before
22060 a non-ASCII character.
22061 (read_char): If Vkeyboard_translate_table is a char table, always
22062 translate a character.
22063
22064 * keymap.c: Include "character.h".
22065 (store_in_keymap): Handle the case that IDX is a cons.
22066 (Fdefine_key): Handle the case that KEY is a cons and the car part
22067 is also a cons (range).
22068 (push_key_description): Adjust for the new character code.
22069 (describe_vector): Call describe_char_table for a char table.
22070 (describe_char_table): New function.
22071
22072 * keymap.h (describe_char_table): Extern it.
22073
22074 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22075 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22076 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22077 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22078 Delete.
22079 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22080 structure.
22081 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22082 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22083 (CHARTAB_SIZE_BITS_3): New macros.
22084 (chartab_size): Extern it.
22085 (struct Lisp_Char_Table): Re-design.
22086 (struct Lisp_Sub_Char_Table): New structure.
22087 (HASH_KEY, HASH_VALUE): Move from fns.c.
22088 (CHARACTERBITS): Define as 22.
22089 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22090 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22091 (GC_SUB_CHAR_TABLE_P): New macro.
22092 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22093 (code_convert_string_norecord): Deleted extern.
22094 (init_character_once, syms_of_character, init_charset)
22095 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22096
22097 * lread.c: Include "character.h".
22098 (read_multibyte): New arg NBYTES.
22099 (read_escape): Change the meaning of returned *BYTEREP.
22100 (to_multibyte): Delete.
22101 (read1): Adjust the handling of char table and string.
22102
22103 * print.c: Include "character.h" instead of "charset.h".
22104 (print_string): Convert 8-bit raw bytes to octal form by
22105 string_escape_byte8.
22106 (print_object): Adjust for the new multibyte form. Print 8-bit
22107 raw bytes always in octal form. Handle sub char table correctly.
22108
22109 * process.c: Include "character.h" instead of "charset.h".
22110 (read_process_output, send_process): Adjust for the new
22111 code-conversion API.
22112
22113 * puresize.h (BASE_PURESIZE): Increase.
22114
22115 * regex.c: Include "character.h" instead of "charset.h".
22116 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22117 (regex_compile): Accept a range whose starting and ending
22118 character have different leading bytes.
22119 (analyse_first): Adjust for the above change.
22120
22121 * search.c: Include "character.h" instead of "charset.h".
22122 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22123 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22124
22125 * syntax.c: Include "character.h" instead of "charset.h".
22126 (syntax_parent_lookup): Delete.
22127 (Fmodify_syntax_entry): Accept a cons as CHAR.
22128 (skip_chars): Adjust for the new multibyte form.
22129 (init_syntax_once): Call char_table_set_range instead of directly
22130 accessing the structure of a char table.
22131
22132 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22133 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22134 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22135 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22136
22137 * term.c: Include "buffer.h" and "character.h".
22138 (encode_terminal_code, write_glyphs): Adjust for the new
22139 code-conversion API.
22140 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22141
22142 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22143
22144 * xdisp.c: Include "character.h".
22145 (get_next_display_element): Adjust for the new multibyte form.
22146 (disp_char_vector): Adjust for the new char table structure.
22147 (decode_mode_spec_coding): Adjust for the new structure of
22148 coding system.
22149 (decode_mode_spec): Adjust for the new code-conversion API.
22150
22151 * xfaces.c: Include "character.h" instead of "charset.h".
22152 (load_face_font): Adjust for the change of choose_face_font and
22153 FS_LOAD_FONT.
22154 (generate_ascii_font): New function.
22155 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22156 (set_font_frame_param): Adjust for the change of choose_face_font.
22157 (free_realized_face): Make it public.
22158 (free_realized_faces_for_fontset): Rename from
22159 free_realized_multibyte_face. Free also faces realized for ASCII.
22160 (choose_face_font): Change arguments. Adjust for the change of
22161 fontset_font_pattern and FS_LOAD_FONT.
22162
22163 * xfns.c: Include "character.h".
22164 (x_encode_text): Adjust for the new code-conversion API.
22165
22166 * xselect.c: Don't include "charset.h".
22167 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22168
22169 * xterm.c: Include "character.h".
22170 (x_encode_char): New argument CHARSET. Change caller.
22171 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22172 Call ENCODE_CHAR instead of SPLIT_CHAR.
22173 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22174 CHAR_WIDTH instead of CHARSET_WIDTH.
22175 (XTread_socket): Adjust for the new code-conversion API.
22176 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22177 (x_load_font): Adjust for the change of struct font.
22178
221792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22180
22181 * xfaces.c (face_at_buffer_position): Remove unused vars.
22182
221832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22184
22185 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22186 Fix overflow checking.
22187
221882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22189
22190 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22191 Cancel previous change.
22192
221932008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22194
22195 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22196 ccl->eight_bit_control. Fix check for buffer overflow.
22197 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22198 (ccl_driver): Initialize extra_bytes to 0.
22199
222002008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22201
22202 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22203 return it ORed with ctrl_modifier.
22204
222052008-01-29 Miles Bader <miles@gnu.org>
22206
22207 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22208
222092008-01-28 Jason Rumney <jasonr@gnu.org>
22210
22211 * w32.c (stat): Don't double check for networked drive.
22212
222132008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22214
22215 * window.c (run_window_configuration_change_hook): New function.
22216 Code extracted from set_window_buffer. Set the selected frame.
22217 (set_window_buffer): Use it.
22218 * window.h (run_window_configuration_change_hook): Declare.
22219 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22220
22221 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22222
222232008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22224
22225 * Makefile.in: Remove references to unused macros.
22226
222272008-01-26 Eli Zaretskii <eliz@gnu.org>
22228
22229 * w32.c (g_b_init_get_sid_sub_authority)
22230 (g_b_init_get_sid_sub_authority_count): New static variables.
22231 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22232 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22233 (init_user_info): Use them to retrieve uid and gid.
22234 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22235 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22236 st_uid and st_gid of the file.
22237
222382008-01-26 Jason Rumney <jasonr@gnu.org>
22239
22240 * w32.c (logon_network_drive): New function.
22241 (stat): Use it.
22242
222432008-01-26 Chong Yidong <cyd@stupidchicken.com>
22244
22245 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22246 invisible text covered with an ellipsis.
22247
222482008-01-25 Richard Stallman <rms@gnu.org>
22249
22250 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22251 jump back to beginning. Move some other initializations after that.
22252 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22253 New variables.
22254 (syms_of_xdisp): Init them.
22255
22256 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22257
22258 * buffer.c (reset_buffer_local_variables):
22259 Implement `permanent-local-hook'.
22260 (Qpermanent_local_hook): New variable.
22261 (syms_of_buffer): Init and staticpro it.
22262
222632008-01-25 Michael Albinus <michael.albinus@gmx.de>
22264
22265 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22266
222672008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22268
22269 * fns.c (Fclrhash): Return TABLE.
22270
222712008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22272
22273 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22274 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22275 is set even without positional changes.
22276 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22277
22278 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22279
222802008-01-23 Jason Rumney <jasonr@gnu.org>
22281
22282 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22283
22284 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22285 the unicode range available in MULE by locale-coding-system.
22286 Improve dbcs lead byte detection. Set event timestamp and modifiers
22287 earlier.
22288
222892008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22290
22291 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22292 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22293 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22294 when used on child processes.
22295
222962008-01-21 Michael Albinus <michael.albinus@gmx.de>
22297
22298 * dbusbind.c (Fdbus_method_return_internal): Rename from
22299 Fdbus_method_return.
22300 (Fdbus_unregister_object): Move to dbus.el.
22301 (Fdbus_call_method, Fdbus_method_return_internal)
22302 (Fdbus_send_signal): Improve debug messages.
22303
223042008-01-20 Martin Rudalics <rudalics@gmx.at>
22305
22306 * undo.c (undo_inhibit_record_point): New variable.
22307 (syms_of_undo): Initialize it.
22308 (record_point): Don't record point when undo_inhibit_record_point
22309 is set.
22310
223112008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22312
22313 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22314
22315 * xdisp.c (Qauto_hscroll_mode): New var.
22316 (syms_of_xdisp): Initialize it.
22317 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22318 window's buffer.
22319 (hscroll_windows): Don't check automatic_hscrolling_p here.
22320
22321 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22322 vscroll if we're setting window-buffer to the value it already has.
22323
223242008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22325
22326 * m/intel386.h: Remove references to XENIX.
22327
223282008-01-17 Andreas Schwab <schwab@suse.de>
22329
22330 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22331 instead of HAVE_X86_64_LIB64_DIR.
22332 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22333
223342008-01-17 Glenn Morris <rgm@gnu.org>
22335
22336 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22337 to HAVE_X86_64_LIB64_DIR.
22338
223392008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22340
22341 * s/irix3-3.h:
22342 * s/irix4-0.h:
22343 * s/386-ix.h:
22344 * s/domain.h:
22345 * s/hpux9-x11r4.h:
22346 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22347
22348 * sysdep.c: Remove code containing references to symbols defined
22349 by unsupported systems.
22350
223512008-01-16 Glenn Morris <rgm@gnu.org>
22352
22353 * coding.c (select-safe-coding-system-function): Doc fix.
22354
223552008-01-15 Glenn Morris <rgm@gnu.org>
22356
22357 * config.in: Revert 2008-01-13 change: this is a generated file.
22358
223592008-01-13 Tom Tromey <tromey@redhat.com>
22360
22361 * lisp.h: Fix typo.
22362
223632008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22364
22365 * m/sequent-ptx.h:
22366 * m/sequent.h:
22367 * s/ptx.h:
22368 * s/ptx4-2.h:
22369 * s/ptx4.h: Remove files for systems no longer supported.
22370
22371 * callproc.c (Fcall_process): Fix previous change.
22372
223732008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22374
22375 * unexsunos4.c: Remove file, system not supported anymore.
22376
22377 * m/mips.h:
22378 * m/intel386.h:
22379 * callproc.c:
22380 * config.in:
22381 * ecrt0.c:
22382 * emacs.c:
22383 * fileio.c:
22384 * frame.c:
22385 * getpagesize.h:
22386 * keyboard.c:
22387 * lread.c:
22388 * process.c:
22389 * puresize.h:
22390 * sysdep.c:
22391 * systty.h:
22392 * syswait.h:
22393 * unexec.c:
22394 * xdisp.c:
22395 * alloc.c: Remove code containing references to symbols defined by
22396 unsupported systems.
22397
223982008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22399
22400 * coding.c (detect_coding_mask): Fix previous change.
22401
224022008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22403
22404 * coding.c (detect_coding_iso2022): New arg
22405 latin_extra_code_state. Allow Latin extra codes only
22406 when *latin_extra_code_state is nonzero.
22407 (detect_coding_mask): If there is a NULL byte, detect the encoding
22408 as UTF-16 or binary. If Latin extra codes exist, detect the
22409 encoding as ISO-2022 only when there's no other proper encoding is
22410 found.
22411
224122008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22413
22414 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22415 #ifdef MAC_OS.
22416
224172008-01-08 Richard Stallman <rms@gnu.org>
22418
22419 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22420
224212008-01-06 Nick Roberts <nickrob@snap.net.nz>
22422
22423 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22424 menu bar in parentheses.
22425
224262008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22427
22428 * m/7300.h:
22429 * m/acorn.h:
22430 * m/alliant-2800.h:
22431 * m/alliant.h:
22432 * m/alliant1.h:
22433 * m/alliant4.h:
22434 * m/altos.h:
22435 * m/amdahl.h:
22436 * m/apollo.h:
22437 * m/att3b.h:
22438 * m/aviion-intel.h:
22439 * m/aviion.h:
22440 * m/celerity.h:
22441 * m/clipper.h:
22442 * m/cnvrgnt.h:
22443 * m/convex.h:
22444 * m/cydra5.h:
22445 * m/delta88k.h:
22446 * m/dpx2.h:
22447 * m/dual.h:
22448 * m/elxsi.h:
22449 * m/f301.h:
22450 * m/gould-np1.h:
22451 * m/gould.h:
22452 * m/i860.h:
22453 * m/ibmps2-aix.h:
22454 * m/ibmrt-aix.h:
22455 * m/ibmrt.h:
22456 * m/irist.h:
22457 * m/is386.h:
22458 * m/isi-ov.h:
22459 * m/mega68.h:
22460 * m/mg1.h:
22461 * m/news-r6.h:
22462 * m/news-risc.h:
22463 * m/news.h:
22464 * m/nh3000.h:
22465 * m/nh4000.h:
22466 * m/ns16000.h:
22467 * m/ns32000.h:
22468 * m/nu.h:
22469 * m/orion.h:
22470 * m/orion105.h:
22471 * m/paragon.h:
22472 * m/pfa50.h:
22473 * m/plexus.h:
22474 * m/pyramid.h:
22475 * m/pyrmips.h:
22476 * m/sh3el.h:
22477 * m/sps7.h:
22478 * m/sr2k.h:
22479 * m/stride.h:
22480 * m/sun1.h:
22481 * m/sun2.h:
22482 * m/sun3-68881.h:
22483 * m/sun3-fpa.h:
22484 * m/sun3-soft.h:
22485 * m/sun3.h:
22486 * m/sun386.h:
22487 * m/symmetry.h:
22488 * m/tad68k.h:
22489 * m/tahoe.h:
22490 * m/targon31.h:
22491 * m/tek4300.h:
22492 * m/tekxd88.h:
22493 * m/tower32.h:
22494 * m/tower32v3.h:
22495 * m/ustation.h:
22496 * m/wicat.h:
22497 * m/xps100.h:
22498 * s/cxux.h:
22499 * s/cxux7.h:
22500 * s/dgux.h:
22501 * s/dgux4.h:
22502 * s/dgux5-4-3.h:
22503 * s/dgux5-4r2.h:
22504 * s/esix.h:
22505 * s/esix5r4.h:
22506 * s/hiuxmpp.h:
22507 * s/hiuxwe2.h:
22508 * s/iris3-5.h:
22509 * s/iris3-6.h:
22510 * s/isc2-2.h:
22511 * s/isc3-0.h:
22512 * s/isc4-0.h:
22513 * s/isc4-1.h:
22514 * s/newsos5.h:
22515 * s/newsos6.h:
22516 * s/osf1.h:
22517 * s/osf5-0.h:
22518 * s/riscix1-1.h:
22519 * s/riscix12.h:
22520 * s/sco4.h:
22521 * s/sco5.h:
22522 * s/sunos4-0.h:
22523 * s/sunos4-1.h:
22524 * s/sunos413.h:
22525 * s/sunos4shr.h:
22526 * s/umax.h:
22527 * s/unipl5-2.h:
22528 * s/xenix.h:
22529 * cxux-crt0.s:
22530 * unexapollo.c:
22531 * unexconvex.c:
22532 * unexenix.c:
22533 * unexsni.c: Remove files for systems no longer supported.
22534
22535 * m/intel386.h: Remove references to unsupported systems.
22536
22537 * w32.c (get_emacs_configuration): Remove reference to i860.
22538
22539 * sysdep.c: Remove dead code.
22540
225412008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22542
22543 * s/rtu.h:
22544 * m/masscomp.h: Remove files. Platform is obsolete.
22545
225462008-01-04 Michael Albinus <michael.albinus@gmx.de>
22547
22548 * dbusbind.c (Fdbus_method_return): New function.
22549 (xd_read_message): Add the serial number to the event.
22550 (Fdbus_register_method): Activate the function.
22551
225522008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22553
22554 * keyboard.c (read_key_sequence): Fix typo.
22555
225562008-01-03 Michael Albinus <michael.albinus@gmx.de>
22557
22558 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22559 (xd_signature, xd_append_arg): Handle element type detection for
22560 empty arrays.
22561 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22562 SDATA () calls; this must be solved more general.
22563 (Fdbus_register_signal): Use SBYTES instead of strlen.
22564
225652008-01-03 Magnus Henoch <magnus@zemdatav>
22566
22567 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22568 unsigned int for byte values (necessary for big-endian platform).
22569 (Fdbus_call_method): Handle the case of no returned arguments.
22570
225712007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22572
22573 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22574
225752007-12-31 Magnus Henoch <mange@freemail.hu>
22576
22577 * dbusbind.c (xd_signature): Signature of variant is just "v".
22578
225792007-12-30 Michael Albinus <michael.albinus@gmx.de>
22580
22581 * dbusbind.c: Fix several errors and compiler warnings.
22582 Reported by Tom Tromey <tromey@redhat.com>.
22583 (XD_ERROR, XD_DEBUG_MESSAGE)
22584 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22585 (xd_append_arg): Part for basic D-Bus types rewritten.
22586 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22587 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22588 appropriate.
22589 (xd_read_message): Return Qnil. Don't signal an error; it is not
22590 useful during event reading.
22591 (Fdbus_register_signal): Signal an error if the check for
22592 FUNCTIONP fails.
22593 (Fdbus_register_method): New function. The implementation is not
22594 complete, the call of the function signals an error therefore.
22595 (Fdbus_unregister_object): New function, renamed from
22596 Fdbus_unregister_signal. The initial check signals an error, if
22597 the object is not well formed.
22598
225992007-12-30 Richard Stallman <rms@gnu.org>
22600
22601 * textprop.c (get_char_property_and_overlay):
22602 Signal error if POSITION is out of range in a buffer.
22603
226042007-12-29 Martin Rudalics <rudalics@gmx.at>
22605
22606 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22607 because the original parameters are in pure storage now.
22608
226092007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22610
22611 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22612
226132007-12-22 Eli Zaretskii <eliz@gnu.org>
22614
22615 * callint.c (syms_of_callint) <command-history>: Add reference to
22616 history-length in the doc string.
22617
226182007-12-17 Jason Rumney <jasonr@gnu.org>
22619
22620 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22621 before passing as wParam.
22622
226232007-12-22 Michael Albinus <michael.albinus@gmx.de>
22624
22625 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22626 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22627 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22628 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22629 as number.
22630 (Fdbus_call_method): Fix docstring.
22631
226322007-12-21 Michael Albinus <michael.albinus@gmx.de>
22633
22634 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22635 New macros.
22636 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22637 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22638 Simplify.
22639 (xd_signature): New function.
22640 (xd_append_arg): Compute also signatures. Major rewrite.
22641 (xd_retrieve_arg): Make debug messages friendly.
22642 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22643 Check for signatures of arguments.
22644
226452007-12-19 Michael Albinus <michael.albinus@gmx.de>
22646
22647 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22648 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22649 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22650 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22651 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22652 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22653 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22654 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22655 (xd_retrieve_value): Remove. Functionality included in ...
22656 (xd_append_arg): New function.
22657 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22658
226592007-12-16 Michael Albinus <michael.albinus@gmx.de>
22660
22661 * dbusbind.c (top): Include <stdio.h>.
22662 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22663 dbus_message_new_method_call and dbus_message_new_signal.
22664 (Fdbus_register_signal): Rename unique_name to uname.
22665 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22666 non-existing unique name. Fix typos in matching rule. Return an
22667 object which is useful in Fdbus_unregister_signal.
22668 (Fdbus_unregister_signal): Reimplementation, in order to remove
22669 only the corresponding entry.
22670 (Vdbus_registered_functions_table): Change the order of entries.
22671 Apply these changes in xd_read_message and Fdbus_register_signal.
22672
226732007-12-16 Andreas Schwab <schwab@suse.de>
22674
22675 * fileio.c (Finsert_file_contents): Fix overflow check to not
22676 depend on undefined integer overflow.
22677
226782007-12-14 Jason Rumney <jasonr@gnu.org>
22679
22680 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22681 for characters above 127.
22682
226832007-12-13 Jason Rumney <jasonr@gnu.org>
22684
22685 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22686 before dereferencing array.
22687 (lookup_vk_code): Remove zero comparison.
22688
226892007-12-14 Michael Albinus <michael.albinus@gmx.de>
22690
22691 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22692 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22693 Use `unsigned int' instead of `uint'.
22694 (xd_read_message, Fdbus_register_signal): Split expressions into
22695 multiple lines before operators "&&" and "||", according to the
22696 GNU Coding Standards.
22697
226982007-12-14 Eli Zaretskii <eliz@gnu.org>
22699
22700 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22701
227022007-12-12 Juri Linkov <juri@jurta.org>
22703
22704 * buffer.c (Frename_buffer): In interactive spec replace
22705 `read-buffer' with `read-string' that uses `buffer-name-history'
22706 as history, and the current buffer's name as default.
22707
227082007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22709
22710 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22711 manipulating the backtrace manually.
22712 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22713 (struct backtrace, backtrace_list): Remove.
22714 (command_loop_1): Remove dead var `no_direct'.
22715
22716 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22717 preserve non-built-in buffer-local variables.
22718 (Fkill_all_local_variables): Don't re-create&re-set permanent
22719 buffer-local variables.
22720
227212007-12-09 Juri Linkov <juri@jurta.org>
22722
22723 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22724 Lisp code that uses `read-buffer' with current buffer as default.
22725
227262007-12-08 Michael Albinus <michael.albinus@gmx.de>
22727
22728 * dbusbind.c (xd_read_message): Generate an event for every
22729 registered handler. There might be several handlers registered
22730 for the same signal.
22731 (Fdbus_register_signal): Don't overwrite a registration for the
22732 same signal. Add a new registration if handlers are different.
22733 (Vdbus_registered_functions_table): Rework doc string.
22734
227352007-12-07 Michael Albinus <michael.albinus@gmx.de>
22736
22737 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22738 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22739 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22740 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22741 Unify argument lists.
22742 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22743 arguments and hash table keys. Use unique name for service.
22744 (Fdbus_unregister_signal): Remove checks.
22745 (Vdbus_registered_functions_table): Fix doc string.
22746
227472007-12-05 Magnus Henoch <mange@freemail.hu>
22748
22749 * process.c (make_process): Initialize pty_flag to 0.
22750
227512007-12-05 Jason Rumney <jasonr@gnu.org>
22752
22753 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22754 specified XBMs.
22755
227562007-12-05 Richard Stallman <rms@gnu.org>
22757
22758 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22759
227602007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22761
22762 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22763 New variable.
22764 (mac_try_close_socket) [MAC_OSX]: New function.
22765 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22766 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22767
22768 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22769 Use mac_try_close_socket.
22770
227712007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22772
22773 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22774 reloc_base.
22775 (copy_dysymtab): Compute relocation base here.
22776 (rebase_reloc_address) [__ppc64__]: New function.
22777 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22778 changed.
22779
227802007-12-05 Jason Rumney <jasonr@gnu.org>
22781
22782 * w32proc.c (sys_spawnve): Quote args with wildcards.
22783
227842007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22785
22786 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22787 __objc_* sections.
22788 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22789
227902007-12-05 Michael Albinus <michael.albinus@gmx.de>
22791
22792 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22793 Move check for Vdbus_registered_functions_table to
22794 xd_read_queued_messages.
22795 (xd_read_queued_messages): Protect xd_read_message calls by
22796 internal_condition_case_1.
22797
227982007-12-04 Michael Albinus <michael.albinus@gmx.de>
22799
22800 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22801 Qdbus_system_bus and Qdbus_session_bus, respectively.
22802 (Vdbus_intern_symbols): Remove.
22803 (Vdbus_registered_functions_table): New hash table.
22804 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22805 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22806 Rewrite in order to manage registered functions by hash table
22807 Vdbus_registered_functions_table.
22808
228092007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22810
22811 * xterm.c: Update URL to Window Manager Specification in comment.
22812
228132007-12-02 Michael Albinus <michael.albinus@gmx.de>
22814
22815 * config.in (HAVE_DBUS): Add.
22816
22817 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22818 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22819 (obj): Add $(DBUS_OBJ).
22820 (LIBES): Add $(DBUS_LIBS).
22821 (dbusbind.o): New target.
22822
22823 * dbusbind.c: New file.
22824
22825 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22826
22827 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22828 (Qdbus_event): New Lisp symbol.
22829 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22830 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22831 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22832
22833 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22834
228352007-12-01 Richard Stallman <rms@gnu.org>
22836
22837 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22838
228392007-11-30 Jason Rumney <jasonr@gnu.org>
22840
22841 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22842 (w32con_reset_terminal_modes): Clear screen buffer.
22843 (w32_face_attributes): Don't use color indexes that are out of range.
22844 Only reverse the default colors.
22845
22846 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22847 WINDOWSNT.
22848
22849 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22850
228512007-11-29 Jason Rumney <jasonr@gnu.org>
22852
22853 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22854 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22855 if the terminal colors are initialized.
22856 (unspecified_fg, unspecified_bg): Remove unused declarations.
22857
228582007-11-29 Andreas Schwab <schwab@suse.de>
22859
22860 * keyboard.c (apply_modifiers): Fix typo.
22861
228622007-11-29 Richard Stallman <rms@gnu.org>
22863
22864 * keymap.c (Fcurrent_local_map): Doc fix.
22865
228662007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22867
22868 * s/gnu-kfreebsd.h: New file.
22869
228702007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22871
22872 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22873 Don't cast redundantly.
22874
22875 * keyboard.c (KEY_TO_CHAR): New macro.
22876 (parse_modifiers, apply_modifiers): Accept integer arguments.
22877 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22878 for chars and symbol keys.
22879 After doing such remapping, apply function-key-map again.
22880
228812007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22882
22883 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22884 compiled anymore.
22885
228862007-11-26 Andreas Schwab <schwab@suse.de>
22887
22888 * process.c (list_processes_1): Fix indentation level of the
22889 command column.
22890
228912007-11-23 Andreas Schwab <schwab@suse.de>
22892
22893 * editfns.c (Fformat): Handle %c specially since it requires the
22894 argument to be of type int.
22895
228962007-11-23 Markus Triska <markus.triska@gmx.at>
22897
22898 * emacs.c (main): Call init_editfns before init_process, since
22899 init_process sets Vprocess_connection_type depending on OS release.
22900
229012007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22902
22903 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22904 (find_symbol_value): Use do_symval_forwarding.
22905
22906 * data.c (set_internal): Set the value in the `cons-cell' (for
22907 Buffer_Local_values) not only for frame-local variables.
22908
229092007-11-22 Andreas Schwab <schwab@suse.de>
22910
22911 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22912 values to sprintf.
22913 * keymap.c (Fsingle_key_description): Likewise.
22914 * print.c (print_object): Likewise.
22915
229162007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22917
22918 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22919 file for image is nil.
22920
229212007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22922
22923 * term.c: Include stdarg.h.
22924 (fatal): Implement using varargs.
22925 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22926
229272007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22928
22929 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22930 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22931 Update call to buffer_slot_type_mismatch.
22932 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22933 (buffer_slot_type_mismatch): Update.
22934 * buffer.c (buffer_local_types): Remove.
22935 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22936 (defvar_per_buffer): Set the type in the buffer_objfwd.
22937
229382007-11-21 Jason Rumney <jasonr@gnu.org>
22939
22940 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22941 CreateFileMapping returns NULL on failure.
22942
229432007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22944
22945 * search.c (Fset_match_data): Remove the `evaporate' feature.
22946 (unwind_set_match_data): Don't use the `evaporate' feature.
22947
229482007-11-21 Jason Rumney <jasonr@gnu.org>
22949
22950 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22951
22952 * w32console.c (w32con_write_glyphs): Remove unused variables.
22953
229542007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22955
22956 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22957
22958 * s/darwin.h (MULTI_KBOARD): Remove.
22959
22960 * macfns.c (x_create_tip_frame, Fx_create_frame)
22961 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22962
229632007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22964
22965 * buffer.c (Fbuffer_local_value): Remove redundant test.
22966 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22967 than in `current-buffer' to match the comment.
22968 Do the swap using swap_in_global_binding.
22969
22970 * data.c (store_symval_forwarding, set_internal):
22971 * eval.c (specbind): Remove dead code.
22972
22973 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22974 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22975 Since we do not want to see internal Lisp_*fwd objects here.
22976
229772007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22978
22979 * sysdep.c (init_system_name): Use getaddrinfo if available.
22980
22981 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22982 (x_scroll_bar_note_movement): start, end, with, height in struct
22983 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22984
229852007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22986
22987 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22988
229892007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22990
22991 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22992 This undoes Richard's change of 14-Oct-2002.
22993
22994 * alloc.c (allocate_other_vector):
22995 * lisp.h (allocate_other_vector): Remove.
22996
22997 * window.c (struct save_window_data): Move non-lisp data to the end
22998 and make it `int' rather than Lisp_Object.
22999 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23000 Done wrap/unwrap integer values.
23001 (Fset_window_configuration, compare_window_configurations):
23002 Update use of fields to their new types.
23003
23004 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23005 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23006 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23007 (SET_SCROLL_BAR_X_WINDOW): Remove.
23008 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23009 Access the new x_window field directly.
23010 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23011 Don't wrap/unwrap integers into Lisp_Objects.
23012 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23013 (x_scroll_bar_report_motion):
23014 Don't wrap/unwrap integers into Lisp_Objects.
23015 (x_term_init): Use SDATA.
23016 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23017 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23018 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23019 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23020 * xfns.c (x_set_background_color):
23021 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23022 Access the new x_window field directly.
23023
23024 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23025 (allocate_pseudovector): Make non-static.
23026
23027 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23028 (allocate_pseudovector): Declare.
23029 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23030
230312007-11-15 Andreas Schwab <schwab@suse.de>
23032
23033 * editfns.c (Fformat): Correctly format EMACS_INT values.
23034 Also take precision into account when formatting an integer.
23035
23036 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23037
230382007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23039
23040 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23041 (syms_of_keyboard): Defsubr it.
23042
23043 * data.c (swap_in_global_binding): Fix longstanding bug where
23044 store_symval_forwarding was not called with the right second argument,
23045 thus causing objfwd-ing from being dropped.
23046
230472007-11-14 Juanma Barranquero <lekktu@gmail.com>
23048
23049 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23050 (Fx_display_pixel_height, Fx_display_planes)
23051 (Fx_display_color_cells, Fx_server_max_request_size)
23052 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23053 (Fx_display_visual_class, Fx_display_save_under):
23054 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23055 (Fx_display_pixel_height, Fx_display_planes)
23056 (Fx_display_color_cells, Fx_server_max_request_size)
23057 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23058 (Fx_display_mm_height, Fx_display_mm_width)
23059 (Fx_display_backing_store, Fx_display_visual_class)
23060 (Fw32_select_font, Fx_display_save_under):
23061 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23062 (Fx_display_pixel_height, Fx_display_planes)
23063 (Fx_display_color_cells, Fx_server_max_request_size)
23064 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23065 (Fx_display_save_under): Fix typos in docstrings.
23066
230672007-11-14 Juanma Barranquero <lekktu@gmail.com>
23068
23069 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23070 corresponding to deleted entries; they are an implementation detail.
23071 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23072 Remove variables.
23073 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23074 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23075 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23076 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23077 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23078 (Fw32_define_rgb_color, Fw32_load_color_file)
23079 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23080 Fix typos in docstrings.
23081 (Fx_server_version): Reflow docstring.
23082 (Fw32_shell_execute): Doc fixes.
23083
230842007-11-13 Juanma Barranquero <lekktu@gmail.com>
23085
23086 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23087 if w32_parse_hot_key returned nil.
23088
230892007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23090
23091 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23092
230932007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23094
aac0c6e3
MR
23095 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23096
23097 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23098
23099 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23100 Remove W32_SCROLL_BAR_CLICK_EVENT.
23101
23102 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23103 Add MULTIMEDIA_KEY_EVENT.
23104
23105 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23106 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23107 (make_lispy_event) [WINDOWSNT]: Use it to translate
23108 MULTIMEDIA_KEY_EVENT.
23109
23110 * w32term.h (WM_APPCOMMAND): Define if not already.
23111 (GET_APPCOMMAND_LPARAM): Likewise.
23112
23113 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23114 WM_APPCOMMAND.
23115
23116 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23117 (syms_of_w32fns): Export and initialize it.
23118 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23119
231202007-11-09 Chong Yidong <cyd@stupidchicken.com>
23121
23122 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23123 twice.
23124
23125 * xdisp.c (handle_face_prop): Fix last change.
23126
231272007-11-09 Richard Stallman <rms@gnu.org>
23128
23129 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23130 not just for after-strings and before-strings.
23131 Call face_for_overlay_string and pass the overlay to it.
23132 (handle_display_prop): Determine whether property came from an overlay.
23133 Pass OVERLAY arg to handle_single_display_spec.
23134 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23135 (load_overlay_strings): Fill in it->string_overlays.
23136 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23137
23138 * xfaces.c (face_for_overlay_string): Function renamed from
23139 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23140
23141 * dispextern.h (struct it): New elt string_overlays.
23142 New elt from_overlay, also in stack.
23143 Rearrange a few elements.
23144 (face_for_overlay_string): Decl renamed from
23145 face_at_buffer_position_no_overlays, and add argument.
23146
231472007-11-09 Richard Stallman <rms@gnu.org>
23148
23149 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23150 to get the base face for an overlay string.
23151
23152 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23153
23154 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23155
23156 * xdisp.c (handle_stop): Move some code out of loop.
23157
231582007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23159
23160 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23161 Fix conversion from Lisp object to ATSUFontID.
23162
231632007-11-09 Jason Rumney <jasonr@gnu.org>
23164
23165 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23166
231672007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23168
23169 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23170 Don't assume regions are aligned to page boundary.
23171 (print_load_command_name): Add LC_UUID if defined.
23172
231732007-11-09 Richard Stallman <rms@gnu.org>
23174
23175 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23176
231772007-11-07 Jason Rumney <jasonr@gnu.org>
23178
23179 * s/windows95.h: Remove.
23180
231812007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23182
23183 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23184 abort with a message on unhandled store_type values.
23185
231862007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23187
23188 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23189 Remove HAVE_X11R5 and HAVE_X11R4.
23190
231912007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23192
23193 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23194
231952007-11-01 Johan Bockgård <bojohan@gnu.org>
23196
23197 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23198 Don't set s->stippled_p here, since it has already been set by
23199 x_set_glyph_string_gc from x_draw_glyph_string.
23200
232012007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23202
23203 * sunfns.c: Remove file.
23204
23205 * m/sun386.h:
23206 * m/sun2.h:
23207 * m/sparc.h: Remove Sun windows code.
23208
232092007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23210
23211 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23212 (init_keyboard): Set current_kboard's window-system to nil.
23213 (tty_read_avail_input): Typo.
23214 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23215
232162007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23217
23218 * s/usg5-4.h:
23219 * s/usg5-3.h:
23220 * s/ptx.h:
23221 * m/is386.h:
23222 * m/ibmps2-aix.h:
23223 * Makefile.in: Remove all mentions of X10.
23224
23225 * dispnew.c (syms_of_display): Don't mention version 10.
23226
232272007-10-28 Juanma Barranquero <lekktu@gmail.com>
23228
23229 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23230 ($(BLD)/abbrev.$(O)): Remove.
23231
232322007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23233
23234 Rewrite abbrev.c in Elisp.
23235 * image.c (Qcount): Don't declare as extern.
23236 (syms_of_image): Initialize and staticpro `Qcount'.
23237 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23238 * emacs.c (main): Don't call syms_of_abbrev.
23239 * Makefile.in (obj): Remove abbrev.o.
23240 (abbrev.o): Remove.
23241 * abbrev.c: Remove.
23242
232432007-10-26 Martin Rudalics <rudalics@gmx.at>
23244
23245 * window.c (window_min_size_2): Don't count header-line.
23246
232472007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23248
23249 * frame.h (struct frame): Move all bit fields after the first bit
23250 field to take advantage of the available space. Group all the
23251 chars together to reduce wasted space due to padding.
23252
232532007-10-26 Juanma Barranquero <lekktu@gmail.com>
23254
23255 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23256
23257 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23258 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23259 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23260 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23261 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23262 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23263 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23264 (last_marked, mark_object_loop_halt): Make static.
23265
23266 * frame.c (syms_of_frame) <delete-frame-functions>:
23267 Fix typo in docstring.
23268
232692007-10-25 Juanma Barranquero <lekktu@gmail.com>
23270
23271 * w32.c (init_environment): Fix tiny memory leak.
23272 (w32_get_resource): Remove unused variable `ok'.
23273
232742007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23275
23276 Make `window-system' into a keyboard-local variable (rather than
23277 frame-local as done originally by multi-tty).
23278
23279 * keyboard.h (struct kboard): Add Vwindow_system.
23280 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23281 (mark_kboards): Mark Vwindow_system.
23282
23283 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23284 (init_display): Don't set the obsolete `window-system' frame-param.
23285
23286 * xterm.c (x_term_init):
23287 * w32term.c (w32_create_terminal):
23288 * term.c (init_tty): Set Vwindow_system.
23289 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23290 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23291
23292 * xfns.c (Fx_create_frame, x_create_tip_frame):
23293 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23294 * macfns.c (Fx_create_frame):
23295 Don't set the obsolete `window-system' frame-param.
23296
23297 * frame.h (Qwindow_system): Remove.
23298 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23299 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23300
233012007-10-24 Richard Stallman <rms@gnu.org>
23302
23303 * frame.c (x_figure_window_size): For fullscreen case,
23304 set USPosition | PPosition without clobbering rest of window_prompting.
23305
23306 * keyboard.c (Fcurrent_idle_time): Doc fix.
23307
23308 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23309
233102007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23311
23312 * process.c (unwind_request_sigio): Only define if __ultrix__.
23313
23314 * callproc.c (child_setup): Remove spurious *.
23315
23316 * lisp.h (Fget_text_property): Declare.
23317 (have_menus_p): Declare it here rather than in sys-dep header files.
23318 * macterm.h (have_menus_p):
23319 * msdos.h (have_menus_p):
23320 * xterm.h (have_menus_p): Remove.
23321
23322 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23323 (Fmake_variable_frame_local): Just check the variable's const-ness
23324 rather than checking nil or t.
23325
233262007-10-22 Jason Rumney <jasonr@gnu.org>
23327
23328 * w32fns.c: Include math.h.
23329 (w32_abort): Declaration moved to nt/config.nt.
23330
23331 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23332 (abort): Redefinition moved to nt/config.nt.
23333
23334 * m/windowsnt.h: Remove.
23335
233362007-10-22 Juanma Barranquero <lekktu@gmail.com>
23337
23338 * emacs.c (Fdump_emacs): Fix typo in message.
23339 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23340 <installation-directory>: Reflow docstring.
23341
233422007-10-22 Juri Linkov <juri@jurta.org>
23343
23344 * minibuf.c: Allow minibuffer default to be a list of default values.
23345 With empty input use the first element of this list as returned default.
23346 (string_to_object)
23347 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23348 (read_minibuf): If defalt is cons, set histstring to its car.
23349 (Fread_string): If default_value is cons, set val to its car.
23350 (Fread_buffer): If def is cons, use its car.
23351 (Fcompleting_read): If defalt is cons, set val to its car.
23352
233532007-10-21 Michael Albinus <michael.albinus@gmx.de>
23354
23355 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23356
233572007-10-20 Juanma Barranquero <lekktu@gmail.com>
23358
23359 * doc.c (Fdocumentation): Check for advice in all cases.
23360
233612007-10-19 Chong Yidong <cyd@stupidchicken.com>
23362
23363 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23364
233652007-10-19 Richard Stallman <rms@gnu.org>
23366
23367 * doc.c (Fdocumentation): Check for and handle an advised function.
23368
233692007-10-19 Juanma Barranquero <lekktu@gmail.com>
23370
23371 * process.c (Fset_process_filter): Doc fix.
23372
233732007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23374
23375 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23376 which caused key-translation-map to applied repeatedly (thus breaking
23377 double-mode).
23378
233792007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23380
23381 * xselect.c (x_own_selection, x_handle_selection_clear)
23382 (x_clear_frame_selections):
23383 * w32menu.c (list_of_panes, list_of_items):
23384 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23385 * textprop.c (validate_plist, interval_has_all_properties)
23386 (interval_has_some_properties, interval_has_some_properties_list)
23387 (add_properties, text_property_list):
23388 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23389 * minibuf.c (Fassoc_string):
23390 * macselect.c (x_own_selection, x_clear_frame_selections)
23391 (Fx_disown_selection_internal):
23392 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23393 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23394
233952007-10-17 Chong Yidong <cyd@stupidchicken.com>
23396
23397 * process.c: Link to libs for calling res_init() if available.
23398 (Fmake_network_process): Call res_init() before getaddrinfo or
23399 gethostbyname, if possible.
23400
234012007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23402
23403 * lread.c (read1): Set pvectype for char_tables.
23404
23405 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23406 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23407 Add type checks.
23408 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23409
23410 * alloc.c (free_misc): Use XMISCTYPE.
23411 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23412
234132007-10-17 Glenn Morris <rgm@gnu.org>
23414
23415 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23416 (syms_of_minibuf): Add Qcompletion_ignore_case.
23417 * dired.c (Qcompletion_ignore_case): Change to external.
23418 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23419 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23420 (Fread_file_name): Use it rather than intern'ing.
23421
23422 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23423 (Fread_coding_system): Ignore case of user input.
23424
234252007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23426
23427 * xdisp.c (handle_display_prop): Ignore display specs after
23428 replacing one when string text is being replaced.
23429 (handle_single_display_spec): Pretend as if characters with display
23430 property haven't been consumed only when buffer text is being replaced.
23431
234322007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23433
23434 * xfns.c (Fx_create_frame, Fx_display_list):
23435 * window.c (window_fixed_size_p, enlarge_window)
23436 (shrink_window_lowest_first):
23437 * macterm.c (init_font_name_table):
23438 * macfns.c (Fx_create_frame, Fx_display_list):
23439 * lread.c (close_load_descs):
23440 * keyboard.c (read_char_x_menu_prompt):
23441 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23442 * coding.c (code_convert_region_unwind): Test the type of an object
23443 rather than just !NILP before extracting data from it.
23444
23445 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23446
23447 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23448 (XMISCANY): New macro.
23449 (XMISCTYPE): Use it.
23450 (struct Lisp_Misc_Any): New type.
23451 (union Lisp_Misc): Use it.
23452 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23453 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23454 (find_symbol_value, set_internal, default_value, Fset_default)
23455 (Fmake_variable_buffer_local, Fmake_local_variable)
23456 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23457 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23458 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23459 * alloc.c (allocate_buffer): Set the size and tag.
23460 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23461 Use XMISCANY.
23462 (die): Follow the GNU convention for error messages.
23463 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23464 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23465 tag any more.
23466 (set_buffer_internal_1):
23467 * frame.c (store_frame_param):
23468 * eval.c (specbind):
23469 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23470
23471 * doc.c (Fsnarf_documentation): Simplify.
23472
234732007-10-14 Juanma Barranquero <lekktu@gmail.com>
23474
23475 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23476 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23477
234782007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23479
23480 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23481
234822007-10-14 Juanma Barranquero <lekktu@gmail.com>
23483
23484 * eval.c (do_autoload): Don't save autoloads.
23485
23486 * data.c (Ffset): Save autoload of the function being set.
23487
234882007-10-07 John Paul Wallington <jpw@pobox.com>
23489
23490 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23491 parameter before setting up faces.
23492
234932007-10-13 Eli Zaretskii <eliz@gnu.org>
23494
23495 * ccl.c (Fregister_code_conversion_map):
23496 * keyboard.c (append_tool_bar_item): Reformat last change.
23497
23498 * lisp.h (eabs): Rename from `abs'. All callers changed.
23499
235002007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23501
23502 * buffer.c (add_overlay_mod_hooklist):
23503 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23504 * fontset.c (make_fontset):
23505 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23506 (append_tool_bar_item):
23507 * macmenu.c (grow_menu_items):
23508 * w32menu.c (grow_menu_items):
23509 * xmenu.c (grow_menu_items): Use larger_vector.
23510
235112007-10-13 Eli Zaretskii <eliz@gnu.org>
23512
23513 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23514 selected frame'' on MSDOS).
23515
235162007-10-12 Martin Rudalics <rudalics@gmx.at>
23517
23518 * frame.c (Qexplicit_name): New variable.
23519 (x_report_frame_params): Report it in parameter alist.
23520 (syms_of_frame): Intern and staticpro it.
23521
235222007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23523
23524 * macfns.c (x_create_tip_frame): Set terminal for frame.
23525
235262007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23527
23528 * frame.c (Qenvironment): Remove.
23529 (syms_of_frame) <Qenvironment>: Don't initialize.
23530 (Fdelete_frame): Don't treat the `environment' param specially.
23531 * frame.h (Qenvironment): Don't declare.
23532 * callproc.c (set_initial_environment): Don't set unused frame param.
23533
23534 * frame.c (Fframe_with_environment): Remove.
23535 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23536
23537 * lisp.h (Fframe_with_environment): Don't declare.
23538
235392007-10-10 Juanma Barranquero <lekktu@gmail.com>
23540
23541 * indent.c (indent_tabs_mode, last_known_column)
23542 (last_known_column_modified): Make static.
23543 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23544
235452007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23546
23547 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23548
235492007-10-09 Jason Rumney <jasonr@gnu.org>
23550
23551 * w32term.c (x_set_window_size): Disable code that attempts to tell
23552 Lisp code about a size change before it actually happens.
23553
235542007-10-09 Richard Stallman <rms@gnu.org>
23555
23556 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23557 return HANDLED_RETURN.
23558
235592007-10-08 Martin Rudalics <rudalics@gmx.at>
23560
23561 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23562 when there's an unread command event.
23563
23564 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23565 window autoselection act appropriately when leaving selected frame.
23566 (syms_of_frame): Initialize focus_follows_mouse.
23567 * frame.h (focus_follows_mouse): Extern it.
23568 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23569 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23570 * msdos.c (dos_rawgetc): Likewise.
23571 * w32term.c (w32_read_socket): Likewise.
23572 * xterm.c (handle_one_xevent): Likewise.
23573 * xdisp.c (syms_of_xdisp): In doc-string of
23574 mouse-autoselect-window mention focus-follows-mouse.
23575
235762007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23577
23578 * macterm.c (mac_load_query_font): Fix missing return value.
23579 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23580 Add BLOCK_INPUT.
23581
235822007-10-08 Richard Stallman <rms@gnu.org>
23583
23584 * xdisp.c (get_window_cursor_type): Implement documented behavior
23585 for cursor-in-non-selected-windows = t.
23586
235872007-10-08 Jason Rumney <jasonr@gnu.org>
23588
23589 * w32.c (w32_get_resource): Always close registry keys.
23590
235912007-10-08 Jason Rumney <jasonr@gnu.org>
23592
23593 * makefile.w32-in (LIBS): Add COMCTL32.
23594
23595 * w32fns.c (globals_of_w32fns): Init common controls.
23596
235972007-10-08 Richard Stallman <rms@gnu.org>
23598
23599 * image.c (our_memory_buffer): Rename from omfib_buffer.
23600
236012007-10-08 Richard Stallman <rms@gnu.org>
23602
23603 * buffer.c (Foverlays_at): Doc fix.
23604
236052007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23606
23607 * fns.c (Fplist_put): Preserve uneven tail data.
23608
236092007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23610
23611 * termhooks.h (enum event_kind): Remove trailing comma.
23612
23613 * frame.h (enum): Remove trailing comma.
23614
236152007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23616
23617 * w32proc.c (delete_child): Don't terminate threads of zombies.
23618
236192007-10-08 Martin Rudalics <rudalics@gmx.at>
23620
23621 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23622
23623 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23624 last-repeatable-command.
23625 (init_kboard): Initialize Vlast_repeatable_command.
23626 (command_loop_1): Set it to real_this_command unless that was
23627 bound to an input event.
23628 (mark_kboards): Mark it.
23629
236302007-10-08 Richard Stallman <rms@gnu.org>
23631
23632 * eval.c (condition-case): Doc fix.
23633
236342007-10-08 Masatake YAMATO <jet@gyve.org>
23635
23636 * xfaces.c (tty_supports_face_attributes_p): Fix code
23637 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23638 was copied and not edited.
23639
236402007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23641
23642 Add new `input-decode-map' keymap and use it for terminal
23643 escape sequences.
23644 * keyboard.h (struct kboard): Add Vinput_decode_map.
23645 Remove Vlocal_key_translation_map.
23646 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23647 (init_kboard): Init input-decode-map.
23648 Replace local-key-translation-map back with key-translation-map.
23649 (syms_of_keyboard): Declare input-decode-map.
23650 Remove local-key-translation-map. Update docstrings.
23651 (mark_kboards): Mark Vinput_decode_map.
23652 Don't mark Vlocal_key_translation_map.
23653 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23654 Replace local-key-translation-map back with key-translation-map.
23655 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23656 Bind in input-decode-map rather than function-key-map.
23657
23658 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23659 This was made redundant by the previous introduction of XSETPVECTYPE.
23660
236612007-10-09 Richard Stallman <rms@gnu.org>
23662
23663 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23664
236652007-09-29 Richard Stallman <rms@gnu.org>
23666
23667 * eval.c (internal_condition_case_2, internal_condition_case_1)
23668 (internal_condition_case): Reenable abort if x_catching_errors ()
23669 to see if that really happens and why.
23670
236712007-10-06 Andreas Schwab <schwab@suse.de>
23672
23673 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23674
236752007-10-04 Juanma Barranquero <lekktu@gmail.com>
23676
23677 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23678
236792007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23680
23681 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23682
236832007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23684
23685 * window.h (struct window):
23686 * window.c (struct save_window_data, struct saved_window):
23687 * termhooks.h (struct terminal):
23688 * process.h (struct Lisp_Process):
23689 * frame.h (struct frame):
23690 * buffer.h (struct buffer):
23691 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23692 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23693 The size field of (pseudo)vectors is now unsigned.
23694 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23695
23696 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23697 Turn `count' into an integer.
23698
23699 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23700 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23701 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23702 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23703 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23704
23705 * alloc.c (allocate_pseudovector): New fun.
23706 (ALLOCATE_PSEUDOVECTOR): New macro.
23707 (allocate_window, allocate_terminal, allocate_frame)
23708 (allocate_process): Use it.
23709 (mark_vectorlike): New function.
23710 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23711 (mark_terminals): Use it.
23712 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23713 (Fmake_byte_code): Use XSETPVECTYPE.
23714
23715 * frame.c (Fframe_parameters): Minor simplification.
23716
23717 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23718
23719 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23720
23721 * buffer.c (Fget_buffer_create, init_buffer_once):
23722 * lread.c (defsubr):
23723 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23724
23725 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23726 defined differently in the m/*.h files.
23727 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23728 (XSETPVECTYPE): New macro.
23729 (XSETPSEUDOVECTOR): Use it.
23730
23731 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23732 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23733
23734 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23735 * lread.c (defvar_per_buffer):
23736 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23737
23738 * window.c (candidate_window_p): Only consider as visible frames that
23739 are on the same terminal.
23740
23741 * m/ibms390x.h (MARKBIT): Remove unused macro.
23742
237432007-10-01 Juanma Barranquero <lekktu@gmail.com>
23744
23745 * lread.c (Fload): Fix typo in docstring.
23746
237472007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23748
23749 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23750 of a non-zero value can't yield zero.
23751
237522007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23753
23754 * term.c (term_clear_mouse_face, term_mouse_highlight)
23755 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23756
23757 * print.c (safe_debug_print): Use XHASH.
23758
23759 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23760 Lisp elements such as tags.
23761 (XHASH): New macro.
23762 (EQ): Use it.
23763 (SREF, SSET, STRING_COPYIN): Use SDATA.
23764 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23765
23766 * alloc.c (mark_terminal): Remove left-over declaration.
23767 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23768 (allocate_vectorlike): Remove type argument. Adjust callers.
23769 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23770 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23771
23772 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23773 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23774 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23775 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23776 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23777 Use them.
23778
23779 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23780 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23781 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23782
237832007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23784
23785 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23786 loaded by default.
23787
237882007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23789
23790 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23791 on this tty.
23792 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23793
23794 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23795 Update all users.
23796 (handle_one_term_event): Use Gpm_DrawPointer.
23797 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23798 Signal errors instead of returning nil. Always return nil.
23799 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23800 Make it a noop if gpm-mouse was not activated.
23801 (syms_of_term): Update names.
23802
238032007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23804
23805 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23806 (init_sys_modes): Check that gpm_tty is the current tty.
23807
23808 * alloc.c (allocate_terminal): Set the vector size to only count the
23809 lisp fields. Initialize those to nil.
23810 (mark_object): Don't treat terminals specially.
23811 (mark_terminal): Remove.
23812 (mark_terminals): Use mark_object instead.
23813
23814 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23815 the GC to the beginning.
23816
23817 * indent.h:
23818 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23819
23820 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23821
238222007-09-25 Jason Rumney <jasonr@gnu.org>
23823
23824 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23825
23826 * w32console.c (create_w32cons_output): Remove.
23827
23828 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23829
23830 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23831 (reset_sys_modes): Use reset_terminal_modes_hook.
23832
238332007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23834
23835 * eval.c (do_autoload): Don't output any message.
23836
238372007-09-24 Juri Linkov <juri@jurta.org>
23838
23839 * emacs.c (standard_args): Change priority of "--no-splash"
23840 from 40 to 3. Add "--no-desktop" with the same priority.
23841
238422007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23843
23844 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23845 and optimize the case where they are all 1.
23846
238472007-09-23 Johannes Weiner <hannes@saeurebad.de>
23848
23849 * lisp.h (abs): Define if not defined.
23850 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23851 Don't define `abs', since it's defined in lisp.h.
23852
238532007-09-22 Eli Zaretskii <eliz@gnu.org>
23854
23855 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23856 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23857 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23858 (init_tty): Use DEV_TTY instead of "/dev/tty".
23859 [WINDOWSNT]: No need to protect from NAME arg being null.
23860
238612007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23862
23863 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23864 up the tty state.
23865
238662007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23867
23868 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23869 (gpm_tty): Change its type.
23870 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23871 (gpm_tty): Change its type and initialize it.
23872 (Fterm_open_connection): Check the frame is indeed a tty.
23873 Use the new gpm_tty.
23874 (Fterm_close_connection): Use the new gpm_tty.
23875 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23876 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23877
238782007-09-21 Juanma Barranquero <lekktu@gmail.com>
23879
23880 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23881 underline_color, to draw strike-through.
23882
238832007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23884
23885 * lisp.h (allocate_terminal): Declare.
23886
23887 * window.c (candidate_window_p): Consider frames that are being placed
23888 by the user as somewhere between visible and iconified.
23889 (window_loop): Prefer windows on the current frame.
23890 (Fselect_window): Move the use of select-frame to the beginning so we
23891 can just delegate all the work (it'll call us back anyway).
23892
23893 * frame.c (Qdisplay_environment_variable):
23894 * frame.h (Qdisplay_environment_variable): Delete.
23895
23896 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23897 of the first arg, since that value may be a union.
23898
23899 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23900 parameter rather than Qdisplay_environment_variable. If all else
23901 fails, look for DISPLAY in initial-environment.
23902
239032007-09-21 Glenn Morris <rgm@gnu.org>
23904
23905 * Makefile.in (emacstool): Remove target.
23906 (lisp, shortlisp): Remove termdev.elc.
23907
239082007-09-21 Markus Triska <markus.triska@gmx.at>
23909
23910 * xterm.c (x_delete_display): Compile session management conditionally.
23911
239122007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23913
23914 * callproc.c (getenv_internal_1): New function.
23915 (getenv_internal): Use it.
23916 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23917
23918 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23919 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23920 (Fset_terminal_parameter): Work with dead terminals as well.
23921 (Fmodify_terminal_parameters): Remove.
23922
23923 * terminal.c (get_terminal): Handle terminals.
23924 Make sure the terminal returned is live.
23925 (create_terminal): Use allocate_terminal.
23926 (mark_terminals): Move to alloc.c.
23927 (delete_terminal): Use terminal->name as liveness status.
23928 NULL out fields after freeing their contents.
23929 Don't deallocate the object.
23930 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23931 rather than an int.
23932 (Fterminal_live_p): Accept non-integer arguments.
23933 (Fterminal_list): Return terminal objects rather than an ints.
23934
23935 * alloc.c (enum mem_type): New member for `terminal' objects.
23936 (allocate_terminal): New function.
23937 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23938 Handle terminals.
23939 (mark_terminal): New fun.
23940 (mark_terminals): Move from terminal.c.
23941
23942 * term.c (get_tty_terminal): Don't treat output_initial specially.
23943 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23944 (delete_tty): Use terminal->name as liveness status.
23945
23946 * termhooks.h (struct terminal): Make it into a pseudovector.
23947 Remove `deleted' replaced by checking `name's nullness.
23948
23949 * print.c (print_object): Handle terminals.
23950
23951 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23952 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23953
23954 * frame.c (make_terminal_frame):
23955 * keyboard.c (tty_read_avail_input):
23956 * w32term.c (x_delete_terminal):
23957 * xfns.c (Fx_create_frame, x_create_tip_frame):
23958 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23959
239602007-09-20 Glenn Morris <rgm@gnu.org>
23961
23962 * process.c (Fmake_network_process): Doc fix.
23963
239642007-09-19 Jason Rumney <jasonr@gnu.org>
23965
23966 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23967
239682007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23969
23970 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23971 Fix a C warning regarding variable constness.
23972
23973 * xterm.c (handle_one_xevent): Fix a C warning.
23974
239752007-09-18 Jason Rumney <jasonr@gnu.org>
23976
23977 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23978
239792007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23980
23981 * gtkutil.c (gdpy_def): New variable.
23982 (xg_initialize): Initialize gdpy_def.
23983 (xg_display_close): If no other display exists, set gdpy_def to a
23984 new connection.
23985
239862007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23987
23988 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23989 when we have no file name for the icon.
23990 (xg_tool_bar_expose_callback): Remove.
23991 (xg_create_tool_bar): Don't connect expose signal to
23992 xg_tool_bar_expose_callback.
23993 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23994
239952007-09-16 Andreas Schwab <schwab@suse.de>
23996
23997 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23998 values instead of zapping them.
23999
240002007-09-14 Glenn Morris <rgm@gnu.org>
24001
24002 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24003 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24004 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24005 scope and rename to omfib_buffer for clarity.
24006 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24007
240082007-09-14 Kenichi Handa <handa@m17n.org>
24009
24010 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24011
240122007-09-13 Jason Rumney <jasonr@gnu.org>
24013
24014 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24015
24016 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24017
24018 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24019 (mac_term_init): Call here instead, passing rif.
24020
240212007-09-13 Glenn Morris <rgm@gnu.org>
24022
24023 * s/hpux.h: No longer define `static' as nothing.
24024
240252007-09-13 Johan Bockgård <bojohan@gnu.org>
24026
24027 * callint.c (Fcall_interactively): Remove unused var `fun'.
24028
240292007-09-12 Romain Francoise <romain@orebokech.com>
24030
24031 * window.c (prefer_window_split_horizontally, display_buffer):
24032 Revert 2007-09-08 change.
24033
240342007-09-12 Glenn Morris <rgm@gnu.org>
24035
24036 * alloca.c: Remove file.
24037 * Makefile.in (alloca): Do not undef.
24038 (allocaobj, alloca.o): Remove.
24039 (otherobj): Remove allocaobj.
24040 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24041 * regex.c (C_ALLOCA): Remove all references and code that was only
24042 used when this was defined.
24043 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24044 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24045 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24046
24047 * Makefile.in (SOURCES, unlock, relock): Delete.
24048
24049 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24050 (menu_grab_callback): All uses changed.
24051
24052 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24053 (x_reply_selection_request): All uses changed.
24054
240552007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24056
24057 * lread.c (load_warn_old_style_backquotes): Change message to look
24058 better when it appears in the middle of byte-compiler messages.
24059
240602007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24061
24062 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24063
24064 * xterm.c (x_create_terminal): Add comment.
24065
24066 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24067
240682007-09-10 Richard Stallman <rms@gnu.org>
24069
24070 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24071
240722007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24073
24074 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24075 (DEFUN): Document `intspec', use it instead of `prompt'.
24076
24077 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24078
24079 * data.c (Finteractive_form): If the interactive specification starts
24080 with a `(', use it as a Lisp form.
24081
24082 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24083 name and file modes.
24084
24085 * callint.c (Fcall_interactively): Comment fixes.
24086
240872007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24088
24089 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24090 and compiled functions.
24091
240922007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24093
24094 * window.c (prefer_window_split_horizontally): New variable.
24095 (display_buffer): Consider splitting window horizontally depending
24096 on prefer_window_split_horizontally.
24097
240982007-09-08 Eli Zaretskii <eliz@gnu.org>
24099
24100 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24101
241022007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24103
24104 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24105
24106 * frame.c (x_set_frame_parameters): Check number is positive before
24107 using XFASTINT.
24108
24109 * window.c (freeze_window_start): Don't presume selected_window holds
24110 a window object.
24111 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24112
241132007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24114
24115 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24116
241172007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24118
24119 * window.c (Vsplit_window_preferred_function): New var.
24120 (Fdisplay_buffer): Use it.
24121 (syms_of_window): Export, and initialize it.
24122
241232007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24124
24125 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24126
241272007-09-06 Glenn Morris <rgm@gnu.org>
24128
24129 * gtkutil.c (menu_grab_callback) <cnt>:
24130 * xselect.c (x_reply_selection_request) <cnt>: Move static
24131 variable to file scope.
24132
241332007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24134
24135 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24136 consistent values of selected_frame and selected_window.
24137
241382007-09-04 Jason Rumney <jasonr@gnu.org>
24139
24140 * w32console.c (initialize_w32_display): Zero unused hooks.
24141
241422007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24143
24144 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24145 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24146
241472007-09-04 Jason Rumney <jasonr@gnu.org>
24148
24149 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24150 in w32console.c. Set up input. Remove XXX comments that have been
24151 confirmed as correct.
24152
24153 * s/ms-w32.h (MULTI_KBOARD): Define.
24154
24155 * w32console.c (one_and_only_w32cons): Remove.
24156 (initialize_w32_display): Take terminal argument.
24157
24158 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24159 initialize_w32_display.
24160 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24161
24162 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24163
24164 * keyboard.c (discard_mouse_events): Discard it.
24165 (make_lispy_event): Translate it to a lisp event.
24166 (lispy_wheel_names): Add wheel-left and right events.
24167 (syms_of_keyboard): Enlarge wheel_syms.
24168
24169 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24170 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24171
24172 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24173
24174 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24175 from WM_MOUSEHWHEEL.
24176 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24177
24178 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24179 terminal.
24180
24181 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24182 keyboard for the terminal.
24183
241842007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24185
24186 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24187 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24188 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24189 and resume-tty-function to resume-tty-hook.
24190 (Fsuspend_tty, Fresume_tty): Use new names.
24191
241922007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24193
24194 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24195 if it starts with "n:".
24196
241972007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24198
24199 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24200
242012007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24202
24203 * frame.h:
24204 * frame.c (Qterm_environment_variable): Remove.
24205 (syms_of_frame): Don't init and staticpro it.
24206
24207 * callproc.c (getenv_internal): Remove special case for $TERM.
24208
24209 * callproc.c (Vinitial_environment): New variable.
24210 (set_initial_environment): Initialize it.
24211 (syms_of_callproc): Declare it.
24212 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24213 TERM under which a process runs is never related to the TERM in which
24214 Emacs is running.
24215
242162007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24217
24218 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24219 * s/darwin.h: ... do it here.
24220
242212007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24222
24223 * lisp.h (set_initial_environment): Rename from set_global_environment.
24224
24225 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24226 removed by mistake on the multi-tty branch.
24227
24228 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24229 (Fmodify_frame_parameters): Return a value.
24230
24231 * image.c (png_load): Comment-out var only used in commented-out code.
24232
24233 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24234 before passing it to mark_object.
24235
24236 * xfaces.c (internal_resolve_face_name): Return a value.
24237 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24238
24239 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24240 (x_icon): Comment-out var only used in commented-out code.
24241
242422007-08-29 Romain Francoise <romain@orebokech.com>
24243
24244 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24245 QUIT hasn't been provided.
24246
242472007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24248
24249 * callproc.c (child_setup, getenv_internal): Use the
24250 display-environment-variable and term-environment-variable frame params.
24251 (set_initial_environment): Initialise Vprocess_environment.
24252
24253 * config.in: Disable multi-keyboard support on a mac.
24254
24255 * frame.c (Qterm_environment_variable)
24256 (Qdisplay_environment_variable): New variables.
24257 (syms_of_frame): Intern and staticpro them.
24258 (Fmake_terminal_frame): Disable output method test.
24259
24260 * frame.h: Declare them here.
24261
24262 * macfns.c (x_set_mouse_color): Get rif from the frame.
24263 (x_set_tool_bar_lines): Don't use updating_frame.
24264 (mac_window): Add 2 new parameters for consistency with other systems.
24265 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24266 frame parameters following what is done in X11 and w32. Don't use
24267 FRAME_MAC_DISPLAY_INFO.
24268 (Fx_open_connection, start_hourglass): Remove window-system check.
24269 (x_create_tip_frame): Get the keyboard from the terminal.
24270
24271 * macmenu.c: Reorder includes.
24272 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24273
24274 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24275 terminal parameter.
24276 (x_clear_frame): Add a frame parameter.
24277 (note_mouse_movement): Get rif from the frame.
24278 (mac_term_init): Initialize the terminal.
24279 (mac_initialize): Make static and move terminal initialization ...
24280 (mac_create_terminal): ... to this new function.
24281
24282 * macterm.h (struct mac_display_info): Add terminal.
24283 (mac_initialize): Delete declaration.
24284
24285 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24286
24287 * sysdep.c: Comment out text after #endif.
24288
24289 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24290 is defined. Better initialize ttys in windows. Use terminal
24291 specific mouse_position_hook.
24292
24293 * termhooks.h (union display_info): Add mac_display_info.
24294
24295 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24296 Set the default minibuffer frame, window_system and the rest of the
24297 frame parameters following what is done in X11.
24298
24299 * w32term.c (w32_initialize): Make static.
24300
24301 * xselect.c (x_handle_selection_clear): Only access
24302 terminal->kboard when MULTI_KBOARD is defined.
24303
24304 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24305 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24306
243072007-08-29 Jason Rumney <jasonr@gnu.org>
24308
24309 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24310 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24311
24312 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24313 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24314
24315 * keyboard.c (restore_kboard_configuration): Only define when
24316 MULTI_KBOARD defined.
24317
24318 * makefile.w32-in: Update dependancies from Makefile.in.
24319 (OBJ1): Add terminal.$(O)
24320
24321 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24322 Don't define function body.
24323 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24324
24325 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24326
24327 * w32.c (request_sigio, unrequest_sigio): Remove.
24328
24329 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24330 (w32con_clear_frame, w32con_clear_end_of_line)
24331 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24332 (w32con_delete_glyphs, w32con_set_terminal_window)
24333 (scroll_line, w32_sys_ring_bell): Add frame arg.
24334 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24335 Add terminal arg.
24336 (PICK_FRAME): Remove.
24337 (w32con_write_glyphs): Use frame specific terminal coding.
24338 (one_and_only_w32cons): New global variable.
24339 (initialize_w32_display): Use it for storing hooks.
24340 (create_w32cons_output): New function.
24341
24342 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24343 arg a frame.
24344
24345 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24346 Set window_system.
24347 (x_set_tool_bar_lines): Don't use updating_frame.
24348 (Fx_create_frame): Set terminal and ref count.
24349 (Fx_open_connection): Remove window-system check.
24350
24351 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24352
24353 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24354 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24355 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24356 Add frame arg.
24357 (x_delete_terminal, w32_create_terminal): New functions.
24358 (w32_term_init): Create a terminal.
24359 (w32_initialize): Move terminal specific initialization to
24360 w32_create_terminal.
24361
24362 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24363 (w32_clear_rect, w32_clear_area): Use background from frame.
24364 (w32_display_info): Add terminal.
24365 (w32_sys_ring_bell, x_delete_display): Declare here.
24366
24367 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24368
24369 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24370
243712007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24372
24373 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24374 Fix get_named_tty calls for the controlling tty.
24375
243762007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24377
194d44e7 24378 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24379
243802007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24381
24382 * term.c (tty_insert_glyphs): Add missing first parameter.
24383
243842007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24385
24386 * buffer.c (Fbuffer_list, Fbury_buffer):
24387 Take frame->buried_buffer_list into account.
24388
24389 * cm.c (current_tty): New variable, for cmputc().
24390 (cmputc): Use it.
24391 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24392 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24393 (cmgoto): Add tty parameter. Pass it on to calccost().
24394 Use emacs_tputs() instead of tputs().
24395
24396 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24397 tputs().
24398 (current_tty): New variable, for cmputc().
24399 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24400
24401 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24402 (internal_condition_case, internal_condition_case_1)
24403 (internal_condition_case_2): Don't abort when x_catching_errors.
24404
24405 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24406 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24407 prevent crashes caused by bogus longjmps in read_char.
24408
24409 * keymap.h (Fset_keymap_parent): Add EXFUN.
24410
24411 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24412 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24413 Remove redundant definition.
24414
24415 * macfns.c (x_set_mouse_color, x_make_gc):
24416 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24417
24418 * w32term.c (x_free_frame_resources):
24419 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24420 (w32_initialize): Use the accessor macros for terminal characteristics.
24421
24422 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24423 Use the accessor macros for terminal characteristics.
24424 * msdos.c (internal_terminal_init): Use the accessor macros for
24425 terminal characteristics.
24426 (ScreenVisualBell, internal_terminal_init):
24427 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24428
24429 * termopts.h (no_redraw_on_reenter): Declare.
24430
24431 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24432 (mark_terminals, mark_ttys): Declare.
24433 (Fgarbage_collect): Call them.
24434 (mark_object): Mark buried_buffer_list.
24435
24436 * prefix-args.c: Include stdlib.h for exit.
24437
24438 * syssignal.h: Add comment.
24439
24440 * indent.c: Include stdio.h.
24441
24442 * window.h (Vinitial_window_system): Declare.
24443 (Vwindow_system): Delete declaration.
24444
24445 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24446
24447 * image.c (lookup_image): Don't initialize `c' until the xasserts
24448 have been run.
24449
24450 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24451 FRAME_FOREGROUND_PIXEL.
24452
24453 * print.c (print_preprocess): Don't lose print_depth levels while
24454 iterating.
24455
24456 * widget.c (update_from_various_frame_slots):
24457 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24458
24459 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24460 frames.
24461 (window_internal_height): Remove bogus make_number call.
24462 (init_window_once): Call make_terminal_frame with two zero parameters.
24463
24464 * fileio.c (Fread_file_name): Update comment.
24465
24466 * callint.c (Fcall_interactively):
24467 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24468 Make sure it is correctly unwound.
24469
24470 * xsmfns.c (x_session_close): New function.
24471
24472 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24473 Delete declarations.
24474
24475 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24476 (x_output): Remove background_pixel and foreground_pixel fields.
24477 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24478 (x_delete_device, x_session_close): Declare.
24479
24480 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24481 (read_filtered_event): Call `read_char' with a local
24482 `wrong_kboard_jmpbuf'.
24483
24484 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24485 Don't call single_kboard_state. Use FRAME_RIF.
24486
24487 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24488 systems.
24489
24490 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24491 (Fframe_with_environment, Fset_input_meta_mode)
24492 (Fset_quit_char): EXFUN.
24493 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24494 (init_sys_modes, reset_sys_modes): Update prototypes.
24495 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24496
24497 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24498 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24499 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24500 Delete declarations.
24501 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24502 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24503 New declarations.
24504
24505 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24506 already does that during init_display(). Call syms_of_keymap
24507 before syms_of_keyboard. Call `syms_of_terminal'.
24508 Call set_initial_environment, not set_process_environment.
24509 (shut_down_emacs): Call reset_all_sys_modes() instead of
24510 reset_sys_modes().
24511
24512 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24513 (internal_resolve_face_name, resolve_face_name_error): New functions.
24514 (resolve_face_name): Protect against loops and errors thrown by Fget.
24515 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24516 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24517
24518 * scroll.c: Replace CURTTY() with local variables throughout the
24519 file (where applicable).
24520 (calculate_scrolling, calculate_direct_scrolling)
24521 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24522 characteristics.
24523
24524 * keymap.c (Vfunction_key_map): Remove.
24525 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24526 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24527 (Vkey_translation_map): Remove.
24528 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24529 (Fdescribe_buffer_bindings)
24530 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24531 Update for terminal-local key-translation-map.
24532
24533 * Makefile.in (callproc.o): Update dependencies.
24534 (lisp, shortlisp): Add termdev.elc.
24535 (obj): Add terminal.o.
24536 (terminal.o): Add dependencies.
24537 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24538 (data.o, fns.o): Add termhooks.h dependency.
24539 (SOME_MACHINE_LISP): Add dnd.elc.
24540 (minibuf.o): Fix typo.
24541 Update dependencies.
24542
24543 * data.c (do_symval_forwarding, store_symval_forwarding)
24544 (find_symbol_value): Use the selected frame's keyboard, not
24545 current_kboard.
24546
24547 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24548 Vwindow_system.
24549
24550 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24551 Fmenu_bar_open.
24552 (syms_of_xmenu): Update defsubr.
24553 (mouse_position_for_popup, Fx_popup_menu)
24554 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24555 (set_frame_menubar, free_frame_menubar)
b97439ce 24556 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24557 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24558 an X frame.
24559
24560 * xselect.c (x_own_selection): Abort if not an X frame.
24561 (some_frame_on_display): Check if it is an X frame.
24562 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24563
24564 * coding.c: Include frame.h and termhooks.h.
24565 (terminal_coding, keyboard_coding): Delete.
24566 (Fset_terminal_coding_system_internal)
24567 (Fset_keyboard_coding_system_internal)
24568 (Fkeyboard_coding_system)
24569 (Fterminal_coding_system): Add a terminal parameter.
24570 Get terminal_coding from the terminal.
24571 (init_coding_once): Don't call setup_coding_system here.
24572
24573 * dispextern.h (set_scroll_region, turn_off_insert)
24574 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24575 (tty_clear_end_of_line, tty_setup_colors)
24576 (delete_tty, updating_frame)
24577 (produce_special_glyphs, produce_glyphs, write_glyphs)
24578 (insert_glyphs): Remove.
24579 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24580 (tty_turn_off_highlight, get_tty_size): Add declaration.
24581 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24582
24583 * frame.h (enum output_method): Add output_initial.
24584 (struct x_output): Delete.
24585 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24586 Access foreground_pixel and background_pixel directly from the frame.
24587 (tty_display): Delete.
24588 (struct frame): Add buried_buffer_list, foreground_pixel,
24589 background_pixel and terminal. Delete kboard.
24590 (union output_data): Add tty.
24591 (FRAME_KBOARD): Get the kboard from the terminal.
24592 (FRAME_INITIAL_P): New macro.
24593 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24594 (Qterm_environment_variable, Qdisplay_environment_variable)
24595 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24596 New declarations.
24597
24598 * termchar.h (tty_output, tty_display_info): New structures.
24599 (tty_list): Declare.
24600 (FRAME_TTY, CURTTY): New macros.
24601 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24602 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24603 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24604 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24605
24606 * callproc.c: Include frame.h and termhooks.h, for terminal
24607 parameters.
24608 (add_env): New function.
24609 (child_setup): Use it.
24610 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24611 (getenv_internal): Fix get_terminal_param call.
24612 (Fgetenv_internal, egetenv): Update doc.
24613 (syms_of_callproc): Initialize Vprocess_environment to nil.
24614 Register and initialize them. Remove obsolete defvars. Update doc
24615 strings.
24616 (child_setup): Handle Vlocal_environment_variables.
24617 (getenv_internal): Add terminal parameter.
24618 Handle Vlocal_environment_variables.
24619 (Fgetenv_internal): Add terminal parameter.
24620 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24621 environment in a frame (not terminal) parameter. Update doc strings.
24622 (set_initial_environment): Rename from set_global_environment.
24623 Store Emacs environment in initial frame parameter.
24624
24625 * xdisp.c (redisplay_internal): Update references to
24626 `previous_terminal_frame'.
24627 (display_mode_line, Fformat_mode_line): Replace calls to
24628 `push_frame_kboard' with `push_kboard'.
24629 (get_glyph_string_clip_rects): Add extra parentheses and
24630 braces to prevent compiler warnings.
24631 (calc_pixel_width_or_height): Add xassert to check that the
24632 frame is alive. Don't call `lookup_image' on a termcap frame.
24633 (message2_nolog, message3_nolog, redisplay_internal)
24634 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24635 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24636 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24637 (Fx_display_pixel_width, Fx_display_pixel_height)
24638 (Fx_display_planes, Fx_display_color_cells)
24639 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24640 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24641 (Fx_display_backing_store, Fx_display_visual_class)
24642 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24643 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24644
24645 * xfns.c (x_set_foreground_color x_set_background_color)
24646 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24647 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24648 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24649 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24650 terminal that is being deleted.
24651 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24652 frame parameter, and make sure it overrides any user-supplied setting.
24653 (Fx_close_connection, Fx_synchronize): Unify argument names with
24654 the rest of the DEFUNs.
24655
24656 * dispnew.c (Fsend_string_to_terminal): Update call to
24657 `get_tty_terminal'.
24658 (Fredraw_frame, Fsend_string_to_terminal)
24659 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24660 FRAME_TERMCAP_P and FRAME_TTY.
24661 (window_change_signal): Don't believe width/height values that are
24662 impossibly small.
24663 (Vinitial_window_system): Rename from Vwindow_system.
24664 (termscript, Wcm, rif): Delete.
24665
24666 * termhooks.h (struct terminal): New struct containing the
24667 previously global text display hooks and new members NAME,
24668 DELETED and PARAM_ALIST.
24669 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24670 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24671 (FRAME_RIF): New macros.
24672 (get_terminal_param, get_device): New declarations.
24673 (termscript): Delete declaration.
24674
24675 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24676 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24677 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24678 FRAME_FOREGROUND_PIXEL.
24679 (x_fully_uncatch_errors): Disable definition.
24680 (x_scroll_bar_expose): Fix reference to foreground pixel.
24681 (XTread_socket): Disable loop on all X displays.
24682 (x_delete_terminal): Don't set terminal->deleted and let
24683 delete_terminal delete the frames on the terminal.
24684 (x_delete_display): Doc update to reflect changes in
24685 delete_terminal.
24686 (x_display_info) <terminal>: Move member earlier in the struct.
24687 (deleting_tty): Remove old variable.
24688 (Fsuspend_tty): Call clear_tty_hooks.
24689 (Fresume_tty, init_tty): Call set_tty_hooks.
24690 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24691 errors on X frames.
24692 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24693 (handle_one_xevent): Initialize `f' to NULL.
24694 (x_delete_terminal, x_create_terminal): New functions.
24695 (XTset_terminal_modes, XTreset_terminal_modes)
24696 (XTread_socket, x_connection_closed, x_term_init)
24697 (x_term_init, x_delete_display): Add terminal parameter.
24698 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24699 X connections.
24700
24701 * frame.c: Include termchar.h.
24702 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24703 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24704 (Qdisplay_environment_variable): New vars.
24705 (Fframep): Deal with output_initial.
24706 (Fframe-live-p): Doc fix.
24707 (Fwindow-system): New function.
24708 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24709 (make_terminal_frame): Don't create frames on a terminal that is
24710 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24711 (store_frame_param): Check for found_for_frame before calling XFRAME.
24712 (Fmake_terminal_frame): Handle NULL tty names correctly.
24713 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24714 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24715 frames to refer to a deleted frame in their 'environment parameter.
24716 (Fframe_with_environment): New function.
24717 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24718 (get_future_frame_param): New function.
24719 (Fmake_terminal_frame): Use it.
24720 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24721
24722 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24723 * sysdep.c (reset_sys_modes): Update for renames.
24724
24725 * keyboard.c (tty_read_avail_input): New function.
24726 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24727 (syms_of_keyboard): Defsubr them.
24728 (Fset_input_meta_mode, Fset_quit_char): New functions.
24729 (Fset_input_mode): Split to above functions.
24730 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24731 parameter. Use it in call to `read_char'.
24732 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24733 Set wrong_kboard_jmpbuf correctly in recursive calls.
24734 Use current_kboard to access Vkeyboard_translate_table.
24735 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24736 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24737 Update longjmp invocations. Remember the original current_kboard,
24738 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24739 changes it. Comment out unnecessary calls to
24740 `record_single_kboard_state' and `any_kboard_state'.
24741 Update recursive calls.
24742 (wrong_kboard_jmpbuf): Remove global variable.
24743 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24744 Handle deleted interrupted_kboards correctly; that is a legal
24745 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24746 and read_char calls. Abort if interrupted_kboard died in read_char.
24747 (any_kboard_state, single_kboard_state)
24748 (push_frame_kboard): Remove function.
24749 (pop_kboard): Switch out of single_kboard mode if the kboard has
24750 been deleted. Remove unused variable. Help debugging by not
24751 changing current_kboard unnecessarily. Set current_kboard to the
24752 kboard of the selected frame when the stored kboard object has
24753 been deleted before pop_kboard.
24754 (temporarily_switch_to_single_kboard): Change first parameter to a
24755 frame pointer. Throw an error when caller wants to change kboards
24756 while in single_kboard mode. Don't push_kboard if we weren't in
24757 single kboard state. Don't pop_kboard if we popped into any
24758 kboard state.
24759 (restore_kboard_configuration): Abort if pop_kboard changed the
24760 kboard in single_kboard mode. Call pop_kboard only after setting
24761 up single_kboard mode.
24762 (Frecursive_edit): Switch to single_kboard mode only in nested
24763 command loops.
24764 (cmd_error, command_loop, command_loop_1, timer_check):
24765 Comment out unnecessary call to `any_kboard_state' and
24766 `record_single_kboard_state'.
24767 (delete_kboard): Exit single_kboard mode if we have just deleted
24768 that kboard. Use FRAME_KBOARD.
24769 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24770 `fatal_error_signal'.
24771 (record_single_kboard_state): Don't push_kboard if we weren't in
24772 single kboard state. Don't pop_kboard if we popped into any
24773 kboard state.
24774 (push_frame_kboard): Rename to push_kboard.
24775 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24776 (read_avail_input): Read input from all terminals.
24777 (mark_kboards): Also mark Vkeyboard_translate_table.
24778 (kbd_buffer_store_event_hold): Simplify condition.
24779 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24780 (Vkeyboard_translate_table): Move to struct kboard.
24781 (init_kboard): Initialize Vkeyboard_translate_table.
24782 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24783 Vkeyboard_translate_table. Update doc strings. Update docs of
24784 local-function-key-map and function-key-map.
24785
24786 * terminal.c: New file.
24787
24788 * term.c: Include errno.h.
24789 (Vring_bell_function, device_list, initial_device)
24790 (next_device_id, ring_bell, update_begin, update_end)
24791 (set_terminal_window, cursor_to, raw_cursor_to)
24792 (clear_to_end, clear_frame, clear_end_of_line)
24793 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24794 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24795 (syms_of_term): Move their initialization to terminal.c.
24796 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24797 (Ftty_display_color_cells)
24798 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24799 (clear_tty_hooks, set_tty_hooks)
24800 (init_tty, maybe_fatal): New functions.
24801 (Ftty_type): Return nil if terminal is not on a tty instead of
24802 throwing an error. Doc update.
24803 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24804 Doc update. Initialize new subrs and variables.
24805 (delete_tty): Use terminal->deleted.
24806 (tty_set_terminal_modes): Rename from set_terminal_modes.
24807 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24808 (set_scroll_region): Rename to `tty_set_scroll_region'.
24809 (turn_on_insert): Rename to `tty_turn_on_insert'.
24810 (turn_off_insert): Rename to `tty_turn_off_insert'.
24811 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24812 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24813 (toggle_highligh): Rename to `tty_toggle_highlight'.
24814 (background_highlight): Rename to `tty_background_highlight'.
24815 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24816 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24817 (tty_set_scroll_region, tty_background_highlight)
24818 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24819 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24820 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24821 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24822 Add static modifier.
24823 (tty_reset_terminal_modes, tty_set_terminal_window)
24824 (tty_set_scroll_region, tty_background_highlight)
24825 (tty_highlight_if_desired, tty_cursor_to)
24826 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24827 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24828 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24829 renames.
24830
248312007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24832
24833 * keyboard.c: Qrtl is new.
24834 (parse_tool_bar_item): Handle :rtl keyword.
24835 (syms_of_keyboard): Intern :rtl keyword.
24836
24837 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24838
24839 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24840 so no Lisp code is executed.
24841 (file_for_image, find_rtl_image): New functions.
24842 (xg_get_image_for_pixmap): Use file_for_image.
24843 (update_frame_tool_bar): If direction is RTL, use RTL image if
24844 defined. Use Gtk stock images if defined.
24845
248462007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24847
24848 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24849 for nonexistent or zero-width glyph in composition glyph.
24850
248512007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24852
24853 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24854
24855 * xdisp.c (Finvisible_p): New function.
24856 (syms_of_xdisp): defsubr it.
24857
248582007-08-24 Juanma Barranquero <lekktu@gmail.com>
24859
24860 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24861 Doc fixes.
24862
248632007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24864
24865 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24866
248672007-08-24 Martin Rudalics <rudalics@gmx.at>
24868
24869 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24870 whether decoding has modified buffer contents.
24871
248722007-08-24 Jason Rumney <jasonr@gnu.org>
24873
24874 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24875 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24876 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24877 (init_svg_functions) [HAVE_NTGUI]: New function.
24878 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24879 (svg_load_image): Use them.
24880 (svg_load_image) [HAVE_NTGUI]: Implement background.
24881
248822007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24883
24884 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24885 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24886 (LIBX): Remove @RSVG_LIBS@.
24887 (LIBES): Add $(RSVG_LIBS).
24888
24889 * image.c (svg_load_image): Blend with specified background if exists.
24890 Use IMAGE_BACKGROUND. Add Mac OS Support.
24891
24892 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24893 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24894 Remove macros.
24895 [MAC_OSX] (socket_callback): Do nothing.
24896 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24897 ReceiveNextEvent.
24898 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24899 socket_callback.
24900 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24901
249022007-08-22 Glenn Morris <rgm@gnu.org>
24903
24904 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24905
249062007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24907
24908 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24909
24910 * image.c: Add support for SVG images. Some additional comments
24911 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24912 (svg_image_p): New function to test for SVG image.
24913 (svg_load): New function to load SVG image.
24914 (svg_load_image): New function, helper for svg_load.
24915 (Qsvg): New Lisp_object.
24916 (svg_keyword_index): New enum.
24917 (svg_format): New static `image_keyword' struct.
24918 (svg_type): New static `image_type' struct.
24919 (librsvg/rsvg.h): Include it.
24920
249212007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24922
24923 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24924
249252007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24926
24927 * lread.c (Qold_style_backquotes): New var.
24928 (syms_of_lread): Init and staticpro it.
24929 (load_warn_old_style_backquotes): New fun.
24930 (Fload): Use them to warn about old style backquotes.
24931 (end_of_file_error, Fload): Remove unused vars.
24932
24933 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24934
24935 * lread.c (Vold_style_backquotes): New var.
24936 (syms_of_lread): Init and export it to Elisp.
24937 (read1): Set it when we find an old-style (back)quote.
24938
249392007-08-22 Jason Rumney <jasonr@gnu.org>
24940
24941 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24942
249432007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24944
24945 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24946
249472007-08-19 Richard Stallman <rms@gnu.org>
24948
24949 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24950
249512007-08-19 Andreas Schwab <schwab@suse.de>
24952
24953 * alloc.c (pure): Round PURESIZE up.
24954
249552007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24956
24957 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24958 active frame.
24959
249602007-08-16 Richard Stallman <rms@gnu.org>
24961
24962 * eval.c (Fcommandp): Add parens to clarify.
24963
24964 * minibuf.c (Fall_completions): Use enum for type of table.
24965
24966 * emacs.c (USAGE2): Improve text.
24967
249682007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24969
24970 * term.c (tty_default_color_capabilities): Declare static
24971 variables in file scope, to avoid HPUX compiler problem.
24972
249732007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24974
24975 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24976 to gtk_toolbar_insert.
24977
249782007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24979
24980 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24981
24982 * insdel.c (reset_var_on_error): New fun.
24983 (signal_before_change, signal_after_change):
24984 Use it to reset (after|before)-change-functions to nil in case of error.
24985 Bind inhibit-modification-hooks to t.
24986 Don't bind (after|before)-change-functions to nil while they run.
24987
249882007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24989
24990 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24991 filling pixmap with stippled background.
24992
249932007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24994
24995 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24996 Don't use invisible frame as parent window for repositioning.
24997
249982007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24999
25000 * print.c (new_backquote_output): Rename from old_backquote_output.
25001 (print): Inverse its logic (according to its name) so as to match the
25002 behavior of new_backquote_flag in lread.c.
25003
250042007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25005
25006 * gmalloc.c (posix_memalign): New function.
25007
25008 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25009 ActivateControl/DeactivateControl here.
25010 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25011 frame-notice-user-settings is non-nil.
25012 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25013 for kEventParamFMFontStyle.
25014 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25015 mac_pass_command_to_system and mac_pass_control_to_system here.
25016 (XTread_socket): Call ActivateControl/DeactivateControl here.
25017 (XTread_socket) [TARGET_API_MAC_CARBON]:
25018 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25019 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25020 for window repositioning.
25021
250222007-08-08 Glenn Morris <rgm@gnu.org>
25023
25024 * Replace `iff' in doc-strings and comments.
25025
250262007-08-07 Chong Yidong <cyd@stupidchicken.com>
25027
25028 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25029
250302007-08-07 Martin Rudalics <rudalics@gmx.at>
25031
25032 * fileio.c (Finsert_file_contents): Run format-decode and
25033 after_insert_file_functions on entire buffer when REPLACE is
25034 non-nil and inhibit modification_hooks and point_motion_hooks.
25035 For consistency, run after_insert_file_functions iff something
25036 got inserted. Move signal_after_change and update_compositions
25037 after code running after_insert_file_functions. Make sure that
25038 undo_list doesn't record intermediate steps of the decoding process.
25039
250402007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25041
25042 * emacs.c (main)
25043 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25044 Call malloc_enable_thread on interactive startup.
25045
25046 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25047 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25048 [USE_PTHREAD]: Conditionalize with it.
25049 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25050 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25051 New functions.
25052
250532007-08-06 Chong Yidong <cyd@stupidchicken.com>
25054
25055 * xdisp.c (redisplay_window): When restoring original buffer
25056 position, make sure it is still valid.
25057
25058 * image.c (png_load): Ignore png-supplied background color.
25059
250602007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25061
25062 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25063 Use kCFAbsoluteTimeIntervalSince1970.
25064
25065 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25066 New variable.
25067 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25068 event loop should be quit.
25069 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25070 Quit dialog event loop if quit_dialog_event_loop is set.
25071
25072 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25073 (Selection): New typedef. Use instead of ScrapRef.
25074 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25075 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25076 (mac_clear_selection): Rename from clear_scrap.
25077 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25078 scrap_has_target_type. All uses changed.
25079 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25080 (mac_selection_has_target_p): New functions.
25081 (mac_put_selection_value): Rename from put_scrap_string.
25082 (mac_get_selection_value): Rename from get_scrap_string.
25083 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25084 (put_scrap_private_timestamp, scrap_has_target_type)
25085 (get_scrap_private_timestamp): Remove functions.
25086 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25087 (x_own_selection, x_get_local_selection):
25088 Use mac_valid_selection_value_p.
25089 (x_own_selection): Don't use put_scrap_private_timestamp.
25090 Record OWNERSHIP-INFO into Vselection_alist instead.
25091 (x_get_local_selection): Don't check type if request is local.
25092 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25093 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25094
250952007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25096
25097 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25098 add comment explaining why.
25099
251002007-08-03 Richard Stallman <rms@gnu.org>
25101
25102 * fileio.c (Fvisited_file_modtime): Use make_time.
25103
251042007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25105
25106 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25107 build.
25108
251092007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25110
25111 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25112
251132007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25114
25115 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25116
251172007-07-30 Richard Stallman <rms@gnu.org>
25118
25119 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25120
251212007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25122
25123 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25124
251252007-07-28 Nick Roberts <nickrob@snap.net.nz>
25126
25127 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25128 remote default-directory.
25129
25130 * buffer.c (mode-line-format): Update doc string.
25131
251322007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25133
25134 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25135 scroll bar gap.
25136 (x_scroll_bar_create): Set bar->fringe_extended_p.
25137 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25138 on frame edge. Check fringe background extension. Don't clear
25139 extended fringe background area.
25140
25141 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25142 (w32_fill_area): Enclose multiple statements with do ... while (0).
25143
25144 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25145 Extend fringe background to scroll bar gap.
25146 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25147 Set bar->fringe_extended_p.
25148 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25149 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25150 background extension. Don't clear extended fringe background area.
25151
25152 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25153 New member fringe_extended_p.
25154
251552007-07-25 Glenn Morris <rgm@gnu.org>
25156
25157 * Relicense all FSF files to GPLv3 or later.
25158
25159 * COPYING: Switch to GPLv3.
25160
251612007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25162
25163 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25164
25165 * data.c (Finteractive_form): Check for the presence of an
25166 `interactive-form' symbol property more thoroughly.
25167
25168 * data.c (Finteractive_form): Use an `interactive-form' property if
25169 present, analogous to the function-documentation property.
25170
251712007-07-24 Jason Rumney <jasonr@gnu.org>
25172
25173 * w32fns.c (x_real_positions): Get real position from OS instead of
25174 calculating it.
25175
251762007-07-23 Jason Rumney <jasonr@gnu.org>
25177
25178 * filelock.c (current_lock_owner): Allow for @ sign in username.
25179
251802007-07-22 Nick Roberts <nickrob@snap.net.nz>
25181
25182 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25183 remote default-directory.
25184
25185 * buffer.c (mode-line-format): Describe above case in doc string.
25186
251872007-07-20 Eli Zaretskii <eliz@gnu.org>
25188
25189 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25190 Define if not defined.
25191
251922007-07-18 Jason Rumney <jasonr@gnu.org>
25193
25194 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25195
251962007-07-18 Richard Stallman <rms@gnu.org>
25197
25198 * data.c (Fsetq_default): Doc fix.
25199
25200 * eval.c (Fsetq): Doc fix.
25201
252022007-07-18 Juanma Barranquero <lekktu@gmail.com>
25203
25204 * coding.c (Ffind_operation_coding_system):
25205 * eval.c (For, Fand): Doc fixes.
25206 Reported by Johan Bockgård.
25207
252082007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25209
25210 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25211
25212 * xterm.h: Declare x_ewmh_activate_frame.
25213
25214 * xterm.c (x_ewmh_activate_frame): New function.
25215 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25216
252172007-07-17 Martin Rudalics <rudalics@gmx.at>
25218
25219 * window.c (Fdisplay_buffer): If largest or LRU window is the
25220 only window, split it even if it is not eligible for splitting.
25221 This restores the original behavior broken by the 2007-07-15
25222 change.
25223
252242007-07-17 Glenn Morris <rgm@gnu.org>
25225
25226 * abbrev.c (abbrev_check_chars): New function.
25227 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25228 Call abbrev_check_chars to check abbrev characters are word
25229 constituents. Doc fix.
25230
252312007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25232
25233 * process.c (Fstart_process, Fmake_network_process)
25234 (read_process_output): Fix up last changes.
25235
252362007-07-16 Eli Zaretskii <eliz@gnu.org>
25237
25238 * makefile.w32-in (clean): Don't delete *~.
25239
252402007-07-16 Andreas Schwab <schwab@suse.de>
25241
25242 * window.c (Fdisplay_buffer): Use NILP.
25243 (Fset_window_scroll_bars): Likewise.
25244
252452007-07-15 Martin Rudalics <rudalics@gmx.at>
25246
25247 * window.c (window_min_size_2): New function.
25248 (window_min_size_1, size_window, Fdisplay_buffer)
25249 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25250 windows without mode- or header-lines when window-min-height is
25251 too small.
25252 (size_window): Reset nodelete_p after testing it, following an
25253 earlier note by Kim F. Storm.
25254 (display_buffer): Do not set split_height_threshold to twice the
25255 value of window_min_height to avoid changing the value of a
25256 customizable variable. Rather explicitly check whether the
25257 height of the window that shall be splitted is at least as large
25258 as split_height_threshold.
25259 (Fwindow_full_width_p): New defun.
25260 (syms_of_window): Defsubr it.
25261
25262 * window.h: Add EXFUN for Fwindow_full_width_p.
25263
252642007-07-14 Jason Rumney <jasonr@gnu.org>
25265
25266 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25267
252682007-07-14 Richard Stallman <rms@gnu.org>
25269
25270 * eval.c (maybe_call_debugger): New function.
25271 (find_handler_clause): Use maybe_call_debugger.
25272 Call it when the handler says `debug'.
25273 Eliminate DEBUGGER_VALUE_PTR.
25274 (Fsignal): Eliminate debugger_value.
25275 (Qdebug): New variable.
25276 (syms_of_eval): Initialize it.
25277
252782007-07-14 Juanma Barranquero <lekktu@gmail.com>
25279
25280 * eval.c (Fprogn):
25281 * keyboard.c (Ftrack_mouse):
25282 * print.c (Fwith_output_to_temp_buffer):
25283 * window.c (Fsave_window_excursion): Doc fix.
25284
252852007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25286
25287 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25288
252892007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25290
25291 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25292 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25293 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25294 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25295 Remove unused encoding_carryover.
25296 * process.c: Adjust all functions accordingly.
25297
252982007-07-12 Richard Stallman <rms@gnu.org>
25299
25300 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25301
253022007-07-11 Jason Rumney <jasonr@gnu.org>
25303
25304 * makefile.w32-in (LIBS): Include OLE32.
25305
25306 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25307 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25308
253092007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25310
25311 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25312 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25313 from a Lisp_Object into a bare pointer.
25314 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25315 Adjust the code correspondingly.
25316
25317 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25318
25319 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25320 (term_show_mouse_face): Remove unused var `j'.
25321 (handle_one_term_event): Remove unused vars `i' and `j'.
25322 Don't cast return value of ttyname since it's not necessary.
25323
253242007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25325
25326 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25327 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25328
25329 * fns.c (map_char_table): Use an array of int for `indices' rather than
25330 an array of Lisp_Objects (which are only ever integers anyway).
25331 (Fmap_char_table): Update caller.
25332 * lisp.h: Update prototype.
25333 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25334 * fontset.c (Ffontset_info):
25335 * casetab.c (set_case_table): Update callers.
25336
25337 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25338
25339 * keymap.c (struct accessible_keymaps_data)
25340 (struct where_is_internal_data): New structures.
25341 (accessible_keymaps_1, where_is_internal_1): Use them to change
25342 interface to adhere to the one used by map_keymap.
25343 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25344 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25345
25346 * keymap.h (map_keymap_function_t): More informative prototype.
25347
253482007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25349
25350 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25351 (looking_at_1): Don't change search_regs and last_thing_searched
25352 if `inhibit-changing-match-data' is non-nil.
25353 (string_match_1, search_buffer, set_search_regs): Likewise.
25354 (syms_of_search): Add Lisp level definition for
25355 `inhibit-changing-match-data' and set it to nil.
25356 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25357 start and end of the match, instead of using values in search_regs.
25358
253592007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25360
25361 * minibuf.c (Fcompleting_read): New value `confirm-only'
25362 for `require-match'.
25363
253642007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25365
25366 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25367 part of the 2007-06-27 change to syms_of_fileio.
25368
253692007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25370
25371 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25372 Check WINDOWP before using XWINDOW. Consolidate return statements.
25373
253742007-06-27 Richard Stallman <rms@gnu.org>
25375
25376 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25377
253782007-06-27 Juanma Barranquero <lekktu@gmail.com>
25379
25380 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25381
253822007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25383
25384 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25385 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25386 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25387 (_free_internal, memalign): Use them.
25388 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25389 Initialize to PTHREAD_MUTEX_INITIALIZER.
25390 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25391 (morecore_nolock): Rename from morecore. All uses changed.
25392 Use only nolock versions of internal allocation functions.
25393 (_malloc_internal_nolock, _realloc_internal_nolock)
25394 (_free_internal_nolock): New functions created from
25395 _malloc_internal, _realloc_internal, and _free_internal.
25396 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25397 Copy hook value to automatic variable before its use.
25398 (memalign): Copy hook value to automatic variable before its use.
25399
254002007-06-26 Kenichi Handa <handa@m17n.org>
25401
25402 * coding.c (Ffind_operation_coding_system): Docstring improved.
25403 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25404
254052007-06-25 David Kastrup <dak@gnu.org>
25406
25407 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25408 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25409 cater for additional parameter.
25410
25411 * keymap.h: Adjust number of parameters to `current-active-maps'.
25412
25413 * doc.c (Fsubstitute_command_keys): Adjust call of
25414 `current-active-maps'.
25415
254162007-06-25 David Kastrup <dak@gnu.org>
25417
25418 * callint.c (Fcall_interactively): Make the parsing of interactive
25419 specs somewhat more readable.
25420
254212007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25422
25423 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25424 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25425 if extended background has already been filled.
25426
254272007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25428
25429 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25430 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25431
25432 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25433 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25434 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25435 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25436 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25437 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25438 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25439 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25440 Run timers during dialog popup.
25441 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25442
254432007-06-21 Jason Rumney <jasonr@gnu.org>
25444
25445 * image.c (convert_mono_to_color_image): Swap fore and background.
25446
254472007-06-20 Jason Rumney <jasonr@gnu.org>
25448
25449 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25450 (w32_free_bdf_font): Unmap memory not handle.
25451
254522007-06-20 Sam Steingold <sds@gnu.org>
25453
25454 * gmalloc.c (__morecore): Fix the declaration to comply with the
25455 definition.
25456
254572007-06-20 Juanma Barranquero <lekktu@gmail.com>
25458
25459 * w32term.c (w32_delete_display): Remove leftover declaration.
25460 (w32_define_cursor, w32_initialize): Make static.
25461
25462 * w32.c (_wsa_errlist): Fix typo in error message.
25463 (init_environment): Ignore any environment variable from the
25464 registry having a null value.
25465
254662007-06-20 Glenn Morris <rgm@gnu.org>
25467
25468 * Makefile.in (LIBGIF): Default to -lgif.
25469
254702007-06-17 Jason Rumney <jasonr@gnu.org>
25471
25472 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25473 unicode strings.
25474
254752007-06-16 Juanma Barranquero <lekktu@gmail.com>
25476
25477 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25478 Fix typo in docstring.
25479
254802007-06-16 Eli Zaretskii <eliz@gnu.org>
25481
25482 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25483 and their keybindings.
25484
254852007-06-15 Chong Yidong <cyd@stupidchicken.com>
25486
25487 * composite.c (update_compositions): Fix last fix.
25488
254892007-06-14 Jason Rumney <jasonr@gnu.org>
25490
25491 * w32.c (get_process_times_fn): New function pointer.
25492 (globals_of_w32): Intialize it if present in kernel32.dll.
25493 (w32_get_internal_run_time): New function.
25494
25495 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25496
254972007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25498
25499 * composite.c (update_compositions): Check the validness of
25500 compositions.
25501
255022007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25503
25504 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25505 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25506
25507 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25508 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25509
25510 * macgui.h (USE_MAC_TOOLBAR): New define.
25511
25512 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25513 Return immediately unless popup is activated.
25514
25515 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25516 background to scroll bar gap.
25517 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25518 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25519 scroll bars on frame edge. Check fringe background extension.
25520 Don't clear extended fringe background area.
25521 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25522 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25523 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25524 [USE_MAC_TOOLBAR]: New macros.
25525 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25526 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25527 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25528 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25529 [USE_MAC_TOOLBAR]: New functions.
25530 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25531 manually if previous repositioning has failed.
25532 (mac_handle_keyboard_event): Use precomputed event kind.
25533 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25534 as tool bar item click. Handle mouse movement over tool bar items.
25535
25536 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25537 toolbar_win_gravity.
25538 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25539 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25540 Add externs.
25541
25542 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25543 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25544
255452007-06-14 Chong Yidong <cyd@stupidchicken.com>
25546
25547 * image.c (search_image_cache): Remove unused variable.
25548
255492007-06-13 Chong Yidong <cyd@stupidchicken.com>
25550
25551 * xfns.c, xmenu.c: Link to xaw3d if available.
25552
255532007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25554
25555 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25556 frame_foreground and frame_background.
25557
25558 * image.c (lookup_image): Save frame foreground and background colors.
25559 (search_image_cache): Check if saved and current frame colors match.
25560
255612007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25562
25563 * regex.c (regex_compile): Remove the `regnum' counter.
25564 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25565
255662007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25567
25568 * term.c: Include intervals.h to declare Fget_text_property.
25569
255702007-06-10 Jason Rumney <jasonr@gnu.org>
25571
25572 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25573
255742007-06-08 Juanma Barranquero <lekktu@gmail.com>
25575
25576 * callint.c (Fcall_interactively):
25577 * editfns.c (Fdelete_and_extract_region):
25578 * fileio.c (Fread_file_name):
25579 * fns.c (Fmapconcat):
25580 * keyboard.c (cmd_error_internal):
25581 * keymap.c (Fkey_description):
25582 * lread.c (openp):
25583 * minibuf.c (read_minibuf):
25584 * search.c (wordify):
25585 * sunfns.c (sel_read):
25586 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25587 * xfns.c (x_default_scroll_bar_color_parameter):
25588 * xmenu.c (menu_help_callback):
25589 * xselect.c (Fx_get_atom_name):
25590 * xterm.c (x_term_init): Use empty_unibyte_string.
25591
255922007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25593
25594 * alloc.c (init_strings): Initialize canonical empty strings.
25595 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25596 canonical empty string when the requested size is 0.
25597
25598 * emacs.c (empty_unibyte_string): Rename from empty_string.
25599 (empty_multibyte_string): New canonical empty string.
25600 (syms_of_emacs): Don't initialize empty_string.
25601
25602 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25603 string, if appropriate.
25604 (empty_unibyte_string, empty_multibyte_string): New externs.
25605 (empty_string): Remove extern.
25606
25607 * lread.c (syms_of_lread): Use empty_unibyte_string.
25608
256092007-06-07 Jason Rumney <jasonr@gnu.org>
25610
25611 * s/ms-w32.h: Don't define HAVE_TZNAME.
25612
25613 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25614
256152007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25616
25617 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25618
25619 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25620 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25621
25622 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25623 Don't call next handler.
25624 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25625 Remove argument. Install handler to application.
25626 (set_frame_menubar): Don't change deep_p.
25627 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25628 FRAME_OUTER_TO_INNER_DIFF_Y.
25629 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25630 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25631 [HAVE_DIALOGS]: New macros.
25632 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25633 Use them.
25634 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25635
25636 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25637 init_service_handler. All callers changed. Return OSStatus value.
25638
25639 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25640 All callers changed so as not to call SetPortWindowPort.
25641 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25642 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25643 mac_draw_string_common.
25644 (mac_draw_image_string_qd): Likewise.
25645 (mac_draw_string_common): Use them. Add INLINE.
25646 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25647 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25648 GetGlobalMouse.
25649 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25650 and FRAME_OUTER_TO_INNER_DIFF_Y.
25651 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25652 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25653 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25654 repositioning window to mac_handle_window_event.
25655 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25656 saving window location to mac_handle_window_event
25657 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25658 (install_menu_target_item_handler): Remove argument in extern.
25659 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25660 Also accept command events.
25661 (do_keystroke): New function created from XTread_socket.
25662 (init_command_handler): Remove functions.
25663 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25664 and save window location by kEventWindowShowing and kEventWindowHiding
25665 handlers here. Don't call next handler for window state change and
25666 focus events.
25667 (mac_handle_application_event, mac_handle_keyboard_event)
25668 [TARGET_API_MAC_CARBON]: New functions.
25669 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25670 kEventWindowShowing and kEventWindowHiding events. Move installation
25671 of mouse, font, text input and menu target item handlers to
25672 install_application_handler.
25673 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25674 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25675 New function.
25676 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25677 Register it.
25678 (XTread_socket) [TARGET_API_MAC_CARBON]:
25679 Consolidate SendEventToEventTarget calls.
25680 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25681 Move application activation handler to mac_handle_application_event.
25682 Move keyboard handler to mac_handle_keyboard_event.
25683 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25684 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25685 init_command_handler. Call install_application_handler.
25686
25687 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25688 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25689
256902007-06-07 Glenn Morris <rgm@gnu.org>
25691
25692 * emacs.c (main): Use `emacs-copyright' in --version output.
25693
256942007-06-06 Chong Yidong <cyd@stupidchicken.com>
25695
25696 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25697
256982007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25699
25700 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25701
25702 * macgui.h: Replace WindowPtr with WindowRef.
25703
25704 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25705 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25706 Replace ControlHandle with ControlRef.
25707 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25708
25709 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25710 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25711 Replace ControlHandle with ControlRef.
25712 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25713 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25714
25715 * macterm.h (struct scroll_bar): Rename member control_handle_low
25716 and control_handle_high to control_ref_low and control_ref_high.
25717 All uses changed.
25718 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25719 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25720 respectively. All uses changed.
25721 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25722 (install_window_handler, remove_window_handler): Replace WindowPtr
25723 with WindowRef in externs.
25724
257252007-06-05 Juanma Barranquero <lekktu@gmail.com>
25726
25727 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25728
257292007-06-03 Nick Roberts <nickrob@snap.net.nz>
25730
25731 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25732
25733 * frame.c (Fmouse_position, Fmouse_pixel_position):
25734 Condition on HAVE_GPM too.
25735
25736 * term.c (term_mouse_highlight): Remove unused variables.
25737 (Fterm_open_connection): Set gpm_zerobased to 1.
25738 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25739 Use zero based co-ordinates.
25740 (handle_one_term_event): Report a drag as mouse movement too.
25741
25742 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25743
257442007-06-03 Chong Yidong <cyd@stupidchicken.com>
25745
25746 * image.c (search_image_cache): New function. Require background
25747 color match if background color is unspecified in the image spec.
25748 (uncache_image, lookup_image): Use it.
25749
257502007-06-01 Juanma Barranquero <lekktu@gmail.com>
25751
25752 * window.c (Fshrink_window): Reflow docstring.
25753
257542007-06-02 Chong Yidong <cyd@stupidchicken.com>
25755
25756 * Version 22.1 released.
25757
257582007-06-01 Richard Stallman <rms@gnu.org>
25759
25760 * xfns.c (x_encode_text): Add GCPRO.
25761
257622007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25763
25764 * xfns.c (x_set_name_internal): Save encoded name before
25765 x_encode_text in case string data is relocated.
25766
257672007-05-31 Richard Stallman <rms@gnu.org>
25768
25769 * buffer.c (syms_of_buffer): Doc fix.
25770
257712007-05-30 Nick Roberts <nickrob@snap.net.nz>
25772
25773 * sysdep.c (init_sys_modes): Add rather than replace with
25774 O_NONBLOCK.
25775
25776 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25777 term_mouse_moveto.
25778
25779 * termhooks.h (term_mouse_moveto): New extern.
25780
25781 * term.c (mouse_face_window): Rename...
25782 (Qmouse_face_window): ...to this.
25783 (term_show_mouse_face, term_clear_mouse_face)
25784 (term_mouse_highlight): Use Qmouse_face_window.
25785 (term_mouse_moveto): New function.
25786 (term_mouse_position): Make it work.
25787 (syms_of_term): Uncomment assignment to mouse_position_hook.
25788 Staticpro Qmouse_face_window.
25789
257902007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25791
25792 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25793 around current_column call.
25794
257952007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25796
25797 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25798 * xdisp.c (next_element_from_buffer):
25799 * window.c (delete_window):
25800 * term.c (term_mouse_highlight):
25801 * msdos.c (getdefdir):
25802 * macterm.c (mac_create_bitmap_from_bitmap_data)
25803 (init_font_name_table):
25804 * fns.c (Fsxhash):
25805 * data.c (Fmake_local_variable):
25806 * ccl.c (ccl_driver): Likewise.
25807
258082007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25809
25810 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25811 Call mac_wakeup_from_rne on window size change.
25812
258132007-05-25 Chong Yidong <cyd@stupidchicken.com>
25814
25815 * image.c (uncache_image): Fix typo.
25816
258172007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25818
25819 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25820
258212007-05-22 Richard Stallman <rms@gnu.org>
25822
25823 * xterm.c (x_connection_closed): Remove NO_RETURN.
25824
258252007-05-22 Martin Rudalics <rudalics@gmx.at>
25826
25827 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25828
258292007-05-21 Chong Yidong <cyd@stupidchicken.com>
25830
25831 * image.c (uncache_image): New function.
25832 (Fimage_refresh): New function.
25833
258342007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25835
25836 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25837
258382007-05-20 Nick Roberts <nickrob@snap.net.nz>
25839
25840 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25841 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25842
258432007-05-20 Nick Roberts <nickrob@snap.net.nz>
25844
25845 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25846 conditional on [HAVE_GPM_H].
25847
258482007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25849
25850 * syntax.c (skip_chars): Update syntax-table only after we checked that
25851 the new location is valid.
25852
258532007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25854
25855 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25856 mac_get_window_bounds.
25857
258582007-05-20 Nick Roberts <nickrob@snap.net.nz>
25859
25860 * Makefile.in (LIBGPM): Allow it to be set from configure.
25861 If set then link Emacs with it.
25862
25863 * config.in: Regenerate.
25864
25865 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25866 New externs.
25867
25868 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25869 Include gpm.h.
25870 (handle_one_term_event, term_gpm): New externs.
25871
25872 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25873 and allow it to be interrupted by SIGIO.
25874
25875 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25876 (wait_reading_process_output): Wait on gpm_fd too.
25877 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25878 (add_gpm_wait_descriptor_called_flag): New variable.
25879 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25880
25881 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25882 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25883 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25884 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25885 (make_lispy_event): Add case GPM_CLICK_EVENT.
25886 (read_avail_input): Handle mouse input.
25887
25888 * term.c (write_glyphs_with_face): New function.
25889 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25890 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25891 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25892 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25893 (last_mouse_x, last_mouse_y): New variables.
25894 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25895 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25896 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25897 (Fterm_close_connection): New functions.
25898 (term_init): Initialise mouse_face_window.
25899
259002007-05-19 Chong Yidong <cyd@stupidchicken.com>
25901
25902 * xdisp.c (redisplay_window): If first window line is a
25903 continuation line, recompute the new window start instead of
25904 recentering.
25905
259062007-05-18 Glenn Morris <rgm@gnu.org>
25907
25908 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25909 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25910
259112007-05-17 Glenn Morris <rgm@gnu.org>
25912
25913 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25914
259152007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25916
25917 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25918 dead key repeat and up events.
25919
259202007-05-14 Chong Yidong <cyd@stupidchicken.com>
25921
25922 * image.c (pbm_load): Check image size for monochrome pbm.
25923
259242007-05-13 Chong Yidong <cyd@stupidchicken.com>
25925
25926 * xterm.c (XTread_socket): Revert last change.
25927
259282007-05-12 Chong Yidong <cyd@stupidchicken.com>
25929
25930 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25931
25932 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25933
259342007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25935
25936 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25937 mixup (YAILOM).
25938
259392007-05-07 Andreas Schwab <schwab@suse.de>
25940
25941 * keymap.c (Flookup_key): Fix typo in last change.
25942
259432007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25944
25945 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25946 mapping for unibyte strings.
25947
259482007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25949
25950 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25951 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25952
259532007-04-29 Richard Stallman <rms@gnu.org>
25954
25955 * insdel.c (replace_range): For undo, record insertion first.
25956
259572007-04-29 Andreas Schwab <schwab@suse.de>
25958
25959 * lisp.h (VECSIZE): Use OFFSETOF.
25960
259612007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25962
25963 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25964 disabled lines.
25965
259662007-04-28 Richard Stallman <rms@gnu.org>
25967
25968 * lread.c (read_escape): In a string, \s is always space.
25969
259702007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25971
25972 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25973
25974 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25975 submenu for menu bar items.
25976
25977See ChangeLog.10 for earlier changes.
25978
25979;; Local Variables:
25980;; coding: utf-8
25981;; add-log-time-zone-rule: t
aac0c6e3
MR
25982;; End:
25983
e3eb1dae 25984 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25985
25986 This file is part of GNU Emacs.
25987
25988 GNU Emacs is free software: you can redistribute it and/or modify
25989 it under the terms of the GNU General Public License as published by
25990 the Free Software Foundation, either version 3 of the License, or
25991 (at your option) any later version.
25992
25993 GNU Emacs is distributed in the hope that it will be useful,
25994 but WITHOUT ANY WARRANTY; without even the implied warranty of
25995 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25996 GNU General Public License for more details.
25997
25998 You should have received a copy of the GNU General Public License
25999 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26000
26001;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40