Regenerate configure.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
29cf3e20
EZ
12010-08-05 Eli Zaretskii <eliz@gnu.org>
2
3 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
4
5 * unexcoff.c: Renamed from unexec.c.
6
aaa0a19a
SM
72010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
8
9 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
10
8d1d9587
JB
112010-08-03 Johan Bockgård <bojohan@gnu.org>
12
13 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 14 (Bug#6744)
8d1d9587 15
9a747ba6
JD
162010-08-02 Jan Djärv <jan.h.d@swipnet.se>
17
4d464ae4
JD
18 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
19 to TRUE if depth of screen is < 16.
20
ac01763e
JD
21 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
22 USE_GTK_TOOLTIP.
e0d62a9b
JB
23 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
24 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 25 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
26 USE_GTK_TOOLTIP.
27 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
28
29 * xterm.h (USE_GTK_TOOLTIP): New define.
30 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
31
9a747ba6
JD
32 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
33 to Control-D (Bug#6771).
34
7b0815ba
JB
352010-08-02 Juanma Barranquero <lekktu@gmail.com>
36
37 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
38 Wording by Drew Adams <drew.adams@oracle.com>.
39
aa1859f5
J
402010-08-01 Jan Djärv <jan.h.d@swipnet.se>
41
42 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
43 ttip_lbl.
44
45 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
46 calling gtk_widget_queue_draw.
47 (x_free_frame_resources): Call xg_free_frame_widgets.
48
49 * xfns.c (x_gtk_use_system_tooltips): New variable.
50 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
51 new gtkutil tooltip functions to show the tooltip.
52 (Fx_hide_tip): Call xg_hide_tooltip.
53 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
54
55 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
56 (xg_show_tooltip, xg_hide_tooltip): Declare.
57
58 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
59 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
60 New functions.
aa1859f5
J
61 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
62 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
63 Remove code that is commented out.
64
76417ef4
SM
652010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
66
67 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
68
16041401
CY
692010-07-31 Chong Yidong <cyd@stupidchicken.com>
70
71 * xselect.c (x_own_selection): Use list4.
72
2c09a58f
DN
732010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
74
75 * buffer.c (Qwindow): Do not define, already defined in data.c.
76 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
77
59df9fdd 782010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 79
59df9fdd
JB
80 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
81 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
82 * config.in: Undef HAVE_DIRENT_H.
1c97e857 83 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 84 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 85
1b231651
DN
862010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
87
88 Rename s/usg5-4.h -> s/usg5-4-common.h.
89 * s/usg5-4.h: Rename file to ...
90 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
91 * s/unixware.h:
92 * s/sol2-6.h:
93 * s/irix6-5.h: Update includes accordingly.
94
bfeabdc3
JD
952010-07-29 Jan Djärv <jan.h.d@swipnet.se>
96
2ebf1083
J
97 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
98
bfeabdc3 99 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
100 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
101 Remove toolbar_height.
102 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
103 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
104 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
105 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
106
107 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
108
109 * xfns.c (x_set_tool_bar_position): New function.
110 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
111 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 112 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
113
114 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
115 and FRAME_TOOLBAR_LEFT_WIDTH.
116
117 * gtkutil.h (xg_change_toolbar_position): Declare.
118
119 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
120 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
121 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
122 (xg_create_frame_widgets): Create a hobox for placing widgets
123 vertically. Use gtk_box_pack_start.
124 (xg_height_or_width_changed): Renamed from xg_height_changed.
125 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
126 (xg_update_frame_menubar, free_frame_menubar): Change to
127 xg_height_or_width_changed.
128 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
129 size correctly. Remove hardcoded 4, instead use handlebox size -
130 toolbar size.
131 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 132 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
133 (xg_pack_tool_bar): POS is a new parameter.
134 Set orientation of tool bar based on pos.
135 Only make handlebox_widget if NULL.
136 Check if tool bar goes to vbox or hbox depending on pos.
137 (xg_update_tool_bar_sizes): New function.
138 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
139 height, call xg_update_tool_bar_sizes instead.
140 (free_frame_tool_bar): Remove from hbox or vbox depending on
141 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
142 (xg_change_toolbar_position): New function.
143
144 * frame.h (struct frame): Add tool_bar_position.
145 (Qbottom): Declare.
146
147 * frame.c (Qtool_bar_position): New variable.
148 (make_frame): Set tool_bar_position to Qtop.
149 (frame_parms): Add tool-bar-position.
150 (x_report_frame_params): Store tool_bar_position.
151 (x_set_fringe_width): Reset wm size hint after fringe changes.
152
26469a38
DN
1532010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
154
155 Make lisp_time_argument declaration work on all systems.
156 * lisp.h (lisp_time_argument): Move declaration ...
157 * systime.h (lisp_time_argument): ... here
158 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
159
8848b728
JD
1602010-07-29 Jan Djärv <jan.h.d@swipnet.se>
161
162 * vm-limit.c (POINTER): Add typedef for it.
163 (start_of_data): Change return type from POINTER to char *.
164
165 * frame.h (Qtty_color_mode): Move declaration out of ifdef
166 HAVE_WINDOW_SYSTEM.
167
76fd1ee9
DN
1682010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
169
0441987e
DN
170 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
171 Remove reference to __osf__, unused.
172
56a000c7
DN
173 * mem-limits.h: Remove duplicated includes.
174 (NULL): Remove definition, unused.
175 (POINTER): Remove definition.
176 (start_of_data): Use char* in prototype, as the function
177 definition does.
178
e6cba650
DN
179 Remove extern declarations from .c files, and them to .h files.
180 * keyboard.h (Qhelp_echo, waiting_for_input)
181 (input_available_clear_time, ignore_mouse_drag_p)
182 (Vdouble_click_time, real_this_command, Vthis_original_command):
183 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
184 (Voverriding_local_map_menu_flag):
185 * lisp.h (Qinteractive_form, use_file_dialog)
186 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
187 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
188 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
189 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
190 (Qfunction, debug_on_next_call, Qfield)
191 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
192 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
193 (Qfile_directory_p, Qinsert_file_contents)
194 (Qcompletion_ignore_case, Qcompletion_ignore_case)
195 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
196 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
197 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
198 (Qminibuffer_prompt)
199 (Vtemporary_file_directory,char_ins_del_vector, Qface):
200 * xterm.h (gray_bitmap_width, gray_bitmap_height)
201 (gray_bitmap_bits, xic_create_fontsetname):
202 * coding.h (Vtranslation_table_for_input): Add extern declarations.
203
204 * xsmfns.c (Vuser_login_name):
205 * xrdb.c (Vdouble_click_time):
206 * xfaces.c (xic_create_fontsetname):
207 * w32select.c (waiting_for_input):
208 * print.c (minibuffer_auto_raise):
209 * msdos.c (Qhelp_echo):
210 * macros.c (real_this_command):
211 * keymap.c (Voverriding_local_map):
212 * xterm.c (poll_for_input_1, gray_bitmap_width)
213 (gray_bitmap_height, gray_bitmap_bits;
214 * xmenu.c ( Voverriding_local_map)
215 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
216 (use_file_dialog, Xt_app_con):
217 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
218 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
219 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
220 (Qtool_bar_lines, ignore_mouse_drag_p):
221 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
222 (Qrear_nonsticky, nconc2):
223 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
224 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
225 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
226 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
227 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
228 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
229 (gc_in_progress):
230 * doc.c (Voverriding_local_map, Qremap):
231 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
232 (Vcompletion_regexp_list):
233 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
234 (Qcompletion_ignore_case):
235 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
236 (Vhistory_length, Vthis_original_command, real_this_command)
237 (Qface, Qminibuffer_prompt, history_delete_duplicates):
238 * image.c (Qrisky_local_variable):
239 * fontset.c (QCname):
240 * fns.c (minibuffer_auto_raise, QCname):
241 * dispnew.c (char_ins_del_cost):
242 * composite.c (font_fill_lglyph_metrics):
243 * cmds.c (Qface, Vtranslation_table_for_input):
244 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
245 * ccl.c (charset_unicode):
246 * callproc.c (Vtemporary_file_directory):
247 * buffer.c (emacs_strerror): Remove extern declarations.
248
249 * data.c (Qwindow): Make non-static, used from other files too.
250 * frame.c (validate_x_resource_name): Remove shadow definition for i.
251
76fd1ee9
DN
252 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
253 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
254 * s/usg5-4.h (COFF):
255 * s/template.h:
256 * s/msdos.h (COFF, NO_REMAP):
257 * s/ms-w32.h (NO_REMAP):
258 * s/hpux10-20.h (NO_REMAP):
259 * m/sparc.h (SEGMENT_MASK):
260 * m/m68k.h (NO_REMAP):
261 * m/intel386.h (SEGMENT_MASK):
262 * m/arm.h (NO_REMAP):
263 * m/alpha.h (COFF):
264 * m/template.h: Remove references to unused defines.
265
8a52f00a
JD
2662010-07-28 Jan Djärv <jan.h.d@swipnet.se>
267
268 * xsettings.c (Ftool_bar_get_system_style): Also check for
269 Qtext_image_horiz.
270
271 * xdisp.c (Qtext_image_horiz): Define.
272 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 273 to documentation of tool-bar-style.
8a52f00a
JD
274
275 * lisp.h (Qtext_image_horiz): Declare.
276
277 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
278 style text_image_horiz.
279
89dc303e
DN
2802010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
281
60799703
DN
282 * emacs.c (Fkill_emacs): Remove return statement.
283
37254dc1
DN
284 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
285 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
286 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
287 local extern declarations.
288
71c7345a
DN
289 * xmenu.c: Do not included lwlib.h, not needed.
290
6ba577cb
DN
291 * m/iris4d.h (XUINT, XSET): Remove, not needed.
292
fdb183d6
DN
293 * process.c: Move definitions earlier to minimize #ifdefs.
294
295 * xterm.h (x_get_customization_string, x_load_resources)
296 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
297 (x_check_errors, x_property_data_to_lisp, defined_color)
298 (xic_set_xfontset, x_defined_color): Use const.
299
300 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
301 (x_text_icon, x_check_errors, x_connection_closed): Use const.
302
303 * xselect.c (selection_data_to_lisp_data)
304 (x_property_data_to_lisp):
305 * xrdb.c (x_get_string_resource, file_p)
306 (x_get_customization_string, magic_file_p, search_magic_path)
307 (get_system_app, get_user_app, x_load_resources, x_get_resource)
308 (x_get_string_resource): Use const.
309
310 * xfns.c: Include xlwmenu.h when USE_LUCID.
311 (x_defined_color, xic_set_xfontset): Use const.
312 (Fx_hide_tip): Remove local extern declaration.
313
314 * xfaces.c (Qmouse_face): Remove declaration.
315 (face_color_gray_p, tty_defined_color, defined_color)
316 (face_color_gray_p, face_color_supported_p). Add const.
317
318 * xdisp.c (do_mouse_tracking): Remove declaration.
319 (add_to_log): Use const.
320
321 * minibuf.c (Qmouse_face): Remove declaration.
322
323 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
324
325 * keyboard.h (do_mouse_tracking): Add declaration.
326
327 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
328 (QCdata, QCtype, Qcenter): Remove declarations.
329
330 * frame.c (x_get_resource_string, x_get_string_resource)
331 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
332 (x_default_parameter): Use const.
333
334 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
335 (QCheight, QCsize, QCname): Remove declarations.
336
337 * emacs.c (main): Remove local extern declaration.
338
339 * editfns.c (region_limit, syms_of_editfns): Remove local extern
340 declarations.
341
342 * dispnew.c: Remove duplicate #include <unistd.h>.
343 (update_window, update_frame_1, init_display): Remove local extern
344 declarations.
345
346 * dispextern.h (add_to_log): Remove declaration.
347 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
348 (x_frame_get_and_record_arg, x_default_parameter): Add const.
349
350 * dired.c (scmp): Add const.
351 (directory_files_internal): Remove local extern declaration.
352
353 * data.c (Finteractive_form): Use const.
354
355 * composite.c (syms_of_composite): Remove local extern declarations.
356
357 * charset.c (add_to_log): Remove declaration.
358
359 * character.c (strwidth, parse_str_to_multibyte): Add const.
360
361 * character.h (strwidth, parse_str_to_multibyte): Likewise.
362
363 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
364
89dc303e 365 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
366 (Lisp_Subr): Make doc and intspec constant.
367 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
368 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
369 (QCheight, QCsize, QCname, QCwidth, QCforeground)
370 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
371 (display_arg): Add declarations.
89dc303e 372
0ed082fe 3732010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
374
375 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
376
0ed082fe
JB
377 * window.c (Fwindow_height): Doc fix (bug#6518).
378
3792010-07-27 Juanma Barranquero <lekktu@gmail.com>
380
381 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
382
ccaf0336
DN
3832010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
384
977105dc
DN
385 * keyboard.c (Ftop_level, Fexit_recursive_edit)
386 (Fabort_recursive_edit): Remove return statements in NO_RETURN
387 functions.
388
f5ada890
DN
389 * frame.h (Qtty_color_mode): Add declaration.
390
ccaf0336
DN
391 * lisp.h (Ftop_level, Fexit_recursive_edit)
392 (Fabort_recursive_edit): Mark as NO_RETURN.
393
dfe3c90f
KH
3942010-07-26 Kenichi Handa <handa@m17n.org>
395
396 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 397 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 398
7d383292
JB
3992010-07-26 Juanma Barranquero <lekktu@gmail.com>
400
401 * lread.c (unreadpure, mapatoms_1): Make static.
402
da31e629
JB
4032010-07-25 Juanma Barranquero <lekktu@gmail.com>
404
405 * terminfo.c (tparam): Fix prototype of tparm.
406
7bfa6d77
AS
4072010-07-25 Andreas Schwab <schwab@linux-m68k.org>
408
dcc19aac
AS
409 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
410 find start of text segment.
411 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
412 is defined.
413
7bfa6d77
AS
414 * callproc.c (set_initial_environment): Avoid unbalanced braces.
415
63f9a672
KB
4162010-07-25 Ken Brown <kbrown@cornell.edu>
417
418 * vm-limit.c (check_memory_limits): Fix previous change;
419 accidentally reverted an earlier change.
420
24933075
KB
4212010-07-25 Ken Brown <kbrown@cornell.edu>
422
423 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
424 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
425
361358ea
JB
4262010-07-25 Juanma Barranquero <lekktu@gmail.com>
427
428 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
429 * dired.c (opendir, readdir): Fix prototypes.
430 * editfns.c (w32_get_internal_run_time): Fix prototypes.
431 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
432 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
433 (telldir): Remove declaration.
434 * ralloc.c (real_morecore, __morecore): Fix prototypes.
435 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
436 * syssignal.h (strsignal): Fix prototype.
437 * term.c (tparam): Fix prototype.
438 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
439 (term_get_fkeys): Set inside "#ifndef DOS_NT".
440 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
441 and __morecore.
442 * w32gui.h (XParseGeometry): Fix prototype.
443 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
444 * w32term.c (my_set_focus): Declare inside #if 0.
445 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
446 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
447 (drain_message_queue, get_next_msg, post_msg, parse_button)
448 (ClipboardSequence_Proc): Fix prototypes.
449 (wait_for_sync): Remove declaration.
450
630b9592
JB
4512010-07-24 Juanma Barranquero <lekktu@gmail.com>
452
453 * w32fns.c (w32_to_x_color): Remove, unused.
454
6a0d6611
AS
4552010-07-24 Andreas Schwab <schwab@linux-m68k.org>
456
457 * lisp.h: Remove leftover P_.
458
4e8608ff
DN
4592010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
460
461 * ecrt0.c, unexalpha.c: Remove files, unused.
462
c8197983
AS
4632010-07-24 Andreas Schwab <schwab@linux-m68k.org>
464
465 * cmds.c (internal_self_insert): Make static.
466 * lisp.h (internal_self_insert): Remove declaration.
467
97b372d7
JB
4682010-07-23 Juanma Barranquero <lekktu@gmail.com>
469
33ac0414
JB
470 * alloc.c (free_float):
471 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
472 * frame.c (delete_frame_handler):
473 * ralloc.c (reorder_bloc):
474 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
475 Remove unused static functions.
476
94da8397
JB
477 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
478 it is called only from NS code.
479
2e6c8532
JB
480 * w32term.c (my_set_focus): #ifdef away; it is called only from
481 "#ifdef 0" code.
482
97b372d7
JB
483 * w32fns.c (x_edge_detection):
484 * xfaces.c (may_use_scalable_font_p):
485 Remove obsolete static declarations.
486
7c3320d8
JB
4872010-07-20 Juanma Barranquero <lekktu@gmail.com>
488
489 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
490 (emacs_blocked_realloc, uninterrupt_malloc):
491 * fringe.c (w32_reset_fringes):
492 * image.c (convert_mono_to_color_image, lookup_rgb_color)
493 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
494 * sound.c (be2hs, do_play_sound):
495 * vm-limit.c (get_lim_data, ret_lim_data):
496 * w32term.c (x_free_frame_resources):
497 * xfaces.c (x_create_gc, x_free_gc):
498 Convert definitions to standard C.
499
d5273788
SM
5002010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
501
502 * eval.c (Feval, Ffuncall): Use the new names.
503
504 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
505 (DEFUN): Add braces around the union initialisation and use ## to
506 specify the right union alternative and avoid a cast.
507
8d16a259
JB
5082010-07-18 Juanma Barranquero <lekktu@gmail.com>
509
510 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
511
3b8eff32
CY
5122010-07-17 Chong Yidong <cyd@stupidchicken.com>
513
514 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
515
499322ce
J
5162010-07-17 Jan Djärv <jan.h.d@swipnet.se>
517
518 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
519 is related to the menu bar (Bug#6499).
a628ad9d 520 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 521
f6003da5 5222010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
523
524 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
525
526 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
527
528 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
529 i.e. don't put back ButtonRelease (Bug#6608).
530
531 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
532 instead of Window. Call xg_event_is_for_menubar when
533 USE_GTK (Bug#6499).
534
535 * gtkutil.h (xg_event_is_for_menubar): Declare.
536
537 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
538
f6003da5 5392010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
540
541 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
542 when it's the same as the old foreground. (Bug#6609)
543
23243f29
J
5442010-07-16 Jan Djärv <jan.h.d@swipnet.se>
545
546 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
547 widget is non-null (Bug#6645).
548
2b23d2a6
AS
5492010-07-15 Andreas Schwab <schwab@linux-m68k.org>
550
01b564ff
AS
551 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
552 Convert old-style definition.
553
2b23d2a6
AS
554 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
555 timestamp argument.
556
c4affd2c
EZ
5572010-07-15 Eli Zaretskii <eliz@gnu.org>
558
559 * fringe.c (update_window_fringes): Restore mistakenly reverted
560 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
561
cf28cebc
J
5622010-07-14 Jan Djärv <jan.h.d@swipnet.se>
563
564 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
565 (SET_SAVED_KEY_EVENT): Remove (not used).
566 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
567 remove size parameter.
568 (handle_one_xevent): Check popup_activated () for menu for Xt also.
569 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
570 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
571 ButtonRelease.
6b2c4bd9
J
572 (x_set_window_size_1): scroll_bar_actual_width is always
573 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
574
575 * xdisp.c (pending_menu_activation): Remove extern declaration.
576 (prepare_menu_bars): Remove setting of pending_menu_activation.
577
578 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
579 (x_activate_menubar): Set popup_activated_flag for Xt also.
580 Remove setting of pending_menu_activation.
cf28cebc
J
581 (set_frame_menubar): Remove check of pending_menu_activation.
582 Declare menubar_size before code. Correct spelling in comment.
583
f6c1c771
KH
5842010-07-14 Kenichi Handa <handa@m17n.org>
585
586 * font.c (font_open_entity): Cancel previous change.
587 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
588
20477505
EZ
5892010-07-13 Eli Zaretskii <eliz@gnu.org>
590
77defa9a
EZ
591 Remove subprocesses #ifdefs.
592 * process.c <inhibit_sentinels>: Move to the common part.
593 (Fwaiting_for_user_input_p): Move to the common part; return nil
594 if async subprocesses aren't supported.
595 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
596 MS-DOS. Remove "#ifdef subprocesses".
597 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
598 (gettimeofday): Remove "#ifdef subprocesses".
599 (wait_without_blocking): Remove function.
600 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
601 Remove "#ifdef subprocesses".
602 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
603 compiled on MS-DOS.
604 * callproc.c (Fcall_process) [!MSDOS]: Don't call
605 wait_for_termination on MS-DOS.
606 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
607 initialization of inhibit_sentinels.
608 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
609 subprocesses" conditional.
610 * callproc.c (Fcall_process) [!subprocesses]: Don't call
611 wait_for_termination, since `buffer' cannot be an integer when
612 async subprocesses are not supported
613 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
614 for ifdefing away the call to Fprocess_status.
615
20477505
EZ
616 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
617 away the entire body of the function.
618
b3ffc17c
DN
6192010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
620
01faa934
DN
621 Remove subprocesses #ifdefs from term.c.
622 * process.c (add_keyboard_wait_descriptor)
623 (delete_keyboard_wait_descriptor): Move to common section, do
624 nothing when subprocesses is not defined.
a628ad9d
JB
625 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
626 Remove subprocesses #ifdefs.
01faa934 627
b3ffc17c
DN
628 Convert maybe_fatal to standard C.
629 * lisp.h (verror): Declare.
630 * eval.c (verror): New function containing the code from ...
631 (error): ... this. Call verror.
632 * term.c (vfatal): New function containing the code from ...
633 (fatal): ... this. Call vfatal.
634 (maybe_fatal): Convert to standard C, use variable number of
635 arguments. Declare as non-return.
636 (init_tty): Fix maybe_fatal call.
637
0521f580
DN
6382010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
639
640 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
641 (_scroll_bar_note_movement): Convert definitions to standard C.
642 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
643 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
644
ebd15611
DN
6452010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
646
647 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
648 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
649 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
650 (xaw_jump_callback, xaw_scroll_callback)
651 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
652 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
653 definitions to standard C.
654 * xmenu.c (menubar_id_to_frame, popup_get_selection)
655 (popup_activate_callback, popup_deactivate_callback)
656 (menu_highlight_callback, menubar_selection_callback)
657 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
658 (free_frame_menubar, popup_selection_callback, as)
659 (create_and_show_popup_menu, dialog_selection_callback)
660 (create_and_show_dialog):
661 * xfns.c (hack_wm_protocols, x_window):
662 * xfaces.c (x_update_menu_appearance):
663 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
664 (char_to_pixel_size, round_size_to_char, get_wm_shell)
665 (set_frame_size, update_wm_hints, setup_frame_gcs)
666 (update_various_frame_slots, update_from_various_frame_slots)
667 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
668 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
669 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
670
de06a2dd
AS
6712010-07-12 Andreas Schwab <schwab@linux-m68k.org>
672
a628ad9d 673 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 674
fc549af9
EZ
6752010-07-12 Eli Zaretskii <eliz@gnu.org>
676
677 * process.c (setup_process_coding_systems): Move to the part
678 shared by non-subprocesses systems, and make its body empty when
679 subprocesses is not defined.
680 (close_process_descs): Move to the part shared by non-subprocesses
681 systems.
1408902e
EZ
682 (wait_reading_process_output) [!subprocesses]: Convert arg list to
683 ANSI C.
fc549af9 684
d5a3eaaf
AS
6852010-07-12 Andreas Schwab <schwab@linux-m68k.org>
686
687 * editfns.c (transpose_markers): Convert old-style definition.
688 * emacs.c (abort, shut_down_emacs, fixup_locale)
689 (synchronize_system_time_locale)
690 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
691 * floatfns.c (extract_float, matherr, init_floatfns)
692 (syms_of_floatfns): Likewise.
693 * fns.c (make_hash_table): Likewise.
694 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
695 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
696 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
697 (ftfont_variation_glyphs): Likewise.
698 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
699 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
700 * lread.c (read_filtered_event): Likewise.
701 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
702 * process.c (wait_reading_process_output): Likewise.
703 * scroll.c (do_line_insertion_deletion_costs): Likewise.
704 * search.c (search_buffer, boyer_moore): Likewise.
705 * syntax.c (scan_sexps_forward): Likewise.
706 * xdisp.c (try_scrolling): Likewise.
707 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
708 (face_at_string_position): Likewise.
709 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
710 * xselect.c (x_get_window_property, receive_incremental_selection)
711 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
712 Likewise.
713 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
714
6f704c76
DN
7152010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
716
ded80a25
DN
717 * callproc.c (child_setup): Remove subprocesses conditional.
718 Remove code dealing with SET_EMACS_PRIORITY, unused.
719
49d937f4 720 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
721 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
722
723 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
724 (__do_global_dtors, __main): Use void in definition.
725 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
726 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
727 the only users from ...
728 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
729 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
730 (HAVE_VOLATILE): Remove, unused.
731
6f704c76
DN
732 Convert more function definitions to standard C.
733 * xdisp.c (window_box_edges, handle_single_display_spec)
734 (display_string): Convert definition to standard C.
735 * scroll.c (do_direct_scrolling, scrolling_1):
736 * dispnew.c (allocate_matrices_for_frame_redisplay)
737 (mirrored_line_dance):
738 * coding.c (code_convert_string):
739 * charset.c (map_charset_chars):
740 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
741 (Fregister_ccl_program, Fregister_code_conversion_map):
742 * keyboard.c (kbd_buffer_nr_stored): Likewise.
743 (head_table): Make static and const.
744
e6cfa7c3
AS
7452010-07-12 Andreas Schwab <schwab@linux-m68k.org>
746
747 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
748 (PROFILING_LDFLAGS): Set from substitution.
749 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
750 CFLAGS last.
751
892dd565
KH
7522010-07-12 Kenichi Handa <handa@m17n.org>
753
6f2cdcd1
KH
754 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
755 (shortlisp): Likewise.
756
892dd565
KH
757 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
758
759 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
760 of FONT_ENTITY_INDEX.
761 (Ffont_get): If KEY is :otf and the font-object doesn't have the
762 property, get the property value dynamically.
763 (Ffont_put): Accept font-entity and font-object too.
764 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
765 return value changed.
766 (syms_of_font): Adjusted for the above change.
767
ae96d47a
AS
7682010-07-11 Andreas Schwab <schwab@linux-m68k.org>
769
c8fc18ee
AS
770 * blockinput.h: Remove obsolete comment.
771
89887d67
AS
772 * lisp.h: Include <stddef.h>.
773 (OFFSETOF): Don't define.
774 (VECSIZE): Use offsetof instead of OFFSETOF.
775 (PSEUDOVECSIZE): Likewise.
776 * process.c (conv_sockaddr_to_lisp): Likewise.
777 * alloc.c: Don't include <stddef.h>.
778 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
779
ae96d47a
AS
780 * process.c: Remove obsolete comment.
781
635c0aa1
CY
7822010-07-11 Chong Yidong <cyd@stupidchicken.com>
783
784 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
785
a64df650
AS
7862010-07-11 Andreas Schwab <schwab@linux-m68k.org>
787
8966b757
AS
788 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
789 index, rindex.
790 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
791 * editfns.c (Fuser_full_name, Fformat): Likewise.
792 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
793 * fileio.c (Ffile_symlink_p): Likewise.
794 * filelock.c (current_lock_owner): Likewise.
795 * font.c (font_parse_name, font_parse_family_registry): Likewise.
796 * fontset.c (fontset_pattern_regexp): Likewise.
797 * lread.c (read1): Likewise.
798 * sysdep.c (init_system_name): Likewise.
799 * xfns.c (select_visual): Likewise.
800 * s/hpux10-20.h (index, rindex): Don't define.
801 * s/ms-w32.h (index): Likewise.
802 * s/usg5-4.h: Likewise.
803
cf237e27
AS
804 * callproc.c (relocate_fd): Use F_DUPFD if defined.
805
a8fe7202
AS
806 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
807 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
808 (egetenv): Likewise.
809 * doprnt.c (doprnt): Likewise.
810 * editfns.c (set_time_zone_rule, format2): Likewise.
811 * emacs.c (decode_env_path): Likewise.
812 * eval.c (signal_error, error): Likewise.
813 * insdel.c (replace_range_2): Likewise.
814 * keyboard.c (cmd_error_internal): Likewise.
815 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
816 * print.c (write_string, write_string_1, print_error_message):
817 Likewise.
818 * vm-limit.c (warn_function, memory_warnings): Likewise.
819 * xdisp.c (message1, message1_nolog, message_with_string)
820 (vmessage, message, message_nolog): Likewise.
821 * emacs.c: Remove duplicate declaration.
822 * keyboard.h: Likewise.
823 * lisp.h: Update prototypes.
824
bb8e180f
AS
825 * eval.c: Fix indentation problem.
826
83380e65
AS
827 * keyboard.c: Include "process.h"
828
a64df650
AS
829 * eval.c: Remove obsolete noinline declaration.
830 * fns.c: Likewise.
831
6a8033e1
KR
8322010-07-11 Ken Raeburn <raeburn@raeburn.org>
833
834 * doprnt.c (doprnt): Take a va_list argument instead of count and
835 pointer.
836 * eval.c (error): Change to a standard-C variadic function.
837 * xdisp.c (vmessage): Renamed from message, made static, and
838 changed to take a va_list argument.
839 (message): New variadic wrapper.
840 (message_nolog): Now a variadic function, calling vmessage.
841 * lisp.h: Include stdarg.h for va_list.
842 (doprnt, error, message, message_nolog): Decls updated.
843
462aa963
EZ
8442010-07-11 Eli Zaretskii <eliz@gnu.org>
845
846 * process.c (syms_of_process) <delete-exited-processes>: Define
847 even if !subprocesses.
848 (delete_exited_processes): Ditto.
849
850 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
851 (delete_exited_processes): Don't define.
852
48104462
CY
8532010-07-10 Chong Yidong <cyd@stupidchicken.com>
854
855 * frame.c (make_frame): Initialize menu_bar_lines and
856 tool_bar_lines members.
857 (make_initial_frame, make_terminal_frame): Initialize
858 menu_bar_lines using value of menu-bar-mode.
859
860 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
861
f388c88a
EZ
8622010-07-10 Eli Zaretskii <eliz@gnu.org>
863
864 * process.c: Reshuffle #include's. Condition some of the global
865 and static variables on `subprocesses'.
866 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
867 Leave only one implementation.
868 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
869 (kill_buffer_processes, Flist_system_processes)
870 (Fprocess_attributes, init_process, syms_of_process): Unify the
871 implementations for with subprocesses and without them.
872
723f5a07
J
8732010-07-09 Jan Djärv <jan.h.d@swipnet.se>
874
875 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
876 correct size for Motif.
877 (free_frame_menubar): Call x_set_window_size to update frame size.
878
879 * xfns.c (x_window): Set borderWidth to 0 for pane and
880 EmacsFrame. Frame size calculation is wrong otherwise.
881
2536a4b7
MA
8822010-07-09 Michael Albinus <michael.albinus@gmx.de>
883
884 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
885 allows to suppress errors when polling in Emacs' main loop.
886 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
887 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
888 (Fdbus_method_error_internal, Fdbus_send_signal)
889 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
890 (Fdbus_register_method): Use it. (Bug#6579)
891
5842a27b
DN
8922010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
893
894 * alloc.c: Convert DEFUNs to standard C.
895 * buffer.c:
896 * bytecode.c:
897 * callint.c:
898 * callproc.c:
899 * casefiddle.c:
900 * casetab.c:
901 * category.c:
902 * character.c:
903 * charset.c:
904 * chartab.c:
905 * cmds.c:
906 * coding.c:
907 * composite.c:
908 * data.c:
909 * dbusbind.c:
910 * dired.c:
911 * dispnew.c:
912 * doc.c:
913 * dosfns.c:
914 * editfns.c:
915 * emacs.c:
916 * eval.c:
917 * fileio.c:
918 * filelock.c:
919 * floatfns.c:
920 * fns.c:
921 * font.c:
922 * fontset.c:
923 * frame.c:
924 * fringe.c:
925 * image.c:
926 * indent.c:
927 * insdel.c:
928 * keyboard.c:
929 * keymap.c:
930 * lread.c:
931 * macros.c:
932 * marker.c:
933 * menu.c:
934 * minibuf.c:
935 * msdos.c:
936 * nsfns.m:
937 * nsmenu.m:
938 * nsselect.m:
939 * print.c:
940 * process.c:
941 * search.c:
942 * sound.c:
943 * syntax.c:
944 * term.c:
945 * terminal.c:
946 * textprop.c:
947 * undo.c:
948 * w16select.c:
949 * w32console.c:
950 * w32fns.c:
951 * w32font.c:
952 * w32menu.c:
953 * w32proc.c:
954 * w32select.c:
955 * window.c:
956 * xdisp.c:
957 * xfaces.c:
958 * xfns.c:
959 * xmenu.c:
960 * xselect.c:
961 * xsettings.c:
962 * xsmfns.c: Likewise.
963
d568829b
EZ
9642010-07-08 Eli Zaretskii <eliz@gnu.org>
965
966 * process.c (kbd_is_on_hold, hold_keyboard_input)
967 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
968
52214050
J
9692010-07-08 Jan Djärv <jan.h.d@swipnet.se>
970
971 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
972 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
973 unless USE_LUCID.
974
313d9eb2
DN
9752010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
976
a628ad9d
JB
977 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
978 declaration.
d8825aa3 979
295d0d8f
DN
980 Clean up include guards.
981 * tparam.c: Remove include guards for config.h, string.h and code
982 that assumes #ifndef emacs.
983 * termcap.c:
984 * unexalpha.c:
985 * sysdep.c:
986 * filemode.c:
987 * filelock.c:
988 * bidi.c: Likewise.
989
49d9e6b0
DN
990 Remove prefix-args.c
991 * prefix-args.c: Remove file.
992 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
993 * Makefile.in (temacs${EXEEXT}): Remove references to
994 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
995 (mostlyclean): Remove reference to prefix-args.
996 (prefix-args): Remove.
997
313d9eb2
DN
998 Simplify cstart_of_data, start_of_code and related code.
999 * mem-limits.h: Remove !emacs and _LIBC conditional code.
1000 (start_of_data): Merge into start_of_data function.
1001 * sysdep.c (start_of_text): Remove. Move simplified versions of
1002 it in the only users: unexaix.c and unexec.c.
1003 (read_input_waiting): Remove local declaration of quit_char.
1004 (start, etext): Remove declarations.
1005 (start_of_data): Merge with the version in mem-limits.h and move
1006 to vm-limits.c.
1007 * vm-limit.c (start_of_data): Merged and simplified version of the
1008 code formerly in mem-limits.h and sysdep.c.
1009 * unexec.c (start): New declaration, moved from sysdep.c.
1010 (start_of_text): Simplified version of the code formerly in sysdep.c.
1011 * unexaix.c (start_of_text): Simplified version of the code
1012 formerly in sysdep.c.
1013 * m/alpha.h (HAVE_TEXT_START): Remove.
1014 (TEXT_START): Move ...
1015 * unexalpha.c (TEXT_START): ... here.
1016 * s/hpux10-20.h (TEXT_START): Remove.
1017 * s/darwin.h (TEXT_START):
1018 * m/mips.h (TEXT_START):
1019 * m/macppc.h (HAVE_TEXT_START):
1020 * m/m68k.h (TEXT_START):
1021 * m/iris4d.h (TEXT_START):
1022 * m/intel386.h (TEXT_START):
1023 * m/ibmrs6000.h (TEXT_START):
1024 * m/ia64.h (HAVE_TEXT_START):
1025 * s/msdos.h (TEXT_START): Likewise.
1026
72af86bd
AS
10272010-07-07 Andreas Schwab <schwab@linux-m68k.org>
1028
1029 * alloc.c (overrun_check_malloc, overrun_check_realloc)
1030 (overrun_check_free, xstrdup, allocate_string)
1031 (allocate_string_data, compact_small_strings, Fmake_string)
1032 (make_unibyte_string, make_multibyte_string)
1033 (make_string_from_bytes, make_specified_string, make_float)
1034 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
1035 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
1036 memcpy, memmove, memset, memcmp.
1037 * atimer.c (start_atimer, set_alarm): Likewise.
1038 * buffer.c (clone_per_buffer_values, report_overlay_modification)
1039 (mmap_realloc, init_buffer_once): Likewise.
1040 * callint.c (Fcall_interactively): Likewise.
1041 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
1042 (getenv_internal_1): Likewise.
1043 * casefiddle.c (casify_object): Likewise.
1044 * ccl.c (ccl_driver): Likewise.
1045 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
1046 * charset.c (load_charset_map_from_file)
1047 (load_charset_map_from_file, load_charset_map_from_vector)
1048 (Fdefine_charset_internal): Likewise.
1049 * cm.c (Wcm_clear): Likewise.
1050 * coding.c (decode_eol, decode_coding_object)
1051 (Fset_coding_system_priority, make_subsidiaries): Likewise.
1052 * data.c (Faset): Likewise.
1053 * dired.c (directory_files_internal, file_name_completion_stat):
1054 Likewise.
1055 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
1056 (clear_glyph_row, copy_row_except_pointers)
1057 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
1058 (save_current_matrix, restore_current_matrix)
1059 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
1060 (mirror_line_dance, scrolling_window): Likewise.
1061 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
1062 Likewise.
1063 * doprnt.c (doprnt): Likewise.
1064 * editfns.c (Fuser_full_name, make_buffer_string_both)
1065 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
1066 * emacs.c (sort_args): Likewise.
1067 * eval.c (Fapply, Ffuncall): Likewise.
1068 * fileio.c (Ffile_name_directory, make_temp_name)
1069 (Fexpand_file_name, search_embedded_absfilename)
1070 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
1071 (auto_save_error): Likewise.
1072 * fns.c (Fstring_equal, Fcopy_sequence, concat)
1073 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
1074 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
1075 (Fmake_hash_table): Likewise.
1076 * fringe.c (Fdefine_fringe_bitmap): Likewise.
1077 * ftfont.c (ftfont_text_extents): Likewise.
1078 * getloadavg.c (getloadavg): Likewise.
1079 * image.c (define_image_type, make_image, make_image_cache)
1080 (x_create_x_image_and_pixmap, xbm_image_p)
1081 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
1082 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
1083 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
1084 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
1085 (tiff_image_p, tiff_read_from_memory, gif_image_p)
1086 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
1087 Likewise.
1088 * indent.c (scan_for_column, compute_motion): Likewise.
1089 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
1090 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
1091 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
1092 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
1093 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
1094 (store_user_signal_events, menu_bar_items, tool_bar_items)
1095 (process_tool_bar_item, append_tool_bar_item)
1096 (read_char_minibuf_menu_prompt, read_key_sequence)
1097 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
1098 Likewise.
1099 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
1100 Likewise.
1101 * lisp.h (STRING_COPYIN): Likewise.
1102 * lread.c (Fload, read1, oblookup): Likewise.
1103 * msdos.c (Frecent_doskeys): Likewise.
1104 * nsfns.m (Fx_create_frame): Likewise.
1105 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
1106 Likewise.
1107 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
1108 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
1109 Likewise.
1110 * nsmenu.m (ns_update_menubar): Likewise.
1111 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
1112 * print.c (print_unwind, printchar, strout, print_string)
1113 (print_error_message): Likewise.
1114 * process.c (conv_lisp_to_sockaddr, set_socket_option)
1115 (Fmake_network_process, Fnetwork_interface_list)
1116 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
1117 (init_process): Likewise.
1118 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
1119 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
1120 Likewise.
1121 * scroll.c (do_scrolling, do_direct_scrolling)
1122 (scrolling_max_lines_saved): Likewise.
1123 * search.c (search_buffer, wordify, Freplace_match): Likewise.
1124 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
1125 * syntax.c (skip_chars, skip_syntaxes): Likewise.
1126 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
1127 (emacs_set_tty): Likewise.
1128 * term.c (encode_terminal_code, calculate_costs)
1129 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
1130 Likewise.
1131 * termcap.c (tgetst1, gobble_line): Likewise.
1132 * termhooks.h (EVENT_INIT): Likewise.
1133 * tparam.c (tparam1): Likewise.
1134 * unexalpha.c (unexec): Likewise.
1135 * unexec.c (write_segment): Likewise.
1136 * unexmacosx.c (unexec_write_zero): Likewise.
1137 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
1138 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
1139 * w32font.c (w32font_list_family, w32font_text_extents)
1140 (w32font_list_internal, w32font_match_internal)
1141 (w32font_open_internal, compute_metrics, Fx_select_font):
1142 Likewise.
1143 * w32menu.c (set_frame_menubar, add_menu_item)
1144 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
1145 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
1146 * w32uniscribe.c (uniscribe_list_family): Likewise.
1147 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
1148 * window.c (make_window, replace_window, set_window_buffer)
1149 (Fsplit_window): Likewise.
1150 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
1151 (add_to_log, message3, x_consider_frame_title)
1152 (append_space_for_newline, extend_face_to_end_of_line)
1153 (decode_mode_spec_coding, init_glyph_string): Likewise.
1154 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1155 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1156 (face_attr_equal_p, make_realized_face, make_face_cache)
1157 (free_realized_faces, lookup_named_face, smaller_face)
1158 (face_with_height, lookup_derived_face)
1159 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1160 (Finternal_set_font_selection_order, realize_default_face)
1161 (compute_char_face, face_at_buffer_position)
1162 (face_for_overlay_string, face_at_string_position, merge_faces):
1163 Likewise.
1164 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1165 (Fx_window_property, x_create_tip_frame)
1166 (Fx_backspace_delete_keys_p): Likewise.
1167 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1168 (xfont_text_extents): Likewise.
1169 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1170 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1171 * xselect.c (x_queue_event, x_get_window_property)
1172 (receive_incremental_selection): Likewise.
1173 * xsmfns.c (x_session_check_input): Likewise.
1174 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1175 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1176 Likewise.
1177 * character.h (BCOPY_SHORT): Removed.
1178 * config.in: Regenerate.
1179 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1180 * emacs.c (main) [PROFILING]: Don't declare
1181 dump_opcode_frequencies.
1182 * lisp.h (safe_bcopy): Remove declaration.
1183 (memset) [!HAVE_MEMSET]: Declare.
1184 (memcpy) [!HAVE_MEMCPY]: Likewise.
1185 (memmove) [!HAVE_MEMMOVE]: Likewise.
1186 (memcmp) [!HAVE_MEMCMP]: Likewise.
1187 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1188 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1189 Don't define.
1190 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1191 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1192 (BCOPY_DOWNWARD_SAFE): Don't define.
1193 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1194 (memcpy) [!HAVE_MEMCPY]: Define.
1195 (memmove) [!HAVE_MEMMOVE]: Define.
1196 (memcmp) [!HAVE_MEMCMP]: Define.
1197
cb768704
J
11982010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1199
1200 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1201 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1202 New functions.
cb768704
J
1203 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1204 select on empty input mask.
1205 (init_process): Initialize kbd_is_on_hold to 0.
1206
1207 * process.h (hold_keyboard_input, unhold_keyboard_input)
1208 (kbd_on_hold_p): Declare.
1209
1210 * keyboard.c (input_available_signal): Declare.
1211 (kbd_buffer_nr_stored): New function.
1212 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1213 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1214 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1215 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1216 (tty_read_avail_input): If input is on hold, return.
1217 Don't read more that free slots in kbd_buffer (Bug#6571).
1218
3a8ce822
EZ
12192010-07-07 Eli Zaretskii <eliz@gnu.org>
1220
1221 * msdos.h:
1222 * msdos.c:
1223 * dosfns.c:
1224 * w16select.c: Convert function definitions to ANSI C.
1225
a628ad9d
JB
1226 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1227 Remove unused prototypes.
3a8ce822 1228
cf84bb53
JB
12292010-07-07 Juanma Barranquero <lekktu@gmail.com>
1230
1231 * coding.c, sysdep.c: Convert some more functions to standard C.
1232
1a4990fb
JB
12332010-07-07 Juanma Barranquero <lekktu@gmail.com>
1234
1235 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1236 (encode_coding_object): Use SPECPDL_INDEX.
1237 (syms_of_coding): Use DOS_NT.
1238
c0f2f16b
DN
12392010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1240
48fb6855
DN
1241 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1242
c0f2f16b
DN
1243 Make the function member of Lisp_Subr use standard C prototypes.
1244 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1245 (DECL_ALIGN): Add a cast for the function.
1246 * eval.c (Feval, Ffuncall): Use the proper type for each type
1247 function call.
1248
67aecef9
CY
12492010-07-06 Chong Yidong <cyd@stupidchicken.com>
1250
1251 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1252 fringe face id, so face-remapping-alist works (Bug#6091).
1253
b56ceb92
JB
12542010-07-06 Juanma Barranquero <lekktu@gmail.com>
1255
1256 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1257 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1258 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1259
7af07b96
AS
12602010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1261
1262 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1263 * lisp.h: Declare x_get_keysym_name.
1264 * keyboard.c (modify_event_symbol): Don't declare
1265 x_get_keysym_name here.
1266
69e24e34
DN
12672010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1268
1269 * ecrt0.c: Revert conversion to standard C.
1270
d3da34e0 12712010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1272
1273 * vm-limit.c (memory_warnings):
1274 * keyboard.c (modify_event_symbol):
1275 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1276 (round2, emacs_rint):
1277 * process.c (send_process, old_sigpipe): Convert function
1278 definitions and declarations to standard C.
1279
12802010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1281
1282 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1283 * xdisp.c: Convert function definitions to standard C.
1284
1285 * cm.c (cmputc): Arg C is now int, not char.
1286 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1287
00be444c
J
12882010-07-05 James Cloos <cloos@jhcloos.com>
1289
1290 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1291
1292 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1293 _NET_WM_ICON_NAME atoms.
1294
1295 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1296 and _NET_WM_ICON_NAME properties, too, matching what is
1297 done in the Gtk+ case.
1298
e4c8d29a
J
12992010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1300
ff919460
J
1301 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1302
e4c8d29a
J
1303 * xsmfns.c (SSDATA): New macro.
1304 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1305 passed to strlen/strcpy/strcat.
1306 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1307 7:th arg to XChangeProperty to (unsigned char *)
1308
1309 * xsettings.c (something_changedCB, parse_settings)
1310 (apply_xft_settings): Reformat prototype.
1311 (something_changedCB, init_gconf): Remove unused variable i.
1312 (read_settings): Remove unused variable long_len.
1313
1314 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1315 (xg_get_image_for_pixmap, create_dialog)
1316 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1317 (menuitem_highlight_callback, make_menu_item)
1318 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1319 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1320 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1321 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1322 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1323 (xg_tool_bar_item_expose_callback): Reformat prototype.
1324 (xg_update_menubar): GList *group => GSList *group.
1325 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1326 before use.
1327 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1328 to GTK_IMAGE (wimage).
1329
dd4c5104
DN
13302010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1331
898b4c5c
DN
1332 * atimer.c: Use "" instead of <> for local includes for
1333 consistency with the rest of the code.
1334
dd4c5104
DN
1335 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1336 * xrdb.c (get_system_name):
1337 * window.c (shrink_windows):
1338 * syntax.c (forw_comment):
1339 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1340 (ins_del_costs):
1341 * mem-limits.h (start_of_data):
1342 * lread.c (readevalloop):
1343 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1344 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1345 * frame.c (x_get_focus_frame):
1346 * floatfns.c (fmod_float):
1347 * fileio.c (choose_write_coding_system):
1348 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1349 (malloc_initialize_hook, sort_args, synchronize_locale):
1350 * doprnt.c (doprnt):
1351 * dired.c (compile_pattern):
1352 * data.c (fmod_float):
1353 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1354 (map_char_table_for_charset):
1355 * charset.c (define_charset_internal):
1356 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1357 to standard C.
1358
9a39b306 13592010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1360 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1361
1362 * lread.c (read1): Fix up last change to not mess up `c'.
1363
e6cb2cbb
JB
13642010-07-04 Juanma Barranquero <lekktu@gmail.com>
1365
1366 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1367
438105ed
JB
13682010-07-04 Juanma Barranquero <lekktu@gmail.com>
1369
1370 Fix prototypes.
1371
e5447b22 1372 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1373 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1374 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1375 arg, as required by internal_condition_case_1.
dcc7404b 1376 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1377 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1378 (analyse_first): Fix "const const".
e5447b22 1379 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1380 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1381 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1382
971de7fb
DN
13832010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1384
1385 * alloc.c: Convert function definitions to standard C.
1386 * atimer.c:
1387 * bidi.c:
1388 * bytecode.c:
1389 * callint.c:
1390 * callproc.c:
1391 * casefiddle.c:
1392 * casetab.c:
1393 * category.c:
1394 * ccl.c:
1395 * character.c:
1396 * charset.c:
1397 * chartab.c:
1398 * cmds.c:
1399 * coding.c:
1400 * composite.c:
1401 * data.c:
1402 * dbusbind.c:
1403 * dired.c:
1404 * dispnew.c:
1405 * doc.c:
1406 * doprnt.c:
1407 * ecrt0.c:
1408 * editfns.c:
1409 * fileio.c:
1410 * filelock.c:
1411 * filemode.c:
1412 * fns.c:
1413 * font.c:
1414 * fontset.c:
1415 * frame.c:
1416 * fringe.c:
1417 * ftfont.c:
1418 * ftxfont.c:
1419 * gtkutil.c:
1420 * indent.c:
1421 * insdel.c:
1422 * intervals.c:
1423 * keymap.c:
1424 * lread.c:
1425 * macros.c:
1426 * marker.c:
1427 * md5.c:
1428 * menu.c:
1429 * minibuf.c:
1430 * prefix-args.c:
1431 * print.c:
1432 * ralloc.c:
1433 * regex.c:
1434 * region-cache.c:
1435 * scroll.c:
1436 * search.c:
1437 * sound.c:
1438 * strftime.c:
1439 * syntax.c:
1440 * sysdep.c:
1441 * termcap.c:
1442 * terminal.c:
1443 * terminfo.c:
1444 * textprop.c:
1445 * tparam.c:
1446 * undo.c:
1447 * unexelf.c:
1448 * window.c:
1449 * xfaces.c:
1450 * xfns.c:
1451 * xfont.c:
1452 * xftfont.c:
1453 * xgselect.c:
1454 * xmenu.c:
1455 * xrdb.c:
1456 * xselect.c:
1457 * xsettings.c:
1458 * xsmfns.c:
1459 * xterm.c: Likewise.
1460
ae492bec
EZ
14612010-07-03 Eli Zaretskii <eliz@gnu.org>
1462
76ea4cc9
EZ
1463 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1464 frames other than the initial one. Fix reversal of colors when
1465 `reverse' is specified in the frame parameters. Call
1466 update_face_from_frame_parameter instead of
1467 internal-set-lisp-face-attribute. Initialize screen colors from
1468 initial_screen_colors[] when f->default_face_done_p is zero,
1469 instead of depending on being called with default-frame-alist as
1470 the alist argument.
1471
1472 * xfaces.c (update_face_from_frame_parameter): Move out of
1473 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1474 with HAVE_WINDOW_SYSTEM.
1475
1e6255ae
EZ
1476 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1477 to menu-bar-mode, if not set in the frame parameters or in
1478 default-frame-alist.
1479
ae492bec
EZ
1480 * w32console.c (sys_tputs): Adjust argument list to prototype in
1481 term.c.
1482
3a35a84c
JB
14832010-07-03 Juanma Barranquero <lekktu@gmail.com>
1484
1485 * lisp.h (memory_warnings): Fix prototype.
1486
1487 * cm.h (evalcost): Fix prototype.
1488
1489 * cm.c (evalcost): Fix arg type.
1490
c532d349
DN
14912010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1492
1493 * term.c (term_clear_mouse_face, Fidentity):
1494 * syssignal.h (signal_handler_t):
1495 * lisp.h (memory_warnings):
1496 * coding.h (preferred_coding_system):
1497 * cm.h (evalcost):
1498 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1499
c0b36d46
EZ
15002010-07-02 Eli Zaretskii <eliz@gnu.org>
1501
1502 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1503 from prototypes.
1504
1505 * msdos.h (load_pixmap): Don't define away.
1506
383e0970
J
15072010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1508
f57e2426
J
1509 * lisp.h:
1510 * atimer.h: Remove define for P_.
1511
1512 * alloc.c: Remove __P and P_ from .c and .m files.
1513 * atimer.c:
1514 * buffer.c:
1515 * callint.c:
1516 * category.c:
1517 * charset.c:
1518 * chartab.c:
1519 * cm.c:
1520 * coding.c:
1521 * composite.c:
1522 * data.c:
1523 * dired.c:
1524 * dispnew.c:
1525 * doc.c:
1526 * editfns.c:
1527 * emacs.c:
1528 * eval.c:
1529 * fileio.c:
1530 * filelock.c:
1531 * fns.c:
1532 * font.c:
1533 * fontset.c:
1534 * frame.c:
1535 * ftfont.c:
1536 * ftxfont.c:
1537 * gmalloc.c:
1538 * gtkutil.c:
1539 * image.c:
1540 * indent.c:
1541 * intervals.c:
1542 * keyboard.c:
1543 * keymap.c:
1544 * lread.c:
1545 * marker.c:
1546 * menu.c:
1547 * minibuf.c:
1548 * print.c:
1549 * process.c:
1550 * scroll.c:
1551 * search.c:
1552 * sound.c:
1553 * strftime.c:
1554 * syntax.c:
1555 * sysdep.c:
1556 * term.c:
1557 * terminal.c:
1558 * textprop.c:
1559 * unexalpha.c:
1560 * w32console.c:
1561 * w32fns.c:
1562 * w32font.c:
1563 * w32menu.c:
1564 * w32term.c:
1565 * w32uniscribe.c:
1566 * window.c:
1567 * xdisp.c:
1568 * xfaces.c:
1569 * xfns.c:
1570 * xfont.c:
1571 * xftfont.c:
1572 * xmenu.c:
1573 * xselect.c:
1574 * xterm.c: Likewise.
1575
383e0970 1576 Remove P_ and __P macros.
f57e2426
J
1577 * atimer.h: Remove P_ and __P macros.
1578 * buffer.h:
383e0970
J
1579 * category.h:
1580 * ccl.h:
1581 * character.h:
1582 * charset.h:
1583 * cm.h:
1584 * coding.h:
1585 * composite.h:
1586 * dispextern.h:
1587 * disptab.h:
9e892c8d 1588 * dosfns.h:
383e0970
J
1589 * font.h:
1590 * fontset.h:
1591 * frame.h:
1592 * gtkutil.h:
1593 * indent.h:
1594 * intervals.h:
1595 * keyboard.h:
1596 * keymap.h:
1597 * lisp.h:
1598 * macros.h:
1599 * md5.h:
1600 * menu.h:
1601 * msdos.h:
1602 * nsterm.h:
1603 * puresize.h:
1604 * region-cache.h:
1605 * syntax.h:
1606 * syssignal.h:
1607 * systime.h:
1608 * termhooks.h:
9e892c8d 1609 * w32font.h:
383e0970
J
1610 * w32term.h:
1611 * widget.h:
1612 * window.h:
1613 * xgselect.h:
1614 * xsettings.h:
1615 * xterm.h: Likewise.
1616
98601119
DN
16172010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1618
d9170db5
DN
1619 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1620
98601119
DN
1621 Cleanup old code.
1622 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1623 * syssignal.h: Remove code for Lynx, not supported anymore.
1624 * vm-limit.c: Remove unused code the depends on emacs not being
1625 defined and NO_LIM_DATA being defined.
1626 * mem-limits.h: Remove dead code.
1627
1f984e12
J
16282010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1629
c49d071a
J
1630 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1631
9d5405ec
J
1632 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1633 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1634
7a18115b
J
1635 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1636 parameters, they are already absolute.
1637
a628ad9d
JB
1638 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1639 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1640
a628ad9d 1641 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1642
a628ad9d
JB
1643 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1644 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1645
a628ad9d
JB
1646 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1647 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1648
c1ef4455
CY
16492010-06-30 Chong Yidong <cyd@stupidchicken.com>
1650
1651 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1652 check default-frame-alist.
1653
ce8f5a9a
AS
16542010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1655
1656 * process.c (create_process): Avoid using invalid file descriptors.
1657
1658 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1659
bf935339
J
16602010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1661
1662 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1663 Improve documentation. Return font regardless of use_system_font.
1664 (syms_of_xsettings): Improve documentation for font-use-system-font.
1665
7c33a057
CY
16662010-07-10 Chong Yidong <cyd@stupidchicken.com>
1667
2ec1b5ee
CY
1668 * xfaces.c (realize_face): Garbage the frame if a face is removed
1669 (Bug#6593).
1670
16712010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1672
1673 * keyboard.c: Remove duplicate <setjmp.h>.
1674 (read_key_sequence): Remove volatile qualifiers.
1675
16762010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1677
1678 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1679 (struct glyph_row): New members left_fringe_offset and
1680 right_fringe_offset.
1681
1682 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1683 specially.
1684 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1685 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1686
1687 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1688 Take account of bitmap offset.
2ec1b5ee
CY
1689 (draw_window_fringes): Take account of window vscroll.
1690 (update_window_fringes): Likewise. Extend top-aligned top indicator
1691 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1692 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1693 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1694
16952010-07-04 Juanma Barranquero <lekktu@gmail.com>
1696
1697 * w32fns.c (Qtooltip): Declare.
1698 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1699
17002010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1701
1702 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1703 grab on just Press (Bug#6499).
1704
17052010-07-02 Chong Yidong <cyd@stupidchicken.com>
1706
1707 * frame.c (Qtooltip): New var.
1708 (delete_frame): Use it. Fix faulty if statement. Don't update
1709 mode line for tooltip frames. Suggested by Martin Rudalics.
1710
1711 * xfns.c (x_create_tip_frame):
1712 * w32fns.c (x_create_tip_frame): Use it.
1713
17142010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1715
1716 * xftfont.c (xftfont_open): Check font width one by one also when
1717 spacing is dual.
1718
1719 * ftfont.c (ftfont_open): Ditto.
1720
6259c2ec
GM
17212010-06-30 Glenn Morris <rgm@gnu.org>
1722
a46007e9
GM
1723 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1724
6259c2ec
GM
1725 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1726
1727 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1728 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1729 * s/darwin.h (SYSTEM_MALLOC):
1730 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1731
5d1d3d04
J
17322010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1733
1734 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1735 (ns_get_screen): Don't assign integer to f.
1736 (Fx_display_color_cells): Declarations before statements.
1737
e547b051
J
17382010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1739
5fc8e5bc
J
1740 * xfns.c (x_default_font_parameter): Remove got_from_system
1741 (Bug#6526).
1742
e547b051
J
1743 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1744 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1745 defines based on what configure finds.
1746
1747 * xterm.c (XTflash): Use gtk_widget_get_window.
1748 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1749 gtk_adjustment_get_page_size.
1750 (handle_one_xevent): Use gtk_widget_get_mapped.
1751 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1752 messages.
1753
1754 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1755
1756 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1757 HAVE_GTK_FILE_SELECTION_NEW.
1758
1759 * gtkutil.c (xg_display_open, xg_display_close): Remove
1760 HAVE_GTK_MULTIDISPLAY, it is always defined.
1761 (xg_display_open): Return type is void.
1762 (gtk_widget_set_has_window)
1763 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1764 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1765 (gtk_adjustment_set_page_increment)
1766 (gtk_adjustment_get_step_increment): #define these if not found
1767 by configure.
1768 (remove_submenu): New define based on Gtk+ version.
1769 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1770 gtk_widget_get_window.
1771 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1772 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1773 (create_dialog): Use gtk_dialog_get_action_area and
1774 gtk_dialog_get_content_area.
1775 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1776 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1777 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1778 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1779 g_object_ref and g_object_unref.
1780 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1781 gtk_widget_get_sensitive.
1782 (xg_update_submenu): Use remove_submenu.
1783 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1784 properties instead to get old x and y position.
1785 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1786 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1787 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1788 (xg_get_tool_bar_widgets): New function.
1789 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1790 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1791 (toolbar_set_orientation): New #define based on if configure
1792 finds gtk_orientable_set_orientation.
1793 (xg_create_tool_bar): Call toolbar_set_orientation.
1794 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1795 instead of gtk_box_pack_start_defaults.
1796
b9229673
CY
17972010-06-28 Chong Yidong <cyd@stupidchicken.com>
1798
1799 * cmds.c (Fdelete_backward_char): Move into Lisp.
1800
bbc803b0
DN
18012010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1802
1803 * s/freebsd.h (BSD4_2): Remove redundant definition.
1804 bsd-common.h defines it already.
1805
6431f2e6
CY
18062010-06-27 Chong Yidong <cyd@stupidchicken.com>
1807
1808 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1809 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1810 tool-bar-mode, which are now set using these X resources at
1811 startup, to determine the defaults (Bug#2249).
1812
1813 * w32fns.c (Fx_create_frame):
1814 * nsfns.m (Fx_create_frame): Likewise.
1815
1816 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1817
8c079ebb
JB
18182010-06-24 Juanma Barranquero <lekktu@gmail.com>
1819
1820 * gtkutil.c (xg_update_scrollbar_pos):
1821 Avoid C99 mid-block variable declaration.
1822
e9b7ab96
JD
18232010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1824
bc869eca
JD
1825 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1826
2b7e356a 1827 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1828
1829 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1830 if height is less than scroll bar min size.
1831 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1832
e9b7ab96
JD
1833 * xfns.c (x_default_font_parameter): Try to open font from system
1834 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1835
a628ad9d 18362010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1837
1838 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1839
70c4cfbb
EZ
18402010-06-20 Eli Zaretskii <eliz@gnu.org>
1841
1842 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1843 most-positive-fixnum, be extra accurate when scrolling window
1844 start, to avoid missing the cursor line.
1845
ad5a12b5
EZ
18462010-06-19 Eli Zaretskii <eliz@gnu.org>
1847
1848 * xdisp.c (try_scrolling): Compute the limit for searching point
1849 in forward scroll from scroll_max, instead of an arbitrary limit
1850 of 10 screen lines. See
1851 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1852 and
1853 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1854 for details.
1855
2a64315a 18562010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1857
1858 * editfns.c (Fbyte_to_string): Pacify compiler.
1859
288cf4e9
SM
18602010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1861
1862 * lread.c (read1): Phase out old-style backquotes a bit more.
1863
6e6e5760
EZ
18642010-06-12 Eli Zaretskii <eliz@gnu.org>
1865
cbc4fd20
EZ
1866 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1867 bidimirror.h.
1868
1869 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1870
317fbf33
EZ
1871 * bidi.c (bidi_initialize): Remove explicit initialization of
1872 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1873 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1874 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1875
1876 * biditype.h: New file.
1877
cbc4fd20
EZ
1878 * bidimirror.h: New file.
1879
6e6e5760
EZ
1880 * window.c (syms_of_window): Doc fix (bug#6409).
1881
4176cba2
RF
18822010-06-12 Romain Francoise <romain@orebokech.com>
1883
1884 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1885 ediff-hook.
1886
cb4bfcb5
GM
18872010-06-10 Glenn Morris <rgm@gnu.org>
1888
64c60c2f
GM
1889 * editfns.c (Fbyte_to_string): Pacify compiler.
1890
cb4bfcb5
GM
1891 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1892
2ec1b5ee
CY
18932010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1894
1895 * alloc.c (Fmake_byte_code): Don't access undefined argument
1896 (Bug#6517).
1897
18982010-06-25 Chong Yidong <cyd@stupidchicken.com>
1899
1900 * xdisp.c (next_element_from_image): Ensure that after-strings are
1901 read the next time we hit handle_stop (Bug#1336).
1902
19032010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1904
1905 * lread.c (read1): Signal error if #s is not followed by paren.
1906
19072010-06-19 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1910
1911 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1912
19132010-06-15 Glenn Morris <rgm@gnu.org>
1914
1915 * editfns.c (Fbyte_to_string): Pacify compiler.
1916
e454a4a3
SM
19172010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1918
1919 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1920 Check `object's type before accessing its guts.
1921
c1b1acc2
DN
19222010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1923
1924 * s/usg5-4.h: Fix previous change.
1925 Suggested by Lawrence Mitchell <wence@gmx.li>
1926
657d4c0b
AS
19272010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1928
1929 * minibuf.c (Fall_completions): Add more checks.
1930
9b27fd9f
JB
19312010-06-08 Juanma Barranquero <lekktu@gmail.com>
1932
1933 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1934
a99ebb40
DN
19352010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1936
d7c5d87d
DN
1937 * lread.c (X_OK): Remove, unused.
1938
0263a941
DN
1939 * dispnew.c: Remove obsolete comment.
1940
a99ebb40
DN
1941 Remove INCLUDED_FCNTL.
1942 * xterm.c (INCLUDED_FCNTL):
1943 * callproc.c (INCLUDED_FCNTL):
1944 * alloc.c (INCLUDED_FCNTL):
1945 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1946 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1947
13b5221f
MR
19482010-06-07 Martin Rudalics <rudalics@gmx.at>
1949
1950 * window.c (Fselect_window): Move `record_buffer' up to the
1951 beginning of this function, so the buffer gets recorded
1952 even if the selected window does not change.
1953 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1954
5220357f
JB
19552010-06-07 Juanma Barranquero <lekktu@gmail.com>
1956
1957 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1958 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1959
3085237c
DN
19602010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1961
1962 Remove BSTRING related code, all platforms define it.
1963 * s/usg5-4.h (BSTRING): Remove definition.
1964 * s/template.h (BSTRING):
1965 * s/msdos.h (BSTRING):
1966 * s/ms-w32.h (BSTRING):
1967 * s/hpux10-20.h (BSTRING):
1968 * s/gnu-linux.h (BSTRING):
1969 * s/darwin.h (BSTRING):
1970 * s/cygwin.h (BSTRING):
1971 * s/bsd-common.h (BSTRING):
1972 * s/aix4-2.h (BSTRING): Likewise.
1973 * sysdep.c: Remove code depending on BSTRING not being defined.
1974
409f2919
JB
19752010-06-05 Juanma Barranquero <lekktu@gmail.com>
1976
1977 Remove obsolete macro BASE_LEADING_CODE_P.
1978 * character.h (BASE_LEADING_CODE_P): Remove.
1979 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1980 * buffer.c (Fset_buffer_multibyte):
1981 * indent.c (scan_for_column, compute_motion):
1982 * insdel.c (count_combining_before, count_combining_after):
1983 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1984
087fc47a
JB
19852010-06-04 Juanma Barranquero <lekktu@gmail.com>
1986
1987 Turn `directory-sep-char' into a noop.
1988
1989 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1990 (DIRECTORY_SEP): Define unconditionally.
1991
1992 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1993
1994 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1995 call dostounix_filename directly.
1996
1997 * fileio.c (CORRECT_DIR_SEPS): Remove.
1998 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1999 (Fsubstitute_in_file_name): Use dostounix_filename instead.
2000 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
2001 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
2002
2003 * w32proc.c (CORRECT_DIR_SEPS): Remove.
2004 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
2005
0eb7675e
AS
20062010-06-03 Andreas Schwab <schwab@linux-m68k.org>
2007
a628ad9d
JB
2008 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
2009 (Bug#6346)
0eb7675e 2010
78edd3b7
JB
20112010-06-03 Juanma Barranquero <lekktu@gmail.com>
2012
2013 * ccl.c (Fccl_program_p): Fix typo in docstring.
2014
eb697db5
DN
20152010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
2016
2017 Move UNEXEC definition to autoconf.
2018 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
2019 * s/sol2-10.h (UNEXEC):
2020 * s/irix6-5.h (UNEXEC):
2021 * s/hpux10-20.h (UNEXEC):
2022 * s/gnu-linux.h (UNEXEC):
2023 * s/darwin.h (UNEXEC):
2024 * s/cygwin.h (UNEXEC):
2025 * s/bsd-common.h (UNEXEC):
2026 * s/aix4-2.h (UNEXEC):
2027 * m/alpha.h (UNEXEC): Likewise.
2028 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
2029
aa3830c4
JB
20302010-06-03 Juanma Barranquero <lekktu@gmail.com>
2031
2032 Remove obsolete pre-unicode2 macros.
2033 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
2034 * composite.c (composition_reseat_it):
2035 * data.c (Faset):
2036 * fns.c (Ffillarray):
2037 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
2038 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
2039
d234d13e
JL
20402010-06-03 Juri Linkov <juri@jurta.org>
2041
2042 * buffer.c (Fother_buffer): Add CHECK_FRAME.
2043 (Fswitch_to_buffer): Remove unused variable `err'.
2044
0d4bcf4d
GM
20452010-06-03 Glenn Morris <rgm@gnu.org>
2046
e23dc1e2
GM
2047 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
2048
05b09564
GM
2049 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
2050 now that AH_BOTTOM does it.
2051
824e2978
GM
2052 * m/hp800.h (HAVE_ALLOCA):
2053 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
2054
0d4bcf4d
GM
2055 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
2056 Remove NOT_C_CODE tests, it is always true now.
2057
c55d2abf
DN
20582010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
2059
08a494a3
DN
2060 Fix config.h includes.
2061 * xsettings.c:
2062 * xgselect.c:
2063 * nsterm.m:
2064 * nsselect.m:
2065 * nsimage.m:
2066 * nsfont.m:
2067 * nsfns.m:
2068 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
2069 other files do.
2070
75934b1d
DN
2071 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
2072
9f32a766
DN
2073 * s/sol2-6.h: Remove obsolete comments.
2074
c55d2abf
DN
2075 Remove unnecessary alloca.h includes.
2076 * keymap.c: Do not include alloca.h, config.h does that.
2077 * sysdep.c: Likewise. Do not define fwrite, not used.
2078
06ac62b4
SM
20792010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
2080
2081 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
2082 the HAVE_TERMIO where it belongs (bug#6149).
2083
1ab8293c
SM
20842010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
2085
2086 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
2087 of bug#6305).
2088
6dcfd253
EZ
20892010-05-30 Eli Zaretskii <eliz@gnu.org>
2090
2091 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
2092 state is always cached (bug#6306).
2093
6d26bbb2
EZ
20942010-05-29 Eli Zaretskii <eliz@gnu.org>
2095
06fa4a23
EZ
2096 Fix cursor motion in bidi-reordered continued lines.
2097 * xdisp.c (try_cursor_movement): Backup to non-continuation line
2098 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
2099 over continuation lines in bidi-reordered buffers. Return
2100 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
2101 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
2102
f5783df3
MA
21032010-05-28 Michael Albinus <michael.albinus@gmx.de>
2104
2105 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
2106
7d56b2dd
KH
21072010-05-28 Kenichi Handa <handa@m17n.org>
2108
2109 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
2110 Don't sheck SPEC if it is nil.
2111 (font_list_entities): Call font_delete_unmatched if
b925d231 2112 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 2113
e58d4ff7
GM
21142010-05-28 Glenn Morris <rgm@gnu.org>
2115
2116 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
2117
f1a5d776
CY
21182010-05-27 Chong Yidong <cyd@stupidchicken.com>
2119
2120 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
2121 whether to trash.
2122 (internal_delete_file, Frename_file): Callers changed.
2123 (delete_by_moving_to_trash): Doc fix.
2124 (Fdelete_directory_internal): Don't move to trash.
2125
2126 * callproc.c (delete_temp_file):
2127 * buffer.c (Fkill_buffer): Callers changed.
2128
2129 * lisp.h: Update prototype.
2130
f44a59e6
CY
21312010-05-27 Chong Yidong <cyd@stupidchicken.com>
2132
2133 * xdisp.c (redisplay_window): After redisplay, check if point is
2134 still valid before setting it (Bug#6177).
2135
81ac4f35
GM
21362010-05-27 Glenn Morris <rgm@gnu.org>
2137
2138 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
2139 Convert comments to Makefile format.
2140
2141 * Makefile.in (bootstrap-clean): No more Makefile.c.
2142
ccd89fb3
GM
21432010-05-26 Glenn Morris <rgm@gnu.org>
2144
90278cb6
GM
2145 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
2146 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
2147
ccd89fb3
GM
2148 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2149 Remove.
2150 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2151
b7050583
KH
21522010-05-26 Kenichi Handa <handa@m17n.org>
2153
2154 * composite.c (composition_compute_stop_pos): Fix condition for
2155 backward scanning.
2156
e5458003
GM
21572010-05-25 Glenn Morris <rgm@gnu.org>
2158
c345fe90
GM
2159 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2160 Move before TEMACS_LDFLAGS.
2161 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2162 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2163
2e0689ab
GM
2164 * Makefile.in (NOT_C_CODE): No longer define.
2165 (config.h): No longer include.
2166
8009a5e8
GM
2167 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2168 variables it may reference.
2169
e5458003
GM
2170 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2171 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2172
10f72a37
KH
21732010-05-25 Kenichi Handa <handa@m17n.org>
2174
2175 * dispextern.h (struct composition_it): New members rule_idx and
2176 charpos.
2177
2178 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2179 that the character positions of IT point the last character of the
2180 current grapheme cluster.
2181 (next_element_from_composition): Don't change character positions
2182 of IT.
2183 (append_composite_glyph): Set glyph->charpos to
2184 it->cmp_it.charpos.
2185
2186 * composite.c (autocmp_chars): Change the first argument to RULE,
2187 and try composition with RULE only.
2188 (composition_compute_stop_pos): Record the index number of the
2189 composition rule in CMP_IT->rule_idx.
2190 (composition_reseat_it): Call autocmp_chars repeatedly until the
2191 correct rule of the composition is found.
2192 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2193 is at the last character of the current grapheme cluster when
2194 CMP_IT->reversed_p is nonzero.
2195
171eda53 21962010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2197
171eda53
SM
2198 * editfns.c (Fbyte_to_string): New function.
2199
66a9f7f4
SM
22002010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2201
2202 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2203 Suggested by Masatake YAMATO <yamato@redhat.com>.
2204
d8c315d1
EZ
22052010-05-23 Eli Zaretskii <eliz@gnu.org>
2206
171eda53 2207 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2208
f5b416d2 22092010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2210
2211 * s/netbsd.h: If terminfo is found, use it in preference to
2212 termcap. (Bug#6190) [Backport from trunk]
2213
0416466c
EZ
22142010-05-19 Eli Zaretskii <eliz@gnu.org>
2215
11117830 2216 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2217
2218 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2219 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2220 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2221 and maxpos members instead of start.pos and end.pos, respectively.
2222
2223 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2224 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2225 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2226 (try_window_reusing_current_matrix, try_window_id):
2227 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2228 (init_from_display_pos, init_iterator): Use EMACS_INT for
2229 character and byte positions.
66a9f7f4 2230 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2231 arguments for minimum and maximum buffer positions seen by
2232 display_line for this row. Don't use iterator to find the
2233 position following the maximum one; instead, increment the
11117830
EZ
2234 position found by display_line directly. Fix logic; eol_pos
2235 should be tested before the rest. Handle the case of characters
2236 delivered from display vector (bug#6036). Fix tests related to
2237 it->method. Handle the truncated_on_right_p rows.
2238 (RECORD_MAX_MIN_POS): New macro.
2239 (display_line): Use it to record the minimum and maximum buffer
2240 positions for glyphs in the row being assembled. Record the
2241 position of the newline that terminates the line. If word wrap is
2242 in effect, restore minimum and maximum positions seen up to the
2243 wrap point, when iterator returns to it.
2244 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2245 row and cursor not already at point. Restore original pre-bidi
2246 code for unidirectional buffers.
d36fe237
EZ
2247
2248 * dispnew.c (increment_row_positions, check_matrix_invariants):
2249 Increment and check row->start.pos and row->end.pos, in addition
2250 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2251
11117830
EZ
2252 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2253 Display truncated_on_left_p and truncated_on_right_p flags.
2254 Formatting fixes.
2255 (pmtxrows): Display the ordinal number of each row. Don't display
2256 rows beyond the last one.
2257
2258 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2259 it is not copied by bidi_copy_it.
2260
6e83d800
EZ
22612010-05-22 Eli Zaretskii <eliz@gnu.org>
2262
2263 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2264 (Bug#6237)
2265
110683ad
CY
22662010-05-22 Chong Yidong <cyd@stupidchicken.com>
2267
2268 * image.c (Fimage_flush): Rename from image-refresh.
2269
98fe5161
CY
22702010-05-21 Chong Yidong <cyd@stupidchicken.com>
2271
2272 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2273 just one window.
2274
2275 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2276 (clear_image_cache): If the number of cached images is unusually
2277 large, decrease the cache eviction delay (Bug#6230).
2278
e8752c66
GM
22792010-05-21 Glenn Morris <rgm@gnu.org>
2280
66dbf213
GM
2281 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2282 Move these rules to ns.mk.
2283 * ns.mk: New file.
2284
04384b2d
GM
2285 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2286
e8752c66
GM
2287 * Makefile.in (CANNOT_DUMP): New, set by configure.
2288 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2289
2e2bbddb
JL
22902010-05-20 Juri Linkov <juri@jurta.org>
2291
2292 * fileio.c (Fdelete_file): Change interative spec to use
2293 `read-file-name' like in `find-file-read-args' where the default
2294 value is `default-directory' instead of `buffer-file-name'.
2295 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2296
31c4aaf6
KR
22972010-05-20 Kevin Ryde <user42@zip.com.au>
2298
2299 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2300 (Voverriding_terminal_local_map, Vsystem_key_alist)
2301 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2302
9d5cf9b6
GM
23032010-05-20 Glenn Morris <rgm@gnu.org>
2304
2305 * Makefile.in (DEPDIR): New constant.
2306 (DEPFLAGS): Set with configure, not cpp.
2307 (MKDEPDIR): New, set by configure.
2308 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2309 (clean): Use $DEPDIR.
2310 (deps_frag): Include from configure.
2311 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2312 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2313
ead6f8f5
EZ
2314 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2315 reallocation of the cache. (Bug#6210)
2316
7f34aec3
GM
23172010-05-19 Glenn Morris <rgm@gnu.org>
2318
d494e8f2
GM
2319 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2320
c1d0dcfd
GM
2321 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2322 (GNULIB_VAR): Remove.
2323 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2324
2325 * m/ibms390x.h (LINKER):
2326 * m/macppc.h (LINKER) [GNU_LINUX]:
2327 * s/aix4-2.h (ORDINARY_LINK):
2328 * s/cygwin.h (LINKER):
2329 * s/darwin.h (ORDINARY_LINK):
2330 * s/gnu.h (ORDINARY_LINK):
2331 * s/netbsd.h (LINKER):
2332 * s/usg5-4.h (ORDINARY_LINK):
2333 Move to configure.
2334
7f34aec3
GM
2335 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2336
754790b6
CY
23372010-05-18 Chong Yidong <cyd@stupidchicken.com>
2338
2339 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2340 prevent stack overflow if number of arguments is too large
2341 (Bug#6214).
2342
161e44d1
JB
23432010-05-18 Juanma Barranquero <lekktu@gmail.com>
2344
2345 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2346
be4ff9da
GM
23472010-05-18 Glenn Morris <rgm@gnu.org>
2348
9539dc5d
GM
2349 * s/gnu-linux.h: Combine two conditionals.
2350
2351 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2352 $(POST_ALLOC_OBJ).
2353
40dc6bf4
GM
2354 * Makefile.in (RALLOC_OBJ): New, set by configure.
2355 (rallocobj): Replace with the previous variable.
2356 (otherobj): Use $RALLOC_OBJ.
2357
2358 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2359 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2360
be4ff9da
GM
2361 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2362 (gmallocobj, vmlimitobj): Replace with previous two variables.
2363 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2364
16455a85
GM
23652010-05-17 Glenn Morris <rgm@gnu.org>
2366
2367 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2368 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2369
5fdb7468
GM
23702010-05-16 Glenn Morris <rgm@gnu.org>
2371
7ca1f3f9
GM
2372 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2373
7541dad5
GM
2374 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2375
da53fab9
GM
2376 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2377 trailing "/".
2378
b02a6645
GM
2379 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2380 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2381
8877ca0f
GM
2382 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2383 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2384 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2385 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2386 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2387
5fdb7468
GM
2388 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2389 Remove ${STARTFLAGS}, nothing ever sets it.
2390
95adb4b1
DN
23912010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2392
2393 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2394
676b6304
GM
23952010-05-16 Glenn Morris <rgm@gnu.org>
2396
9beab9ce
GM
2397 * Makefile.in (LIBX_BASE): Always define.
2398
8a95f0e7
GM
2399 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2400
676b6304
GM
2401 * Makefile.in (LIBXT): Always define.
2402
6e546d18
GM
24032010-05-15 Glenn Morris <rgm@gnu.org>
2404
4235ca47 2405 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2406
6e546d18
GM
2407 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2408 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2409
8c5ff6dd
KR
24102010-05-15 Ken Raeburn <raeburn@raeburn.org>
2411
560bb7ae 2412 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2413 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2414
8b4eb796
KR
2415 * emacs.c (main): Initialize initial-environment and
2416 process-environment before generating from env, not after.
2417
8c5ff6dd
KR
2418 Handle --version reasonably in CANNOT_DUMP configuration.
2419 * emacs.c (emacs_version, emacs_copyright): New string variables.
2420 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2421 (syms_of_emacs): Defvar them, and initialize them from the C
2422 string variables.
2423 (main): If initialization hasn't been done, print initial version
2424 info from the C strings, instead of starting an interactive session.
2425
dbd3f723
EZ
24262010-05-15 Eli Zaretskii <eliz@gnu.org>
2427
d20e1419
EZ
2428 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2429 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2430 (bidi_paragraph_init): Remove redundant assertion that we are at
2431 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2432
2433 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2434 (syms_of_xdisp): Defsubr it.
2435
d36fe237
EZ
2436 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2437
dbd3f723
EZ
2438 * Makefile.in: Fix MSDOS-related comments.
2439
02be533b
GM
24402010-05-15 Glenn Morris <rgm@gnu.org>
2441
1a82cca9
GM
2442 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2443 (really-lwlib, really-oldXMenu): Always define.
2444 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2445
3df7b338
GM
2446 * Makefile.in: Simplify cpp conditional.
2447
2b5f541b
GM
2448 * Makefile.in (${ns_appdir}): Simplify using umask.
2449
02be533b
GM
2450 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2451
4e2db1fe
SM
24522010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2453
2454 * eval.c (specbind): Remove left-over duplicate test.
2455 Disallow let-binding frame-local vars. Add comment.
2456
4b292a22
EZ
24572010-05-14 Eli Zaretskii <eliz@gnu.org>
2458
2fe72643 2459 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2460 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2461 (bidi_init_it): Call it.
2462 (bidi_cache_iterator_state): Enlarge the cache if needed.
2463
4e2db1fe 2464 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2465 bidi_get_next_char_visually. All callers changed.
2466
82ebc97b
KH
24672010-05-14 Kenichi Handa <handa@m17n.org>
2468
2469 * dispextern.h (struct composition_it): New member reversed_p.
2470
2471 * composite.c (composition_compute_stop_pos): Search backward if
2472 ENDPOS < CHARPOS.
2473 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2474 Set CMP_IT->reversed_p.
b4b6e17e 2475 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2476
4e2db1fe
SM
2477 * xdisp.c (set_iterator_to_next):
2478 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2479 scanning backward. Call composition_compute_stop_pos if scan
2480 direction is changed.
2481 (next_element_from_buffer): Call composition_compute_stop_pos with
2482 negative ENDPOS if we are scanning backward.
2483 (next_element_from_composition): Pay attention to
2484 IT->cmp_it.reversed_p.
2485
0e5d7800
KH
24862010-05-14 Kenichi Handa <handa@m17n.org>
2487
560bb7ae 2488 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2489
cb027b32
GM
24902010-05-14 Glenn Morris <rgm@gnu.org>
2491
177b0288
GM
2492 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2493
fbc00890
GM
2494 * Makefile.in (mktime, X11, register): Move undefs to configure.
2495
f14d1dfd
GM
2496 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2497 (MSDOS_X_OBJ): New variable.
2498 (MSDOS_SUPPORT_REAL): New constant.
2499 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2500 (obj): Use MSDOS_X_OBJ.
2501 (lisp): Use MSDOS_SUPPORT as a variable.
2502
11842bd8
GM
2503 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2504 (GPM_MOUSE_SUPPORT): Now it's a constant.
2505 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2506 not cpp.
2507
489d31a4 2508 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2509 (ns_appresdir): Remove, unused.
e20f1f07 2510
489d31a4
GM
2511 * Makefile.in (SHELL): Move outside cpp section.
2512
cb027b32
GM
2513 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2514
5a903aa9
GM
25152010-05-13 Glenn Morris <rgm@gnu.org>
2516
3369c79f
GM
2517 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2518 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2519
d5e982a6
GM
2520 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2521 HAVE_WINDOW_SYSTEM must be too.
2522
6192e163
GM
2523 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2524 (lisp): Remove WINNT_SUPPORT.
2525
472c5d6b
GM
2526 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2527 Let configure set these variables (to empty) in this case as well.
2528
0116466b
GM
2529 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2530 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2531
5a903aa9
GM
2532 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2533 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2534 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2535 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2536 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2537 the values output by configure.
5a903aa9
GM
2538 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2539
1a0d7c06
GM
25402010-05-12 Glenn Morris <rgm@gnu.org>
2541
b5457f14
GM
2542 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2543 (LINKER_WAS_SPECIFIED): Remove.
2544
1a0d7c06
GM
2545 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2546 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2547 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2548 * s/cygwin.h (LIB_GCC):
2549 * s/freebsd.h (LIB_GCC):
2550 * s/gnu-linux.h (LIB_GCC):
2551 * s/msdos.h (LIB_GCC):
2552 * s/netbsd.h (LIB_GCC):
2553 Move to configure.
2554
3ffd4615 25552010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2556
2557 * ftfont.c: Fix incorrect parentheses of #if condition for
2558 definining M17N_FLT_USE_NEW_FEATURE.
2559
acddf8ae
GM
25602010-05-11 Glenn Morris <rgm@gnu.org>
2561
2562 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2563 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2564
ae5e04fa
EZ
25652010-05-10 Eli Zaretskii <eliz@gnu.org>
2566
2567 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2568 unibyte buffers. See
2569 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2570
7490175b
GM
25712010-05-10 Glenn Morris <rgm@gnu.org>
2572
97efb629
GM
2573 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2574 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2575 (LIBES): Use LIBS_SYSTEM as a variable.
2576 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2577 * s/aix4-2.h (LIBS_SYSTEM):
2578 * s/freebsd.h (LIBS_SYSTEM):
2579 * s/hpux10-20.h (LIBS_SYSTEM):
2580 * s/sol2-6.h (LIBS_SYSTEM):
2581 * s/unixware.h (LIBS_SYSTEM):
2582 Move to configure.
2583
7490175b
GM
2584 * s/aix4-2.h (MAIL_USE_LOCKF):
2585 * s/bsd-common.h (MAIL_USE_FLOCK):
2586 * s/darwin.h (MAIL_USE_FLOCK):
2587 * s/gnu-linux.h (MAIL_USE_FLOCK):
2588 * s/irix6-5.h (MAIL_USE_FLOCK):
2589 * s/template.h (MAIL_USE_FLOCK):
2590 Move to configure.
2591
0235128c 25922010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2593
2594 * Version 23.2 released.
2595
0235128c 25962010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2597
2598 * composite.c (autocmp_chars): Save point as marker before calling
2599 auto-composition-function (Bug#5984).
2600
2601 * lisp.h (restore_point_unwind): Add prototype.
2602
2603 * fileio.c (restore_point_unwind): Remove static attribute.
2604
0235128c 26052010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2606
2607 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2608 new feature of libotf and m17n-flt.
0235128c
SM
2609 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2610 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2611 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2612 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2613 that OUT is NULL. Use OTF_drive_gsub_with_log and
2614 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2615 OTF_drive_gpos.
2616 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2617 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2618 Setup mflt_enable_new_feature and mflt_try_otf.
2619
4721152c
J
26202010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2621
2622 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2623
2624 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2625 box and toolbar (Bug #6139).
2626 (xg_create_tool_bar): Remove comment (Bug #6139).
2627 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2628 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2629
ee0a16cf
JB
26302010-05-08 Juanma Barranquero <lekktu@gmail.com>
2631
2632 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2633 Update dependencies.
2634
96d79611
EZ
26352010-05-08 Eli Zaretskii <eliz@gnu.org>
2636
2637 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2638 R2L lines.
2639
40c17879
GM
26402010-05-08 Glenn Morris <rgm@gnu.org>
2641
7b42b29f
GM
2642 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2643
40c17879
GM
2644 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2645 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2646 (termcapobj): Replace with TERMCAP_OBJ.
2647 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2648 (LIBES): Use LIBS_TERMCAP as a variable.
2649
2650 * s/freebsd.h (osreldate.h): No longer include, since this file
2651 does not use __FreeBSD_version any more.
2652
2653 * s/aix4-2.h (TERMINFO):
2654 * s/cygwin.h (TERMINFO):
2655 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2656 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2657 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2658 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2659 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2660 * s/irix6-5.h (TERMINFO):
2661 * s/netbsd.h (LIBS_TERMCAP):
2662 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2663 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2664 * s/usg5-4.h (TERMINFO):
2665 Move to configure.
2666
94b612ad
SM
26672010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2668
2669 * eval.c (unbind_to): Don't unbind a local binding into the global
2670 binding when the local binding disappeared. Inversely, don't unbind
2671 a global binding into a newly created local binding.
2672 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2673 can specify the frame to use, when applicable. Adjust callers.
2674
15e12598 26752010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2676 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2677
2678 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2679
f724825e
EZ
26802010-05-07 Eli Zaretskii <eliz@gnu.org>
2681
5cba3209
EZ
2682 * w32fns.c: Include w32.h.
2683 (Fw32_shell_execute): Decode the error message before passing it
2684 to `error'. (Bug#6126)
2685
d16bdfc3
EZ
2686 * msdos.c (dos_set_window_size):
2687 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2688 instead of `XSYMBOL (foo)->value'.
2689
59d93e87
EZ
26902010-05-07 Eli Zaretskii <eliz@gnu.org>
2691
9fdec8bc
EZ
2692 Fix the MS-DOS build, broken by autoconfiscation.
2693
2694 * Makefile.in: Don't use Make-style comments past the "start of
2695 cpp stuff" line.
2696 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2697
2698 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2699 edited directly by msdos/sed1v2.inp).
f724825e 2700
2f86b22b
GM
27012010-05-07 Glenn Morris <rgm@gnu.org>
2702
2703 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2704 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2705 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2706 move out of cpp section.
2707 * s/freebsd.h (LD_SWITCH_SYSTEM):
2708 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2709 * s/netbsd.h (LD_SWITCH_SYSTEM):
2710 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2711
49ebbd65
DN
27122010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2713
2714 Define LIB_STANDARD and START_FILES using autoconf.
2715 * s/usg5-4.h (LIB_STANDARD):
2716 * s/netbsd.h (START_FILES):
2717 * s/irix6-5.h (LIB_STANDARD):
2718 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2719 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2720 * s/freebsd.h (START_FILES):
2721 * s/darwin.h (START_FILES):
2722 * s/cygwin.h (START_FILES):
2723 * s/aix4-2.h (LIB_STANDARD):
2724 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2725 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2726 autoconf, not cpp.
2727
d43c06d6
DN
27282010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2729
28823648
DN
2730 Remove NEED_BSDTTY and NEED_UNISTD_H.
2731 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2732 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2733 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2734 <sys/ptyio.h> and <unistd.h>.
2735
aca00430
DN
2736 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2737
d43c06d6
DN
2738 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2739 * s/gnu.h (START_FILES): Remove empty definition.
2740
3e56b11d
JD
27412010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2742
2743 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2744
e3cf0cde
GM
27452010-05-06 Glenn Morris <rgm@gnu.org>
2746
2747 * Makefile.in (CPP, LN_S): Remove unused variables.
2748
774b9a60
SM
27492010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2750
2751 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2752
4ab92842
LM
27532010-05-05 Lawrence Mitchell <wence@gmx.li>
2754
2755 * m/sparc.h: Fix typo in earlier change.
2756
178f2507
SM
27572010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2758
2759 Misc tweaks.
2760 * eval.c (Fdefvaralias): Remove unintended nested if.
2761 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2762
80f00217 27632010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2764
2765 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2766
ef03a4e6
DN
27672010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2768
58eb6cf0
DN
2769 Remove BSD_PGRPS.
2770 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2771 * s/gnu-linux.h (BSD_PGRPS): Remove.
2772 * term.c (dissociate_if_controlling_tty):
2773 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2774 (init_sys_modes, reset_sys_modes):
2775 * emacs.c (main):
2776 * callproc.c (Fcall_process, child_setup): Remove code depending
2777 on BSD_PGRPS.
2778
ef03a4e6
DN
2779 Remove POSIX_SIGNALS.
2780 * s/usg5-4.h (POSIX_SIGNALS):
2781 * s/netbsd.h (POSIX_SIGNALS):
2782 * s/msdos.h (POSIX_SIGNALS):
2783 * s/ms-w32.h (POSIX_SIGNALS):
2784 * s/hpux11.h (POSIX_SIGNALS):
2785 * s/gnu.h (POSIX_SIGNALS):
2786 * s/gnu-linux.h (POSIX_SIGNALS):
2787 * s/freebsd.h (POSIX_SIGNALS):
2788 * s/darwin.h (POSIX_SIGNALS):
2789 * s/cygwin.h (POSIX_SIGNALS):
2790 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2791 * s/unixware.h:
2792 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2793 * process.c (create_process):
2794 * syssignal.h:
2795 * sysdep.c (wait_for_termination, init_signals):
2796 * process.c (create_process):
2797 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2798 remove all code that assumes the contrary.
2799
49628785
GM
28002010-05-04 Glenn Morris <rgm@gnu.org>
2801
27a2cdfc
GM
2802 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2803 variable.
2804 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2805 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2806 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2807 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2808 LD_SWITCH_SYSTEM_tmp.
2809 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2810 New variables, set by configure.
2811
eb21eab5
GM
2812 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2813 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2814 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2815 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2816 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2817
49628785
GM
2818 * s/aix4-2.h (C_SWITCH_SYSTEM):
2819 * m/alpha.h (C_SWITCH_MACHINE):
2820 Move to configure.in.
2821 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2822 New variables, set by configure.
2823 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2824 $c_switch_machine and $c_switch_system.
2825
7dff330b
DN
28262010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2827
2828 * s/hpux10-20.h (LIB_STANDARD): New definition.
2829 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2830 on it, not used anymore.
2831
53967e09
CY
28322010-05-03 Chong Yidong <cyd@stupidchicken.com>
2833
2834 * eval.c (internal_condition_case_n): Rename from
2835 internal_condition_case_2.
2836 (internal_condition_case_2): New function.
2837
2838 * xdisp.c (safe_call): Use internal_condition_case_n.
2839
2840 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2841 (internal_delete_file, Frename_file): Callers changed.
2842
2843 * buffer.c (Fkill_buffer):
2844 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2845
2846 * lisp.h: Update prototypes.
2847
3dee6fdb
GM
28482010-05-03 Glenn Morris <rgm@gnu.org>
2849
2850 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2851 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2852 (LIBXT): Set with configure, not cpp.
2853 (LIBX): Remove.
2854 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2855
a101e0fb
DN
28562010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2857
2858 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2859 The FreeBSD is not needed, the default works, Solaris version is
2860 not needed, and the remaining case is not supported by configure.
2861
f63d0028
JD
28622010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2863
2864 * xsmfns.c (CHDIR_OPT): New define.
2865 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2866 restarting emacs.
2867
2868 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2869 shut_down_emacs.
2870
2871 * emacs.c (USAGE1): Mention --chdir.
2872 (main): Handle --chdir.
2873 (standard_args): Add --chdir.
2874 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2875 #5552).
2876
e4814a9f
DN
28772010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2878
cd03c74a
DN
2879 Remove LD_SWITCH_MACHINE.
2880 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2881 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2882
c3a398a1
DN
2883 Clean up IRIX code.
2884 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2885 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2886
87e7285c
DN
2887 Clean up AIX code.
2888 * m/ibmrs6000.inp: Remove file, unused.
2889 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2890 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2891 definition ...
2892 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2893
80f00217
JB
2894 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2895 unused.
e4814a9f 2896
59ca28de
EZ
28972010-05-01 Eli Zaretskii <eliz@gnu.org>
2898
197daef4
EZ
2899 Emulate POSIX_SIGNALS on MS-Windows.
2900
2901 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2902 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2903
2904 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2905 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2906 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2907
80f00217
JB
2908 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2909 New stubs.
197daef4 2910
af7c7572
EZ
2911 Miscellaneous fixes of bidi display.
2912
59ca28de
EZ
2913 * xdisp.c (find_row_end): New function, refactored from display_line.
2914 (display_line): Use it.
017ea819
EZ
2915 (extend_face_to_end_of_line): In almost-filled rows, extend only
2916 if the row is R2L and not continued.
166e930d 2917 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2918 Preserve overlay and string info in row->end.
166e930d
EZ
2919 (insert_left_trunc_glyphs): Support addition of left truncation
2920 glyphs to R2L rows.
b47e0dcf 2921 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2922 glyph between adjacent windows. Fix a crash when a display string
2923 is continued to the next line. Don't return zero if cursor was
2924 found by `cursor' property of a display string.
b47e0dcf
EZ
2925 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2926 test for that explicitly.
59ca28de 2927
7acac9f4
GM
29282010-05-01 Glenn Morris <rgm@gnu.org>
2929
2930 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2931 for clarity.
2932 (OTHER_OBJ): Remove.
2933 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2934 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2935
45841e65
KK
29362010-05-01 Karel Klíč <kklic@redhat.com>
2937
2938 * fileio.c (Ffile_selinux_context): Context functions may return null.
2939
afc61943
DN
29402010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2941
80f00217 2942 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2943
5a1bb006
GM
29442010-04-30 Glenn Morris <rgm@gnu.org>
2945
2946 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2947 (OTHER_OBJ): Define as a separate variable, for clarity.
2948
210af043
J
29492010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2950
2951 * xsettings.c: include limits.h and update file comment.
2952
0a7df391
GM
29532010-04-30 Glenn Morris <rgm@gnu.org>
2954
d5096f16
GM
2955 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2956 Set with configure, not cpp.
2957 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2958
7eb1ac33
GM
2959 * Makefile.in (mallocobj): Remove.
2960 (otherobj): Simplify using @OTHER_OBJ@.
2961
517d086b
GM
2962 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2963 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2964 Don't bother making nsgui.h dependency platform-specific.
2965
0a7df391
GM
2966 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2967
d6d23852
SM
29682010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2969
d2630aef
SM
2970 * process.c (read_process_output, exec_sentinel): Don't burp if the
2971 sentinel/filter kills the current buffer (bug#6060).
2972
f9dddf52 2973 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2974 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2975 Remove unused var `args'.
2976 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2977 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2978 * doc.c (store_function_docstring): Use XSETCAR.
2979
f1e3642a
GM
29802010-04-28 Glenn Morris <rgm@gnu.org>
2981
faf535f8
GM
2982 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2983 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2984
c40f9449
GM
2985 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2986
658f86ca
GM
2987 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2988 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2989
bc0b5f61
GM
2990 * Makefile.in (FONT_OBJ): New, set by configure.
2991 (FONT_DRIVERS): Use $FONT_OBJ.
2992
294c50a0
GM
2993 * Makefile.in (LIBXMU): Set with configure, not cpp.
2994 * s/aix4-2.h (LIBXMU):
2995 * s/hpux10-20.h (LIBXMU):
2996 Remove definition, now set in configure.
2997
e6ec4e99
GM
2998 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2999
f1e3642a
GM
3000 * m/amdx86-64.h [i386]: Move this test to configure.in.
3001
c6ea2936
GM
30022010-04-27 Glenn Morris <rgm@gnu.org>
3003
8fdac2c3
GM
3004 * Makefile.in (LIBXTR6): Set with configure, not cpp.
3005 * s/unixware.h (NEED_LIBW): Remove definition.
3006
986fb647
GM
3007 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
3008 (TOOLKIT_LIBW): New, set by configure.
3009 (@X_TOOLKIT_TYPE@): No longer define it.
3010
c6ea2936
GM
3011 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
3012 (MOTIF_LIBW): Set with configure, not cpp.
3013 * s/aix4-2.h (LIB_MOTIF):
3014 * s/gnu-linux.h (LIB_MOTIF):
3015 * s/unixware.h (LIB_MOTIF): Move to configure.in.
3016
aaa36002
DN
30172010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
3018
3019 Reduce CPP usage.
3020 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
3021 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
3022 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
3023 definitions and undefs. Inline definitions in the only user.
3024 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 3025
b678dd8b
GM
30262010-04-27 Glenn Morris <rgm@gnu.org>
3027
76cda504
GM
3028 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
3029 since the defaults (set by the system file) are fine in most cases.
3030 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
3031 * m/ibms390x.h (START_FILES, LIB_STANDARD):
3032 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
3033 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
3034 Remove definitions, since they are set correctly in s/gnu-linux.h.
3035 * s/freebsd.h (START_FILES, LIB_STANDARD):
3036 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3037 * s/hpux10-20.h (START_FILES):
3038 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
3039 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
3040
b678dd8b
GM
3041 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
3042 (MOTIF_LIBW): Use $LIBXP.
3043 (otherobj): Use $WIDGET_OBJ.
3044
9452ded1
DN
30452010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
3046
7e10844c
DN
3047 * Makefile.in (LIBS_MACHINE): Remove, unused.
3048
9452ded1
DN
3049 Use autoconf instead of cpp for LIB_MATH.
3050 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
3051 * s/cygwin.h (LIB_MATH): Likewise.
3052 * Makefile.in (LIB_MATH): Do not define with cpp.
3053 (LIBES): Use autoconf for LIB_MATH.
3054
fcebfc6a
KH
30552010-04-26 Kenichi Handa <handa@m17n.org>
3056
3057 * composite.c (Ffind_composition_internal): Fix the return value
3058 for an automatic composition.
3059
39e2ad1b
DN
30602010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
3061
3062 Remove all NO_ARG_ARRAY uses.
3063 * fns.c (concat2, concat3, nconc2):
3064 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
3065 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
3066 * m/xtensa.h (NO_ARG_ARRAY):
3067 * m/template.h (NO_ARG_ARRAY):
3068 * m/sparc.h (NO_ARG_ARRAY):
3069 * m/sh3.h (NO_ARG_ARRAY):
3070 * m/mips.h (NO_ARG_ARRAY):
3071 * m/macppc.h (NO_ARG_ARRAY):
3072 * m/iris4d.h (NO_ARG_ARRAY):
3073 * m/intel386.h (NO_ARG_ARRAY):
3074 * m/ibms390x.h (NO_ARG_ARRAY):
3075 * m/ibms390.h (NO_ARG_ARRAY):
3076 * m/ibmrs6000.h (NO_ARG_ARRAY):
3077 * m/ia64.h (NO_ARG_ARRAY):
3078 * m/hp800.h (NO_ARG_ARRAY):
3079 * m/arm.h (NO_ARG_ARRAY):
3080 * m/amdx86-64.h (NO_ARG_ARRAY):
3081 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
3082
adf4f59c
EZ
30832010-04-25 Eli Zaretskii <eliz@gnu.org>
3084
6bdf5d65
EZ
3085 * xdisp.c (display_line): Don't assume 2nd call to
3086 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
3087 (iterate_out_of_display_property): New function, body from pop_it.
3088 (pop_it): Use it.
adf4f59c 3089
dfbbda83
GM
30902010-04-24 Glenn Morris <rgm@gnu.org>
3091
3092 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
3093 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
3094 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
3095 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
3096
2d4018aa
EZ
30972010-04-24 Eli Zaretskii <eliz@gnu.org>
3098
a49884a6
EZ
3099 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
3100 use `get_next_display_element' and `set_iterator_to_next' to
3101 advance to the next character, when looking for the character that
3102 begins the next row.
3103
76db6fcc 3104 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
3105 definition of "struct Lisp_Symbol".
3106
70eab5c1
GM
31072010-04-24 Glenn Morris <rgm@gnu.org>
3108
3109 * Makefile.in (CRT_DIR): New variable, set by configure.
3110 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
3111 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
3112
1ad4cc3d
DN
31132010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3114
e769f484
DN
3115 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
3116
4196ff33
DN
3117 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
3118
879b0ee4
DN
3119 Remove redundant flags.
3120 * s/freebsd.h (C_SWITCH_SYSTEM):
3121 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
3122 * s/netbsd.h (C_SWITCH_SYSTEM):
3123 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
3124 of these.
3125
03cbbcb8
DN
3126 Simplify m/intel386.h.
3127 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
3128 user: ecrt0.c.
3129 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
3130 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
3131 the only user: s/unixware.h.
3132 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
3133 from m/intel386.h.
3134 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
3135 moved here from m/intel386.h.
3136
1ad4cc3d
DN
3137 * m/mips.h: Remove #if 0 code.
3138
8785b888
EZ
31392010-04-23 Eli Zaretskii <eliz@gnu.org>
3140
728588cc
EZ
3141 Fix display of composed characters from L2R scripts in bidi buffers.
3142 * xdisp.c (set_iterator_to_next, next_element_from_composition):
3143 After advancing IT past the composition, resync the bidi iterator
3144 with IT's position. (Bug#5977)
3145
a63f80b4
DN
31462010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3147
3148 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
3149 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
3150
ff5dec5c
SM
31512010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3152
3153 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3154
8785b888
EZ
31552010-04-23 Eli Zaretskii <eliz@gnu.org>
3156
58ccf243 3157 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3158 * xdisp.c (pop_it): When the stack is popped after displaying
3159 from a string, bidi-iterate to exit from the text portion covered
3160 by the `display' property or overlay. (Bug#5988, bug#5920)
3161
feeb1604
DN
31622010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3163
8e324eb6
DN
3164 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3165 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3166
809fcaba
DN
3167 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3168 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3169
ed710380
DN
3170 Simplify STARTFILES definition.
3171 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3172 relying on Makefile.in to define it.
3173 * s/cygwin.h (START_FILES): Likewise.
3174 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3175
feeb1604
DN
3176 Clean up Solaris code.
3177 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3178 (LIB_MOTIF): Remove, configure takes care of this.
3179 (NOT_USING_MOTIF): Remove, unused.
3180 * xrdb.c: Remove #if 0-ed #include.
3181 (SYSV): Remove conditional for old SysV.
3182 * sysdep.c (closedir): Remove conditional code for Solaris,
3183 Solaris has closedir.
3184
a0d0b563
JD
31852010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3186
3187 * xsettings.c (read_and_apply_settings): Check if current_font is
3188 NULL before strcmp (Bug#6001).
3189
56bae7c7
DN
31902010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3191
3192 Clean up HP-UX files.
3193 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3194 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3195 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3196 * s/hpux10-20.h: ... to the only user, here.
3197
372b7a95
EZ
31982010-04-21 Eli Zaretskii <eliz@gnu.org>
3199
3200 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3201 use buffer-local values of paragraph-start and paragraph-separate.
3202 <paragraph_start_re, paragraph_separate_re>: Rename from
3203 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3204 (Bug#5992)
3205
f904c0f9
JD
32062010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3207
3208 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3209 current_tool_bar_style are new.
3210 (store_config_changed_event): Rename from store_font_changed_event.
3211 (XSETTINGS_TOOL_BAR_STYLE): New define.
3212 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3213 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3214 HAVE_XFT.
3215 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3216 store_config_changed_event.
f904c0f9
JD
3217 (parse_settings): Rename from parse_xft_settings. Read
3218 non-xft xsettings outside #ifdef HAVE_XFT.
3219 (read_settings): Renamed from read_xft_settings.
3220 (apply_xft_settings): Take current settings as parameter. Do not
3221 call read_(xft)_settings.
3222 (read_and_apply_settings): New function.
3223 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3224 read_and_apply_settings if there are settings to be read.
3225 (init_xsettings): Renamed from init_xfd_settings.
3226 Call read_and_apply_settings unconditionally.
3227 (xsettings_initialize): Call init_xsettings.
3228 (Ftool_bar_get_system_style): New function.
3229 (syms_of_xsettings): Define Qmonospace_font_name and
3230 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3231 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3232 dynamic-setting.
31a01b90 3233 Move misplaced HAVE_GCONF
f904c0f9
JD
3234
3235 * xsettings.h (Ftool_bar_get_system_style): Declare.
3236
3237 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3238 Qtext, Qboth, Qboth_horiz are new.
3239 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3240 Vtool_bar_style, tool_bar_max_label_size.
3241
3242 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3243
3244 * keyboard.c: QClabel is new.
3245 (parse_tool_bar_item): Take out QClabel from tool bar items.
3246 Try to construct a label if ther is no QClabel.
3247 (syms_of_keyboard): Intern :label as QClabel.
3248
3249 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3250 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3251 New.
3252
3253 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3254 dynamic-setting.el.
3255
3256 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3257 (xg_make_tool_item, xg_show_toolbar_item): New function.
3258 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3259 Call xg_make_tool_item to make a tool bar item.
3260 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3261
3262 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3263 into account for toolbars.
3264
c632dfda
JD
32652010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3266
3267 * data.c (make_blv): Declarations before code (Bug#5993).
3268
10efe302
GM
32692010-04-21 Glenn Morris <rgm@gnu.org>
3270
3271 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3272 Define using autoconf, not cpp.
3273 (LIBXSM): New variable, set by autoconf.
3274 (LIBXT): Use $LIBXSM.
3275
4285ac5a
DN
32762010-04-21 Dan Nicolaescu <local_user@dannlt>
3277
3ec759e7
DN
3278 Remove NOMULTIPLEJOBS, unused.
3279 * s/template.h (NOMULTIPLEJOBS):
3280 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3281
4285ac5a
DN
3282 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3283 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3284 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3285 detects -znocombreloc and passes it to the linker
3286 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3287
2807228d
GM
32882010-04-21 Glenn Morris <rgm@gnu.org>
3289
3290 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3291
574c05e2
KK
32922010-04-21 Karel Klíč <kklic@redhat.com>
3293
3294 * Makefile.in (LIBSELINUX_LIBS): New.
3295 (LIBES): Add $LIBSELINUX_LIBS.
3296 * eval.c, lisp.h (call7): New function.
3297 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3298 (Ffile_selinux_context, Fset_file_selinux_context):
3299 New functions.
3300 (Fcopy_file): New parameter preserve-selinux-context.
3301 (Frename_file): Preserve selinux context when renaming by copy-file.
3302
91eac4bb 33032010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3304 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3305
50426a04
JB
3306 Don't depend on cm.c or termcap.c on Windows, use stubs.
3307 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3308 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3309 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3310 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3311 (sys_tputs, sys_tgetstr): New stubs.
3312 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3313 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3314
938efb77
JB
33152010-04-20 Juanma Barranquero <lekktu@gmail.com>
3316
3317 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3318
b4bf28b7
SM
33192010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3320
8b1e1112
SM
3321 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3322 Just signal a warning rather than an error when inside a let.
3323 (Fmake_variable_frame_local): Add the same test.
3324
933ac235
SM
3325 * font.c (syms_of_font): Make the style table vars read-only.
3326
b4bf28b7
SM
3327 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3328 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3329
3330 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3331
93d68d0c
EZ
33322010-04-20 Eli Zaretskii <eliz@gnu.org>
3333
3334 Fix R2L paragraph display on TTY.
3335
3336 * xdisp.c (unproduce_glyphs): New function.
3337 (display_line): Use it when produced glyphs are discarded from R2L
3338 glyph rows.
3339 (append_composite_glyph): In R2L rows, prepend the glyph rather
3340 than appending it.
3341
3342 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3343 rather than append it. Set up the resolved_level and bidi_type
3344 attributes of the appended glyph.
283ccc18
EZ
3345 (produce_special_glyphs): Mirror the backslash continuation
3346 character in R2L lines.
93d68d0c 3347
283ccc18 3348 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3349
283ccc18
EZ
3350 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3351 append_stretch_glyph.
3352 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3353 off-by-one error in computing x at end of text in the row.
3354 (append_stretch_glyph): In reversed row, prepend the glyph rather
3355 than append it. Set resolved_level and bidi_type of the glyph.
3356 (extend_face_to_end_of_line): If the row is reversed, prepend a
3357 stretch glyph whose width is such that the rightmost glyph will be
3358 drawn at the right margin of the window. Fix off-by-one error on
3359 TTY frames in testing whether a line needs face extension. Fix
3360 face extension at ZV. If this is the last glyph row, use
3361 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3362 region face.
3363 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3364 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3365 row->continuation_lines_width.
283ccc18
EZ
3366 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3367 are at ZV. Fixes a crash when reseated to ZV by
3368 try_window_reusing_current_matrix.
45903529
EZ
3369 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3370 which happens with R2L glyph rows. Fixes a crash when inserting a
3371 character at end of an R2L line.
283ccc18
EZ
3372 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3373 treat them as having zero-width characters. Improve comments.
3374 Don't reverse pos_before and pos_after for reversed glyph rows.
3375 Set cursor.x to negative value when the cursor might be on the
3376 left fringe.
3377 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3378 left fringe, not the right one.
f951a506
EZ
3379 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3380 (erase_phys_cursor): For reversed cursor_row, support cursor on
3381 the left fringe.
3382
283ccc18
EZ
3383 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3384 of continuation indicators on the fringes.
3385 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3386 left fringe.
3387
f951a506
EZ
3388 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3389 draw cursor on the left fringe.
3390
3391 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3392 cursor on the left fringe.
3393
f951a506
EZ
3394 * dispnew.c (update_text_area): Handle reversed desired rows when
3395 the cursor is on the left fringe.
3396 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3397 below, not by 0, for when the cursor is on the left fringe.
3398
3bb49aaf
JD
33992010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3400
3401 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3402 widget is a scrollbar.
3403
c0be27fd
KH
34042010-04-20 Kenichi Handa <handa@m17n.org>
3405
3406 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3407 only when the arg CHARSET_LIST is nil.
3408
ce5b453a
SM
34092010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3410
3411 Make variable forwarding explicit rather the using special values.
3412 Basically, this makes the structure of buffer-local values and object
3413 forwarding explicit in the type of Lisp_Symbols rather than use
3414 special Lisp_Objects for that. This tends to lead to slightly more
3415 verbose code, but is more C-like, simpler, and makes it easier to make
3416 sure we handled all cases, among other things by letting the compiler
3417 help us check it.
3418 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3419 Removing forwarding objects.
3420 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3421 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3422 explicit rather than hiding them inside Lisp_Object "values".
3423 (XFWDTYPE): New macro.
3424 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3425 (XBUFFER_LOCAL_VALUE): Remove.
3426 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3427 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3428 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3429 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3430 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3431 Remove the Lisp_Misc_* header.
3432 (struct Lisp_Buffer_Local_Value): Redefine.
3433 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3434 (struct Lisp_Misc_Any): Add filler to get the right size.
3435 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3436 Lisp_Intfwd.
3437 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3438 (DEFVAR_KBOARD): Allocate a forwarding object.
3439 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3440 (let_shadows_global_binding_p): New function.
3441 (union Lisp_Val_Fwd): New type.
3442 (make_blv): New function.
3443 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3444 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3445 (swap_in_symval_forwarding, find_symbol_value, Fset)
3446 (let_shadows_buffer_binding_p, set_internal, default_value)
3447 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3448 (Fkill_local_variable, Fmake_variable_frame_local)
3449 (Flocal_variable_p, Flocal_variable_if_set_p)
3450 (Fvariable_binding_locus):
3451 * xdisp.c (select_frame_for_redisplay):
3452 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3453 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3454 * frame.c (store_frame_param):
3455 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3456 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3457 value structure.
3458 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3459 (clone_per_buffer_values): Only adjust markers into the current buffer.
3460 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3461 (Fbuffer_local_value, set_buffer_internal_1)
3462 (swap_out_buffer_local_variables):
3463 Adapt to the new symbol value structure.
3464 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3465 (defvar_per_buffer): Take a new arg for the fwd object.
3466 (buffer_lisp_local_variables): Return a proper alist (different fix
3467 for bug#4138).
3468 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3469 (Fgarbage_collect): Don't handle buffer_defaults specially.
3470 (mark_object): Handle new symbol value structure rather than the old
3471 special Lisp_Misc_* objects.
3472 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3473 * term.c (set_tty_color_mode):
3474 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3475 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3476 a buffer_local_flags.
3477 * print.c (print_object): Get rid of impossible forwarding objects.
3478
fd3998ff
EZ
34792010-04-19 Eli Zaretskii <eliz@gnu.org>
3480
3481 * bidi.c (bidi_get_type, bidi_get_category)
3482 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3483 (bidi_type_of_next_char, bidi_level_of_next_char):
3484 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3485
e42cd1a7
JB
34862010-04-19 Juanma Barranquero <lekktu@gmail.com>
3487
3488 * dired.c (Ffile_attributes): Fix typo in docstring.
3489
6e104790 34902010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3491
3492 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3493 NSInteger (Bug#5811).
3494
6e104790 34952010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3496
3497 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3498 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3499
6e104790 35002010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3501
3502 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3503
6e104790
SM
35042010-04-19 Chong Yidong <cyd@stupidchicken.com>
3505
3506 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3507 terminal frames (Bug#5837).
3508
37dcfea0
EZ
35092010-04-19 Eli Zaretskii <eliz@gnu.org>
3510
d1da276f
EZ
3511 * .gdbinit (xsubchartable): New command.
3512
37dcfea0
EZ
35132010-04-19 Eli Zaretskii <eliz@gnu.org>
3514
3515 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3516 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3517 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3518 and
3519 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3520
e9515805
SM
35212010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3522
3523 * alloc.c (Fpurecopy): Hash-cons if requested.
3524 (syms_of_alloc): Update purify-flag docstring.
3525
22aa44a8
JD
35262010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3527
3528 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3529 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3530
ebb5722e
EZ
35312010-04-17 Eli Zaretskii <eliz@gnu.org>
3532
3533 Fix a crash when an NSM character is inserted at BEGV.
3534
3535 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3536 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3537 NEUTRAL_B or UNKNOWN_BT.
3538
0f4442ef
EZ
35392010-04-16 Eli Zaretskii <eliz@gnu.org>
3540
3541 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3542 other rows with cursor unless they are different from this row and
3543 this row is part of a continued line. (Bug#5943)
3544
7d4e45f8
DN
35452010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3546
3547 * s/freebsd.h: Restore osreldate.h include.
3548 Suggested by Naohiro Aota.
3549
5ba5ec85
J
35502010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3551
3552 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3553
20af301d
CY
35542010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3555
3556 * s/cygwin.h: Avoid linking against static libgcc.
3557
a4b000fb
JL
35582010-04-15 Juri Linkov <juri@jurta.org>
3559
3560 * window.c: Add Qscroll_command.
3561 Remove Vscroll_preserve_screen_position_commands.
3562 (window_scroll_pixel_based, window_scroll_line_based): Check the
3563 `scroll-command' property on the last command instead of searching
3564 the last command in Vscroll_preserve_screen_position_commands.
3565 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3566 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3567 (scroll-preserve-screen-position): Doc fix.
3568 (Vscroll_preserve_screen_position_commands): Remove variable.
3569
bc319ba4
DN
35702010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3571
6bb24457
DN
3572 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3573
19d4c244
DN
35742010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3575
3576 Reduce cpp use in Makefile.in.
3577 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3578 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3579 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3580 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3581 (CRT0_COMPILE): Remove, inline it in the only user.
3582
32129746
JL
35832010-04-14 Juri Linkov <juri@jurta.org>
3584
3585 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3586 `scroll-up-command' and `M-v' from `scroll-down' to
3587 `scroll-down-command'.
3588
9013a7f8
JL
35892010-04-14 Juri Linkov <juri@jurta.org>
3590
3591 * window.c (Vscroll_preserve_screen_position_commands): New variable
3592 with the default value as the list of Qscroll_down and Qscroll_up.
3593 (window_scroll_pixel_based, window_scroll_line_based): Search the
3594 last command in the list Vscroll_preserve_screen_position_commands
3595 instead of comparing with Qscroll_up and Qscroll_down.
3596
4bef8d26
JD
35972010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3598
92848133
JD
3599 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3600 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3601 does that.
3602
4bef8d26
JD
3603 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3604 to zero.
3605
58b963f7
SM
36062010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3607
84164a0d
SM
3608 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3609
2b0a91e7
SM
3610 Try to solve the problem of spurious EOF chars in long lines of text
3611 sent to interactive subprocesses.
3612 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3613 (system_process_attributes): Remove unused var `ttotal'.
3614 * process.c (send_process): Don't bother breaking long line with EOF
3615 chars when talking to ttys any more.
3616 (wait_reading_process_output): Output a warning when called in such
3617 a way that it could block without being interruptible.
3618
58b963f7
SM
3619 Try to detect file modification within the same second.
3620 * buffer.h (struct buffer): New field modtime_size.
3621 * buffer.c (reset_buffer): Initialize it.
3622 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3623 (Fverify_visited_file_modtime): Check it.
3624 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3625 (Fset_visited_file_modtime): Set (or clear) it.
3626
01f5787b
SM
36272010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3628
3629 * process.c (status_notify): Remove unused var `ro'.
3630
83725342
JD
36312010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3632
3633 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3634 more than one visual (Bug#5938).
3635
b9465836
DN
36362010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3637
50426a04
JB
3638 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3639 Undefine.
b9465836 3640
8d9c8ece
DN
36412010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3642
b1f52161
DN
3643 Remove C_SWITCH_SYSTEM_TEMACS.
3644 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3645 (malloc, realloc, free): Use emacs, not temacs for conditional
3646 definition.
3647
3648 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3649 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3650
8d9c8ece
DN
3651 Use autoconf, not cpp for some variables.
3652 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3653 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3654 (ALL_CFLAGS): Use them as make variables.
3655 (really-lwlib, really-oldXMenu): Do not pass them.
3656
1ecb2d3f
JD
36572010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3658
3659 * xmenu.c (apply_systemfont_to_dialog): New.
3660 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3661
3a4fa2f2
SM
36622010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3663
97e53006
SM
3664 * process.c (exec_sentinel): Preserve current-buffer.
3665
3a4fa2f2
SM
3666 * process.c (read_process_output): Move the save-current-buffer to
3667 apply to both the filter and the non-filter branches.
3668
88df7221
DN
36692010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3670
3671 * s/msdos.h (UNEXEC): New definition.
3672
5634ff85
YM
36732010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3674
6eff5c3d
YM
3675 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3676 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3677
3678 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3679 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3680 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3681 TRY_WINDOW_CHECK_MARGINS.
3682
3683 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3684 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3685 width only when it is for padding.
5634ff85 3686
b13aef54
J
36872010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3688
3689 * xfns.c (Fx_show_tip): Call try_window in a loop until
3690 fonts_changed_p is zero (Bug#2423).
3691
21d28484
EZ
36922010-04-08 Eli Zaretskii <eliz@gnu.org>
3693
3694 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3695 the end of TEXT_AREA. (Bug#5856)
3696
0269ef77
JD
36972010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3698
3699 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3700 HAVE_GCONF.
3701
5930fe97
EZ
37022010-04-08 Eli Zaretskii <eliz@gnu.org>
3703
3704 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3705 prev.orig_type, for resolving type of NSM. (Bug#5858)
3706
99852628
JD
37072010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3708
3709 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3710 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3711 in current_font.
3712 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3713 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3714 New functions.
3715 (syms_of_xsettings): Initialize current_font.
3716 defsubr Sfont_get_system_normal_font.
99852628
JD
3717
3718 * xsettings.h (Ffont_get_system_normal_font,
3719 xsettings_get_system_normal_font): Declare.
3720
3721 * xfns.c (extern xlwmenu_default_font): Remove.
3722 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3723 to xlwmenu.c.
3724
3725 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3726 menu items in UTF-8.
3727
3728 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3729 (apply_systemfont_to_menu): New function.
3730 (set_frame_menubar, create_and_show_popup_menu): Call
3731 apply_systemfont_to_menu.
3732
7fc874c4
J
37332010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3734
3735 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3736 FRAME_LINE_TO_PIXEL_Y.
3737
3738 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3739 pixelwidth/height.
3740
863bf481
DN
37412010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3742
5e5a3b92
DN
3743 Simplify code for HP machines.
3744 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3745 for GNU_LINUX, not needed.
3746 (UNEXEC, NEED_BSDTTY): Move definitions...
3747 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3748
863bf481
DN
3749 * m/iris4d.h (UNEXEC): Move definition ...
3750 * s/irix6-5.h (UNEXEC): ... here.
3751
3e6bec3b
JD
37522010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3753
3754 * xfns.c (set_machine_and_pid_properties): New function.
3755 (Fx_create_frame): Call set_machine_and_pid_properties.
3756
2912322b
SM
37572010-04-03 Eli Zaretskii <eliz@gnu.org>
3758
1502b819
EZ
3759 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3760 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3761 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3762
2912322b
SM
3763 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3764 in this function. (Bug#5703)
3765
37662010-04-03 Chong Yidong <cyd@stupidchicken.com>
3767
3768 * nsterm.h: Fix last change.
3769
c435b432
DN
37702010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3771
a568f507
DN
3772 * m/intel386.h (NO_REMAP): Move definition ...
3773 * s/msdos.h (NO_REMAP): ... here.
3774
4cd9f6c2
DN
3775 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3776
c435b432
DN
3777 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3778 used on those platforms.
3779
42a2c622
DN
37802010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3781
3782 Remove extern errno declarations.
3783 * xterm.c:
3784 * xrdb.c:
3785 * w32term.c:
3786 * unexec.c:
3787 * unexaix.c:
3788 * sysdep.c:
3789 * process.c:
3790 * lread.c:
3791 * keyboard.c:
3792 * floatfns.c:
3793 * filelock.c:
3794 * fileio.c:
3795 * emacs.c (main):
3796 * ecrt0.c:
3797 * dispnew.c:
3798 * callproc.c:
3799 * buffer.c: Remove errno extern declarations.
3800 * s/netbsd.h (NEED_ERRNO): Remove.
3801
8224f93d
DN
38022010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3803
3804 Remove all uses of LIBX11_SYSTEM.
3805 * Makefile.in (LIBX11_SYSTEM): Remove.
3806 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3807 instead.
3808
814062c7
EZ
38092010-04-01 Eli Zaretskii <eliz@gnu.org>
3810
ed68db4d
EZ
3811 Remove support for DJGPP v1.x (bug#5813).
3812
3813 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3814 * s/msdos.h:
3815 * unexec.c (make_hdr, copy_text_and_data):
3816 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3817 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3818 (IT_set_terminal_modes, __write, _rename, gethostname)
3819 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3820 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3821 the value of __DJGPP__.
ed68db4d
EZ
3822 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3823 compatibility code.
8224f93d
DN
3824 * lread.c:
3825 * gmalloc.c (memalign):
3826 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3827 * emacs.c (main):
3828 * dosfns.c (init_dosfns):
ed68db4d
EZ
3829 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3830
52f4d8d5
EZ
38312010-04-01 Eli Zaretskii <eliz@gnu.org>
3832
814062c7
EZ
3833 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3834 string with `cursor' property comes from an `after-string'
3835 overlay. (Bug#5816)
3836
0dc2e11d
GM
38372010-04-01 Glenn Morris <rgm@gnu.org>
3838
3839 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3840 Define as Makefile variables.
3841 (LIBX): Use above variables rather than directly using autoconf.
3842
1d29df59
DN
38432010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3844
3845 Clean up BSD_SYSTEM use.
3846 * xterm.c:
3847 * process.c:
3848 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3849 for including <sys/ioctl.h>.
3850 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3851 code is only used for MSDOS.
3852
1546c559
JL
38532010-03-31 Juri Linkov <juri@jurta.org>
3854
3855 * image.c: Add `Qextension_data'.
3856 (syms_of_image): Initialize and staticpro `Qextension_data'.
3857 (Fimage_metadata): Rename from `Fimage_extension_data'.
3858 (gif_load): Put GIF extension data to the property
3859 `Qextension_data'.
3860
6521c534
CY
38612010-03-31 Chong Yidong <cyd@stupidchicken.com>
3862
3863 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3864 * nsterm.h: Fix prototype.
3865
52c30783
EZ
38662010-03-31 Eli Zaretskii <eliz@gnu.org>
3867
3868 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3869 trailing whitespace in right-to-left rows.
3870
855a0da7
SM
38712010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3872
3873 Get rid of the direct_output optimizations.
3874 * keyboard.c (nonundocount): Remove extern declaration.
3875 (command_loop_1): Remove brittle optimisation for cheap and
3876 common operations.
3877 * xdisp.c (redisplay_internal): Don't bother checking
3878 redisplay_performed_directly_p any more.
3879 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3880 any more.
3881 * dispnew.c (redisplay_performed_directly_p)
3882 (direct_output_for_insert, direct_output_forward_char):
3883 * dispextern.h (redisplay_performed_directly_p)
3884 (direct_output_for_insert, direct_output_forward_char): Remove.
3885 * cmds.c (nonundocount): Make it static.
3886
85738751 38872010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3888
3889 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3890
85738751 38912010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3892
3893 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3894 invisible (Bug#5766).
3895
85738751 38962010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3897
855a0da7
SM
3898 * xdisp.c (x_consider_frame_title, update_window_cursor):
3899 Remove HAVE_NS conditionals.
194d44e7 3900 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3901
3902 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3903 filename for the title.
3904 (ns_set_doc_edited): Do nothing if the selected window is a
3905 minibuffer window.
3906
3907 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3908 ns_set_doc_edited.
3909
3910 * nsterm.m: Remove unneeded prototype.
3911
85738751 39122010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3913
3914 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3915 in the DOC file. (Bug#5336)
3916
85738751 39172010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3918
3919 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3920
75d1428c
SM
39212010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3922
3923 * window.c (keys_of_window): Remove redundant/overridden bindings.
3924
82043cfb
EZ
39252010-03-30 Eli Zaretskii <eliz@gnu.org>
3926
3927 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3928 Restore original behavior when the iterator is not bidi_p.
3929
b5dd0ae7
DN
39302010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3931
3932 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3933
bd924a5d
EZ
39342010-03-30 Eli Zaretskii <eliz@gnu.org>
3935
3936 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3937 are outside the range of cached character positions.
3938
3580374b
JB
39392010-03-30 Juanma Barranquero <lekktu@gmail.com>
3940
3941 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3942
a7b02820
EZ
39432010-03-30 Eli Zaretskii <eliz@gnu.org>
3944
3945 Initial support for bidirectional editing.
3946
3947 * Makefile.in (obj): Include bidi.o.
3948 (bidi.o): New target.
3949
3950 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3951 ($(BLD)/bidi.$(O)): New target.
3952
3953 * bidi.c: New file.
3954
3955 * buffer.h (struct buffer): New members bidi_display_reordering
3956 and bidi_paragraph_direction.
3957
3958 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3959 and bidi_paragraph_direction.
3960 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3961 and bidi-paragraph-direction.
3962 (Fbuffer_swap_text): Swap the values of
3963 bidi_display_reordering and bidi_paragraph_direction.
3964
3965 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3966 (bidi_type_t, bidi_dir_t): New types.
3967 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3968 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3969 prev_stop, base_level_stop, and eol_pos.
3970 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3971 (IT_STACK_SIZE): Enlarge to 5.
3972 (struct glyph_row): New member reversed_p.
3973 <string_buffer_position>: Update prototype.
3974 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3975 glyph_row if bidi_it.paragraph_dir == R2L.
3976 (struct glyph): New members resolved_level and bidi_type.
3977
3978 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3979 processing or buffer's direction is right-to-left.
3980 (prepare_desired_row): Preserve the reversed_p flag.
3981 (row_equal_p): Compare the reversed_p attributes as well.
3982
3983 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3984 bidi_init_it and set it->paragraph_embedding from the current
3985 buffer's value of bidi_paragraph_direction.
3986 (reseat_1): Initialize bidi_it.first_elt.
3987 (set_iterator_to_next, next_element_from_buffer): Use the value of
3988 paragraph_embedding to determine the paragraph direction.
3989 (set_iterator_to_next): Under bidi reordering, call
3990 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3991 new_paragraph flag is set in the bidi iterator.
3992 (next_element_from_buffer): If bidi_it.first_elt is set,
3993 initialize paragraph direction and find the first character to
3994 display in the visual order. If reseated to a middle of a line,
3995 prime the bidi iterator starting at the line's beginning. Handle
3996 the situation where we overstepped stop_charpos due to
3997 non-linearity of the bidi iteration. Likewise for when we back up
3998 beyond the previous stop_charpos. When moving across stop_charpos,
3999 record it in prev_stop.
4000 (display_line): Set row->end and it->start for the next row to the
4001 next character in logical order. Always extend reversed_p rows to
4002 the end of line, even if they end at ZV. Copy the reversed_p flag
4003 to the next glyph row. Keep calling set_cursor_from_row for
4004 bidi-reordered rows even if we already have a possible candidate
4005 for cursor position. Set row_end after all the row's glyphs have
4006 been produced, by looping over the glyphs. Record the position
4007 after EOL in it->eol_pos, and use it to set end_pos of the last
4008 row produced for a continued line.
4009 <Qright_to_left, Qleft_to_right>: New variables.
4010 (syms_of_xdisp): Initialize and staticpro them.
4011 (string_buffer_position_lim): New function.
4012 (string_buffer_position): Most of code moved to
4013 string_buffer_position_lim. Last argument and return value are
4014 now EMACS_INT; all callers changed.
4015 (set_cursor_from_row): Rewritten to support bidirectional text and
4016 reversed glyph rows.
4017 (text_outside_line_unchanged_p, try_window_id): Disable
4018 optimizations if we are reordering bidirectional text and the
4019 paragraph direction can be affected by the change.
4020 (append_glyph, append_composite_glyph)
4021 (produce_image_glyph, append_stretch_glyph): Set the
4022 resolved_level and bidi_type members of each glyph.
4023 (append_glyph): If the glyph row is reversed, prepend the glyph
4024 rather than appending it.
4025 (handle_stop_backwards): New function.
4026 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
4027 (reseat): call handle_stop_backwards to recompute prev_stop and
4028 base_level_stop for the new position.
4029 (handle_invisible_prop): Under bidi iteration, skip invisible text
4030 using bidi_get_next_char_visually. If we are `reseat'ed, init the
4031 paragraph direction. Update IT->prev_stop after skipping
4032 invisible text.
4033 (move_it_in_display_line_to): New variables prev_method
4034 and prev_pos. Compare for strict equality in
4035 BUFFER_POS_REACHED_P.
4036 (try_cursor_movement): Examine all the candidate rows that occlude
4037 point, to return the best match. If rows are bidi-reordered
4038 and point moved backwards, back up to the row that is not a
4039 continuation line, and start looking for a suitable row from
4040 there.
4041
4042 * term.c (append_glyph): Reverse glyphs by pre-pending them,
4043 rather than appending, if the glyph_row's reversed_p flag is set.
4044 Set the resolved_level and bidi_type members of each glyph.
4045
4046 * .gdbinit (pbiditype): New command.
4047 (pgx): Use it to display bidi level and type of the glyph.
4048 (pitx): Display some bidi information about the iterator.
4049 (prowlims, pmtxrows): New commands.
4050
32a8894e
DN
40512010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
4052
4053 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
4054 * s/usg5-4.h (LIBS_DEBUG):
4055 * s/irix6-5.h (C_DEBUG_SWITCH):
4056 * s/gnu-linux.h (LIBS_DEBUG):
4057 * s/darwin.h (LIBS_DEBUG):
4058 * s/bsd-common.h (LIBS_DEBUG):
4059 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
4060 * m/iris4d.h (LIBS_DEBUG):
4061 * m/hp800.h (LIBS_DEBUG): Remove definitions.
4062
4063 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
4064 (LIBS_DEBUG): Remove definition.
4065
649dbf36
CY
40662010-03-27 Chong Yidong <cyd@stupidchicken.com>
4067
4068 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
4069 Windows.
4070
cad4261f
YM
40712010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4072
4073 * process.c (Fmake_network_process): Don't call turn_on_atimers around
4074 `connect' (Bug#5723).
4075
cd591dbc
HE
40762010-03-25 Helmut Eller <eller.helmut@gmail.com>
4077
4078 * process.c (Fmake_network_process): Call `select' for interrupted
4079 `connect' rather than creating new socket (Bug#5173).
4080
e867cb5d 40812010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
4082
4083 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
4084
4085 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
4086
4087 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
4088
e867cb5d 40892010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
4090
4091 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
4092 XLoadQueryFont.
4093
e867cb5d 40942010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
4095
4096 * coding.c (decode_coding_ccl): Fix previous change for the
4097 multibyte case.
fb608df3
KH
4098 (encode_coding_ccl): Don't setup ccl program here. Fix for the
4099 case that the output buffer is fullfilled.
4100 (encode_coding): Setup ccl program here.
fbdc1721 4101
5845f0ed
DN
41022010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
4103
814fb708
DN
4104 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
4105
5845f0ed
DN
4106 Simplify LIBS_MACHINE definitions.
4107 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
4108 * m/iris4d.h (LIBS_MACHINE): Likewise.
4109 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
4110 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 4111 * s/netbsd.h: Remove commented out code.
5845f0ed 4112
b7064064
DN
41132010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
4114
df7734b2
DN
4115 Remove dead code dealing with POSIX_SIGNALS.
4116 * atimer.c (set_alarm): Remove dead code, all USG systems define
4117 POSIX_SIGNALS.
4118 * data.c (arith_error): Likewise.
4119 * keyboard.c (input_available_signal, handle_user_signal)
4120 (interrupt_signal): Likewise.
4121 * process.c (sigchld_handler): Likewise.
4122 (create_process): Remove if 0 code. Remove HPUX conditional when
4123 !defined (POSIX_SIGNALS), it cannot be true.
4124 * syssignal.h: Remove USG5_4 and USG conditionals when
4125 !POSIX_SIGNALS, they cannot be true.
4126
b7064064
DN
4127 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
4128 NO_SOCK_SIGIO, not used anymore.
4129
55da5ee3
DN
41302010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
4131
0be96e3a
DN
4132 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
4133 support vax on BSDs.
4134
55da5ee3
DN
4135 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
4136 * s/aix4-2.h (ORDINARY_LINK): ... here.
4137
c0282183
AS
41382010-03-21 Andreas Schwab <schwab@linux-m68k.org>
4139
82c3d67a
AS
4140 * Makefile.in (abs_builddir): Define.
4141 (bootstrap_exe): Use it.
4142 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 4143
3613edce
SM
41442010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4145
4146 * Makefile.in (bootstrap_exe): Use an absolute name.
4147
7f110ddc
DN
41482010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4149
22e87574
DN
4150 Remove support for old GNU/Linux using libc version 5.
4151 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4152 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4153
05a670e6
DN
4154 Consolidate redundant definitions in s/bsd-common.h.
4155 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4156 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4157 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4158 doing it in all files that include this one.
4159 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4160 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4161 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4162 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4163 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4164 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4165 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4166 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4167 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4168
2968f561
DN
4169 Consolidate redundant definitions.
4170 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4171 it's undefined in all files that include this one.
4172 (POSIX_SIGNALS): Define here instead of doing it in all files that
4173 include this one.
4174 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4175 (POSIX_SIGNALS): Do not define.
4176 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4177 (POSIX_SIGNALS): Do not define.
4178 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4179 (POSIX_SIGNALS): Do not define.
4180
15d25dc0
DN
4181 Remove support for old UNIX System V systems.
4182 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4183 * s/usg-5-4-2.h: Remove.
4184
07e339e4
DN
4185 Remove support for Solaris on PPC and for old versions.
4186 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4187 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4188 that cancel each other.
4189 * s/sol2-3.h:
4190 * s/sol2-4.h:
4191 * s/sol2-5.h: Remove.
4192 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4193 (NO_REMAP): Remove, unused.
4194 (UNEXEC): Move definition ...
4195 * s/aix4-2.h (UNEXEC): ... here.
4196
7f110ddc
DN
4197 * s/openbsd.h: Remove support for non-ELF and for systems that do
4198 not support shared libraries.
4199 * s/netbsd.h:
4200 * s/freebsd.h: Likewise.
4201
605f35cd
DN
42022010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4203
4204 Remove non-working support for lynxos 3.0.
4205 * s/lynxos.h: Remove file.
4206
4207 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4208 COFF_BSD_SYMBOLS, nothing defines it anymore.
4209
aed71cf4
DN
42102010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4211
4212 Remove obsolete uses of HAVE_SHM.
4213 * emacs.c (standard_args):
4214 (Fdump_emacs):
4215 (syms_of_emacs): Remove code depending on HAVE_SHM.
4216
4217 * alloc.c: Remove HAVE_SHM dependent definition.
4218
4219 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4220
aded53ff
GM
42212010-03-18 Glenn Morris <rgm@gnu.org>
4222
17284745
GM
4223 * emacs.c (USAGE4): Hard-code bug address.
4224 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4225 (bug_reporting_address): Remove.
4226 (main): Don't call bug_reporting_address.
4227
aded53ff
GM
4228 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4229 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4230
303500aa
CY
42312010-03-15 Chong Yidong <cyd@stupidchicken.com>
4232
4233 * xfns.c (Fx_create_frame):
4234 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4235 on left.
4236
cef3058f
CY
42372010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4238
4239 * editfns.c (Fformat): Account for string precision when computing
4240 field width (Bug#5710).
4241
a647d59d
CY
42422010-03-12 Chong Yidong <cyd@stupidchicken.com>
4243
4fa42018
CY
4244 * xfns.c (Fx_create_frame): Set default to Qright.
4245
a647d59d
CY
4246 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4247 all window systems.
4248
6da23aaa
EZ
42492010-03-12 Eli Zaretskii <eliz@gnu.org>
4250
a96f6398 4251 These changes remove termcap.c from the build on Posix platforms.
83d02def 4252 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4253 (MSDOS_OBJ): ...to here.
4254 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4255 now identical to when LIBS_TERMCAP is defined.
4256
4257 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4258
4259 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4260
a96f6398 4261 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4262
288f9fc0
CY
42632010-03-10 Chong Yidong <cyd@stupidchicken.com>
4264
4265 * Branch for 23.2.
4266
d48cd3f4
SM
42672010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4268
4269 Cleanup setup of gl_state in various parts of the code.
4270 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4271 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4272 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4273 (skip_chars):
4274 * regex.c (regex_compile): Use it.
4275 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4276 it's now set in regex_compile when/if we need it.
4277
618db430
SM
42782010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4279
c0335e02
SM
4280 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4281 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4282 (QUIT): Use it to consolidate code and remove redundancy.
4283 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4284
254c06a8
SM
4285 * regex.c (regex_compile): Setup gl_state as well.
4286
618db430
SM
4287 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4288 (in_classes): Use CONSP before XCAR/XCDR.
4289
233f0c9f
CY
42902010-03-03 Chong Yidong <cyd@stupidchicken.com>
4291
4292 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4293 definitions, so that keyboard macros are correctly handled
4294 (Bug#5481).
4295
75f80e63
EZ
42962010-03-02 Eli Zaretskii <eliz@gnu.org>
4297
4298 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4299 text that could be relocated inside the call to emacs_mule_char.
4300 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4301 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4302
dcfb9bc4
KH
43032010-03-02 Kenichi Handa <handa@m17n.org>
4304
fc9a17bc
KH
4305 * character.c (parse_str_as_multibyte): Fix handling of the
4306 multibyte form of raw-bytes.
4307 (str_as_multibyte): Likewise.
4308
dcfb9bc4
KH
4309 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4310 form of raw-bytes.
4311
412c01b6
CY
43122010-02-28 Chong Yidong <cyd@stupidchicken.com>
4313
4314 * charset.c (load_charset_map_from_file)
4315 (load_charset_map_from_vector): Zero out allocated
4316 charset_map_entries before using them.
4317
df7e1ea0
AS
43182010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4319
4320 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4321
fe69a722
CY
43222010-02-27 Chong Yidong <cyd@stupidchicken.com>
4323
4ed28cf4
CY
4324 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4325 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4326
7379cfce
KH
43272010-02-26 Kenichi Handa <handa@m17n.org>
4328
f88cc4d6
KH
4329 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4330
7379cfce
KH
4331 * xdisp.c (reseat_to_string): Fix previous change.
4332
cf2fdcfb
CY
43332010-02-26 David Reitter <david.reitter@gmail.com>
4334
4335 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4336 Lisp_Object (Bug#4736).
4337
cc6c7c75
KH
43382010-02-25 Kenichi Handa <handa@m17n.org>
4339
4340 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4341
32e737d7
JD
43422010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4343
4344 * xterm.c (XTflash): Move declarations before statements.
4345
4346 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4347 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4348 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4349 (xg_create_tool_bar): Remove unused variables.
4350 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4351 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4352
676cae9f
CY
43532010-02-21 Chong Yidong <cyd@stupidchicken.com>
4354
4355 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4356
886cc2b8
SM
43572010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4358
4359 * term.c (fatal): Add a final \n if needed (bug#5596).
4360
ddb2d8e2
CY
43612010-02-18 Chong Yidong <cyd@stupidchicken.com>
4362
4363 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4364
2a4f8d3d
GM
43652010-02-18 Glenn Morris <rgm@gnu.org>
4366
4367 * callint.c (Finteractive): Doc fix.
4368
ebaf11b6
KH
43692010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4370
886cc2b8
SM
4371 * coding.c (record_conversion_result):
4372 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4373 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4374 memory allocation error.
4375
d0396581
KH
43762010-02-17 Kenichi Handa <handa@m17n.org>
4377
886cc2b8
SM
4378 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4379 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4380 (decode_coding): Setup ccl program here. Keep looping when the
4381 decoder stopped because the output buffer is
4382 fullfilled (bug#5534).
4383
4384 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4385
98599f74
JD
43862010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4387
471e4f04 4388 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4389 bug #5571.
886cc2b8 4390 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4391 overdrawn.
98599f74 4392
182659ae
JD
43932010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4394
4395 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4396 doing_interact here.
4397 (ice_connection_closed): New function.
4398 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4399 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4400 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4401 returns I/O error.
4402 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4403 bug #5512.
4404
9be32c4e 44052010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4406
4407 * nsfont.m (nsfont_open): The system's value for the font descent
4408 is negative, so round it down to avoid clipping.
4409
a2f3eb19
CY
44102010-02-06 Chong Yidong <cyd@stupidchicken.com>
4411
4412 * charset.c (load_charset_map_from_file)
4413 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4414 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4415
3088147c
CY
44162010-02-05 Chong Yidong <cyd@stupidchicken.com>
4417
4418 * charset.c (load_charset_map_from_file): Allocate large
4419 charset_map_entries structure on the heap rather than the stack.
4420 (Bug#5526).
4421
b57d9029
KH
44222010-01-31 Kenichi Handa <handa@m17n.org>
4423
4424 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4425 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4426
c67d885b
CY
44272010-01-31 Chong Yidong <cyd@stupidchicken.com>
4428
4429 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4430 <deactivated@gmail.com> (Bug#3605).
4431
8fab2362
CY
44322010-01-31 David De La Harpe Golden <david@harpegolden.net>
4433
4434 * fileio.c (Frename_file): Correctly rename symlinks to
4435 directories (Bug#5496).
4436
cb2a62f2
CY
44372010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4438
4439 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4440
944c7a26
AS
44412010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4442
4443 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4444
c024ac08
CY
44452010-01-29 Chong Yidong <cyd@stupidchicken.com>
4446
4447 * frame.c (DEFAULT_ROWS): Change default to 35.
4448
4449 * xfns.c (x_default_font_parameter): Change default XFT font to
4450 monospace-10 (Bug#3643).
4451
af93af83
EZ
44522010-01-29 Eli Zaretskii <eliz@gnu.org>
4453
4454 * w32inevt.c (key_event): Remove unnecessary comparison of
4455 event->uChar.AsciiChar with 128.
4456
ca0eb708
CY
44572010-01-28 Chong Yidong <cyd@stupidchicken.com>
4458
b242dbfc
CY
4459 * fileio.c (Frename_file): Fix last change (Bug#5487).
4460
ca0eb708
CY
4461 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4462
4463 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4464
45d45af5
JD
44652010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4466
4467 * xfns.c (Fx_create_frame): Remove window size matching code from
4468 2010-01-15.
a73f9c9d 4469 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4470
7e233730
JR
44712010-01-27 Jason Rumney <jasonr@gnu.org>
4472
4473 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4474 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4475
86e893e3
KH
44762010-01-27 Kenichi Handa <handa@m17n.org>
4477
4478 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4479 pattern string (Bug#4209).
86e893e3 4480
8719abec
CY
44812010-01-27 David De La Harpe Golden <david@harpegolden.net>
4482
4483 * fileio.c (Frename_file): Call copy-directory and
4484 delete-directory for directories, in order to handle cross-device
4485 renaming (Bug#3353).
4486
844794c8
JD
44872010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4488
aa3e13b5 4489 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4490 sizes 24 and 10. Bug #3643.
844794c8 4491
bd4b5750
SM
44922010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4493
8dc1adf6 4494 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4495 * keymap.c (shadow_lookup): Add `remap' arg.
4496 (describe_map, describe_vector): Update calls to shadow_lookup.
4497 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4498 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4499 perform remapping during shadow_lookup check of remapped_sequences.
4500
285d07e2
CY
45012010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4502
4503 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4504 png_check_sig, which has been removed in libpng 1.4.
4505
c6d09b8d
CY
45062010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4507
4508 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4509 lacks this header file).
4510
3d782998
YM
45112010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4512
4513 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4514 as in Emacs 22.
4515
2aff7c53
YM
45162010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4517
4518 * lisp.h (make_pure_string): String pointer arg now points to const.
4519
4520 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4521 args now point to const.
4522
74327f7a
EZ
45232010-01-22 Eli Zaretskii <eliz@gnu.org>
4524
4525 * lread.c (Fload): Don't treat files without .elc extension as
4526 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4527 them. (bug#5303)
4528
4d1e6632
KH
45292010-01-20 Kenichi Handa <handa@m17n.org>
4530
4531 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4532 treat the source as actual byte sequence.
4533
1fdede8f
AM
45342010-01-19 Alan Mackenzie <acm@muc.de>
4535
4536 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4537 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4538 `signal_after_change_p' to `coherent_change_p', and make the
4539 invocation of `modify_region' conditional on it.
4540
67477f30
JD
45412010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4542
4543 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4544 for debug purpose.
4545 (syms_of_xsettings): Declare xft-settings.
4546
244b023e
CY
45472010-01-18 Chong Yidong <cyd@stupidchicken.com>
4548
4549 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4550
617364fe
CY
45512010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4552
4553 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4554
4fe22cdf
CY
45552010-01-16 Chong Yidong <cyd@stupidchicken.com>
4556
4557 * emacs.c (standard_args): Adjust arg priorities to reflect how
4558 they are processed in startup.el.
4559
e118d2be
AS
45602010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4561
4562 * Makefile.in (lisp, shortlisp): Update.
4563
523ae620
SM
45642010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4565
4566 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4567 code, link the new kboard into all_kboard before running Lisp code,
4568 and protect the new terminal with GCPRO (Bug#5365).
4569 (x_term_init): Remove unused var `atom'.
4570 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4571
f0d13888
JD
45722010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4573
4574 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4575 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4576 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4577 this. Bug #3643.
f0d13888 4578
cc320f07
KH
45792010-01-15 Kenichi Handa <handa@m17n.org>
4580
4581 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4582
7ffdf101
CY
45832010-01-15 Chong Yidong <cyd@stupidchicken.com>
4584
4585 * nsterm.m (Qnone): Define.
4586
4587 * nsfns.m (Qnone): Move definition to nsterm.m.
4588
d12bd917
KH
45892010-01-14 Kenichi Handa <handa@m17n.org>
4590
4591 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4592 systems.
4593
d9a7c140
KH
45942010-01-14 Kenichi Handa <handa@m17n.org>
4595
4596 Make auto-composition work on all buffers even if they are
4597 fundamental mode.
4598
4599 * composite.c (Vauto_composition_mode): New variable.
4600 (composition_compute_stop_pos): Check Vauto_composition_mode
4601 instead of Vauto_composition_function.
4602 (composition_adjust_point, Ffind_composition_internal): Likewise.
4603 (syms_of_composite): Declare Lisp variable
4604 "auto-composition-mode" here.
4605
63286bb2
CY
46062010-01-13 Chong Yidong <cyd@stupidchicken.com>
4607
4608 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4609 during call to vendor-specific-keysyms (Bug#5365).
4610
c2623ee7
YM
46112010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4612
4613 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4614 Call SIGNAL_THREAD_CHECK (Bug#5333).
4615
4616 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4617 Call SIGNAL_THREAD_CHECK.
4618
0b5397c2
SM
46192010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4620
4621 Try to fix bug#5314. This is probably not the final word, tho.
4622 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4623 recent-auto-save-p as a side-effect.
4624 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4625 * buffer.c (Fkill_buffer, reset_buffer):
4626 * editfns.c (Fsubst_char_in_region):
4627 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4628 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4629
dc954cb2
KH
46302010-01-13 Kenichi Handa <handa@m17n.org>
4631
4632 Display buffer name, etc. in mode line by composing correctly.
4633
4634 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4635 STRING is not nil.
0b5397c2 4636 (display_mode_element): Adjust for the change of
dc954cb2
KH
4637 decode_mode_spec and display_line.
4638 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4639 (display_string): Handle the case that STRING is non-null and
4640 LISP_STRING is not nil.
4641
0b5397c2
SM
4642 * xterm.c (x_draw_composite_glyph_string_foreground):
4643 Pay attention to s->face->overstrike.
dc954cb2
KH
4644
4645 * composite.c (composition_reseat_it): Don't check PT if STRING is
4646 non nil.
4647
4a00eaca
YM
46482010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4649
4650 * keyboard.c (read_char): Don't apply previous change when current
4651 buffer is unchanged by command execution.
4652
60abb287
JD
46532010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4654
4655 * keyboard.c (read_char): Return after executing from special map.
4656
893db5bc
GM
46572010-01-12 Glenn Morris <rgm@gnu.org>
4658
4659 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4660 bug-gnu-emacs rather than emacs-pretest-bug.
4661
4d03ece0
CY
46622010-01-11 Chong Yidong <cyd@stupidchicken.com>
4663
4664 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4665 initializing the Lisp variables that depend on them.
4666
1df47e38
YM
46672010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4668
4669 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4670 Clear areas that will not be updated after change of menu bar lines.
4671 Clear the menu bar window's current matrix when the window gets empty.
4672
2f1c6384
CY
46732010-01-09 Chong Yidong <cyd@stupidchicken.com>
4674
e398c61c
CY
4675 * intervals.h, textprop.c (extend_property_ranges): Return value
4676 and args changed. Discard properties that begin at or after the
4677 new end (Bug#5306).
4678
4679 * editfns.c (Fformat): Caller changed.
4680
e5a29a10
CY
4681 * nsterm.m (ns_set_default_prefs): Delete function.
4682 (syms_of_nsterm): Initialize ns_command_modifier,
4683 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4684 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4685
2f1c6384
CY
4686 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4687 position (Bug#4040).
4688
d427a9fa
EZ
46892010-01-09 Eli Zaretskii <eliz@gnu.org>
4690
4691 * editfns.c (Ffloat_time): Doc fix.
4692
21b9df2f
JD
46932010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4694
4695 * xfns.c (Fx_create_frame): Don't create frame larger than display
4696 by default bug#3643.
4697
4b00d3b1
YM
46982010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4699
4700 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4701 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4702 windows above internal border.
4703
4704 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4705 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4706 windows above internal border.
4707
4708 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4709 tool bar windows specially.
4710
4711 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4712
4713 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4714 specially.
4715 (XTflash): Take account of menu bar height.
4716
4717 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4718 specially.
4719
5075d853
JD
47202010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4721
ac146f82 4722 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4723 also be true before we can return early (bug #5339).
4724
474217c8
CY
47252010-01-06 David Reitter <david.reitter@gmail.com>
4726
4727 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4728 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4729 (Bug#3233).
4730
c0e6d47d
JD
47312010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4732
d0cf45b7
JD
4733 * font.c (font_open_entity): Enable chache and call cached_font_ok
4734 for the driver if defined.
4735 (QCuser_spec): New symbol.
4736 (font_spec_from_name): Save name as user-spec.
4737 (font_load_for_lface): Keep user-spec instead of name.
4738 (font_open_by_name): Save name as user-spec.
4739 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4740 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4741
4742 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4743 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4744 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4745
4746 * font.h (struct font_driver): Add cached_font_ok.
4747
c0e6d47d
JD
4748 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4749
7c583cd8
JD
47502010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4751
4752 * xterm.c (x_new_font): Move code for setting rows/cols before
4753 resizing ...
ac146f82 4754 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4755
4756 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4757 (xg_frame_resized, xg_frame_set_char_size):
4758 Call xg_clear_under_internal_border.
7c583cd8 4759 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4760
03f77f0a
CY
47612010-01-05 Chong Yidong <cyd@stupidchicken.com>
4762
4763 * keyboard.c (read_key_sequence): Catch keyboard switch after
4764 making a new tty frame (Bug#5095).
4765
2a1ef5be
KH
47662010-01-05 Kenichi Handa <handa@m17n.org>
4767
4768 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4769
e3eb1dae
SM
47702010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4771
4772 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4773 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4774 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4775
777013f2
MA
47762010-01-03 Michael Albinus <michael.albinus@gmx.de>
4777
4778 * dbusbind.c (xd_add_watch): Improve debug message.
4779 (xd_remove_watch): Improve debug message. If DATA is the session
4780 bus, unset D-Bus session environment.
4781 (Fdbus_init_bus): Pass the bus as argument to
4782 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4783
8932b1c2
CY
47842010-01-01 Chong Yidong <cyd@stupidchicken.com>
4785
87231e2c
CY
4786 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4787
4801c5fa
CY
4788 * lread.c (syms_of_lread): Make it clearer that these are the
4789 names of loaded files (Bug#5068).
4790
8932b1c2
CY
4791 * eval.c (run_hook_with_args): Handle the case where the global
4792 value has the obsolete single-function form (Bug#5026).
4793
11e3c684
CY
47942009-12-27 Chong Yidong <cyd@stupidchicken.com>
4795
4796 * minibuf.c (Fall_completions): Minor optimization.
4797
5b28ce35
EZ
47982009-12-26 Eli Zaretskii <eliz@gnu.org>
4799
5ce6e4f4
JB
4800 * .gdbinit (pgx): Fix display of composite glyphs.
4801 Display cmp.from and cmp.to as well.
4802 (pitx): Fix last change.
5b28ce35 4803
bcffff46
KH
48042009-12-25 Kenichi Handa <handa@m17n.org>
4805
4806 * composite.h (composition_adjust_point): Update prototype.
4807
4808 * composite.c (composition_reseat_it): Don't make a composition
4809 spanning over point.
4810 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4811 composable characters.
4812 (composition_adjust_point): New arg NEW_PT. Callers changed.
4813
4814 * keyboard.c (command_loop_1): Force redisplay if the last point
4815 was within a composition.
4816 (adjust_point_for_property): Don't adjust point for automatic
4817 composition when called after buffer modification.
4818
3f670e9a
EZ
48192009-12-19 Eli Zaretskii <eliz@gnu.org>
4820
5ce6e4f4
JB
4821 * .gdbinit (pitx): Don't use enum names, use their values.
4822 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4823 (pgx): Don't use enum names, use their values.
4824 (pitmethod): New helper command.
4825 (pitx): Use it to display iteration method.
4826 (pgrowit): New command.
4827
ad903955
EZ
4828 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4829
3f670e9a
EZ
4830 Update dependencies in Makefile.in.
4831
4832 * Makefile.in (alloc.o): Depend on termhooks.h.
4833 (atimer.o): Depend on blockinput.h.
4834 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4835 and frame.h.
4836 (callint.o): Depend on systime.h, coding.h, and composite.h.
4837 (callproc.o): Depend on buffer.h.
4838 (casefiddle.o): Don't depend on charset.h.
4839 (casetab.o): Depend on character.h.
4840 (ccl.o): Depend on composite.h.
4841 (chartab.o): Depend on ccl.h.
4842 (cm.o): Depend on dispextern.h.
4843 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4844 (coding.o): Don't depend on $(INTERVALS_H).
4845 (composite.o): Don't depend on dispextern.h explicitly (it's in
4846 $(INTERVALS_H)). Depend on ccl.h.
4847 (data.o): Depend on systime.h, coding.h, composite.h,
4848 dispextern.h, font.h, and ccl.h.
4849 (dired.o): Depend on composite.h.
4850 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4851 composite.h (it's in $(INTERVALS_H)).
4852 (doc.o): Depend on systime.h, coding.h, and composite.h.
4853 (editfns.o): Don't depend explicitly on dispextern.h.
4854 (emacs.o): Depend on frame.h and coding.h.
4855 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4856 (fileio.o): Depend on frame.h and commands.h. Don't depend
4857 explicitly on dispextern.h.
4858 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4859 composite.h.
4860 (fns.o): Don't depend on termhooks.h.
4861 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4862 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4863 coding.h, $(INTERVALS_H), window.h, xterm.h.
4864 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4865 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4866 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4867 fontset.h, ccl.h, and ftfont.h.
4868 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4869 (gtkutil.o): Depend on dispextern.h and composite.h.
4870 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4871 termhooks.h, and ccl.h.
4872 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4873 (intervals.o): Depend on systime.h and coding.h.
4874 (keyboard.o): Depend on composite.h and coding.h.
4875 (keymap.o): Depend on coding.h and frame.h.
4876 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4877 (macros.o): Depend on systime.h, coding.h, and composite.h.
4878 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4879 and atimer.h.
4880 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4881 dispextern.h explicitly.
0b5397c2
SM
4882 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4883 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4884 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4885 (regex.o): Don't depend on charset.h.
4886 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4887 (search.o): Don't depend explicitly on composite.h.
4888 (sound.o): Depend on atimer.h and systime.h.
4889 (syntax.o): Don't depend explicitly on composite.h.
4890 (sysdep.o): Depend on coding.h and composite.h.
4891 (term.o): Depend on xterm.h and buffer.h.
4892 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4893 (textprop.o): Don't depend on dispextern.h explicitly.
4894 (undo.o): Depend on dispextern.h.
4895 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4896 dispextern.h and composite.h explicitly.
4897 (xdisp.o): Depend on ccl.h.
4898 (xfaces.o): Depend on coding.h and ccl.h.
4899 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4900 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4901 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4902 ftfont.h.
4903 (xgselect.o): New dependency.
4904 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4905 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4906 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4907 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4908 (xsmfns.o): Depend on frame.h and dispextern.h.
4909 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4910 sysselect.h.
4911
7a6f7fea
AS
49122009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4913
4914 * font.c (Fclear_font_cache): Pass correct cache argument to
4915 font_clear_cache.
4916
f4c21026
AS
49172009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4918
4919 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4920 twice.
4921
f7ab0997
CY
49222009-12-15 Chong Yidong <cyd@stupidchicken.com>
4923
4924 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4925 calling file-remote-p. Reported by Jim Meyering.
4926
fa8e045a
MA
49272009-12-15 Michael Albinus <michael.albinus@gmx.de>
4928
4929 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4930 avoid compiler warnings. (Bug #5217)
fa8e045a 4931
a63dba42
KH
49322009-12-14 Kenichi Handa <handa@m17n.org>
4933
4934 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4935 in 8-bit encoding.
4936
5ce6e4f4 49372009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4938
4939 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4940 tooltip windows.
4941
223e5fc6
JD
49422009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4943
36acb2a7
JD
4944 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4945 Xatom_net_window_type.
4946
4947 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4948 Xatom_net_window_type.
4949
b8f00677
JD
4950 * xterm.c (my_log_handler): New function.
4951 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4952 so we can filter out buggy messages. (Bug #5120).
b8f00677 4953
e5f0bc9a
JD
4954 * xterm.c (xg_scroll_callback): Parameter list changed,
4955 use parameter GtkScrollType to determine scroll/line/page.
4956 Only allow dragging if a button < 4 is grabbed (bug #5177).
4957 (xg_end_scroll_callback): New function.
4958 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4959 xg_create_scroll_bar.
4960
4961 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4962 (scroll_end_callback): Remove.
4963 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4964 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4965 bug #5177.
e5f0bc9a
JD
4966 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4967 bug #5177.
4968
4969 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4970 (xg_create_scroll_bar): Add GCallback end_callback.
4971
223e5fc6
JD
4972 * xftfont.c (QClcdfilter): New variable.
4973 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4974 (syms_of_xftfont): Initialize QClcdfilter.
4975
3c055b77
JD
49762009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4977
4978 * xsettings.c (struct xsettings): Add member seen.
4979 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4980 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4981 (apply_xft_settings): Only update Xft settings with what member seen
4982 indicates as new.
4983
05fe33ff
EZ
49842009-12-12 Eli Zaretskii <eliz@gnu.org>
4985
c4cc8b9a 4986 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4987 (struct glyph): Use EMACS_INT for charpos.
4988 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4989 region_beg_charpos, region_end_charpos,
4990 redisplay_end_trigger_charpos, and also for
4991 iterator_stack_entry.end_charpos and
4992 iterator_stack_entry.stop_charpos.
4993
e8d7886a
JD
49942009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4995
5ce6e4f4 4996 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4997 (xg_create_scroll_bar): Call scroll_end_callback on button release
4998 event (bug #5177).
4999 (xg_event_is_for_scrollbar): != replaced with ==.
5000
d0db2ec8
KH
50012009-12-12 Kenichi Handa <handa@m17n.org>
5002
5003 * ftfont.c (struct ftfont_info): New member matrix.
5004 (ftfont_open): Setup xftfont_info->matrix.
5005 (MFLTFontFT): New member matrix.
5006 (FLOOR, CEIL, ROUND): New macros.
5007 (ftfont_get_metrics): Handle matrix transformation.
5008 (ftfont_shape_by_flt): New arg matrix. Callers changed.
5009
5010 * xftfont.c (struct xftfont_info): New member matrix.
5011 (xftfont_open): Setup xftfont_info->matrix.
5012
50132009-12-10 Kenichi Handa <handa@m17n.org>
5014
5015 * xdisp.c (append_space_for_newline): Consider face-remapping.
5016
2cc7b62f
AS
50172009-12-09 Andreas Schwab <schwab@linux-m68k.org>
5018
b87dd913
AS
5019 * xsettings.c: Include "keyboard.h".
5020
eba5eb94
AS
5021 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
5022
2cc7b62f
AS
5023 Fix implicit function declarations.
5024 * cmds.c: Include "frame.h".
5025 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
5026 * frame.h: Move declaration of delete_frame outside of
5027 HAVE_WINDOW_SYSTEM.
5028
a4ef73c8
CY
50292009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
5030
5031 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
5032
5033 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
5034 GTK builds.
5035
944a300c
AS
50362009-12-07 Andreas Schwab <schwab@linux-m68k.org>
5037
5038 * unexelf.c (unexec): Don't search for .data twice.
5039
022eef62
CY
50402009-12-05 Chong Yidong <cyd@stupidchicken.com>
5041
426ac949
CY
5042 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
5043 if push failed.
5044 (handle_line_prefix): Set avoid_cursor_p here. Check return value
5045 of push_display_prop (Bug#5000).
5046
022eef62
CY
5047 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
5048 value of font_list_entities (Bug#5085).
5049
be95bee9
JB
50502009-12-04 Juanma Barranquero <lekktu@gmail.com>
5051
5052 Fix `string-to-number' to deal consistently with integers and floats.
5053 * lread.c (isfloat_string): New argument ignore_trailing to accept all
5054 trailing characters, not just whitespace.
5055 (read1): Pass new arg 0 to keep old behavior.
5056 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
5057 trailing chars, as it is already done for integers. Doc fixes.
5058 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
5059
24c2d7ce
EZ
50602009-12-04 Eli Zaretskii <eliz@gnu.org>
5061
0b5397c2
SM
5062 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
5063 Delete unused enumeration value.
24c2d7ce 5064
7e694795
EZ
50652009-12-03 Eli Zaretskii <eliz@gnu.org>
5066
5067 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
5068
84b31826
SM
50692009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
5070
5071 * process.c (Fmake_network_process): Fix up the tests for
5072 "connectionless socket", so they DTRT for seqpacket sockets as well.
5073
f00c449b
SM
50742009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
5075
5076 * process.c (Qseqpacket): New symbol.
5077 (HAVE_SEQPACKET): New macro.
5078 (Fmake_network_process): Accept new :type `seqpacket'.
5079 (init_process): Add `seqpacket' feature when applicable.
5080 (syms_of_process): Initialize Qseqpacket.
5081
8096a0ff
YM
50822009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5083
5084 * font.c (font_load_for_lface, font_open_by_name): Don't store name
5085 if entity is Qnil.
5086
3e0de07f
SM
50872009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
5088
5089 * print.c (print_preprocess): Preprocess the key_and_value table of
5090 hashtables, even tho they're "hidden" (bug#5082).
5091
abeafb2a
JD
50922009-11-29 Jan Djärv <jan.h.d@swipnet.se>
5093
5094 * frame.c (frame_make_pointer_invisible)
5095 (frame_make_pointer_visible): Declare f before statements.
5096
4bf47195
EZ
50972009-11-28 Eli Zaretskii <eliz@gnu.org>
5098
5099 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
5100 omitted dependencies on lisp.h.
5101
c525b3f2
JD
51022009-11-27 Jan Djärv <jan.h.d@swipnet.se>
5103
ece2d4ed
JD
5104 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
5105 is NULL.
5106
5107 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
5108
5109 * frame.c (frame_make_pointer_invisible)
3e0de07f 5110 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
5111 frame.
5112
c525b3f2
JD
5113 * search.c (simple_search): Remove warning by making *p const.
5114
2f00e299
DN
51152009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
5116
5117 * xdisp.c (power_letter): Remove duplicate const.
5118
084b049b
JD
51192009-11-25 Jan Djärv <jan.h.d@swipnet.se>
5120
a1fadc6f
JD
5121 * term.c (delete_tty): Remove check for last terminal (bug#4970).
5122
5ce6e4f4 5123 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
5124 defaults (bug #5025).
5125
28259cac
SM
51262009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
5127
5128 * insdel.c (adjust_markers_for_delete): Move it in the
5129 right direction! (bug#4803)
5130
e8e14166
YM
51312009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5132
5133 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
5134
5135 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
5136
86677b58
GM
51372009-11-24 Glenn Morris <rgm@gnu.org>
5138
5139 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
5140
581e51e8
JD
51412009-11-23 Jan Djärv <jan.h.d@swipnet.se>
5142
cfc86c7a
JD
5143 * Makefile.in: Must create deps for ecrt0.o in its rule.
5144
581e51e8
JD
5145 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
5146 because that is what Gtk+ font dialog understands.
5147
5148 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
5149 of Fcopy_sequence.
5150 (font_open_by_name): Put name given into QCname for font-object returned.
5151
5152 * frame.c (x_set_font): Save original font name as frame parameter
5153 font-parameter.
5154
5155 * xsettings.c (set_default_xft_settings): New function.
5156 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5157 is found.
5158
8b264ecb
AS
51592009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5160
5161 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5162 searching backwards through multibyte buffer.
5163
872870b2
JD
51642009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5165
5166 * xterm.c: #include xgselect.h.
5167 (x_initialize): Call xgselect_initialize.
5168
5169 * xsettings.c (something_changedCB): C++ comments => C comments.
5170 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5171 does that now.
5172
5173 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5174 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5175 (scroll_bar_button_cb): Remove.
5ce6e4f4 5176 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5177 event.
5178 (xg_create_scroll_bar): Don't bind button-press-event and
5179 button-release-event.
5180
5181 * process.c: Include xgselect.h if defined (USE_GTK) ||
5182 defined (HAVE_GCONF).
5183 (wait_reading_process_output): Call xg_select for the same condition.
5184
5185 * xgselect.c (xg_select): New function to better integrate with
5186 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5187
5188 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5189
5190 * Makefile.in (XOBJ): Add xgselect.o.
5191
62a6e103
AS
51922009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5193
0b5397c2
SM
5194 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5195 Remove ignored second argument. All callers changed.
62a6e103
AS
5196 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5197 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5198 * xdisp.c (string_char_and_length): Likewise.
5199
b0ca0f33
DN
52002009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5201
5202 * xterm.c (x_new_font):
5203 * print.c (print_object):
5204 * cmds.c (Fself_insert_command): Move declarations before statements.
5205
dd5a6279
CY
52062009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5207
5208 * s/cygwin.h: Remove unneeded linker flags.
5209
4a8e097d
JD
52102009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5211
0d1d0d26
JD
5212 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5213
5214 * xsettings.h: Declare xsettings_get_system_font.
5215
5216 * xsettings.c (xsettings_get_system_font): New function.
5217 (init_gconf): No use initiating gconf unless we have Xft also.
5218 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5219 HAVE_GCONF.
5220
4a8e097d
JD
5221 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5222 add a blank entry so it doesn't collapse into nothing.
5223
8ab1650e
SM
52242009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5225
5226 * lread.c (Funintern): Comment out last change.
5227
82c602f0
RS
52282009-11-19 Richard Stallman <rms@gnu.org>
5229
5230 * lread.c (Funintern): Error if symbol is t or nil.
5231
87e32266
SM
52322009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5233
5234 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5235 representation of Lisp integers.
5236 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5237
1b9ac145
AS
52382009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5239
5240 * lisp.h: Remove declaration of Ffont_get_system_font.
5241 * xfns.c: Move include of "xsettings.h".
5242 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5243
dfb3c4c6
JD
52442009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5245
87e32266
SM
5246 * xsettings.c (something_changedCB, Ffont_get_system_font):
5247 Check use_system_font.
dfb3c4c6
JD
5248 (syms_of_xsettings): DEFVAR font-use-system-font.
5249
9370c1d8
AS
52502009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5251
25fe851a
AS
5252 * xfns.c (x_default_font_parameter): Remove dead assignment.
5253
9370c1d8
AS
5254 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5255
637fa988
JD
52562009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5257
87e32266 5258 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5259 not have FC_LCD_*. #define them if not there.
a6eb20d8 5260
87e32266 5261 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5262
637fa988
JD
5263 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5264
5265 * xterm.c (handle_one_xevent): Call xft_settings_event for
5266 ClientMessage, PropertyNotify and DestroyNotify.
5267 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5268 Call xsettings_initialize.
5269
5270 * xftfont.c (xftfont_fix_match): New function.
5271 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5272 Call xftfont_fix_match after XftFontMatch.
5273
5274 * xfont.c (xfont_driver): Initialize all members.
5275
87e32266
SM
5276 * xfns.c (x_default_font_parameter):
5277 Try font from Ffont_get_system_font.
637fa988
JD
5278 Do not get font from x_default_parameter if we got one from
5279 Ffont_get_system_font.
87e32266 5280 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5281
5282 * w32font.c (w32font_driver): Initialize all members.
5283
5284 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5285
5286 * lisp.h: Declare syms_of_xsettings.
5287
87e32266
SM
5288 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5289 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5290
5291 * ftfont.c (ftfont_filter_properties): New function.
5292
5293 * frame.c (x_set_font): Remove unused variable lval.
5294
87e32266 5295 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5296
5297 * font.c (font_put_extra): Don't return if val is nil, it means
5298 boolean option is off.
5299 (font_parse_fcname): Collect all extra properties in extra_props
5300 and call filter_properties for all drivers with extra_props and
5301 font as parameter.
87e32266
SM
5302 (font_open_entity): Do not use cache, it does not pick up new
5303 fontconfig settings like hinting.
637fa988
JD
5304 (font_load_for_lface): If spec had a name in it, store it in entity.
5305
a73f9c9d 5306 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5307
5308 * config.in: HAVE_GCONF is new.
5309
5310 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5311 xsettings.o is new.
5312
5a942932
KH
53132009-11-17 Kenichi Handa <handa@m17n.org>
5314
5315 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5316 back to the default font in case that no suitable font is found.
5317
b7c7a4d1
SM
53182009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5319
5320 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5321 Suggested by Chad Brown <yandros@mit.edu>.
5322 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5323
072f1e39
JD
53242009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5325
5326 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5327
5d1e70a2
AS
53282009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5329
87e32266 5330 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5331
a53cfbe5
JD
53322009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5333
473a99b7
JD
5334 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5335 has a parent.
5336
a53cfbe5 5337 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5338 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5339
5340 * config.in: Generated (AUTO_DEPEND).
5341
f04bb9b2
MA
53422009-11-13 Michael Albinus <michael.albinus@gmx.de>
5343
b7c7a4d1 5344 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5345 Vdbus_registered_functions_table, because it contains also
5346 properties. Fix docstring.
b7c7a4d1 5347 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5348
8f11f7ec
SM
53492009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5350
5351 * alloc.c (mark_object): Don't reprocess marked strings.
5352 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5353 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5354
8a605fe8
KH
53552009-11-13 Kenichi Handa <handa@m17n.org>
5356
8f11f7ec 5357 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5358 semantics of Vword_combining_categories.
5359 (Vword_combining_categories): Describe the slight change of the
5360 semantics.
5361
241c4680
EZ
53622009-11-13 Eli Zaretskii <eliz@gnu.org>
5363
5364 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5365
5366 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5367
5d58e44c
SM
53682009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5369
5370 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5371
5e13f9d3
JB
53722009-11-12 Juanma Barranquero <lekktu@gmail.com>
5373
5374 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5375
cf54c754
DR
53762009-11-11 David Reitter <david.reitter@gmail.com>
5377
5378 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5379 variables to fix 2009-11-09 change.
5380
a4ada374
DN
53812009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5382
91433552
DN
5383 * process.c (ifflag_def): Make flag_sym constant.
5384 (Fnetwork_interface_info): Use a constant pointer.
5385 (ifflag_table):
5386 * xfns.c (cursor_bits):
5387 * xdisp.c (power_letter):
5388 * termcap.c (speeds, esctab):
5389 * sysdep.c (baud_convert):
5390 * keyboard.c (lispy_accent_codes, modifier_names):
5391 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5392 (jpeg_format, tiff_format, gif_format, svg_format)
5393 (interlace_start, interlace_increment, gs_format):
5394 * gtkutil.c (separator_names):
5395 * fringe.c (swap_nibble):
5396 * fns.c (base64_value_to_char, base64_char_to_value):
5397 * fileio.c (make_temp_name_tbl):
5398 * coding.c (suffixes): Make constant.
5399
f4265f6c
DN
5400 * frame.c (make_initial_frame):
5401 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5402 build_string.
5403 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5404
04420943
DN
5405 * s/freebsd.h:
5406 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5407
0a5d24ae
DN
5408 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5409 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5410
a4ada374
DN
5411 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5412 * xterm.c (syms_of_xterm):
5413 * xfaces.c (syms_of_xfaces):
5414 * xdisp.c (syms_of_xdisp):
5415 * lread.c (syms_of_lread):
5416 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5417 build_string.
91433552 5418
a4ada374
DN
5419 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5420
af98fc7f
SM
54212009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5422
8ab1650e 5423 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5424
e90292a9
JD
54252009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5426
5427 * keyboard.h: Declare timer_check.
5428
5429 * keyboard.c (timer_check_2): New function that does what the old
5430 timer_check did.
5431 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5432 returned, i.e. don't return -1 with timers pending.
5433
5434 * process.c: Remove extern declaration of timer_check.
5435
5436 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5437 even if timer_check returned -1.
5438
af98fc7f
SM
5439 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5440 xg_dialog_data.
e90292a9
JD
5441 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5442 the event loop.
5443 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5444 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5445 Destroy the dialog after xg_dialog_run.
5446
045b83c0
SM
54472009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5448
5449 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5450
1fb99a3a
JD
54512009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5452
5453 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5454
04e452cb
JB
54552009-11-09 Juanma Barranquero <lekktu@gmail.com>
5456
5457 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5458
ef7417fd
SM
54592009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5460
5461 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5462 w32menu.c, and nsmenu.m.
5463 Simplify the obsolete case where position is nil.
5464 (cleanup_popup_menu): New function, moved from nsmenu.m.
5465 (struct skp): Remove slot `notreal'.
5466 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5467 adjust callers.
5468 (single_menu_item): Adjust call to parse_menu_item.
5469 (syms_of_menu): Defsubr x-popup-menu.
5470 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5471 (keymap_panes): Don't export any more.
5472 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5473 (xmenu_show): Declare.
5474 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5475 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5476 * keyboard.h (parse_menu_item): Update declaration.
5477 * xmenu.c (Fx_popup_menu): Remove.
5478 (syms_of_xmenu): Don't defsubr x-popup-menu.
5479 * w32menu.c (Fx_popup_menu): Remove.
5480 (syms_of_w32menu): Don't defsubr x-popup-menu.
5481 * nsmenu.m (cleanup_popup_menu): Remove.
5482 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5483 moved to menu.c's Fx_popup_menu.
5484 (Fx_popup_menu): Remove.
5485 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5486 menu_items (it's done in menu.c already).
5487
424d6179
SM
54882009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5489
5490 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5491 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5492
c0df13a6 54932009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5494
5495 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5496 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5497 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5498 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5499
2de9f71c
SM
55002009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5501
5502 Let integers use up 2 tags to give them one extra bit and thus double
5503 their range.
5504 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5505 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5506 New macros.
5507 (enum Lisp_Type): Use them. Give explicit values.
5508 (Lisp_Type_Limit): Remove.
5509 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5510 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5511 Pay attention to USE_2_TAGS_FOR_INTS.
5512 (INTEGERP): Use LISP_INT_TAG_P.
5513 * fns.c (internal_equal): Simplify the default case.
5514 (sxhash): Use case_Lisp_Int.
5515 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5516 any more.
5517 (Ftype_of): Use case_Lisp_Int.
5518 (store_symval_forwarding): Take into account the fact that Ints can
5519 now have more than one tag.
5520 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5521 buffer_slot_type_mismatch):
5522 * xfaces.c (face_attr_equal_p):
5523 * print.c (print_object):
5524 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5525 Use case_Lisp_Int.
5526
323637a2
EZ
55272009-11-06 Eli Zaretskii <eliz@gnu.org>
5528
7ac65b38
EZ
5529 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5530
323637a2
EZ
5531 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5532 warning.
5533
e511451f
JD
55342009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5535
5536 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5537
5538 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5539
5540 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5541 ButtonPressRelease and MotionNotify (bug#4870).
5542
5e2327cf
DN
55432009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5544
5adc433e
DN
5545 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5546
d67b4f80
DN
5547 * xterm.c (syms_of_xterm):
5548 * xselect.c (syms_of_xselect):
5549 * xmenu.c (syms_of_xmenu):
5550 * xfns.c (syms_of_xfns):
5551 * xfaces.c (syms_of_xfaces):
5552 * xdisp.c (syms_of_xdisp):
5553 * window.c (syms_of_window):
5554 * w32fns.c (syms_of_w32fns):
5555 * undo.c (syms_of_undo):
5556 * textprop.c (syms_of_textprop):
5557 * terminal.c (syms_of_terminal):
5558 * syntax.c (syms_of_syntax):
5559 * sound.c (syms_of_sound):
5560 * search.c (syms_of_search):
5561 * print.c (syms_of_print):
5562 * minibuf.c (syms_of_minibuf):
5563 * macros.c (syms_of_macros):
5564 * keymap.c (syms_of_keymap, initial_define_key)
5565 (initial_define_lispy_key):
5566 * keyboard.c (syms_of_keyboard):
5567 * insdel.c (syms_of_insdel):
5568 * image.c (syms_of_image):
5569 * fringe.c (syms_of_fringe):
5570 * frame.c (syms_of_frame):
5571 * fontset.c (syms_of_fontset):
5572 * fns.c (syms_of_fns):
5573 * fns.c (syms_of_fns):
5574 * fileio.c (syms_of_fileio):
5575 * fileio.c (syms_of_fileio):
5576 * eval.c (syms_of_eval):
5577 * doc.c (syms_of_doc):
5578 * dispnew.c (syms_of_display):
5579 * dired.c (syms_of_dired):
5580 * dbusbind.c (syms_of_dbusbind):
5581 * data.c (syms_of_data):
5582 * composite.c (syms_of_composite):
5583 * coding.c (syms_of_coding):
5584 * cmds.c (syms_of_cmds):
5585 * charset.c (define_charset_internal, syms_of_character):
5586 * ccl.c (syms_of_ccl):
5587 * category.c (syms_of_category, init_category_once):
5588 * casetab.c (syms_of_casetab):
5589 * casefiddle.c (syms_of_casefiddle):
5590 * callint.c (syms_of_callint):
5591 * bytecode.c (syms_of_bytecode):
5592 * buffer.c (keys_of_buffer, syms_of_buffer):
5593 * alloc.c (syms_of_alloc):
5594 * process.c (syms_of_process, init_process):
5595 * lread.c (syms_of_lread, init_obarray):
5596 * font.c (build_style_table):
5597 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5598 intern_c_string, calls to make_pure_string with
5599 make_pure_c_string. Use pure_cons instead of Fcons.
5600
5e2327cf
DN
5601 * process.c (socket_options): Make it const.
5602 (set_socket_option, init_process): Use a const pointer.
5603
5604 * lread.c (intern_c_string): New function.
5605 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5606 (defvar_int): Uset it. Make the name const char*.
5607
5608 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5609 (defvar_int): Update prototypes.
5610 (DEFUN, EXFUN): Support for prototypes is now required.
5611 (intern_c_string): New prototype.
5612 (struct Lisp_Subr): Make symbol_name constant.
5613
5614 * font.c (struct table_entry): Remove unused member. Make NAMES
5615 constant.
5616 (weight_table, slant_table, width_table): Make constant.
5617
5618 * emacs.c (struct standard_args): Make name and longname constant.
5619
5620 * character.h (DEFSYM): Use intern_c_string.
5621
a56eaaef
DN
56222009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5623
5624 * alloc.c (make_pure_c_string): New function.
5625
5626 * eval.c (Fautoload): Purecopy all arguments.
5627
f6a07420
KH
56282009-11-05 Kenichi Handa <handa@m17n.org>
5629
5630 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5631 the buffer in case of replace.
5632
5d28d4b1
DN
56332009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5634
5635 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5636
b349d111
SM
56372009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5638
d528b1ce
SM
5639 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5640 when applicable (bug#4851).
5641
b349d111
SM
5642 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5643 (P_): Support for prototypes is now required.
5644
c38eb027
CY
56452009-10-31 Chong Yidong <cyd@stupidchicken.com>
5646
5647 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5648 (Bug#4827).
5649
0405f8d9
EZ
56502009-10-30 Eli Zaretskii <eliz@gnu.org>
5651
d528b1ce 5652 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5653
ca0a881a
DN
56542009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5655
5656 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5657
d528b1ce
SM
5658 * lread.c (Fload): Purecopy the file name when building
5659 Vpreloaded_file_list.
ca0a881a 5660
47e0e0e4
JR
56612009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5662
5663 * w32fns.c (syms_of_w32fns): Change default value of
5664 w32-scroll-lock-modifier to nil. (Bug#2827)
5665
057bce6f
JB
56662009-10-26 Juanma Barranquero <lekktu@gmail.com>
5667
782a943e 5668 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5669
242bc74c
AS
56702009-10-26 Andreas Schwab <schwab@redhat.com>
5671
5672 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5673
522d013a
JB
56742009-10-26 Juanma Barranquero <lekktu@gmail.com>
5675
5676 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5677 For delta < 0, skip check that only makes sense when the mini-window
5678 is going to be enlarged. (Bug#4534)
5679
18060980
CY
56802009-10-25 Chong Yidong <cyd@stupidchicken.com>
5681
5682 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5683 string in menu maps (Bug#4471).
5684
fec8f0fe
CY
56852009-10-24 Chong Yidong <cyd@stupidchicken.com>
5686
5687 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5688 FRAME_NS_VIEW on terminal frames (Bug#4765).
5689
10d66ec0
AS
56902009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5691
1cae01f7
AS
5692 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5693 DBUS_TYPE_UINTnn separately to get proper sign extension.
5694
58a12889
AS
5695 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5696 can properly handle unsigned types.
d528b1ce 5697 (make_uid, make_gid): Remove.
58a12889 5698
987c9327
AS
5699 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5700 types again.
5701
522d013a 5702 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5703 (system_process_attributes): Likewise.
5704
905a9ed3
DN
57052009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5706
5707 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5708
5709 * eval.c (Fautoload): Purecopy the filename. Simplify.
5710
5711 * category.c (Fdefine_category): Purecopy docstring.
5712
a599b3e8
AS
57132009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5714
7b792fc9
AS
5715 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5716
a599b3e8
AS
5717 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5718
b35ac83e
CY
57192009-10-23 Chong Yidong <cyd@stupidchicken.com>
5720
5721 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5722 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5723 (Bug#4775).
5724
e8903e00
SM
57252009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5726
5727 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5728 (init_fileio_once):
5729 * lisp.h (init_fileio_once): Remove.
5730 * emacs.c (main): Don't call init_fileio_once.
5731
8f43cbf3
DN
57322009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5733
5734 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5735
26898943
AS
57362009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5737
5738 * doprnt.c (doprnt): Fix overflow check.
5739
5c646d5a
JD
57402009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5741
3132a7ea
JD
5742 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5743
5c646d5a
JD
5744 * xterm.h (x_wait_for_event): Declare it.
5745
5746 * xterm.c (pending_event_wait): New variable.
5747 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5748 see pending_event_wait.eventtype.
5749 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5750 (x_new_font): Call change_frame_size with new rows/columns before we
5751 try to resize the frame.
5c646d5a 5752 (x_wait_for_event): New function.
d528b1ce
SM
5753 (x_set_window_size_1): Don't change gravity unless change_gravity
5754 is set.
5c646d5a
JD
5755 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5756 don't change frame size, instead wait for the ConfigureNotify.
5757 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5758 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5759 (x_initialize): Initialize pending_event_wait.
5760
5761 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5762 size.
5763
5764 * widget.c (EmacsFrameSetValues): Add comment.
5765 (EmacsFrameSetCharSize): Just call x_set_window_size.
5766
5767 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5768 x_wait_for_event.
d528b1ce 5769 (flush_and_sync): Remove again.
5c646d5a
JD
5770 (xg_get_font_name): Suggest monospace if no previous font is known.
5771
e9c1637d
SM
57722009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5773
5774 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5775 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5776
5a72cccb
YM
57772009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5778
5779 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5780 processing pending events when event is filtered for input method.
ab04798f 5781 (Bug#3681)
5a72cccb 5782
2629aa37
JB
57832009-10-20 Juanma Barranquero <lekktu@gmail.com>
5784
5785 * fns.c: Add #endif accidentally removed in previous change.
5786
c3417a74
DN
57872009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5788
5789 * fns.c: Remove code for unsupported system: MAC_OS.
5790 * image.c: Likewise. Include setjmp.h.
5791
9685cef2
JD
57922009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5793
5794 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5795 pixel -1 (bug #4742).
5796
d7306fe6
DN
57972009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5798
019d2c4c
DN
5799 * process.c (create_pty): Remove conditionals for no longer
5800 supported systems: UNIPLUS and RTU.
5801
ee6bacd4
DN
5802 * xterm.c:
5803 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5804
d7306fe6
DN
5805 * alloc.c: Do not define struct catchtag.
5806 * eval.c: Move struct catchtag definition ...
5807 * lisp.h: ... here.
5808
5809 * image.c: Move png.h #include earlier to avoid warnings.
5810
5811 * xterm.c:
5812 * xsmfns.c:
5813 * xselect.c:
5814 * xrdb.c:
5815 * xmenu.c:
5816 * xftfont.c:
5817 * xfont.c:
5818 * xfns.c:
5819 * xfaces.c:
5820 * xdisp.c:
5821 * window.c:
5822 * widget.c:
5823 * w32xfns.c:
5824 * w32uniscribe.c:
5825 * w32term.c:
5826 * w32select.c:
5827 * w32reg.c:
5828 * w32proc.c:
5829 * w32menu.c:
5830 * w32inevt.c:
5831 * w32heap.c:
5832 * w32font.c:
5833 * w32fns.c:
5834 * w32console.c:
5835 * w32.c:
5836 * w16select.c:
5837 * vm-limit.c:
5838 * unexsol.c:
5839 * unexec.c:
5840 * unexcw.c:
5841 * unexaix.c:
5842 * undo.c:
5843 * tparam.c:
5844 * textprop.c:
5845 * terminfo.c:
5846 * terminal.c:
5847 * termcap.c:
5848 * term.c:
5849 * syntax.c:
5850 * sound.c:
5851 * sheap.c:
5852 * search.c:
5853 * scroll.c:
5854 * region-cache.c:
5855 * regex.c:
5856 * ralloc.c:
5857 * process.c:
5858 * print.c:
b024548b
DN
5859 * nsterm.m:
5860 * nsselect.m:
5861 * nsmenu.m:
5862 * nsimage.m:
5863 * nsfont.m:
5864 * nsfns.m:
d7306fe6
DN
5865 * msdos.c:
5866 * minibuf.c:
5867 * menu.c:
5868 * marker.c:
5869 * macros.c:
5870 * keymap.c:
5871 * keyboard.c:
5872 * intervals.c:
5873 * insdel.c:
5874 * indent.c:
5875 * gtkutil.c:
5876 * ftxfont.c:
5877 * ftfont.c:
5878 * fringe.c:
5879 * frame.c:
5880 * fontset.c:
5881 * font.c:
5882 * fns.c:
5883 * floatfns.c:
5884 * filelock.c:
5885 * fileio.c:
5886 * emacs.c:
5887 * editfns.c:
5888 * dosfns.c:
5889 * doprnt.c:
5890 * doc.c:
5891 * dispnew.c:
5892 * dired.c:
5893 * dbusbind.c:
5894 * data.c:
5895 * composite.c:
5896 * coding.c:
5897 * cmds.c:
5898 * cm.c:
5899 * chartab.c:
5900 * charset.c:
5901 * character.c:
5902 * ccl.c:
5903 * category.c:
5904 * casetab.c:
5905 * casefiddle.c:
5906 * callproc.c:
5907 * callint.c:
5908 * bytecode.c:
5909 * buffer.c:
5910 * atimer.c: Include setjmp.h. (Bug#4643)
5911
fd5f21e6
SM
59122009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5913
4c0354d7
SM
5914 Remove leftover table unibyte_to_multibyte_table.
5915 * character.c (unibyte_to_multibyte_table): Remove.
5916 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5917 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5918 * character.h (UNIBYTE_TO_CHAR): New macro.
5919 (MAKE_CHAR_MULTIBYTE): Use it.
5920 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5921 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5922 (message_dolog, set_message_1):
5923 * search.c (Freplace_match):
5924 * editfns.c (Fcompare_buffer_substrings):
5925 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5926 (concat):
5927 * insdel.c (copy_text, count_size_as_multibyte):
5928 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5929 * term.c (produce_glyphs):
5930 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5931 * regex.c (RE_CHAR_TO_MULTIBYTE):
5932 * cmds.c (internal_self_insert):
5933 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5934
fd5f21e6
SM
5935 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5936
4418646e
DN
59372009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5938
5939 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5940
35f5c1d2
JB
59412009-10-16 Juanma Barranquero <lekktu@gmail.com>
5942
5943 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5944
a0cd8f6b
AR
59452009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5946
5947 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5948 still needed under Tiger.
5949
5950 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5951
5952 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5953 __Apple__.
5954
5955 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5956
01a8d3fa
KH
59572009-10-15 Kenichi Handa <handa@m17n.org>
5958
5959 * print.c (print_object): Escape a symbol like "2E10" too.
5960
bf6c75c9 59612009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5962
5963 Cleanups and changes for 64-bit compile under Snow Leopard.
5964 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5965
5966 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5967
c5959062 5968 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5969 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5970 cast argument.
5971 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5972 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5973
5974 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5975
5976 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5977 where appropriate.
5978
5979 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5980 where appropriate.
6e4780c5
JB
5981 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5982 Use stringWithUTF8String.
bf6c75c9
AR
5983 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5984
6e4780c5
JB
5985 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5986 Add formal protocol mention to inheritance.
bf6c75c9
AR
5987 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5988
6e4780c5
JB
5989 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5990 Fix printf format.
bf6c75c9
AR
5991 (ns_query_color): Use CGFloat where appropriate.
5992 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5993 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5994 argument.
5995
3d87f118
AR
5996 * config.in (NS_HAVE_NSINTEGER): Drop.
5997
a95c8102
AR
5998 * dbusbind.c (dbus-method-return-internal)
5999 (dbus-method-error-internal): Use long format in printf, and cast
6000 argument.
6001
6002 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
6003 in printf, and cast argument.
6004
6873acca 6005 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
6006 cast argument.
6007
9ec6f100
GM
60082009-10-11 Glenn Morris <rgm@gnu.org>
6009
6010 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
6011
5be883cd
JD
60122009-10-08 Jan Djärv <jan.h.d@swipnet.se>
6013
6014 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
6015 menu bar with a small width so it doesn't enlarge the frame.
6016
d7a39b51
JB
60172009-10-08 Juanma Barranquero <lekktu@gmail.com>
6018
6019 * fontset.c (Fset_fontset_font): Fix typos in error messages.
6020
0c2b6f8e
GM
60212009-10-06 Glenn Morris <rgm@gnu.org>
6022
6023 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
6024 SOME_MACHINE_LISP (this enters indirectly via DOC).
6025
e02131a2
EZ
60262009-10-05 Eli Zaretskii <eliz@gnu.org>
6027
6028 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
6029
b4744254
EZ
60302009-10-04 Eli Zaretskii <eliz@gnu.org>
6031
6032 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
6033 Doc fix.
6034
dbf64827
JB
60352009-10-03 Martin Rudalics <rudalics@gmx.at>
6036
6037 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
6038
e9a0aef8
MA
60392009-10-02 Michael Albinus <michael.albinus@gmx.de>
6040
d528b1ce 6041 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
6042 used anymore outside fileio.c.
6043
6044 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
6045
64eb2b56
JB
60462009-10-01 Juanma Barranquero <lekktu@gmail.com>
6047
6048 * lisp.h (Qdelete_directory_internal):
6049 Declare, instead of Qdelete_directory.
6050
6051 * w32fns.c (Fsystem_move_file_to_trash): Use it.
6052
9d28c33e
SM
60532009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
6054
6055 * eval.c (Fcalled_interactively_p): Add `kind' argument.
6056
9d8f3bd9
MA
60572009-10-01 Michael Albinus <michael.albinus@gmx.de>
6058
9d28c33e 6059 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
6060 Fdelete_directory. It is not a command anymore. It has no file
6061 name handler.
6062
9694740b
SM
60632009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
6064
6065 * xdisp.c (get_next_display_element): Use an enum in last change.
6066
748e162f
KH
60672009-09-28 Kenichi Handa <handa@m17n.org>
6068
9694740b 6069 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
6070 unibyte_display_via_language_environment in handling
6071 Vnobreak_char_display.
6072
17efd58d
AR
60732009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6074
6075 * nsterm.h (ns_app_name): New extern variable.
6076
6077 * nsterm.m (ns_app_name): New variable.
6078 (ns_term_init): Set and use it.
6079 (ns_term_shutdown): Use it.
6080
6081 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
6082 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
6083
6084 * nsfns.m (ns_set_name_iconic, ns_set_name)
6085 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
6086 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
6087
9694740b
SM
6088 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
6089 Remove double-casting in client_data comparison.
31c2d412 6090
3208cb35
YM
60912009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6092
6093 * keyboard.c (make_lispy_event): Remember last wheel direction.
6094 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
6095
b7d552d6
GM
60962009-09-26 Glenn Morris <rgm@gnu.org>
6097
6098 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
6099 internal.elc. Add term/pc-win.elc.
6100 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
6101 term/x-win.elc.
6102 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
6103 term/w32-win.elc.
6104 (NS_SUPPORT): New.
6105 (lisp): Add NS_SUPPORT.
6106 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
6107
4ff670a8
DR
61082009-09-25 David Reitter <david.reitter@gmail.com>
6109
6110 * nsmenu.m (EmacsMenu-clear): Recognize application menu
6111 on Mac OS X 10.6+ (bug#4513).
6112
feabfb6c
JB
61132009-09-24 Juanma Barranquero <lekktu@gmail.com>
6114
6115 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
6116 some parts of Emacs code (like font selection) don't grok them.
6117 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 6118
de59072a
AS
61192009-09-24 Andreas Schwab <schwab@redhat.com>
6120
6121 * coding.c (decode_coding_iso_2022): Fix operator precedence.
6122
a489517b
JB
61232009-09-24 Juanma Barranquero <lekktu@gmail.com>
6124
6125 * dired.c (Fdirectory_files): Fix typo in docstring.
6126
0592970c
AR
61272009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6128
6129 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
6130 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
6131 (EmacsScroller-setPosition:portion:whole:): Remove -display call
6132 under GNUstep.
6133 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
6134
6135 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
6136 glyph advancement.
6137
48e8a88b
AR
61382009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6139
6140 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 6141 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
6142
6143 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
6144 deleted (bug #4492).
6145
e14f0a78
AR
6146 * nsfont.m (Vns_reg_to_script): New lisp variable.
6147 (syms_of_nsfont): Declare it.
6148 (ns_registry_to_script): New function.
6149 (ns_get_req_script): Call it.
6150 (ns_findfonts): Don't give up on non-unicode registry.
6151
6152 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6153
5b650faa
SM
61542009-09-20 Tom Tromey <tromey@redhat.com>
6155
6156 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6157 batch mode (bug#4228).
6158
a489517b 61592009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6160
6161 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6162 carefully. (Bug #4339)
0bae4e09 6163
fcfe06f3
CY
61642009-09-18 Chong Yidong <cyd@stupidchicken.com>
6165
d798ba87 6166 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6167
31642728
AR
61682009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6169
6170 * emacs.c (inhibit_x_resources): Update doc string for NS.
6171 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6172 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6173
6174 * nsterm.h (ns_no_defaults): Remove.
6175
6176 * nsterm.m (ns_no_defaults): Remove.
6177 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6178 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6179 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6180 don't update the NSWindow itself.
6181 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6182 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6183
6184 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6185 ns_use_qd_smoothing.
6186
6187 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6188 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6189 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6190 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6191
8686ac71
JB
61922009-09-17 Juanma Barranquero <lekktu@gmail.com>
6193
6194 * emacs.c (inhibit_x_resources): New variable.
6195 (main) [HAVE_NS]: Don't process --quick command line option.
6196 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6197
6198 * lisp.h (inhibit_x_resources): Declare it extern.
6199
6200 * w32reg.c (x_get_string_resource):
6201 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6202
e227ba05
EZ
62032009-09-17 Eli Zaretskii <eliz@gnu.org>
6204
362654a6
JB
6205 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6206 Add lisp/term/internal.elc.
e227ba05 6207
742d40e8
SM
62082009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6209
6210 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6211 (bug#4461).
6212
005bd5a2
DN
62132009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6214
6215 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6216
6217 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6218 (OBJECTS_MACHINE): Remove, unused.
6219
f9af9719
SM
62202009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6221
6222 * frame.c (x_get_resource_string): Remove unused.
6223
0307c7d2
JD
62242009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6225
6226 * xterm.c (x_new_font): Call change_frame_size before calling
6227 x_set_window_size, in case frame size won't change.
6228
6229 * frame.c (x_set_font): Remove dead code.
6230
428b13d6
SM
62312009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6232
6233 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6234
5766c380
SM
62352009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6236
6237 * lread.c (Fload): Don't output a message after loading an obsolete
6238 package any more (done in Lisp now).
6239
2fd0161b
CY
62402009-09-12 Chong Yidong <cyd@stupidchicken.com>
6241
6242 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6243
bc5e75b6
SM
62442009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6245
6246 * keymap.c (Fwhere_is_internal): Use nconc2.
6247
c31c985e
AM
62482009-09-11 Alan Mackenzie <acm@muc.de>
6249
6250 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6251 batch mode.
6252
78012bd2
AS
62532009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6254
6255 * xdisp.c (display_mode_element): Detect cycles.
6256
9d889332
SM
62572009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6258
6259 * keymap.c (where_is_internal): Don't erroneously return nil right after
6260 filling the cache.
6261 (where_is_internal_1): Fix up typo.
6262
7ab5d780
GM
62632009-09-11 Glenn Morris <rgm@gnu.org>
6264
6265 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6266 share a common doc-string.
6267
5238a749
SM
62682009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6269
66d77eda
SM
6270 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6271 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6272
5238a749
SM
6273 * keymap.c (QCadvertised_binding): New constant.
6274 (syms_of_keymap): Initialize it.
6275 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6276 if applicable.
6277
19f48442
SM
62782009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6279
50d4ba39
SM
6280 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6281 (parse_menu_item): Streamline since bindings are recomputed all the
6282 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6283 more and don't support lmenu's menu-alias any more either.
6284
a88a5372
SM
6285 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6286 (where_is_internal): Strip it down to only traverse the keymaps.
6287 Move the cache handling from Fwhere_is_internal to here.
6288 (Fwhere_is_internal): Move the handling of remapping and the choice of
6289 the best binding from where_is_internal to here.
6290 Unify the cached/noncached paths, so remapping is also handled
6291 correctly when the cache is used, and so the cache can be used to
6292 speed up remap-handling when applicable.
6293 Give preference to non-remapped bindings.
6294 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6295 non-remapped bindings.
6296 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6297 command remapping.
6298
19f48442
SM
6299 * xdisp.c (display_mode_element): Move list length limit from 50 to
6300 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6301
599498c3 63022009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6303
6304 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6305
f9b7b5ac
SM
63062009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6307
a53af587
JB
6308 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6309 (Bug#4334)
6310
f9b7b5ac
SM
6311 * keymap.c (where_is_internal): Filter out shadowed remappings.
6312 Assume that where_is_internal returns unshadowed bindings to simplify
6313 the code and get rid of the gotos. Use ASIZE.
6314
04f4b72d
JD
63152009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6316
4da146f2
JD
6317 * xterm.c (x_focus_changed): If we get a focusout and pointer
6318 is invisible, make it visible.
6319
04f4b72d
JD
6320 * xterm.h: Remove condition for declaration of
6321 x_*_window_to_frame.
6322
7cef7ce3
SM
63232009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6324
6325 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6326 initial terminal as well.
6327
a54fa5b7
JD
63282009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6329
6330 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6331 x_menubar_window_to_frame.
a54fa5b7 6332
50426a04 6333 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6334 (XTmouse_position): Do not return valid positions
6335 for clicks in the menubar and the toolbar for Gtk+.
6336
6337 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6338 if the widget for the event has the same top level as a frame,
6339 return the frame.
6340 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6341 internal windows, bug #4122.
6342 (x_non_menubar_window_to_frame): Remove.
6343
5a021dd0
GM
63442009-09-02 Glenn Morris <rgm@gnu.org>
6345
6346 * buffer.c (default-major-mode): Move most of the doc from here...
6347 (major-mode): ... to here.
6348
548fe2f3
NR
63492009-08-30 Nick Roberts <nickrob@snap.net.nz>
6350
6351 * process.c (wait_reading_process_output): Keep the descriptor
6352 when pty is used by a non-child process, e.g., in I/O buffer of
6353 GDB this allows inferior to be restarted.
6354
e0840eef
EZ
63552009-08-29 Eli Zaretskii <eliz@gnu.org>
6356
6357 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6358 both branches into one.
6359
82e98df4
SM
63602009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6361
6362 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6363 (main): Use enable-multibyte-characters rather than
6364 default-enable-multibyte-characters. Output a warning message when
6365 running a unibyte session.
6366
890617cb
YM
63672009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6368
6369 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6370 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6371 (copy_data_segment): Also copy __program_vars section.
6372 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6373 (dump_it) [LC_DYLD_INFO]: Use it.
6374
6375 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6376
e7adeadc
EZ
63772009-08-28 Eli Zaretskii <eliz@gnu.org>
6378
6379 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6380 $(SRC)/buildobj.h.
6381 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6382 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6383 $(SRC)/buildobj.h.
6384 (clean): Add buildobj.h.
6385
3ed8bbdc
TZ
63862009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6387
6388 * print.c (print_object): Set escapeflag to 1 when printing
6389 hashtable keys and values.
6390
155a6764
SM
63912009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6392
6393 * lread.c (read_integer): Use doubles (and potentially return a float
6394 number) as we do in string-to-number.
6395 (read1): Use strtol to read integers, signal errors on strtol's
6396 overflow and use floats if strtol's output is too large for
6397 Elisp integers.
6398
877610de
EZ
63992009-08-27 Eli Zaretskii <eliz@gnu.org>
6400
6401 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6402 (make-buildobj-SH): Fix last change.
6403 (SRC): Move to before where it's first used.
6404
ef73e7be
KH
64052009-08-27 Kenichi Handa <handa@m17n.org>
6406
550c8289
KH
6407 * process.c (send_process): Use encode_coding_object instead of
6408 encode_coding_string to perform eol-conversion even if the string
6409 is unibyte.
6410
60afa08d
KH
6411 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6412 character.
6413
ef73e7be 6414 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6415 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6416
7b3a82d7
DN
64172009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6418
5654bf63
DN
6419 * callproc.c (Fcall_process): Remove always true #if.
6420
7b3a82d7
DN
6421 * lisp.h: Replace #if 0 code for checking with text pointing to
6422 the --enable-checking configure flag.
6423
6424 * emacs.c (main): Mention the --enable-profiling configure flag
6425 instead of using CFLAGS.
6426
878bde49
KR
64272009-08-26 Ken Raeburn <raeburn@raeburn.org>
6428
6429 * Makefile.in (buildobj.h): New target.
6430 (doc.o): Depend on it.
6431 (temacs${EXEEXT}): Don't generate buildobj.lst.
6432 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6433 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6434 ($(BLD)/doc.$(O)): Depend on it.
6435 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6436 provided by Eli Zaretskii.)
6437 ($(TEMACS)): Don't generate buildobj.lst.
6438 * doc.c: Include buildobj.h.
6439 (buildobj): New static variable.
6440 (Fsnarf_documentation): Use it, instead of opening and reading
6441 buildobj.lst.
6442
1574224c
MA
64432009-08-25 Michael Albinus <michael.albinus@gmx.de>
6444
6445 * dbusbind.c (Fdbus_call_method)
6446 (Fdbus_call_method_asynchronously): Use English numeric format for
6447 timeout values in doc string.
6448
d9da2f45
KH
64492009-08-25 Kenichi Handa <handa@m17n.org>
6450
ef73e7be
KH
6451 * alloc.c (mark_char_table): New function.
6452 (mark_object): Use mark_char_table for a char-table.
6453
d9da2f45
KH
6454 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6455 (CHAR_TABLE_REF): Use it.
6456
c8edcc01
KR
64572009-08-23 Ken Raeburn <raeburn@raeburn.org>
6458
6459 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6460 before invoking the newly build emacs to check for load-path
6461 shadowing.
6462
7763401b
GM
64632009-08-22 Glenn Morris <rgm@gnu.org>
6464
6465 * Makefile.in (bootstrap_exe): New variable.
6466 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6467 Use ${bootstrap_exe}.
6468
729eadda
EZ
64692009-08-22 Eli Zaretskii <eliz@gnu.org>
6470
6471 * coding.h (encode_coding_string): Don't encode unibyte strings.
6472 (Bug#4047)
6473
eb4c6ace
MA
64742009-08-22 Michael Albinus <michael.albinus@gmx.de>
6475
6476 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6477
6478 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6479 intended as hotfix only.
6480 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6481
36e34d1b
AR
64822009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6483
6484 * nsterm.m (ns_get_color): Update documentation properly for last
6485 change, and clean up loose ends in the code left by it. Fix
6486 longstanding bug with 16-bit hex parsing, and add support for
6487 yet another X11 format (rgb:r/g/b) for compatibility.
6488 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6489 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6490
f983eb8a
SM
64912009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6492
6493 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6494
3f56d3c6
MA
64952009-08-20 Michael Albinus <michael.albinus@gmx.de>
6496
6497 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6498 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6499 (xd_initialize, xd_pending_messages): Check, whether
6500 $DBUS_SESSION_BUS_ADDRESS is set.
6501
fb641d68
YM
65022009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6503
6504 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6505
6506 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6507
cf59a374
GM
65082009-08-20 Glenn Morris <rgm@gnu.org>
6509
6510 * emacs.c (system-type): Doc fix.
6511
1373f3be
SM
65122009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6513
6514 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6515 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6516
058ed861
MA
65172009-08-18 Michael Albinus <michael.albinus@gmx.de>
6518
1373f3be
SM
6519 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6520 New functions.
058ed861
MA
6521 (xd_initialize): Revert change from 2009-08-16.
6522
563a866e 65232009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6524
6525 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6526 font-group vector, return nil.
5fc05db0 6527
e42bdf01
CY
65282009-08-17 Chong Yidong <cyd@stupidchicken.com>
6529
6530 * process.c (status_notify): Don't perform redisplay.
6531 (Fdelete_process, list_processes_1, process_send_signal):
6532 Expliticly perform redisplay.
6533 (wait_reading_process_output): Always check process status, but
6534 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6535
4230ab74
KR
65362009-08-17 Ken Raeburn <raeburn@raeburn.org>
6537
1373f3be 6538 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6539 (XFLOAT_INIT): New macro for storing a float value.
6540 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6541 * fns.c (sxhash): Copy out the value of a float in order to
6542 examine its bytes.
6543 * dbusbind.c (xd_append_arg): Likewise.
6544
4230ab74
KR
6545 * emacs.c (main): Don't call syms_of_data twice.
6546
a0645cdd
MA
65472009-08-16 Michael Albinus <michael.albinus@gmx.de>
6548
6549 * dbusbind.c (xd_initialize): Add connection file descriptor to
6550 input_wait_mask, in order to let select() detect, whether a new
6551 message has been arrived.
ca4f31ea 6552 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6553
485db0ba
MA
65542009-08-15 Michael Albinus <michael.albinus@gmx.de>
6555
1373f3be
SM
6556 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6557 New functions.
485db0ba
MA
6558
6559 * lisp.h (xd_pending_messages): Declare.
6560
6561 * keyboard.c (readable_events): Call xd_pending_messages.
6562
b5b98ff4
CY
65632009-08-15 Chong Yidong <cyd@stupidchicken.com>
6564
1373f3be 6565 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6566
f8354c6e
CY
6567 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6568
b5b98ff4
CY
6569 * buffer.c (set_buffer_internal_1)
6570 (swap_out_buffer_local_variables): Check for unbound local
6571 variables (Bug#4138).
6572
8b9fc636
EZ
65732009-08-14 Eli Zaretskii <eliz@gnu.org>
6574
6575 * process.c (create_pty): Fix last change.
6576
ce959360
CY
65772009-08-13 Chong Yidong <cyd@stupidchicken.com>
6578
6579 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6580 (xbm_load_image): Caller changed.
64b807c9 6581 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6582
c7baf7e9
NR
65832009-08-13 Nick Roberts <nickrob@snap.net.nz>
6584
6585 * process.c (create_pty): New function.
6586 (Fstart_process): Use it to allow Emacs to just associate a pty
6587 with the buffer. See associated change in gdb-mi.el.
6588 (list_processes_1): Deal with no program name.
6589 (start_process_unwind): Use pid == -2 to mean no process.
6590
1ac9108a
SM
65912009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6592
6593 * cmds.c (nonundocount): New global variable.
6594 (keys_of_cmds): Initialize it.
6595 (Fself_insert_command): Use it to combine upto 20 sequential chars
6596 into a single undo entry, just like the Qself_insert_command code in
6597 keyboard.c does.
6598 Call frame_make_pointer_invisible, also like the Qself_insert_command
6599 code in keyboard.c does.
6600 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6601 than its own local replacement for it.
6602
e267324c
KR
66032009-08-10 Ken Raeburn <raeburn@raeburn.org>
6604
1ac9108a 6605 * fns.c (concat): Don't re-set string length to its current value.
77437343 6606
1ac9108a
SM
6607 * coding.h (decode_coding_string, encode_coding_string):
6608 Use SBYTES macro.
f0bed503 6609
1ac9108a 6610 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6611 (doprnt): Merge with doprnt1, discarding lispstrings code.
6612 * lisp.h (doprnt_lisp): Don't declare.
6613
416e006d
JL
66142009-08-07 Juri Linkov <juri@jurta.org>
6615
6616 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6617
6f7d5780
DN
66182009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6619
6620 * print.c (syms_of_print): Undo previous change.
6621
f19a0f5b
TZ
66222009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6623
6624 * lread.c (read1, syms_of_lread): Read hashtables back from the
6625 readable format.
6626
6627 * print.c (print_preprocess, print_object): Print hashtables fully
6628 and readably.
6629 (syms_of_print): Provide 'hashtable-print-readable.
6630
b9173dc2
AR
66312009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6632
6633 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6634 no family set.
6635 (nsfont_open): Handle case when entity has no family.
6636
1586503c
AR
66372009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6638
6639 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6640 element, not a list, for match case.
6641
087048cd
KH
66422009-07-28 Kenichi Handa <handa@m17n.org>
6643
6644 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6645 rigidly.
6646
6647 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6648 font_parse_xlfd. Check font properties more rigidly.
6649
780c2506
DN
66502009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6651
31fd7c5c
JB
6652 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6653 bsd-common.h.
780c2506 6654
a8c0cc18
KH
66552009-07-27 Kenichi Handa <handa@m17n.org>
6656
6657 * xfaces.c (face_with_height): Call font_clear_prop.
6658
4fbe2306
CY
66592009-07-26 Chong Yidong <cyd@stupidchicken.com>
6660
111d9af3
CY
6661 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6662
6663 * xterm.c (x_term_init): Use Qx.
6664
4fbe2306
CY
6665 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6666
1ac9108a 6667 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6668 (ns_get_color): Revert 2009-07-16 change.
6669
beb0b7f9
EZ
66702009-07-25 Eli Zaretskii <eliz@gnu.org>
6671
6672 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6673 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6674
2baf5e76
KR
66752009-07-25 Ken Raeburn <raeburn@raeburn.org>
6676
1ac9108a
SM
6677 * coding.h (decode_coding_string, encode_coding_string):
6678 Use SCHARS macro.
8890e5f5 6679
2baf5e76 6680 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6681 (load_depth): Delete.
2baf5e76
KR
6682 (Qload_in_progress): New variable.
6683 (load_unwind): Don't reference load_depth or load_in_progress.
6684 (Fload): Likewise; specbind Qload_in_progress instead.
6685 (init_lread): Don't initialize load_depth.
6686 (syms_of_lread): Initialize and protect Qload_in_progress.
6687
1395c6f5
AR
66882009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6689
6690 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6691
4e2f36cf
AR
66922009-07-23 Yavor Doganov <yavor@gnu.org>
6693
6694 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6695
5dd9a6f7
AR
66962009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6697
6698 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6699 Bugs 3792, 3720, 2402.
6700 (ns_lookup_indexed_color): Check for bad index.
6701 (ns_index_color): Init unused slot to 0.
6702 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6703 Bug 3714, possibly 3082.
5dd9a6f7 6704
c902b920
JR
67052009-07-22 Jason Rumney <jasonr@gnu.org>
6706
1ac9108a
SM
6707 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6708 Position IME window at cursor (Bug#2570).
c902b920
JR
6709 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6710 (globals_of_w32fns): Dynamically load functions required above.
6711
6712 * w32term.c (w32_draw_window_cursor): Send message to reposition
6713 any IME window.
6714
090101cf
CY
67152009-07-21 Chong Yidong <cyd@stupidchicken.com>
6716
6717 * fileio.c: Revert 2009-07-16 changes.
6718 (Vauto_save_include_big_deletions): New variable.
6719 (Fdo_auto_save): Disable auto-save only if
6720 auto-save-include-big-deletions is nil.
6721
e6583e3d
CY
67222009-07-21 Chong Yidong <cyd@stupidchicken.com>
6723
6724 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6725 the overflowed pixels into account (Bug#3879).
6726
ece435a5
KR
67272009-07-21 Ken Raeburn <raeburn@raeburn.org>
6728
6729 * lread.c (load_depth): New variable.
6730 (Fload, load_unwind, init_lread): Set it to the load recursion
6731 depth; set load_in_progress as a simple boolean based on the
6732 current load_depth. (Bug#3892)
6733
40b2d973
AR
67342009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6735
6736 * nsfont.m (ns_has_attribute): Remove.
6737 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6738
10be7e0d
JL
67392009-07-18 Juri Linkov <juri@jurta.org>
6740
6741 * process.c (Fset_process_query_on_exit_flag): Mention killing
6742 a buffer in docstring.
6743
fa055055
KH
67442009-07-17 Kenichi Handa <handa@m17n.org>
6745
6746 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6747
042f7b69
YM
67482009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6749
6750 * nsfns.m (Fns_set_alpha): Remove function.
6751 (syms_of_nsfns): Don't defsubr it.
6752
6753 * nsterm.m (ns_get_color): Remove incompatible color formats.
6754 (ns_color_to_lisp): Generate #rrggbb color format string.
6755
4be941e3
RS
67562009-07-16 Richard Stallman <rms@gnu.org>
6757
6758 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6759 (Fset_buffer_auto_saved): Handle save_length = -2.
6760
4e6b227d
CY
67612009-07-16 Chong Yidong <cyd@stupidchicken.com>
6762
6763 * xterm.c (Qx_gtk_map_stock): New var.
6764
6765 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6766 of calling intern each time.
6767
a1856973
YM
67682009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6769
6770 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6771 does tiling.
6772
6773 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6774
497e54d8
KH
67752009-07-14 Kenichi Handa <handa@m17n.org>
6776
72d36834
KH
6777 * font.c (font_vconcat_entity_vectors): New function.
6778 (struct font_sort_data): New member font_driver_preference.
6779 (font_compare): Check font_driver_preference.
6780 (font_sort_entities): The format of the first argument changed.
6781 (font_delete_unmatched): Likewise.
6782 (font_list_entities): The return type changed.
6783 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6784 (font_find_for_lface): Adjuste for the above changes.
6785 Don't suppress the checking of C even if the repertory supports it.
6786 (Flist_fonts): Adjust for the above changes.
72d36834 6787
1ac9108a
SM
6788 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6789 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6790 Reject a font who has adstyle property that is different from a
6791 langname derived from registry property.
1ac9108a 6792 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6793
b6046155
EZ
67942009-07-13 Eli Zaretskii <eliz@gnu.org>
6795
6796 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6797 local copy of dirfilename.
6798
fb6b6049
KH
67992009-07-13 Kenichi Handa <handa@m17n.org>
6800
e2402a5e
KH
6801 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6802 against max_char.
6803
fb6b6049
KH
6804 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6805 calling XSYMBOL (sym).
6806
65156807
EZ
68072009-07-11 Eli Zaretskii <eliz@gnu.org>
6808
1ac9108a
SM
6809 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6810 New function.
6811 (directory_files_internal) [WINDOWSNT]:
6812 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6813 the filesystem of the directory is fast or slow.
6814
6815 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6816 file name.
6817 (is_slow_fs): New function.
6818 (stat): Use it to determine whether to issue more system calls to
6819 get accurate file attributes, when w32-get-true-file-attributes is
6820 `local'.
6821
e0ab5fcf
JD
68222009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6823
6824 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6825 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6826 parameter font-parameter as default to the font dialog.
6827
784ceded
KH
68282009-07-10 Kenichi Handa <handa@m17n.org>
6829
6830 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6831
fb8edc0b
EZ
68322009-07-09 Eli Zaretskii <eliz@gnu.org>
6833
1ac9108a 6834 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6835
fb8edc0b
EZ
6836 * w32.c (stat): Treat UNC file names as residing on remote
6837 drives. (Bug#3542)
6838
635c75b1
KH
68392009-07-09 Kenichi Handa <handa@m17n.org>
6840
6841 * fontset.c (fontset_find_font): Fix previous change.
6842
c1d5ce94
MA
68432009-07-08 Michael Albinus <michael.albinus@gmx.de>
6844
6845 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6846 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6847 error flag.
6848
edb61b39
KH
68492009-07-08 Kenichi Handa <handa@m17n.org>
6850
374bf7e4
KH
6851 * fontset.c (fontset_find_font): Fix the logic of handling
6852 charset_matched.
6853 (font_for_char): Delete unused var.
6854 (generate_ascii_font_name): Delete it.
6855
edb61b39
KH
6856 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6857
6858 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6859 (encode_coding_sjis): Fix the code range check.
6860
0f3f018c
CY
68612009-07-07 Chong Yidong <cyd@stupidchicken.com>
6862
6863 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6864 (Fexpand_file_name): Copy string data properly (Bug#3772).
6865
fcaf6f3a
JD
68662009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6867
6868 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6869 first MapNotify.
6870
6809ca75
KH
68712009-07-07 Kenichi Handa <handa@m17n.org>
6872
6873 * character.h (unibyte_has_multibyte_table): Delete extern.
6874 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6875
6876 * charset.c (Fset_charset_priority): Update charset_unibyte.
6877 (syms_of_charset): Initialize charset_unibyte.
6878
6879 * character.c (unibyte_has_multibyte_table): Delete it.
6880 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6881 charset_unibyte.
6882 (multibyte_char_to_unibyte_safe): Likewise.
6883 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6884
1ac9108a 6885 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6886 (x_produce_glyphs): Likewise.
6887
6888 * .gdbinit (xcharset): Fix the treating $arg0.
6889
ad9e2d54
EZ
68902009-07-04 Eli Zaretskii <eliz@gnu.org>
6891
6892 Emulation of `getloadavg' on MS-Windows.
50426a04 6893 * w32.c: Include float.h.
ad9e2d54
EZ
6894 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6895 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6896 (get_native_system_info, get_system_times): New functions.
6897 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6898 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6899 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6900 g_b_init_get_system_times, and num_of_processors.
6901
0a3472c7
JR
69022009-07-03 Jason Rumney <jasonr@gnu.org>
6903
6904 * w32term.c (w32_initialize): Use standard types.
6905
80904120
EZ
69062009-07-03 Eli Zaretskii <eliz@gnu.org>
6907
6908 * dired.c (Ffile_attributes): Decode user and group names by the
6909 locale's encoding. (Bug#3443)
6910
6978862d
DN
69112009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6912
f8d23104
DN
6913 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6914 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6915
6916 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6917
6918 * term.c (init_tty): Remove spurious #ifdef.
6919
6978862d
DN
6920 * m/mips.h: Mention this file is also used for netbsd.
6921 * m/pmax.h: Remove file.
6922
e044e4fc
JD
69232009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6924
6925 * xterm.h (struct x_display_info): Add invisible_cursor.
6926 (struct x_output): Add current_cursor.
6927
6928 * xterm.c (XTtoggle_invisible_pointer): New function.
6929 (x_define_frame_cursor): Don't define cursor if invisible or the
6930 same as before. Set current_cursor.
6931 (x_create_terminal): Set toggle_invisible_pointer_hook.
6932
6933 * xfns.c (make_invisible_cursor): New function.
6934 (x_set_mouse_color): Call make_invisible_cursor.
6935 Set current_cursor.
6936 (x_window): Set current_cursor.
6937
6938 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6939
6940 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6941 inserting a character.
6942 (read_avail_input): Call frame_make_pointer_visible.
6943
6944 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6945 (frame_make_pointer_invisible, frame_make_pointer_visible):
6946 New functions.
e044e4fc
JD
6947 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6948
6949 * frame.h: Declare frame_make_pointer_invisible and
6950 frame_make_pointer_visible.
6951 (struct frame): Add pointer_invisible.
6952
574c8efa
JD
69532009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6954
7b507248
JD
6955 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6956 frame isn't visible.
6957 (xg_frame_resized): If width/height is -1, get size of window
6958 from X server.
6959
6960 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6961 for MapNotify.
6962
835bdaa7 6963 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6964 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6965 (flush_and_sync): Reintroduce.
574c8efa 6966
3f1c6666 69672009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6968
31fd7c5c 6969 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6970
6971 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6972 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6973
6974 * frame.h: Declare Qsticky.
6975
cad9ef74
JD
6976 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6977
6978 * nsfns.m (ns_frame_parm_handlers): Ditto.
6979
6980 * frame.c: Declare Qsticky.
6981 (frame_parms): Add sticky.
6982
6983 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6984
6985 * xterm.h: Declare x_set_sticky.
6986
6987 * xterm.c (x_set_sticky): New function.
6988
69b16610
JD
6989 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6990 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6991 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6992
6993 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6994
6995 * frame.c: Qmaximized is new.
6996 (x_set_frame_parameters): Do not handle fullscreen specially.
6997 Only set width and height if explicitly set.
6998 (x_set_fullscreen): Handle Qmaximized.
6999 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
7000 (syms_of_frame): Initialize Qmaximized.
7001
1ac9108a
SM
7002 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
7003 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
7004
7005 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
7006 for Expose event. Add call to x_check_fullscreen for MapNotify event.
7007 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
7008 set gravity to NorthWestGravity when USE_GTK.
7009 (set_wm_state): New function.
31fd7c5c 7010 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
7011 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
7012 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 7013 or the case when no window manager is running. That means remove calls
3f1c6666
JD
7014 to x_real_positions and x_fullscreen_adjust.
7015
7016 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
7017 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
7018 flush_and_sync.
7019 (xg_height_changed): New function.
7020 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
7021 and gtk_window_set_policy. Set frame gravity after parsing the
7022 geometry string.
3f1c6666
JD
7023 (xg_update_frame_menubar, free_frame_menubar)
7024 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7025 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
7026 Remove calls to xg_frame_set_char_size.
7027
fd503d99
KH
70282009-07-01 Kenichi Handa <handa@m17n.org>
7029
7030 * keyboard.c (decode_keyboard_code): New function.
7031 (tty_read_avail_input): Decode the input bytes if necessary.
7032
1ac9108a
SM
7033 * coding.c (setup_coding_system):
7034 Initialize coding->carryover_bytes to 0.
fd503d99
KH
7035 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
7036 use Qno_conversion.
7037
24ed93fb
YM
70382009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7039
7040 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
7041
99061dfc
CY
70422009-06-30 Chong Yidong <cyd@stupidchicken.com>
7043
1ac9108a 7044 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 7045
ff90fbde
JR
70462009-06-30 Jason Rumney <jasonr@gnu.org>
7047
7048 * w32term.c (w32_initialize): Use GetModuleHandle for library that
7049 is already loaded.
7050 Set user model ID if supported (bug#1849).
7051
5f445726
JM
70522009-06-29 Jim Meyering <meyering@redhat.com>
7053
7054 Remove useless if-before-xfree test.
7055 * nsfont.m (nsfont_close): Remove useless test.
7056 * term.c (delete_tty): Likewise.
7057 * w32.c (system_process_attributes): Likewise.
7058 * w32font.c (w32font_close): Likewise.
7059 * xfaces.c (x_free_gc): Likewise.
7060 * xselect.c (buffer): Likewise.
7061
b9607587
AS
70622009-06-28 Andreas Schwab <schwab@linux-m68k.org>
7063
7064 * process.c (send_process): Keep decoded string in a local
7065 variable and protect it from GC. (Bug#3521)
7066
89ba96f4
EZ
70672009-06-28 Eli Zaretskii <eliz@gnu.org>
7068
7069 * term.c (create_tty_output) [MSDOS]: #ifdef away.
7070 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
7071
098a1589
CY
70722009-06-28 Chong Yidong <cyd@stupidchicken.com>
7073
485422be
CY
7074 * xdisp.c (start_display, handle_face_prop)
7075 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
7076 (redisplay_window, try_window_id, produce_image_glyph):
7077 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 7078
098a1589
CY
7079 * xterm.c (x_update_window_begin, x_new_focus_frame)
7080 (x_scroll_bar_handle_click, handle_one_xevent)
7081 (handle_one_xevent, XTread_socket, x_focus_on_frame)
7082 (x_make_frame_visible, x_make_frame_invisible)
7083 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
7084 code chunks that are now obsolete.
7085
78c38319
MA
70862009-06-28 Michael Albinus <michael.albinus@gmx.de>
7087
7088 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
7089 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
7090 for hours, when optimzation is enabled.
7091 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
7092 (xd_read_message): Make them static.
7093
4189ed40
CY
70942009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
7095
7096 * term.c (turn_on_face): Allow simultaneously bold and dim
7097 terminal faces (Bug#3530).
7098
cd9b5e16
CY
70992009-06-27 Chong Yidong <cyd@stupidchicken.com>
7100
4e23bedb
CY
7101 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
7102
cd9b5e16
CY
7103 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
7104 truncation glyphs (Bug#3686).
7105
07cc3c35
GM
71062009-06-27 Glenn Morris <rgm@gnu.org>
7107
7108 * m/pmax.h: Restore file, with only netbsd portions.
7109
31fd7c5c 71102009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 7111
cd9b5e16 7112 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 7113
42d4a64f
KH
71142009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
7115
7116 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
7117 the arg FORCE_SYMBOL.
7118
930fe55b 71192009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
7120
7121 * fontset.c (fontset_find_font): When a usable rfont_def is found
7122 in a fallback font-group, make it the first element of the group.
7123
57ebc3fd
CY
71242009-06-24 Chong Yidong <cyd@stupidchicken.com>
7125
7126 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
7127
f084f942
KH
71282009-06-24 Kenichi Handa <handa@m17n.org>
7129
7130 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
7131 set for C.
7132 (fontset_font): Record the availability of a font for C both in
7133 the realized fontsets of the current one and the default one.
7134
2f686c87
DN
71352009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
7136
7137 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
7138 conditional, it is always defined on AIX.
7139
666e158e
MB
71402009-06-23 Miles Bader <miles@gnu.org>
7141
7142 * window.c (Vrecenter_redisplay): New variable.
7143 (syms_of_window): Initialize it.
7144 (Qtty): New extern declaration.
7145 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
7146
c6da7cd2
JM
71472009-06-23 Jim Meyering <meyering@redhat.com>
7148
1ac9108a
SM
7149 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
7150 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 7151 pointer dereferences are guaranteed to be valid.
c6da7cd2 7152
678dca3d
KH
71532009-06-23 Kenichi Handa <handa@m17n.org>
7154
74d75424
KH
7155 * emacs.c (main): Call init_font ().
7156
7157 * font.h (Vfont_log): Extern it.
7158 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7159
7160 * font.c (font_sort_entities, font_list_entities)
7161 (font_matching_entity, font_open_entity)
7162 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7163 (Vfont_log): Delete static.
7164 (font_log_env_checked): Delete this variable.
7165 (font_add_log): Don't check font_log_env_checked.
7166 (font_deferred_log): Check Vfont_log.
7167 (init_font): New function.
7168
678dca3d
KH
7169 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7170
7171 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7172
7173 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7174
7175 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7176
7177 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7178 (face_for_char): Don't call font_deferred_log here.
7179 (font_for_char): Likewise.
7180
8a668709
CY
71812009-06-22 Chong Yidong <cyd@stupidchicken.com>
7182
9a01ee33
CY
7183 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7184 rather than its background_width for drawing the overline and
7185 underline (Bug#489).
7186
7187 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7188 rather than its background_width for drawing the overline and
7189 underline (Bug#489).
ec7c9926
CY
7190 (xg_default_icon_file): New variable.
7191 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7192 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7193
8a668709
CY
7194 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7195 (load_overlay_strings): Remove externs.
7196 (fast_find_position): Function deleted.
7197 (mouse_face_from_buffer_pos): New function, based on
7198 fast_find_position. Correctly handle before-strings,
7199 display-strings, and after-strings (Bug#1220).
7200 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7201
4d4c02d8
CY
72022009-06-21 Chong Yidong <cyd@stupidchicken.com>
7203
1ac9108a 7204 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7205 (move_it_in_display_line_to, move_it_in_display_line_to)
7206 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7207
70243478
CY
72082009-06-21 Chong Yidong <cyd@stupidchicken.com>
7209
7210 * Branch for 23.1.
7211
13087e59
JR
72122009-06-21 Jason Rumney <jasonr@gnu.org>
7213
7214 * w32term.c (keyboard_codepage): New static variable.
7215 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7216 (w32_read_socket) [WM_CHAR]: Use it to decode character
7217 input (bug#3237).
7218 (w32_initialize): Initialize it.
7219 (codepage_for_locale): New function.
7220
4735b74e
KR
72212009-06-20 Ken Raeburn <raeburn@raeburn.org>
7222
7223 * process.c (status_message): Pass Faset index argument as a lisp
7224 object, so as to work with USE_LISP_UNION_TYPE.
7225
0e727afa
YM
72262009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7227
7228 * coding.c (Ffind_coding_systems_region_internal):
7229 Cache checked characters.
7230
cf299835
KH
72312009-06-18 Kenichi Handa <handa@m17n.org>
7232
1ac9108a 7233 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7234
90f20d94
AS
72352009-06-18 Andreas Schwab <aschwab@redhat.com>
7236
7237 * xdisp.c (redisplay_internal): Check that the frame is still
7238 live after redisplay of its windows.
7239 (redisplay_windows): Check that the window is still live.
7240
7f1faf1c
KH
72412009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7242
7243 * coding.c (detect_coding_utf_16): Fix previous change.
7244
cc13543e
KH
72452009-06-16 Kenichi Handa <handa@m17n.org>
7246
7247 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7248 UTF-16 by checking the dispersion of Eth and Oth bytes.
7249
977b85f4
AS
72502009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7251
7252 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7253
66bd43d1
KH
72542009-06-15 Kenichi Handa <handa@m17n.org>
7255
7256 * process.c (status_message): Fix previous change. Be sure to
7257 decode a localized string.
7258
cb5ca9c5
YM
72592009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7260
7261 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7262 add comment explaining why.
7263
ec7709ba 72642009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7265
ec7709ba 7266 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7267
4b7f335c
AR
72682009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7269
7270 * nsfont.m (ns_attribute_value): Remove.
7271 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7272 (ns_has_attribute): Shrink the normal range.
7273 (ns_findfonts): Don't worry about requested spec in determining
7274 need for synthItal.
e41820ee 7275 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7276
73b26103
SZ
72772009-06-14 Seiji Zenitani <zenitani@mac.com>
7278
7279 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7280
5753e4da
KH
72812009-06-11 Kenichi Handa <handa@m17n.org>
7282
7283 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7284 overhang for the static composition case.
7285
3561b671
KH
72862009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7287
5753e4da
KH
7288 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7289 overhang for the automatic composition case.
7290
3561b671
KH
7291 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7292 composition case.
7293
852bbd41
CY
72942009-06-10 Chong Yidong <cyd@stupidchicken.com>
7295
7296 * xdisp.c (get_next_display_element): When handling wrap-prefix
7297 and line-prefix, treat \n as a control character (bug#3502).
7298
9903d1e6
KH
72992009-06-10 Kenichi Handa <handa@m17n.org>
7300
7301 * font.c (font_parse_family_registry): Fix for one-char foundry.
7302 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7303
0bcbaaaa
CY
73042009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7305
7306 * process.c (status_message): Fix handling of multibyte signal
7307 string (Bug#3499).
7308
40aa3f13
JM
73092009-06-09 Jim Meyering <meyering@redhat.com>
7310
1f80c7e2
CY
7311 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7312 color name is missing.
40aa3f13 7313
72d51285
KH
73142009-06-09 Kenichi Handa <handa@m17n.org>
7315
7316 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7317 FROM-CODE and TO-CODE are codepoints of CHARSET.
7318
c1d04d84
AR
73192009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7320
7321 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7322
73232009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7324
7325 Changes to support :script/:lang/:otf in NS font driver.
7326 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7327 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7328 indicate not part of font driver interface, and change callers.
7329 (ns_get_family): Remove pointless null check.
7330 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7331 ns_spec_to_descriptor, ns_descriptor_to_entity.
7332 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7333 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7334 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7335 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7336 (ns_get_req_script, ns_accumulate_script_ranges)
7337 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7338 New functions.
7339 (nsfont_list, nsfont_match): Use ns_findfonts.
7340 (nsfont_open): Use font descriptor instead of traits.
7341 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7342 (dump_glyphstring): Rename to ns_dump_glyphstring.
7343
c7eb9816
AR
7344 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7345
c1d04d84
AR
7346 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7347
7348 * fontset.c (fontset_from_font): Remove NS-specific code.
7349
ec7709ba 73502009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7351
7352 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7353 nonactive windows.
7354
31fd7c5c 73552009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7356
1ac9108a 7357 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7358
68852c13 73592009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7360
7361 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7362
6756cd1d
CY
73632009-06-07 Chong Yidong <cyd@stupidchicken.com>
7364
7365 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7366 account for the overflowing of newlines into the last glyph on the
7367 display line (Bug#3482).
7368
28bf482a
DR
73692009-06-05 David Reitter <david.reitter@gmail.com>
7370
ec7709ba
JB
7371 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7372 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7373 Fns_selection_exists_p, Fns_selection_owner_p.
7374
fdb55376
JR
73752009-06-03 Jason Rumney <jasonr@gnu.org>
7376
7377 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7378 available. (Bug#3379)
7379
05129fbe
KH
73802009-05-29 Kenichi Handa <handa@m17n.org>
7381
1ac9108a
SM
7382 * coding.c (get_translation_table):
7383 Check Venable_character_translation.
05129fbe 7384
ec7709ba 73852009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7386
ec7709ba
JB
7387 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7388 (x_make_frame_visible): Move frame to front rather than calling
15891144 7389 ns_raise_frame().
ec7709ba 7390 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7391 isn't key window.
ec7709ba 7392 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7393 drawRect may be called by NSView even if the frame is hidden.
7394
ec7709ba
JB
7395 * nsfns.m (Fx_create_frame): Follow other ports in
7396 determining visibility; default to t. Ensure async_visible is set.
15891144 7397
21f73755
EZ
73982009-05-23 Eli Zaretskii <eliz@gnu.org>
7399
7400 * dired.c (Ffile_attributes): Doc fix.
7401
34001e41
CY
74022009-05-22 Chong Yidong <cyd@stupidchicken.com>
7403
7404 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7405
46306a17
SM
74062009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7407
7408 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7409 and xfont_scratch_props.
7410 (syms_of_xfont): Do it here instead.
7411 (xfont_find_ccl_program): Delete, unused.
7412 (xfont_open): Delete unused var `i'.
7413
ef6e0694
KH
74142009-05-21 Kenichi Handa <handa@m17n.org>
7415
7416 * fontset.c (Qlatin): Don't make it static.
7417
46306a17
SM
7418 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7419 New functions.
ef6e0694
KH
7420 (xfont_scripts_cache, xfont_scratch_props): New variables.
7421 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7422 (xfont_list_pattern): Argument changed. Callers changed.
7423 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7424 (xfont_list): Don't reject a font spec with :script property.
7425 (xfont_has_char): Fix setting of encoding.
7426 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7427 xfont_scratch_props.
7428
74292009-05-19 Kenichi Handa <handa@m17n.org>
7430
46306a17 7431 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7432 Callers changed.
7433
74342009-05-18 Kenichi Handa <handa@m17n.org>
7435
7436 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7437
ac71ced7
SM
74382009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7439
7440 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7441 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7442
1c6d1051
YM
74432009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7444
7445 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7446 (x_delete_terminal): Dissociate resource database from display and
7447 then call XrmDestroyDatabase before closing display.
7448
9b9b779c
AR
74492009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7450
7451 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7452 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7453 whether selected frame is viable before raising it (based on patch
7454 by David Reitter), and improve commentary.
7455 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7456
cccd42d5
KH
74572009-05-15 Kenichi Handa <handa@m17n.org>
7458
7459 * font.c (Ffont_spec): Check arguments.
7460
337fbd17
CY
74612009-05-14 Chong Yidong <cyd@stupidchicken.com>
7462
7463 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7464 weight when testing attributes (Bug#3282).
7465
47a6002f
JD
74662009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7467
7468 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7469 what we expect to get in the next ConfigureNotify event.
7470
9cb363db
YM
7471 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7472 before Xft one (Bug#1696).
7473
b9126609
CY
74742009-05-07 David Reitter <david.reitter@gmail.com>
7475
7476 * nsfns.m (Fx_display_planes): Compute bitplanes using
7477 NSBitsPerPixelFromDepth (Bug#3207).
7478
27a69fd9
CY
74792009-05-10 Chong Yidong <cyd@stupidchicken.com>
7480
7481 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7482
00f37552
TTN
74832009-05-10 Ulrich Mueller <ulm@gentoo.org>
7484
7485 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7486
2d82a920
DR
74872009-05-07 David Reitter <david.reitter@gmail.com>
7488
ec7709ba
JB
7489 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7490 Respect mouse face background.
2d82a920 7491
46b0d52d
DR
74922009-05-07 David Reitter <david.reitter@gmail.com>
7493
ec7709ba
JB
7494 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7495 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7496 in ns_update_begin and ns_update_end.
7497
ce1b23bb
SM
74982009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7499
5996e1b7
SM
7500 * nsfns.m (ns_get_screen): Rewrite.
7501 Don't presume selected-frame is of type `ns'.
7502
ba98e3a0
SM
7503 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7504 all drivers.
7505
ce1b23bb
SM
7506 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7507
bcda200f
YM
75082009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7509
7510 * keyboard.h (add_user_signal): Fix typo in extern.
7511
7512 * lisp.h (add_user_signal): Remove extern.
7513
7514 * unexelf.c (unexec): Consider a section to precede the .bss section
7515 if its addresses overlap that of .bss.
7516 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7517 instead of dumping process.
7518
864660a2
SM
75192009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7520
7521 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7522
50da4e56
SM
75232009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7524
7525 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7526
51520a1a
DN
75272009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7528
7529 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7530 any statements.
7531
409ea3a1
AS
75322009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7533
59c4c60f
AS
7534 * process.c (read_process_output): Make sure the current buffer is
7535 always restored.
7536
409ea3a1
AS
7537 * coding.c (record_conversion_result): Don't modify
7538 Vlast_code_conversion_error for successful result.
7539 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7540
56f00ed2
KH
75412009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7542
7543 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7544 (load_charset_map): Remove unnecessary code.
56f00ed2 7545
4491c9d2
DR
75462009-04-30 David Reitter <david.reitter@gmail.com>
7547
35f5b128 7548 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7549 through f24.
7550
6970f632
CY
75512009-04-30 Chong Yidong <cyd@stupidchicken.com>
7552
7553 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7554
7555 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7556 face_at_buffer_position.
7557 (face_before_or_after_it_pos, get_next_display_element)
7558 (note_mouse_highlight): Update face_at_buffer_position call.
7559
7560 * term.c (term_mouse_highlight):
7561 * msdos.c (IT_note_mouse_highlight):
7562 * fontset.c (Finternal_char_font):
35f5b128 7563 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7564
7565 * dispextern.h (face_at_buffer_position): Update prototype.
7566
0c616f63
KH
75672009-04-30 Kenichi Handa <handa@m17n.org>
7568
35f5b128 7569 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7570
ad3aaf33
AS
75712009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7572
7573 * callproc.c (Fcall_process): Fix GC protection. Make sure
7574 current buffer is always restored.
7575
c3c963a0
YM
75762009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7577
7578 * atimer.c (init_atimer): Also clear stopped_atimers.
7579
7580 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7581
7e3386cb
YM
7582 * process.c (create_process): Clean up merger residues of
7583 2008-07-17 change.
7584
91f68422
CY
75852009-04-29 Ulrich Mueller <ulm@gentoo.org>
7586
7587 * lread.c (Vread_circle): New variable.
7588 (read1): Disable recursive read if Vread_circle is nil.
7589
24b34550
KH
75902009-04-29 Kenichi Handa <handa@m17n.org>
7591
7592 * fontset.h (set_default_ascii_font): Delete extern.
7593
7594 * fontset.c (set_default_ascii_font): Delete this unused function.
7595
7596 * frame.c (x_set_font): When ARG is a font-object, check if the
7597 font-object matches with the ASCII font-spec of the frame's
9c358bda 7598 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7599
77bf07e1
AS
76002009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7601
7602 * fns.c (Flocale_info): Protect vector from GC during decoding.
7603
7604 * process.c (Fstart_process): Protect argv strings from GC during
7605 encoding.
7606
2c55aacf
AS
76072009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7608
7609 * sysdep.c: Include <ctype.h>.
7610
b892d3c9
DR
76112009-04-27 David Reitter <david.reitter@gmail.com>
7612
35f5b128 7613 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7614 Remove commented-out code.
7615
9d0644c4
JB
76162009-04-26 Johan Bockgård <bojohan@gnu.org>
7617
7618 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7619
b7053016
JR
76202009-04-25 Jason Rumney <jasonr@gnu.org>
7621
7622 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7623
4e8231f3
YM
76242009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7625
7626 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7627 Swap bytes in short integer if fringe bitmap width > 8.
7628
493dcf2c
KH
76292009-04-23 Kenichi Handa <handa@m17n.org>
7630
7631 * xfaces.c (Fx_list_fonts): If a font size is specified in
7632 PATTERN, set it in returned scalable fonts.
7633
401e9e57
CY
76342009-04-22 Chong Yidong <cyd@stupidchicken.com>
7635
708e05dc
CY
7636 * keyboard.c (Fset_input_meta_mode): Doc fix.
7637
7638 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7639
1ac9108a 7640 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7641
7642 * coding.c (Fterminal_coding_system): Doc fix.
7643
7644 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7645 (Fx_display_pixel_height, Fx_display_planes)
7646 (Fx_display_color_cells, Fx_server_max_request_size)
7647 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7648 (Fx_display_mm_height, Fx_display_mm_width)
7649 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7650 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7651 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7652 (check_x_display_info): Handle terminal objects instead of
7653 terminal ids.
7654
401e9e57
CY
7655 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7656 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7657 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7658 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7659
df80c7f0
KH
76602009-04-21 Kenichi Handa <handa@m17n.org>
7661
5a8f12af 7662 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7663 (font_score): Check AVGWIDTH too.
908567ef 7664
df80c7f0
KH
7665 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7666 worst case.
1ac9108a
SM
7667 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7668 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7669
705af33f
JR
76702009-04-19 Jason Rumney <jasonr@gnu.org>
7671
7672 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7673 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7674
7675 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7676 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7677 get_phys_cursor_geometry.
7678
b71ac3dd 7679 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7680 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7681 using get_phys_cursor_geometry.
7682
7683 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7684 correctly calculated.
7685
dc2933eb
JD
76862009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7687
1ac9108a
SM
7688 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7689 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7690 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7691 is deprecated.
7692
973e7849
AS
76932009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7694
7695 * font.c (font_put_frame_data): Use xfree instead of free.
7696
314d66f4
JB
76972009-04-17 Juanma Barranquero <lekktu@gmail.com>
7698
7699 * w32font.c (Qja, Qko): Remove declarations.
7700 (syms_of_w32font): Don't DEFSYM them.
7701
cf702558
CY
77022009-04-17 Chong Yidong <cyd@stupidchicken.com>
7703
7704 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7705
7706 * font.h (Qja, Qko): Extern them.
7707
7708 * ftfont.c (Qja, Qko): Remove declarations.
7709
7710 * xfont.c (Qja, Qko): Remove declarations.
7711
b50504f5
KH
77122009-04-17 Kenichi Handa <handa@m17n.org>
7713
bde25748
KH
7714 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7715 string from a vector to handle Latin-1 characters correctly.
7716
b50504f5
KH
7717 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7718 entity even if the cache hits.
7719
f4646fff
AS
77202009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7721
7722 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7723 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7724
e7deaab0
AS
7725 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7726 * lisp.h: Adjust prototypes.
7727
0a0e7d49
CY
77282009-04-16 Chong Yidong <cyd@stupidchicken.com>
7729
7730 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7731 change (Bug#3003).
7732
3c908a57
KH
77332009-04-16 Kenichi Handa <handa@m17n.org>
7734
1ac9108a 7735 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7736
7737 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7738 adstyle.
7739
7740 * ftfont.c (Qja, Qko): Don't make them static.
7741 (enum ftfont_cache_for): New enum.
7742 (fc_charset_table): Undo the previous change.
7743 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7744 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7745 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7746 non-scarable font, try to get AVERAGE_WIDTH.
7747 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7748 Change ft_face_cache from a list of a hash-table. Don't check
7749 `ja' and `ko' adstyle here.
7750 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7751 FTFONT_CACHE_FOR_CHARET.
7752 (ftfont_get_charset): Undo the previous change.
1ac9108a 7753 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7754 (ftfont_close): Likewise.
7755 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7756
7757 * font.c (font_sort_entites): Change the meaning of the arg
7758 BEST-ONLY. Don't optimize for VEC of lenght 1.
7759 (font_select_entity): Just return the value of font_sort_entites.
7760
7761 * xfaces.c (merge_face_vectors): Reflect font properties in
7762 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7763 font_clear_prop if a face attribute doesn't change.
7764
3c908a57
KH
7765 * charset.h (charset_ksc5601): Extern it.
7766
7767 * charset.c (charset_ksc5601): New variable.
7768 (Fdefine_charset_internal): Set charset_ksc5601.
7769 (init_charset_once): Initialize charset_ksc5601 to -1.
7770
d65859c3
DN
77712009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7772
7773 * fileio.c (history_delete_duplicates): Remove unused declaration.
7774
7775 * callint.c (history_delete_duplicates): New declaration.
7776 (Fcall_interactively): Remove command history duplicates when
7777 history_delete_duplicates is true.
7778
3ba010e5
EZ
77792009-04-14 Eli Zaretskii <eliz@gnu.org>
7780
7781 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7782
06f19b91
KH
77832009-04-14 Kenichi Handa <handa@m17n.org>
7784
7785 * font.c (Ffont_info): Fix docstring. Fix the second element of
7786 the returned value (bug#2949).
7787
2cce8bfc
CY
77882009-04-14 Chong Yidong <cyd@stupidchicken.com>
7789
7790 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7791
d156542d
KH
77922009-04-14 Kenichi Handa <handa@m17n.org>
7793
7794 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7795 encoding charset is ascii_compatible.
7796
7797 * charset.c (Fdefine_charset_internal): Make charset
7798 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7799 code_offset is 0, and covers all ASCII characters.
7800
86fa089e
SM
78012009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7802
7803 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7804 (ns_string_to_pasteboard_internal):
7805 * nsmenu.m (process_dialog):
7806 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7807 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7808 * lisp.h (Fx_load_color_file): Declare.
7809
a8a3728b
KH
78102009-04-13 Kenichi Handa <handa@m17n.org>
7811
1ac9108a 7812 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7813 (font_select_entity): Suppress the code to optimize for the same
7814 kind of fonts.
7815 (font_load_for_lface): Get a font that supports at least ASCII
7816 characters.
7817
7818 * ftfont.c (Qja, Qko): New variables.
7819 (fc_charset_table): Delete uniquifier data for iso8859-1.
7820 (ftfont_get_latin1_charset): New function.
7821 (get_adstyle_property): New function.
7822 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7823 bitmap fonts.
7824 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7825 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7826 `ko' or `ja'.
7827 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7828 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7829 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7830 property.
7831 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7832 (syms_of_ftfont): DEFSYM Qja and Qko.
7833
483670b5
KH
78342009-04-09 Kenichi Handa <handa@m17n.org>
7835
12b55765
KH
7836 * charset.c (map_charset_chars): For a charset of `superset'
7837 method, fix calculation of code range.
7838
483670b5
KH
7839 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7840 from the list of extra properties.
7841 (font_clear_prop): Be sure to delete `:name' font property.
7842
57d3b93b
KH
78432009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7844
b4b2c2ca
YM
7845 * dispnew.c (redraw_overlapping_rows): Fix detection of
7846 overlapping for topmost and bottommost rows.
7847
1ac9108a 7848 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7849
472c3609
JR
78502009-04-06 Jason Rumney <jasonr@gnu.org>
7851
7852 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7853
ab193662
KH
78542009-04-06 Kenichi Handa <handa@m17n.org>
7855
7856 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7857
7858 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7859
0c26f026
KH
78602009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7861
7862 * ftfont.c (ftfont_open): Fix checking of the return value of
7863 FT_Load_Char. Fix setting font->underline_thickness.
7864
e173bbce
CY
78652009-04-04 Chong Yidong <cyd@stupidchicken.com>
7866
7867 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7868 (Fterminal_parameters, Fterminal_parameter)
7869 (Fset_terminal_parameter): In doc string, refer to terminal
7870 objects rather than terminal ids.
7871
693a2698
EZ
78722009-04-04 Eli Zaretskii <eliz@gnu.org>
7873
7874 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7875 ret_lim_data. (Bug#2867)
7876
d5221487
CY
78772009-04-03 Chong Yidong <cyd@stupidchicken.com>
7878
7879 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7880 so they don't get wider than the window, matching 2006-01-23
7881 change to the partner function in xdisp.c (Bug#2800).
7882
223509a3
KH
78832009-04-03 Kenichi Handa <handa@m17n.org>
7884
7885 * print.c (print_object): Make each lowest sub_char_table start a
7886 new line (Bug#2866).
7887
74fcd0b1
KH
78882009-04-02 Kenichi Handa <handa@m17n.org>
7889
7890 * fontset.c (fontset_font): Record no-font when a fontset
7891 explicitly tells not to try another font-specs.
7892
c542407d
SM
78932009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7894
7895 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7896
e3869731
KH
78972009-03-30 Kenichi Handa <handa@m17n.org>
7898
d8d2f142
KH
7899 * fontset.c (fontset_from_font): Specify only registry in a
7900 font-spec for all characters supported by that registry.
7901
e3869731
KH
7902 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7903 even if HAVE_M17N_FLT is not defined.
7904
5da5f805
CY
79052009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7906
7907 * ftfont.c: Conditionalize prototyping and use of
7908 ftfont_variation_glyphs.
7909
ab226c50
SM
79102009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7911
9628fed7
SM
7912 * frame.c (delete_frame): Work around compiler bug.
7913
7914 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7915 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7916 Some more EMACS_INT.
7917 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7918
7919 * xdisp.c (dump_glyph): Fix typo.
7920
ae19ba7c
SM
7921 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7922 (adjust_markers_gap_motion, adjust_markers_for_delete)
7923 (adjust_markers_for_insert, adjust_point)
7924 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7925 (make_gap, copy_text, count_size_as_multibyte, insert)
7926 (insert_and_inherit, insert_before_markers)
7927 (insert_before_markers_and_inherit, insert_1)
7928 (count_combining_before, count_combining_after, insert_1_both)
7929 (insert_from_string, insert_from_string_before_markers)
7930 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7931 (insert_from_buffer_1, adjust_after_replace)
7932 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7933 (replace_range_2, del_range, del_range_1, del_range_byte)
7934 (del_range_both, del_range_2, modify_region)
7935 (prepare_to_modify_buffer, signal_before_change)
7936 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7937 for buffer positions and sizes.
7938 * lisp.h: Adjust prototypes accordingly.
7939
7940 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7941 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7942 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7943
ab226c50
SM
7944 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7945
46dfb8fb
JD
79462009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7947
7948 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7949 lines and columns so we keep the same pixel height and width.
7950
7951 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7952 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7953 (x_handle_net_wm_state): New function to update frame parameter
7954 fullscreen.
7955 (x_term_init): Initialize atoms for _NET_WM_STATE.
7956
7957 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7958
d347e494
SM
79592009-03-27 Kevin Ryde <user42@zip.com.au>
7960
7961 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7962 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7963 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7964 (Fgpm_mouse_stop): Pass that new parameter.
7965 * termhooks.h (close_gpm): Adjust prototype.
7966
84db11d6
SM
79672009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7968
c95a5008
SM
7969 * lisp.h (Fx_focus_frame): Declare.
7970
84db11d6
SM
7971 * callint.c (Fcall_interactively): For '^' just delegate the work to
7972 handle-shift-selection.
7973 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7974
0a1958d6
CY
79752009-03-24 Chong Yidong <cyd@stupidchicken.com>
7976
0bfdff23
CY
7977 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7978
0a1958d6
CY
7979 * data.c (Qinteractive_form): New variable.
7980 (Finteractive_form): Use it.
7981
7982 * eval.c (Fcommandp): Use Qinteractive_form.
7983
58aec0d6
JR
79842009-03-24 Jason Rumney <jasonr@gnu.org>
7985
7986 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7987 Calculate total size precisely. Decode environment variables
7988 before substituting. (Bug#38)
7989
553dd618
KH
79902009-03-24 Kenichi Handa <handa@m17n.org>
7991
7992 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7993 encoding (Bug#2722).
553dd618 7994
c39ea606
JD
79952009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7996
7997 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7998 that gdpy is set.
7999
bc9b2b5e
AM
80002009-03-22 Alan Mackenzie <acm@muc.de>
8001
8002 * callint.c (Finteractive): Clarify the doc string - even
8003 promptless elements need \n separators.
8004
9f995a76
JR
80052009-03-22 Jason Rumney <jasonr@gnu.org>
8006
8007 * w32term.c (syms_of_w32term): Doc fix for
8008 x-use-underline-position-properties.
8009
22749e9a
EZ
80102009-03-21 Eli Zaretskii <eliz@gnu.org>
8011
8012 * w32.c (getpwuid): Change argument type to unsigned.
8013 (struct w32_id): Change type of `rid' member to unsigned.
8014 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
8015 argument ID to unsigned. All callers changed.
8016 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
8017
e00553bf
EZ
80182009-03-20 Eli Zaretskii <eliz@gnu.org>
8019
8020 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
8021 negative, produce a float value.
8022
8023 * dired.c (make_uid, make_gid): New functions.
8024 (Ffile_attributes): Use them to avoid negative UID and GID.
8025
f761d6b6
JB
80262009-03-20 Juanma Barranquero <lekktu@gmail.com>
8027
8028 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
8029 (syms_of_keyboard) <command-hook-internal, input-method-function>:
8030 Fix typos in docstrings.
8031
d507f8d7
KH
80322009-03-19 Kenichi Handa <handa@m17n.org>
8033
8034 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
8035 changed, use font_load_for_lface to get a new font object.
8036 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
8037
8038 * frame.c (x_set_font): Handle the case that ARG is a cons.
8039
c68845e0
GM
80402009-03-19 Glenn Morris <rgm@gnu.org>
8041
8042 * fileio.c (Fsubstitute_in_file_name): Doc fix.
8043
bfa49dd1
CY
80442009-03-19 Chong Yidong <cyd@stupidchicken.com>
8045
8046 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
8047
8458d4c1
KH
80482009-03-19 Kenichi Handa <handa@m17n.org>
8049
8050 * charset.c (load_charset_map_from_file): When a mapfile can't be
8051 loaded, signal an error.
8052
78e7d1fe
EZ
80532009-03-18 Eli Zaretskii <eliz@gnu.org>
8054
8055 * dired.c (Ffile_attributes): Make sure UID and GID are always
8056 positive, even if the value is too large for a positive EMACS_INT.
8057 Doc fix.
8058
8059 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
8060
5da9fdfa
YM
80612009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8062
8063 * xmenu.c (xdialog_show): Move Fredisplay call ...
8064 (Fx_popup_dialog): ... here.
8065
7519c40d
SM
80662009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
8067
8068 * dired.c (file_name_completion): Disable the first optimization just
8069 installed, since it is not implemented correctly.
8070
2cd298e2
SM
80712009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
8072
8073 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 8074 only if the entry can affect bestmatch.
2cd298e2
SM
8075 Stop the search early, as Ftry_completion already does.
8076
48d37adf
CY
80772009-03-17 Chong Yidong <cyd@stupidchicken.com>
8078
e10c9c93 8079 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 8080
9286b16a
CY
80812009-03-15 Chong Yidong <cyd@stupidchicken.com>
8082
8083 * keyboard.c (parse_menu_item): Don't display remappings as menu
8084 equivalent bindings (Bug#788).
8085
f7b146dc
JR
80862009-03-15 Jason Rumney <jasonr@gnu.org>
8087
8088 * w32term.h (WM_EMACS_PAINT): New message.
8089 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
8090 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
8091 before passing to lisp thread. (Bug#950)
8092
f761d6b6 80932009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 8094
d93f9575
CY
8095 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
8096 variable as it was never reset.
8097 (ns_term_init): Remove initialization of Lisp-settable defaults
8098 and ns_expand_space.
8099 (-setPanelFromDefaultValues): Remove ns_expand_space.
8100 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
8101 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
8102 i.e. no additional spacing, similar to Carbon port.
8103
d93f9575
CY
8104 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
8105 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 8106
305018ec
JD
81072009-03-14 Jan Djärv <jan.h.d@swipnet.se>
8108
8109 * sound.c (alsa_configure): Remove call to deprecated
8110 snd_pcm_sw_params_set_xfer_align.
8111
f761d6b6 81122009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
8113
8114 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
8115 after clicking in a detached tool bar.
8116 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
8117
46e722a9
SM
81182009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
8119
348db3dd
SM
8120 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
8121 int/Lisp_Object mixup).
46e722a9 8122
a3d16f39
KH
81232009-03-13 Kenichi Handa <handa@m17n.org>
8124
8125 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 8126 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
8127 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
8128 (set_fontset_font): Change ARG to a vector. Handle range_list in
8129 ARG correctly.
8130 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 8131 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
8132 the above change.
8133 (fontset_from_font): Fix previous change.
fe24f56a 8134 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
8135 entry. If FONTSET is the default fontset, don't set the extra
8136 slot of the returning char-table.
8137
b066e6b6
JB
81382009-03-12 Juanma Barranquero <lekktu@gmail.com>
8139
8140 * nsfns.m (Fx_close_connection): Doc fix.
8141 (Fns_do_applescript): Reflow docstring.
8142 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
8143 (Fx_display_pixel_width, Fx_display_pixel_height)
8144 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
8145 Fix typos in docstrings.
8146 (Fns_set_alpha): Fix typos in error messages.
8147
d472514e 81482009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 8149
d472514e 8150 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
8151 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8152 were used for such events.
8153
d472514e
JB
8154 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8155 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8156
d472514e 8157 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8158 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8159
fb930676
KH
81602009-03-11 Kenichi Handa <handa@m17n.org>
8161
ff85581a
KH
8162 * font.h (font_open_by_spec): Extern it.
8163
c50b7e98
KH
8164 * font.c (font_open_by_spec): New function.
8165 (font_open_by_name): Use font_open_by_spec.
8166
fb930676
KH
8167 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8168 fontset of the frame.
8169
8170 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8171 modify the default font of frames that use this fontset.
8172 (num_auto_fontsets): New variable.
8173 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8174 name. Be sure to set FONTSET_ASCII to the correct font name.
8175 (update_auto_fontset_alist): New function.
8176
df4e8455
JB
81772009-03-11 Juanma Barranquero <lekktu@gmail.com>
8178
8179 * makefile.w32-in: Update dependencies.
8180
0a375797
AR
81812009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8182
8183 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8184
61313fa3
SM
81852009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8186
8187 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8188
b55103fb
CY
81892009-03-10 Chong Yidong <cyd@stupidchicken.com>
8190
8191 * lread.c (Feval_buffer): Doc fix.
8192
dde2559c
KH
81932009-03-09 Kenichi Handa <handa@m17n.org>
8194
8195 * charset.c (Qfile_name_handler_alist): Extern it.
8196 (load_charset_map_from_file): Temporarily bind
8197 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8198
df4e8455 81992009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8200
47f588bb
GM
8201 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8202 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8203
4ddf94bd
AR
82042009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8205
4c9bdfc2
AR
8206 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8207 (x_set_window_size): Change back to calculated method of setting
8208 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8209 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8210 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8211
fe41ae9e
AR
8212 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8213
4c9bdfc2
AR
8214 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8215 accelerator in parens under GNUstep.
8216
825d0875
KH
82172009-03-06 Kenichi Handa <handa@m17n.org>
8218
8219 These changes are to detect incorrect composition sequence without
f3b3be74 8220 looking ahead the source. (Bug#2370)
825d0875
KH
8221
8222 * coding.h: Include "composite.h".
8223 (enum compisition_state): New enum.
8224 (struct compisition_status): New struct.
8225 (struct iso_2022_spec): New member cmp_status.
8226 (struct emacs_mule_spec): New struct.
8227 (struct coding_system): New members ctext_extended_segment_len and
8228 embedded_utf_8. Change the union member
8229 spec.emacs_mule_full_support to spec.emacs_mule.
8230
8231 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8232 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8233 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8234 (ADD_COMPOSITION_DATA): New arg nbytes.
8235 (emacs_mule_char): New arg cmp_status.
8236 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8237 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8238 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8239 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8240 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8241 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8242 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8243 (EMACS_MULE_COMPOSITION_END): New macro.
8244 (emacs_mule_finish_composition): New function.
8245 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8246 (decode_coding_emacs_mule): Avoid long looking ahead while
8247 handling composition.
8248 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8249 (ENCODE_COMPOSITION_RULE): New macro.
8250 (finish_composition): New function.
8251 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8252 (DECODE_COMPOSITION_START): New implementation.
8253 (DECODE_COMPOSITION_END): Likewise.
8254 (STORE_COMPOSITION_RULE): New macro.
8255 (decode_coding_iso_2022): Avoid long looking ahead while handling
8256 composition, CTEXT extended segment, and embedded UTF-8.
8257 (setup_coding_system): For a coding of type iso-2022, reset
8258 CODING_ISO_EXTSEGMENT_LEN (coding) and
8259 CODING_ISO_EMBEDDED_UTF_8 (coding).
8260 (get_translation): Delete arguments last_block, from_nchars,
8261 to_nchars. Callers changed.
8262 (produce_chars): Don't modify charbuf. Adjusted for the change of
8263 get_translation.
98a326f7 8264 (produce_composition): Adjust for the new annotation sequence.
825d0875 8265 (handle_composition_annotation): Likewise.
98a326f7 8266 (consume_chars): Adjust for the change of get_translation.
825d0875 8267
ccbc4452
AR
82682009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8269
4ddf94bd 8270 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8271
988a7ddb
KH
82722009-03-05 Kenichi Handa <handa@m17n.org>
8273
8274 * font.c (font_select_entity): New function.
8275 (font_find_for_lface): Use font_select_entity to select a font.
8276
8277 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8278 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8279 font with C restriction.
8280
98a326f7 82812009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8282
be1bce46 8283 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8284
10ea2b82
JR
82852009-03-04 Jason Rumney <jasonr@gnu.org>
8286
2c93b248 8287 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8288 characters that have already been read. (Bug#2569)
2c93b248 8289
10ea2b82
JR
8290 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8291 Log an error message if check_image_size failed.
8292 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8293 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8294
71a0c011
EZ
82952009-03-02 Eli Zaretskii <eliz@gnu.org>
8296
8297 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8298 when decoding process output.
8299
2f63bba8
RS
83002009-03-01 Richard M Stallman <rms@gnu.org>
8301
8302 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8303
8304 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8305
0a9564cb
EZ
83062009-02-28 Eli Zaretskii <eliz@gnu.org>
8307
8308 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8309 (decode_coding_emacs_mule, decode_coding_iso_2022)
8310 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8311 (decode_coding_raw_text, decode_coding_charset)
8312 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8313 Honor inhibit-eol-conversion. (Bug #2186)
8314
449148b3
JR
83152009-02-28 Jason Rumney <jasonr@gnu.org>
8316
8317 * coding.c (detect_coding_charset): If not checking latin extra,
8318 fail on characters between 0x80 and 0xA0. (Bug#2354)
8319
a4aee864
EZ
83202009-02-28 Eli Zaretskii <eliz@gnu.org>
8321
8322 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8323 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8324
d88bee5a
GM
83252009-02-27 Glenn Morris <rgm@gnu.org>
8326
8327 * callint.c (Finteractive): Doc fix.
8328
a808f22d
KH
83292009-02-27 Kenichi Handa <handa@m17n.org>
8330
8331 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8332
caf8d60c
CY
83332009-02-27 Chong Yidong <cyd@stupidchicken.com>
8334
8335 * font.c (font_style_to_value): Set value for unknown symbols to
8336 100 instead of 255.
b61137ea
CY
8337 (weight_table, slant_table, width_table): Treat "unspecified" as
8338 the default value.
caf8d60c 8339
1a0de25c
JB
83402009-02-26 Juanma Barranquero <lekktu@gmail.com>
8341
8342 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8343
8fc45744
JB
83442009-02-25 Juanma Barranquero <lekktu@gmail.com>
8345
107bd7d1
JB
8346 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8347 error as soon as a recursive load is detected.
8fc45744 8348
f097e223
AR
83492009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8350
8351 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8352 before caching.
8353
8810a12f
KH
83542009-02-24 Kenichi Handa <handa@m17n.org>
8355
8356 * fontset.c (fontset_find_font): Fix the condition for checking
8357 unavailable font.
8358
2c7d1565
GM
83592009-02-24 Glenn Morris <rgm@gnu.org>
8360
8361 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8362 whitespace that confuses documentation.
8363
a20878b6
MB
83642009-02-23 Miles Bader <miles@gnu.org>
8365
8366 * process.c (Flist_system_processes, Fprocess_attributes)
8367 (syms_of_process): Rename `system-process-attributes' to
8368 `process-attributes'.
8369
b3b58c01
AS
83702009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8371
1b3b981b
AS
8372 * coding.h (struct coding_system): Make safe_charsets a pointer to
8373 unsigned char.
8374 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8375 being 255.
8376 (SAFE_CHARSET_P): Likewise.
8377 (setup_iso_safe_charsets): Properly setup safe_charsets.
8378 (Fdefine_coding_system_internal): Likewise.
8379 (setup_coding_system): Likewise. Remove unneeded casts.
8380 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8381 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8382 unneeded casts.
8383
b3b58c01
AS
8384 * insdel.c (del_range_2): Don't modify gap contents when called
8385 from decode_coding_object. (Bug#1809)
8386
0b6f228c
CY
83872009-02-21 Chong Yidong <cyd@stupidchicken.com>
8388
8389 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8390 Qfont_object.
8391 (Ftype_of): Recognize font objects.
8392
8393 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8394
8395 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8396 moved to data.c.
8397
52f8870b
AR
83982009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8399
8400 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8401 async_iconified. Based on a patch by Christian Lynbech
8402 <christian.lynbech@tieto.com>.
8403 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8404
7087d5e9
GM
84052009-02-20 Glenn Morris <rgm@gnu.org>
8406
8407 * syntax.c (Fskip_chars_forward): Fix doc typo.
8408
41d2ceef
CY
84092009-02-20 Chong Yidong <cyd@stupidchicken.com>
8410
8411 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8412
1a3b7ca6
CY
84132009-02-19 Chong Yidong <cyd@stupidchicken.com>
8414
8415 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8416
73cce38d
KH
84172009-02-19 Kenichi Handa <handa@m17n.org>
8418
8419 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8420 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8421
a51092ee
DN
84222009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8423
8424 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8425
c423ecca
KH
84262009-02-18 Kenichi Handa <handa@m17n.org>
8427
8428 * font.c (font_check_otf_features): Fix handling of `nil' element.
8429 (Ffont_spec): Describe :lang and :otf in the docstring.
8430
4c1958f4
AS
84312009-02-16 Andreas Schwab <schwab@suse.de>
8432
8433 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8434 string.
8435
5704f39a
KH
84362009-02-16 Kenichi Handa <handa@m17n.org>
8437
8438 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8439 (Bug#1723)
5704f39a 8440
8f0085aa
CY
84412009-02-14 Chong Yidong <cyd@stupidchicken.com>
8442
a057d86a 8443 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8444
8445 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8446 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8447
aff01dd9
EZ
84482009-02-14 Eli Zaretskii <eliz@gnu.org>
8449
8450 * msdos.c (MAX_SCREEN_BUF): New macro.
8451 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8452 Encode the entire run of glyphs sharing the same face, instead of
8453 doing that one glyph at a time (fixes a bug with displaying
8454 double-size characters).
8455
ba301db3
AR
84562009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8457
8458 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8459
8460 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8461 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8462 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8463
8464 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8465 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8466
51d861de
SM
84672009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8468
ac146f82 8469 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8470 invisible areas.
8471
7fed8996
JR
84722009-02-12 Jason Rumney <jasonr@gnu.org>
8473
631ea4fb
JR
8474 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8475 (add_font_entity_to_list): Call check_face_name even when family
8476 is unspecified.
8477
cb4a3e42
JR
8478 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8479 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8480 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8481
7fed8996 8482 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8483 raster fonts. (Bug#2219)
7fed8996 8484
895416e3
KH
84852009-02-12 Kenichi Handa <handa@m17n.org>
8486
8487 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8488 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8489 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8490 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8491 (find_automatic_composition): While looking forward and backward,
8492 check static composition. Fix where to stop looking forward.
8493 (composition_adjust_point): Fix checking of static composition.
8494 (Fcomposition_get_gstring): Pay attention to
1dacf998 8495 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8496
8497 * lisp.h (fast_looking_at): Extern it.
8498
8499 * search.c (fast_looking_at): New function.
8500
51d861de 8501 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8502 <struct glyph>.u.cmp.to.
8503 (append_composite_glyph): Likewise.
8504
51d861de 8505 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8506 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8507 composition.
51d861de 8508 (append_composite_glyph): Adjust for the change of
895416e3
KH
8509 <strcut glyph>.u.cmp.to.
8510
8510724d
JB
85112009-02-11 Juanma Barranquero <lekktu@gmail.com>
8512
8513 * casetab.c (init_casetab_once):
8514 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8515 * font.c (font_update_lface):
8516 * fontset.c (Fnew_fontset):
8517 * ftfont.c (ftfont_drive_otf):
8518 * xfont.c (xfont_open):
8519 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8520
294fa707
SM
85212009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8522
8523 * fileio.c (Fwrite_region): !NILP -> CONSP.
8524
b5bfebec
AS
85252009-02-10 Andreas Schwab <schwab@suse.de>
8526
8527 * process.c (send_process): Properly relocate pointer into data
adab88bd 8528 when using encoded data. (Bug#2272)
b5bfebec 8529
cb84a2be
KH
85302009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8531
8532 * coding.c (detect_coding_charset): Fix previous change.
8533
89e09428
JR
85342009-02-08 Jason Rumney <jasonr@gnu.org>
8535
8536 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8537 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8538
4470a277
AS
85392009-02-07 Andreas Schwab <schwab@suse.de>
8540
8541 * unexelf.c (unexec): Fix error message.
8542
3175b12a
AR
85432009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8544
8545 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8546 when modal window is active. (Bug #2152)
3175b12a
AR
8547 (applicationShouldTerminate:): Remove now-unneeded while loop
8548 around NSRunAlertPanel.
8549
8550 * nsmenu.m (popupSession): New file-global variable.
8551 (pop_down_menu): End the popupSession before closing dialog.
8552 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8553 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8554 don't query NSApp for events (just sleep instead).
8555
8434d0b8
EZ
85562009-02-07 Eli Zaretskii <eliz@gnu.org>
8557
51d861de
SM
8558 * coding.c (syms_of_coding) <translation-table-for-input>:
8559 Modify doc string to discourage use for character code unification.
8434d0b8 8560
aa82edfd
CY
85612009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8562
8563 * atimer.c (run_timers): Update pending_atimers.
8564
2d283c7c
CY
85652009-02-06 Chong Yidong <cyd@stupidchicken.com>
8566
eb306cab
CY
8567 * image.c (svg_load_image): Fix last change.
8568
2d283c7c
CY
8569 * xfns.c (Fx_create_frame): Signal an error if no font is
8570 found (Bug#2147).
8571
4d8e170e
JB
85722009-02-05 Juanma Barranquero <lekktu@gmail.com>
8573
8574 * character.c (syms_of_character) <script-representative-chars>:
8575 Fix typo in docstring.
8576
c96169a0
AR
85772009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8578
8579 * nsmenu.m (pop_down_menu): New function.
8580 (ns_popup_dialog): Call it on unwind.
8581 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8582 call timer_check() (Bug#2154).
8583 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8584 handling_signal is set.
8585 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8586
31fd7c5c 8587 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8588
8589 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8590
8591 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8592
51d861de
SM
8593 * keyboard.c (poll_for_input_1, handle_async_input):
8594 Set handling_signal under HAVE_NS.
c96169a0 8595
aacd8ba1
GM
85962009-02-04 Glenn Morris <rgm@gnu.org>
8597
8598 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8599
4cb75c4b
KH
86002009-02-04 Kenichi Handa <handa@m17n.org>
8601
8602 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8603
8604 * charset.c (Fchar_charset): New optional arg restriction.
8605
8606 * coding.h (coding_system_charset_list): Extern it.
8607
8608 * coding.c (coding_system_charset_list): New function.
8609
8610 * composite.c: Include coding.h and termhooks.h.
8611 (composition_gstring_p): Fix for the terminal case.
8612 (composition_gstring_width): Likewise.
8613 (fill_gstring_body): Likewise.
8614 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8615 the frame.
8616 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8617 is within a composition.
867d4bb3 8618 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8619
8620 * term.c (encode_terminal_code): Fix handling of composition.
8621 (produce_composite_glyph): For static composition, get pixel_width
8622 from struct composition.
8623
826ba17e
AS
86242009-02-02 Andreas Schwab <schwab@suse.de>
8625
8626 * unexelf.c (unexec): Handle unaligned bss offset.
8627
8ad093db
AR
86282009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8629
8630 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8631 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8632
8ad093db
AR
8633 * keyboard.c (handle_interrupt): Don't call
8634 quit_throw_to_read_char() under NS.
d0a76a6e 8635
8ad093db
AR
8636 * blockinput.h: Remove NS-specific code.
8637
4d18a7a2
DN
86382009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8639
db878925
DN
8640 * dispnew.c (window_change_signal): Don't try to get the size of a
8641 suspended tty frame.
8642 * term.c (Fresume_tty): Resize if the size has changed while the
8643 tty was suspended.
8644
4d18a7a2
DN
8645 * alloc.c (mark_stack): Properly conditionalize previous change.
8646
8984df7c
JB
86472009-01-30 Juanma Barranquero <lekktu@gmail.com>
8648
8649 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8650 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8651 Remove; this code is not used on Windows.
8652
75f4f1ac
EZ
86532009-01-30 Eli Zaretskii <eliz@gnu.org>
8654
8655 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8656 EOLs that also has stray ^M characters.
8657
07a1e794
JB
86582009-01-30 Juanma Barranquero <lekktu@gmail.com>
8659
8660 * atimer.c (run_timers, alarm_signal_handler):
8661 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8662 * w32inevt.c (w32_console_read_socket):
8663 * w32term.c (w32_read_socket):
8664 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8665
a8b11cc9
CY
86662009-01-30 Chong Yidong <cyd@stupidchicken.com>
8667
8668 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8669 Initialize it as a relative filename pattern.
8670 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8671 (Fcall_process_region): Simplify temp file creation using
8672 temporary-file-directory.
8673
c279587b
EZ
86742009-01-29 Eli Zaretskii <eliz@gnu.org>
8675
8676 * msdos.c: Rename pending_signals to msdos_pending_signals.
8677 (sig_suspender, sigprocmask): Adjust.
8678
a8fe3242
CY
86792009-01-29 Chong Yidong <cyd@stupidchicken.com>
8680
8681 * keyboard.c (pending_signals): New var.
8682 (poll_for_input, input_available_signal, init_keyboard): Set it.
8683 (process_pending_signals): New function.
8684
8685 * lisp.h (QUIT): Check pending_signals instead of
8686 interrupt_input_pending. Use process_pending_signals.
8687
51d861de 8688 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8689
51d861de 8690 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8691
8692 * sysdep.c (emacs_write): Use process_pending_signals.
8693
8694 * xterm.c (XTread_socket): Update pending_signals.
8695
8696 * w32term.c (w32_read_socket): Update pending_signals.
8697
8698 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8699
6570a1c4
KH
87002009-01-29 Kenichi Handa <handa@m17n.org>
8701
8702 * xftfont.c (xftfont_has_char): New function.
8703 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8704
d72a4afa
AR
87052009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8706
8707 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8708 under GNUstep.
8709 (ns_query_color): New declaration.
8710
8711 * nsterm.m (ns_confirm_quit): New variable.
8712 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8713 (EmacsApp-applicationShouldTerminate:): Use it.
8714 (EmacsPrefsController): Let user set it.
8715 (ns_query_color): New function.
8716 (ns_defined_color): Use it.
8717 (ns_initialize): Drop.
8718 (ns_term_init): Add two lines from ns_initialize(), and set
8719 input_interrupt_mode to nil.
8720
8721 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8722 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8723
9fe78804
KH
87242009-01-28 Kenichi Handa <handa@m17n.org>
8725
8726 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8727 (fontset_get_font_group): Remember that no font-group is specified
8728 for C.
9fe78804 8729
fa57de36
CY
87302009-01-27 Chong Yidong <cyd@stupidchicken.com>
8731
930600e9
CY
8732 * fns.c (concat): Check for string overflow (bug#1787).
8733
fa57de36
CY
8734 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8735 Quadruple undo limits (bug#1501).
8736
7179ce7b
KH
87372009-01-27 Kenichi Handa <handa@m17n.org>
8738
8739 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8740 directly use GT_Get_Char_index.
8741
8742 * xftfont.c (struct xftfont_info): New member `index'.
8743
8744 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8745 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8746
5be8fcc0
CY
87472009-01-26 Kenichi Handa <handa@m17n.org>
8748
8749 * fontset.c (fontset_find_font): Fix handling of non-cons return
8750 value of fontset_get_font_group.
8751 (fontset_font): Revert last change.
8752
19ae3e61
JR
87532009-01-26 Jason Rumney <jasonr@gnu.org>
8754
8755 * w32font.c (w32font_list_internal): Return quickly if registry is
8756 unknown. Simplify final return.
8757 (add_font_entity_to_list): Break complex logic down into more
8758 manageable chunks. Move unknown registry check to
8759 w32font_list_internal.
8760
8612b71a
AR
87612009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8762
8763 Changes to remove Feval calls from GUI under NS.
8764
d8038940
JB
8765 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8766 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8767 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8768
8769 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8770 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8771 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8772 instead of NON_ASCII_KEYSTROKE_EVENT.
8773 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8774 (EmacsApp-applicationShouldTerminate:): Query user.
8775 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8776 instead of Feval.
8777
8778 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8779
8780 * keyboard.c (kbd_buffer_get_event): Check for it.
8781 (keys_of_keyboard): Define lispy keys for
8782 ns-put/unput-working-text.
8783
8784 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8785 versions.
8786 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8787
6288ae55
CY
87882009-01-25 Chong Yidong <cyd@stupidchicken.com>
8789
8790 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8791 setting current_buffer directly. (Bug#2044)
6288ae55 8792
289e7f8f
CY
87932009-01-24 Chong Yidong <cyd@stupidchicken.com>
8794
5ce87308 8795 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8796 any work. (Bug#1952, bug#1990).
5ce87308 8797
64cc3cf6 8798 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8799
b3243e6f
AR
88002009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8801
8802 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8803 (ns_no_defaults): New declaration.
8804 (main): Use it.
e0d2e69a 8805
d900b2af 8806 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8807
d900b2af 8808 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8809
d900b2af
AR
8810 * nsterm.m (ns_no_defaults): New variable.
8811 (ns_initialize): Don't read defaults when ns_no_defaults.
8812 (EmacsView-readSelectionFromPasteboard:)
8813 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8814 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8815 (ns_dumpglyphs_stretch): New function.
8816 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8817 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8818
e0d2e69a
AR
8819 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8820
3ac71f5d
CY
88212009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8822
8823 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8824 call for Sparc64.
8825
3fe53a83
AR
88262009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8827
8828 * nsfns.m:
8829 * nsgui.h:
8830 * nsmenu.m:
8831 * nsselect.m:
8832 * nsterm.h:
8833 * nsterm.m: Remove '23' comments that indicated code added during
8834 update from emacs-20 -> emacs-23.
8835
10f87c6f 88362009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8837
8838 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8839 ns_alternate_modifier. (Bug#1217)
a3b53a85 8840
c7cef62d
AR
8841 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8842 Display all shortcuts, including those w/o super modifier.
8843
575fb8bd
AR
8844 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8845
918b848b
CY
88462009-01-22 Chong Yidong <cyd@stupidchicken.com>
8847
8848 * fileio.c (Vwrite_region_post_annotation_function)
8849 (Vwrite_region_annotation_buffers): New vars.
8850 (build_annotations_unwind): Just reset
8851 Vwrite_region_annotation_buffers.
8852 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8853 Call write-region-post-annotation-function.
8854 (build_annotations): Add to Vwrite_region_annotation_buffers if
8855 buffer changes.
8856
a39e2539
AR
88572009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8858
8859 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8860 Tiger.
51d861de
SM
8861 * nsfns.m (ns_do_applescript):
8862 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8863
35ed44db
AR
88642009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8865
8866 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8867
cbe0b5bf
AR
88682009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8869
8870 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8871
6049d3a0
AR
8872 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8873
8874 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8875 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8876 handle Ctrl-tab. (Bug#1841)
8877 (ns_get_color): Use unsigned long long for scanned hex string value.
8878 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8879 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8880 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8881 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8882 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8883 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8884 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8885
d3810c21 8886 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8887 DPI. (Bug#1316)
d3810c21
AR
8888 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8889 values in onTiger section.
4c7077c3 8890
e301e634
CY
88912009-01-19 Chong Yidong <cyd@stupidchicken.com>
8892
7f82490b
CY
8893 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8894 Check return value of font_spec_from_name.
64cc3cf6 8895 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8896
8897 * font.c (font_spec_from_name): Return Qnil if font name could not
8898 be parsed.
8899 (font_parse_name): Treat a `?' character as part of an XLFD.
8900
e301e634
CY
8901 * fns.c (Fsubstring): Doc fix.
8902
1c0db158
KH
89032009-01-19 Kenichi Handa <handa@m17n.org>
8904
51d861de 8905 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8906 (ftfont_list): Likewise.
8907
acf20901
JB
89082009-01-18 Juanma Barranquero <lekktu@gmail.com>
8909
fff4e459
JB
8910 * dbusbind.c (Fdbus_register_signal):
8911 * process.c (conv_sockaddr_to_lisp):
8912 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8913
acf20901
JB
8914 * callproc.c (Fgetenv_internal): Doc fix.
8915
e7abcdfb
CY
89162009-01-16 Chong Yidong <cyd@stupidchicken.com>
8917
8918 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8919 it is not even used.
8920
b60861e6
GM
89212009-01-16 Glenn Morris <rgm@gnu.org>
8922
8923 * font.c (Ffont_variation_glyphs): Silence compiler.
8924
8db52afe
JB
89252009-01-15 Juanma Barranquero <lekktu@gmail.com>
8926
8927 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8928 Reported by David Robinow <drobinow@gmail.com>.
8929
4cddb209
KH
89302009-01-15 Kenichi Handa <handa@m17n.org>
8931
51d861de 8932 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8933
f247f67b
JR
89342009-01-14 Jason Rumney <jasonr@gnu.org>
8935
8936 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8937 never a fontset. (Bug#1562)
f247f67b 8938
f56a4450
KH
89392009-01-14 Kenichi Handa <handa@m17n.org>
8940
8941 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8942 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8943
4e99855e
CY
89442009-01-13 Chong Yidong <cyd@stupidchicken.com>
8945
8946 * font.c (font_clear_prop): If clearing the family, clear the font
8947 width index too.
8948
fff4e459 8949 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8950
24f01470
JB
89512009-01-12 Juanma Barranquero <lekktu@gmail.com>
8952
8953 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8954 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8955 functions, use sizeof.
8956
a41240a3
MR
89572009-01-12 Martin Rudalics <rudalics@gmx.at>
8958
8959 * keyboard.c (read_char): Fix case where last_nonmenu_event
8960 returned a bad value with submenus. (Bug#447)
8961
944636b8
CY
89622009-01-12 Chong Yidong <cyd@stupidchicken.com>
8963
8964 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8965 family, clear the font width index too.
8966
0dad7c6f
JR
89672009-01-11 Jason Rumney <jasonr@gnu.org>
8968
8969 * keyboard.c (cmd_error_internal): Exit when errors occur before
8970 frame creation and not in daemon mode. (Bug#1836)
8971
7c2363af
CY
89722009-01-10 Chong Yidong <cyd@stupidchicken.com>
8973
8974 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8975 of a display vector, backtrack.
8976 (try_window_reusing_current_matrix): Check glyph type before
8977 referencing charpos member.
8978
97b1b294
EZ
89792009-01-10 Eli Zaretskii <eliz@gnu.org>
8980
8981 Fix Bug #876:
8982
8983 * coding.c (inhibit_null_byte_detection): New variable.
8984 (detect_coding, detect_coding_system): Don't pay attention to null
8985 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8986 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8987 <inhibit-iso-escape-detection>: Doc fix.
8988
4624b6e3
JR
89892009-01-09 Jason Rumney <jasonr@gnu.org>
8990
8991 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8992 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8993 Only report Unicode Plane 2 fonts as unicode-sip.
8994
323b840c
CY
89952009-01-09 Chong Yidong <cyd@stupidchicken.com>
8996
51d861de
SM
8997 * xfaces.c (Fx_font_family_list): Delete function.
8998 Move compatibility version to faces.el.
323b840c 8999
51d861de 9000 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 9001
eba7400d
MR
90022009-01-09 Martin Rudalics <rudalics@gmx.at>
9003
9004 * frame.c (x_set_frame_parameters): Remember requested value for
9005 fullscreen before it's reset by the parameter handler.
9006
4b09796d
GM
90072009-01-09 Glenn Morris <rgm@gnu.org>
9008
9009 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 9010 (last_command_event): ... and update all users.
4b09796d
GM
9011 (last_input_char): For clarity, rename to...
9012 (last_input_event): ... and update all users.
9013 (last-command-char, last-input-char): Move to subr.el as aliases.
9014 * cmds.c, commands.h: Update for last_command_char rename.
9015
14ccea62
CY
90162009-01-08 Chong Yidong <cyd@stupidchicken.com>
9017
51d861de 9018 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 9019
5f004711
JR
90202009-01-08 Jason Rumney <jasonr@gnu.org>
9021
9022 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
9023 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
9024 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
9025 Don't declare.
fff4e459 9026 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
9027 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
9028
b71f6f73
KH
90292009-01-07 Kenichi Handa <handa@m17n.org>
9030
50b06221 9031 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 9032 remember the coding system used for decoding in
50b06221
KH
9033 coding_system (Bug#1039).
9034
b71f6f73 9035 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 9036 breaking the loop. (Bug#870)
b71f6f73
KH
9037 (decode_coding_utf_16, decode_coding_emacs_mule)
9038 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9039 (decode_coding_charset): Likewise.
9040
56f668f7
MR
90412009-01-05 Martin Rudalics <rudalics@gmx.at>
9042
9043 * frame.c (x_set_frame_parameters): Make sure height (width) get
9044 applied when fullwidth (fullheight) is set. (Bug#1522)
9045
5da9424d
JB
90462009-01-04 Juanma Barranquero <lekktu@gmail.com>
9047
9048 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
9049 (utc_base): Declare as ULONGLONG, not long double.
9050 (convert_time_raw): Delete.
9051 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
9052 (initialize_utc_base): New function.
9053 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
9054 (convert_from_time_t): Use initialize_utc_base; compute result with
9055 64-bit arithmetic.
9056 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
9057
c4605e09
EZ
90582009-01-03 Eli Zaretskii <eliz@gnu.org>
9059
9acef61c 9060 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
9061 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
9062 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
9063 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
9064 [!subprocesses]: Define.
9065 (syms_of_process) [!subprocesses]: Intern and staticpro them.
9066 (Flist_system_processes, Fsystem_process_attributes)
9067 [!subprocesses]: Call list_system_processes and
9068 system_process_attributes instead of returning Qnil.
9069
9acef61c
JB
9070 * dosfns.c (system_process_attributes, list_system_processes):
9071 New functions.
c4605e09
EZ
9072
9073 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
9074
9075 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
9076 Don't use the default (no-op) implementation.
9077
8b7d0a16
JR
90782009-01-03 Jason Rumney <jasonr@gnu.org>
9079
a6d46bc1
JR
9080 * keyboard.c (parse_modifiers_uncached): Wheel events are
9081 clicks (bug#687).
9082
8b7d0a16
JR
9083 * w32term.c (x_query_colors, x_query_color): New functions.
9084
9085 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
9086 (svg_load_image): Cast returned pointers from dynamically loaded
9087 functions. Eliminate W32 specific code.
9088
bfe11752
DN
90892009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
9090
89e2438a
DN
9091 * nsfns.m (x_set_foreground_color, x_set_background_color)
9092 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
9093 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
9094 x_ prefix instead of ns_. Update references.
9095 (syms_of_nsfns): Add a FIXME comment.
9096
9097 * nsterm.m (x_set_cursor_type): New prototype.
9098 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
9099
bfe11752
DN
9100 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
9101 for Solaris instead of incorrectly providing Qutime and Qcutime.
9102
031da700
EZ
91032009-01-02 Eli Zaretskii <eliz@gnu.org>
9104
9105 * w32.c (process_times): Compute sum of utime and stime.
9106 (system_process_attributes): Add Qtime to the alist.
9107
9108 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
9109 and add them to the alist.
9110
9111 * process.c (top level) <Qtime, Qctime>: New variables.
9112 (syms_of_process): staticpro them.
9113 (Fsystem_process_attributes): Add their documentation to the doc
9114 string.
9115
9116 * process.h: Declare Qtime and Qctime.
9117
df23bf08
JR
91182009-01-02 Jason Rumney <jasonr@gnu.org>
9119
9acef61c 9120 * image.c (Qgobject): New symbol.
df23bf08
JR
9121 (syms_of_image): Initialize it.
9122 (init_svg_functions): Load some functions from gobject library.
9123
5bbdf7aa
DN
91242009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
9125
9126 * frame.c (make_terminal_frame): Remove redundant code and useless
9127 block.
9128
63136da6
AS
91292009-01-01 Andreas Schwab <schwab@suse.de>
9130
9131 * process.c (conv_sockaddr_to_lisp): Add workaround for
9132 getsockname bug on BSD.
9133
9ef69046
CY
91342009-01-01 Chong Yidong <cyd@stupidchicken.com>
9135
d6fafbe0
CY
9136 * xfns.c (x_create_tip_frame): Set border width of the X window.
9137
51d861de 9138 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 9139
f9c34147
JR
91402009-01-01 Jason Rumney <jasonr@gnu.org>
9141
9acef61c 9142 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
9143 Don't block input, as per earlier xterm.c changes.
9144
f5497e45
AR
91452008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
9146
9147 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
9148 (ns_appkit_version_int): New function.
9149 (x-server-version): Use ns_appkit_version_int and follow 21+
9150 convention of returning 3 integers.
9151
c19cab20
KH
91522008-12-30 Kenichi Handa <handa@m17n.org>
9153
9154 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9155 (CHAR_SURROGATE_PAIR_P): New macro.
9156
9157 * font.h (struct font_driver): New member get_variation_glyphs.
9158
9acef61c 9159 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9160 (Ffont_variation_glyphs): New function.
9161 (syms_of_font): Defsubr it.
9162
9163 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9164 ftfont_variation_glyphs.
9165 (setup_otf_gstring): New function.
9166 (ftfont_drive_otf): Use it.
9167 (ftfont_shape_by_flt): Handle variation selector.
9168 (ftfont_variation_glyphs): New function.
9169
28cd591f
MR
91702008-12-30 Martin Rudalics <rudalics@gmx.at>
9171
9172 * frame.c (Vemacs_iconified): Remove.
9173
7f714baf
JR
91742008-12-30 Jason Rumney <jasonr@gnu.org>
9175
9176 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9177 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9178
9d2d22ab
CY
91792008-12-30 Chong Yidong <cyd@stupidchicken.com>
9180
9181 * indent.c (Fvertical_motion): Don't advance iterator if we have
9182 reseated to the desired position.
9183
9184 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9185 checking for pos match.
9186
545312c2
KH
91872008-12-30 Kenichi Handa <handa@m17n.org>
9188
1ede3eb6
KH
9189 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9190 just get the low 8-bit of the code.
9191
545312c2
KH
9192 * font.c (font_intern_prop): Validate str as multibyte.
9193
bd7bbf29
DN
91942008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9195
31e0750e
DN
9196 * dispextern.h (struct face): Move lface and hash from the middle
9197 of bitfields.
9198
bd7bbf29
DN
9199 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9200
b5672e7c
DN
92012008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9202
9203 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9204 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9205 instead of intervals.h.
9206
d704470f
AS
92072008-12-26 Andreas Schwab <schwab@suse.de>
9208
9209 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9210 cons.
9211
54b33868
MR
92122008-12-26 Martin Rudalics <rudalics@gmx.at>
9213
9214 * textprop.c (Qminibuffer_prompt): New variable.
9215 (syms_of_textprop): Initialize it.
9216 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9217 in minibuffer-prompt face. (Bug#1662)
9218
40b615d6
JR
92192008-12-25 Jason Rumney <jasonr@gnu.org>
9220
9221 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9222
baae5c2d
JR
92232008-12-24 Jason Rumney <jasonr@gnu.org>
9224
9225 * ralloc.c (r_alloc_reset_variable): New function.
9226
9227 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9228 record of what points where. (Bug#716)
baae5c2d 9229
a9051c88
DN
92302008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9231
9232 * minibuf.c (read_minibuf): Follow the non-interactive case when
9233 running as a daemon, before detaching.
9234
8b146312
AS
92352008-12-22 Andreas Schwab <schwab@suse.de>
9236
9237 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9238 * gtkutil.c (free_widget_value): Use xfree instead of free.
9239
56f2de10
MR
92402008-12-22 Martin Rudalics <rudalics@gmx.at>
9241
9242 * frame.c (delete_frame): New function derived from
9243 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9244 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9245 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9246 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9247 * frame.h: Extern delete_frame.
9248 * window.c (window_loop):
9249 * terminal.c (delete_terminal):
9250 * xterm.c (x_connection_closed):
9251 * xfns.c (Fx_hide_tip):
9acef61c 9252 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9253
1fc200d6
JR
92542008-12-21 Jason Rumney <jasonr@gnu.org>
9255
9256 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9257 when character maps to .notdef character.
9258
5e252df2
SM
92592008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9262
99b72cc4
JR
92632008-12-20 Jason Rumney <jasonr@gnu.org>
9264
9265 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9266 a graphical frame on Windows. (Bug#1325)
99b72cc4 9267
acc49a52
JD
92682008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9269
9270 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9271
6ea15123
CY
92722008-12-20 Chong Yidong <cyd@stupidchicken.com>
9273
9274 * minibuf.c (Fread_buffer): Doc fix.
9275
b2dab6c8
JR
92762008-12-20 Jason Rumney <jasonr@gnu.org>
9277
54ea0c87 9278 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9279 server name in UNC paths. (Bug#719)
54ea0c87 9280
b2dab6c8 9281 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9282 charbuf. (Bug#1035)
b2dab6c8 9283
6d1921be
DN
92842008-12-19 Daniel Engeler <engeler@gmail.com>
9285
9286 * sysdep.c (serial_configure): Fix typo.
9287
53934c98
DN
92882008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9289
9290 * sysdep.c: Include alloca.h.
f4f634e8
DN
9291 (system_process_attributes): Add implementation for Solaris.
9292
9293 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9294
06e111a6
DN
92952008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9296
9297 Reorganize implementation of Flist_system_processes and
9298 Fsystem_process_attributes. No functional changes.
9299 * process.c: Don't #include pwd.h, grp.h and limits.h.
9300 (Flist_system_processes): Just call list_system_processes.
9301 (Fsystem_process_attributes): Just call system_process_attributes.
9302 (procfs_list_system_processes, time_from_jiffies)
9303 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9304 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9305
9306 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9307 (list_system_processes): Rename from
9308 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9309 Provide a do nothing implementation.
9310 (system_process_attributes): Rename from
9311 procfs_list_system_processes.
9312 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9313 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9314
9315 * w32.c (list_system_processes): Rename from
9316 w32_list_system_processes.
9317 (system_process_attributes): Rename from
9318 w32_system_process_attributes.
9319
9320 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9321
9322 * process.h (w32_list_system_processes)
9323 (w32_system_process_attributes): Remove.
362654a6
JB
9324 (list_system_processes, system_process_attributes):
9325 New prototypes.
06e111a6 9326
6a705b23
KH
93272008-12-19 Kenichi Handa <handa@m17n.org>
9328
9329 * xfont.c (xfont_decode_coding_xlfd): New function.
9330 (xfont_encode_coding_xlfd): New function.
9331 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9332 (xfont_list): Decode and encode XLFD by iso-8859-1.
9333 (xfont_match): Likewise.
9334 (xfont_list_family): Likewise.
9335 (xfont_open): Likewise.
9336
d66c0241 9337 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9338 names are utf-8.
9339
d66c0241 9340 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9341 names are utf-8.
9342
5a130941
JD
93432008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9344
9345 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9346 changed.
bfd20325
JD
9347 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9348 clicked on a detached tool bar button.
5a130941 9349
fd95644b
DN
93502008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9351
9352 * emacs.c (main): Print and error and exit when no data is read
9353 from the pipe.
9354
e6eee6ae
JR
93552008-12-17 Jason Rumney <jasonr@gnu.org>
9356
9357 * w32font.c (w32font_has_char): Always return -1.
9358
a35dd56b
KH
93592008-12-16 Kenichi Handa <handa@m17n.org>
9360
9361 * font.c (font_open_entity): Fix previous change.
9362
0e3635c2
DN
93632008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9364
9365 * process.c: Include <limits.h>.
9366
d4835507 93672008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9368
9369 * font.c (font_update_drivers): Fix mistake in reconstructing the
9370 driver list.
9371
93722008-12-16 Chong Yidong <cyd@stupidchicken.com>
9373
9374 * font.c (font_clear_cache): Fix format of font cache data.
9375
e2cbc401
CY
93762008-12-15 Chong Yidong <cyd@stupidchicken.com>
9377
9378 * xftfont.c (xftfont_open): Free Xft font pattern if
9379 XftFontOpenPattern fails.
9380
9381 * xterm.c (x_free_frame_resources): Remove extraneous call to
9382 free_frame_faces.
9383
b131d535
CY
93842008-12-13 Chong Yidong <cyd@stupidchicken.com>
9385
9386 * xterm.c (x_delete_display): Move xim_close_dpy call to
9387 x_delete_terminal.
9388 (x_delete_terminal): Call xim_close_dpy.
9389
e6df5336
JR
93902008-12-13 Jason Rumney <jasonr@gnu.org>
9391
9392 * w32font.c (intern_font_name): New function.
9393 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9394 (w32font_open_internal, Fx_select_font): Decode font name.
9395 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9396
9397 * w32font.h (intern_font_name): Declare new function.
9398
9399 * w32uniscribe.c (add_opentype_font_name_to_list):
9400 Use intern_font_name.
9401
20d68145
CY
94022008-12-13 Chong Yidong <cyd@stupidchicken.com>
9403
9f2554de
CY
9404 * frame.c (Fdelete_frame): Call free_font_driver_list.
9405
3d9bec9a
CY
9406 * font.c (free_font_driver_list): Implement missing function.
9407
20d68145
CY
9408 * w32term.c (w32_term_init): Don't initialize the image cache
9409 here; it will be done in init_frame_faces.
9410
9411 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9412 (struct x_display_info): Remove unused member null_pixel. New
9413 member xim_callback_data.
9414
9415 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9416 (xim_initialize): Save pointer to callback function data.
9417 (xim_close_dpy): Free callback function data. Call XCloseIM,
9418 reverting 2008-11-04 change by David Smith.
9419 (x_term_init): Don't initialize the image cache here; it will be
9420 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9421 (x_delete_display): Free x_dnd_atoms member.
9422
96f9306b
KH
94232008-12-13 Kenichi Handa <handa@m17n.org>
9424
6dec9044
JB
9425 * font.c (font_rescale_ratio): Moved from xfaces.c.
9426 Argument type changed. Handle a font-spec too.
96f9306b 9427 (font_score): Check Vface_font_rescale_alist.
6dec9044 9428 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9429
9430 * xfaces.c (font_rescale_ratio): Moved to font.c.
9431
8d5b4964
CY
94322008-12-13 Chong Yidong <cyd@stupidchicken.com>
9433
9434 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9435
e6df5336
JR
94362008-12-12 Jason Rumney <jasonr@gnu.org>
9437
9438 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9439 Vwindow_system_version to the real w32 major version.
9440
97c6058a
DN
94412008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9442
9443 * term.c (init_tty): Move setting the terminal name before the
9444 potential user: maybe_fatal.
9445
ec4e88d7
CY
94462008-12-11 Chong Yidong <cyd@stupidchicken.com>
9447
d4835507
JB
9448 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9449 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9450
b4233ec9
JR
94512008-12-11 Jason Rumney <jasonr@gnu.org>
9452
8ec71e23 9453 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9454 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9455
b4233ec9 9456 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9457 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9458
011a0143
JB
94592008-12-11 Juanma Barranquero <lekktu@gmail.com>
9460
9461 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9462
3c309f34
JB
94632008-12-11 Juanma Barranquero <lekktu@gmail.com>
9464
9465 * process.c (Fsystem_process_attributes, syms_of_process):
9466 Fix typo in name of Ssystem_process_attributes.
9467 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9468
fedc6ab5
JB
94692008-12-11 Juanma Barranquero <lekktu@gmail.com>
9470
9471 * syntax.c (Fmodify_syntax_entry): Doc fix.
9472
ba3de0e8
JB
94732008-12-10 Juanma Barranquero <lekktu@gmail.com>
9474
9475 * font.c (Ffont_spec): Move usage to end of docstring.
9476
174f1c74
JR
94772008-12-10 Jason Rumney <jasonr@gnu.org>
9478
9479 * w32font.c (Qcham): New symbol.
9480 (font_supported_scripts): Add cham, and comments for other new
9481 scripts in bitfield from OpenType spec.
9d32f818
JR
9482 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9483 contain characters beyond the bmp.
174f1c74 9484
7b649478
KH
94852008-12-10 Kenichi Handa <handa@m17n.org>
9486
9487 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9488 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9489 Qunicode_sip.
9490
2133e2d1
JB
94912008-12-10 Juanma Barranquero <lekktu@gmail.com>
9492
9493 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9494 (Fcoding_system_put): Use QCdefault_char.
9495 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9496
9af886ee
CY
94972008-12-09 Chong Yidong <cyd@stupidchicken.com>
9498
74d819eb
CY
9499 * xftfont.c (syms_of_xftfont): Fix typo.
9500
4ccfa1c0 9501 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9502
7c19d3ae
DN
95032008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9504
9505 * emacs.c (main): Close daemon_pipe on exec.
9506
567826bb
CY
95072008-12-08 Chong Yidong <cyd@stupidchicken.com>
9508
9509 * termchar.h (struct tty): New members termcap_term_buffer and
9510 termcap_strings_buffer.
9511
9512 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9513 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9514 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9515 All callers changed.
9516 (init_tty): Store termcap data and string buffers in new struct
9517 tty members termcap_term_buffer and termcap_strings_buffer.
9518 (delete_tty): Free them.
4ccfa1c0 9519 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9520
aa96c42b
SZ
95212008-12-07 Seiji Zenitani <zenitani@mac.com>
9522
9523 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9524 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9525
b7e1d896
CY
95262008-12-06 Chong Yidong <cyd@stupidchicken.com>
9527
9528 * coding.c (make_conversion_work_buffer): Disable buffer
9529 modification hooks in the work buffer.
9530
b5ec91a5
EZ
95312008-12-05 Eli Zaretskii <eliz@gnu.org>
9532
9533 * process.c (procfs_system_process_attributes): If `nread' has a
9534 negative value, assign zero to it.
9535
a5d2a52b
CY
95362008-12-05 Chong Yidong <cyd@stupidchicken.com>
9537
68c5540b 9538 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9539
7bf1bb21
KH
95402008-12-05 Kenichi Handa <handa@m17n.org>
9541
9542 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9543 second character is a combining character.
9544
2fdc7d00
EZ
95452008-12-05 Eli Zaretskii <eliz@gnu.org>
9546
9547 * process.c (procfs_system_process_attributes): Don't use cmd,
9548 cmdsize, and q without initializing them first.
9549
bf6bfba8
JR
95502008-12-04 Jason Rumney <jasonr@gnu.org>
9551
9552 * w32font.c (w32font_draw): Initialize orig_clip before getting
9553 it, and delete it when finished.
9554
a3b1a468
DN
95552008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9556
9557 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9558 case when running as a daemon before detaching.
9559
8b8be8eb
JB
95602008-12-03 Juanma Barranquero <lekktu@gmail.com>
9561
805f2638 9562 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9563
b1bde622
KH
95642008-12-03 Kenichi Handa <handa@m17n.org>
9565
e500c47d
KH
9566 * font.c (font_at): Set `multibyte' at first.
9567
ca516334
KH
9568 * coding.c (decode_coding_charset): Check type of an element of
9569 vector VALIDS.
7bf1bb21 9570 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9571
4ccfa1c0 9572 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9573 (font_for_char): Likewise.
9574
1e5ecd37
CY
95752008-12-03 Chong Yidong <cyd@stupidchicken.com>
9576
d5b01609 9577 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9578 (font_update_lface): Handle fonts with corrupted size specs,
9579 i.e. non-int and non-float.
d5b01609 9580
11e3a6e4 9581 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9582 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9583 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9584
ab06788b
CY
9585 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9586
1e5ecd37 9587 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9588 underline_minimum_offset for underline position.
1e5ecd37 9589
63c125ab
DN
95902008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9591
9592 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9593
9594 * character.c (c_string_width): Specify the type for LEN.
9595
3a8406e1
KH
95962008-12-03 Kenichi Handa <handa@m17n.org>
9597
4ccfa1c0 9598 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9599 (decode_coding_utf_8): Likewise.
4ccfa1c0 9600 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9601 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9602
651df7d9
CY
96032008-12-02 Chong Yidong <cyd@stupidchicken.com>
9604
9605 * keyboard.c (make_lispy_position): Only use PT if the selected
9606 window is current.
9607
1f625c6c
AS
96082008-12-02 Andreas Schwab <schwab@suse.de>
9609
f7741ce9
AS
9610 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9611
1f625c6c
AS
9612 * doprnt.c (doprnt1): Fix size of charbuf.
9613
92bc2678
CY
96142008-12-02 Chong Yidong <cyd@stupidchicken.com>
9615
9616 * keyboard.c (timer_check): Revert last change.
9617
93b9e8cc
JB
96182008-12-02 Juanma Barranquero <lekktu@gmail.com>
9619
9620 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9621
fd7a37d5
JB
96222008-12-01 Juanma Barranquero <lekktu@gmail.com>
9623
9624 * makefile.w32-in: Update dependencies.
9625 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9626
c115043b
AS
96272008-12-01 Andreas Schwab <schwab@suse.de>
9628
9629 * font.c (register_font_driver): Use xmalloc.
9630 (font_put_frame_data): Likewise.
9631
f5668d2a
CY
96322008-12-01 Chong Yidong <cyd@stupidchicken.com>
9633
860d96be
CY
9634 * xfaces.c (realize_x_face): Make abort condition clearer.
9635
f5668d2a
CY
9636 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9637
379c17e7
CY
96382008-11-30 Chong Yidong <cyd@stupidchicken.com>
9639
9640 * keyboard.c (timer_check): After a timer runs, ensure that the
9641 selected window's buffer is current.
9642
35f36d65
JB
96432008-11-30 Juanma Barranquero <lekktu@gmail.com>
9644
f952c61c
JB
9645 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9646 It was accidentally restored by the Unicode merge.
9647
35f36d65
JB
9648 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9649
b23077df
JB
96502008-11-29 Juanma Barranquero <lekktu@gmail.com>
9651
9652 * w32proc.c: Include "coding.h".
9653 (Fw32_short_file_name): Encode filename passed to Windows API.
9654 (Fw32_long_file_name): Encode filename passed to Windows API and
9655 decode back the result. (Bug#1433)
9656
b8ebe9dd
KH
96572008-11-29 Kenichi Handa <handa@m17n.org>
9658
8cc53f96
KH
9659 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9660 not before accessing it.
9661
b8ebe9dd
KH
9662 * charset.c (Fdefine_charset_internal): After calculating
9663 min_char, max_char, and fastmap, copy the charset structure again.
9664 (encode_char): Fix the previous change.
9665
59bc82c0
SZ
96662008-11-28 Seiji Zenitani <zenitani@mac.com>
9667
9668 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9669
9670 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9671
9672 * nsterm.m (x_set_frame_alpha): New function.
9673
32247e3d
EZ
96742008-11-27 Eli Zaretskii <eliz@gnu.org>
9675
9676 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9677
b003e5ff
JB
96782008-11-27 Juanma Barranquero <lekktu@gmail.com>
9679
9680 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9681 pointer to check_face_name.
9682
708550f5
KH
96832008-11-27 Kenichi Handa <handa@m17n.org>
9684
9685 * category.h (SET_CATEGORY_SET): Call set_category_set.
9686 (set_category_set): Extern it.
9687
9688 * category.c (hash_get_category_set): New function.
9689 (Fmodify_category_entry): Adjusted for the change of
9690 char_table_ref_and_range. Call hash_get_category_set to get a
9691 category set to store in the table.
9692
9693 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9694 Funify_charset.
9695
2ae37cf0 9696 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9697 (DECODE_CHAR): Check if the decoder vector is ready.
9698 (ENCODE_CHAR): Check if the encoder char-table is ready.
9699 (maybe_unify_char): Extern it.
9700
9701 * charset.c (Vchar_unified_charset_table): Delete it.
9702 (inhibit_load_charset_map): New variable.
9703 (temp_charset_work): New variable.
9704 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9705 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9706 New macros.
9707 (load_charset_map): Meaning of control_flag changed. If
9708 inhibit_load_charset_map is nonzero, setup a table in
9709 temp_charset_work.
9710 (load_charset): New argument control_flag.
9711 (map_charset_for_dump): New function.
9712 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9713 map_charset_for_dump.
9714 (Fdefine_charset_internal): If the charset method is MAP, load
9715 mapping tables by calling load_charset.
9716 (Funify_charset): Don't load a mapping table but directly set
9717 Vchar_unify_table.
9718 (maybe_unify_char): New function.
9719 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9720 Handle the case of inhibit_load_charset_map being nonzero.
9721 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9722 Handle the case of inhibit_load_charset_map being nonzero.
9723 (Fclear_charset_maps): Just free temp_charset_work.
9724 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9725 variable.
9726
9727 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9728 change of char_table_ref_and_range.
9729 (char_table_ref_and_range): Change the meaning of argument FROM
9730 and TO. Now the caller must provide initial values for *FROM
9731 and *TO.
9732
9733 * fontset.c (fontset_add): Adjusted for the change of
9734 char_table_ref_and_range.
9735 (fontset_get_font_group): Likewise.
9736 (Ffontset_info): Likewise.
9737
9738 * keymap.c (describe_vector): Adjusted for the change of
9739 char_table_ref_and_range. For char-table, put boundary between
9740 non-ASCII and 8-bit characters.
9741
9742 * print.c (print_object): For bool-vector, delete unnecessary
9743 check of ASCII_BYTE_P.
9744
9196133b
JR
97452008-11-26 Jason Rumney <jasonr@gnu.org>
9746
9747 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9748 leading in font height. (Bug#879)
9196133b 9749
9f688acf
GM
97502008-11-26 Glenn Morris <rgm@gnu.org>
9751
9752 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9753 redefinition with ifdef. (Bug#1383)
9754
90d19aff
AR
97552008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9756
9757 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9758
4ccfa1c0 97592008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9760
9761 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9762 New EmacsView methods.
9763 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9764 Fixes bug #1048,1357,1414.
9765
97662008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9767
9768 Fix bug #1362.
9769 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9770 is not an indexed color.
9771 * nsterm.m (free_indexed_color): Add argument checking.
9772 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9773
e7d5ecb3
CY
97742008-11-24 Chong Yidong <cyd@stupidchicken.com>
9775
9776 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9777 Document confirm-after-completion value for
9778 minibuffer-completion-confirm.
9779
c285743c
JR
97802008-11-24 Jason Rumney <jasonr@gnu.org>
9781
9782 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9783 warning.
9784
b0857706
JR
97852008-11-23 Jason Rumney <jasonr@gnu.org>
9786
9787 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9788 restored before returning.
9789
9790 * w32font.c (check_face_name): New function.
9791 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9792 fonts. (Bug#642)
b0857706 9793
ee50ff07
MR
97942008-11-22 Martin Rudalics <rudalics@gmx.at>
9795
9796 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9797 confirm-nonexistent-file-or-buffer in doc-string.
9798
b8ff72fa
SM
97992008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9800
9801 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9802 Fix copy/paste typo. Add checks.
9803
cee53ed4
KH
98042008-11-21 Kenichi Handa <handa@m17n.org>
9805
9806 * coding.c (detect_coding_iso_2022): Reject invalid composition
9807 sequence.
9808 (DECODE_COMPOSITION_START): If the current source is the last
9809 block, and the current composition doesn't end, regard this
9810 sequence as invalid.
9811 (decode_coding_iso_2022): Handle invalid composition sequence.
9812
f6ef1e65
MR
98132008-11-20 Martin Rudalics <rudalics@gmx.at>
9814
9815 * window.c (coordinates_in_window): Don't return
9816 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9817 line when the window is not the rightmost one. (Bug#1372)
9818
e08b1705
MR
98192008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9820
9821 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9822
ad98e89f
EZ
98232008-11-15 Eli Zaretskii <eliz@gnu.org>
9824
9825 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9826 and bright_bg if noninteractive is non-zero.
9827
fb098a4b
CY
98282008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9829
9830 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9831 x_draw_glyph_string_background.
9832
9833 * w32term.c (x_draw_glyph_string): Likewise.
9834
ce952b6e
CY
98352008-11-15 Chong Yidong <cyd@stupidchicken.com>
9836
9837 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9838 the next glyph string once past the overhang width.
9839
9840 * nsterm.m (ns_draw_glyph_string): Likewise.
9841
9842 * w32term.c (x_draw_glyph_string): Likewise.
9843
26ea7079
CY
98442008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9845
9846 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9847 double file close.
9848
1c33c906
MR
98492008-11-14 Martin Rudalics <rudalics@gmx.at>
9850
9851 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9852 dedicated status of window before attempting to display another
9853 buffer in it.
9854
8fc29035
JB
98552008-11-14 Juanma Barranquero <lekktu@gmail.com>
9856
9857 * msdos.c (Fmsdos_long_file_names):
9858 (syms_of_msdos) <dos-unsupported-char-glyph>:
9859 * dosfns.c (Fint86): Fix typos in docstrings.
9860
55fb4286
EZ
98612008-11-14 Eli Zaretskii <eliz@gnu.org>
9862
9863 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9864
3fda0315
KY
98652008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9866
9867 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9868
7e849c17
CY
98692008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9870
9871 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9872
9873 * frame.h: Negative alpha means "don't touch".
9874
9875 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9876
9877 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9878
b9fd67bd
DN
98792008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9880
9881 * hftctl.c:
9882 * chpdef.h:
9883 * acldef.h: Remove files used only for systems no longer supported.
9884
9885 * Makefile.in: Fix .o alphabetical ordering.
9886 (hftctl.o): Remove dependency, file removed.
9887 (keymap.o, print.o): Depend on charset.h.
9888
d5998e03
KH
98892008-11-10 Kenichi Handa <handa@m17n.org>
9890
2ae37cf0 9891 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9892
be70e183
CY
98932008-11-08 Chong Yidong <cyd@stupidchicken.com>
9894
9895 * dired.c (file_name_completion): If completion_ignore_case is
9896 enabled, ignore case when checking completion-regexp-list.
9897
7cf94eac
EZ
98982008-11-08 Eli Zaretskii <eliz@gnu.org>
9899
9900 * vm-limit.c (get_lim_data): Fix last change.
9901
ee107a89
KH
99022008-11-08 Kenichi Handa <handa@m17n.org>
9903
9904 * character.c (Fget_byte): New function.
9905 (syms_of_character): Defsubr Fget_byte.
9906
5fd15622
CY
99072008-11-07 Chong Yidong <cyd@stupidchicken.com>
9908
9909 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9910 cursor position is valid after scrolling.
9911
13d62fad
JB
99122008-11-06 Juanma Barranquero <lekktu@gmail.com>
9913
9914 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9915
a1dd2936
GM
99162008-11-06 Glenn Morris <rgm@gnu.org>
9917
9918 * xterm.c (handle_one_xevent): Don't let popup menus cause
9919 mouse-autoselect-window related window switching. (Bug#1261)
9920
860cd236
CY
99212008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9922
9923 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9924
653a3150
AS
99252008-11-04 Andreas Schwab <schwab@suse.de>
9926
9927 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9928
870f5cac
CY
99292008-11-03 Chong Yidong <cyd@stupidchicken.com>
9930
9931 * xfns.c (Fx_wm_set_size_hint): New function.
9932
1e02f3cb
MR
99332008-11-03 Martin Rudalics <rudalics@gmx.at>
9934
9935 * textprop.c (Fprevious_single_char_property_change): Return 0
9936 when there's no change in a string. (Bug#1301)
9937
e630dfc6
MR
99382008-11-02 Martin Rudalics <rudalics@gmx.at>
9939
9940 * frame.c (do_switch_frame): New argument NORECORD passed to
9941 Fselect_window.
9942 (Fselect_frame): New argument NORECORD passed to
9943 do_switch_frame.
9944 (Fset_frame_selected_window): New argument NORECORD passed to
9945 Fselect_frame.
9946 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9947 in call of do_switch_frame.
9948 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9949 Handle NORECORD argument in call of Fselect_frame.
9950 * lisp.h (do_switch_frame, Fselect_frame)
9951 (Fset_frame_selected_window): Adjust declarations.
9952 * window.c (select_frame_norecord): New function.
9953 (run_window_configuration_change_hook): Use it and call
9954 Fselect_frame with NORECORD set.
9955 (Fselect_window): Pass NORECORD to Fselect_frame.
9956 (Fset_window_configuration): Handle NORECORD argument in call of
9957 do_switch_frame.
9958 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9959 Fset_frame_selected_window.
9960 * keyboard.c (command_loop_1): Handle NORECORD in call of
9961 Fselect_frame (currently ifdefd).
9962
9020b223
GM
99632008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9964
9965 * emacs.c (USAGE2): Untabify.
9966
793ffee8
SM
99672008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9968
9969 * composite.c (fill_gstring_header): Fix copy/paste typo.
9970
ab6d1131
MR
99712008-10-31 Martin Rudalics <rudalics@gmx.at>
9972
9973 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9974 (Fother_window): Rename argument and rewrite doc-string.
9975 (select_window_norecord): Fix return value. (Bug#1276)
9976
601a9cf1
JB
99772008-10-30 Juanma Barranquero <lekktu@gmail.com>
9978
9979 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9980 new frames overriding foreground for tooltips. Based on similar patch
9981 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9982
813b0652
CY
99832008-10-29 Chong Yidong <cyd@stupidchicken.com>
9984
9985 * emacs.c (Fdaemon_initialized): Initialize nfd.
9986
4414f58f
MR
99872008-10-29 Martin Rudalics <rudalics@gmx.at>
9988
9989 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9990 (Fwindow_text_height): Clarify doc-strings.
9991 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9992 doc-string of window-scroll-functions.
9993
ecdcaa09
RS
99942008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9995
9996 * category.c (syms_of_category): Fix typo in docstring.
9997
23fe745a
JB
99982008-10-28 Juanma Barranquero <lekktu@gmail.com>
9999
10000 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
10001 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
10002 Fix typos in docstrings.
10003
ff808935
DN
100042008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
10005
10006 * emacs.c (daemon_pipe): Make non-static.
10007 (IS_DAEMON): Move definition ...
10008 * lisp.h (IS_DAEMON): ... here.
10009 (daemon_pipe): Declare.
10010 (is_daemon): Remove.
10011 * dispnew.c (init_display): Use IS_DAEMON.
10012
fc012771
SM
100132008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
10014
10015 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
10016 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
10017
10018 * emacs.c (is_daemon): Remove.
10019 (main): Don't set is_daemon.
10020 (IS_DAEMON): New macro.
10021 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 10022 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
10023 parent exits.
10024 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
10025
d8bdbe6f
CY
100262008-10-27 Chong Yidong <cyd@stupidchicken.com>
10027
d1a072bf
CY
10028 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
10029 over-sized glyph, draw it with the default glyph width.
10030
e2e325aa
CY
10031 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10032 glyph, draw it with the default glyph width.
10033
10034 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
10035 glyph, draw it with the default glyph width.
10036
d8bdbe6f
CY
10037 * xdisp.c (try_scrolling): When computing the distance from the
10038 scroll margin to PT, try moving some distance past the window
10039 bottom before giving up.
10040
7bfac547
MR
100412008-10-27 Martin Rudalics <rudalics@gmx.at>
10042
10043 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
10044 (Fset_window_buffer): Explain in doc-string that a window can be
10045 "strongly" dedicated to its buffer.
10046
4ff029f6
DN
100472008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
10048
10049 * emacs.c (daemon_name): New variable.
10050 (main): Deal with --daemon=SERVER_NAME.
10051 (Fdaemonp): Return a name if one was passed to --daemon.
10052
5790ef40
DN
100532008-10-26 Romain Francoise <romain@orebokech.com>
10054
f9bd0df9 10055 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
10056 (main): Create a pipe before forking, make the parent exit only after
10057 the child has closed its end of the pipe. Move closing the
10058 descriptors ...
10059 (Fdaemon_initialized): ... here. New function.
10060
f5385255
SM
100612008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
10062
4d632321
SM
10063 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
10064 the previous unoptimized table.
10065
f5385255
SM
10066 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
10067 the distinction between non-nil and non-t value of `dedicated'.
10068
6c56a0f3
CY
100692008-10-25 Chong Yidong <cyd@stupidchicken.com>
10070
10071 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 10072 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 10073
fec89261
MR
100742008-10-25 Martin Rudalics <rudalics@gmx.at>
10075
10076 * window.c (Fget_buffer_window, Fdelete_windows_on)
10077 (Freplace_buffer_in_windows): Make buffer argument optional and
10078 rename to buffer_or_name.
10079
34fcddd0
CY
100802008-10-24 Chong Yidong <cyd@stupidchicken.com>
10081
f5385255
SM
10082 * xdisp.c (handle_single_display_spec, handle_display_prop):
10083 Undo 2005-05-16 change.
34fcddd0
CY
10084 (handle_stop): Pop iterator if it's loaded with an empty string.
10085 (get_overlay_strings_1): Don't save iterator if it's loaded with
10086 an empty string (bug#1201).
10087
064766f2
KH
100882008-10-24 Kenichi Handa <handa@m17n.org>
10089
10090 * ftfont.c (ftfont_otf_features): Fix previous change.
10091 (ftfont_otf_capability): Check FeatureList.FeatureCount before
10092 calling ftfont_otf_features.
10093
f9bd0df9 100942008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
10095
10096 * font.c (font_match_p): Fix for the case that a vector of
10097 characters is in script-representative-chars.
10098
1dae9197
MA
100992008-10-24 Michael Albinus <michael.albinus@gmx.de>
10100
10101 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 10102 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
10103 (xd_read_queued_messages): Catch Qdbus_error from the macros.
10104 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 10105 macro. (Bug#1186)
1dae9197 10106
f9bd0df9 101072008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
10108
10109 * s/sol2-10.h: New file.
10110
878a4584
JB
101112008-10-23 Juanma Barranquero <lekktu@gmail.com>
10112
10113 * xdisp.c (fill_glyph_string): Fix typo in source (though the
10114 poor beast has survived 9+ years and the jump from xterm.c!).
10115
cd265ca6
MR
101162008-10-23 Martin Rudalics <rudalics@gmx.at>
10117
10118 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
10119 Reword doc-string.
f5385255 10120 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 10121
472a4dc9
JB
101222008-10-23 Juanma Barranquero <lekktu@gmail.com>
10123
10124 * character.c (syms_of_character) <script-representative-chars>:
10125 <unicode-category-table>: Doc fixes.
10126
159bd5a2
NF
101272008-10-23 Noah Friedman <friedman@splode.com>
10128
10129 * coding.c (make_conversion_work_buffer): Check that
10130 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
10131 Fget_buffer_create.
10132
49f9c344
KH
101332008-10-23 Kenichi Handa <handa@m17n.org>
10134
10135 * font.c (font_add_log): Check the values of extra properties.
10136
12bb3111
MR
101372008-10-22 Martin Rudalics <rudalics@gmx.at>
10138
10139 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10140 Reword doc-string.
10141 (Fset_window_parameter): Use NILP.
10142 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 10143 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 10144
bbeb4e99
JB
101452008-10-22 Juanma Barranquero <lekktu@gmail.com>
10146
10147 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
10148
101492008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
10150
10151 * nsfns.m (ns_appkit_version): New function.
10152 (x-server-version): Use it.
10153 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10154 (x-server-vendor): Don't check_ns().
10155
10156 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10157
a9b555d3
JB
101582008-10-22 Juanma Barranquero <lekktu@gmail.com>
10159
10160 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10161 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10162
4626499f
KH
101632008-10-22 Kenichi Handa <handa@m17n.org>
10164
e3681952
KH
10165 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10166 scripts.
10167
4626499f
KH
10168 * category.c (word_boundary_p): Check scripts instead of charset.
10169 Handle nil value in word-separating-categories and
10170 word-combining-categories.
10171 (syms_of_category): Fix docstrings of word-separating-categories
10172 and word-combining-categories.
10173
1560f91a
EZ
101742008-10-21 Eli Zaretskii <eliz@gnu.org>
10175
10176 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10177 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10178
f4668441
MR
101792008-10-21 Martin Rudalics <rudalics@gmx.at>
10180
10181 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10182 Rename arg "buffer" to "buffer_or_name".
10183 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10184 it optional.
10185 (no_switch_window): Remove since the return value is not used.
a9b555d3 10186 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10187 Consider window as dedicated when Fwindow_dedicated_p returns a
10188 non-nil value.
10189 * lisp.h: Remove prototype for no_switch_window.
10190
fd75ddb2
JD
101912008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10192
10193 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10194 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10195
07295713
KH
101962008-10-21 Kenichi Handa <handa@m17n.org>
10197
10198 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10199 check Vlatin_extra_code_table.
10200
712adc82
EZ
102012008-10-20 Eli Zaretskii <eliz@gnu.org>
10202
10203 * fileio.c (Fset_file_modes): Doc fix.
10204
f549eb0b
MA
102052008-10-19 Michael Albinus <michael.albinus@gmx.de>
10206
10207 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10208 in arrays.
10209
aac0c6e3
MR
102102008-10-19 Martin Rudalics <rudalics@gmx.at>
10211
10212 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10213 Mention kill-buffer in doc-string.
10214 (Fset_window_buffer): Reinsert tem check removed in last commit.
10215 (Fenlarge_window, Fshrink_window): Have argument names and
10216 doc-string follow Elisp manual more closely.
10217
102182008-10-18 Eli Zaretskii <eliz@gnu.org>
10219
10220 * fileio.c (Fset_file_modes): Doc fix.
10221
102222008-10-18 Martin Rudalics <rudalics@gmx.at>
10223
10224 * window.c (Fwindow_width, Fset_window_start)
10225 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10226 (Fdelete_windows_on, Freplace_buffer_in_windows):
10227 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10228 (Fwindow_dedicated_p): Make window argument optional.
10229 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10230 (Fset_window_buffer): Respect any non-nil dedicated value for
10231 window. Rename "buffer" argument to "buffer_or_name".
10232
102332008-10-18 Ulrich Mueller <ulm@gentoo.org>
10234
10235 * m/sh3.h: New file, machine description for SuperH.
10236
102372008-10-17 Martin Rudalics <rudalics@gmx.at>
10238
10239 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10240
102412008-10-17 Kenichi Handa <handa@m17n.org>
10242
10243 * ftfont.c (ftfont_otf_features): Fix indexing
10244 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10245
102462008-10-16 Magnus Henoch <mange@freemail.hu>
10247
10248 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10249 (Fdbus_call_method_asynchronously): Ditto.
10250 This change makes C-h f display the argument list.
10251
102522008-10-16 Chong Yidong <cyd@stupidchicken.com>
10253
10254 * fileio.c (Fexpand_file_name): Doc fix.
10255
10256 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10257 of :foreground and :background equivalent to unspecified (20.x
10258 compatibility).
10259
102602008-10-15 Eli Zaretskii <eliz@gnu.org>
10261
10262 * buffer.c (syms_of_buffer): Doc fix.
10263
102642008-10-14 Kenichi Handa <handa@m17n.org>
10265
10266 * font.c (font_clear_prop): When clearing font width, clear the
10267 average width field too.
10268
102692008-10-12 Andreas Schwab <schwab@suse.de>
10270
10271 * ftfont.c (ftfont_shape_by_flt): Make static.
10272 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10273
10274 * font.c: Don't include <m17n-flt.h>.
10275
102762008-10-10 Eli Zaretskii <eliz@gnu.org>
10277
10278 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10279
102802008-10-09 Eli Zaretskii <eliz@gnu.org>
10281
10282 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10283 away code.
10284
102852008-10-09 Chong Yidong <cyd@stupidchicken.com>
10286
10287 * dispnew.c (update_text_area): Avoid looping due to large glyph
10288 overhangs (bug#1070).
10289
102902008-10-09 Kenichi Handa <handa@m17n.org>
10291
10292 * fontset.c (face_for_char): If face->fontset is negative, just
10293 return ascii_face.
10294
f5385255
SM
10295 * font.c (font_delete_unmatched): Fix previous change.
10296 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10297
102982008-10-09 Martin Rudalics <rudalics@gmx.at>
10299
10300 * frame.c (Fraise_frame): On text-only terminals select frame in
10301 order to make it visible. (Bug#1061)
10302
103032008-10-08 Chong Yidong <cyd@stupidchicken.com>
10304
10305 * fontset.c (fontset_find_font): Check frame validity.
10306
103072008-10-07 Chong Yidong <cyd@stupidchicken.com>
10308
a9b555d3 10309 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10310 (xg_display_close): Allow Emacs to close all displays (bug#985).
10311
103122008-10-06 Andreas Schwab <schwab@suse.de>
10313
f5385255 10314 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10315
103162008-10-06 Chong Yidong <cyd@stupidchicken.com>
10317
f5385255 10318 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10319
a9b555d3 10320 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10321
10322 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10323 during initialization.
10324
103252008-10-04 Eli Zaretskii <eliz@gnu.org>
10326
10327 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10328 whole thing on MSDOS frames as well as on a TTY.
10329
10330 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10331 well as for TTY.
10332 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10333 well as on a TTY.
10334
10335 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10336 as well as for TTY.
10337
10338 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10339
10340 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10341 MSDOS frames as well.
10342
103432008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10344
10345 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10346 correct arguments.
b71ac3dd 10347 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10348
103492008-10-03 Glenn Morris <rgm@gnu.org>
10350
10351 * emacs.c (USAGE1): Add --daemon.
10352
103532008-10-02 Eli Zaretskii <eliz@gnu.org>
10354
10355 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10356 100, so it's in percents as advertised.
10357
103582008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10359
10360 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10361 (ns_output.current_cursor, ns_output.desired_cursor)
10362 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10363 (FRAME_NEW_CURSOR_COLOR): Remove.
10364
10365 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10366 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10367 enumeration (HOLLOW_BOX_CURSOR, etc.).
10368
10369 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10370 (draw_window_cursor): Simplify code.
f5385255
SM
10371 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10372 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10373 updates manually.
a9b555d3
JB
10374 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10375 Use core Emacs cursor types.
aac0c6e3 10376
b8ff72fa 10377 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10378
103792008-10-02 Martin Rudalics <rudalics@gmx.at>
10380
10381 * process.c (Faccept_process_output): Fix doc-string.
10382
103832008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10384
10385 * gmalloc.c (__sbrk): Also define for uClibc.
10386
10387 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10388 for uClibc.
10389
103902008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10391
10392 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10393 styles.
10394 (nsfont_open): Reenable the cache.
10395
103962008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10397
10398 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10399 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10400
104012008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10402
10403 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10404 a suspended terminal.
10405
104062008-09-30 Michael Albinus <michael.albinus@gmx.de>
10407
10408 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10409
104102008-09-30 Eli Zaretskii <eliz@gnu.org>
10411
10412 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10413
104142008-09-30 Chong Yidong <cyd@stupidchicken.com>
10415
10416 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10417 in a continued line coincides with a line beginning.
10418
104192008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10420
10421 * nsfont.m (nsfont_trait_distance): Fix bug.
10422 (nsfont_list): Return a list rather than a vector (syncs with Handa
10423 changes of 2008-05-14).
10424 (nsfont_open): Improve logging.
10425
104262008-09-29 Andreas Schwab <schwab@suse.de>
10427
10428 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10429
104302008-09-28 Martin Rudalics <rudalics@gmx.at>
10431
10432 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10433 name as char-resolve-modifiers.
10434 Reported by: Markus Triska <markus.triska@gmx.at>
10435
104362008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10437
10438 * dispnew.c (init_display): Return earlier when running as a daemon.
10439
104402008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10441
10442 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10443
104442008-09-27 Eli Zaretskii <eliz@gnu.org>
10445
10446 * composite.c (Fcomposition_get_gstring)
10447 (Fcompose_region_internal, Fcompose_string_internal)
10448 (Ffind_composition_internal): Doc fix.
10449 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10450 (syms_of_composite) <auto-composition-function>: Doc fix.
10451 (syms_of_composite) <composition-function-table>: Doc fix.
10452
104532008-09-25 Chong Yidong <cyd@stupidchicken.com>
10454
10455 * search.c (wordify): New argument for lax word-ends.
10456 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10457
104582008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10459
10460 * lisp.h (is_daemon): Declare.
10461 * dispnew.c (init_display): Do not try to initialize the terminal
10462 when running as a daemon.
10463
104642008-09-22 Chong Yidong <cyd@stupidchicken.com>
10465
10466 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10467 x_display_pixel_height.
10468
104692008-09-22 Martin Rudalics <rudalics@gmx.at>
10470
10471 * undo.c (record_point): Don't call Fundo_boundary for first
10472 change. (Bug#731)
10473
104742008-09-22 Juanma Barranquero <lekktu@gmail.com>
10475
10476 * emacs.c (Fdaemonp): Doc fix.
10477
104782008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10479
10480 * emacs.c (main): Place #ifdef in the proper place.
10481
104822008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10483
10484 * emacs.c (standard_args): Add --daemon.
10485 (main): Disconnect from the terminal when --daemon is passed.
10486 (is_daemon): New variable.
10487 (Fdaemonp): New function.
10488 (syms_of_emacs): Defsubr it.
10489
104902008-09-20 Chong Yidong <cyd@stupidchicken.com>
10491
10492 * xdisp.c (get_next_display_element): Handle string display
10493 correctly when checking for the end of a box run.
10494
104952008-09-20 Glenn Morris <rgm@gnu.org>
10496
10497 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10498 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10499 (Frename_file): Avoid copying to trash if a rename involves
10500 a delete. (Bug#964).
10501
105022008-09-20 Eli Zaretskii <eliz@gnu.org>
10503
10504 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10505 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10506 frames as well as termcap frames.
10507 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10508 get_named_tty.
10509
105102008-09-19 Eli Zaretskii <eliz@gnu.org>
10511
10512 * process.c (procfs_system_process_attributes): Fix cmdline in
10513 case /proc/PID/cmdline is empty.
10514
10515 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10516 x_display_pixel_height.
10517
105182008-09-19 Juanma Barranquero <lekktu@gmail.com>
10519
10520 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10521
10522 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10523 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10524
105252008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10526
10527 * dispextern.h (struct it): Move line_wrap away from the middle of
10528 bitfields. Move voffset in struct iterator_stack_entry after the
10529 bitfields. Move tab_width near after another short.
10530
105312008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10532
10533 * frame.h (struct frame): Move alpha from the middle of bitfields.
10534
10535 * window.h (struct window): Move frozen_window_start_p after the
10536 rest of the bitfields to reduce padding.
10537
105382008-09-18 Chong Yidong <cyd@stupidchicken.com>
10539
10540 * xterm.h (x_display_info): Remove `height' and `width' members.
10541
10542 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10543
10544 * w32term.h (w32_display_info): Remove `height', `width',
10545 `height_in', and `width_in' members.
10546
b8ff72fa
SM
10547 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10548 New functions.
aac0c6e3
MR
10549 (x_calc_absolute_position): Use them.
10550 (x_term_init): Omit removed `height' and `width' members.
10551
b8ff72fa
SM
10552 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10553 New functions.
aac0c6e3
MR
10554 (w32_read_socket, x_calc_absolute_position): Use them.
10555 (w32_initialize_display_info, w32_term_init): Omit removed members
10556 of w32_display_info.
10557
b8ff72fa
SM
10558 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10559 New functions.
10560 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10561
b8ff72fa
SM
10562 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10563 New functions.
aac0c6e3
MR
10564 (x_calc_absolute_position): Use them.
10565 (x_term_init): Omit removed `height' and `width' members.
10566
10567 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10568 (compute_tip_xy):
10569 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10570 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10571 x_display_pixel_width.
10572
105732008-09-18 Kenichi Handa <handa@m17n.org>
10574
10575 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10576 (composition_compute_stop_pos): Fix handling of static composition.
10577 (Fcomposition_get_gstring): Check FROM and TO at first.
10578
105792008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10580
46e722a9 10581 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10582 mixup (YAILOM).
10583
105842008-09-17 Chong Yidong <cyd@stupidchicken.com>
10585
10586 * indent.c (Fvertical_motion): Use position reported by iterator
10587 instead of PT for determining screen motion (bug#943).
10588
105892008-09-17 Romain Francoise <romain@orebokech.com>
10590
10591 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10592
105932008-09-17 Kenichi Handa <handa@m17n.org>
10594
10595 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10596
10597 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10598 if necessary.
10599
106002008-09-16 Kenichi Handa <handa@m17n.org>
10601
10602 * coding.c (make_conversion_work_buffer): Avoid calling
10603 Fget_buffer_create if it is not necessary.
10604
106052008-09-15 Martin Rudalics <rudalics@gmx.at>
10606
10607 * window.c (Fselect_window): Don't update window_select_count and
10608 use_time when norecord is not nil.
10609
106102008-09-14 Kenichi Handa <handa@m17n.org>
10611
10612 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10613 specpdl_ptr.
10614
106152008-09-12 Kenichi Handa <handa@m17n.org>
10616
10617 * indent.c (scan_for_column): Don't handle automatic composition
10618 if the current buffer is not associated with a window.
10619
10620 * composite.c (composition_reseat_it): If the current buffer is
10621 not associated with a window, ignore the automatic composition.
10622 (find_automatic_composition): Likewise.
10623
106242008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10625
10626 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10627 (Fgpm_mouse_stop): Use it.
10628 * termhooks.h (close_gpm): Declare.
10629 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10630 connection if Gpm_GetEvent fails.
10631
10632 * window.c (set_window_buffer): Always preserve current-buffer.
10633
106342008-09-12 Glenn Morris <rgm@gnu.org>
10635
10636 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10637
106382008-09-11 Glenn Morris <rgm@gnu.org>
10639
10640 * charset.c (charset-map-path): Doc fix.
10641
106422008-09-10 Kenichi Handa <handa@m17n.org>
10643
10644 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10645
10646 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10647 compose a grapheme cluster with the preceding base glyph.
10648
10649 * composite.c (composition_compute_stop_pos): Fix previous change.
10650 Reset cmp_it->id to -1 at first.
10651
106522008-09-10 Glenn Morris <rgm@gnu.org>
10653
10654 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10655
106562008-09-09 Chong Yidong <cyd@stupidchicken.com>
10657
10658 * keyboard.c (read_key_sequence): Reapply translation maps when
10659 switching keyboards.
10660
106612008-09-09 Kenichi Handa <handa@m17n.org>
10662
10663 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10664 characters.
10665
10666 * composite.c (FORWARD_CHAR): Fix calculation
10667 of (POSITION).pos_byte.
10668 (composition_compute_stop_pos): Limit the search of composition to
10669 at most 500 characters ahead. If we reach the limit or find a
10670 newline, set cmp_it->ch to -2 and return 0.
10671 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10672
106732008-09-08 Kenichi Handa <handa@m17n.org>
10674
10675 * indent.c (Fvertical_motion): Be sure to set
10676 it_overshoot_expected if it.cmp_it.id is non-negative.
10677
106782008-09-07 Andreas Schwab <schwab@suse.de>
10679
10680 * callproc.c (Fcall_process): Don't hold references to string data
10681 across garbage collection. Move initialisation of new_argv down
10682 to avoid compiler bug.
10683
106842008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10685
10686 * process.c (Fsystem_process_attributes): Doc fix.
10687
106882008-09-07 Chong Yidong <cyd@stupidchicken.com>
10689
10690 * callproc.c (Fcall_process): Canonicalize current directory name.
10691
10692 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10693 iterator advances to the next line if the current line ends in a
10694 continued tab.
10695
106962008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10697
10698 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10699 member to point to cmp_from.
10700
10701 * xdisp.c: Doc fix for references to gidx data member.
10702
107032008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10704
10705 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10706
107072008-09-07 Kenichi Handa <handa@m17n.org>
10708
10709 * composite.c (FORWARD_CHAR): Check STOP after
10710 incrementing (POSITION).pos.
10711
107122008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10713
10714 * process.c (Fsystem_process_attributes): Doc fix.
10715
107162008-09-06 Chong Yidong <cyd@stupidchicken.com>
10717
10718 * keyboard.c (Ftop_level): Doc fix.
10719
107202008-09-06 Eli Zaretskii <eliz@gnu.org>
10721
10722 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10723 minibuffer, don't let lower part of menu invade the echo area.
10724
10725 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10726 "char *q" to access menu text and advance through it. Revert the
10727 change that displayed ">" instead of ASCII character 0x10.
10728
107292008-09-05 Eli Zaretskii <eliz@gnu.org>
10730
10731 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10732 toggle boxes and radio buttons on MS-DOS as well.
10733
107342008-09-05 Kenichi Handa <handa@m17n.org>
10735
10736 * composite.c (autocmp_chars): Check lookback count.
10737 (composition_compute_stop_pos): Set cmp_it->lookback.
10738 (composition_reseat_it): Check lookback count.
10739 (struct position_record): New struct.
10740 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10741 (find_automatic_composition): New function.
10742 (composition_adjust_point): Use find_automatic_composition.
10743
10744 * dispextern.h (struct composition_it): New member lookback.
10745
107462008-09-02 Chong Yidong <cyd@stupidchicken.com>
10747
10748 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10749 if moving by a single line.
10750
107512008-09-02 Andreas Schwab <schwab@suse.de>
10752
10753 * xterm.c (x_delete_display): Fix merge error.
10754
10755 * fileio.c (Fexpand_file_name): Remove unused variables.
10756
107572008-09-02 Eli Zaretskii <eliz@gnu.org>
10758
10759 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10760 storage on all platforms, not just on DOS_NT.
10761
107622008-09-02 Jason Rumney <jasonr@gnu.org>
10763
b8ff72fa
SM
10764 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10765 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10766
107672008-09-01 Chong Yidong <cyd@stupidchicken.com>
10768
10769 * xfaces.c (Finternal_set_alternative_font_family_alist)
10770 (Finternal_set_alternative_font_registry_alist): Properly copy
10771 entire alist structure.
10772
107732008-09-01 Kenichi Handa <handa@m17n.org>
10774
d66c0241 10775 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10776 representative chars of the script is a vector.
d66c0241
JB
10777 (ftfont_list): Handle the case where the representative chars of
10778 the script is a vector.
aac0c6e3
MR
10779
10780 * character.c (syms_of_character): Docstring of
10781 script-representative-chars fixed.
10782
107832008-08-31 Eli Zaretskii <eliz@gnu.org>
10784
10785 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10786 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10787 the menu. Allocate larger buffer for `text', to account for
10788 possible ^C characters.
10789
107902008-08-31 Martin Rudalics <rudalics@gmx.at>
10791
10792 * xdisp.c (prepare_menu_bars): Don't call
10793 Vwindow_size_change_functions with arg Qt.
10794
107952008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10796
10797 * font.h (font_range):
10798 * fileio.c (report_file_error):
46e722a9
SM
10799 * composite.c (composition_update_it): Yet another int/Lisp_Object
10800 mixup (YAILOM).
aac0c6e3
MR
10801
108022008-08-30 Glenn Morris <rgm@gnu.org>
10803
10804 * data.c (Fmake_variable_frame_local): Doc fix.
10805
10806 * frame.c (Fmodify_frame_parameters): Doc fix.
10807
108082008-08-30 Eli Zaretskii <eliz@gnu.org>
10809
10810 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10811 needed by GetTokenInformation.
10812 (w32_system_process_attributes): Check return values of all system
10813 APIs.
10814
10815 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10816 only when the state changes.
10817 (IT_update_begin, IT_update_end): Add termscript trace.
10818
10819 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10820 clipboard is unavailable. Set dst to NULL if it doesn't point to
10821 malloc'ed data.
10822 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10823 passing random values to xfree.
10824
10825 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10826 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10827
108282008-08-29 Jason Rumney <jasonr@gnu.org>
10829
10830 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10831
108322008-08-29 Eli Zaretskii <eliz@gnu.org>
10833
10834 * composite.c (fill_gstring_body): Avoid compiler warnings.
10835
10836 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10837 LGLYPH_SET_CODE to avoid compiler warnings.
10838
2ae37cf0 10839 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10840
10841 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10842
10843 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10844 LGLYPH_SET_CODE.
10845
108462008-08-29 Kenichi Handa <handa@m17n.org>
10847
10848 * fileio.c (report_file_error): Don't downcase the first character
10849 of errstring if it is still unibyte.
10850
108512008-08-29 Kenichi Handa <handa@m17n.org>
10852
10853 These changes are to re-implement the automatic composition so
10854 that it doesn't use text properties.
10855
10856 * Makefile.in (ftfont.o): Depend on composite.h.
10857 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10858
10859 * character.h (Vunicode_category_table): Extern it.
10860
10861 * character.c (Vunicode_category_table): New variable.
10862 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10863
10864 * chartab.c (optimize_sub_char_table): Perform more greedy
10865 optimization.
10866
b8ff72fa
SM
10867 * composite.h (enum composition_method):
10868 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10869 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10870 (Vcomposition_function_table): Extern it.
10871 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10872 (composition_gstring_put_cache, composition_gstring_from_id)
10873 (composition_gstring_p, composition_gstring_width)
10874 (composition_compute_stop_pos, composition_reseat_it)
10875 (composition_update_it, composition_adjust_point): Extern them.
10876 (Fcomposition_get_gstring): EXFUN it.
10877
d66c0241 10878 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10879 (Vcomposition_function_table)
10880 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10881 (gstring_hash_table, gstring_work, gstring_work_headers):
10882 New variables.
aac0c6e3
MR
10883 (gstring_lookup_cache, composition_gstring_put_cache)
10884 (composition_gstring_from_id, composition_gstring_p)
10885 (composition_gstring_width, fill_gstring_header)
10886 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10887 (composition_reseat_it, composition_update_it)
b8ff72fa 10888 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10889 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10890 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10891 Defsubr composition_get_gstring.
aac0c6e3
MR
10892
10893 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10894 cmp_id.
10895 (struct glyph_string): Delete the member gidx. New members
10896 cmp_id, cmp_from, and cmp_to.
10897 (enum it_method): Delete GET_FROM_COMPOSITION.
10898 (struct composition_it): New struct.
10899 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10900 Delete c, len, cmp_id, cmp_len in u.comp.
10901
10902 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10903 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10904 (enum lglyph_indices): Likewise.
b8ff72fa 10905 (font_range): Adjust extern.
aac0c6e3
MR
10906 (font_fill_lglyph_metrics): Extern it.
10907
10908 * font.c (QCf): New variable.
10909 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10910 (font_prepare_composition): Delete this function.
10911 (font_range): Type and arguments changed.
10912 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10913 (font_fill_lglyph_metrics): New function.
b8ff72fa 10914 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10915 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10916 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10917 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10918
10919 * fontset.h (font_for_char): Extern it.
10920
10921 * fontset.c (font_for_char): New function.
10922
10923 * ftfont.c: Include composite.h.
10924 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10925 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10926
10927 * indent.c: Include composite.h and dispextern.h.
10928 (check_composition): Delete this function.
10929 (scan_for_column): Handle composition by
10930 composition_compute_stop_pos, composition_reseat_it, and
10931 composition_update_it.
10932 (compute_motion): Likewise.
10933 (Fvertical_motion): Fix checking of composition.
10934
10935 * keyboard.c (adjust_point_for_property): Check composition by
10936 composition_adjust_point.
10937
b8ff72fa 10938 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10939 struct glyph_string.
10940
b8ff72fa
SM
10941 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10942 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10943 struct glyph.
10944 (produce_composite_glyph): Likewise.
10945
b8ff72fa
SM
10946 * w32term.c (x_draw_composite_glyph_string_foreground):
10947 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10948 (x_draw_glyph_string): Likewise.
10949
10950 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10951 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10952
10953 * xdisp.c: Include font.h.
10954 (it_props): Delete the entry for Qauto_composed.
10955 (init_iterator): Initialize it->cmp_it.id to -1.
10956 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10957 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10958 (handle_auto_composed_prop): Delete it.
10959 (handle_composition_prop): Handle only static composition.
10960 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10961 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10962 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10963 (pop_it): Likewise.
10964 (get_next_element): Delete next_element_from_composition.
10965 (CHAR_COMPOSED_P): New macro.
10966 (get_next_display_element): For automatic composition, get a face
10967 from the font in the glyph-string.
10968 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10969 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10970 (next_element_from_string): Check if the character at the current
10971 position is composed by CHAR_COMPOSED_P.
10972 (next_element_from_buffer): Likewise.
d66c0241
JB
10973 (next_element_from_composition): Adjust for the change of struct it.
10974 Update it->cmp_it.
b8ff72fa
SM
10975 (dump_glyph): Adjust for the change of struct glyph.
10976 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10977 it and struct glyph. Don't handle automatic composition here.
10978 (fill_gstring_glyph_string): New function.
10979 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10980 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10981 (BUILD_GSTRING_GLYPH_STRING): New macro.
10982 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10983 automatic composition.
b8ff72fa 10984 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10985 struct glyph.
b8ff72fa 10986 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10987
b8ff72fa 10988 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10989 the change of struct glyph_string.
10990 (x_draw_glyph_string): Likewise.
10991
109922008-08-29 Glenn Morris <rgm@gnu.org>
10993
10994 * buffer.c (word-wrap): Doc fix.
10995 * xdisp.c (truncate-partial-width-windows): Doc fix.
10996 Increase default to 50.
10997
109982008-08-29 Chong Yidong <cyd@stupidchicken.com>
10999
11000 * xdisp.c (update_tool_bar_unwind): New function.
11001 (update_tool_bar): Temporarily set selected frame before building
11002 tool-bar items.
11003
110042008-08-28 Michael Albinus <michael.albinus@gmx.de>
11005
11006 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
11007 snprintf, respectively.
11008 (xd_append_arg): Convert strings with Fstring_make_unibyte.
11009
110102008-08-28 Chong Yidong <cyd@stupidchicken.com>
11011
11012 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
11013 LDFLAGS to GNUstep CC invocation.
11014
110152008-08-27 Chong Yidong <cyd@stupidchicken.com>
11016
11017 * indent.c (Fvertical_motion): Revert last change. Handle the
11018 general case where we are moving forward, and PT spans multiple
11019 screen lines.
11020
11021 * eval.c (find_handler_clause): Temporarily increase
11022 max-lisp-eval-depth while printing the backtrace buffer, to
11023 guarantee that help-mode code can run.
11024
110252008-08-27 Eli Zaretskii <eliz@gnu.org>
11026
11027 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
11028 colors under -rv.
11029 (IT_set_frame_parameters): Don't swap foreground and background
11030 colors if `(reverse . t)' is present in the frame properties.
11031 (internal_terminal_init): Call init_frame_faces only for the
11032 initial frame.
11033
110342008-08-27 Andreas Schwab <schwab@suse.de>
11035
11036 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
11037
110382008-08-27 Andreas Schwab <schwab@suse.de>
11039
11040 * search.c (search_buffer): Set char_base to zero only at the end.
11041
110422008-08-27 Kenichi Handa <handa@m17n.org>
11043
b8ff72fa 11044 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
11045
110462008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
11047
11048 * xterm.c (x_term_init): Temporarily hide the partially
11049 initialized terminal while calling vendor-specific-keysyms.
11050
110512008-08-26 Eli Zaretskii <eliz@gnu.org>
11052
11053 * msdos.c (internal_terminal_init): Most initializations done only
11054 once, especially initial_screen_colors[] and termscript open.
11055
110562008-08-26 Chong Yidong <cyd@stupidchicken.com>
11057
11058 * eval.c (Fcondition_case): Doc fix.
11059
11060 * widgetprv.h (EmacsFramePart): Change font member to the new font
11061 struct.
11062
11063 * widget.c: Include character.h and font.h for XSETFONT.
11064 (setup_frame_gcs): Compute X font id from font struct, just once.
11065
110662008-08-26 Eli Zaretskii <eliz@gnu.org>
11067
11068 * term.c (get_named_tty): Fix last change.
11069
110702008-08-26 Chong Yidong <cyd@stupidchicken.com>
11071
11072 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 11073 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
11074
110752008-08-25 Eli Zaretskii <eliz@gnu.org>
11076
11077 * frame.c (do_switch_frame): Mark previously displayed frame as
11078 obscured for FRAME_MSDOS_P frames as well.
11079
110802008-08-24 Eli Zaretskii <eliz@gnu.org>
11081
11082 * frame.c (make_terminal_frame): Initialize f->terminal,
11083 f->terminal->reference_count, and scroll bars on MS-DOS as well.
11084 Set the top frame to newly created frame.
11085 (Fmake_terminal_frame): Reuse the_only_display_info.
11086
11087 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
11088 estimating available memory.
11089
b97439ce 110902008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
11091
11092 * nsterm.m (ns_draw_window_cursor): Don't call
11093 NSDisableScreenUpdates and NSEnableScreenUpdates on
11094 non-NS_IMPL_COCOA systems.
11095
110962008-08-23 Andreas Schwab <schwab@suse.de>
11097
11098 * process.c (procfs_system_process_attributes): Fix use of
11099 uninitialized variables.
11100
111012008-08-23 Eli Zaretskii <eliz@gnu.org>
11102
11103 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
11104
11105 * dispnew.c (init_display): Remove MS-DOS specific conditions for
11106 calling tty-set-up-initial-frame-faces.
11107
b8ff72fa
SM
11108 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
11109 Allow MSDOS frames along with X frames.
aac0c6e3
MR
11110
11111 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
11112 addition to output_termcap.
11113
11114 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
11115
11116 * termchar.h (FRAME_TTY): Support output_msdos_raw.
11117 (struct tty_display_info) [MSDOS]: Add fields related to mouse
11118 highlight.
11119
11120 * process.c [!subprocesses]: Define QCname.
11121 (syms_of_process): Intern and staticpro it.
11122
11123 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
11124 Adjust for changes in encoding/decoding routines.
11125 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
11126 encode_coding and decode_coding.
11127
b8ff72fa 11128 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
11129
11130 * dosfns.c: Include frame.h before termhooks.h.
11131 (dos_cleanup): Use CURTTY ()->termscript instead of a global
11132 variable termscript.
11133
11134 * s/msdos.h (USER_FULL_NAME): Define.
11135 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
11136
11137 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
11138 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
11139 pw->pw_gecos.
11140
11141 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
11142 SELECTED_FRAME as additional (1st) argument.
11143 (tty_read_avail_input): Handle output_msdos_raw in
11144 addition to output_termcap.
11145
11146 * msdos.c: Include frame.h before termhooks.h.
11147 (mouse_on, mouse_off, mouse_moveto, mouse_init)
11148 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
11149 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
11150 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
11151 (IT_set_terminal_modes, IT_reset_terminal_modes)
11152 (IT_set_frame_parameters): Use tty->termscript instead of a global
11153 variable termscript.
11154 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11155 global variable terminal_coding. Don't refer to
11156 Vnonascii_translation_table.
11157 (internal_terminal_init): Set Vwindow_system in current_kboard.
11158 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11159 Announce date and time of session start, if termscript is open.
11160 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11161 term.c:init_tty). Open termscript only of not already open.
11162 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11163 here instead of dos_ttraw. Don't initialize display if this is an
11164 initial tty. Don't set FRAME_FONT.
11165 (Vwindow_system_version): Bump to 23.
11166 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11167 is available, set up mouse_position_hook.
11168 (dos_ttraw, IT_set_terminal_modes): If called with initial
11169 terminal, do nothing.
11170 (IT_set_frame_parameters): Handle the Qtty_type frame
11171 parameter by calling internal_terminal_init.
11172 (dos_set_window_size, show_mouse_face)
11173 (clear_mouse_face, IT_note_mode_line_highlight)
11174 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11175 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11176 (initialize_msdos_display): New function.
11177 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11178 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11179 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11180 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11181 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11182 (request_sigio, unrequest_sigio): Don't define, now defined on
11183 sysdep.c.
11184 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11185
11186 * term.c [MSDOS]: Include msdos.h.
11187 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11188 conditional to DOS_NT. Allow only one call to this function in a
11189 session. Don't allocate a new struct tty_display_info; instead,
11190 reuse the_only_display_info. Call get_tty_size to get screen
11191 dimensions. Call init_baud_rate to set bad_rate.
11192 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11193 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11194 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11195 (get_tty_terminal, get_named_tty, Ftty_type)
11196 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11197 output_termcap.
b8ff72fa
SM
11198 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11199 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11200 only when subprocesses are supported.
aac0c6e3
MR
11201
11202 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11203 f->output_data.x.
11204 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11205 terminal devices.
11206
5582fbc7 11207 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11208 x_output.
11209 (FRAME_FONT): Use output_data.tty.
11210 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11211 (struct x_display_info): Rename from display_info. Update all users in
11212 msdos.c.
aac0c6e3 11213 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11214 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11215 (dos_ttraw): Update prototype.
11216
11217 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11218 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11219
112202008-08-23 Jason Rumney <jasonr@gnu.org>
11221
11222 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11223 (fn_TIFFSetDirectory): New library function used.
11224 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11225 (tiff_load): Use :index to select among multiple images. Set count
11226 property when multiple images exist.
11227 (gif_format): Use :index, not :image.
11228
112292008-08-23 Chong Yidong <cyd@stupidchicken.com>
11230
11231 * xdisp.c (try_scrolling): Check INT_MAX instead of
11232 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11233 to obtain INT_MAX.
11234
112352008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11236
11237 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11238
112392008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11240
11241 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11242 GNUstep library location.
11243
112442008-08-21 Chong Yidong <cyd@stupidchicken.com>
11245
11246 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11247 before using it.
11248
11249 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11250
112512008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11252
11253 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11254 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11255 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11256 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11257 (EmacsApp-cursor_blink_handler): Remove declaration.
11258 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11259 match 01 Feb 2008 changes in xterm.c.
11260 (ns_read_socket): Add cast to avoid warning.
11261 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11262 GNUstep.
11263
112642008-08-20 Chong Yidong <cyd@stupidchicken.com>
11265
11266 * xselect.c (x_get_foreign_selection): Return nil if desired
11267 selection could not be obtained, instead of signalling an error.
11268
112692008-08-20 David Reitter <david.reitter@gmail.com>
11270
11271 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11272 * nsterm.m: Remove ns-specific code for cursor blinking.
11273 (ns_draw_window_cursor): Clear cursor properly rather than
11274 redrawing the area. Respect width of bar cursors.
11275 These changes enable the use of generic blink-cursor-mode and
11276 generic cursor types in NS and support smooth cursor movements (do
11277 not blink off after command).
11278 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11279 Nextstep, too.
11280
112812008-08-19 Kenichi Handa <handa@m17n.org>
11282
11283 * font.c (Vfont_log_deferred): New variable.
11284 (font_add_log): Check Vfont_log_deferred.
11285 (font_deferred_log): New function.
11286
11287 * font.h (font_deferred_log): Extern it.
11288
11289 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11290 for sorting.
11291 (face_for_char): Use deferred log.
11292
112932008-08-18 Kenichi Handa <handa@m17n.org>
11294
11295 * fontset.c (face_for_char): Add font log.
11296
11297 * font.c (font_add_log): Add the font properties :script, :lang,
11298 and :otf in the log.
11299
113002008-08-17 Chong Yidong <cyd@stupidchicken.com>
11301
11302 * xdisp.c: Remove dead code.
11303 (handle_invisible_prop, next_overlay_string): Defer call to
11304 setup_for_ellipsis.
11305 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11306
113072008-08-15 Chong Yidong <cyd@stupidchicken.com>
11308
11309 * xfaces.c (lookup_derived_face): Properly handle possible zero
11310 return value of get_lface_attributes.
11311 (merge_faces): Don't tell lookup_derived_face to signal an error
11312 if face is not found.
11313
11314 * dired.c (Fdirectory_files): Doc fix.
11315
11316 * process.c (make_process): Initialize kill_without_query struct
11317 member.
11318
113192008-08-15 Eli Zaretskii <eliz@gnu.org>
11320
11321 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11322 Alternative calculation of totphys for Visual Studio 6.
11323
11324 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11325
11326 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11327 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11328 All users changed.
11329 (stat): Only root directory passed to GetDriveType. Allow RAM
11330 disk as well as local fixed disk when w32-get-true-file-attributes
11331 is set to `local'.
11332 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11333 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11334 (w32_cached_id, w32_add_to_cache): New functions.
11335 (get_name_and_id): Look account names in the cache before calling
11336 lookup_account_sid.
11337 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11338 New initialization flags.
11339 (globals_of_w32): Initialize them to zero.
11340 (w32_system_process_attributes): Use w32_cached_id and
11341 w32_add_to_cache.
11342
113432008-08-14 Lawrence Mitchell <wence@gmx.li>
11344
11345 * lread.c (Fread_char, Fread_char_exclusive): If no character
11346 event is read before timeout is reached, return nil, rather than
11347 converting to a number.
11348
113492008-08-14 Chong Yidong <cyd@stupidchicken.com>
11350
11351 * fns.c (use_dialog_box): Doc fix.
11352
11353 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11354 on OS X.
11355
113562008-08-13 Chong Yidong <cyd@stupidchicken.com>
11357
11358 * frame.c (Qns_parse_geometry): New var.
11359 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11360
113612008-08-11 Chong Yidong <cyd@stupidchicken.com>
11362
11363 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11364 space character in calculating tabs.
11365
113662008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11367
11368 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11369
113702008-08-10 Glenn Morris <rgm@gnu.org>
11371
11372 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11373 silence gcc "limited range of data type" warnings in some
11374 make_fixnum_or_float calls.
11375
113762008-08-09 Eli Zaretskii <eliz@gnu.org>
11377
11378 * w32.c (w32_system_process_attributes): If the process does not
11379 exist, return nil.
11380
11381 * w32.c: Include thelp32.h, psapi.h and coding.h.
11382 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11383 declarations.
11384 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11385 (Process32Next_Proc): New typedefs.
11386 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11387 (g_b_init_process32_next, g_b_init_open_thread_token)
11388 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11389 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11390 (g_b_init_get_process_working_set_size)
11391 (g_b_init_global_memory_status_ex): New static variables.
11392 (globals_of_w32): Initialize them.
11393 (create_toolhelp32_snapshot, process32_first, process32_next)
11394 (open_thread_token, impersonate_self, revert_to_self)
11395 (get_process_memory_info, get_process_working_set_size)
11396 (global_memory_status, global_memory_status_ex): New wrapper
11397 functions.
11398 (w32_list_system_processes, w32_system_process_attributes)
11399 (enable_privilege, restore_privilege, ltime, process_times):
11400 New functions.
11401 (convert_time_raw): New function.
11402 (convert_time): Remove conversion of FILETIME into time in 100
11403 nsec units, call convert_time_raw instead.
11404
11405 * process.h (w32_list_system_processes, w32_system_process_attributes):
11406 Add prototypes.
11407 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11408 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11409 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11410 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11411
11412 * process.c (Fsystem_process_attributes): Doc fix.
11413
114142008-08-08 Chong Yidong <cyd@stupidchicken.com>
11415
11416 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11417 a continued multi-char glyph; if so, advance to the actual glyph.
11418
114192008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11420
11421 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11422
11423 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11424 (.m.o): Use it.
11425 * config.in: Regenerate.
11426
114272008-08-07 Chong Yidong <cyd@stupidchicken.com>
11428
11429 * xdisp.c (redisplay_window): Revert last change.
11430 (try_window): Check bottom scroll margin too.
11431
114322008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11433
11434 * config.in: Regenerate.
11435
11436 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11437 -list-load-path-shadows'.
11438 (nsgui.h): Reduce number of things depending on it.
11439
114402008-08-06 Chong Yidong <cyd@stupidchicken.com>
11441
11442 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11443 instead of window-end which does the wrong thing at eob.
11444 (try_cursor_movement): Minor optimization.
11445 (redisplay_window): If scroll margin is defined, don't assume
11446 window doesn't need scrolling.
11447
114482008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11449
11450 * config.in: Regenerate.
11451
11452 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11453 (mostlyclean): Don't delete *.d under NS.
11454
11455 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11456
114572008-08-06 Kenichi Handa <handa@m17n.org>
11458
11459 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11460
114612008-08-06 Andreas Schwab <schwab@suse.de>
11462
11463 * config.in: Regenerate.
11464
114652008-08-05 Chong Yidong <cyd@stupidchicken.com>
11466
11467 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11468 forcing a window start.
11469
11470 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11471 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11472
114732008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11474
11475 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11476 argument.
11477
114782008-08-05 Juanma Barranquero <lekktu@gmail.com>
11479
11480 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11481 <scroll-down-aggressively, before-change-functions>:
11482 <after-change-functions>: Reflow docstrings.
11483
114842008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11485 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11486
11487 Dock menu customization, based on a patch by Ken Raeburn, plus some
11488 other fixes.
11489 * nsmenu.m (dockMenu): New variable.
11490 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11491
11492 * nsterm.h (dockMenu): Declare.
11493
11494 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11495 (ns_term_init): Initialize dockMenu.
11496 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11497 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11498 left.
11499
11500 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11501
115022008-08-04 Chong Yidong <cyd@stupidchicken.com>
11503
11504 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11505
11506 * config.in: Regenerate.
11507
115082008-08-04 Seiji Zenitani <zenitani@mac.com>
11509
11510 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11511
115122008-08-04 Chong Yidong <cyd@stupidchicken.com>
11513
11514 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11515
115162008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11517
11518 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11519
11520 * keyboard.h: Comment an #endif.
11521
11522 * lisp.h (have_menus_p): Adjust comment.
11523
11524 * menu.c (find_and_return_menu_selection): Fix comparison with
11525 client_data.
11526
11527 * nsmenu.m (popup_activated_flag): New variable.
11528 (popup_activated): New function.
11529 (menu-or-popup-active-p): New exported lisp definition.
11530 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11531 when popup done.
11532 (ns_popup_dialog): Set popup_activated_flag.
11533
11534 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11535 version for GNUstep (handled by conditional typedef in nsterm.m).
11536 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11537 in rgb.txt).
11538
11539 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11540
11541 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11542
11543 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11544
11545 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11546 shortcircuit if popup_activated like GTK and X toolkit.
11547
11548 * m/inter386.h: Change DARWIN to DARWIN_OS.
11549
11550 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11551 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11552 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11553 comment on NO_SOCK_SIGIO.
11554
115552008-08-03 Chong Yidong <cyd@stupidchicken.com>
11556
11557 * nsterm.m (windowDidResize): Remove stopModal call.
11558
115592008-08-03 Andreas Schwab <schwab@suse.de>
11560
11561 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11562 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11563
115642008-08-02 Chong Yidong <cyd@stupidchicken.com>
11565
11566 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11567 Don't use uninitialized pointer variable when using getrlimit.
11568
115692008-08-02 Jason Rumney <jasonr@gnu.org>
11570
11571 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11572
115732008-08-02 Eli Zaretskii <eliz@gnu.org>
11574
11575 * alloc.c (NSTATICS): Bump to 0x640.
11576
11577 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11578
11579 * lisp.h: Add prototype for directory_files_internal.
11580
11581 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11582 New functions.
11583 (syms_of_process): Defsubr them. Add initializations for various
11584 Q* symbols used in procfs_system_process_attributes.
11585 (procfs_list_system_processes, procfs_system_process_attributes)
11586 [HAVE_PROCFS]: New functions.
11587 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11588 (procfs_get_total_memory): New functions.
11589
115902008-08-01 Juanma Barranquero <lekktu@gmail.com>
11591
11592 * xfaces.c (Fx_load_color_file): Fix previous change;
11593 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11594
115952008-08-01 Michael Albinus <michael.albinus@gmx.de>
11596
11597 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11598
115992008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11600
11601 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11602
116032008-08-01 Chong Yidong <cyd@stupidchicken.com>
11604
11605 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11606
11607 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11608 define NSApplicationDelegateReplySuccess.
11609 (EmacsView -converstationIdentifier): Use long instead of
11610 NSInteger for GNUstep, since it doesn't have NSInteger.
11611
11612 * xmenu.c: Revert last change.
11613
11614 * keyboard.h: Fix last change.
11615
116162008-08-01 Juanma Barranquero <lekktu@gmail.com>
11617
11618 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11619 on Windows.
11620
116212008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11622
11623 Warning clearing and clean-up in NS port.
11624 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11625 Add prototypes.
11626 * nsgui.h (FACE_DEFAULT): Remove, unused.
11627 (XGCValues): Change colors to unsigned long.
11628 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11629 nsterm.m.
11630 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11631 (ns_list_fonts): Remove, unused.
11632 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11633 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11634 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11635 (nsfont_draw): Compare face colors to 0, not nil.
11636 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11637 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11638 (-addSubmenuWithTitle:): Use NSMenuItem class.
11639 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11640 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11641 (ns_clip_to_row): Make gc arg a BOOL.
11642 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11643 ns_clip_to_row() call.
11644 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11645 used). Cast FRAME_FONT assignments.
11646 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11647 (ns_string_to_lispmod): Change arg to const char.
11648 (ns_term_init): Use NSMenuItem class.
11649 (EmacsApp -openFile:): Move to different section of file.
11650 (EmacsApp -application:openFiles:): Don't return a value, call
11651 -replyToOpenOrPrint:.
11652 (EmacsView -keyDown:): Fix up cast.
11653 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11654 (EmacsView -menuDown:): Cast tag in call to
11655 find_and_call_menu_selection().
11656 (ns_list_fonts): Remove, unused.
11657 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11658 (ns_fontname_to_xlfd): Make static.
11659 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11660 Remove prototypes (now in keyboard.h).
11661 (next_menubar_widget_id): Remove, unused.
11662 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11663 Remove prototypes (now in keyboard.h).
11664 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11665
116662008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11667
11668 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11669 (floatfns.o): Depend on syssignal.h.
11670 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11671
11672 * systty.h: Fix previous change that removed BSD_TERMIOS.
11673 Add comments to #ifdefs.
11674
116752008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11676
11677 * w32fns.c (w32-load-color-file): Remove.
11678 (x-open-connection): Use renamed Fx_load_color_file.
11679 * xfaces.c (x-load-color-file): Add.
11680 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11681 Emacs.clr.
11682 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11683
116842008-07-31 Michael Albinus <michael.albinus@gmx.de>
11685
11686 * dbusbind.c (Fdbus_call_method_asynchronously)
11687 (Fdbus_method_error_internal): New defuns.
11688 (xd_read_message): Handle also reply messages.
11689 (Vdbus_registered_functions_table): Extend docstring.
11690
116912008-07-31 Juanma Barranquero <lekktu@gmail.com>
11692
11693 * keyboard.c (gobble_input): Fix previous change.
11694
116952008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11696
11697 * bitmaps/README:
11698 * xfns.c:
11699 * termcap.c:
11700 * term.c:
11701 * syswait.h:
11702 * systty.h:
11703 * systime.h:
11704 * syssignal.h:
11705 * sysdep.c:
11706 * process.h:
11707 * process.c:
11708 * print.c:
11709 * ndir.h:
11710 * lread.c:
11711 * keyboard.c:
11712 * getpagesize.h:
11713 * floatfns.c:
11714 * fileio.c:
11715 * emacs.c:
11716 * doc.c:
11717 * dispnew.c:
11718 * dired.c:
11719 * data.c:
11720 * callproc.c:
11721 * buffer.c:
11722 * README:
11723 * Makefile.in:
11724 * s/template.h:
11725 * s/msdos.h:
11726 * m/vax.h: Remove VMS support.
11727 * s/vms.h:
11728 * vlimit.h:
11729 * uaf.h:
11730 * temacs.opt:
11731 * param.h:
11732 * ioctl.h: Remove file.
11733
117342008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11735
11736 * s/ms-w32.h (MULTI_KBOARD): Remove.
11737 * xterm.c:
11738 * xselect.c:
11739 * xfns.c:
11740 * window.c:
11741 * w32term.c:
11742 * w32fns.c:
11743 * terminal.c:
11744 * termhooks.h:
11745 * term.c:
11746 * sysdep.c:
11747 * keyboard.h:
11748 * keyboard.c:
11749 * frame.h:
11750 * frame.c:
11751 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11752 * config.in: Regenerate.
11753
117542008-07-30 Jason Rumney <jasonr@gnu.org>
11755
11756 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11757
11758 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11759 (w32font_open_internal): Get unicode version of textmetrics.
11760 Don't enable or disable glyph indices here.
11761 (w32font_open): Disable use of glyph indices.
11762
11763 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11764
117652008-07-30 Chong Yidong <cyd@stupidchicken.com>
11766
11767 * minibuf.c (Vread_buffer_function): Doc fix.
11768
117692008-07-30 John Paul Wallington <jpw@pobox.com>
11770
11771 * minibuf.c (read_buffer_completion_ignore_case): New var.
11772 (Fread_buffer): Use it.
11773
117742008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11775
11776 * systty.h (sensemode): Remove empty #if. Remove reference to
11777 BSD_TERMIOS, unused.
11778
11779 * sysdep.c: Remove reference to DGUX.
11780 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11781
11782 * config.in: Regenerate.
11783
117842008-07-30 Jason Rumney <jasonr@gnu.org>
11785
11786 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11787
117882008-07-29 Jason Rumney <jasonr@gnu.org>
11789
11790 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11791 is populated.
11792 (uniscribe_encode_char): Always use uniscribe.
11793 Avoid using context if cache is populated.
11794
117952008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11796
11797 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11798 open menu.
11799
11800 * gtkutil.c (menu_nav_ended): Remove.
11801 (create_menus): Remove signal connect for menu_nav_ended.
11802
118032008-07-28 Chong Yidong <cyd@stupidchicken.com>
11804
11805 * xdisp.c (redisplay_window): Check return value of
11806 compute_window_start_on_continuation_line before forcing a window
11807 start.
11808
118092008-07-28 Jason Rumney <jasonr@gnu.org>
11810
11811 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11812
11813 * w32term.c (w32_enable_unicode_output, cleartype_active):
11814 Remove obsolete display options.
11815 (x_draw_glyph_string_background): Don't use old cleartype_active
11816 workaround.
11817 (w32_initialize): Remove cleartype_active initialization.
11818 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11819
118202008-07-28 Andreas Schwab <schwab@suse.de>
11821
11822 * lisp.h (init_weak_hash_tables, syms_of_font)
11823 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11824 (remove_hash_entry): Don't declare.
11825 * eval.c (maybe_call_debugger): Make static and move before use.
11826 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11827 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11828 * xterm.h (x_set_frame_alpha): Declare.
11829
118302008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11831
11832 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11833 (create_menus): Connect selection-done to menu_nav_ended.
11834
118352008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11836
11837 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11838 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11839 parameter with read of 'alpha' one.
11840 (Qns_frame_parameter): Remove.
5582fbc7 11841 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11842 (next-selection-coding-system, Vselection_coding_system)
11843 (Vnext_selection_coding_system): Drop.
11844
118452008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11846
11847 * nsfns.m (do-applescript, do_applescript): Rename to
11848 ns-do-applescript, ns_do_applescript, and move within file.
11849
118502008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11851
11852 Remove support for Mac Carbon.
11853 * mactoolbox.c:
11854 * macterm.h:
11855 * macterm.c:
11856 * macselect.c:
11857 * macmenu.c:
11858 * macgui.h:
11859 * macfns.c:
11860 * mac.c: Remove file.
11861 * s/darwin.h:
11862 * m/intel386.h:
11863 * xfaces.c:
11864 * xdisp.c:
11865 * window.c:
11866 * tparam.c:
11867 * termhooks.h:
11868 * termcap.c:
11869 * term.c:
11870 * syssignal.h:
11871 * sysselect.h:
11872 * sysdep.c:
11873 * process.c:
11874 * lread.c:
11875 * lisp.h:
11876 * keyboard.c:
11877 * image.c:
11878 * fringe.c:
11879 * frame.h:
11880 * frame.c:
11881 * fontset.c:
11882 * font.h:
11883 * font.c:
11884 * fns.c:
11885 * fileio.c:
11886 * emacs.c:
11887 * dispnew.c:
11888 * dispextern.h:
11889 * config.in:
11890 * atimer.c:
2ae37cf0 11891 * Makefile.in: Remove code for Carbon.
aac0c6e3 11892
f0131492 118932008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11894
11895 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11896
118972008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11898
11899 * macterm.h (kCGBitmapByteOrder32Host): New define for
11900 non-universal SDKs.
11901
11902 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11903 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11904
11905 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11906 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11907
119082008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11909
11910 * w32inevt.c: Include dispextern.h.
11911
119122008-07-26 Andreas Schwab <schwab@suse.de>
11913
11914 * print.c (print_object): Fix off-by-one in last change.
11915
119162008-07-25 Juanma Barranquero <lekktu@gmail.com>
11917
11918 * term.c (syms_of_term): Don't initialize default_orig_pair,
11919 default_set_foreground and default_set_background on Windows.
11920
119212008-07-25 Jason Rumney <jasonr@gnu.org>
11922
11923 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11924 ScriptItemize. Clean up return value checking. Remove unused
11925 variables.
11926 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11927 shaping engine.
11928
11929 * w32font.c (w32font_has_char): Handle the case where we can't
11930 determine the script for a character.
11931
119322008-07-25 Chong Yidong <cyd@stupidchicken.com>
11933
11934 * term.c (syms_of_term): Initialize default_orig_pair,
11935 default_set_foreground, and default_set_background.
11936
11937 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11938 clash (bug#86).
11939 (getloadavg): Callers changed.
11940
11941 * image.c (svg_load_image): Fix last change.
11942 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11943 image size is valid. Use g_object_unref instead of deprecated
11944 rsvg_handle_free to free rsvg handle.
11945 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11946
119472008-07-25 Jason Rumney <jasonr@gnu.org>
11948
11949 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11950 surrogates before looking up glyph index.
11951 (w32font_text_extents): Encode as surrogates if falling back to
11952 functions that need UTF-16 wide chars.
11953
11954 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11955 BMP as surrogates before looking up glyph index.
11956
119572008-07-25 Chong Yidong <cyd@stupidchicken.com>
11958
11959 * image.c (svg_load_image): Check for failure in return value of
11960 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11961
119622008-07-25 Jason Rumney <jasonr@gnu.org>
11963
11964 * w32font.c (Fx_select_font): Reverse sense of second arg.
11965
119662008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11967
11968 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11969 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11970
11971 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11972 (PURESIZE): Use it.
11973
119742008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11975
11976 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11977 * m/alpha.h (TEXT_END):
11978 * m/ibmrs6000.h (TEXT_END):
11979 * m/macppc.h (TEXT_END):
11980 * s/darwin.h (TEXT_END):
11981 * s/msdos.h (TEXT_END): Remove, unused.
11982 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11983 * s/cygwin.h: Remove comment.
11984
11985 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11986 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11987 * m/intel386.h (DOT_GLOBAL_START):
11988 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11989 (USG): Remove, file not used on USG platforms.
11990
11991 * Makefile.in (HAVE_X11): Remove empty #else.
11992
119932008-07-24 Andreas Schwab <schwab@suse.de>
11994
11995 * fileio.c (Finsert_file_contents): Properly adjust undo list
11996 after format conversion.
11997
119982008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11999
12000 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
12001 (menu_nav_ended): Remove.
12002 (create_menus): Remove signal connect for menu_nav_ended.
12003 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
12004 create_menus.
12005 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
12006
120072008-07-23 Jason Rumney <jasonr@gnu.org>
12008
12009 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
12010 with opened font.
12011 (w32font_open): Set font type to gdi.
12012
12013 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
12014
120152008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
12016
12017 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
12018 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
12019 defines it.
12020 * unexec.c (ADDR_CORRECT): Define unconditionally.
12021
12022 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
12023
12024 * unexec.c: Remove code depending on !COFF and USG, the file is
12025 not used for such systems.
12026
12027 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
12028 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
12029 (LD_SWITCH_SYSTEM_1): Remove, update users.
12030
12031 * s/darwin.h (DATA_END):
12032 * m/intel386.h (DATA_END):
12033 * m/ibmrs6000.h (DATA_END):
12034 * m/alpha.h (DATA_END): Remove, unused.
12035
12036 * config.in: Regenerate.
12037 * s/ms-w32.h (subprocesses): Define unconditionally.
12038 * s/template.h (subprocesses): Update comment.
12039 * s/vms.h (subprocesses):
12040 * s/usg5-4.h (subprocesses):
12041 * s/hpux10-20.h (subprocesses):
12042 * s/gnu-linux.h (subprocesses):
12043 * s/cygwin.h (subprocesses):
12044 * s/bsd-common.h (subprocesses):
12045 * s/aix4-2.h (subprocesses):
12046 * s/darwin.h (subprocesses): Do not define, defined by default now.
12047
12048 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
12049 Remove all references.
12050 (temacs): Add GNUstep specific ld flags.
12051
12052 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
12053 similarly to what X does.
12054
120552008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12056
12057 * nsfns.m (x-list-fonts): Remove.
12058 (syms_of_nsfns): Drop the x-list-fonts declaration.
12059 * nsterm.m: Get rid of remaining "//" comments.
12060
120612008-07-22 Chong Yidong <cyd@stupidchicken.com>
12062
12063 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
12064
12065 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
12066 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
12067 (Fns_own_selection_internal, Fx_disown_selection_internal)
12068 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
12069
12070 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
12071 ... */' style of docstrings. Doc fixes.
12072
120732008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12074
12075 * terminfo.c (UP, BC, PC): Undo previous change.
12076
12077 * nsfns.m: Rename ns prefixed functions/variables to the
12078 corresponding x versions. Update references.
12079
120802008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
12081
12082 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
12083
120842008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
12085
12086 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
12087 Remove forwarding functions.
12088 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
12089 non-static.
12090 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
12091 non-static.
12092 (ns_frame_parm_handlers): Use the new names.
12093 (syms_of_nsfns): Move to the end of file.
12094
12095 * nsterm.m (syms_of_nsterm): Move to the end of file.
12096
12097 * dispnew.c (init_display): Remove code for X10.
12098
120992008-07-22 Jason Rumney <jasonr@gnu.org>
12100
12101 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
12102 bare drive.
12103
121042008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12105
12106 * nsterm.m (syms_of_nsterm): Remove debugging println.
12107
121082008-07-22 David Reitter <david.reitter@gmail.com>
12109
12110 * nsfns.m (do_applescript, F_do_applescript): NS version of the
12111 Carbon implementation of the same functionality: execute arbitrary
12112 AppleScript code.
12113
121142008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12115
12116 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
12117 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
12118 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
12119 (Fx_display_mm_height, Fx_display_mm_width)
12120 (Fx_display_backing_store, Fx_display_visual_class)
12121 (Fx_display_save_under, Fx_open_connection)
12122 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
12123 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
12124 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12125 (Fx_display_pixel_width, Fx_display_pixel_height)
12126 (Fx_display_usable_bounds, Fx_display_planes)
12127 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
12128 ... */' style of docstrings.
12129
121302008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
12131
12132 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
12133 on this platform.
12134 (mips):
12135 * m/iris4d.h (mips): Do not define.
12136 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
12137
12138 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
12139
12140 * image.c:
12141 * nsfns.m:
12142 * nsselect.m:
12143 * nsterm.h:
12144 * nsterm.m: Rename ns prefixed functions/variables to the
12145 corresponding x versions. Update references.
12146
12147 * m/ibms390x.h (NO_REMAP): Do not undefine.
12148
12149 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
12150
121512008-07-21 Chong Yidong <cyd@stupidchicken.com>
12152
12153 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12154 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12155 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12156 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12157 (Fns_display_mm_height, Fns_display_mm_width)
12158 (Fns_display_backing_store, Fns_display_visual_class)
12159 (Fns_display_save_under, Fns_open_connection)
12160 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12161 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12162 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12163 (Fns_display_pixel_width, Fns_display_pixel_height)
12164 (Fns_display_usable_bounds, Fx_display_planes)
12165 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12166
121672008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12168
12169 * print.c (print_object): Check print_depth before searching for
12170 circularities.
12171
121722008-07-21 Michael Albinus <michael.albinus@gmx.de>
12173
12174 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12175 only sprintf.
12176
121772008-07-21 Kenichi Handa <handa@m17n.org>
12178
12179 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12180
121812008-07-20 Andreas Schwab <schwab@suse.de>
12182
12183 * syntax.c (find_start_pos, find_start_value)
12184 (find_start_value_byte, find_start_begv, find_defun_start)
12185 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12186
121872008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12188
12189 * s/sol2-3.h: Insert contents of s/sol2.h.
12190 (LD_SWITCH_SYSTEM): Remove redundant definition.
12191 * s/sol2.h: Remove, unused.
12192
121932008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12194
12195 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12196
121972008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12198
12199 * Makefile.in (ns_appdir): Fix typo in find command.
12200
122012008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12202
12203 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12204
12205 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12206 added not supported anymore.
12207
12208 * s/usg5-4-2.h (LIBS_SYSTEM):
12209 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12210
12211 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12212 * s/lynxos.h (GETPGRP_NO_ARG):
12213 * s/hpux10-20.h (NO_SIOCTL_H):
12214 * s/gnu.h (GETPGRP_NO_ARG):
12215 * s/gnu-linux.h (NO_SIOCTL_H):
12216 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12217 * s/cygwin.h (GETPGRP_NO_ARG):
12218 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12219 (C_DEBUG_SWITCH): Remove duplicate definition.
12220
12221 * m/ibms390.h: Remove boilerplate comments.
12222
12223 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12224
12225 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12226 (wait_reading_process_output): Remove code for SunOS, platform not
12227 supported anymore. Use SOLARIS2 instead of sun.
12228
122292008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12230
12231 * font.c (font_open_by_name): Under NS, default lface height to zero.
12232 (font_open_for_lface): Under NS, set size based on frame fontsize.
12233 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12234 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12235
122362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12237
12238 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12239 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12240 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12241 YES/NO.
12242 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12243 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12244 * Makefile.in (clean): Clear out build destination dir.
12245
122462008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12247
12248 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12249 xterm, xselect.
12250 * lisp.h: Remove declaration of hash_remove.
12251 * nsgui.h: Remove redefinitions of hash_remove.
12252 * fns.c (hash_remove): Rename to hash_remove_from_table.
12253
122542008-07-19 Seiji Zenitani <zenitani@mac.com>
12255
12256 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12257 strdup() the family UTF8String before modifying it.
12258
122592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12260
12261 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12262 NS_FACE_BACKGROUND with 0 instead of nil.
12263 * nsfont.m (nsfont_draw): Same.
12264
122652008-07-19 Chong Yidong <cyd@stupidchicken.com>
12266
12267 * nsfns.m (ns_set_background_color): Fix crash.
12268
122692008-07-18 Chong Yidong <cyd@stupidchicken.com>
12270
12271 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12272
122732008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12274
12275 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12276
122772008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12278
12279 * gtkutil.c: Include <config.h> instead of "config.h".
12280
12281 * lisp.h (Foverlay_buffer): Add EXFUN.
12282
12283 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12284 child process to complete child_setup. Undo 2005-09-21 change.
12285
12286 * s/darwin.h: Mention setsid after vfork.
12287
122882008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12289
12290 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12291 Depend on macgui.h.
12292
12293 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12294 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12295
12296 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12297 and f19.
12298 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12299
12300 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12301 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12302 Remove enumerators.
12303
12304 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12305 Check if FACE_FROM_ID returns NULL.
12306
123072008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12308
12309 * w32inevt.c (change_frame_size): Remove extern declaration.
12310 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12311 change_frame_size.
12312
123132008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12314
12315 * getloadavg.c: Revert last change (2008-07-15).
12316
123172008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12318
12319 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12320 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12321 from configure.
12322
123232008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12324
12325 * s/sol2.h:
12326 * s/sol2-4.h: Reorganize conditionals.
12327
12328 * ecrt0.c: Remove code depending on m68000, not used anymore.
12329
12330 * fns.c (hash_remove): Make static.
12331 * lisp.h (hash_remove): Don't prototype.
12332
12333 * m/ibmrs6000.h:
12334 * m/ibms390x.h:
12335 * m/macppc.h: Remove boilerplate comments.
12336
12337 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12338 Solaris, which does not need them.
12339
12340 * m/vax.h: Remove comments about unsupported systems.
12341
12342 * s/darwin.h: Reorganize ifdefs.
12343
123442008-07-17 Andreas Schwab <schwab@suse.de>
12345
12346 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12347
123482008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12349
12350 Use SDATA. Follow coding convention of placing operators at
12351 beginning of next line rather than end of previous line, and placing
12352 spaces around infix operators.
12353
12354 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12355 in case it was defined already.
12356 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12357 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12358 ns_default.
12359 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12360 Lisp_Objects.
12361 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12362 (ns_defined_color, ns_color_to_lisp): Declare.
12363 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12364 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12365 it's accepted even with USE_LISP_UNION_TYPE.
12366 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12367 (update_frame_tool_bar): Remove apparently obsolete tests for
12368 non-integerness of f->tool_bar_lines.
12369 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12370 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12371 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12372 (nsfont_open): Don't confuse NULL for Qnil.
12373 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12374 * menu.h (find_and_call_menu_selection):
12375 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12376 (find_and_return_menu_selection): Always return something.
12377 * frame.h: Include dispextern.h for Display_Info.
12378 (display_x_get_resource): Declare.
12379
123802008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12381
12382 * syntax.c: Remove stdio.h include accidentally introduced in
12383 Emacs.app commit.
12384 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12385 NS_IMPL_COCOA.
12386 * keyboard.c (handle_async_input, input_available_signal): Remove
12387 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12388
123892008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12390
12391 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12392 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12393 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12394 Use SDATA.
12395
12396 * keymap.c: Remove all NS-specific code.
12397 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12398 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12399 where_is_preferred_modifier, return a different value depending on how
12400 preferred is the binding.
12401 (where_is_internal): Adjust accordingly.
12402 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12403 Adjust to new preferred_sequence_p.
12404 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12405 * keyboard.c (parse_solitary_modifier): Not static any more.
12406 * keyboard.h (parse_solitary_modifier): Declare.
12407
124082008-07-16 Andreas Schwab <schwab@suse.de>
12409
12410 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12411 of easymenu.
12412
124132008-07-16 Chong Yidong <cyd@stupidchicken.com>
12414
12415 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12416 that we don't move off the line.
12417
124182008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12419
12420 * keyboard.c (Qsuper): Remove.
12421 (parse_menu_item): Don't call where_is_internal specially for NS.
12422
124232008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12424
12425 * s/gnu-linux.h: Remove boilerplate comments.
12426
12427 * m/alpha.h (__ELF__): Consolidate conditions.
12428
12429 * m/m68k.h (linux): Use GNU_LINUX instead.
12430 Remove boilerplate comments.
12431
12432 * m/intel386.h: Undo refactoring from previous change.
12433 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12434 too, remove dead code.
12435 (linux): Use GNU_LINUX instead.
12436
124372008-07-16 Jason Rumney <jasonr@gnu.org>
12438
12439 * w32gui.h: Repeat 26 June changes lost by last change.
12440
124412008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12442
12443 * systty.h: Remove code for Aix on 386, unsupported platform.
12444
12445 * s/ms-w32.h: Remove boilerplate comments.
12446 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12447
12448 * s/gnu-linux.h (TERM): Remove support.
12449 (HAVE_SYSVIPC): Remove, unused.
12450 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12451 for this system.
12452
12453 * process.c: Remove support for IRIS, unused.
12454 Remove support for TERM, not relevant anymore.
12455
12456 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12457 used with the definition.
12458
12459 * s/aix4-2.h (static): Do not undef.
12460
12461 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12462 only used on Aix.
12463 (HAVE_SYSVIPC): Remove, unused.
12464
12465 * m/hp800.h (CANNOT_DUMP): Do not undef.
12466
12467 * m/alpha.h: Fix comment.
12468
12469 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12470 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12471 used by this configuration.
12472 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12473 * unexec.c: Remove code depending on HPUX and
12474 USG_SHARED_LIBRARIES, not used with this file. Remove code
12475 depending on IRIS, unused. Remove if 0-ed code.
12476
12477 * s/template.h: Remove comments about static.
12478
12479 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12480 Remove if 0-ed code.
12481 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12482 were the same as the default.
12483 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12484 Remove boilerplate comments.
12485 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12486 (HAVE_SYSVIPC): Remove, unused.
12487 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12488
12489 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12490 Remove boilerplate comments.
12491 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12492 Remove boilerplate comments.
12493 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12494 Remove boilerplate comments.
12495 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12496
12497 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12498 USG systems which do not use DATA_SEG_BITS.
12499 Refactor code. Remove boilerplate comments.
12500
12501 * m/ibms390.h:
12502 * m/m68k.h:
12503 * s/bsd-common.h:
12504 * s/cygwin.h:
12505 * s/darwin.h:
12506 * s/freebsd.h:
12507 * s/gnu.h:
12508 * s/msdos.h: Remove boilerplate comments.
12509
12510 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12511 do not use this file.
aac0c6e3
MR
12512 (IRIS_4D): Remove, unused.
12513
12514 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12515 do not use this file.
aac0c6e3
MR
12516 (SIGN_EXTEND_CHAR):
12517 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12518 * unexmips.c: Remove file, unused.
12519
12520 * editfns.c (Fuser_full_name): Replace the only use of
12521 USER_FULL_NAME with its value.
12522 * config.in: Regenerate.
12523
125242008-07-16 David Reitter <david.reitter@gmail.com>
12525
12526 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12527 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12528
125292008-07-16 Glenn Morris <rgm@gnu.org>
12530
12531 * emacs.c (system-type): Doc fix.
12532
125332008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12534
12535 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12536 If the cache doesn't work, let's fix it, rather than work around it.
12537
125382008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12539
12540 * Makefile.in: Correct additions for nsfont.o in last commit.
12541 * nsfont.m: New file (forgot last commit).
12542
125432008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12544
12545 * callproc.c (set_initial_environment): Initialize
12546 Vprocess_environment under CANNOT_DUMP (fixes crash when
12547 batch-compiling for bootstrap).
12548
125492008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12550 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12551
c4cc8b9a
JB
12552 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12553 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12554
125552008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12556
12557 Changes and additions for NeXTstep windowing system (Cocoa and
12558 GNUstep) support.
12559
12560 * Makefile.in:
12561 * config.in: Support defines and build commands for NS port.
12562 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12563 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12564 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12565 windowing.
12566 (struct face): Add synth_ital field.
12567 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12568 (init_display): Initialize Vinitial_window_system to "ns" when so
12569 compiled.
12570 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12571 (display_arg): Use under NS.
12572 (main): Under NS, allocate autorelease pool and handle command line
12573 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12574 (standard_args): Add NS-specific args.
12575 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12576 * font.c (DEFAULT_ENCODING): New variable.
12577 (font_find_for_lface): Use it.
12578 (syms_of_font): Load syms_of_nsfont under NS.
12579 * font.h: Declare nsfont_driver when compiled under NS.
12580 * fontset.c: When compiling under NS, include nsterm.h.
12581 (fontset_from_font): Autoconstruct fontset under NS.
12582 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12583 symbol, document and use it.
12584 (do_switch_frame): When for_deletion under Cocoa, add
12585 Fraise_frame(Qnil).
12586 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12587 (x_get_arg): Allow "yes" and "no" as boolean values.
12588 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12589 Qright under Cocoa.
12590 (focus-follows-mouse): Default to 0 under NS.
12591 * frame.h (enum output_method): Add output_ns.
12592 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12593 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12594 (FRAME_WINDOW_P): NS-specific definition.
12595 * fringe.c (max_used_fringe_bitmap): Make public.
12596 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12597 (getloadavg): Use NeXT code under descendant OS's.
12598 * image.c (includes and header section, x_create_bitmap_from_data)
12599 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12600 (image_background_transparent, x_clear_image_1)
12601 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12602 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12603 (x_to_xcolors, x_from_xcolors, x_disable_image)
12604 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12605 other GUIs, including XPM support using code originally written for
12606 Carbon GUI.
12607 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12608 using NS API.
12609 (image_ascent): Use font metrics macros instead of direct struct field
12610 access.
12611 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12612 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12613 Also, handle NS as GTK for menu bar purposes.
12614 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12615 toolkit where they differ.
12616 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12617 use cachelist, still needed under NS.
12618 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12619 (struct widget_value): Define it here for menu.c.
12620 * keymap.c (includes): Include modifier internals.
12621 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12622 NS.
12623 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12624 support for preferring sequences using certain modifiers, specified by
12625 the FIRSTONLY argument.
12626 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12627 under NS GNUstep implementation.
12628 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12629 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12630 * menu.c: Include nsterm.h under NS.
12631 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12632 (free_menubar_widget_tree_value, update_submenu_strings)
12633 (find_and_call_menu_selection): Treat NS as X and NT.
12634 (find_and_return_menu_selection): New function, used for popup menus.
12635 * nsgui.h:
12636 * nsterm.h:
12637 * nsfns.m:
12638 * nsimage.m:
12639 * nsmenu.m:
12640 * nsselect.m:
12641 * nsterm.m: New files.
12642 * process.c (wait_reading_process_output): Under NS, call ns_select()
12643 instead of plain select().
12644 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12645 beginning of buffer.
12646 * sysselect.h (init_process): Rename when compiling under Cocoa to
12647 avoid name conflict.
12648 * termhooks.h (display_info): Add ns_display_info to union.
12649 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12650 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12651 COCOA environment.
12652 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12653 unexec() signature. (Note, this will dump, but the resulting file
12654 crashes; unexosx is used instead; keeping around for reference and
12655 possible aid in getting dump working under GNUstep.)
12656 * w32gui.h (button_type, widget_value): Remove definitions (now in
12657 keyboard.h).
12658 * window.c: Include nsterm.h when compiling under NS.
12659 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12660 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12661 other GUI windowing systems.
12662 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12663 GTK.
12664 (x_consider_frame_title): Under NS, set icon type and frame
12665 modified-state indicator; use ns_set_name_as_filename() when using
12666 formatted title.
12667 (update_window_cursor): Make public when compiling under NS.
12668 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12669 (hourglass_atimer, Vhourglass_delay
12670 * xfaces.c (header section, init_frame_faces, clear_font_table)
12671 (defined_color, unload_color, x_face_list_fonts)
12672 (prepare_face_for_display): Add NS support parallel to other GUIs.
12673 Emulate GCs like other non-X GUIs.
12674 (split_font_name): Don't lowercase font name under NS.
12675 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12676 under NS.
12677 * s/darwin.h: Add support for compilation under NS.
12678
126792008-07-15 Jason Rumney <jasonr@gnu.org>
12680
12681 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12682 (w32_show_hourglass): Rename from show_hourglass.
12683 (w32_hide_hourglass): Rename from hide_hourglass.
12684 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12685 (Vhourglass_delay): Declare extern.
12686 (hourglass_started): Remove.
12687
12688 * xdisp.c (Vhourglass_delay): Remove static.
12689 (hourglass_started, start_hourglass, cancel_hourglass):
12690 Don't include these versions on WINDOWSNT.
12691
126922008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12693
12694 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12695 variables (formerly in xfns.c).
12696 (show_hourglass, hide_hourglass): New prototypes (same).
12697 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12698 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12699 in xfns.c).
12700 (syms_of_xdisp): Declare/initialize display-hourglass,
12701 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12702 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12703 formerly in xfns.c.
12704 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12705 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12706 (start_hourglass, cancel_hourglass): Remove.
12707 (show_hourglass, hide_hourglass): Remove prototypes and static
12708 modifiers.
12709 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12710 hourglass_atimer, hourglass_shown_p declaration/initialization.
12711 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12712 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12713 (start_hourglass, cancel_hourglass): Remove.
12714 (show_hourglass, hide_hourglass): Remove prototypes and static
12715 modifiers.
12716 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12717 hourglass_atimer, hourglass_shown_p declaration/initialization.
12718 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12719 (DEFAULT_HOURGLASS_DELAY): Remove.
12720 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12721 hourglass_shown_p declaration/initialization.
12722
127232008-07-14 Jason Rumney <jasonr@gnu.org>
12724
12725 * w32fns.c (w32_get_arg): Remove wrapper function.
12726 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12727 directly.
12728 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12729
127302008-07-14 Kenichi Handa <handa@m17n.org>
12731
12732 * xfont.c (xfont_open): Add workaround for X's bug.
12733
127342008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12735
12736 * fontset.c: Include <stdio.h> unconditionally.
12737
127382008-07-13 Michael Albinus <michael.albinus@gmx.de>
12739
12740 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12741 for filtering.
12742
127432008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12744
12745 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12746
12747 * m/macppc.h:
12748 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12749
c4cc8b9a 12750 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12751 (SPECIAL_EMACS_INT):
12752 * m/ia64.h (SPECIAL_EMACS_INT):
12753 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12754 * s/gnu.h (NLIST_STRUCT):
12755 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12756 * s/gnu-linux.h (LINUX):
12757 * s/msdos.h (HAVE_FACES):
12758 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12759
12760 * systty.h:
12761 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12762 anymore.
12763
127642008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12765
12766 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12767 always defined as int.
12768
12769 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12770 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12771 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12772 * s/freebsd.h (HAVE_WAIT_HEADER):
12773 * s/bsd-common.h (HAVE_UNION_WAIT):
12774 * s/aix4-2.h (HAVE_WAIT_HEADER):
12775 * m/mips.h (HAVE_UNION_WAIT):
12776 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12777 (COFF, static): Do not define, they are undefined later in the file.
12778
12779 * process.c (update_status): Don't use a union.
12780 (status_convert):
12781 (sigchld_handler): Use int instead of WAITTYPE.
12782
127832008-07-12 Chong Yidong <cyd@stupidchicken.com>
12784
12785 * indent.c (Fvertical_motion): Restore hscroll before moving to
12786 goal column.
12787
127882008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12789
12790 * lisp.h: Remove left over code.
12791
127922008-07-11 Andreas Schwab <schwab@suse.de>
12793
12794 * lisp.h: Fix logic in last change.
12795
12796 * menu.h: New file.
12797 * menu.c: Include it.
12798 * xmenu.c: Likewise.
12799 * Makefile.in: Update dependencies.
12800
128012008-07-11 Kenichi Handa <handa@m17n.org>
12802
12803 * fontset.c (fontset_from_font): Cancel the previous change.
12804
128052008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12806
12807 * lisp.h:
12808 * w32heap.c:
12809 * emacs.c:
12810 * alloc.c: Replace all references of NO_UNION_TYPE with
12811 USE_LISP_UNION_TYPE.
12812
12813 * m/xtensa.h (NO_UNION_TYPE):
12814 * m/vax.h (NO_UNION_TYPE):
12815 * m/template.h (NO_UNION_TYPE):
12816 * m/sparc.h (NO_UNION_TYPE):
12817 * m/mips.h (NO_UNION_TYPE):
12818 * m/macppc.h (NO_UNION_TYPE):
12819 * m/m68k.h (NO_UNION_TYPE):
12820 * m/iris4d.h (NO_UNION_TYPE):
12821 * m/intel386.h (NO_UNION_TYPE):
12822 * m/ibms390x.h (NO_UNION_TYPE):
12823 * m/ibms390.h (NO_UNION_TYPE):
12824 * m/ibmrs6000.h (NO_UNION_TYPE):
12825 * m/ia64.h (NO_UNION_TYPE):
12826 * m/hp800.h (NO_UNION_TYPE):
12827 * m/arm.h (NO_UNION_TYPE):
12828 * m/amdx86-64.h (NO_UNION_TYPE):
12829 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12830 defining it the same.
12831
128322008-07-10 Chong Yidong <cyd@stupidchicken.com>
12833
12834 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12835
128362008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12837
12838 * fileio.c:
50426a04 12839 * sysdep.c:
aac0c6e3
MR
12840 * systty.h:
12841 * m/ibmrs6000.h:
12842 * m/iris4d.h:
12843 * s/aix4-2.h:
12844 * s/freebsd.h:
12845 * s/gnu-linux.h:
12846 * s/hpux10-20.h:
12847 * s/hpux11.h:
12848 * s/netbsd.h:
12849 * s/sol2-3.h:
12850 * s/sol2-4.h:
12851 * s/sol2.h:
12852 * s/usg5-4.h:
12853 * s/vms.h: Remove references to unused variables.
12854
128552008-07-10 Andreas Schwab <schwab@suse.de>
12856
12857 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12858 pattern before matching the generic family.
12859
128602008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12861
12862 * unexec.c:
12863 * s/vms.h:
12864 * s/usg5-4-2.h:
12865 * s/sol2-5.h:
12866 * s/freebsd.h:
12867 * s/darwin.h: Remove dead code.
12868
12869 * m/template.h:
12870 * m/sparc.h:
12871 * m/mips.h:
12872 * m/m68k.h:
12873 * m/iris4d.h:
12874 * m/intel386.h:
12875 * m/ibms390x.h:
12876 * m/ibms390.h:
12877 * m/ia64.h:
12878 * m/hp800.h:
12879 * m/arm.h:
12880 * m/amdx86-64.h: Remove dead code and references to unused
12881 and compiler defined symbols.
12882
12883 * unexmips.c:
12884 * unexelf.c: Remove references to desupported systems.
12885
12886 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12887
12888 * m/powermac.h: Remove boilerplate comments.
12889 (NO_REMAP): Remove unused definition.
12890
12891 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12892 define them.
12893
128942008-07-10 Kenichi Handa <handa@m17n.org>
12895
12896 * xfont.c (xfont_open): Log the reason of failure.
12897
128982008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12899
12900 * fontset.c (fontset_get_font_group):
12901 * font.c (font_check_otf): Specify argument types.
12902
129032008-07-09 Kenichi Handa <handa@m17n.org>
12904
12905 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12906 non-ASCII char is found.
12907
12908 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12909 (reorder_font_vector): Change the arg preferred_family to font.
12910 Prefer the spec matching with font.
12911 (fontset_get_font_group): New function.
12912 (fontset_find_font): Change the format of an element of a realized
12913 fontset. Use fontset_get_font_group.
12914 (fontset_font): Try the current fontset, the default fontset, the
12915 fallbacks of the current fontset, and the fallbacks of the default
12916 fontset in this order.
12917 (face_for_char): Delete the shortcut to use the current font.
12918 (fontset_from_font): Don't set fonts for Latin in the fontset.
12919
12920 * font.h (font_make_object, font_match_p): Adjust prototypes.
12921
12922 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12923
12924 * font.c (font_make_object): New arg entity and pixelsize.
12925 (font_check_otf_features, font_check_otf): New functions.
12926 (font_match_p): Check :lang, :script, and :otf properties.
12927
12928 * xfont.c (xfont_open): Adjust it for the change of
12929 font_make_object.
12930 (xfont_text_extents): Fix initial setting of metrics.
12931
12932 * ftfont.c (struct ftfont_info): New member index, delete member
12933 fc_charset_idx. Make the member order compatible with struct
12934 xftfont_info.
12935 (fc_charset_table): Change charset names to registry names.
12936 (ftfont_pattern_entity): Delete the args registry and
12937 fc_charset_idx. Change the value of :font-entity property
12938 to (FONTNAME . INDEX). Always set :registry property to
12939 `iso10646-1'.
12940 (struct ftfont_cache_data): New struct.
12941 (ftfont_lookup_cache): New arg for_face.
12942 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12943 (ftfont_driver): Set the member otf_capability.
12944 (ftfont_get_charset): Adjust it for the change of
12945 fc_charset_table.
12946 (OTF_TAG_SYM): New macro.
12947 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12948 for the change of fc_charset_table.
12949 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12950 ftfont_pattern_entity. Add FC_INDEX to objset.
12951 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12952 and ftfont_pattern_entity.
12953 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12954 font_make_object, struct ftfont_info.
12955 (ftfont_has_char): Use ftfont_get_fc_charset.
12956 (ftfont_otf_features, ftfont_otf_capability): New functions.
12957 (ftfont_shape): Use ftfont_get_otf.
12958 (ftfont_text_extents): Fix initial setting of metrics.
12959
12960 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12961 member order compatible with struct ftfont_info.
12962 (xftfont_open): Add FC_CHARSET to the pattern. Set
12963 xftfont_info->ft_size. Don't unlock the face. Check BDF
12964 properties if appropriate.
12965 (xftfont_close): Unlock the face.
12966 (xftfont_anchor_point, xftfont_shape): Deleted.
12967 (syms_of_xftfont): Don't set members anchor_point and shape of
12968 xftfont_driver.
12969
12970 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12971 font_make_object.
12972
12973 * w32font.c (w32font_open): Adjust it for the change of
12974 font_make_object.
12975 (w32font_open_internal): Don't set properties of font_object here.
12976
129772008-07-08 Chong Yidong <cyd@stupidchicken.com>
12978
12979 * macfns.c (x_create_tip_frame):
12980 * w32fns.c (x_create_tip_frame):
12981 * xfns.c (x_create_tip_frame): Pass parameter argument to
12982 face-set-after-frame-default.
12983
12984 * xfaces.c (Finternal_merge_in_global_face): Save merged
12985 attributes for the default face back into the face vector.
12986
129872008-07-08 Andreas Schwab <schwab@suse.de>
12988
12989 * fontset.h: Declare fontset_from_font. Don't declare
12990 new_fontset_from_font and fontset_from_font_name.
12991 * xterm.c: Include "fontset.h".
12992 * Makefile.in (xterm.o): Update dependencies.
12993
129942008-07-08 Glenn Morris <rgm@gnu.org>
12995
12996 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12997 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12998
129992008-07-07 Chong Yidong <cyd@stupidchicken.com>
13000
13001 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
13002 (x_set_frame_parameters): Don't bind it.
13003
130042008-07-07 Juanma Barranquero <lekktu@gmail.com>
13005
13006 * w32fns.c (map_w32_filename): Declare extern.
13007
130082008-07-07 Jason Rumney <jasonr@gnu.org>
13009
13010 * w32term.c (WS_EX_LAYERED): Define if not already.
13011
130122008-07-06 Chong Yidong <cyd@stupidchicken.com>
13013
13014 * xfaces.c (set_font_frame_param): Don't try to set the font
13015 parameter if it is still unspecified in the lface.
13016
130172008-07-05 Chong Yidong <cyd@stupidchicken.com>
13018
13019 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
13020 face if it didn't already exist.
13021
13022 * xdisp.c (try_window_id): Give up if word-wrapping is on.
13023
130242008-07-05 Andreas Schwab <schwab@suse.de>
13025
13026 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
13027
130282008-07-05 Chong Yidong <cyd@stupidchicken.com>
13029
13030 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
13031 word-wrapping.
13032 (IT_DISPLAYING_WHITESPACE): New macro.
13033 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
13034 when word-wrapping. Simplify word-wrapping logic. Use correct
13035 pixel positions when saving copies of the iterator.
13036 (display_line): Use proper wrap point if the last character on a
13037 line was preceded by whitespace.
13038
130392008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
13040
13041 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
13042
130432008-07-04 Kenichi Handa <handa@m17n.org>
13044
13045 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
13046
13047 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
13048
130492008-07-02 Jason Rumney <jasonr@gnu.org>
13050
13051 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 13052 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
13053
13054 * xdisp.c (next_element_from_display_vector): Move assignment out
13055 of if statement.
13056
130572008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
13058
13059 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
13060
13061 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
13062 (syms_of_fileio): Initialize and export them.
13063 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
13064
13065 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
13066 (Fsystem_move_file_to_trash): New function.
13067 (syms_of_w32fns): Export it to lisp.
13068
130692008-07-01 Jason Rumney <jasonr@gnu.org>
13070
13071 * w32font.c (w32font_text_extents): Don't count overhang as part
13072 of width.
13073
130742008-06-30 Miles Bader <miles@gnu.org>
13075
13076 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
13077 Add `avoid_cursor_p' field.
13078
13079 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
13080 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
13081 (append_glyph, append_composite_glyph, produce_image_glyph)
13082 (append_stretch_glyph): Initialize avoid_cursor_p.
13083 (get_it_property): Rename from `get_line_height_property'.
13084 (x_produce_glyphs): Use get_it_property.
13085 (handle_line_prefix, push_display_prop): New functions.
13086 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
13087 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
13088 New variables.
13089 (syms_of_xdisp): Initialize them.
13090
130912008-06-30 Kenichi Handa <handa@m17n.org>
13092
13093 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
13094 XftDefaultSubstitute (they are called in XftFontMatch).
13095 (xftfont_open): Fix args to ftfont_font_format.
13096
13097 * ftfont.c (fc_charset_table): New member lang.
13098 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 13099 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
13100 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
13101 (ftfont_open): Fix args to ftfont_font_format.
13102 (ftfont_font_format): New arg filename.
13103
131042008-06-30 Chong Yidong <cyd@stupidchicken.com>
13105
13106 * xfaces.c (Finternal_merge_in_global_face): If default face was
13107 modified, realize it again. Update the font face attribute.
13108
131092008-06-29 Jason Rumney <jasonr@gnu.org>
13110
13111 * w32term.c (x_set_frame_alpha): Fix logic.
13112
131132008-06-29 Kenichi Handa <handa@m17n.org>
13114
13115 * fontset.c (Finternal_char_font): Return font-object instead of
13116 font-name.
13117
13118 * composite.c (get_composition_id): Fix the width calculation for TAB.
13119
131202008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
13121
13122 * indent.c (Fvertical_motion): Properly handle float column arg.
13123
131242008-06-28 Jason Rumney <jasonr@gnu.org>
13125
13126 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
13127 (pfnSetLayeredWindowAttributes): New function pointer.
13128 (w32_initialize): Initialize it when supported.
13129 (x_set_frame_alpha): New function.
13130
13131 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
13132 (w32_frame_parm_handlers): Set alpha handler.
13133
13134 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
13135
131362008-06-27 Jason Rumney <jasonr@gnu.org>
13137
13138 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
13139 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
13140 (w32_to_x_charset, x_to_w32_charset)
13141 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13142 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13143 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13144 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13145 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13146 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13147 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
13148 (Qw32_charset_unicode): Remove.
13149 (syms_of_w32fns): Update for above changes.
13150
13151 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13152 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13153 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13154 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13155 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13156 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13157 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13158 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13159 (syms_of_w32font): Update for above changes.
13160
131612008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13162
13163 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13164 removed #if.
13165 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13166
131672008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13168 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13169
13170 * makefile.w32-in (LOCAL_FLAGS):
13171 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13172
13173 * sysdep.c (_spawnlp, _getpid):
13174 Declare with explicit _cdecl instead of _CRTAPI1.
13175
13176 * editfns.c (Fget_internal_run_time):
13177 Check for WINDOWSNT with #ifdef, not #if.
13178
131792008-06-26 Jason Rumney <jasonr@gnu.org>
13180
13181 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13182
13183 * w32term.c (x_draw_glyph_string_foreground)
13184 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13185 Use FONT_HANDLE macro.
13186 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13187
13188 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13189 (uniscribe_encode_char): Use FONT_HANDLE macro.
13190
13191 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13192 (w32font_text_extents): Use precast w32_font.
13193 (w32font_close): Free cached metrics.
13194 (w32font_open_internal): Allocate space for name on stack.
13195
131962008-06-26 Chong Yidong <cyd@stupidchicken.com>
13197
13198 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13199
132002008-06-26 Jason Rumney <jasonr@gnu.org>
13201
13202 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13203 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13204
132052008-06-26 Juanma Barranquero <lekktu@gmail.com>
13206
13207 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13208
132092008-06-26 Jason Rumney <jasonr@gnu.org>
13210
13211 * w32bdf.c, w32bdf.h: Remove obsolete files.
13212
13213 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13214
13215 * w32gui.h: Don't include w32bdf.h.
13216 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13217 Remove obsolete font support.
13218
13219 * w32font.h (struct w32font_info): Remove compat_w32_font.
13220 Add hfont member.
13221 (FONT_COMPAT): Remove obsolete macro.
13222
13223 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13224 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13225 (w32font_open_internal): Remove compat code. Set new hfont member.
13226 (Fx_select_font): Use new hfont member.
13227
13228 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13229 (uniscribe_encode_char): Use new hfont member.
13230
13231 * w32term.c (x_draw_glyph_string_foreground)
13232 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13233 (x_draw_glyph_string): Use metrics in w32font_info.
13234
132352008-06-26 Kenichi Handa <handa@m17n.org>
13236
13237 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13238
132392008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13240
13241 * unexnext.c:
13242 * m/ews4800.h:
13243 * m/hp9000s300.h:
13244 * m/ibm370aix.h:
13245 * m/mips-siemens.h:
13246 * m/ncr386.h:
13247 * m/next.h:
13248 * m/pmax.h:
13249 * m/powerpcle.h:
13250 * m/tandem-s2.h:
13251 * s/386bsd.h:
13252 * s/bsd386.h:
13253 * s/bsd4-1.h:
13254 * s/bsd4-2.h:
13255 * s/bsdos2-1.h:
13256 * s/bsdos2.h:
13257 * s/bsdos3.h:
13258 * s/bsdos4.h:
13259 * s/nextstep.h:
13260 * s/ultrix4-3.h:
13261 * s/usg5-0.h:
13262 * s/usg5-2-2.h:
13263 * s/usg5-2.h:
13264 * s/usg5-4-3.h:
13265 * s/ux4800.h:
13266 * s/uxpds.h:
13267 * s/uxpv.h: Remove support for obsolete systems.
13268 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13269 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13270 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13271 Remove, insert contents in s/aix4-2.h.
13272 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13273 * s/bsd4-3.h: Rename to ...
13274 * s/bsd-common.h: ... this.
13275 * data.c:
13276 * doc.c:
13277 * ecrt0.c:
13278 * emacs.c:
13279 * fileio.c:
13280 * floatfns.c:
13281 * keyboard.c:
13282 * mem-limits.h:
13283 * print.c:
13284 * process.c:
13285 * sysdep.c:
13286 * syssignal.h:
13287 * systty.h:
13288 * syswait.h:
13289 * term.c:
13290 * unexec.c:
13291 * unexelf.c:
13292 * unexhp9k800.c:
13293 * m/hp800.h:
13294 * m/ibmrs6000.h:
13295 * m/mips.h:
13296 * m/vax.h:
13297 * s/darwin.h:
13298 * s/freebsd.h:
13299 * s/gnu.h:
13300 * s/ms-w32.h:
13301 * s/msdos.h:
13302 * s/netbsd.h:
13303 * s/template.h: Remove references to obsolete variables.
13304
13305 * Makefile.in: Add dependencies for all unexec files.
13306 (admindir): Remove unused variable.
13307 (UNEXEC_SRC): Remove references.
13308
133092008-06-25 Chong Yidong <cyd@stupidchicken.com>
13310
13311 * xfns.c (x_default_font_parameter): If Xft is available, first
13312 try Monospace-12 for the default font.
13313
133142008-06-25 Jason Rumney <jasonr@gnu.org>
13315
13316 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13317
133182008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13319
13320 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13321
13322 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13323
133242008-06-25 Juanma Barranquero <lekktu@gmail.com>
13325
13326 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13327 <scroll-conservatively>: Fix typo in docstring.
13328
13329 * xselect.c (Fx_send_client_event): Doc fix.
13330
133312008-06-25 Kenichi Handa <handa@m17n.org>
13332
13333 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13334
13335 * font.c (font_parse_fcname): Remove unused variables.
13336 (font_sort_entites): Delete the arg SPEC. Caller changed.
13337 Fix for the case of ! best_only.
13338 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13339
13340 * lisp.h (Fstring_to_unibyte): EXFUN it.
13341
13342 * character.h (str_to_unibyte): Extern it.
13343
13344 * character.c (str_to_unibyte): New function.
13345
13346 * fns.c (Fstring_to_unibyte): New function.
13347 (syms_of_fns): Defsubr it.
13348
133492008-06-24 Kenichi Handa <handa@m17n.org>
13350
13351 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13352 DPI too.
13353 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13354
133552008-06-24 Andreas Schwab <schwab@suse.de>
13356
13357 * Makefile.in (${lispsource}loaddefs.el): Rename from
13358 ../lisp/loaddefs.el.
13359 (bootstrap-clean): Do what distclean does but don't remove
13360 Makefile.
13361 (distclean): Depend on bootstrap-clean and remove Makefile.
13362
133632008-06-24 Chong Yidong <cyd@stupidchicken.com>
13364
13365 * buffer.h (struct buffer): New member word_wrap.
13366
13367 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13368 word-wrap.
13369 (init_buffer_once): Initialize them.
13370
13371 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13372 line_wrap enum possessing three possible values.
13373
13374 * termopts.h: Replace truncate_partial_width_windows with
13375 Vtruncate_partial_width_windows.
13376
13377 * dispnew.c (direct_output_for_insert): Avoid direct output when
13378 inserting a space with word wrap on.
13379
13380 * indent.c (compute_motion): Obey integer values of
13381 truncate-partial-width-windows.
13382
13383 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13384 replacing truncate_partial_width_windows.
13385 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13386 truncate only if the window width is below that integer.
13387 (start_display, resize_mini_window, produce_stretch_glyph)
13388 (display_string, move_it_in_display_line_to): Use line_wrap.
13389 (back_to_previous_visible_line_start, reseat_1): Reset
13390 string_from_display_prop_p.
13391 (display_line): Extend default face to end of line when wrapping.
13392
133932008-06-24 Kim F. Storm <storm@cua.dk>
13394
13395 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13396 to wrap continued lines at word boundaries.
13397
133982008-06-24 Jason Rumney <jasonr@gnu.org>
13399
13400 * font.c (Ffont_face_attributes): Multiply pixel size before point
13401 conversion to avoid multiplying rounding error.
13402
134032008-06-23 Jason Rumney <jasonr@gnu.org>
13404
13405 * w32term.c (x_draw_glyph_string_background)
13406 (x_draw_glyph_string): Remove old bdf font code.
13407
13408 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13409
134102008-06-22 Kenichi Handa <handa@m17n.org>
13411
13412 * font.c (font_find_for_lface): Try the adstyle specified in
13413 the property of LFACE_FONT of LFACE (if any).
13414
134152008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13416 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13417
13418 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13419
134202008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13421
13422 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13423 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13424 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13425 (witness-emacs): Remove.
13426 (lisp, shortlisp): Move loaddefs.el earlier.
13427 (mostlyclean): Forget about witness-emacs.
13428
134292008-06-22 Glenn Morris <rgm@gnu.org>
13430
13431 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13432 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13433
134342008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13435
13436 * Makefile.in (PRECOMP): Remove.
13437 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13438 (witness-emacs): Run `compile-first'.
13439 (.el.elc): Use the new compile-onefile target.
13440
134412008-06-21 Kenichi Handa <handa@m17n.org>
13442
13443 * xftfont.c (xftfont_open): Handle QCembolden only when
13444 FC_EMBOLDEN is defined.
13445
134462008-06-21 Andreas Schwab <schwab@suse.de>
13447
13448 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13449 (.el.elc): Likewise.
13450
134512008-06-21 Miles Bader <miles@gnu.org>
13452
13453 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13454 build dir, not the lisp source dir.
13455
134562008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13457
13458 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13459 (bootstrapclean): Remove.
13460 (.el.elc): New rule.
13461 (PRECOMP): New var.
13462 (../lisp/subdirs.el): Remove.
13463 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13464 (witness-emacs): New target.
13465 (mostlyclean): Remove witness-emacs as well.
13466 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13467 Add witness-emacs dependency.
13468
134692008-06-20 Chong Yidong <cyd@stupidchicken.com>
13470
13471 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13472 defined by the font.
13473
134742008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13475
13476 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13477 (bootstrap-clean): New target that keeps TAGS around.
13478 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13479 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13480
134812008-06-20 Jason Rumney <jasonr@gnu.org>
13482
13483 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13484 Remove obsolete font code.
13485
13486 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13487 to determine language support.
13488
134892008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13490
13491 * sysdep.c (cfsetspeed): New fun extracted from the code.
13492 (cfmakeraw): Move before first use.
13493
134942008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13495
13496 * sysdep.c (cfmakeraw): Provide fallback implementation.
13497 (serial_configure): Provide fallback implementation of cfsetspeed.
13498
134992008-06-20 Kenichi Handa <handa@m17n.org>
13500
13501 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13502 the pattern.
13503
13504 * fontset.c (fontset_from_font): Copy font_spec before changing
13505 the elements.
13506
13507 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13508
135092008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13510
13511 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13512 for explicit `font' parameters.
13513
13514 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13515
135162008-06-19 Kenichi Handa <handa@m17n.org>
13517
13518 * frame.c: Include <ctype.h>.
13519 (x_set_font_backend): Allow spacing characters in the X resource
13520 for FontBackend.
13521
135222008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13523
13524 * w32fns.c, xfns.c (Qfont_param): New var.
13525 (syms_of_w32fns): Initialize it.
13526 (x_default_font_parameter): Record explicit `font' into
13527 `font-parameter'.
13528
135292008-06-18 Kenichi Handa <handa@m17n.org>
13530
13531 * font.c (font_parse_xlfd): Fix previous change.
13532 (font_parse_fcname): Don't use :fc-unknown-spec.
13533 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13534 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13535 (font_add_log): Prepend the driver name to the resulting fonts.
13536
13537 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13538 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13539 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13540
13541 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13542 (QCembolden): New variables.
13543 (syms_of_xftfont): DEFSYM them.
13544 (xftfont_open): Call XftFontMatch. Don't trust the result of
13545 XftTextExtents8 if the pixel_size is less than 5.
13546
135472008-06-18 Andreas Schwab <schwab@suse.de>
13548
13549 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13550 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13551
135522008-06-18 Jason Rumney <jasonr@gnu.org>
13553
13554 * w32font.c (w32font_list, w32font_match): Add logging.
13555
13556 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13557
135582008-06-17 Chong Yidong <cyd@stupidchicken.com>
13559
13560 * font.c (font_parse_fcname): Store divider characters for
13561 unknown-spec list. For known key symbols, intern using correct
13562 symbol name.
13563
135642008-06-17 Kenichi Handa <handa@m17n.org>
13565
13566 * xfaces.c (realize_default_face): If the frame is not on window
13567 system, set the fontset of face to nil.
13568
135692008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13570
13571 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13572
135732008-06-16 Juanma Barranquero <lekktu@gmail.com>
13574
13575 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13576 (build_font_name_from_vector): Delete externs.
13577
13578 * xfaces.c (struct font_name): Don't declare.
13579
135802008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13581
13582 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13583
135842008-06-16 Chong Yidong <cyd@stupidchicken.com>
13585
13586 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13587
135882008-06-16 Juanma Barranquero <lekktu@gmail.com>
13589
13590 * font.c (Ffont_spec): Fix usage in docstring.
13591 (Ffont_face_attributes): Doc fix.
13592
135932008-06-16 Andreas Schwab <schwab@suse.de>
13594
13595 * font.c (Ffont_face_attributes): Fix definition.
13596
135972008-06-16 Jason Rumney <jasonr@gnu.org>
13598
13599 * font.h (font_style_symbolic_from_value): Remove.
13600
13601 * font.c (font_style_symbolic_from_value): Remove.
13602 (font_style_symbolic): Revert to pre 2008-06-13 version.
13603
13604 * w32font.c (w32_to_fc_weight): New function.
13605 (w32font_full_name, logfont_to_fcname): Use it.
13606
136072008-06-16 Kenichi Handa <handa@m17n.org>
13608
13609 * font.c (font_check_object): Delete it.
13610 (font_clear_cache): Check if a font-object is alive.
13611 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13612 font-object to nil.
13613 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13614 (font_at): Don't call font_check_object.
13615 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13616
136172008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13618
13619 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13620
136212008-06-16 Chong Yidong <cyd@stupidchicken.com>
13622
13623 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13624
136252008-06-15 Chong Yidong <cyd@stupidchicken.com>
13626
13627 * font.c (font_parse_fcname): Only one decimal point.
13628 (font_unparse_fcname): Handle data in family and foundry indices
13629 as symbols, not strings.
13630 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13631
13632 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13633
13634 * font.h (font_unparse_gtkname): Add prototype.
13635
136362008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13637
13638 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13639
136402008-06-15 Andreas Schwab <schwab@suse.de>
13641
13642 * font.c (font_update_drivers): Fix crash when no drivers match.
13643
136442008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13645
13646 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13647 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13648
136492008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13650
13651 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13652
136532008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13654
13655 * process.c (Fserial_process_configure, Fprocess_send_eof):
13656 Use EQ to compare Lisp_Objects.
13657
136582008-06-13 Jason Rumney <jasonr@gnu.org>
13659
13660 * w32fns.c (Fw32_select_font): Remove old font API function.
13661
13662 * w32font.c (logfont_to_fcname): New function.
13663 (Fx_select_font): New font dialog function compatible with
13664 GTK/fontconfig version.
13665
13666 * font.c (font_style_symbolic_from_value): New function.
13667 (font_style_symbolic): Use it.
13668
13669 * font.h (font_style_symbolic_from_value): Declare new function.
13670
136712008-06-13 Juanma Barranquero <lekktu@gmail.com>
13672
13673 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13674 <font-width-table>: Fix typos in docstrings.
13675
136762008-06-13 Daniel Engeler <engeler@gmail.com>
13677
13678 These changes add serial port access.
13679 * process.c: Add HAVE_SERIAL.
13680 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13681 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13682 (list_processes_1, select_wrapper, Fstop_process)
13683 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13684 (status_notify): Modify to handle serial processes.
13685 [HAVE_SERIAL] (Fserial_process_configure)
13686 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13687 New functions.
13688 * process.h (struct Lisp_Process): Add `type'.
13689 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13690 New functions.
13691 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13692 serial ports.
b71ac3dd 13693 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13694 * w32.h: Add FILE_SERIAL.
13695 (struct _child_process): Add ovl_read, ovl_write.
13696
136972008-06-13 Kenichi Handa <handa@m17n.org>
13698
13699 * dispextern.h (enum lface_attribute_index): New member
13700 LFACE_FOUNDRY_INDEX.
13701
13702 * font.c (font_score): Delete arg alternate_families. Check only
13703 weight, slant, width, and size. Ignore the difference of alias
13704 style symbols.
13705 (font_sort_entites): Adjust for the above change. Reflect the
13706 order of font-driver to scores.
13707 (font_list_entities): Don't check alternate_familes here.
13708 (font_clear_prop): Handle foundry.
13709 (font_update_lface): Don't parse "foundry-family" form here.
13710 Handle FONT_FOUNDRY_INDEX.
13711 (font_find_for_lface): Likewise. Handle alternate families here.
13712 If registry is nil, try iso8859-1 and ascii-0.
13713 (font_open_for_lface): Pay attention to size in ENTITY.
13714 (font_open_by_name): Simplify by calling font_load_for_lface.
13715 (free_font_driver_list): Delete it.
13716 (font_update_drivers): Preserve the order of backends.
13717 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13718 of font_score and font_sort_entites.
13719 (font_update_sort_order): Likewise.
13720
13721 * xfaces.c (LFACE_FOUNDRY): New macro.
13722 (check_lface_attrs): Check foundry.
13723 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13724 (merge_face_vectors): Check foundry.
13725 (merge_face_ref): Likewise.
13726 (Finternal_set_lisp_face_attribute): Likewise.
13727 (x_update_menu_appearance): Likewise.
13728 (Finternal_get_lisp_face_attribute): Likewise.
13729 (lface_hash): Likewise.
13730 (lface_same_font_attributes_p): Likewise.
13731 (x_supports_face_attributes_p): Likewise.
13732 (tty_supports_face_attributes_p): Likewise.
13733 (Finternal_set_alternative_font_family_alist): Intern strings.
13734 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13735 (realize_default_face): Set LFACE_FOUNDRY (lface).
13736
13737 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13738 font-driver at first.
13739
13740 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13741
137422008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13743
13744 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13745
137462008-06-12 Jim Meyering <meyering@redhat.com>
13747
13748 Make unexec_free handle NULL the same way free does.
13749 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13750
137512008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13752
13753 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13754 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13755 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13756 (WEAK_ALIAS): Simplify.
13757 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13758 when searching a unibyte buffer.
13759
137602008-06-12 Chong Yidong <cyd@stupidchicken.com>
13761
13762 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13763
137642008-06-12 Juanma Barranquero <lekktu@gmail.com>
13765
13766 * w32font.c: Include ctype.h.
13767
137682008-06-11 Jason Rumney <jasonr@gnu.org>
13769
13770 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13771 misreported as space.
13772 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13773 as aliases for registry iso10646-1.
13774
137752008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13776
13777 * buffer.c (clone_per_buffer_values): Skip `name'.
13778
137792008-06-11 Chong Yidong <cyd@stupidchicken.com>
13780
13781 * font.c (font_parse_fcname): Fix last change; accept decimal
13782 points in font size.
13783
137842008-06-10 Jason Rumney <jasonr@gnu.org>
13785
13786 * w32uniscribe.c (add_opentype_font_name_to_list):
13787 Skip non unicode fonts.
13788
137892008-06-10 Chong Yidong <cyd@stupidchicken.com>
13790
13791 * xfns.c (Fx_font_dialog): New function.
13792
13793 * gtkutil.c (xg_dialog_response_cb): Rename from
13794 xg_file_response_callback.
13795 (pop_down_dialog): Rename from pop_down_file_dialog.
13796 (xg_get_file_name): Callers changed.
13797 (xg_get_font_name): New function.
13798
13799 * gtkutil.h (xg_get_font_name): Insert prototype.
13800
138012008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13802
13803 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13804 x_underline_minimum_display_offset.
13805 (syms_of_xdisp): Declare it here rather than in xterm.c.
13806 * dispextern.h (underline_minimum_offset): Declare it.
13807 * w32term.c (x_draw_glyph_string): Use it.
13808 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13809 (syms_of_xterm): Don't declare it any more.
13810 (x_draw_glyph_string): Adjust to the new name.
13811
8719abec 138122008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13813
13814 * xterm.c (x_underline_minimum_display_offset): New var.
13815 (x_draw_glyph_string): Use it.
13816 (syms_of_xterm): Declare it.
13817
138182008-06-10 Chong Yidong <cyd@stupidchicken.com>
13819
13820 * font.c (font_parse_fcname): Accept GTK-style font names too.
13821
138222008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13823
13824 * dired.c (file_name_completion): Don't return t if the match is exact
13825 but with different capitalization.
13826 * minibuf.c (Ftry_completion): Simplify.
13827
13828 * window.c (Vwindow_point_insertion_type): New var.
13829 (set_window_buffer): Use it.
13830 (syms_of_window): Init and export it to Lisp.
13831
138322008-06-10 Kenichi Handa <handa@m17n.org>
13833
13834 * font.h (font_intern_prop): Prototype adjusted.
13835
13836 * font.c (font_intern_prop): New arg force_symbol.
13837 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13838 Adjust for the change of font_intern_prop.
13839
13840 * ftfont.c (ftfont_pattern_entity):
13841 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13842 (w32_registry):
13843 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13844 the change of font_intern_prop.
13845
138462008-06-09 Juanma Barranquero <lekktu@gmail.com>
13847
13848 * w32menu.c (digest_single_submenu): Declare extern.
13849
138502008-06-09 Jason Rumney <jasonr@gnu.org>
13851
13852 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13853
13854 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13855 (parse_single_submenu): Remove.
13856 (digest_single_submenu): Remove.
13857 (syms_of_w32menu): Don't initialise variables that have moved
13858 to menu.c.
13859 (set_frame_menubar): Sync with version in xmenu.c.
13860 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13861
13862 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13863 Make static again.
13864
138652008-06-09 Jason Rumney <jasonr@gnu.org>
13866
13867 Changes to w32 files related to the move of common menu code
13868 to menu.c on 2008-06-08 by Chong Yidong.
13869
13870 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13871 defs to w32gui.h.
13872 (single_keymap_panes, push_menu_item, push_menu_pane):
13873 Make globally visible.
13874
13875 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13876 (local_free, malloc_widget_value, free_widget_value)
13877 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13878 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13879 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13880 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13881 (menu_items, menu_items_allocated, menu_items_used)
13882 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13883 (init_menu_items, finish_menu_items, discard_menu_items)
13884 (grow_menu_items, push_submenu_start, push_submenu_end)
13885 (push_left_right_boundary, push_menu_pane, push_menu_item)
13886 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13887 (free_menubar_widget_tree_value, parse_single_submenu)
13888 (update_submenu_strings): Remove functions.
13889 (xmalloc_widget_value): Remove and declare extern.
13890
13891 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13892 (OBJ1): Build it.
13893
13894 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13895 (local_heap, local_alloc, local_free, malloc_widget_value)
13896 (free_widget_value): Define here.
13897
138982008-06-09 Kenichi Handa <handa@m17n.org>
13899
13900 * font.h (Qascii_0): Extern it.
13901
13902 * font.c (Qascii_0): New variable.
13903 (syms_of_font): DEFSYM it.
13904 (font_open_by_name): If the registry "iso8859-1" fails, try also
13905 "ascii-0".
13906
13907 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13908
139092008-06-08 Kenichi Handa <handa@m17n.org>
13910
13911 * .gdbinit (xfont): New command.
13912
139132008-06-08 Andreas Schwab <schwab@suse.de>
13914
13915 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13916 * Makefile.in (menu.o): Update dependencies.
13917
13918 * Makefile.in (obj): Always add menu.o.
13919 * emacs.c (main): Always call syms_of_menu.
13920 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13921
139222008-06-08 Chong Yidong <cyd@stupidchicken.com>
13923
13924 * Makefile.in: Compile menu.c.
13925
13926 * lisp.h: Declare syms_of_menu.
13927
13928 * emacs.c (main): Call syms_of_menu.
13929
13930 * keyboard.h: Relocate platform-independent menu definitions from
13931 xmenu.c.
13932
13933 * menu.c: New file. Relocate platform-independent menu
13934 definitions from xmenu.c. Suggested by Adrian Robert.
13935
13936 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13937 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13938 (menu_items_used, menu_items_n_panes)
13939 (menu_items_submenu_depth): Move to keyboard.h.
13940 (init_menu_items, finish_menu_items, unuse_menu_items)
13941 (discard_menu_items, restore_menu_items, save_menu_items)
13942 (grow_menu_items, push_submenu_start, push_submenu_end)
13943 (push_left_right_boundary, push_menu_pane, push_menu_item)
13944 (keymap_panes, single_keymap_panes, single_menu_item)
13945 (list_of_panes, list_of_items, find_and_call_menu_selection)
13946 (xmalloc_widget_value, free_menubar_widget_value_tree)
13947 (parse_single_submenu, digest_single_submenu)
13948 (update_submenu_strings): Move to menu.c.
13949
139502008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13951
13952 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13953
139542008-06-06 Miles Bader <miles@gnu.org>
13955
13956 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13957 face, not frame default.
13958
139592008-06-05 Martin Rudalics <rudalics@gmx.at>
13960
13961 * window.c (pop_up_windows, pop_up_frames)
13962 (display_buffer_reuse_frames, Vpop_up_frame_function)
13963 (Vdisplay_buffer_function, Veven_window_heights)
13964 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13965 (Vspecial_display_function, Vsame_window_buffer_names)
13966 (Vsame_window_regexps, split_height_threshold)
13967 (Vsplit_window_preferred_function): Move those vars to window.el.
13968 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13969 (Fdisplay_buffer): Move those functions to window.el.
13970 (syms_of_window): Remove corresponding declarations.
13971 (display_buffer): New function.
13972 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13973 * dispnew.c (Flast_nonminibuf_frame): New function.
13974 * buffer.c (Fpop_to_buffer): Move to window.el.
13975
139762008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13977
13978 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13979
139802008-06-05 Kenichi Handa <handa@m17n.org>
13981
13982 * coding.c (detect_coding): Fix previous change.
13983 (detect_coding_system): Likewise.
13984
139852008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13986
13987 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13988
13989 * keymap.c (Vminibuffer_local_filename_must_match_map):
13990 Rename from Vminibuffer_local_must_match_filename_map.
13991 (syms_of_keymap):
13992 * minibuf.c (Fcompleting_read): Adjust accordingly.
13993 * commands.h: Rename declaration as well.
13994
139952008-06-05 Kenichi Handa <handa@m17n.org>
13996
13997 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13998 family name.
13999 (Ffont_put): Likewise.
14000
14001 * fontset.c (fontset_find_font): Call font_open_for_lface with the
14002 current font-spec.
14003
14004 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
14005 is unspecified.
14006
14007 * xfaces.c (realize_x_face): If the font-related face attributes
14008 are the same as those of default face, realize a new fontset from
14009 default->fontset.
14010 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
14011
140122008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
14013
14014 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
14015 (move_it_in_display_line): New wrapper.
14016
14017 * window.c (window_scroll_pixel_based_preserve_x)
14018 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
14019 (window_scroll_pixel_based, window_scroll_line_based):
14020 Use them to preserve column positions.
14021 (syms_of_window): Initialize them.
14022
14023 * indent.c (Fvertical_motion): Extend first arg to allow passing an
14024 (HPOS . VPOS) pair.
14025
14026 * dispextern.h (move_it_in_display_line): Declare.
14027
140282008-06-05 Juanma Barranquero <lekktu@gmail.com>
14029
14030 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
14031 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
14032 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
14033
140342008-06-04 Juanma Barranquero <lekktu@gmail.com>
14035
14036 * window.c (Fset_window_parameter): Doc fix.
14037 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
14038
140392008-06-04 Joakim Verona <joakim@verona.se>
14040
14041 * window.h (struct window): Add new member window_parameters.
14042
14043 * window.c (Fwindow_parameters, Fwindow_parameter)
14044 (Fset_window_parameter): New defuns.
14045 (syms_of_window): Defsubr the new defuns.
14046 (make_window): Initialize window_parameters to nil.
14047
140482008-06-04 John Paul Wallington <jpw@pobox.com>
14049
14050 * eval.c (Fdefmacro): Doc fix.
14051
140522008-06-04 Kenichi Handa <handa@m17n.org>
14053
14054 * coding.c (detect_coding): Fix handling of coding->head_ascii.
14055 Be sure to call setup_coding_system when we find a proper coding system.
14056 (detect_coding_system): Fix handling of coding->head_ascii.
14057
140582008-06-03 Andreas Schwab <schwab@suse.de>
14059
14060 * font.c (font_prop_validate_spacing): Fix last change.
14061
140622008-06-03 Kenichi Handa <handa@m17n.org>
14063
14064 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
14065 (font_parse_fcname): Fix handling of unknown key.
14066
14067 * xfont.c (xfont_list): Try an alias.
14068
14069 * charset.c (char_charset): Return NULL if the arg charset_list is
14070 specified and C doesn't belong to any of them.
14071
140722008-06-02 Chip Coldwell <coldwell@redhat.com>
14073
14074 * font.c (font_pixel_size): Don't take cdr of an integer.
14075
140762008-06-02 Jim Meyering <meyering@redhat.com>
14077
14078 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
14079 * alloc.c (xfree): Return right away for a NULL arg.
14080 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
14081 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
14082 * mac.c (create_apple_event_from_event_ref): Likewise.
14083 (create_apple_event_from_drag_ref, cfstring_create_normalized):
14084 Likewise.
14085 * doprnt.c (doprnt1): Likewise.
14086 * frame.c (frame): Likewise.
14087 * keyboard.c (wipe_kboard): Likewise.
14088 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
14089 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
14090 * term.c (tty_default_color_capabilities, maybe_fatal)
14091 (delete_tty): Likewise.
14092 * w16select.c (string): Likewise.
14093 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
14094 * w32bdf.c (w32_free_bdf_font): Likewise.
14095 * w32fns.c (w32_unload_font): Likewise.
14096 * w32font.c (w32font_close): Likewise.
14097 * window.c (size_window): Likewise.
14098 * xselect.c (receive_incremental_selection): Likewise.
14099 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
14100 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
14101 * w32.c (stat): Likewise.
14102
14103 Remove useless if-before-free tests.
14104 * editfns.c (Fset_time_zone_rule): Likewise.
14105 * lread.c (nosuffix): Likewise.
14106 * ralloc.c (get_bloc): Likewise.
14107 * regex.c (reg_free): Likewise.
14108 * xftfont.c (xftfont_open, xftfont_close): Likewise.
14109 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
14110 * xsmfns.c (smc_save_yourself_CB): Likewise.
14111
141122008-06-02 Kenichi Handa <handa@m17n.org>
14113
14114 * font.c (font_find_for_lface): Handle float font size.
14115 (font_open_for_lface): Likewise.
14116
14117 * xfaces.c (x_supports_face_attributes_p): Check face->font before
14118 comparing the properties.
14119
141202008-06-01 Jason Rumney <jasonr@gnu.org>
14121
14122 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
14123 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
14124 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
14125 Don't add empty script list.
14126 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
14127
141282008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
14129
14130 * Makefile.in (dot, dotdot): Remove, update users.
14131 ".." has been used elsewhere in the file for a long time.
14132 (LIBXT_STATIC): Remove conditional based on unused variable.
14133
141342008-06-01 Miles Bader <miles@gnu.org>
14135
14136 * xfaces.c (Vface_remapping_alist): New variable.
14137 (syms_of_xfaces): Initialize it.
14138 (enum named_merge_point_kind): New type.
14139 (struct named_merge_point): Add `named_merge_point_kind' field.
14140 (push_named_merge_point): Make cycle detection respect different
14141 named-merge-point kinds.
14142 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
14143 Remove face-name alias resolution.
14144 (lface_from_face_name): New definition using
14145 `lface_from_face_name_no_resolve'.
14146 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
14147 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
14148 (get_lface_attributes): New definition that layers face-remapping on
14149 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
14150 (lookup_basic_face): New function.
14151 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14152 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14153 `get_lface_attributes'.
14154 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14155 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14156 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14157
14158 * xdisp.c (init_iterator): Pass base_face_id through
14159 `lookup_basic_face' when we actually use it as a face-id.
14160 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14161 DEFAULT_FACE_ID.
14162
14163 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14164 lookup the initial face-id.
14165
14166 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14167
141682008-06-01 Juanma Barranquero <lekktu@gmail.com>
14169
14170 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14171 (Fremove_text_properties): Fix typos in docstrings.
14172
141732008-05-31 Kenichi Handa <handa@m17n.org>
14174
14175 * font.c (font_list_entities): Fix the car part of data to be
14176 stored in the cache.
14177
14178 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14179
141802008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14181
14182 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14183 Add a `test' argument so another predicate than `equal' can be used.
14184 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14185 (map_char_table): Remove unused vars `c' and `i'.
14186 * lisp.h (Foptimize_char_table): Adjust declaration.
14187 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14188
141892008-05-30 Kenichi Handa <handa@m17n.org>
14190
14191 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14192 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14193 defined.
14194
141952008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14196
14197 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14198 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14199 frame-local settings for the same variable.
14200
142012008-05-30 Kenichi Handa <handa@m17n.org>
14202
14203 * fontset.c (Ffont_info): Move to font.c.
14204 (syms_of_fontset): Delete defsubr of Sfont_info.
14205
14206 * font.c (font_style_to_value, font_score): Delete casting of the
14207 args to xstcasecmp.
14208 (register_font_driver): Increment num_font_drivers only when
14209 registering the driver globally.
14210 (Ffont_info): Move from fontset.c. Handle a font object too.
14211 (syms_of_font): Defsubr Sfont_info.
14212
142132008-05-29 Kenichi Handa <handa@m17n.org>
14214
14215 * coding.h (enum define_coding_utf8_arg_index): New enum.
14216 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14217 coding_attr_utf_bom.
14218 (enum utf_bom_type): Rename from utf_16_bom_type.
14219 (struct utf_16_spec): Adjust for the above change.
14220 (struct coding_system): Add utf_8_bom in `spec' union.
14221
14222 * coding.c (CODING_UTF_8_BOM): New macro.
14223 (enum coding_category): Delete coding_category_utf_8, add
14224 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14225 coding_category_utf_8_sig.
14226 (CATEGORY_MASK_UTF_8): Delete it.
14227 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14228 (CATEGORY_MASK_UTF_8_SIG): New macros.
14229 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14230 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14231 CATEGORY_MASK_UTF_8_SIG.
14232 (CATEGORY_MASK_UTF_8): New macro.
14233 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14234 (detect_coding_utf_8): Check BOM.
14235 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14236 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14237 (encode_coding_utf_16): Likewise.
14238 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14239 (detect_coding, detect_coding_system): Handle utf-8-auto.
14240 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14241 (syms_of_coding): Fix setting up of Vcoding_category_table.
14242
142432008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14244
14245 * process.c (Faccept_process_output): If `millisec' is non-nil,
14246 `seconds' default to 0.
14247 (wait_reading_process_output): Also return non-nil if we read output
14248 from a non-running process.
14249
142502008-05-29 Jason Rumney <jasonr@gnu.org>
14251
14252 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14253 `raster' specified.
14254 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14255 in the uniscribe backend, but disallow any font that has no
14256 unicode subrange support.
14257
142582008-05-29 Juanma Barranquero <lekktu@gmail.com>
14259
14260 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14261 Fix typos in docstrings.
14262
142632008-05-29 Kenichi Handa <handa@m17n.org>
14264
14265 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14266 (Fx_family_fonts): Set frame correctly.
14267
142682008-05-28 Jason Rumney <jasonr@gnu.org>
14269
14270 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14271
142722008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14273
14274 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14275 calling build_annotations.
14276
142772008-05-28 Juanma Barranquero <lekktu@gmail.com>
14278
14279 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14280 (Fencode_coding_string):
14281 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14282 <latin-extra-code-table>: Fix typos in docstrings.
14283 (syms_of_coding) <coding-system-alist>: Doc fix.
14284 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14285
142862008-05-28 Kenichi Handa <handa@m17n.org>
14287
14288 * fontset.c (Ffont_info): Don't call font_close_object.
14289
14290 * font.c (font_parse_family_registry): Use Ffont_put to validate
14291 foundry and family.
14292 (font_delete_unmatched): Don't check spacing.
14293 (font_list_entities): Add spacing to the spec to list fonts.
14294
14295 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14296 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14297
14298 * coding.c (encode_coding_raw_text): Fix previous change.
14299 (encode_coding_object): When the dst_object is a buffer and is
14300 different from src_object, move gap to PT.
14301
143022008-05-27 Chong Yidong <cyd@stupidchicken.com>
14303
14304 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14305
143062008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14307
14308 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14309 all branches. Compute it differently.
14310
14311 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14312
143132008-05-27 Juanma Barranquero <lekktu@gmail.com>
14314
14315 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14316 into "else if () ... else ...".
14317
143182008-05-27 Jason Rumney <jasonr@gnu.org>
14319
14320 * w32font.c (w32font_open_internal): Determine if glyph indices
14321 are likely to work here.
14322
143232008-05-27 Chong Yidong <cyd@stupidchicken.com>
14324
14325 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14326 draw overlap glyphs with appropriate highlighting.
14327
143282008-05-27 Kenichi Handa <handa@m17n.org>
14329
14330 * xfont.c (xfont_open): Fix calculation of font->average_width.
14331
143322008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14333
14334 * casefiddle.c (casify_object): Try to guess better whether the
14335 argument is a byte or a char.
14336
143372008-05-26 Andreas Schwab <schwab@suse.de>
14338
14339 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14340 Always send multiples of format size.
14341
14342 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14343
143442008-05-26 Jason Rumney <jasonr@gnu.org>
14345
14346 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14347 (compute_metrics): Don't set failure if we just cleared the cache.
14348 (w32_weight_table): Remove unused variable.
14349 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14350 backwards compatibility.
14351
143522008-05-25 Kenichi Handa <handa@m17n.org>
14353
14354 * w32term.c (x_draw_glyph_string):
14355 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14356
14357 * xfaces.c: Delete unused function prototypes.
14358 (xstrlwr, font_frame): Delete them.
14359 (clear_face_cache): Delete unused variable.
14360
14361 * xftfont.c (xftfont_open): Delete unused variable.
14362 If underline_thickness is not 1, adjust underline_position.
14363
14364 * ftxfont.c (ftxfont_open): Delete unused variable.
14365
14366 * fontset.c (face_for_char): Optimize for the case of no charset
14367 property.
14368
14369 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14370 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14371 (otf_open, font_otf_capability, generate_otf_features)
14372 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14373 Comment out by surrounding "#if 0" and "#endif" for the moment.
14374 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14375 (syms_of_font): Codes for accessing above commented out.
14376
143772008-05-24 Eli Zaretskii <eliz@gnu.org>
14378
14379 * w32proc.c: Include dispextern.h.
14380
14381 * w32.c: Include dispextern.h.
14382
143832008-05-23 Juanma Barranquero <lekktu@gmail.com>
14384
14385 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14386 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14387 Fix typos in docstrings.
14388
143892008-05-23 Jason Rumney <jasonr@gnu.org>
14390
14391 * xsmfns.c: Remove includes that are already included by config.h.
14392
143932008-05-23 Kenichi Handa <handa@m17n.org>
14394
14395 * charset.c (Qemacs, charset_emacs): New variables.
14396 (char_charset): Fix for non-Unicode characters.
14397 (syms_of_charset): Define charset_emacs.
14398
14399 * w32term.c (x_draw_glyph_string): Be sure to update
14400 s->underline_thickness and s->underline_position. Be sure to draw
14401 underline within the current line area.
14402
14403 * xterm.c (x_draw_glyph_string): Be sure to update
14404 s->underline_thickness and s->underline_position. Be sure to draw
14405 underline within the current line area.
14406
14407 * fontset.c: Delete unused variables and add casting for char *
14408 throughout the file.
14409 (fontset_font): Try the fallback fonts of the current fontset
14410 before consulting the default fontset.
14411
14412 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14413
14414 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14415
144162008-05-22 Jason Rumney <jasonr@gnu.org>
14417
14418 * font.c: Don't include strings.h.
14419
14420 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14421
14422 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14423 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14424 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14425 to call xstrcasecmp.
14426
14427 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14428
14429 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14430
14431 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14432
14433 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14434
144352008-05-22 Kenichi Handa <handa@m17n.org>
14436
14437 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14438
14439 * font.c (font_prop_validate_style): Adjust for the format
14440 change of font_style_table.
14441
14442 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14443 two args.
14444
14445 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14446 two args.
14447
144482008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14449
14450 * minibuf.c (keys_of_minibuf): Delete.
14451 * lisp.h (keys_of_minibuf): Delete.
14452 * emacs.c (main): Don't call keys_of_minibuf.
14453
144542008-05-22 Kenichi Handa <handa@m17n.org>
14455
14456 * ftfont.c (ftfont_resolve_generic_family): Rename from
14457 ftfont_list_generic_family. Return a single family for each
14458 generic family.
14459 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14460 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14461 Call font_add_log.
14462 (ftfont_match): Call font_add_log.
14463
14464 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14465 (FONT_DEBUG): Define it.
14466 (font_add_log): Extern it.
14467 (font_assert): Rename from xassert.
14468
14469 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14470 (xfont_list_family): Call font_add_log.
14471 (xfont_match): Likewise.
14472 (memq_no_quit): Delete.
14473
14474 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14475 call of Ffont_xlfd_name.
14476
14477 * xfaces.c (struct table_entry, slant_table, weight_table)
14478 (swidth_table): Move to font.c.
14479
14480 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14481 xassert are changed to font_assert. Delete many unused variables.
14482 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14483 New variables.
14484 (struct table_entry): Move from xfaces.c and modified.
14485 (weight_table, slant_table, width_table): Move from xfaces.c and
14486 contents adjusted for the change of struct table_entry.
14487 (font_style_to_value, font_style_symbolic): Adjust for the
14488 format change of font_style_table.
14489 (font_parse_family_registry): Don't overwrite existing foundry and
14490 family of font_spec.
14491 (font_score): Fix calculation of diff for sizes.
14492 (font_sort_entites): Call font_add_log.
14493 (font_delete_unmatched): Return a newly created list.
14494 (font_list_entities): Fix previous change. Call font_add_log.
14495 (font_matching_entity, font_open_entity, font_close_entity):
14496 Call font_add_log.
14497 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14498 (Finternal_set_font_style_table): Delete.
14499 (BUILD_STYLE_TABLE): New macro.
14500 (build_style_table): New function.
14501 (Vfont_log, font_log_env_checked): New variables.
14502 (font_add_log): New function.
14503 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14504 Declare Lisp variables "font-weight-table", "font-slant-table",
14505 "font-width-table", and "font-log". Initialize font_style_table.
14506
145072008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14508
14509 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14510
145112008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14512 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14513
14514 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14515 (Vframe_alpha_lower_limit): New variable.
14516 (x_set_alpha): New function.
14517
14518 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14519
14520 * xfns.c (x-create-frame, Qalpha):
14521 Initialize the frame parameter `alpha'.
14522 * xterm.c (OPAQUE, OPACITY): New.
14523 (x_set_frame_alpha): New function.
14524 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14525
14526 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14527 * w32fns.c (w32_frame_parm_handlers): Likewise.
14528
145292008-05-20 Jason Rumney <jasonr@gnu.org>
14530
14531 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14532 truetype fonts to opentype list.
14533
145342008-05-20 Juanma Barranquero <lekktu@gmail.com>
14535
14536 * fontset.c (Ffontset_info): Doc fix.
14537 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14538 <ignore-relative-composition>: Fix typos in docstrings.
14539
14540 * font.c (syms-of-font) <font-encoding-alist>:
14541 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14542 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14543 (Ffont_otf_alternates): Doc fixes.
14544
145452008-05-20 Kenichi Handa <handa@m17n.org>
14546
14547 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14548 font.h through out the file.
14549 (FONT_DRIVERS): Rename from FONTOBJ.
14550 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14551 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14552
14553 * emacs.c (main): Call syms_of_font unconditionally.
14554
14555 * font.h (find_font_encoding): Extern it.
14556
14557 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14558 fontset.c.
194d44e7 14559 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14560 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14561 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14562 only when HAVE_WINDOW_SYSTEM is defined.
14563 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14564 when HAVE_WINDOW_SYSTEM is defined.
14565
14566 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14567 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14568
14569 * xfaces.c: Include font.h unconditionally.
14570 (merge_face_ref, merge_face_vectors)
14571 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14572
145732008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14574
14575 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14576 indirect_variable.
14577 * eval.c (lisp_indirect_variable): New fun.
14578 (Fuser_variable_p): Use it.
14579
145802008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14581
14582 * lisp.h (indirect_variable):
14583 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14584 Use Lisp_Symbol pointers rather than Lisp_Object.
14585 Adjust callers.
14586 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14587 To this end, change calling-convention.
14588
14589 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14590 if some non-hidden buffers are selected by string&pred.
14591
145922008-05-19 Chong Yidong <cyd@stupidchicken.com>
14593
14594 * process.c (wait_reading_process_output): Always check status
14595 when in batch mode.
14596
145972008-05-19 Kenichi Handa <handa@m17n.org>
14598
14599 * font.c (font_list_entities): Fix handling of cache.
14600 (font_matching_entity): Likewise.
14601
14602 * ftfont.c (cs_iso8859_1): Delete.
14603 (ft_face_cache): New variable.
14604 (struct ftfont_info): New member fc_charset_idx.
14605 (ftfont_build_basic_charsets): Delete.
14606 (fc_charset_table): New variable.
14607 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14608 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14609 Callers changed.
14610 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14611 (ftfont_spec_pattern): New argument fc_charset_idx.
14612 Check registry more rigidly. Change callers.
14613 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14614 change of :font-entity property of the font.
14615
14616 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14617 property of the font.
14618
146192008-05-18 Juanma Barranquero <lekktu@gmail.com>
14620
14621 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14622 (Funencodable_char_position, Fcheck_coding_systems_region)
14623 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14624 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14625 (Ffind_operation_coding_system, Fset_coding_system_priority)
14626 (Fcoding_system_eol_type): Doc fixes.
14627
146282008-05-17 Glenn Morris <rgm@gnu.org>
14629
14630 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14631
146322008-05-16 Eli Zaretskii <eliz@gnu.org>
14633
14634 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14635 and st_gid.
14636
14637 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14638 HAVE_WINDOW_SYSTEM is not defined.
14639
14640 * xfaces.c (merge_face_ref, merge_face_vectors)
14641 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14642 HAVE_WINDOW_SYSTEM is defined.
14643 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14644
146452008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14646
14647 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14648
146492008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14650
14651 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14652
146532008-05-15 Kenichi Handa <handa@m17n.org>
14654
14655 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14656 preference.
14657
146582008-05-15 Glenn Morris <rgm@gnu.org>
14659
14660 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14661
146622008-05-15 Chong Yidong <cyd@stupidchicken.com>
14663
14664 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14665 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14666
14667 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14668
146692008-05-15 Kenichi Handa <handa@m17n.org>
14670
14671 * ftfont.c (ftfont_list): Downcase family name to check generic
14672 families.
14673
14674 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14675 font-spec for QCfont value.
14676
14677 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14678 buffer. Check the return value of it.
14679
146802008-05-14 Jason Rumney <jasonr@gnu.org>
14681
14682 * w32term.c (w32_get_glyph_overhangs): Remove.
14683 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14684
146852008-05-14 Kenichi Handa <handa@m17n.org>
14686
14687 * font.c (font_prop_validate): Make nil a valid value.
14688 (font_clear_cache): Check if the cached vector of entities is nil
14689 or not.
14690
146912008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14692
14693 * emacs.c (main_thread): Conditionalize on
14694 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14695 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14696
14697 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14698 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14699 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14700
147012008-05-14 Kenichi Handa <handa@m17n.org>
14702
14703 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14704 has no corresponding coding system.
14705
147062008-05-14 Jason Rumney <jasonr@gnu.org>
14707
14708 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14709
14710 * w32font.h (w32font_open_internal): Update declaration.
14711
14712 * w32font.c (w32font_open_internal): Change last argument from
14713 w32font_info struct to font object. Fill in font object from
14714 font_entity. Get Outline metrics if possible. Use them to
14715 calculate underline position and thickness. Use xlfd name as name
14716 property. Don't set codepage.
14717 (w32font_open): Pass font_object to w32font_open_internal. Don't
14718 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14719 (w32font_draw): Use s->font.
14720 (clear_cached_metrics): Don't clear non-existent blocks.
14721
14722 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14723 font was not found.
14724 (x_draw_glyph_string): Use underline position and thickness from font.
14725
14726 * w32uniscribe.c (uniscribe_open): Pass font_object to
14727 w32font_open_internal.
14728
147292008-05-14 Kenichi Handa <handa@m17n.org>
14730
14731 These changes are to delete all legacy font-handling codes, and
14732 make Emacs use only font-backends.
14733
14734 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14735 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14736
14737 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14738
14739 * charset.h (Vcharset_non_preferred_head)
14740 (Vcurrent_iso639_language): Extern them.
14741
14742 * charset.c (Vcharset_non_preferred_head): New variable.
14743 (Vcurrent_iso639_language): New variable.
14744 (syms_of_charset): Declare it as a Lisp variable.
14745 (char_charset): Don't check non preferred charsets. As a last
14746 resort, return charset_unicode.
14747 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14748
14749 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14750 conditionals. Don't check enable_font_backend. Delete all codes
14751 used only when USE_FONT_BACKEND is not defined.
14752
14753 * dispextern.h (struct glyph_string): Change type of `font' to
14754 `struct font *'.
14755 (struct glyph_string): New member underline_position and
14756 underline_thickness.
14757 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14758 (struct face): Change type of `font' to `struct font *'. Remove
14759 members `font_name', `font_info_id'.
14760 (per_char_metric, encode_char): Delete externs.
14761 (calc_pixel_width_or_height): Adjust the prototype.
14762
14763 * emacs.c (enable_font_backend): Delete extern.
14764 (main): Don't set enable_font_backend. Don't check the command
14765 line argument "-disable-font-backend".
14766
14767 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14768 (enum font_property_index): New members FONT_DPI_INDEX,
14769 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14770 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14771 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14772 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14773 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14774 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14775 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14776 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14777 (struct font_spec, struct font_entity): New structs.
14778 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14779 (struct font): Many members from old "struct font_info" moved to
14780 here. Members font and entity deleted.
14781 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14782 the new font-related objects.
14783 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14784 (CHECK_FONT_GET_OBJECT): Likewise.
14785 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14786 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14787 (struct font_driver): New members case_sensitive anc check. Type
14788 of the member list and open changed.
14789 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14790 (font_symbolic_width, font_find_object, font_get_spec)
14791 (font_set_lface_from_name): Delete extern.
14792 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14793
14794 * font.c: Include <strings.h>.
14795 (enable_font_backend): Delete it.
14796 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14797 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14798 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14799 (null_string): Delete it.
14800 (null_vector): Make it static.
14801 (font_family_alist): Delete it.
14802 (Qnormal): Extern it.
14803 (QCextra, QClanguage): Delete it.
14804 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14805 (font_make_spec, font_make_entity, font_make_object)
14806 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14807 the string. Callers changed.
14808 (font_pixel_size): Adjusted for the format change of font-related
14809 objects.
14810 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14811 (font_style_to_value, font_style_symbolic): New function.
14812 (build_font_family_alist): Delete it.
14813 (font_registry_charsets): Use Fassoc_string instead of
14814 assq_no_quit.
14815 (font_prop_validate_symbol): Don't return null_string.
14816 (font_prop_validate_style): Adjusted for the change of
14817 style-related values in a font vector.
14818 (font_property_table): Delete entries for QClanguage and
14819 QCantialias, add entries for QCavgwidth.
14820 (get_font_prop_index): Delete the 2nd argument FROM.
14821 (font_prop_validate): Arguments changed.
14822 (font_put_extra): Adjusted for the change of font-related objects.
14823 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14824 (font_parse_fcname, font_unparse_fcname)
14825 (font_prepare_composition): Likewise.
14826 (font_parse_family_registry): Renamed from font_merge_old_spec.
14827 (otf_open): Delete the 1st arg entity.
14828 (font_otf_capability): Adjusted for the above change.
14829 (font_score): New arg alternate_families. Adjusted for the change
14830 of font-related objects.
14831 (font_sort_entites): New arg best_only.
14832 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14833 Delete them.
14834 (font_match_p): Check alternate families.
14835 (font_find_object): Delete it.
14836 (font_check_object): New function.
14837 (font_clear_cache): Adjusted for the change of font-related objects.
14838 (font_delete_unmatched): New arg.
14839 (font_list_entities): Call font_driver->list with a spec that
14840 doesn't specify style-related properties.
14841 (font_matching_entity): Arguments changed. Caller changed.
14842 (font_open_entity): Adjusted for the change of font-related objects.
14843 (font_close_object, font_has_char, font_encode_char)
14844 (font_get_name, font_get_spec): Likewise.
14845 (font_spec_from_name, font_clear_prop, font_update_lface):
14846 New functions.
14847 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14848 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14849 (font_at): Adjusted for the change of font-related objects.
14850 (font_range): New function.
14851 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14852 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14853 (Fcopy_font_spec, Fmerge_font_spec): New function.
14854 (Ffont_family_list): Renamed from list-families.
14855 (Finternal_set_font_style_table): Arguments changed.
14856 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14857 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14858 change of font-related objects.
14859 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14860
14861 * fontset.h (struct font_info): Delete it. Most members go to
14862 struct font.
14863 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14864 (enum FONT_SPEC_INDEX): Delete it.
14865 (font_info, list_fonts_func, load_font_func, query_font_func)
14866 (set_frame_fontset_func, find_ccl_program_func)
14867 (get_font_repertory_func, new_fontset_from_font_name): Delete
14868 externs.
14869 (fontset_from_font_name): Extern it.
14870 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14871 (FONT_INFO_FROM_FACE): Deleted.
14872 (face_for_font): Adjust prototype.
14873
14874 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14875 conditionals. Don't check enable_font_backend. Delete all codes
14876 used only when USE_FONT_BACKEND is not defined.
14877 (get_font_info_func, list_font_func, load_font_func)
14878 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14879 (get_font_repertory_func): Delete them.
14880 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14881 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14882 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14883 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14884 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14885 (fontset_compare_rfontdef): New function.
14886 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14887 rfont-defs by qsort. Adjusted for the change of font-group vector.
14888 (load_font_get_repertory): Deleted.
14889 (fontset_find_font): Use new macros to ref/set elements of
14890 font-def and rfont-def.
14891 (fontset_font): Fix the timing of remembering that no font for C.
14892 (free_face_fontset): Do nothing if the face has no fontset.
14893 (face_suitable_for_char_p): Use new macros to ref/set elements of
14894 rfont-def.
14895 (face_for_char): Likewise. Call face_for_char with font_object.
14896 (fs_load_font): Delete. Delete #pragma surrounding it.
14897 (fs_query_fontset): Use strcasecmp instead of strcmp.
14898 (generate_ascii_font_name): Adjusted for the format change of
14899 font-spec.
14900 (Fset_fontset_font): Likewise. Use new macros to set elements of
14901 font-def.
14902 (Fnew_fontset): Use font_unparse_xlfd to generate
14903 FONTSET_ASCII (fontset).
14904 (new_fontset_from_font_name): Deleted.
14905 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14906 a fontset is already created for the font. FIx updating of
14907 Vfontset_alias_alist.
14908 (fontset_ascii_font): Deleted.
14909 (Ffont_info): Adjusted for the format change of font-spec.
14910 (Finternal_char_font): Likewise.
14911 (Ffontset_info): Likewise.
14912 (syms_of_fontset): Don't check load_font_func.
14913
14914 * fns.c (internal_equal): Handle PREV_FONT.
14915
14916 * frame.h: Delete USE_FONT_BACKEND conditional.
14917
14918 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14919 conditionals. Don't check enable_font_backend. Delete all codes
14920 used only when USE_FONT_BACKEND is not defined.
14921 (x_set_font): Call x_new_font, not x_new_fontset2.
14922 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14923 already set for the frame.
14924
14925 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14926 a font-entity by font_make_entity. Use font_intern_prop instead
14927 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14928 font property. If a font is scalable, set avgwidth property to 0.
14929 Set font-entity property by font_put_extra.
14930 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14931 (ffont_driver): Adjusted for the change of struct font_driver.
14932 (ftfont_spec_pattern): New function.
14933 (ftfont_list): Return a list, not vector.
14934 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14935 (ftfont_list_family): Don't downcase names.
14936 (ftfont_free_entity): Deleted.
14937 (ftfont_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 (ftfont_close): Don't free `struct font'.
14942 (ftfont_has_char): Adjusted for the format change of font-entity.
14943 (ftfont_encode_char, ftfont_text_extents): Likewise.
14944
14945 * ftxfont.c (ftxfont_list): Return a list, not vector.
14946 (ftxfont_open): Return a font-object. Adjusted for the change of
14947 struct font. Get underline_thickness and underline_position from
14948 font property. Don't update dpyinfo->smallest_font_height and
14949 dpyinfo->smallest_char_width.
14950 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14951 (ftxfont_draw): Adjusted for the change of struct font.
14952
14953 * image.c (image_ascent): Don't include "charset.h". Include
14954 "character.h" and "font.h".
14955
14956 * lisp.h (enum pvec_type): New member PREV_FONT.
14957 (Fassoc_string): EXFUN it.
14958
14959 * print.c: Include font.h.
14960 (print_object): Handle font-related objects.
14961
14962 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14963 conditionals. Don't check enable_font_backend. Delete all codes
14964 used only when USE_FONT_BACKEND is not defined.
14965 (handle_auto_composed_prop): Do nothing if it->f is not on a
14966 window system. Check how many following characters can be
14967 displayed by the same font.
14968 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14969 'struct font *'.
14970 (get_char_face_and_encoding): Assign the whole encoding task to
14971 the `encode-char' method of a font driver.
14972 (fill_composite_glyph_string): Adjusted for the change of `struct
14973 face' and `struct glyph_string'.
14974 (fill_glyph_string): Likewise.
14975 (get_per_char_metric): Arguments changed.
14976 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14977 and `struct glyph_string'.
14978 (produce_stretch_glyph, calc_line_height_property)
14979 (x_produce_glyphs): Likewise.
14980
14981 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14982 conditionals. Don't check enable_font_backend. Delete all codes
14983 used only when USE_FONT_BACKEND is not defined. Use
14984 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14985 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14986 (Qp): Extern them.
14987 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14988 Deleted.
14989 (struct font_name): Deleted.
14990 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14991 (compare_fonts_by_sort_order): New function.
14992 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14993 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14994 Deleted.
14995 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14996 compare_fonts_by_sort_order.
14997 (Fx_font_family_list): Call Ffont_family_list.
14998 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14999 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
15000 (face_symbolic_slant, face_symbolic_swidth)
15001 (split_font_name_into_vector, build_font_name_from_vector)
15002 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
15003 (font_rescale_ratio, split_font_name, build_font_name)
15004 (free_font_names, sort_fonts, x_face_list_fonts)
15005 (face_font_available_p, sorted_font_list, cmp_font_names)
15006 (font_list_1, concat_font_list, font_list, remove_duplicates):
15007 Deleted.
15008 (Fx_list_fonts): Use Ffont_list.
15009 (LFACE_AVGWIDTH): Deleted.
15010 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
15011 by FONTP.
15012 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
15013 (set_lface_from_font_name): Delete it.
15014 (set_lface_from_font): Renamed from
15015 set_lface_from_font_and_fontset. Caller changed. Don't set
15016 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
15017 for face.
15018 (merge_face_vectors): Copy font-spec if necessary.
15019 Clear properties of the font-spec if necessary.
15020 (merge_face_ref): Clear properties of the font-spec if necessary.
15021 (Finternal_set_lisp_face_attribute): Likewise.
15022 (set_font_frame_param): Use font_load_for_lface to load a
15023 font-object, and call Fmodify_frame_parameters with it.
15024 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
15025 font name by Ffont_xlfd_name.
15026 (Finternal_lisp_face_attribute_values): Don't check QCweight,
15027 QCslant, and QCwidth.
15028 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
15029 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
15030 Compare fonts by EQ.
15031 (lookup_non_ascii_face): Deleted.
15032 (face_for_font): The 2nd argument changed.
15033 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
15034 Check atomic font properties by case insensitive.
15035 (realize_non_ascii_face): Set face->overstrike correctly.
15036 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
15037 (dump_realized_face): Get font name from
15038 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
15039
15040 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
15041 conditionals. Don't check enable_font_backend. Delete all codes
15042 used only when USE_FONT_BACKEND is not defined.
15043 (xic_create_xfontset): Original code deleted and renamed from
15044 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
15045 (x_make_gc): Don't set GCFont in GCs.
15046 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
15047 opened by "fixed".
15048 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
15049 find_ccl_program_func, query_font_func, set_frame_fontset_func,
15050 get_font_repertory_func.
15051
15052 * xfont.c: Include <stdlib.h> and "ccl.h".
15053 (struct xfont_info): New structure.
15054 (xfont_query_font): Deleted.
15055 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
15056 moved from xterm.c.
15057 (xfont_driver): Adjusted for the change of struct font_driver.
15058 (compare_font_names): New function.
15059 (xfont_list_pattern): Sort font names case insensitively. Make
15060 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
15061 (xfont_list): Return a list, not vector.
15062 (xfont_match): If the font doesn't have QCname property, generate
15063 a name from the other font properties.
15064 (xfont_open): Return a font-object. Adjusted for the change of
15065 struct font. Get underline_thickness and underline_position from
15066 font property. Don't update dpyinfo->smallest_font_height and
15067 dpyinfo->smallest_char_width.
15068 (xfont_close): Don't free struct font.
15069 (xfont_prepare_face): Adjusted for the change of struct font.
15070 (xfont_done_face): Deleted.
15071 (xfont_has_char): Adjusted for the change of struct font.
15072 (xfont_encode_char, xfont_draw): Likewise.
15073 (xfont_check): New function.
15074
15075 * xftfont.c (xftfont_list): Adjusted for the change of `list'
15076 callback function.
15077 (xftfont_match): Adjusted for the format change of font-entity.
15078 (xftfont_open): Adjusted for the format change of font-entity and
15079 font-object. Adjusted for the change of struct font. Return a
15080 font-object. Don't update dpyinfo->smallest_font_height and
15081 dpyinfo->smallest_char_width.
15082 (xftfont_close): Block input while calling XftFontClose.
15083 (xftfont_prepare_face): Don't block input while calling
15084 xftfont_get_colors. Adjusted for the change of struct font.
15085 (xftfont_shape): Return value of error case fixed.
15086
15087 * xrdb.c (x_load_resources): Don't setup a fontset resource.
15088
15089 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
15090 conditionals.
15091 (FONT_WIDTH): Return (f)->max_width.
15092 (struct x_display_info): Delete member `font'.
15093 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
15094 (x_find_ccl_program, x_get_font_repertory): Delete externs.
15095 (struct x_output): Change type of `font' to `struct font *'.
15096
15097 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
15098 conditionals. Don't check enable_font_backend. Delete all codes
15099 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
15100 (x_per_char_metric, x_encode_char): Deleted.
15101 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
15102 (x_compute_glyph_string_overhangs): Adjusted for the change of
15103 `struct face'.
15104 (x_draw_glyph_string_foreground)
15105 (x_draw_composite_glyph_string_foreground): Likewise.
15106 (x_draw_glyph_string): Likewise. Use font->underline_position and
15107 font->underline_thickness.
15108 (x_new_font): Renamed from x_new_fontset2.
15109 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
15110 (x_check_font): Call `check' method of a font driver.
15111 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
15112 (x_query_font, x_get_font_repertory): Deleted.
15113 (x_find_ccl_program): Renamed and moved to xfont.c.
15114 (x_redisplay_interface): Adjusted for the change of `struct
15115 redisplay_interface'.
15116
15117 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
15118 conditionals. Don't check enable_font_backend. Delete all codes
15119 used only when USE_FONT_BACKEND is not defined. Surround non-used
15120 code by "#ifdef OLD_FONT" and "endif".
15121 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
15122
15123 * w32font.h (struct w32font_info): New member.
15124 (FONT_COMPAT): New macro.
15125 (w32font_open_internal): Prototype adjusted.
15126
15127 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
15128 OLD_FONT" and "endif".
15129
15130 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
15131 conditionals. Don't check enable_font_backend. Delete all codes
15132 used only when USE_FONT_BACKEND is not defined.
15133 (w32font_open): Return a font-object. Make a font-object by
15134 font_make_object. Adjusted for the change of struct w32font_info.
15135 (w32font_close): Don't free struct font. Adjusted for the change
15136 of struct w32font_info.
15137 (w32font_encode_char, w32font_text_extents, w32font_draw):
15138 Adjusted for the change of struct w32font_info.
15139 (w32font_draw): Likewise.
15140 (w32font_list_internal): Return a list, not vector.
15141 (w32font_open_internal): Change the 4th arg to font-object.
15142 Adjusted for the change of struct w32font_info and font-object format.
15143 (add_font_name_to_list): Don't downcase names.
15144 (w32_enumfont_pattern_entity): Make a font-entity by
15145 font_make_entity. Adjusted for the format change of font-entity.
15146 Use FONT_SET_STYLE to set a style-related font property. If a
15147 font is scalable, set avgwidth property to 0. Set font-entity
15148 property by font_put_extra.
15149 (font_matches_spec): Adjusted for the format change of font-entity.
15150 (w32_weight_table, w32_decode_weight): New variables.
15151 (w32_encode_weight): New function.
15152 (fill_in_logfont): Adjusted for the format change of font-spec.
15153 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15154 weight value.
15155 (w32font_driver): Adjusted for the change of struct font_driver.
15156
15157 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15158 conditionals. Don't check enable_font_backend. Surround non-used
15159 code by "#ifdef OLD_FONT" and "endif".
15160 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15161 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15162
15163 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15164 conditionals. Don't check enable_font_backend. Delete all codes
15165 used only when USE_FONT_BACKEND is not defined. Surround non-used
15166 code by "#ifdef OLD_FONT" and "endif".
15167
15168 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15169 (uniscribe_open): Return value changed to font-object.
15170 Adjusted for the format change of font-object.
15171 (uniscribe_otf_capability): Adjusted for the change of struct font.
15172 (add_opentype_font_name_to_list): Don't downcase names.
15173 (uniscribe_font_driver): Adjusted for the change of struct
15174 font_driver.
15175
151762008-05-13 Chong Yidong <cyd@stupidchicken.com>
15177
15178 * dispnew.c (update_frame_1): Check if tty output is still valid
15179 before flushing it.
15180
151812008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15182
15183 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15184 to Gtk+ menus.
15185
151862008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15187
15188 * dired.c (file_name_completion): Tweak the code so as to always do it
15189 in a single pass. Tighten the scope of some variables.
15190
15191 * dired.c (Qdefault_directory): New var.
15192 (file_name_completion): Use it instead of Fexpand_file_name.
15193 (syms_of_dired): Initialize it.
15194
151952008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15196
15197 * fileio.c (double_dollars): Remove dead code.
15198
151992008-05-10 Eli Zaretskii <eliz@gnu.org>
15200
15201 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15202 Mention w32-get-true-file-attributes in doc string.
15203
15204 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15205
152062008-05-09 Glenn Morris <rgm@gnu.org>
15207
15208 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15209 2008-04-23.
15210
152112008-05-09 Eli Zaretskii <eliz@gnu.org>
15212
15213 Support for reporting owner and group of each file on MS-Windows:
15214 * dired.c (stat_uname, stat_gname): New functions, with special
15215 implementation for w32.
15216 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15217
15218 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15219 (dflt_group_name): New static variable.
15220 (dflt_group): Rename from the_group.
15221 (init_user_info): Init dflt_group fields. Get user's group name
15222 from LookupAccountSid.
15223 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15224 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15225 New initialization states.
15226 (globals_of_w32): Initialize them to zero. Initialize the default
15227 group name to "None".
15228 (GetFileSecurity_Name): New global var, the name of the function
15229 to call for GetFileSecurity.
15230 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15231 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15232 (get_file_security, get_security_descriptor_owner)
15233 (get_security_descriptor_group, is_valid_sid)
15234 (get_file_security_desc, get_rid, get_name_and_id)
15235 (get_file_owner_and_group): New functions.
15236 (stat): Use get_file_security_desc and get_file_owner_and_group to
15237 report the owner and primary group of each file. Don't ignore the
15238 high 32 bits of file's size, now that st_size is 64-bit wide.
15239 Fix test when to get true file attributes.
15240 (init_user_info): Use get_rid instead of equivalent inline code.
15241 (fstat): Don't ignore the high 32 bits of file's size.
15242
152432008-05-09 Chong Yidong <cyd@stupidchicken.com>
15244
15245 * image.c (png_load): Use correct bit-depth for setting background
15246 color.
15247
152482008-05-08 Eli Zaretskii <eliz@gnu.org>
15249
15250 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15251 epa-hook.elc.
15252
152532008-05-08 Juanma Barranquero <lekktu@gmail.com>
15254
15255 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15256
152572008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15258
15259 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15260 because the original parameters are in pure storage now.
15261 (mac_window): Remove unused params. Update callers.
15262
152632008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15264
15265 * lread.c (substitute_object_recurse): Use lower-level primitives.
15266 Don't signal errors when traversing sub-char-tables.
15267 Don't loop over all the possible characters when traversing char-tables.
15268
15269 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15270 just like we do in print.c.
15271
152722008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15273
15274 * minibuf.c (Ftry_completion): Remove code left over from when we used
15275 scmp instead of Fcompare_strings.
15276
152772008-05-04 Juanma Barranquero <lekktu@gmail.com>
15278
15279 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15280
152812008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15282
15283 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15284 Create bitmap context in native byte order.
15285
15286 * macterm.c (XDrawLine)
15287 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15288 context in native byte order.
15289
152902008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15291
15292 * config.in: Regenerate.
15293
15294 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15295 New definitions for Image I/O support.
15296 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15297 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15298 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15299 (mac_data_provider_release_data, image_load_image_io)
15300 [USE_MAC_IMAGE_IO]: New functions.
15301 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15302 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15303 (init_image_func_pointer) [MAC_OSX]: Remove function.
15304 (image_load_quartz2d) [MAC_OSX]: Check availability of
15305 CGImageCreateWithPNGDataProvider at compile time.
15306 Use lowercase `false' for boolean constant.
15307 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15308 Use image_load_image_io.
15309 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15310 Don't check MyCGImageCreateWithPNGDataProvider.
15311 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15312 Don't call init_image_func_pointer.
15313
15314 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15315
15316 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15317 Make variable non-static.
15318 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15319 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15320
15321 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15322 (RED_FROM_ULONG): Mask off higher bits.
15323 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15324
15325 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15326 Include AvailabilityMacros.h.
15327 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15328 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15329
153302008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15331
15332 * chartab.c (Fset_char_table_range): If range is t, really set all
15333 chars to that value.
15334
153352008-05-03 Eli Zaretskii <eliz@gnu.org>
15336
15337 * dired.c (Ffile_attributes): Don't allow the device number become
15338 negative.
15339
153402008-05-02 Daiki Ueno <ueno@unixuser.org>
15341
15342 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15343
153442008-05-02 Juri Linkov <juri@jurta.org>
15345
15346 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15347 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15348 DEFAULT argument as a list of default values in docstrings.
15349
153502008-05-01 Chong Yidong <cyd@stupidchicken.com>
15351
15352 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15353
153542008-05-01 Martin Rudalics <rudalics@gmx.at>
15355
15356 * dispnew.c (change_frame_size_1): Preserve small windows when
15357 shrinking frames by calling set_window_height|width with third
15358 arg 2.
15359
15360 * window.h (struct window): Replace field too_small_ok by field
15361 resize_proportionally.
15362
15363 * window.c (make_window): Initialize resize_proportionally.
15364 (enlarge_window): Temporarily set resize_proportionally to make
15365 sure that shrink_windows does scale the window proportionally.
15366 (shrink_windows): When window has resize_proportionally set try
15367 to shrink it proportionally by stealing from other windows.
15368 (struct saved_window, Fset_window_configuration)
15369 (compare_window_configurations): Handle resize_proportionally.
15370 (WINDOW_TOTAL_SIZE): New macro.
15371 (window_min_size, shrink_windows, size_window): Use it.
15372 (check_min_window_sizes): Remove. Invalid values of
15373 window-min-height|width are handled by window_min_size_2 now.
15374 (size_window, Fsplit_window, enlarge_window)
15375 (adjust_window_trailing_edge, grow_mini_window): Don't call
15376 check_min_window_sizes.
15377 (window_min_size_2, window_min_size_1, window_min_size):
15378 New argument safe_p for retrieving "safe" minimum sizes.
15379 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15380 (adjust_window_trailing_edge, grow_mini_window):
15381 Adjust arguments of window_min_size... functions.
15382 (shrink_windows): Argument min_size removed. New argument
15383 safe_p allows shrinking windows to their safe minimum sizes.
15384 Calculate minimum size and decide whether a window shall be
15385 deleted for each window individually.
15386 (size_window): When nodelete_p equals 2, tell shrink_windows to
15387 delete windows only if their new minimum size is no more safe.
15388 (shrink_window_lowest_first): Call window_min_size_1 to make
15389 sure to preserve modeline of bottom-most window when resizing
15390 the minibuffer.
15391 (Fset_window_configuration, Fcurrent_window_configuration)
15392 (compare_window_configurations): Do not handle
15393 window-min-height|width any more.
15394 (syms_of_window): Clarify window-min-height|width doc-strings.
15395
153962008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15397
15398 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15399 some more. Copy some of the code from Ftry_completions.
15400 Remove special case code that dates back to initial revision when the
15401 slash was only added when necessary and that can't trigger nowadays.
15402
154032008-04-27 Kenichi Handa <handa@m17n.org>
15404
15405 * font.c (font_prop_validate): Signal `error' instead of `font'.
15406
154072008-04-29 Jason Rumney <jasonr@gnu.org>
15408
15409 * w32fns.c (Fw32_battery_status): New defun.
15410 (syms_of_w32fns): Defsubr it.
15411
154122008-04-28 Andreas Schwab <schwab@suse.de>
15413
15414 * dired.c (file_name_completion): Fix another mixing of encoded
15415 and decoded names.
15416
154172008-04-28 Juanma Barranquero <lekktu@gmail.com>
15418
15419 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15420
154212008-04-27 Juanma Barranquero <lekktu@gmail.com>
15422
15423 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15424
154252008-04-27 Andreas Schwab <schwab@suse.de>
15426
15427 * dired.c (file_name_completion): Fix inappropriate mixing of
15428 encoded and decoded names.
15429
15430 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15431
15432 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15433
154342008-04-26 Eli Zaretskii <eliz@gnu.org>
15435
15436 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15437 2008-03-31, it's not needed anymore with `struct stat' definition
15438 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15439 for the same reasons.
15440
154412008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15442
15443 * m/sparc.h: Additional redefinitions for GNU/Linux.
15444
154452008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15446
15447 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15448 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15449 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15450 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15451 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15452 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15453 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15454 Likewise.
15455
15456 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15457 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15458 (mac_ax_number_of_characters): Add externs.
15459 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15460 [USE_MAC_TSM]: Likewise.
15461 (mac_handle_text_input_event) [MAC_OSX]:
15462 Handle kEventTextInputOffsetToPos for no active input area case.
15463 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15464 (mac_handle_document_access_event)
15465 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15466 (install_application_handler) [MAC_OSX]: Register handlers for
15467 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15468 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15469 Register mac_handle_document_access_event.
15470
15471 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15472 Make functions non-static.
15473
154742008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15475
15476 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15477 (read_file_name_completion_ignore_case, insert_default_directory)
15478 (Qdefault_directory): Move to minibuffer.el.
15479 (Fread_file_name): Call the new `read-file-name' instead.
15480
154812008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15482
15483 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15484 Make function non-static.
15485 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15486 Remove function.
15487 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15488 Move to mactoolbox.c.
15489 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15490
15491 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15492 (mac_rect_make): New macro.
15493
15494 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15495 instead of float.
15496 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15497 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15498 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15499 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15500 CGRectMake.
15501 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15502 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15503 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15504 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15505 instead of WindowRef in argument type.
15506 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15507 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15508 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15509 instead of DISPLAY. All uses changed.
15510 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15511 (x_calc_absolute_position): Simplify so as not to use
15512 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15513
15514 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15515 instead of WindowRef in argument type.
15516 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15517 [TARGET_API_MAC_CARBON]: Remove externs.
15518 (create_apple_event, mac_event_parameters_to_lisp)
15519 [TARGET_API_MAC_CARBON]: Add externs.
15520
15521 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15522 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15523 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15524 is clicked.
15525 (x_activate_menubar): Remove extern for saved_menu_event_location.
15526 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15527 Move from mac.c.
15528
155292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15530
15531 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15532 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15533
155342008-04-23 Jason Rumney <jasonr@gnu.org>
15535
15536 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15537 attributes only for local files.
15538
15539 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15540 default to Qlocal.
15541
155422008-04-22 Juri Linkov <juri@jurta.org>
15543
15544 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15545 read-buffer-to-switch instead of using the letter "B".
15546
155472008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15548
15549 * fileio.c (Qdefault_directory): New variable.
15550 (Fread_file_name): Use it to pass `dir' to the completion functions.
15551
155522008-04-20 Chong Yidong <cyd@stupidchicken.com>
15553
15554 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15555
155562008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15557
15558 * keyboard.c (Vpre_help_message): Remove.
15559 (show_help_echo): Remove default C code.
15560
15561 * dired.c (directory_files_internal, file_name_completion):
15562 Only call ENCODE_FILE if the string is indeed decoded.
15563
155642008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15565
15566 * Makefile.in (TOOLKIT_DEFINES): Remove.
15567 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15568
155692008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15570
15571 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15572 (mactoolbox.o): New target.
15573
15574 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15575 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15576
15577 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15578 Use mac_set_frame_window_background instead of XSetWindowBackground.
15579 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15580 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15581 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15582 instead of SetWindowTitleWithCFString.
15583 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15584 Move function to mactoolbox.c.
15585 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15586 Use mac_set_window_modified instead of SetWindowModified.
15587 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15588 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15589 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15590 FrontNonFloatingWindow. Use mac_activate_window instead of
15591 ActivateWindow. Use mac_active_non_floating_window instead of
15592 ActiveNonFloatingWindow.
15593 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15594 Use mac_show_hourglass and mac_hide_hourglass.
15595 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15596 instead of GetGlobalMouse.
15597 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15598 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15599 Use mac_bring_window_to_front instead of BringToFront.
15600 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15601 mactoolbox.c.
15602 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15603 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15604 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15605 mactoolbox.c.
15606
15607 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15608 (XtPointer): Move typedef from macmenu.c.
15609 (enum button_type): Move enum from macmenu.c.
15610 (widget_value): Move typedef from macmenu.c.
15611 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15612 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15613 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15614 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15615 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15616 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15617 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15618 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15619 (Selection): Move typedef from macselect.c.
15620 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15621 macterm.c.
15622 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15623 (mac_is_window_collapsed, mac_bring_window_to_front)
15624 (mac_send_window_behind, mac_hide_window, mac_show_window)
15625 (mac_collapse_window, mac_front_non_floating_window)
15626 (mac_active_non_floating_window, mac_activate_window)
15627 (mac_move_window_structure, mac_move_window, mac_size_window)
15628 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15629
15630 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15631 (enum mac_menu_kind): Move enum to mactoolbox.c.
15632 (min_menu_id): Move variable to mactoolbox.c.
15633 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15634 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15635 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15636 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15637 [TARGET_API_MAC_CARBON]: Likewise.
15638 (XtPointer): Move typedef to macgui.h.
15639 (enum button_type): Move enum to macgui.h.
15640 (widget_value): Move typedef to macgui.h.
15641 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15642 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15643 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15644 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15645 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15646 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15647 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15648 (popup_activated_flag): Make variable non-static.
15649 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15650 (add_menu_item, fill_menu, dispose_menus):
15651 Move functions to mactoolbox.c.
15652 (restore_show_help_function, menu_target_item_handler)
15653 (install_menu_target_item_handler, mac_handle_dialog_event)
15654 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15655 [TARGET_API_MAC_CARBON]: Likewise.
15656 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15657 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15658 (find_and_call_menu_selection, name_is_separator): Make function
15659 non-static.
15660 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15661 to mactoolbox.c.
15662 (set_frame_menubar): Don't call install_menu_quit_handler.
15663 (menu_item_selection): New variable.
15664 (mac_menu_show): Use create_and_show_popup_menu.
15665 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15666 selection but set variable menu_item_selection. All uses changed.
15667 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15668 Call install_menu_quit_handler. Move to mactoolbox.c.
15669
15670 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15671 (Selection): Move typedef to macgui.h.
15672 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15673 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15674 Make variables non-static.
15675 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15676 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15677 Make functions non-static.
15678 (Vmac_service_selection) [MAC_OSX]: Likewise.
15679 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15680 (mac_valid_selection_target_p, mac_clear_selection)
15681 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15682 (mac_put_selection_value, mac_selection_has_target_p)
15683 (mac_get_selection_value, mac_get_selection_target_list)
15684 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15685 Move functions to mactoolbox.c.
15686 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15687 Likewise.
15688 (copy_scrap_flavor_data, mac_handle_service_event)
15689 (install_service_handler) [MAC_OSX]: Likewise.
15690 (syms_of_macselect) <Vmac_dnd_known_types>:
15691 Use mac_dnd_default_known_types.
15692
15693 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15694 Move to mactoolbox.c.
15695 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15696 (Fx_selection_owner_p): Add EXFUN.
15697 (install_window_handler, remove_window_handler, XSetWindowBackground):
15698 Remove externs.
15699 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15700 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15701 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15702 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15703 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15704 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15705 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15706 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15707 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15708 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15709 (mac_valid_selection_target_p, mac_clear_selection)
15710 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15711 (mac_put_selection_value, mac_selection_has_target_p)
15712 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15713 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15714 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15715 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15716 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15717 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15718 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15719 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15720 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15721
15722 * mactoolbox.c: New file.
15723
157242008-04-18 Jason Rumney <jasonr@gnu.org>
15725
15726 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15727
157282008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15729
15730 * character.c (Fmultibyte_char_to_unibyte):
15731 Return latin1 chars unchanged.
15732
15733 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15734 relocated if it points to `name'.
15735
157362008-04-17 Kenichi Handa <handa@m17n.org>
15737
15738 * data.c (Faset): Allow setting a multibyte character in an
15739 ASCII-only unibyte string.
15740
15741 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15742
157432008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15744
15745 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15746 done in config.h.
15747
157482008-04-16 Juanma Barranquero <lekktu@gmail.com>
15749
15750 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15751 (Fchar_direction): Add usage in the docstring.
15752
157532008-04-15 Chong Yidong <cyd@stupidchicken.com>
15754
15755 * keyboard.c (read_key_sequence): Remove always-true checks.
15756
157572008-04-14 Jason Rumney <jasonr@gnu.org>
15758
15759 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15760 compatibility struct, for better underline positioning.
15761
157622008-04-13 David Hansen <david.hansen@gmx.net>
15763
15764 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15765 string.
15766
157672008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15768
15769 * m/hp800.h (XUINT, XSET): Remove.
15770
157712008-04-12 Juanma Barranquero <lekktu@gmail.com>
15772
15773 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15774 previous change.
15775
157762008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15777
15778 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15779 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15780
157812008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15782
15783 * keymap.h (map_keymap_canonical): Declare.
15784 * xmenu.c (single_keymap_panes): Use it.
15785
157862008-04-11 Glenn Morris <rgm@gnu.org>
15787
15788 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15789 set the target's value to that of the alias.
15790
157912008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15792
15793 * term.c (set_tty_color_mode): Left over typo.
15794
157952008-04-10 Michael Albinus <michael.albinus@gmx.de>
15796
15797 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15798 only after check for file name handler functions. Signal, when
15799 native functionality is not supported.
15800 (syms_of_fileio): Declare it unconditionally.
15801
158022008-04-10 Jason Rumney <jasonr@gnu.org>
15803
15804 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15805 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15806
15807 * w32.c (logon_network_drive): Also logon to remote drives that
15808 are mapped to drive letters.
15809
158102008-04-10 Glenn Morris <rgm@gnu.org>
15811
15812 * xdisp.c (truncate-partial-width-windows): Doc fix.
15813
158142008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15815
15816 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15817 Move functions to minibuffer.el.
15818 (syms_of_fileio): Don't declare them.
15819
158202008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15821
15822 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15823 (syms_of_minibuf): Remove its initialization.
15824
15825 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15826
158272008-04-09 Juanma Barranquero <lekktu@gmail.com>
15828
15829 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15830
158312008-04-09 Jason Rumney <jasonr@gnu.org>
15832
15833 * makefile.w32-in (distclean): Delete makefile too.
15834 (maintainer-clean): New target.
15835
15836 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15837
15838 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15839 for new font backend and composite cases.
15840
158412008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15842
15843 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15844 Most of the code moved to run_timers.
15845 (do_pending_atimers): Call run_timers.
15846 (run_timers): New function.
15847
15848 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15849 run atimers.
15850
15851 * process.c (wait_reading_process_output): The same as above.
15852
158532008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15854
15855 * minibuf.c (last_exact_completion): Remove variable.
15856 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15857 (complete_and_exit_1, complete_and_exit_2)
15858 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15859 (Fdisplay_completion_list, display_completion_list_1)
15860 (Fminibuffer_completion_help, Fself_insert_and_exit)
15861 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15862 minibuffer.el.
15863 (syms_of_minibuf): Remove corresponding initializations.
15864
15865 * keyboard.c (Qdeactivate_mark): New var.
15866 (command_loop_1): Use it to call `deactivate-mark'.
15867 (syms_of_keyboard): Initialize it.
15868
15869 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15870 to another frame.
15871 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15872 Don't call set_tty_color_mode.
15873 (store_frame_param): Reset previous_frame rather than call
15874 set_tty_color_mode.
15875 * term.c (set_tty_color_mode): Rewrite.
15876 * dispextern.h (set_tty_color_mode): New type.
15877 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15878
158792008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15880
15881 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15882 for generic chars, which do not exist any more in emacs-unicode.
15883
158842008-04-08 Michael Albinus <michael.albinus@gmx.de>
15885
15886 * coding.c (detect_coding_emacs_mule)
15887 (Ffind_operation_coding_system): Fix typo.
15888
158892008-04-08 Jason Rumney <jasonr@gnu.org>
15890
15891 * w32uniscribe.c (SNAME): Extract only symbol name.
15892
15893 * w32font.h (struct w32_metric_cache): New struct.
15894 (w32font_info): Use it.
15895 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15896 (CACHE_BLOCKSIZE): New constants.
15897
15898 * w32font.c (Qja, Qko, Qzh): New symbols.
15899 (syms_of_w32font): Initialise them.
15900 (font_matches_spec): Use them to filter by language.
15901 (recompute_cached_metrics): Remove function.
15902 (compute_metrics, clear_cached_metrics): New functions.
15903 (w32font_encode_char): Use them to manage metric cache.
15904 (w32font_text_extents): Cache metrics for all glyphs on demand.
15905 Delay converting glyph indices to WORD until needed.
15906 (w32font_open_internal): Initialize metric cache to empty.
15907 (registry_to_w32_charset): Charset should always be a symbol.
15908 (fill_in_logfont, list_all_matching_fonts): Family should
15909 always be a symbol.
15910
159112008-04-06 Jason Rumney <jasonr@gnu.org>
15912
15913 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15914 Give up if glyph indices not supported. Use uniscribe obtained
15915 ABC widths for individual metrics. Map glyph clusters back to
15916 characters using fClusterStart flag. Return number of glyphs
15917 produced, not chars processed.
15918 (uniscribe_shape): Map char at FROM to current glyph.
15919
159202008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15921
15922 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15923 Use SetMenuItemHierarchicalMenu.
15924
159252008-04-05 Jason Rumney <jasonr@gnu.org>
15926
15927 * image.c (pbm_load): Allow color values up to 65535.
15928 Throw an error if max_color_idx is outside the supported range.
15929 Report an error when image size is invalid.
15930 Read two bytes at a time when raw images have max_color_idx above 255.
15931
aac0c6e3
MR
159322008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15933
15934 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15935 append "CCL: Quitted" when the CCL program is quitted.
15936 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15937
15938 * ccl.h (struct ccl_program): New member quit_silently.
15939
159402008-04-05 Chong Yidong <cyd@stupidchicken.com>
15941
15942 * search.c (compile_pattern_1): Treat non-nil and non-string of
15943 search-spaces-regexp as nil.
15944
15945 * minibuf.c (Fassoc_string): Tweak docstring.
15946
159472008-04-05 Eli Zaretskii <eliz@gnu.org>
15948
15949 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15950 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15951 2008-03-14 to force inode be positive.
15952
15953 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15954 _S_* ones, since we now use our own sys/stat.h.
15955 (stat, fstat): Don't mangle the inode number.
15956 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15957
159582008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15959
15960 * frame.h (struct frame): Give one more bit to `visible' since we use
15961 values larger than 1 to indicate obscured frames on ttys.
15962
15963 * keymap.c (Qkeymap_canonicalize): New var.
15964 (Fmap_keymap_internal): New fun.
15965 (describe_map): Use keymap-canonicalize.
15966
15967 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15968 (Fundo_boundary): Set them.
15969 (syms_of_undo): Initialize them.
15970 (record_point): Use them instead of last_point_position*.
15971 (last_undo_buffer): Change type.
15972
159732008-04-04 Jason Rumney <jasonr@gnu.org>
15974
15975 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15976 (recompute_cached_metrics): Don't set ascent and descent per char.
15977
15978 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15979 (uniscribe_check_otf): Add GC protection before consing.
15980 Rearrange loop for counting features.
15981
159822008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15983
15984 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15985 buffer with byte-size of source buffer.
15986
159872008-04-03 Chong Yidong <cyd@stupidchicken.com>
15988
15989 * callint.c (Fcall_interactively): Handle temporary region even
15990 when shift-select-mode is off.
15991
159922008-04-03 Jason Rumney <jasonr@gnu.org>
15993
15994 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15995
159962008-04-03 Kenichi Handa <handa@m17n.org>
15997
15998 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15999 (CATEGORY_MASK_UTF_16): Likewise.
16000 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
16001 binary file.
16002 (detect_coding): Add null-byte detection for a binary file.
16003 (detect_coding_system): Likewise.
16004
160052008-04-03 Jason Rumney <jasonr@gnu.org>
16006
16007 * w32uniscribe.c: New file.
16008
16009 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
16010
16011 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
16012
16013 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
16014 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
16015 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
16016 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
16017 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
16018 (Qphonetic): New symbols.
16019 (syms_of_w32font): Initialize them.
16020 (font_supported_scripts): Use them.
16021 (w32font_list_family): List all charsets.
16022 (w32font_text_extents, recompute_cached_metrics): Fix metric
16023 calculations.
16024 (w32_enumfont_pattern_entity): Make full_type a DWORD.
16025 Give opentype fonts their own format.
16026 (font_matches_spec): New arguments backend and logfont.
16027 Handle :otf spec for uniscribe backend.
16028 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
16029 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
16030
16031 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
16032 font backend.
16033 (globals_of_w32fns): Initialize uniscribe font backend.
16034
16035 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
16036 dependencies.
16037 (w32uniscribe.$(O)): New file to build.
16038 (FONT_OBJ): Include w32uniscribe.$(O).
16039 (LIBS): Add uniscribe libraries.
16040
16041 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
16042
160432008-04-02 Chong Yidong <cyd@stupidchicken.com>
16044
16045 * callint.c (Vshift_select_mode): New var.
16046 (Finteractive): Document new ^ spec.
16047 (Fcall_interactively): Call handle-shift-selection if the ^ spec
16048 is present.
16049
16050 * keyboard.c (Vthis_command_keys_shift_translated): New var.
16051 (command_loop_1): Avoid running the direct display versions of
16052 forward-char and backward-char if shift-selection may occur.
16053 (read_key_sequence): Set Vthis_command_keys_shift_translated if
16054 shift-translation takes place.
16055
16056 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
16057 avoid clobbering by define-minor-mode.
16058
16059 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
16060 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
16061
16062 * syntax.c (Fforward_word): Add ^ interactive spec.
16063
16064 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
16065 (Fscroll_right): Add ^ interactive spec.
16066
160672008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
16068
16069 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
16070
16071 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
16072
16073 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
16074
160752008-03-31 Juri Linkov <juri@jurta.org>
16076
16077 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
16078
160792008-03-30 Jan Djärv <jan.h.d@swipnet.se>
16080
16081 * gtkutil.c (xg_set_geometry): Fix indentation.
16082 (xg_resize_outer_widget): Remove.
16083 (x_wm_size_hint_off): Fix indentation.
16084 (xg_frame_set_char_size): Call flush_and_sync after
16085 gtk_window_resize.
16086 (x_wm_set_size_hint): Pass NULL as geometry window to
16087 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
16088 Add menu bar and tool bar height to base height.
16089 (xg_update_frame_menubar, free_frame_menubar)
16090 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
16091 (update_frame_tool_bar, free_frame_tool_bar):
16092 Change xg_resize_outer_widget to xg_frame_set_char_size.
16093
160942008-03-30 Michael Albinus <michael.albinus@gmx.de>
16095
16096 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
16097 (Fdbus_call_method): New parameter TIMEOUT.
16098 (dbus-send-signal): Optimize UNGCPRO call.
16099
161002008-03-29 Juri Linkov <juri@jurta.org>
16101
16102 * window.c (Fdisplay_buffer): Move call to
16103 Vsplit_window_preferred_function out of conditions that check
16104 if window is eligible for vertical splitting.
16105 When Vsplit_window_preferred_function is non-nil, call it and use
16106 its non-nil return value as window. Otherwise, continue doing
16107 vertical splitting using Fsplit_window with arg horflag=nil.
16108 (syms_of_window) <Vsplit_window_preferred_function>: Change the
16109 default value from `split-window' to nil.
16110
161112008-03-29 Juri Linkov <juri@jurta.org>
16112
16113 * callint.c (Fcall_interactively): Revert 2008-03-16 change
16114 for interactive code letters 'b' and 'B'.
16115
161162008-03-29 Eli Zaretskii <eliz@gnu.org>
16117
16118 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
16119 multibyte string.
16120
161212008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
16122
16123 * keyboard.c (pending_funcalls): New var.
16124 (timer_check): Run it.
16125 (syms_of_keyboard): Initialize it.
16126 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
16127 (Vdelete_terminal_functions): New vars.
16128 (syms_of_terminal): Initialize them.
16129 (Fdelete_terminal): Run delete-terminal-functions.
16130 * xdisp.c (safe_eval): Rewrite.
16131 (safe_call2): New fun.
16132 * frame.c (Qdelete_frame_functions): New var.
16133 (syms_of_frame): Initialize it.
16134 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
16135 * lisp.h (safe_call2, pending_funcalls): Declare.
16136
161372008-03-28 Andreas Schwab <schwab@suse.de>
16138
16139 * indent.c (Fmove_to_column): Move declaration before statements.
16140
161412008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
16142
16143 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
16144 (struct frame): Use bit fields for boolean vars.
16145
16146 * process.c (server_accept_connection): Simplify naming.
16147 (emacs_get_tty_pgrp): Use SDATA.
16148
16149 * coding.c (decode_coding_object): Fix last change.
16150
161512008-03-27 Jason Rumney <jasonr@gnu.org>
16152
16153 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16154
161552008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16156
16157 * charset.c (Fdefine_charset_internal): Change the way of
16158 registering charsets in Vcharset_order_list.
16159 (syms_of_charset): Make the charset `eight-bit' supplementary.
16160
161612008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16162
16163 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16164 operations, to avoid having the difference between pointers
16165 overflow.
16166
161672008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16168
16169 * indent.c (check_display_width): New fun.
16170 (scan_for_column): Use it.
16171
16172 * data.c (syms_of_data): Mark most-positive-fixnum and
16173 most-negative-fixnum as constants.
16174
16175 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16176
16177 * indent.c (scan_for_column): Extract from current_column_1.
16178 Merge with the same code from Fmove_to_column.
16179 (current_column_1, Fmove_to_column): Use it.
16180
161812008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16182
16183 * keymap.c (map_keymap_internal): New fun.
16184 (map_keymap): Use it.
16185 (Fmap_keymap_internal): New fun.
16186 (Fmap_keymap): Remove left-out test from before make_save_value.
16187
16188 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16189
16190 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16191 Use XCAR/XCDR.
16192
16193 * process.h (struct Lisp_Process): Remove filter_multibyte.
16194 * process.c (QCfilter_multibyte): Remove.
16195 (setup_process_coding_systems): Don't use filter_multibyte.
16196 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16197 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16198 (Fset_process_filter_multibyte): Change the coding-system to
16199 approximate the previous behavior.
16200 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16201 coding-system.
16202
16203 * coding.c (decode_coding_object): When not decoding into a buffer,
16204 obey the coding system's preference of (uni|multi)byte.
16205
162062008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16207
16208 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16209 every char is changed and has a different byte-length.
16210 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16211 Fix int -> EMACS_INT.
16212
162132008-03-23 David Hansen <david.hansen@gmx.net>
16214
16215 * dbusbind.c (xd_read_message): Remove extra copying of message
16216 strings. Check for NULL `interface' or `member'.
16217
162182008-03-22 Eli Zaretskii <eliz@gnu.org>
16219
16220 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16221 cFileName a file name that includes `?' characters, use the 8+3
16222 alias in cAlternateFileName instead.
16223
162242008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16225
16226 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16227
162282008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16229
16230 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16231 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16232 work on current_buffer only instead (that was already the case
16233 for some of the code anyway).
16234 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16235 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16236 (SET_PT, SET_PT_BOTH): Adjust.
16237 * intervals.h (set_point, temp_set_point, set_point_both)
16238 (temp_set_point_both): Remove redundant declarations.
16239
162402008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16241
16242 * fileio.c (Finsert_file_contents):
16243 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16244 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16245 when buffer != current_buffer anyway.
16246
162472008-03-20 Andreas Schwab <schwab@suse.de>
16248
16249 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16250 as default.
16251
162522008-03-19 Jason Rumney <jasonr@gnu.org>
16253
16254 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16255 (syms_of_w32fns): Initialize them.
16256 (HOURGLASS_ID): New constant.
16257 (x_window_to_frame): Don't check hourglass_window.
16258 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16259 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16260 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16261 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16262 Only change the cursor if hourglass is not active.
16263 (Fx_create_frame): Initialize frame's current_cursor.
16264 (hourglass_atimer): Remove.
16265 (hourglass_started): New function.
16266 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16267 (show_hourglass): Adapt to w32, changing argument to frame.
16268
16269 * w32term.h (struct w32_output): Remove hourglass_window.
16270 Add current_cursor.
16271
16272 * eval.c (call_debugger, Fsignal):
16273 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16274 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16275 (Fexecute_extended_command, cancel_hourglass_unwind):
16276 * minibuf.c (read_minibuf):
16277 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16278
162792008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16280
16281 * window.c (run_funs): New fun.
16282 (run_window_configuration_change_hook): Use it to run the buffer-local
16283 and the global part of the hook.
16284
16285 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16286 (unwind_format_mode_line): Restore selected window.
16287 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16288
162892008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16290
16291 * editfns.c (Fchar_equal): Check they are valid characters.
16292
16293 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16294
162952008-03-17 Andreas Schwab <schwab@suse.de>
16296
16297 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16298 against a charset.
16299
16300 * lisp.h (Fbuffer_list): Declare.
16301
163022008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16303
aac0c6e3
MR
16304 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16305 handlebox_widget is != 0.
16306
163072008-03-16 Juri Linkov <juri@jurta.org>
16308
16309 * callint.c (Fcall_interactively): For interactive code letters
16310 'b' and 'B' put the buffer list into the list of default "future"
16311 values of the minibuffer.
16312
163132008-03-16 Andreas Schwab <schwab@suse.de>
16314
16315 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16316 modifiers.
16317
16318 * regex.c (re_match_2_internal): Correct matching of a charset
16319 against latin-1 characters.
16320
163212008-03-16 Kenichi Handa <handa@m17n.org>
16322
16323 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16324 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16325 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16326 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16327 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16328 CHAR_STRING_ADVANCE.
16329 (produce_chars): Fix for the case that the source and the
16330 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16331 instead of CHAR_STRING_ADVANCE.
16332 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16333 STRING_CHAR_ADVANCE.
16334
163352008-03-15 Andreas Schwab <schwab@suse.de>
16336
16337 * regex.c (re_match_2_internal): Correct matching of eight bit
16338 characters in unibyte strings.
16339
163402008-03-15 Martin Rudalics <rudalics@gmx.at>
16341
16342 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16343 at end of range when it coincides with the end of the buffer.
16344
163452008-03-14 Eli Zaretskii <eliz@gnu.org>
16346
16347 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16348
16349 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16350
163512008-03-14 Jason Rumney <jasonr@gnu.org>
16352
16353 * editfns.c (initial_tz): New variable.
16354 (syms_of_editfns): Initialize it.
16355 (Fset_time_zone_rule): Set it when first called.
16356 Use it when TZSTRING is nil.
16357
16358 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16359 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16360 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16361 (globals_of_w32fns): Initialize them.
16362 (compute_tip_xy): Use them to position tooltips.
16363
163642008-03-14 Glenn Morris <rgm@gnu.org>
16365
16366 * emacs.c (main): Revert previous change.
16367 (standard_args): Revert -internal-script back to -scriptload,
16368 and remove the long-option form.
16369
163702008-03-13 Glenn Morris <rgm@gnu.org>
16371
16372 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16373 Remove option -enable-font-backend.
16374
163752008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16376
16377 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16378
163792008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16380
16381 * xterm.c (x_connection_closed): For GTK: If this is the last
16382 terminal just exit without closing the display.
16383
163842008-03-11 Jason Rumney <jasonr@gnu.org>
16385
16386 * w32font.c (w32font_full_name): Use floor to round.
16387
f0131492 163882008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16389
16390 * sound.c (alsa_configure): Declare vol at beginning of block.
16391
16392 * fontset.c (Ffontset_info): Remove extra semicolon.
16393
163942008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16395
16396 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16397 size of resulting string.
16398
163992008-03-10 Jason Rumney <jasonr@gnu.org>
16400
16401 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16402
164032008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16404
16405 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16406 Don't pretend as if characters with display property haven't been
16407 consumed for string-replacing-string case.
16408
164092008-03-08 Kim F. Storm <storm@cua.dk>
16410
16411 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16412 (get_next_display_element, next_element_from_string)
16413 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16414
164152008-03-08 Andreas Schwab <schwab@suse.de>
16416
16417 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16418
164192008-03-06 Jason Rumney <jasonr@gnu.org>
16420
16421 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16422 when charset not specified. Only translate ANSI to unicode when
16423 font_type is truetype.
16424 (w32font_coverage_ok): New function.
16425 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16426
164272008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16428
16429 * lread.c (Fread_char): Resolve modifiers.
16430 (Fread_char_exclusive): Likewise.
16431
16432 * character.c (char_resolve_modifier_mask): New function.
16433 (char_string): Use char_resolve_modifier_mask.
16434 (Fchar_resolve_modifiers): New function.
16435 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16436 function.
16437
164382008-03-04 Jason Rumney <jasonr@gnu.org>
16439
16440 * makefile.w32-in: Always include w32font.c in the build.
16441 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16442
164432008-03-04 Andreas Schwab <schwab@suse.de>
16444
16445 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16446 (versionclean): Likewise.
16447
164482008-03-04 Juanma Barranquero <lekktu@gmail.com>
16449
16450 * .cvsignore: Add oo.
16451
164522008-03-03 Andreas Schwab <schwab@suse.de>
16453
16454 * coding.c (decode_coding_object): Inhibit gap shrinking while
16455 decoding in place.
16456
164572008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16458
16459 * w32term.c: Remove unused include "gnu.h".
16460 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16461
16462 * gnu.h: Rename to ...
16463 * emacs-icon.h: ... this.
16464 * xterm.c: Use emacs-icon.h instead of gnu.h.
16465 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16466
164672008-03-03 Juanma Barranquero <lekktu@gmail.com>
16468
16469 * w32font.c: Include math.h.
16470
164712008-03-03 Jason Rumney <jasonr@gnu.org>
16472
16473 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16474 Compute options separately.
16475 (w32font_open_internal): Set glyph_idx before caching metrics.
16476
16477 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16478 Define if system headers don't.
16479 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16480 (w32font_encode_char): Don't declare here.
16481
16482 * w32font.c (Quniscribe, QCformat): New symbols.
16483 (syms_of_w32font): Define them.
16484 (w32font_has_char): Indicate uncertainty.
16485 (w32font_encode_char): Encode as glyph point. Make static.
16486 (recompute_cached_metrics): New function.
16487 (w32font_open_internal): Use it. Set font to use glyph points
16488 initially. Set format based on type of font.
16489 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16490 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16491 on it. Set format based on information available here.
16492 (add_font_entity_to_list): Identify backend based on opentype_only.
16493
164942008-03-02 Andreas Schwab <schwab@suse.de>
16495
16496 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16497
16498 * coding.c (decode_coding_big5, produce_chars):
16499 Fix typos in last change.
16500
165012008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16502
16503 * gnu.h: New icon.
16504
165052008-03-02 Kenichi Handa <handa@m17n.org>
16506
16507 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16508 `dos', don't decode '\r' if that is the last in the source.
16509 (decode_coding_utf_16, decode_coding_emacs_mule)
16510 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16511 (decode_coding_raw_text, decode_coding_charset): Likewise.
16512 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16513
165142008-03-01 Jason Rumney <jasonr@gnu.org>
16515
16516 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16517
165182008-03-01 Kim F. Storm <storm@cua.dk>
16519
16520 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16521
165222008-03-01 Jason Rumney <jasonr@gnu.org>
16523
16524 * w32font.c (w32font_full_name): New function.
16525 (w32font_open_internal): Use it.
16526
165272008-03-01 Kim F. Storm <storm@cua.dk>
16528
16529 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16530
165312008-03-01 Jason Rumney <jasonr@gnu.org>
16532
16533 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16534
165352008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16536
16537 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16538 xg_frame_resized when the event is for the edit widget.
16539
16540 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16541
16542 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16543 set_char_size.
16544 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16545 operations on widgets here. Just set frame size if needed.
16546 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16547 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16548 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16549 the whole frame.
16550 (xg_create_tool_bar): Move attachment of the tool bar to
16551 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16552 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16553
165542008-03-01 Jason Rumney <jasonr@gnu.org>
16555
16556 * w32fns.c (w32_msg_pump): Disable debug code.
16557
165582008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16559
16560 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16561
165622008-02-29 Chong Yidong <cyd@stupidchicken.com>
16563
16564 * xdisp.c (next_overlay_string): Don't set
16565 overlay_strings_at_end_processed_p if we're currently reading from
16566 a display string.
16567
165682008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16569
16570 * xdisp.c (get_overlay_strings_1): Fix typo.
16571
165722008-02-29 Chong Yidong <cyd@stupidchicken.com>
16573
16574 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16575
165762008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16577
16578 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16579
16580 * xdisp.c (display_mode_element): Cancel the previous change.
16581 (decode_mode_spec): Likewise.
16582 (handle_auto_composed_prop): Don't make composition if it->string
16583 is a string.
16584
165852008-02-27 Kim F. Storm <storm@cua.dk>
16586
16587 * lisp.h (GLYPH): Change type from int to struct with separate char
16588 and face_id members.
16589 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16590 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16591 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16592 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16593 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16594 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16595 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16596 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16597 handle new Lisp glyph code encoding, either an integer or a cons.
16598
16599 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16600 (GLYPH_ALIAS): Delete.
16601 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16602 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16603 (GLYPH_FROM_CHAR): Replace macro by ...
16604 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16605
16606 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16607 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16608 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16609 (GLYPH_INVALID_P): New macro.
16610 (spec_glyph_lookup_face): Update prototype.
16611
16612 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16613 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16614 new glyph code encoding.
16615 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16616 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16617
16618 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16619 Adapt to new glyph type and new glyph code encoding.
16620
16621 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16622
16623 * indent.c (current_column, current_column_1, Fmove_to_column)
16624 (compute_motion): Adapt to new glyph code encoding.
16625
16626 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16627
166282008-02-27 Chong Yidong <cyd@stupidchicken.com>
16629
16630 * process.c (wait_reading_process_output): Check for window
16631 changes caused by timers.
16632 Suggested by Johan Bockgård.
16633
166342008-02-27 Glenn Morris <rgm@gnu.org>
16635
16636 * emacs.c (USAGE1): Add `--disable-font-backend'.
16637
166382008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16639
16640 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16641 is made to the buffer.
16642
166432008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16644
16645 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16646 (face_at_string_position):
16647 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16648 (face_at_string_position):
16649 * xdisp.c (display_string, next_overlay_change):
16650 * buffer.h (overlays_at):
16651 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16652 Update callers.
16653
166542008-02-26 Chong Yidong <cyd@stupidchicken.com>
16655
16656 * editfns.c (Fformat): Doc fix.
16657
166582008-02-26 Juanma Barranquero <lekktu@gmail.com>
16659
16660 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16661 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16662 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16663
166642008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16665
16666 * buffer.c (Fbuffer_swap_text): New function.
16667 (syms_of_buffer): Defsubr it.
16668
166692008-02-25 Chong Yidong <cyd@stupidchicken.com>
16670
16671 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16672
166732008-02-25 Jason Rumney <jasonr@gnu.org>
16674
16675 * w32font.c (w32font_draw): Draw one character at a time when padding.
16676
166772008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16678
16679 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16680 Handle a nil arg. Use run_window_configuration_change_hook.
16681 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16682 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16683 Use run_window_configuration_change_hook.
16684
166852008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16686
16687 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16688 1-pixel width.
16689
166902008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16691
16692 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16693 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16694 if the glyph in the font is zero pixel with.
16695
16696 * dispextern.h (struct glyph_string): New member padding_p.
16697
16698 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16699
16700 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16701
16702 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16703
16704 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16705
16706 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16707
167082008-02-25 Jason Rumney <jasonr@gnu.org>
16709
16710 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16711
167122008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16713
16714 Allow fine-grained image-cache flushing.
16715 * dispextern.h (struct image): Add `dependencies' field.
16716 (clear_image_caches): Change arg to Lisp_Object.
16717 * image.c (make_image): Initialize `dependencies' field.
16718 (clear_image_cache): Change arg to allow fine-grained flushing.
16719 Perform the flush even if image-cache-eviction-delay is nil.
16720 (clear_image_caches): Change arg to Lisp_Object.
16721 (Fclear_image_cache): Expand meaning of the argument.
16722 (mark_image): Mark `dependencies' field.
16723 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16724 (lface_hash): Use XHASH rather than XFASTINT.
16725 (face_at_buffer_position): Fix int -> EMACS_INT position.
16726 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16727 (select_frame_for_redisplay): Remove code duplication.
16728 (redisplay_internal): Adapt arg to call to clear_image_caches.
16729
167302008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16731
16732 * s/vms4-0.h:
16733 * s/vms4-2.h:
16734 * s/vms4-4.h:
16735 * s/vms5-5.h: Remove, unused.
16736
16737 * s/irix5-2.h:
16738 * s/irix6-0.h:
16739 * s/riscos5.h:
16740 * s/mach-bsd4-3.h:
16741 * m/mips4.h: Remove files for obsolete systems.
16742
16743 * Makefile.in:
16744 * filelock.c:
16745 * unexmips.c:
16746 * m/hp9000s300.h:
16747 * m/iris4d.h:
16748 * s/aix3-1.h:
16749 * s/hpux.h:
16750 * s/msdos.h:
16751 * s/usg5-0.h:
16752 * s/usg5-2-2.h:
16753 * s/usg5-2.h:
16754 * s/usg5-3.h: Remove references to obsolete variables.
16755
16756 * s/irix5-0.h: Remove, move all the contents ...
16757 * s/irix6-5.h: ... here. Simplify.
16758 * config.in: Regenerate.
16759
167602008-02-24 Jason Rumney <jasonr@gnu.org>
16761
16762 * w32term.c (x_draw_glyph_string_background): Clear the background
16763 manually when cleartype is in use.
16764 (x_draw_glyph_string_foreground): Draw text transparently when
16765 cleartype is in use.
16766
16767 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16768 a font into it unless we have to.
16769
167702008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16771
16772 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16773 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16774
aac0c6e3
MR
167752008-02-18 Jason Rumney <jasonr@gnu.org>
16776
16777 * w32fns.c (Fw32_shell_execute): Encode parameters.
16778
167792008-02-09 Eli Zaretskii <eliz@gnu.org>
16780
16781 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16782
167832008-02-05 Juanma Barranquero <lekktu@gmail.com>
16784
16785 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16786
167872008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16788
16789 * xterm.c (x_set_offset): Don't change the gravity if
16790 CHANGE_GRAVITY is -1.
16791
167922008-02-23 Chong Yidong <cyd@stupidchicken.com>
16793
16794 * fileio.c (auto_save_error_occurred): New var.
16795 (auto_save_error): Set it.
16796 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16797 error occurred.
16798
167992008-02-23 Eli Zaretskii <eliz@gnu.org>
16800
16801 * w32.c (globals_of_w32): Add initializations for
16802 g_b_init_get_sid_sub_authority and
16803 g_b_init_get_sid_sub_authority_count.
16804
168052008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16806
16807 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16808 (font_parse_xlfd): Use them for sanity check.
16809 (Finternal_set_font_style_table): Make sure the table is bijective.
16810
16811 Consolidate the image_cache to the terminal struct.
16812 * termhooks.h (P_): Remove redundant def.
16813 (struct terminal): New field `image_cache'.
16814 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16815 of FRAME_X_IMAGE_CACHE.
16816 * xterm.h (struct x_display_info): Remove image_cache field.
16817 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16818 * w32term.h (struct w32_display_info): Remove image_cache field.
16819 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16820 * macterm.h (struct mac_display_info): Remove image_cache field.
16821 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16822 * xterm.c (x_term_init):
16823 * w32term.c (w32_term_init):
16824 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16825 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16826 Remove declarations.
16827 (clear_image_caches, mark_image_cache): New declarations.
16828 * xfaces.c (clear_face_cache):
16829 * xdisp.c (redisplay_internal): Use clear_image_caches.
16830 * image.c (clear_image_cache): Don't check that a frame is on
16831 a window-system before checking if it shares the same cache.
16832 (clear_image_caches): New function.
16833 (Fclear_image_cache): Use it.
16834 (mark_image): Move from allo.c.
16835 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16836 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16837 (mark_object): Don't call mark_image_cache for frames.
16838 (mark_terminals): Call mark_image_cache.
16839
16840 * lisp.h (Fdelete_terminal): Declare.
16841
16842 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16843 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16844 wrong_type_argument.
16845
168462008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16847
16848 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16849 malayalam.el, and tamil.el. Add sinhala.el.
16850
168512008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16852
16853 * xterm.c (x_connection_closed): Consolidate identical tests.
16854 (x_delete_terminal): Don't crash if called via x_connection_closed.
16855
168562008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16857
16858 * xdisp.c (decode_mode_spec): New arg string.
16859 (display_mode_element): Adjust for the above change.
16860
168612008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16862
16863 * callint.c (Fcall_interactively): Use AREF.
16864
168652008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16866
16867 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16868
168692008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16870
16871 * xfns.c (Fx_show_tip): Set string to " " if empty.
16872
168732008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16874
16875 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16876 with Qt.
16877
168782008-02-17 Kenichi Handa <handa@m17n.org>
16879
16880 * ftfont.c (ftfont_shape): Return Lispy number.
16881
16882 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16883 for GCs.
16884 (Finternal_set_font_selection_order): Call font_update_sort_order
16885 only when enable_font_backend is set.
16886 (realize_x_face): Set face->font_info to that of default face only
16887 when enable_font_backend is set.
16888
16889 * xdisp.c (handle_composition_prop): Set it->c to the fist
16890 character of the composed region.
16891 (fill_composite_glyph_string): Set base_face->font_info to
16892 s->font_info. Get a face for ascii from base_face->ascii_face.
16893 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16894 with a face already decided.
16895 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16896 non-negative.
16897 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16898 call font_prepare_composition unconditionally.
16899
16900 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16901
16902 * xterm.h (struct x_display_info): New member font.
16903
16904 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16905 (x_set_mouse_face_gc, x_new_font): Likewise.
16906 (x_term_init): Setup display_info->font.
16907 (x_delete_terminal): Free display_info->font.
16908
16909 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16910
16911 * ftxfont.c (ftxfont_default_fid): Delete it.
16912 (ftxfont_open): Set xfont->fid to 0.
16913 (ftxfont_end_for_frame): Clear data specific to the frame and the
16914 font-driver.
16915
16916 * xftfont.c (xftfont_default_fid): Delete it.
16917 (xftfont_open): Set xfont->fid to 0.
16918
16919 * fontset.c (FONTSET_OBJLIST): New macro.
16920 (fontset_find_font): Update font-object list of the fontset.
16921 (free_realized_fontset): New function.
16922 (free_face_fontset): Call free_realized_fontset.
16923 (Ffont_info): Call font_close_object only when enable_font_backend
16924 is set.
16925
16926 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16927 [HAVE_NTGUI]: Include w32term.h.
16928 [MAC_OS]: Include macterm.ch.
16929 (font_otf_ValueRecord): Use make_number.
16930 (font_finish_cache): Fix handling of reference count.
16931 (font_clear_cache): Update num_fonts.
16932 (font_open_entity): Update smallest_char_width and
16933 smallest_font_height of the frame.
16934 (font_close_object): Update num_fonts.
16935 (Fclear_font_cache): Fix finding the target cache data.
16936
169372008-02-16 Glenn Morris <rgm@gnu.org>
16938
16939 * fontset.c (Finternal_char_font): Fix compilation warning.
16940
169412008-02-16 Eli Zaretskii <eliz@gnu.org>
16942
16943 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16944 instead of char arrays. Enlarge the size of array passed to
16945 get_token_information.
16946
16947 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16948 warnings.
16949
169502008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16951
16952 * .gdbinit: Don't set `args', it breaks gdb --args.
16953
169542008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16955
16956 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16957 within a narrowed buffer.
16958
169592008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16960
16961 * coding.c (decode_coding_object, encode_coding_object):
16962 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16963
169642008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16965
16966 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16967 hardcoding 1.
16968 (detect_coding_system):
16969 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16970 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16971 * insdel.c (insert_from_gap):
16972 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16973 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16974 (string_to_multibyte):
16975 * character.c (chars_in_text, multibyte_chars_in_text):
16976 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16977
16978 * character.h (FETCH_STRING_CHAR_ADVANCE)
16979 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16980 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16981 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16982
16983 * casefiddle.c (casify_region): Only call after-change and composition
16984 functions on the part of the region that was changed.
16985
16986 * keyboard.c (read_avail_input):
16987 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16988
169892008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16990
16991 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16992 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16993
169942008-02-11 Juanma Barranquero <lekktu@gmail.com>
16995
16996 * w32menu.c (push_submenu_start, push_submenu_end)
16997 (push_left_right_boundary, push_menu_pane, push_menu_item):
16998 * keyboard.c (read_key_sequence): Don't pass args with side effects
16999 to AREF, it fails when compiling with -DENABLE_CHECKING.
17000
170012008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
17002
17003 * Makefile.in (${lispsource}international/charprop.el):
17004 Delete this target.
17005
17006 * search.c (boyer_moore): Fix incorrect synching of the trunk and
17007 emacs-unicode-2.
17008
170092008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
17010
17011 * terminal.c (Fdelete_terminal): Clean up the `force' path.
17012
170132008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17014
17015 * frame.c (Qnoelisp): New symbol.
17016 (syms_of_frame): Initialize it.
17017 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
17018 harmless Elisp code, from a strong `force' from x_connection_closed.
17019 * frame.h (Qnoelisp): Declare.
17020 * xterm.c (x_connection_closed): Pass `noelisp'.
17021
17022 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
17023 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
17024 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
17025 rather than `int' for the type of `type'.
17026
170272008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
17028
17029 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
17030
17031 * Makefile.in (GNUC): Remove support for gcc-1.x.
17032
170332008-02-10 Richard Stallman <rms@gnu.org>
17034
17035 * lisp.h (ASET): Use AREF, not ASLOT.
17036
170372008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
17038
17039 * lisp.h (ASET): Check bounds.
17040
170412008-02-10 Glenn Morris <rgm@gnu.org>
17042
17043 * buffer.c (mode-name): Doc fix.
17044
170452008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17046
17047 * Makefile.in:
17048 * emacs.c:
17049 * gmalloc.c:
17050 * keyboard.c:
17051 * lisp.h:
17052 * m/ibm370aix.h:
17053 * process.c:
17054 * regex.c:
17055 * s/hpux.h:
17056 * sysdep.c:
17057 * sysselect.h:
17058 * systty.h:
17059 * unexec.c:
17060 * w32term.c:
17061 * xsmfns.c:
17062 * xterm.c: Remove code that deals with obsolete variables.
17063
17064 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
17065
17066 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
17067 nothing else needs it anymore.
17068
170692008-02-09 Eli Zaretskii <eliz@gnu.org>
17070
17071 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
17072 instead of unibyte_char_to_multibyte.
17073
170742008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17075
17076 * s/gnu-linux.h: Remove commented out code.
17077
17078 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
17079
17080 * Makefile.in: Update what RMS says about using autoconf.
17081 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
17082 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
17083 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
17084 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
17085
170862008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
17087
17088 * keymap.c (Fkey_description): Move side effect outside of macro call.
17089
17090 * xfaces.c (Finternal_make_lisp_face):
17091 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
17092
17093 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
17094 (syms_of_fontset): Use ASET.
17095
17096 * fns.c (concat): Move side effect outside of macro call.
17097 (hash_clear): Use ASET.
17098
170992008-02-08 Richard Stallman <rms@gnu.org>
17100
17101 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
17102 If FORCE, and frame has a surrogate minibuffer for another frame,
17103 delete the other frame first.
17104
171052008-02-07 Timo Savola <timo.savola@iki.fi>
17106
17107 * xterm.c (x_detect_focus_change): Handle embed client message.
17108 (handle_one_xevent): Ditto.
17109 (handle_one_xevent): If embedded and we get a button press/release,
17110 request focus.
17111 (xembed_set_info, xembed_send_message): New functions.
17112 (x_make_frame_visible): Call xembed_set_info if embedded.
17113 (x_make_frame_invisible): Call xembed_set_info if embedded.
17114 (x_term_init): Initialize Xatom_XEMBED.
17115 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
17116 (x_iconify_frame): Ditto.
17117
17118 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
17119 (enum xembed_info, enum xembed_message, enum xembed_focus)
17120 (enum xembed_modifier, enum xembed_accelerator): New.
17121 (xembed_set_info, xembed_send_message): Declare.
17122 (FRAME_X_EMBEDDED_P): New.
17123
17124 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
17125 gtk_plug_new.
17126
17127 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
17128 window ID of a frame.
17129 (x_window): Reparent frame if embedded.
17130 (Fx_create_frame): Don't set border width if embedded.
17131
17132 * emacs.c (USAGE3): Add --parent-id.
17133 (standard_args): Ditto.
17134
171352008-02-07 Jan Djärv <jan.h.d@swipnet.se>
17136
17137 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
17138
171392008-02-07 Jim Meyering <meyering@redhat.com>
17140
17141 Use "do...while (0)", not "if (1)...else" in macro definitions.
17142 The latter provokes a warning from gcc about the empty else, when
17143 followed by ";". Also, without that trailing semicolon, it would
17144 silently swallow up any following statement.
17145 * syntax.h (SETUP_SYNTAX_TABLE)
17146 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
17147 * buffer.h (DECODE_POSITION): Likewise.
17148 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
17149 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
17150 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
17151 (FETCH_CHAR_ADVANCE): Likewise.
17152 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17153
171542008-02-07 Jim Meyering <meyering@redhat.com>
17155
17156 * lread.c [lint]: Don't include <sys/inode.h>.
17157
171582008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17159
17160 * xselect.c (x_handle_dnd_message):
17161 * xmenu.c (digest_single_submenu, xmenu_show):
17162 * xdisp.c (with_echo_area_buffer_unwind_data)
17163 (format_mode_line_unwind_data, unwind_format_mode_line)
17164 (display_menu_bar):
17165 * eval.c (Ffetch_bytecode):
17166 * doc.c (store_function_docstring):
17167 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17168 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17169 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17170
171712008-02-07 Kenichi Handa <handa@m17n.org>
17172
17173 * ftxfont.c (ftxfont_open): Don't set
17174 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17175
17176 * ftfont.c (ftfont_open): Fix previous change.
17177
171782008-02-06 Jason Rumney <jasonr@gnu.org>
17179
17180 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17181 Use cached metrics for ASCII characters.
17182 (w32font_open_internal): Don't set font's owning_frame.
17183 Cache metrics for ASCII characters.
17184
17185 * w32font.h (struct w32font_info): Add ascii_metrics.
17186 Remove owning_frame.
17187
171882008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17189
17190 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17191 to negative value.
17192
17193 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17194
17195 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17196
17197 * charset.c (syms_of_charset): Set QCtest and Qeq.
17198
171992008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17200
17201 * process.c (Fstart_process):
17202 * callproc.c (Fcall_process): Handle the case where
17203 Funhandled_file_name_directory returns nil.
17204
17205 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17206 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17207 * font.c (check_gstring): Use them and AREF to access the vector before
17208 we know it's really a gstring.
17209 (Ffont_shape_text): Fix typo.
46e722a9 17210 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17211
17212 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17213 Declare.
17214
17215 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17216
172172008-02-05 Jason Rumney <jasonr@gnu.org>
17218
17219 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17220 Set smallest_font_height and smallest_char_width in display info.
17221
172222008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17223
17224 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17225
172262008-02-05 Miles Bader <miles@gnu.org>
17227
17228 * xfaces.c (get_lface_attributes, merge_named_face)
17229 (lookup_named_face, lookup_derived_face, realize_named_face):
17230 Revert 2008-02-01 change by cyd@stupidchicken.com.
17231
172322008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17233
17234 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17235 fallback fonts.
17236 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17237
172382008-02-04 Jason Rumney <jasonr@gnu.org>
17239
17240 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17241 set full_name.
17242 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17243
172442008-02-03 Jason Rumney <jasonr@gnu.org>
17245
17246 * makefile.w32-in (OBJ1): Include font.o here.
17247 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17248
172492008-02-02 Jason Rumney <jasonr@gnu.org>
17250
17251 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17252
172532008-02-01 Jason Rumney <jasonr@gnu.org>
17254
17255 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17256
17257 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17258
172592008-02-01 Andreas Schwab <schwab@suse.de>
17260
17261 * Makefile.in (shortlisp, lisp): Update for rename of
17262 ../lisp/language/myanmar.el.
17263
172642008-02-01 Chong Yidong <cyd@stupidchicken.com>
17265
17266 * xfaces.c (get_lface_attributes): Delete function.
17267 (merge_named_face, lookup_named_face, lookup_derived_face)
17268 (realize_named_face): Call lface_from_face_name directly, and use
17269 the fact that merge_face_vectors does not alter its FROM argument.
17270
172712008-02-01 Jason Rumney <jasonr@gnu.org>
17272
17273 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17274 input in the default locale. Handle non-Unicode multibyte input.
17275
172762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17277
17278 * fontset.c (reorder_font_vector): Exclude nil elements from the
17279 font group. Don't try multiple fonts.
17280 (fontset_font): Adjust for the above change.
17281 (Finternal_char_font): Return nil if the found font doesn't
17282 contain the character ch.
17283
17284 * Makefile.in (lisp, shortlisp): Add cham.el.
17285
172862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17287
17288 * font.h (FONTP): Make it return 1 also for a font-object.
17289
17290 * .gdbinit (xfontset): New function.
17291
17292 * font.c (font_find_for_lface): Check if the character C is
17293 supported or not only for the first font.
17294
17295 * fontset.c (reorder_font_vector): Fix typo.
17296 (fontset_find_font): Don't add a font-spec specifying a script.
17297 Use 0 (not Qt) for the indication of empty font-group. Change the
17298 format of RFONT-DEF. Return Qt if no font in the font-group
17299 support the character.
17300 (fontset_font): Adjust for the above change. If no font was
17301 found the character, remember that.
17302 (face_for_char): Adjust for the change of RFONT-DEF.
17303 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17304 no font for the target.
17305 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17306
173072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17308
17309 * font.c (font_load_for_face): Handle the case that the font in
17310 face->lface is a string.
17311
173122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17313
17314 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17315
173162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17317
17318 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17319 Fix previous change. If the frame is not on a window system,
17320 signal an error.
17321
173222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17323
17324 * coding.c (decode_coding_object, encode_coding_object): Adjust
17325 marker positions after conversion.
17326
17327 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17328
173292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17330
17331 * font.c (font_find_for_lface): Fix the handling of the return
17332 value of font_has_char.
17333 (Ffont_shape_text): Fix previous change.
17334
17335 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17336 (fontset_ref_and_range): Delete it.
17337 (fontset_find_font): Call char_table_ref_and_range instead of
17338 FONTSET_REF_AND_RANGE.
17339 (make_fontset): Don't setup font groups of Latin here.
17340 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17341 (new_fontset_from_font): Make the specified font the default for
17342 all Latin characters.
17343
173442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17345
17346 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17347 is on a window system before accessing the fontset of the frame.
17348
173492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17350
17351 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17352
17353 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17354 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17355
17356 * font.c (Ffont_shape_text): If the font driver doesn't have a
17357 shaper function, make zero-width glyphs to have at least one-pixel
17358 width. Fix setting of `to' field of glyphs.
17359
173602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17361
17362 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17363 glyphs.
17364
17365 * font.h (struct font_driver): Improve docstring of member `shape'.
17366
173672008-02-01 Kenichi Handa <handa@m17n.org>
17368
17369 * composite.c (syms_of_composite): Fix docstring of
17370 auto-composition-function.
17371
17372 * font.h (LGLYPH_SIZE): New macro.
17373
17374 * font.c (Ffont_fill_gstring): Stop filling when a character not
17375 supported by the font is found.
17376 (Ffont_shape_text): When a shape callback function returns nil,
17377 try at most two more times with larger gstring.
17378 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17379
17380 * xdisp.c (handle_auto_composed_prop): Change the argument to
17381 auto-composition-function.
17382
17383 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17384 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17385 Lispy glyph and store it in the lgstring.
17386
17387 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17388
17389 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17390
173912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17392
17393 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17394
17395 * fontset.c (Vfont_encoding_charset_alist): New variable.
17396 (syms_of_fontset): DEFVAR it.
17397 (reorder_font_vector, fontset_find_font): Optimize for the case of
17398 no need of reordering.
17399 (face_for_char): Map the charset property by
17400 Vfont_encoding_charset_alist.
17401
174022008-02-01 Jason Rumney <jasonr@gnu.org>
17403
17404 * w32font.c (logfonts_match): Don't check adstyle here.
17405 (font_matches_spec): Check here against physical font instead.
17406 (add_font_entity_to_list): Avoid some substitutions.
17407
17408 * font.c (font_parse_fcname): Default weight and slant to normal.
17409 (font_score): Prefer normal fonts if weight or slant unspecified.
17410 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17411 match freetype scores.
17412
174132008-02-01 Jason Rumney <jasonr@gnu.org>
17414
17415 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17416 font, as it may have been deleted.
17417 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17418 most common hyphenless variation.
17419 (logfonts_match): Check generic family.
17420 (font_matches_spec): Don't check generic family here.
17421 (fill_in_logfont): Set generic family based on adstyle.
17422
17423 * w32font.h (w32font_get_cache): Update declaration.
17424
174252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17426
17427 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17428
17429 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17430 If none of the new drivers are available, call font_update_drivers
17431 with the old drivers.
17432
17433 * w32font.c (w32font_get_cache): Adjust the argument type.
17434
17435 * xfont.c (xfont_get_cache): Adjust the argument type.
17436
17437 * font.h (struct font_driver): Change argument type of get_cache.
17438
17439 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17440
17441 * font.c (Ffont_get): Fix arguments to Fassoc.
17442 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17443 (font_clear_cache): New function.
17444 (font_list_entities, font_matching_entity): Use font_get_cache.
17445 (font_update_drivers): Call font_clear_cache when finishing a driver.
17446
17447 * fontset.c (fontset_find_font): Fix previous change.
17448
174492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17450
17451 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17452 dpyinfo->font_table.
17453 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17454 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17455
17456 * font.c (font_at): Handle the case that the arg C is negative.
17457 Handle the unibyte case.
17458 (Ffont_at): Call font_at with the arg C -1.
17459
17460 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17461 the position here, and call font_at with the arg C -1.
17462 Don't check the range of the existing composition at the point.
17463
174642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17465
17466 * fontset.c (fontset_add): New args charset_id and family.
17467 Change caller.
17468 (load_font_get_repertory, fontset_find_font): Assume that
17469 font_spec is always a font-spec object.
17470 (Fset_fontset_font): Always store a font-spec object in a fontset.
17471
17472 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17473 instead of get_property_and_range.
17474
174752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17476
17477 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17478 (xftfont_open): Don't keep locking face.
17479 (xftfont_close): Don't unlock face.
17480 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17481
17482 * fontset.c (fontset_find_font): Don't prefer a font of
17483 supplementary charset.
17484
174852008-02-01 Kenichi Handa <handa@m17n.org>
17486
17487 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17488 script, langsys_tag to langsys, new member script.
17489 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17490 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17491 listing to the script specified in that property. Fix arg to
17492 OTF_check_features.
17493
174942008-02-01 Jason Rumney <jasonr@gnu.org>
17495
17496 * w32font.h: New file.
17497
17498 * w32font.c: Include it.
17499 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17500 (w32font_open): Set owning_frame.
17501 (w32font_text_extents): Use owning_frame.
17502 (struct font_callback_data): Add opentype_only field.
17503 (add_font_entity_to_list): Use it to filter fonts.
17504 Don't check against full name.
17505 (w32font_list_internal): New function.
17506 (w32font_list): Use it.
17507 (w32font_match_internal): New function.
17508 (w32font_match): Use it.
17509 (w32font_open_internal): New function.
17510 (w32font_open): Use it.
17511 (w32font_get_cache, w32font_close, w32font_has_char)
17512 (w32font_encode_char, w32font_text_extents, w32font_draw):
17513 Make non-static.
17514
17515 * makefile.w32-in (w32font.o): Depend on w32font.h.
17516
175172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17518
17519 * charset.c (Fdefine_charset_internal): Record a supplementary
17520 charset at the tail of Vcharset_order_list.
17521
17522 * font.c (Ffont_shape_text): Fix the return value.
17523
17524 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17525
17526 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17527
175282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17529
17530 * ftfont.c (struct OpenTypeSpec): New struct.
17531 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17532 (ftfont_get_open_type_spec): New function.
17533 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17534
17535 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17536
175372008-02-01 Jason Rumney <jasonr@gnu.org>
17538
17539 * w32font.c (add_font_entity_to_list): Compare only the beginning
17540 of full name.
17541
175422008-02-01 Kenichi Handa <handa@m17n.org>
17543
17544 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17545 Never return HANDLED_RECOMPUTE_PROPS.
17546
175472008-02-01 Kenichi Handa <handa@m17n.org>
17548
17549 * font.c (font_gstring_produce): Delete it.
17550
17551 * composite.h (COMPOSITION_METHOD):
17552 Handle COMPOSITION_WITH_GLYPH_STRING.
17553
175542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17555
17556 * xfont.c (Qx): Delete.
17557 (syms_of_xfont): Don't initialize Qx.
17558
17559 * composite.h (enum composition_method):
17560 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17561
175622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17563
17564 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17565 (choose_face_font): Accept new form of font-spec.
17566
17567 * frame.h (font_driver_list): Declare it unconditionally.
17568 (struct frame): Define members font_driver_list and font_data_list
17569 unconditionally.
17570
17571 * fontset.c: Include "font.h" unconditionally.
17572 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17573 (Fset_fontset_font): Accept a font-spec object.
17574
17575 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17576 PIXEL_SIZE part a wild card.
17577
17578 * dispextern.h (struct glyph_string): Define members clip and
17579 num_clips unconditionally.
17580 (struct face): Define members font_info and extra unconditionally.
17581
17582 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17583 ftfont_info only when HAVE_LIBOTF is defined.
17584
175852008-02-01 Andreas Schwab <schwab@suse.de>
17586
17587 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17588 and end.
17589
175902008-02-01 Jason Rumney <jasonr@gnu.org>
17591
17592 * w32font.c (w32font_driver): Add new fields.
17593
175942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17595
17596 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17597 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17598 (LIBES): Add @M17N_FLT_CFLAGS@.
17599
17600 * composite.c (compose_text): Don't treat the new style
17601 composition specially.
17602
17603 * emacs.c (main): Call syms_of_font unconditionally.
17604
17605 * font.h (FONT_ENTITY_NOT_LOADABLE)
17606 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17607 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17608 (struct font_driver): New member shape.
17609 (font_registry_charsets): Extern it.
17610 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17611 (font_otf_capability, font_drive_otf): Delete their externs.
17612
17613 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17614 (font_charset_alist, font_registry_charsets): Move from xfont.c
17615 and rename.
17616 (font_prop_validate_otf): New function.
17617 (font_property_table): Register it for QCotf.
17618 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17619 (font_drive_otf): Delete.
17620 (font_prepare_composition): New arg F. Adjust for the change of
17621 lispy gstring.
17622 (font_find_for_lface): New arg C.
17623 (font_load_for_face): Adjust for the change of font_find_for_lface.
17624 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17625 lispy gstring.
17626 (Ffont_shape_text): New function.
17627 (Fopen_font): If the font size is not given, use 12-pixel.
17628 (Ffont_at): New arg STRING.
17629 (syms_of_font): Initalize font_charset_alist.
17630 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17631 conditionally.
17632
17633 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17634 fonts of the same font-spec. Change the format of RFONT-DEF.
17635 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17636 Adjust for the change of RFONT-DEF.
17637 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17638
17639 * ftfont.h: New file.
17640
17641 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17642 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17643 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17644 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17645 font_otf_capability and font_drive_otf, set ftfont_shape.
17646 (ftfont_list): Adjust for the change of :otf property value.
17647 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17648 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17649 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17650 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17651 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17652 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17653
17654 * w32term.c (x_draw_composite_glyph_string_foreground):
17655 Adjust for the change of lispy gstring.
17656
17657 * xdisp.c (handle_composition_prop): Adjust for the change of
17658 lispy gstring. Call a function for auto-composition with the
17659 third arg it->window.
17660 (fill_composite_glyph_string): Adjust for the change of lispy string.
17661 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17662
17663 * xfaces.c (set_font_frame_param): Adjust for the change of
17664 font_find_for_lface.
17665
17666 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17667 (xfont_registry_charsets): Likewise. Change caller.
17668 (syms_of_xfont): Don't handle x_font_charset_alist.
17669
17670 * xftfont.c: Include "ftfont.h".
17671 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17672 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17673 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17674 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17675 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17676 Set xftfont_driver.shape to xftfont_shape.
17677
17678 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17679 the change of lispy gstring.
17680
176812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17682
17683 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17684
176852008-02-01 Jason Rumney <jasonr@gnu.org>
17686
17687 * w32font.c (w32font_draw): Fill background manually.
17688
176892008-02-01 Jason Rumney <jasonr@gnu.org>
17690
17691 * font.c (Qfontp): Remove unused symbol.
17692 (QCantialias): New symbol.
17693 (syms_of_font): Define it.
17694 (font_property_table): Set a validator for QCantialias.
17695
17696 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17697 Define if not already.
17698 (QCfamily): Share with xfaces.c.
17699 (Qstandard, Qsubpixel, Qnatural): New symbols.
17700 (syms_of_w32font): Define them. Don't define QCfamily here.
17701 (w32_antialias_type, lispy_antialias_type): New functions.
17702 (w32_enumfont_pattern_entity): New arg requested_font.
17703 Set antialias parameter if non-default was requested.
17704 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17705
177062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17707
17708 * lread.c (read1): Undo the previous change.
17709
177102008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17711
17712 * frame.c (Fdelete_frame): Call font_update_drivers only when
17713 USE_FONT_BACKEND is defined.
17714
177152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17716
17717 * font.h (struct font_bitmap): New member bits_per_pixel.
17718 (struct font_driver): New members start_for_frame and end_for_frame.
17719 (struct font_data_list): New struct.
17720 (font_put_frame_data, font_get_frame_data): Extern them.
17721
17722 * frame.h (struct frame): New member font_data_list.
17723
17724 * font.c (font_update_drivers): Call driver->start_for_frame and
17725 driver->end_for_frame at proper timings.
17726 (font_put_frame_data, font_get_frame_data): New functions.
17727 (Ffont_spec): Add usage in the docstring.
17728
17729 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17730 (Fdelete_frame): Call font_update_drivers.
17731
17732 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17733 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17734 (xftfont_get_xft_draw): New function.
17735 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17736 (xftfont_end_for_frame): New function.
17737 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17738
17739 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17740 Change argument. Cache GCs in the per-frame data.
17741 (struct ftxfont_frame_data): New struct.
17742 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17743 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17744 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17745 (ftxfont_end_for_frame): New function.
17746 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17747
17748 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17749
177502008-02-01 Kenichi Handa <handa@m17n.org>
17751
17752 * xselect.c (Vselection_coding_system)
17753 (Vnext_selection_coding_system): Delete them.
17754 (syms_of_xselect): Don't declare selection-coding-system and
17755 next-selection-coding-system. They are declared in select.el.
17756
177572008-02-01 Jason Rumney <jasonr@gnu.org>
17758
17759 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17760
17761 * w32fns.c: Include imm.h.
17762 (get_composition_string_fn, get_ime_context_fn): New optional
17763 system functions.
17764 (globals_of_w32fns): Load them from imm32.dll.
17765 (ignore_ime_char): New flag.
17766 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17767 WM_IME_ENDCOMPOSITION messages.
17768
17769 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17770 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17771
177722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17773
17774 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17775 (READCHAR_REPORT_MULTIBYTE): New macro.
17776 (readchar): New 2nd arg MULTIBYTE.
17777 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17778 Make symbol's name multibyte according to the multibyteness of the
17779 source.
17780
177812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17782
17783 * xfaces.c (face_for_overlay_string): Call lookup_face with
17784 correct arguments (fix of synching with the trunk).
17785
177862008-02-01 Kenichi Handa <handa@m17n.org>
17787
17788 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17789 (font_prop_validate_non_neg, font_prop_validate_spacing):
17790 Delete argument prop_index.
17791 (font_property_table): Change arguments to validater. Change Callers.
17792 (font_lispy_object): Delete.
17793 (font_at): Use font_find_object instead fo font_lispy_object.
17794
177952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17796
17797 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17798 and file names.
17799
178002008-02-01 Jason Rumney <jasonr@gnu.org>
17801
17802 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17803 (font_matches_spec): Remove debug output.
17804 (add_font_entity_to_list): Avoid using substituted fonts.
17805
178062008-02-01 Jason Rumney <jasonr@gnu.org>
17807
17808 * doc.c (Fsnarf_documentation):
17809 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17810
178112008-02-01 Miles Bader <miles@gnu.org>
17812
17813 * dispextern.h (struct glyph_row): Only define "clip" field if
17814 HAVE_WINDOW_SYSTEM is defined.
17815
178162008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17817
17818 Fix up multi-tty merge.
17819
17820 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17821 and indentation.
17822
17823 * xfaces.c (free_realized_face, clear_face_gcs):
17824 Include font_done_for_face in the input_blocked section, just in case.
17825
17826 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17827 (get_char_face_and_encoding): Undo last change and remove the *other*
17828 duplicate definition (i.e. keep the one that's better scoped and that
17829 includes code for the font-backend).
17830
17831 * terminal.c (create_terminal): Default keyboard_coding to
17832 `no-conversion' and terminal_coding to `undecided'.
17833
17834 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17835
17836 * fontset.c (free_realized_fontsets): Check that the table entry does
17837 contain a fontset before trying to compare it to `base'.
17838
17839 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17840 syms_of_charset, and syms_of_coding earlier because init_window_once
17841 now needs Vcoding_system_hash_table to be setup.
17842
17843 * coding.h (default_buffer_file_coding): Remove.
17844
17845 * coding.c (default_buffer_file_coding): Remove.
17846 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17847 than ->symbol, and use the terminal-local coding system.
17848 (syms_of_coding): Don't setup the coding-systems that are not
17849 terminal-local.
17850 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17851
17852 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17853 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17854
17855 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17856 in chartab.c and were re-added here by mistake.
17857 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17858
17859 * doc.c (Fsnarf_documentation):
17860 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17861 src to etc.
17862
17863 * ChangeLog.10: Add mistakenly removed entry.
17864
178652008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17866
17867 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17868
178692008-02-01 Miles Bader <miles@gnu.org>
17870
17871 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17872 Add extra args to FACE_FOR_CHAR.
17873
178742008-02-01 Kenichi Handa <handa@m17n.org>
17875
17876 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17877 in sequence.
17878
17879 * chartab.c (map_sub_char_table, map_char_table): If the range
17880 contains just one character, call the function with that character
17881 even if the depth is not 3.
17882
178832008-02-01 Jason Rumney <jasonr@gnu.org>
17884
17885 * w32font.c (w32font_text_extents): Calculate metrics for the
17886 whole string.
17887
178882008-02-01 Jason Rumney <jasonr@gnu.org>
17889
17890 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17891
178922008-02-01 Jason Rumney <jasonr@gnu.org>
17893
17894 * w32term.c (x_set_glyph_string_clipping): Use
17895 get_glyph_string_clip_rects.
17896 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17897 Adjust for the change of struct glyph_string.
17898
17899 * w32font.c (w32font_draw): Do clipping here.
17900
179012008-02-01 Kenichi Handa <handa@m17n.org>
17902
17903 * xftfont.c (xftfont_draw): Adjust for the change of struct
17904 glyph_string.
17905
17906 * xterm.c (x_set_glyph_string_clipping): Use
17907 get_glyph_string_clip_rects.
17908 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17909 Adjust for the change of struct glyph_string.
17910
17911 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17912 the resulting clip(s}.
17913 (expose_overlaps): Add arg r. Change callers. Set it to
17914 row->clip temporarily.
17915 (expose_window): Redraw rows overlapping the exposed area.
17916
17917 * dispextern.h (struct glyph_row): New member clip.
17918 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17919 clip_height, new member clip, and num_clips.
17920
179212008-02-01 Kenichi Handa <handa@m17n.org>
17922
17923 * data.c (Fchar_or_string_p): Fix docstring.
17924
179252008-02-01 Kenichi Handa <handa@m17n.org>
17926
17927 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17928 create a temporary XftDraw object.
17929
179302008-02-01 Kenichi Handa <handa@m17n.org>
17931
17932 * font.c (Ffontp): Fix docstring.
17933
17934 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17935 strong evidence of ISO-2022.
17936
179372008-02-01 Kenichi Handa <handa@m17n.org>
17938
17939 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17940 SYNTAX_ENTRY_FOLLOW_PARENT.
17941
179422008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17943
17944 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17945 its type.
17946 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17947 Update to the new type of weak_hash_tables and next_weak.
17948
17949 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17950 a plain C pointer to Lisp_Hash_Table.
17951
17952 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17953 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17954 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17955 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17956 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17957 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17958 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17959 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17960 (GC_EQ): Remove since they've been identical to their non-GC_
17961 alter-egos ever since the markbit was eradicated.
17962
17963 * alloc.c:
17964 * buffer.c:
17965 * buffer.h:
17966 * data.c:
17967 * fileio.c:
17968 * filelock.c:
17969 * fns.c:
17970 * frame.h:
17971 * lisp.h:
17972 * macterm.c:
17973 * print.c:
17974 * process.c:
17975 * w32fns.c:
17976 * w32menu.c:
17977 * w32term.c:
17978 * xfns.c:
17979 * xmenu.c:
17980 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17981
179822008-02-01 Kenichi Handa <handa@m17n.org>
17983
17984 * chartab.c (map_sub_char_table): Make it work for the top-level
17985 char-table. Fix handling of parent char-table.
17986 (map_char_table): Adjust for the above change.
17987
179882008-02-01 Jason Rumney <jasonr@gnu.org>
17989
17990 * w32font.c (Qgdi): Rename from Qw32.
17991
179922008-02-01 Jason Rumney <jasonr@gnu.org>
17993
17994 * w32bdf.c (get_quoted_string): Make function static.
17995
179962008-02-01 Kenichi Handa <handa@m17n.org>
17997
17998 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17999 bigger ascent and descent than those of the font, use them as
18000 font's ascent and descent.
18001
180022008-02-01 Kenichi Handa <handa@m17n.org>
18003
18004 * Makefile.in (${lispsource}international/charprop.el): Move this
18005 target within "#ifdef HAVE_UNIDATA" and "#endif".
18006
180072008-02-01 Kenichi Handa <handa@m17n.org>
18008
18009 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
18010 (shortlisp): Add ../lisp/language/tai-viet.el.
18011
180122008-02-01 Ulrich Mueller <ulm@gentoo.org>
18013
18014 * Makefile.in (${lispsource}international/charprop.el): Depend on
18015 temacs${EXEEXT}.
18016
180172008-02-01 Jason Rumney <jasonr@gnu.org>
18018
18019 * w32font.c (w32font_close): Delete the GDI font object.
18020
18021 * w32menu.c: Include character.h.
18022
18023 * w32proc.c: Likewise.
18024
18025 * w32select.c: Likewise.
18026
18027 * makefile.w32-in (w32proc.o): Depend on character.h.
18028
180292008-02-01 Jason Rumney <jasonr@gnu.org>
18030
18031 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
18032
18033 * w32menu.c (syms_of_w32menu): Likewise.
18034
18035 * w32proc.c (syms_of_ntproc): Likewise.
18036
18037 * w32select.c (syms_of_w32select): Likewise.
18038
18039 * w32term.c (syms_of_w32term): Likewise.
18040
180412008-02-01 Jason Rumney <jasonr@gnu.org>
18042
18043 * w32font.c (w32font_draw): Delete brush after using it.
18044
180452008-02-01 Jason Rumney <jasonr@gnu.org>
18046
18047 * w32font.c (w32font_open): Don't set font_idx.
18048 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
18049 to font settings.
18050 (w32font_draw): Fill background explicitly.
18051
180522008-02-01 Jason Rumney <jasonr@gnu.org>
18053
18054 * w32term.c (w32_initialize): Don't call w32font_initialize.
18055
18056 * w32font.c (w32font_info): Remove subranges.
18057 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
18058 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
18059 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
18060 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
18061 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
18062 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
18063 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
18064 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
18065 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
18066 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
18067 New symbols.
18068 (font_callback_data): New struct.
18069 (w32font_list, w32font_match): Use it.
18070 (w32font_open): Don't populate subranges.
18071 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
18072 (w32font_encode_char): Always return unicode code-point as-is.
18073 (w32font_text_extents): Supply a transformation matrix to
18074 GetGlyphOutline. Never look up by glyph index. Avoid looping
18075 twice. Use unicode version of GetTexExtentPoint32 instead of
18076 glyph index version.
18077 (set_fonts_frame): Remove.
18078 (w32_enumfont_pattern_entity): Add frame parameter, use it to
18079 set frame parameter. Use backward compatible fake foundries.
18080 Save generic family in extra slot under QCfamily. Make width slot
18081 constant. Save QCspacing value. Save list of scripts instead of
18082 binary subranges.
18083 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
18084 (add_font_entity_to_list): Use font_callback_data struct. Filter
18085 unwanted fonts.
18086 (add_one_font_entity_to_list): Use font_callback_data struct.
18087 (w32_registry): Default to iso10646_1.
18088 (fill_in_logfont): Use dpi from extra slot. Don't bother with
18089 string font registries. Don't fill in font name if it is a generic
18090 family name, fill family instead. Use spacing, family and script
18091 extra info to fill pitch, family and charset fields.
18092 (list_all_matching_fonts): Use font_callback_data struct.
18093 (unicode_range_for_char): Remove.
18094 (font_supported_scripts): New function.
18095 (w32font_initialize): Remove.
18096 (syms_of_w32font): Update which symbols are defined.
18097
180982008-02-01 Jason Rumney <jasonr@gnu.org>
18099
18100 * font.c (font_pixel_size): Reverse assq_no_quit args.
18101
18102 * w32term.h (FONT_WIDTH): Report max width, not average.
18103 (FONT_MAX_WIDTH): Remove.
18104 (FONT_AVG_WIDTH): New macro.
18105
18106 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
18107 redefinition of FONT_WIDTH.
18108
18109 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
18110 (w32_cache_char_metrics): Use FONT_WIDTH.
18111
18112 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
18113
181142008-02-01 Jason Rumney <jasonr@gnu.org>
18115
18116 * w32font.c (w32font_open): Make lfHeight negative.
18117
18118 * w32fns.c (x_default_font_parameter): Use new style font name.
18119 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
18120
181212008-02-01 Jason Rumney <jasonr@gnu.org>
18122
18123 * w32font.c (QCsubranges): New symbol.
18124 (w32font_open, w32font_has_char): Get subranges from subproperty
18125 of extra.
18126 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
18127 (syms_of_w32font): Define :subranges symbol.
18128
18129 * font.c (font_put_extra): Expose externally.
18130
18131 * font.h (font_put_extra): Move declaration from font.c.
18132
18133 * font.c (Ffont_get): Use font driver to determine otf capability.
18134 (adjust_anchor): Check if driver defines anchor_point before using.
18135
18136 * w32font.c (w32font_open): Handle size, height and pixel_size better.
18137 (w32font_draw): Use options.
18138 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
18139 Fix detection of truetype fonts.
18140 (registry_to_w32_charset): Handle charsets other than iso8859-1
18141 expressed as lisp symbols.
18142 (w32_registry): Express charset as lisp symbol.
18143 (fill_in_logfont): Reverse pixel and point height logic.
18144 Don't set width here. Set quality to default.
18145
18146 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
18147 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
18148
18149 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18150 Remove redundant loop and allocation.
18151
18152 * makefile.w32-in (font.o, w32font.o): New objects.
18153 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18154 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18155
18156 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18157 STORE_XCHARB a valid l-value.
18158
18159 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18160 calculations for non-Truetype fonts.
18161 (x_draw_glyph_string): Sync with xterm.c.
18162 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18163 Remove redundant code.
18164 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18165
18166 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18167 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18168
18169 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18170 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18171
18172 * w32font.c: New file for w32 font backend.
18173
181742008-02-01 Kenichi Handa <handa@m17n.org>
18175
18176 * term.c: Don't include "buffer.h" twice.
18177
181782008-02-01 Kenichi Handa <handa@m17n.org>
18179
18180 * character.c (Funibyte_string): New function.
18181 (syms_of_character): Defsubr it.
18182
181832008-02-01 Jason Rumney <jasonr@gnu.org>
18184
18185 * w32term.c [USE_FONT_BACKEND]:
18186 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18187 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18188 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18189 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18190 (x_free_frame_resources): Sync with xterm.c.
18191
181922008-02-01 Andreas Schwab <schwab@suse.de>
18193
18194 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18195 char-table size.
18196
181972008-02-01 Kenichi Handa <handa@m17n.org>
18198
18199 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18200
182012008-02-01 Kenichi Handa <handa@m17n.org>
18202
18203 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18204 font_otf_gpos, add font_drive_otf.
18205
18206 * fontset.c (fontset_find_font): Pay attention to font size
18207 specified for a font.
18208 (reorder_font_vector): Check contents of font_def.
18209
18210 * font.c (struct otf_list): Delete it.
18211 (otf_list): Make it a lisp variable.
18212 (otf_open): Use lispy otf_list.
18213 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18214 (check_otf_features): New function.
18215 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18216 New functions.
18217 (font_drive_otf): New function merging font_otf_gsub and
18218 font_otf_gpos.
18219 (font_open_for_lface): New arg spec. Change argument order.
18220 (font_load_for_face): Adjust for the change of font_open_for_lface.
18221 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18222 Ffont_otf_gpos.
18223 (syms_of_font): Staticpro otf_list. Delete defsubr of
18224 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18225
18226 * xfaces.c (set_font_frame_param): Adjust for the change of
18227 font_open_for_lface.
18228
18229 * font.h (font_open_for_lface): Adjust prototype.
18230 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18231 member otf_drive.
18232 (font_otf_gsub, font_otf_gpos): Delete externs.
18233 (font_drive_otf): Extern it.
18234
182352008-02-01 Kenichi Handa <handa@m17n.org>
18236
18237 * font.c (font_at): If the window W is not on a window system,
18238 return Qnil.
18239
18240 * coding.c (produce_chars, encode_coding): Don't call
18241 insert_from_gap if no characters to produce.
18242
182432008-02-01 Kenichi Handa <handa@m17n.org>
18244
18245 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18246 Fclear_face_cache.
18247
18248 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18249
182502008-02-01 Miles Bader <miles@gnu.org>
18251
18252 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18253 Parse "--disable-font-backend" option.
18254 (standard_args): Add "--disable-font-backend" option.
18255
182562008-02-01 Kenichi Handa <handa@m17n.org>
18257
18258 * fontset.c (fontset_find_font): New function.
18259 (fontset_font): Use fontset_find_font.
18260 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18261 Register the specified font for all Latin characters.
18262 (new_fontset_from_font): Register the specified font for all Latin
18263 characters.
18264 (dump_fontset): For a realized fontset, include the base fontset
18265 name in the returned vector.
18266
182672008-02-01 Kenichi Handa <handa@m17n.org>
18268
18269 * character.h (CHAR_STRING): Cast C to unsigned on calling
18270 char_string.
18271
18272 * character.c (char_string): Type of arg C changed to unsigned.
18273 Signal an error if C is an invalid character code.
18274
18275 * editfns.c (general_insert_function, Fchar_to_string):
18276 Use CHARACTERP, not INTEGERP.
18277
182782008-02-01 Kenichi Handa <handa@m17n.org>
18279
18280 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18281 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18282
18283 * regex.c (analyse_first): Fix for multibyte characters in "case
18284 charset:" and "case categoryspec:".
18285
182862008-02-01 Andreas Schwab <schwab@suse.de>
18287
18288 * Makefile.in (LIBES): Move standard libraries to the end.
18289
182902008-02-01 Kenichi Handa <handa@m17n.org>
18291
18292 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18293 nonzero, don't shrink the buffer nextb.
18294
18295 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18296
18297 * coding.c (coding_alloc_by_making_gap): New arg offset.
18298 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18299 offset.
18300 (decode_coding_iso_2022): Update coding->safe_charsets.
18301 (decode_coding_gap): Temporarily set
18302 current_buffer->text->inhibit_shrinking to 1.
18303
183042008-02-01 Kenichi Handa <handa@m17n.org>
18305
18306 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18307 indexing into elements of s->cmp and s->char2b.
18308
183092008-02-01 Juanma Barranquero <lekktu@gmail.com>
18310
18311 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18312
183132008-02-01 Kenichi Handa <handa@m17n.org>
18314
18315 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18316 target_multibyte instead of multibyte.
18317 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18318 (bcmp_translate): Change the argument name from multibyte to
18319 target_multibyte.
18320
183212008-02-01 Kenichi Handa <handa@m17n.org>
18322
18323 These changes are to compile a regexp into a pattern that can be
18324 used both for multibyte and unibyte targets.
18325
18326 * Makefile.in (search.o): Depend on charset.h.
18327
18328 * character.c (multibyte_char_to_unibyte_safe): New function.
18329
18330 * search.c: Include "charset.h".
18331 (compile_pattern_1): Delete argument multibyte. Don't set
18332 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18333 (compile_pattern): Don't compare cp->buf.target_multibyte.
18334 Compare cp->buf.charset_unibyte.
18335 (compile_pattern): Set cp->buf.target_multibyte.
18336
18337 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18338
18339 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18340
18341 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18342 multibyte. Change callers.
18343 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18344 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18345 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18346 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18347 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18348 (regex_compile): Make the compiled pattern usable both for
18349 multibyte and unibyte targets.
18350 (analyse_first): Make the fastmap usable both for multibyte and
18351 unibyte targets.
18352 (TRANSLATE_VIA_MULTIBYTE): Delete.
18353 (re_match_2_internal): Pay attention to the case that the
18354 multibyteness of bufp and target may be different.
18355
183562008-02-01 Kenichi Handa <handa@m17n.org>
18357
18358 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18359 empty box occupy at least one column width.
18360
183612008-02-01 Miles Bader <miles@gnu.org>
18362
18363 * Makefile.in: Remove redundant HAVE_XFT clause.
18364
183652008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18368
183692008-02-01 Kenichi Handa <handa@m17n.org>
18370
18371 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18372 being nil.
18373
183742008-02-01 Kenichi Handa <handa@m17n.org>
18375
18376 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18377
183782008-02-01 Kenichi Handa <handa@m17n.org>
18379
18380 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18381
183822008-02-01 Kenichi Handa <handa@m17n.org>
18383
18384 * search.c (simple_search): Fix previous change.
18385
183862008-02-01 Kenichi Handa <handa@m17n.org>
18387
18388 * xftfont.c (ftfont_font_format): Extern declaration.
18389
18390 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18391
18392 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18393 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18394
18395 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18396 (ftfont_font_format): Fix previous change.
18397
18398 * font.h (Ffont_xlfd_name): EXFUN it.
18399
18400 * font.c (font_parse_xlfd): Fix the array size of `f'.
18401 (register_font_driver): Use EQ to compare driver->type.
18402
18403 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18404 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18405 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18406
184072008-02-01 Kenichi Handa <handa@m17n.org>
18408
18409 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18410 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18411
184122008-02-01 Kenichi Handa <handa@m17n.org>
18413
18414 * xfont.c (xfont_open): Set font->format.
18415
18416 * xftfont.c (xftfont_open): Set font->format.
18417
18418 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18419 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18420 (ftfont_open): Set font->format.
18421 (ftfont_font_format): New function.
18422
18423 * font.h (struct font): New member format.
18424
18425 * font.c (Qopentype): New variable.
18426 (syms_of_font): Defsym it.
18427 (Fquery_font): Change the format of the last element of the return
18428 value.
18429
184302008-02-01 Kenichi Handa <handa@m17n.org>
18431
18432 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18433 last resort.
18434
184352008-02-01 Kenichi Handa <handa@m17n.org>
18436
18437 * coding.c (detect_coding_charset): Fix detection of multi-byte
18438 charset.
18439
184402008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18441
18442 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18443
184442008-02-01 Kenichi Handa <handa@m17n.org>
18445
18446 * xdisp.c (get_next_display_element): Set it->face_id for the
18447 first component of a composition.
18448 (x_produce_glyphs): Check if the font is changed or not for composition.
18449
184502008-02-01 Kenichi Handa <handa@m17n.org>
18451
18452 * fontset.c (Qlatin): New variable.
18453 (syms_of_fontset): Define it as a lisp symbol.
18454 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18455
184562008-02-01 Kenichi Handa <handa@m17n.org>
18457
18458 * font.c (font_unparse_fcname): Pay attention to the case that
18459 some of font property is a null string.
18460
184612008-02-01 Kenichi Handa <handa@m17n.org>
18462
18463 * term.c: Include "composite.h".
18464 (encode_terminal_code): Output all components of composition.
18465 Check the size of encode_terminal_src.
18466 (produce_glyphs): For composition, call produce_composite_glyph.
18467 (append_composite_glyph, produce_composite_glyph): New functions.
18468
18469 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18470 is not found, get font_info from the current ascii face.
18471
184722008-02-01 Kenichi Handa <handa@m17n.org>
18473
18474 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18475 buffer-file-name to Qnil before calling insert_from_buffer.
18476
18477 * font.c (font_unparse_fcname): Pay attention to the case that
18478 foundry is a null string.
18479
184802008-02-01 Kenichi Handa <handa@m17n.org>
18481
18482 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18483
18484 * font.c (Qunicode_sip): New variable.
18485 (syms_of_font): Declare it as a Lisp symbol.
18486
18487 * font.h (Qunicode_sip): Extern it.
18488
184892008-02-01 Kenichi Handa <handa@m17n.org>
18490
18491 * composite.c (get_composition_id): Pay attention to TAB component.
18492
18493 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18494 TAB. Adjust for the change of s->char2b which always points to
18495 the first element of allocated memory.
18496
18497 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18498
18499 * xdisp.c (handle_composition_prop): Set it->c to the first
18500 non-TAB component.
18501 (fill_composite_glyph_string): Change argument.
18502 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18503 (x_produce_glyphs): Fix handling of left/right padding.
18504
185052008-02-01 Kenichi Handa <handa@m17n.org>
18506
18507 * coding.c (detect_coding_system): Fix for handling off
18508 inhibit_iso_escape_detection. Fix for the case that no coding
18509 system is defined for a specific coding category.
18510
185112008-02-01 Kenichi Handa <handa@m17n.org>
18512
18513 * font.c (font_matching_entity): Delete unused local var.
18514
18515 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18516 opening a font.
18517
18518 * fileio.c (Finsert_file_contents): On recovering a file, assume
18519 Unix-like eol.
18520 (choose_write_coding_system): On auto-saving a file, force
18521 Unix-like eol.
18522
18523 * coding.c (setup_coding_system): Fix setting of
18524 coding->common_flags based on eol_type.
18525 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18526 inherit from it.
18527
185282008-02-01 Kenichi Handa <handa@m17n.org>
18529
18530 * alloc.c (NSTATICS): Increas to 0x600.
18531
185322008-02-01 Kenichi Handa <handa@m17n.org>
18533
18534 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18535 (ftfont_list): Don't check :name property.
18536 (ftfont_match): New function.
18537 (ftfont_pattern_entity): If the pattern doesn't contain
18538 FC_SPACING, don't assume FC_MONO.
18539
18540 * font.h (struct font_driver): New member `match'.
18541 (font_update_drivers): Adjust prototype.
18542
18543 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18544 property of FONT.
18545 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18546 them unconditionally.
18547 (font_matching_entity): New function.
18548 (font_open_by_name): Try font_matching_entity if exact match is
18549 not found.
18550 (font_update_drivers): Delete the arg FONT. Return a list of
18551 actually used backends. Don't free faces, font caches here.
18552 Don't store data in frame parameters. Don't call x_set_font.
18553 (Ffont_spec): Store :name property as is.
18554 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18555 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18556 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18557 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18558 Call font->driver->otf_gsub instead of font_otf_gsub.
18559
18560 * frame.c (x_set_font_backend): Do more works that were done in
18561 font_update_drivers before.
18562
18563 * xfont.c (xfont_match): New function.
18564 (xfont_driver): Set xfont_driver.match to xfont_match.
18565 (xfont_draw): Set font in GC if necessary.
18566
18567 * ftxfont.c (ftxfont_match): New function.
18568 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18569
18570 * xftfont.c (xftfont_match): New function.
18571 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18572
185732008-02-01 Kenichi Handa <handa@m17n.org>
18574
18575 * font.h (struct font): New member scalable.
18576 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18577 (font_otf_gsub): Adjust prototype.
18578
18579 * font.c (font_otf_capability): Fix handling of the default langsys.
18580 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18581 Check the contents of SPEC.
18582 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18583 (check_gstring): New function.
18584 (REPLACEMENT_CHARACTER): New macro.
18585 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18586 glyph codes of GSTRING.
18587 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18588 (font_prepare_composition): Set cmp->glyph_len.
18589 (font_open_entity): Set font->scalable.
18590 (Ffont_get): Handle :otf property.
18591 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18592 functions.
18593 (Fquery_font): Use font->font.full_name.
18594 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18595 Sfont_otf_alternates.
18596
18597 * ftfont.c (ftfont_open): Set font->font.full_name and
18598 font->font.name properly. Fix calculation of font->font.height
18599 and font->min_width.
18600
18601 * ftxfont.c (ftxfont_create_gcs): New function.
18602 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18603 (ftxfont_draw_backgrond): Fix filling region.
18604 (ftxfont_default_fid): New function.
18605 (ftxfont_open): Set xfont->fid to the return value of
18606 ftxfont_default_fid.
18607 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18608 (ftxfont_done_face): Free only GCs that are created by
18609 ftxfont_create_gcs.
18610 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18611
18612 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18613 Clip to src->width, etc (not src->clip_XXX).
18614
18615 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18616 FontBackend frame parameter.
18617
186182008-02-01 Kenichi Handa <handa@m17n.org>
18619
18620 * font.h (struct font_driver_list): New member `on'.
18621 (Fclear_font_cache): EXFUN it.
18622 (font_update_drivers): Extern it.
18623
18624 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18625 (font_list_entities): Check driver_list->on.
18626 (register_font_driver): Initalize `on' member to 0.
18627 (font_update_drivers): New function.
18628 (Fclear_font_cache): Check driver_list->on.
18629
18630 * frame.h (Qfont_backend): Extern it.
18631 (x_set_font_backend): Extern it.
18632
18633 * frame.c (Qfont_backend): New variable.
18634 (frame_parms): New element for font-backend.
18635 (x_set_font_backend): New function.
18636
18637 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18638 FontBackend frame parameter.
18639 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18640 x_set_font_backend.
18641
18642 * xfont.c (xfont_list): Don't try listing by :name property if the
18643 name is not for XLFD.
18644
186452008-02-01 Kenichi Handa <handa@m17n.org>
18646
18647 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18648 (LGLYPH_SET_TO): New macros.
18649 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18650 element of G is vector or not.
18651 (font_at): Extern it.
18652
18653 * font.c: Include window.h.
18654 (font_lispy_object): New function.
18655 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18656 end of valid glyph.
18657 (font_close_object): Fix getting (struct font *).
18658 (font_at): New function.
18659 (Ffont_get): If FONT is a font-object, get entity from it.
18660 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18661 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18662 range check.
18663 (Ffont_at): New function.
18664 (syms_of_font): Defsubr Sfont_at.
18665
18666 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18667 before the entry for Qcomposition.
18668 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18669 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18670 the font in gstring.
18671 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18672 LGLYPH_FORM (g) to detect the end of valid glyph.
18673 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18674 we are composing with gstring.
18675
18676 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18677 Check if adjustment is vector or not.
18678
18679 * Makefile.in (font.o): Make it depends on window.h.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18684 adjustment is vector or not.
18685
186862008-02-01 Miles Bader <miles@gnu.org>
18687
18688 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18689
186902008-02-01 Kenichi Handa <handa@m17n.org>
18691
18692 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18693 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18694 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18695
18696 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18697 (DEVICE_DELTA): Fix typo.
18698 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18699 LGLYPH format.
18700
18701 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18702 the change of LGLYPH format.
18703
187042008-02-01 Kenichi Handa <handa@m17n.org>
18705
18706 * ftfont.c (ftfont_list): Fix typo.
18707 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18708
187092008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18710
18711 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18712
18713 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18714 xftface_info is non-NULL.
18715
187162008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18717
18718 * ftfont.c (ftfont_list): Move misplaced #endif.
18719
187202008-02-01 Kenichi Handa <handa@m17n.org>
18721
18722 * ftfont.c (ftfont_list): Pay attention to the case that
18723 FC_CAPABILITY is not defined.
18724
187252008-02-01 Kenichi Handa <handa@m17n.org>
18726
18727 * xftfont.c (xftfont_open): Set charset related members to -1.
18728
18729 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18730 QCname.
18731 (ftfont_open): Set charset related members to -1.
18732
18733 * fontset.c (Votf_script_alist): New variable.
18734 (syms_of_fontset): Initialize it.
18735 (fontset_font): Delete unused variable.
18736
18737 * fontset.h (Votf_script_alist): Extern it.
18738
18739 * font.c (font_find_for_lface): Optimize code.
18740
18741 * font.h (font_close_object, font_merge_old_spec): Extern them.
18742
187432008-02-01 Kenichi Handa <handa@m17n.org>
18744
18745 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18746 (syms_of_font): Initialize them.
18747 (font_pixel_size): Allow float value in dpi.
18748 (font_prop_validate_type): Delete.
18749 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18750 Change caller.
18751 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18752 (font_prop_validate_extra): Delete.
18753 (font_prop_validate_spacing): New function.
18754 (font_property_table): Add elements for all known properties.
18755 (get_font_prop_index): Rename from check_font_prop_name. New
18756 argument FROM. Change caller.
18757 (font_prop_validate): Validate all known properties.
18758 (font_put_extra): Delete argument force. Change caller.
18759 (font_expand_wildcards): Make it static. Fix the way of shrinking
18760 the possible range.
18761 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18762 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18763 Change caller.
18764 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18765 (font_parse_fcname): Delete argument merge. Fix parsing of point
18766 size. Don't validate properties values here. Change caller.
18767 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18768 (font_open_by_name): Delete unused variable.
18769 (Ffont_spec): Likewise. Validate property values.
18770 (Ffont_match_p): New function.
18771
18772 * font.h (QCscalable): Extern it.
18773 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18774
18775 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18776
18777 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18778 (xfont_list_pattern): New function.
18779 (xfont_list): Use xfont_list_pattern.
18780
187812008-02-01 Kenichi Handa <handa@m17n.org>
18782
18783 * font.h (Flist_fonts): EXFUN it.
18784
187852008-02-01 Jason Rumney <jasonr@gnu.org>
18786
18787 * w32term.c (w32_initialize): Add back smoothing_type and
18788 smoothing_enabled definitions.
18789
187902008-02-01 Kenichi Handa <handa@m17n.org>
18791
18792 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18793 s->face->font on determining underline position.
18794
187952008-02-01 Kenichi Handa <handa@m17n.org>
18796
18797 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18798 (font_has_char): Accept font-object too.
18799 (font_find_for_lface): Try at first with a size specified in face.
18800
188012008-02-01 Kenichi Handa <handa@m17n.org>
18802
18803 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18804 font_open_by_name.
18805
188062008-02-01 Kenichi Handa <handa@m17n.org>
18807
18808 * font.h (QCspacing, QCdpi): Extern them.
18809 (enum font_spacing): New enum.
18810 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18811
18812 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18813 (QCspacing, QCdpi): New variables.
18814 (syms_of_font): Initialize them.
18815 (font_pixel_size): New function.
18816 (font_put_extra): New function.
18817 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18818 in FONT_EXTRA.
18819 (font_parse_fcname): Handle enumerated values (e.g. bold).
18820 Fix handling font size. Add QCname property that contains only
18821 unknown properties.
18822 (font_score): Change argument. Change caller. Pay attention to
18823 FONT_PIXEL_SIZE_QUANTUM.
18824 (font_sort_entites, font_list_entities, font_find_for_lface)
18825 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18826 (Ffont_spec): Add QCname property that contains only unknown properties.
18827
18828 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18829 include weight in listing pattern, instead check weight of each
18830 listed font. Don't include scalable in pattern. Pay attention to
18831 FONT_PIXEL_SIZE_QUANTUM.
18832
188332008-02-01 Kenichi Handa <handa@m17n.org>
18834
18835 * font.c (font_parse_fcname): Fix parsing of point-size.
18836 (font_unparse_fcname): Produce symbolic names for style properties.
18837 (font_list_entities): Handle float size correctly.
18838 (font_open_by_name): Prefer `normal' property values if the name
18839 doesn't specify them.
18840
18841 * fontset.c (Finternal_char_font): Use font_get_name, not
18842 Ffont_xlfd_name.
18843
18844 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18845 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18846 pattern. Don't force scalable.
18847
18848 * xftfont.c (xftfont_open): For generating a name, start from
18849 96-byte buffer.
18850
188512008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18852
18853 * frame.h (x_new_fontset2): Fix prototype.
18854
188552008-02-01 Kenichi Handa <handa@m17n.org>
18856
18857 * font.h (struct font_driver): Delete member parse_name.
18858 (font_match_p, font_get_spec, font_parse_fcname)
18859 (font_unparse_fcname): Extern them.
18860 (font_get_name): Adjust prototype.
18861
18862 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18863 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18864 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18865 unnecessary checks for weight, slant, and swidth.
18866 (font_parse_fcname): New function.
18867 (font_unparse_fcname): New function.
18868 (font_parse_name): New function.
18869 (font_match_p): New function.
18870 (font_get_name): Change return value to Lisp string.
18871 (font_get_spec): New function.
18872 (Qunspecified, Qignore_defface): Don't extern them.
18873 (font_find_for_lface): Assume that LFACE is fully specified.
18874 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18875 object, use it for FACE.
18876 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18877 driver->parse_name.
18878 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18879
18880 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18881 prototype.
18882
18883 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18884 argument F. Don't call Fnew_fontset. Instead, directly call
18885 make_fontset.
18886
18887 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18888
18889 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18890 of x_new_fontset2.
18891
18892 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18893 (Qsans__serif): New variables.
18894 (ftfont_generic_family_list): New variable.
18895 (syms_of_ftfont): Initialize the above variables.
18896 (ftfont_pattern_entity): Delete argument NAME.
18897 (ftfont_list_generic_family): New function.
18898 (ftfont_parse_name): Delete this function.
18899 (ftfont_list): Try generic family only when FcFontList found no font.
18900 (ftfont_list_family): Fix args to FcObjectSetBuild.
18901
18902 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18903 object in attrs[LFACE_FONT_INDEX].
18904 (set_lface_from_font_name): Cancel all changes for font-backend.
18905 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18906 function.
18907 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18908 font object in QCfont attribute.
18909 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18910 (realize_default_face) [USE_FONT_BACKEND]: Call
18911 set_lface_from_font_and_fontset.
18912
18913 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18914 "fixed", and signal error here if no suitable font was found.
18915
18916 * xfont.c (xfont_parse_name): Delete this function.
18917
18918 * xftfont.c (xftfont_open): Change coding style of error
18919 handling. Generate fontconfig's fontname pattern.
18920
18921 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18922 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18923
18924 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18925 Both args FONTSET and FONT_OBJECT must be existing ones.
18926
189272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18928
18929 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18930
189312008-02-01 Kenichi Handa <handa@m17n.org>
18932
18933 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18934
18935 * font.h (struct font): Fix typo.
18936
18937 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18938 XLFD_XXX_INDEX.
18939 (enum xlfd_field_mask): New enum.
18940 (intern_font_field): Changed argument. Change caller. If digits
18941 are followed by non-digits, return a symbol.
18942 (font_expand_wildcards): New function.
18943 (font_parse_xlfd): Fix wildcard handling.
18944 (Ffont_spec): If :name is specified, reflect the info in the other
18945 properties.
18946
18947 * ftfont.c (ftfont_pattern_entity): Fix typo.
18948 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18949 locale.
18950
189512008-02-01 Kenichi Handa <handa@m17n.org>
18952
18953 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18954
18955 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18956 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18957 registry doesn't specify encoding part.
18958 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18959 (font_open_by_name): At first try parsing the name.
18960 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18961 as Lisp symbols.
18962
18963 * fontset.c (reorder_font_vector): Pay attention to the case that
18964 the 3rd element of font_def is nil.
18965 (fontset_font): For the default fontset, append one more fontset
18966 elements for a script-based font specification. Don't add script
18967 attribute on finding a font.
18968 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18969 font name.
18970 (fontset_ascii_font): If a font can't be opened, return nil.
18971
18972 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18973 (ftfont_pattern_entity): New function.
18974 (ftfont_get_cache): Assume that freetype_font_cache is already
18975 initialized.
18976 (ftfont_list): Handle the case that a file is specified in font
18977 name. Use ftfont_pattern_entity to generate entities.
18978 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18979 (syms_of_ftfont): Initialize freetype_font_cache.
18980
18981 * xftfont.c (xftfont_open): Make the font name fontconfig's
18982 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18983 (xftfont_close): Free font->font.name if not NULL.
18984
18985 * xfont.c (xfont_list): If script is specified for a font, return
18986 null_vector.
18987 (xfont_list_family): Declare argument type.
18988
18989 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18990 name, set LFACE_FONT (lface) to nil.
18991
18992 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18993 return Qnil.
18994
189952008-02-01 Kenichi Handa <handa@m17n.org>
18996
18997 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18998 (standard_args): Add "-enable-font-backend".
18999
190002008-02-01 Kenichi Handa <handa@m17n.org>
19001
19002 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
19003 (struct xftdraw_list, xftdraw_list): Delete them.
19004 (register_xftdraw, check_xftdraw): Delete them.
19005 (xftfont_prepare_face): Don't call register_xftdraw.
19006 (xftfont_done_face): Don't call check_xftdraw.
19007 (xftfont_draw): Get background color only when with_background is
19008 nonzero.
19009
19010 * xfont.c (xfont_encode_char): Fix calculation of char2b.
19011
190122008-02-01 Kenichi Handa <handa@m17n.org>
19013
19014 These changes are for the new font handling codes.
19015
19016 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
19017 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
19018 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
19019 (FONTSRC, FONTOBJ): New variables.
19020 (obj): Add $(FONTOBJ).
19021 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
19022 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
19023 @LIBOTF_LIBS@.
19024 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
19025 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
19026
19027 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
19028
19029 * character.h (Vscript_representative_chars): Extern it.
19030
19031 * character.c (Vscript_representative_chars): New variable.
19032 (syms_of_character): Declare it as a Lisp variable.
19033
19034 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
19035 enable_font_backend is nonzero, accept the composition method
19036 COMPOSITION_WITH_GLYPH_STRING.
19037
19038 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
19039 enumeration COMPOSITION_WITH_GLYPH_STRING.
19040
19041 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
19042 members clip_x, clip_y, clip_width, and clip_height.
19043 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
19044
19045 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
19046 --enable-font-backend. Call syms_of_font.
19047
19048 * fns.c (assoc_no_quit): New function.
19049
19050 * fontset.h (FONT_INFO_FROM_FACE): New macro.
19051 (face_for_font, new_fontset_from_font)
19052 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
19053
19054 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
19055 (fontset_font, fontset_ascii, face_for_char)
19056 (make_fontset_for_ascii_face, Ffont_info)
19057 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
19058 is nonzero, use font-backend mechanism.
19059 (find_font_encoding): Make it non-static.
19060 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
19061 New functions.
19062
19063 * frame.h (struct frame): New members resx and resy.
19064 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
19065 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
19066
19067 * frame.c [USE_FONT_BACKEND]: Include "font.h".
19068 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
19069
19070 * lisp.h (assoc_no_quit): Extern it.
19071
19072 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
19073 Through out the file, use FONT_INFO_FROM_FACE instead of
19074 FONT_INFO_FROM_ID, use get_per_char_metric instead of
19075 rif->per_char_metric.
19076 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
19077 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
19078 (get_glyph_face_and_encoding, fill_composite_glyph_string)
19079 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19080 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
19081 nonzero, use font-backend mechanism.
19082 (get_per_char_metric): New function.
19083
19084 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
19085 (set_lface_from_font_name)
19086 (set_font_frame_param, free_realized_face)
19087 (prepare_face_for_display, clear_face_gcs)
19088 (Finternal_set_font_selection_order, realize_x_face)
19089 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
19090 font-backend mechanism.
19091 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
19092 (load_face_font) [USE_FONT_BACKEND]: Abort.
19093 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
19094 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
19095
19096 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
19097 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
19098 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
19099 nonzero, register all available font drivers. Call
19100 x_default_font_parameter for deciding a font.
19101 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
19102
19103 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
19104 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
19105 (x_set_glyph_string_clipping_exactly)
19106 (x_compute_glyph_string_overhangs)
19107 (x_draw_glyph_string_foreground)
19108 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
19109 (x_free_frame_resources) [USE_FONT_BACKEND]: If
19110 enable_font_backend is nonzero, use font-backend mechanism.
19111 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
19112
191132008-02-01 Kenichi Handa <handa@m17n.org>
19114
19115 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
19116 system_eol_type.
19117 (syms_of_coding): Initialize system_eol_type.
19118
19119 * process.c (Fset_process_coding_system): Inherit system's eol
19120 format if necessary.
19121
191222008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19123
19124 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
19125
191262008-02-01 Kenichi Handa <handa@m17n.org>
19127
19128 * coding.c (decode_eol): Pay attention to buffer relocation in
19129 del_range_2.
19130 (decode_coding): Call decode_eol before restoring undo_list.
19131
191322008-02-01 Kenichi Handa <handa@m17n.org>
19133
19134 * charset.c (Fdefine_charset_internal): Fix setting of
19135 emacs_mule_bytes.
19136
191372008-02-01 Kenichi Handa <handa@m17n.org>
19138
19139 * keyboard.c (read_char): Check if C is a character or not before
19140 looking up Vkeyboard_translate_table.
19141
191422008-02-01 Kenichi Handa <handa@m17n.org>
19143
19144 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
19145 condition to terminate the loop.
19146
191472008-02-01 Kenichi Handa <handa@m17n.org>
19148
19149 * coding.c (produce_composition): Compare charbuf[i] instead of
19150 args[i] against 0.
19151 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19152
191532008-02-01 Kenichi Handa <handa@m17n.org>
19154
19155 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19156 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19157 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19158 detect_coding.
19159 (emacs_mule_char): Handle old style (Emacs 20) component character
19160 of a composition.
19161 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19162 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19163 composition rule.
19164 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19165
191662008-02-01 Kenichi Handa <handa@m17n.org>
19167
19168 * coding.c (encode_coding_ccl): Allocate destination dynamically
19169 when necessary.
19170
191712008-02-01 Kenichi Handa <handa@m17n.org>
19172
19173 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19174 the loop. When quitted, show a proper error message.
19175
191762008-02-01 Kenichi Handa <handa@m17n.org>
19177
19178 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19179 src->clip_head and src->clip_tail temporarily instead of src->hl.
19180
19181 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19182 character sequence.
19183 (Fccl_execute_on_string): Use ASET, not XSET.
19184
191852008-02-01 Kenichi Handa <handa@m17n.org>
19186
19187 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19188
191892008-02-01 Kenichi Handa <handa@m17n.org>
19190
19191 * coding.c (decode_coding): Fix the condition of terminating the
19192 decoding loop.
19193
191942008-02-01 Kenichi Handa <handa@m17n.org>
19195
19196 * data.c (Faset): On setting a character bigger than 255 in a
19197 unibyte string, signal an error instead of make the string multibyte.
19198
191992008-02-01 Kenichi Handa <handa@m17n.org>
19200
19201 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19202 made by a mapping table.
19203
192042008-02-01 Kenichi Handa <handa@m17n.org>
19205
19206 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19207 not.
19208 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19209 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19210
19211 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19212 s->face is NULL or not.
19213
192142008-02-01 Kenichi Handa <handa@m17n.org>
19215
19216 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19217 (x_draw_glyph_string): Fix drawing of right_overhang and
19218 left_overhang around/on cursor.
19219
19220 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19221
192222008-02-01 Kenichi Handa <handa@m17n.org>
19223
19224 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * coding.c (Fdefine_coding_system_internal)
19229 (Fdefine_coding_system_alias): Avoid a duplicated element in
19230 Vcoding_system_alist.
19231
192322008-02-01 Kenichi Handa <handa@m17n.org>
19233
19234 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19235
19236 * coding.c (Qcoding_system_define_form): New variable.
19237 (syms_of_coding): Intern and staticpro it.
19238 (Fcoding_system_p): Check Qcoding_system_define_form.
19239 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19240
19241 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19242 Fcoding_system_p.
19243 (CHECK_CODING_SYSTEM): If ID is not available, call
19244 Fcheck_coding_system.
19245 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19246 Try also Fcheck_coding_system.
19247
192482008-02-01 Kenichi Handa <handa@m17n.org>
19249
19250 * coding.c (code_conversion_restore): GCPRO arg.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * character.c (lisp_string_width): Check multibyteness of STRING.
19255
192562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19257
19258 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19259 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19260 (decode_mac_font_name): Use decode_coding_c_string instead of
19261 decode_coding.
19262 (x_load_font): Initialize fontp->fontset to -1. Set
19263 fontp->encoding_type.
19264
192652008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * search.c (search_buffer): Give up BM search on case-fold-search
19268 if one of a target character has a case-equivalence of different
19269 byte length even if that target charcter is an ASCII.
19270 (simple_search): Fix calculation of byte length of matched text.
19271 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19272
192732008-02-01 Kenichi Handa <handa@m17n.org>
19274
19275 * coding.c (decode_coding): Fix handling of invalid bytes.
19276
192772008-02-01 Kenichi Handa <handa@m17n.org>
19278
19279 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19280 Unicode characters.
19281
192822008-02-01 Kenichi Handa <handa@m17n.org>
19283
19284 * coding.c (encode_coding_object): If a pre-write-conversion
19285 function makes a new buffer, kill it.
19286
192872008-02-01 Kenichi Handa <handa@m17n.org>
19288
19289 * coding.c (QCascii_compatible_p): New variable.
19290 (syms_of_coding): Initialize it.
19291 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19292 calling string_char.
19293 (record_conversion_result): Add `default:' case.
19294 (coding_charset_list): Delete unused variable `coding_type'.
19295 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19296 property in the plist of the coding system.
19297 (Fcoding_system_put): Check QCascii_compatible_p.
19298
192992008-02-01 Miles Bader <miles@gnu.org>
19300
19301 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19302 removed calculation of frame `f', as it's now used.
19303
193042008-02-01 Kenichi Handa <handa@m17n.org>
19305
19306 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19307 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19308 (UNIDATA): New variable.
19309 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19310 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19311 $(RUN_TEMACS) unconditionally.
19312
193132008-02-01 Kenichi Handa <handa@m17n.org>
19314
19315 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19316 (admindir): New variable.
19317 ($(lispsource)international/charprop.el): New target.
19318
193192008-02-01 Miles Bader <miles@gnu.org>
19320
19321 * character.c (chars-in-region): Remove obsolete function.
19322 (syms_of_character): Remove its initialization.
19323
193242008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19325
19326 * w32select.c (validate_coding_system)
19327 (setup_windows_coding_system): New functions.
19328 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19329 setup_windows_coding_system.
19330 (setup_config, Fw32_get_clipboard_data): Use
19331 validate_coding_system.
19332 (Fx_selection_exists): Move call to setup_config to a place
19333 where signals are allowed.
19334
19335 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19336 (Fcheck_coding_system): Add declarations.
19337
193382008-02-01 Kenichi Handa <handa@m17n.org>
19339
19340 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19341
193422008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19343
19344 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19345 string as the second argument for x_new_fontset.
19346
193472008-02-01 Kenichi Handa <handa@m17n.org>
19348
19349 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19350 (encode_coding_object): Use safe_call instead of call2.
19351
193522008-02-01 Kenichi Handa <handa@m17n.org>
19353
19354 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19355
19356 * Makefile.in (lisp): Include charprop.el.
19357
193582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19359
19360 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19361 Not sure if it's unnecessary.
19362
193632008-02-01 Steven Tamm <steventamm@mac.com>
19364
19365 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19366 some possibly unnecessary fontset checking code that crashed
19367 when creating a new frame.
19368
193692008-02-01 Kenichi Handa <handa@m17n.org>
19370
19371 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19372 lookup_face.
19373
19374 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19375
19376 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19377
193782008-02-01 Kenichi Handa <handa@m17n.org>
19379
19380 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19381 (coding_charset_list): New function.
19382
19383 * coding.h (coding_charset_list): Extern it.
19384
193852008-02-01 Kenichi Handa <handa@m17n.org>
19386
19387 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19388 concatenation of family and registry.
19389
193902008-02-01 Kenichi Handa <handa@m17n.org>
19391
19392 * character.h (BYTE8_STRING): Fix typo.
19393
19394 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19395 string to multibyte (sync to HEAD).
19396
19397 * casefiddle.c (casify_region): Handle changes in byte-length
19398 using replace_range_2 (sync to HEAD).
19399
194002008-02-01 Andreas Schwab <schwab@suse.de>
19401
19402 * chartab.c (map_char_table): GCPRO table and arg.
19403
194042008-02-01 Kenichi Handa <handa@m17n.org>
19405
19406 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19407 already at limit.
19408
194092008-02-01 Kenichi Handa <handa@m17n.org>
19410
19411 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19412 instead of fast_c_string_match_ignore_case.
19413 (find_font_encoding): Change argument to Lisp_Object. Use
19414 fast_string_match_ignore_case instead of
19415 fast_c_string_match_ignore_case. Change caller.
19416
194172008-02-01 Kenichi Handa <handa@m17n.org>
19418
19419 * xdisp.c (get_next_display_element): In unibyte case, decide to
19420 display in octal form by checking a character by
19421 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19422
19423 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19424
19425 * character.c (unibyte_has_multibyte_table): New variable.
19426
19427 * character.h (unibyte_has_multibyte_table): Extern it.
19428 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19429
194302008-02-01 Kenichi Handa <handa@m17n.org>
19431
19432 * coding.c (encode_coding_iso_2022): Fix handling of charset
19433 annotation.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * coding.c (setup_coding_system): If coding_system is nil, use
19438 Qundecided.
19439 (Fterminal_coding_system): Return nil if terminal coding system is
19440 `undecided'.
19441 (syms_of_coding): Define coding-system `undecided' here. Setup
19442 terminal_coding as `undecided'.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * xdisp.c (message_dolog, set_message_1): Call
19447 unibyte_char_to_multibyte with arg type int.
19448
19449 * lread.c (read1): Fix reading of a char-table.
19450
19451 * print.c (print_object): Include sub char-table in circularities
19452 detection.
19453
194542008-02-01 Kenichi Handa <handa@m17n.org>
19455
19456 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19457 Append the found sequences in car of ARGS instead of prepending.
19458
194592008-02-01 Kenichi Handa <handa@m17n.org>
19460
19461 * fileio.c (report_file_error): Make a unibyte string from
19462 strerror (errorno).
19463 (Fsubstitute_in_file_name): Fix the arg to
19464 unibyte_char_to_multibyte. It is evaluated twice.
19465
194662008-02-01 Kenichi Handa <handa@m17n.org>
19467
19468 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19473 BOM is not found.
19474 (detect_coding, detect_coding_system): Optimization for ISO-2022
19475 when no 8-bit data is found.
19476
194772008-02-01 Jason Rumney <jasonr@gnu.org>
19478
19479 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19480
194812008-02-01 Kenichi Handa <handa@m17n.org>
19482
19483 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19484 CHARS.
19485
194862008-02-01 Steven Tamm <steventamm@mac.com>
19487
19488 * macterm.c (mac_encode_char): Add charset argument and update
19489 to use encoding_type.
19490 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19491 switch to pure fontset.
19492 (decode_mac_font_name): Temporarily remove decoding.
19493 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19494 (x_load_font): Temporarily remove encoding.
19495
194962008-02-01 Kenichi Handa <handa@m17n.org>
19497
19498 * xfaces.c (Fface_font): If frame is not on a window system,
19499 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19500 refer to face->font.
19501 (split_font_name_into_vector, build_font_name_from_vector)
19502 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19503 when HAVE_WINDOW_SYSTEM is defined.
19504
195052008-02-01 Kenichi Handa <handa@m17n.org>
19506
19507 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19508 (x_produce_glyphs): Fix setting of members of cmp in case
19509 cmp->glyph_len is zero.
19510
19511 * fontset.c (Fset_fontset_font): Fix docstring.
19512 (Ffontset_info): Make it backward compatible. New arg ALL.
19513
195142008-02-01 Kim F. Storm <storm@cua.dk>
19515
19516 * process.c (read_process_output): Grow decoding_buf when needed;
19517 this could cause a crash in allocate_string and compact_small_strings.
19518
195192008-02-01 Kenichi Handa <handa@m17n.org>
19520
19521 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19522
195232008-02-01 Kenichi Handa <handa@m17n.org>
19524
19525 * coding.c (setup_coding_system): Set coding->common_flags
19526 correctly for raw-text.
19527 (consume_chars): On encoding unibyte text by raw-text, don't check
19528 multibyte form.
19529 (encode_coding): On encoding by raw-text, never use translation tables.
19530
19531 * fileio.c (e_write): Short cut for the case of no encoding.
19532
195332008-02-01 Kenichi Handa <handa@m17n.org>
19534
19535 * coding.c (detect_coding, detect_coding_system): Delete unused
19536 variables.
19537
195382008-02-01 Kenichi Handa <handa@m17n.org>
19539
19540 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19541 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19542
195432008-02-01 Kenichi Handa <handa@m17n.org>
19544
19545 * coding.c (Ffind_coding_systems_region_internal): Include
19546 raw-text and no-conversion in the result.
19547
195482008-02-01 Kenichi Handa <handa@m17n.org>
19549
19550 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19551 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19552 FONT_DEF.
19553 (font_def_arg, add_arg, from_arg, to_arg): New args.
19554 (set_fontset_font): Change argument.
19555 (Fset_fontset_font): Fix for the case that TARGET is a script
19556 name and charset name.
19557 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19558
195592008-02-01 Kenichi Handa <handa@m17n.org>
19560
19561 * fontset.c (fontset_font): Rename from fontset_face. Change return
19562 value.
19563 (face_suitable_for_char_p, face_for_char): Adjust for the change
19564 of fontset_font.
19565 (make_fontset_for_ascii_face): Fix setting of the fontset element
19566 for ASCII.
19567 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19568 to get a font name.
19569 (Ffontset_info): Adjust for the change of fontset_font.
19570
19571 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19572
19573 * character.h (LEADING_CODE_LATIN_1_MIN)
19574 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19575
195762008-02-01 Kenichi Handa <handa@m17n.org>
19577
19578 * editfns.c (check_translation): New function.
19579 (Ftranslate_region_internal): Handle M:N mapping.
19580
195812008-02-01 Kenichi Handa <handa@m17n.org>
19582
19583 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19584
195852008-02-01 Kenichi Handa <handa@m17n.org>
19586
19587 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19588 goto invalid_code.
19589 (decode_coding_iso_2022): Fix handling of invalid designation.
19590
19591 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19592 after calling code_conversion_save.
19593
195942008-02-01 Kenichi Handa <handa@m17n.org>
19595
19596 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19597
19598 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19599
19600 * fontset.c: Include "intervals.h".
19601 (fontset_face): Fix comparing of Lisp_Objects.
19602 (free_face_fontset, new_fontset_from_font_name): Fix
19603 Lisp_Object/int mixup.
19604
19605 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19606
19607 * coding.c: Add many prototypes for static functions.
19608 (get_translation_table): Allow max_lookup to be NULL.
19609 (decode_coding, Ffind_coding_systems_region_internal)
19610 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19611 get_translation_table with max_lookup NULL.
19612
196132008-02-01 Kenichi Handa <handa@m17n.org>
19614
19615 * coding.c (get_translation_table): Declare it as Lisp_Object.
19616 (LOOKUP_TRANSLATION_TABLE): New macro.
19617 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19618 instead of CHAR_TABLE_REF.
19619
196202008-02-01 Kenichi Handa <handa@m17n.org>
19621
19622 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19623 annotation data format.
19624 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19625 Change arguments FROM and TO to single argument NCHARS. Change caller.
19626 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19627 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19628 (decode_coding_ccl, decode_coding_charset): Pay attention to
19629 coding->charbuf_used.
19630 (get_translation): New function.
19631 (produce_chars): New arguments translation_table and last_block.
19632 Translate characters here. Return number of carryover chars.
19633 Change caller.
19634 (produce_composition): New argument pos. Change caller.
19635 Adjust for the change of annotation data format.
19636 (produce_charset, produce_annotation): Likewise.
19637 (decode_coding, encode_coding): Don't call translate_chars.
19638 (consume_chars): New arg translation_table. Change caller.
19639 (translate_chars): Delete.
19640 (syms_of_coding): Make translation-table's number of extra slots 2.
19641
196422008-02-01 Kenichi Handa <handa@m17n.org>
19643
19644 * search.c (simple_search): Fix setting this_pos_byte in backward
19645 search.
19646
19647 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19648 byte sequence.
19649 (detect_coding_ccl): Fix setting of the variable valids.
19650
196512008-02-01 Kenichi Handa <handa@m17n.org>
19652
19653 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19654
19655 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19656
19657 * editfns.c (Ftranslate_region_internal): Rename from
19658 Ftranslate_region. Accept a char-table in TABLE.
19659 (syms_of_editfns): Defsubr Stranslate_region_internal.
19660
19661 * xfaces.c (set_lface_from_font_name): If a font is specified for
19662 a frame, generate a fontset from the font.
19663 (build_scalable_font_name): If the scalable font is requested for
19664 a specific size, don't change that size.
19665 (try_font_list): Try a scalable font also in the case that a
19666 pattern string is specified.
19667
196682008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * xfaces.c (Fface_font): New optional arg CHARACTER.
19671
196722008-02-01 Kenichi Handa <handa@m17n.org>
19673
19674 * charset.h (CHARSET_OFFSET): New macro.
19675
196762008-02-01 Kenichi Handa <handa@m17n.org>
19677
19678 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19679
19680 * fontset.c (fontset_face): Handle the case that repertory is a
19681 char-table.
19682 (find_font_encoding): Return nil for unknown encoding.
19683 (Fset_fontset_font): Ignore a font of unknown encoding.
19684
196852008-02-01 Kenichi Handa <handa@m17n.org>
19686
19687 * keymap.c (describe_vector): Handle default value of a char table.
19688
19689 * fontset.c (fontset_face): Handle fallback fonts correctly.
19690 (Ffontset_info): Return infomation about fallback fonts.
19691
196922008-02-01 Kenichi Handa <handa@m17n.org>
19693
19694 * fontset.c (FONTSET_DEFAULT): New macro.
19695 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19696 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19697 the case that it is nil.
19698 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19699 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19700
19701 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19702 subset or superset.
19703
197042008-02-01 Kenichi Handa <handa@m17n.org>
19705
19706 * emacs.c (main): Call init_charset after syms_of_XXX.
19707
19708 * charset.c (Vcharset_map_directory): Delete.
19709 (Vcharset_map_path): New variable.
19710 (load_charset_map_from_file): Use Vcharset_map_path instead.
19711 (init_charset): Initialize Vcharset_map_path.
19712 (syms_of_charset): Delete declaration of "charset-map-directory",
19713 add declaration of "charset-map-path".
19714
197152008-02-01 Kenichi Handa <handa@m17n.org>
19716
19717 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19718 ASCII only string.
19719
19720 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19721
19722 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19723 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19724
197252008-02-01 Kenichi Handa <handa@m17n.org>
19726
19727 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19728
19729 * coding.c (QCmnemonic, QCdefalut_char)
19730 (QCdecode_translation_table, QCencode_translation_table)
19731 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19732 (get_translation_table): Return a list of translation tables if
19733 necessary.
19734 (decode_coding): Call get_translation_table with ENCODEP 0.
19735 (char_encodable_p): If translation_table is non-nil, always call
19736 translate_char.
19737 (Fdefine_coding_system_internal): Accept list of translation
19738 tables as :encode-translation-table and :decode-translation-table.
19739 (Fcoding_system_put): New function.
19740 (syms_of_coding): Declare new symbols. Defsubr
19741 Scoding_system_put.
19742 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19743 typically JISX0212.
19744
19745 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19746 when the charset is superset type.
19747
19748 * character.c (translate_char): Accept list of translation tables.
19749
197502008-02-01 Kenichi Handa <handa@m17n.org>
19751
19752 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19753 (CODING_ATTR_TRANS_TBL): New macro.
19754
19755 * coding.c (get_translation_table): New function.
19756 (translate_chars): Fix the bug of skipping annotation data.
19757 (decode_coding, encode_coding): Utilize get_translation_table.
19758 (char_encodable_p, Funencodable_char_position): Translate char if
19759 necessary.
19760 (Ffind_coding_systems_region_internal)
19761 (Fcheck_coding_systems_region): Setup translation table for encode
19762 in a coding system attribute vector in advance.
19763 (Fdefine_coding_system_internal): Allow a symbol as translation
19764 table. For shift-jis type coding system, allow 4th charset.
19765
197662008-02-01 Kenichi Handa <handa@m17n.org>
19767
19768 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19769
19770 * xdisp.c (get_next_display_element): Pass -1 as POS to
19771 FACE_FOR_CHAR if displaying a C-string.
19772
197732008-02-01 Kenichi Handa <handa@m17n.org>
19774
19775 * composite.c (get_composition_id): Handle xoff and yoff in a
19776 composition rule.
19777
19778 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19779 (struct composition): New member lbearing and rbearing.
19780
19781 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19782 (x_get_glyph_overhangs): Handle a composition glyph.
19783 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19784
19785 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19786 composition glyph.
19787
197882008-02-01 Kenichi Handa <handa@m17n.org>
19789
19790 * print.c: Include charset.h.
19791 (Vprint_charset_text_property): New variable.
19792 (Qdefault): Extern it.
19793 (PRINT_STRING_NON_CHARSET_FOUND)
19794 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19795 (print_check_string_result): New variable.
19796 (print_check_string_charset_prop): New function.
19797 (print_prune_charset_plist): New variable.
19798 (print_prune_string_charset): New function.
19799 (print_object): Call print_prune_string_charset if
19800 Vprint_charset_text_property is not t.
19801 (print_interval): Print nothing if interval->plist is nil.
19802 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19803 variable. Init and staticpro print_prune_charset_plist.
19804
198052008-02-01 Kenichi Handa <handa@m17n.org>
19806
19807 * fontset.c (new_fontset_from_font_name): Use the specified font
19808 for all characters in the new fontset.
19809
19810 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19811 OBJECT args.
19812
19813 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19814 OBJECT args for composition too.
19815
19816 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19817 OBJECT args.
19818
198192008-02-01 Kenichi Handa <handa@m17n.org>
19820
19821 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19822
19823 * fontset.c (reorder_font_vector): Adjust for the change of
19824 FONT_DEF format.
19825 (fontset_face): New arg id. Change caller.
19826 (face_for_char): New args pos and object.
19827 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19828 (fs_query_fontset): Check NAME by Fassoc too.
19829 (Fset_fontset_font): Allow non-XLFD font name.
19830 (Ffontset_info): Adjust for the change of FONT_DEF format.
19831
19832 * fontset.h (face_for_char): Adjust prototype.
19833
19834 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19835 (append_space, extend_face_to_end_of_line)
19836 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19837 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19838
19839 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19840 POS and OBJECT args.
19841
19842 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19843 POS and OBJECT args.
19844
198452008-02-01 Jason Rumney <jasonr@gnu.org>
19846
19847 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19848 of GlobalAlloc'ed memory.
19849
198502008-02-01 Kenichi Handa <handa@m17n.org>
19851
19852 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19853
19854 * charset.h (charset_table_used): Delete extern.
19855
19856 * charset.c (charset_table_used): Make it static.
19857 (map_charset_chars): Fix args to c_function with.
19858
19859 * chartab.c (map_sub_char_table_for_charset): Fix args to
19860 c_function with.
19861
19862 * coding.h (enum coding_result_code): Delete
19863 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19864
19865 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19866 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19867 (Vlast_code_conversion_error): New variables.
19868 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19869 (ONE_MORE_BYTE): Record error if any instead of signaling an
19870 error. If non-ASCII multibyte char is found, return the negative
19871 value of the code. All callers changed to check it.
19872 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19873 (record_conversion_result): New function. Change all codes setting
19874 coding->result to call this function.
19875 (detect_coding_utf_8, decode_coding_utf_8)
19876 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19877 Don't use the local variable incomplete.
19878 (emacs_mule_char): Change the second arg to `const'.
19879 (decode_coding): Fix of flushing out unprocessed data.
19880 (make_conversion_work_buffer): Fix making of a work buffer.
19881 (decode_coding_object): Return coding->dst_object.
19882
19883 * fontset.c (set_fontset_font): Fix args.
19884
19885 * lisp.h (CHARACTERBITS): Define as 22.
19886
19887 * process.c (send_process): Be sure to set coding->src_multibyte.
19888
19889 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19890
198912008-02-01 Kenichi Handa <handa@m17n.org>
19892
19893 * xdisp.c (handle_auto_composed_prop): Give limit to
19894 Fnext_single_char_property_change.
19895
198962008-02-01 Kenichi Handa <handa@m17n.org>
19897
19898 * composite.c (syms_of_composite): Don't make the composition hash
19899 table weak.
19900
19901 * fontset.c (Fset_fontset_font): Fix docstring.
19902
19903 * lisp.h (detect_coding_system): Adjust prototype.
19904
19905 * fileio.c (kill_workbuf_unwind): Delete this function.
19906 (Finsert_file_contents): Adjust the call of detect_coding_system.
19907 Get conversion_buffer by code_conversion_save. Use the macro
19908 CODING_MAY_REQUIRE_DECODING. After decoding, update
19909 coding_system.
19910
19911 * coding.h (make_conversion_work_buffer): Delete extern.
19912 (code_conversion_save): Extern it.
19913
19914 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19915 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19916 (decode_coding_utf_8): Don't do eol converion.
19917 (detect_coding_utf_16): Check coding->src_chars, not
19918 coding->src_bytes. Add heuristics for those that have no signature.
19919 (decode_coding_emacs_mule, decode_coding_iso_2022)
19920 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19921 Don't do eol converion.
19922 (adjust_coding_eol_type): Return a new coding system.
19923 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19924 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19925 each change.
19926 (decode_coding): Pay attention to undo_list. Do eol conversion for
19927 all types of coding-systems (if necessary).
19928 (Vcode_conversion_work_buf_list): Delete it.
19929 (Vcode_conversion_reused_workbuf): Rename from
19930 Vcode_conversion_reused_work_buf.
19931 (Vcode_conversion_workbuf_name): New variable.
19932 (reused_workbuf_in_use): New variable.
19933 (make_conversion_work_buffer): Delete the arg DEPTH.
19934 (code_conversion_restore): Change argument to cons.
19935 (code_conversion_save): Delete the argument BUFFER. Change callers.
19936 (detect_coding_system): New argument src_chars. Change callers.
19937 Fix for utf-16 detection.
19938 (init_coding_once): Don't use ISO_carriage_return.
19939 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19940 reused_workbuf_in_use.
19941
199422008-02-01 Kenichi Handa <handa@m17n.org>
19943
19944 * keymap.c (store_in_keymap): Pay attention to the case that idx
19945 is a cons specifying a character range.
19946
199472008-02-01 Kenichi Handa <handa@m17n.org>
19948
19949 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19950 HANDLED_RECOMPUTE_PROPS.
19951
19952 * coding.c (Fdefine_coding_system_internal): Fix checking of
19953 ascii compatibility.
19954
199552008-02-01 Kenichi Handa <handa@m17n.org>
19956
19957 * charset.c (find_charsets_in_text): Delete unused locale variable.
19958 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19959
19960 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19961 Resync charset_list to Vemacs_mule_charset_list.
19962
19963 * keymap.c (store_in_keymap): Pay attention to the case that idx
19964 is a cons specifying a character range.
19965
199662008-02-01 Kenichi Handa <handa@m17n.org>
19967
19968 * composite.c (update_compositions): Bind inhibit-read-only, etc
19969 to t before calling remove-list-of-text-properties.
19970
19971 * print.c (print_object): Always print ASCII chars as is.
19972
199732008-02-01 Kenichi Handa <handa@m17n.org>
19974
19975 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19976
19977 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19978 is a char table.
19979
199802008-02-01 Kenichi Handa <handa@m17n.org>
19981
19982 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19983
199842008-02-01 Kenichi Handa <handa@m17n.org>
19985
19986 * xfaces.c (set_lface_from_font_name): Fix for the case that
19987 FONTNAME is not fontset name.
19988
199892008-02-01 Kenichi Handa <handa@m17n.org>
19990
19991 * fns.c (base64_encode_1): Fix previous change.
19992
199932008-02-01 Kenichi Handa <handa@m17n.org>
19994
19995 * fontset.c (set_fontset_font): New function.
19996 (Fset_fontset_font): If a font is specified for a charset, use
19997 map_charset_chars to store the font spec in a fontset.
19998
199992008-02-01 Kenichi Handa <handa@m17n.org>
20000
20001 * fontset.c (fontset_face): Create a fallback fontset on demand.
20002 (make_fontset): Don't create a fallback fontset here.
20003 (free_face_fontset): Free a fallback fontset (if any) too.
20004 (n_auto_fontsets): Delete this variable.
20005 (auto_fontset_alist): New variable.
20006 (new_fontset_from_font_name): Check auto_fontset_alist.
20007 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
20008 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
20009 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
20010 Defsubr Sfontset_list_all.
20011
200122008-02-01 Kenichi Handa <handa@m17n.org>
20013
20014 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
20015
200162008-02-01 Kenichi Handa <handa@m17n.org>
20017
20018 * fontset.c (Fnew_fontset): Check NAME more rigidly.
20019
200202008-02-01 Kenichi Handa <handa@m17n.org>
20021
20022 * editfns.c (Fgoto_char): Fix docstring.
20023
200242008-02-01 Kenichi Handa <handa@m17n.org>
20025
20026 * insdel.c (insert_from_gap): Adjust intervals correctly.
20027
200282008-02-01 Jason Rumney <jasonr@gnu.org>
20029
20030 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
20031 (pfnGetFontUnicodeRanges): New dynamically loaded function.
20032 (w32_initialize): Try to load it.
20033 (x_get_font_repertory): Use it if available.
20034 (w32_encode_char): Add shortcut for unicode output.
20035
20036 * w32fns.c (w32_load_system_font): Default charset to -1.
20037 (x_to_w32_charset): Match all fonts for unicode.
20038 (w32_to_x_charset): New parameter matching. Don't return partial
20039 or wildcard charsets.
20040 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
20041 (w32_codepage_for_font): Return CP_UNICODE for unicode.
20042 (w32_to_x_font): Match charset to real charset.
20043 (enum_font_cb2): Always list unicode versions.
20044
20045 * makefile.w32-in (temacs): Increase EMHEAP.
20046
200472008-02-01 Jason Rumney <jasonr@gnu.org>
20048
20049 * w32term.c (w32_encode_char): New charset parameter.
20050 font_info.encoding becomes encoding_type.
20051 (x_get_font_repertory): New function. Warning: stub only!
20052 (x_new_font): Return quickly if font already set.
20053 (x_new_fontset): fontsetname parameter is Lisp_Object.
20054 Use new fs_query_fontset. Try new_fontset_from_font_name.
20055 Use fontset_name for return value.
20056
20057 * w32term.h: Declare x_get_font_repertory.
20058
20059 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
20060 place of find_charset_in_text. Use encode_coding_object in place
20061 of encode_coding.
20062 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
20063 decode_coding.
20064
20065 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
20066 of x_new_fontset.
20067 (w32_load_system_font): Initialize charset as unicode.
20068 font_info.encoding becomes encoding_type.
20069 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
20070 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
20071 (syms_of_w32fns): Set get_font_repertory_func.
20072
20073 * w32console.c: Include character.h. Use terminal_encode_buffer
20074 from term.c.
20075 (write_glyphs): Use new version of encode_terminal_code. Use
20076 encode_coding_object in place of encode_coding.
20077
20078 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
20079 encoding becomes encoding_type.
20080
20081 * term.c (terminal_encode_buffer): Make externally visible.
20082
20083 * makefile.w32-in: Add character.h dependancies.
20084 (character.o, chartab.o): New targets.
20085
200862008-02-01 Kenichi Handa <handa@m17n.org>
20087
20088 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
20089 CODING_ID_EOL_TYPE.
20090
200912008-02-01 Andreas Schwab <schwab@suse.de>
20092
20093 * coding.c (produce_chars): Revert last change.
20094
200952008-02-01 Kenichi Handa <handa@m17n.org>
20096
20097 * charset.h (charset_unicode): Extern it.
20098
20099 * charset.c (string_xstring_p): Check by (C >= 0x100).
20100 (find_charsets_in_text): Change format of the arc CHARSETS. New
20101 arg MULTIBYTE.
20102 (Ffind_charset_region, Ffind_charset_string): Adjust for the
20103 change of find_charsets_in_text.
20104 (Fsplit_char): Fix doc. Never return unknown.
20105
20106 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
20107
20108 * coding.c (Fdefine_coding_system_alias): Update
20109 Vcoding_system_list.
20110
20111 * fontset.c (load_font_get_repertory): Pay attention to the case
20112 that ENCODING of a font is specified by a char-table.
20113
20114 * xterm.c (x_get_font_repertory): Handle the case that the
20115 encoding of font is other than Unicode.
20116
201172008-02-01 Kenichi Handa <handa@m17n.org>
20118
20119 * term.c (encode_terminal_code): Don't handle glyph-table. Check
20120 if a character is encodable by the terminal coding system. If
20121 not, produces proper number of `?'s. Update
20122 terminal_encode_buffer and terminal_encode_buf_size if necessary.
20123 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
20124
201252008-02-01 Kenichi Handa <handa@m17n.org>
20126
20127 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
20128 variables.
20129 (encode_terminal_code): Change argument. Encode multiple
20130 characters at once. Store the result of encoding in
20131 terminal_encode_buffer.
20132 (write_glyphs, insert_glyphs): Adjust for the change of
20133 encode_terminal_code.
20134 (term_init): Initialize terminal_encode_buffer and
20135 terminal_encode_buf_size.
20136
20137 * coding.c (consume_chars): If coding->src_object is nil, don't
20138 check annotation.
20139
201402008-02-01 Kenichi Handa <handa@m17n.org>
20141
20142 * character.c (char_string): Use ASCII_CHAR_P instead of
20143 SINGLE_BYTE_CHAR_P.
20144
201452008-02-01 Kenichi Handa <handa@m17n.org>
20146
20147 * xdisp.c (handle_auto_composed_prop): Check if the last
20148 characters of auto-composed region is newly composed with the
20149 following characters.
20150 (handle_composition_prop): Fix checking of point being inside
20151 composition.
20152
201532008-02-01 Kenichi Handa <handa@m17n.org>
20154
20155 * fns.c (concat): Don't change multibyteness of the result by
20156 concatenating an 8-bit character.
20157
20158 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20159 multibyteness of the result when newelt is an 8-bit character.
20160
201612008-02-01 Dave Love <fx@gnu.org>
20162
20163 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20164 EMACS_INT.
20165
20166 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20167
20168 * xfaces.c (face_numeric_value): Declare dim size_t.
20169 (Finternal_lisp_face_equal_p): Remove unused f.
20170
20171 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20172 (MATRIX_ROW): Remove unused vars.
20173 (draw_glyphs, x_insert_glyphs, fast_find_position)
20174 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20175 byte/char counts.
20176
20177 * regex.c (regex_compile): Remove unused var.
20178
20179 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20180
20181 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20182 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20183
20184 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20185
20186 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20187
20188 * fileio.c (Fwrite_region): Remove unused var.
20189
20190 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20191 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20192
20193 * composite.c (Fremove_list_of_text_properties): Declare.
20194
20195 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20196 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20197 (coding_inherit_eol_type): Remove unused attrs.
20198 (detect_coding): Cast arg of detect_eol.
20199
20200 * charset.c (syms_of_charset): Remove unused var p.
20201 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20202 byte/char counts.
20203
20204 * casetab.c (set_case_table): Remove unused var.
20205
20206 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20207 unused vars.
20208
202092008-02-01 Dave Love <fx@gnu.org>
20210
20211 * xterm.c (x_bitmap_mask): Declare.
20212
202132008-02-01 Dave Love <fx@gnu.org>
20214
20215 * xterm.c (x_term_init): Fix type error.
20216
20217 * lisp.h: Add Funibyte_char_to_multibyte.
20218
20219 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20220 (Fset_coding_system_priority): Doc fix.
20221
20222 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20223
20224 * indent.c (check_composition): Make start and end EMACS_INT.
20225
20226 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20227
20228 * xdisp.c (handle_composition_prop, check_point_in_composition):
20229 Make buffer positions EMACS_INT.
20230
20231 * composite.c (find_composition, run_composition_function)
20232 (update_compositions, Ffind_composition_internal): Make buffer
20233 positions EMACS_INT.
20234
20235 * composite.h (find_composition, update_compositions): Make
20236 position args EMACS_INT.
20237
20238 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20239
20240 * intervals.c (get_property_and_range):
20241 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20242
20243 * unexalpha.c: Don't include varargs.h.
20244
202452008-02-01 Dave Love <fx@gnu.org>
20246
20247 * coding.h (ENCODE_UTF_8): New.
20248
20249 * Makefile.in (gtkutil.o): Depend on coding.h.
20250
20251 * coding.c (Fset_coding_system_priority): Doc fix.
20252
202532008-02-01 Kenichi Handa <handa@m17n.org>
20254
20255 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20256 the case of auto saving.
20257
202582008-02-01 Andreas Schwab <schwab@suse.de>
20259
20260 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20261 `range' from GC.
20262
202632008-02-01 Kenichi Handa <handa@m17n.org>
20264
20265 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20266
202672008-02-01 Kenichi Handa <handa@m17n.org>
20268
20269 * fileio.c (choose_write_coding_system): Return a decided coding system.
20270 (Fwrite_region): Set Vlast_coding_system_used to the return value
20271 of choose_write_coding_system.
20272
202732008-02-01 Kenichi Handa <handa@m17n.org>
20274
20275 * charset.c (Fset_charset_priority): Pay attention to duplicated
20276 arguments.
20277
20278 * coding.c (QCcategory): New variable.
20279 (syms_of_coding): Defsym it. Set all elements of
20280 Vcoding_category_table and their symbol values.
20281 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20282 coding-category-XXX, and coding-category-list.
20283 (Fdefine_coding_system_internal): Add category in the plist.
20284
202852008-02-01 Kenichi Handa <handa@m17n.org>
20286
20287 * callproc.c (Fcall_process): Handle carryover correctly.
20288
20289 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20290 (raw_text_coding_system): Check NILP (coding_system).
20291 (coding_inherit_eol_type): Check NILP (coding_system) and
20292 NILP (parent).
20293 (consume_chars): Fix for the case of raw-text.
20294
20295 * process.c (read_process_output): Handle carryover correctly.
20296
202972008-02-01 Dave Love <fx@gnu.org>
20298
20299 * regex.c (re_search_2): Fix last change.
20300
203012008-02-01 Kenichi Handa <handa@m17n.org>
20302
20303 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20304 target_multibyte. Even in a unibyte case, return a converted
20305 multibyte char.
20306 (GET_CHAR_AFTER): New macro.
20307 (PATFETCH): Translate via multibyte char.
20308 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20309 (SETUP_MULTIBYTE_RANGE): New macro.
20310 (regex_compile): Setup compiled code so that its multibyteness
20311 matches that of a target. Fix the handling of "[X-YZ]" using
20312 SETUP_MULTIBYTE_RANGE.
20313 (analyse_first) <charset>: For filling fastmap for all multibyte
20314 characters, don't check by BASE_LEADING_CODE_P.
20315 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20316 the same as RE_MULTIBYTE_P (bufp) now.
20317 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20318 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20319 (TRANSLATE_VIA_MULTIBYTE): New macro.
20320 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20321 It is the same as RE_MULTIBYTE_P (bufp) now.
20322 <exactn>: Translate via multibyte.
20323 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20324 translate it.
20325 <charset, charset_not>: Fetch a character by
20326 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20327 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20328 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20329 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20330 by GET_CHAR_AFTER.
20331 (bcmp_translate): Likewise.
20332
20333 * search.c (compile_pattern): Check the member target_multibyte,
20334 not the member multibyte of buf.
20335
20336 * lread.c (read1): While reading a string, set force_singlebyte
20337 and force_multibyte correctly.
20338
20339 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20340 up of unibyte_to_multibyte_table.
20341
203422008-02-01 Kenichi Handa <handa@m17n.org>
20343
20344 * coding.c (setup_coding_system): If coding has
20345 post-read-conversion or pre-write-conversion, set
20346 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20347 respectively.
20348 (decode_coding_gap): Run post-read-conversion if any.
20349
20350 * fileio.c (Finsert_file_contents): Even if we read into a
20351 unibyte buffer, check if we must decode the result or not.
20352
203532008-02-01 Kenichi Handa <handa@m17n.org>
20354
20355 * coding.c (make_conversion_work_buffer): Change the work buffer
20356 name to the same one as that of Emacs 21.
20357
203582008-02-01 Kenichi Handa <handa@m17n.org>
20359
20360 * coding.h (make_conversion_work_buffer): Adjust prototype.
20361 (code_conversion_restore): Don't extern it.
20362
20363 * coding.c (detected_mask): Delete unused variable.
20364 (decode_coding_iso_2022): Pay attention to the byte sequence of
20365 CTEXT extended segment, and retain those bytes as is.
20366 (decode_coding_ccl): Delete unused variable `valids'.
20367 (setup_coding_system): Delete unused variable `category'.
20368 (consume_chars): Delete unused variable `category'. Make it work
20369 for non-multibyte case.
20370 (make_conversion_work_buffer): Change argument.
20371 (saved_coding): Delete unused variable.
20372 (code_conversion_restore): Don't check saved_coding->destination.
20373 (code_conversion_save): New function.
20374 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20375 instead of record_unwind_protect.
20376 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20377 (detect_coding_system): Delete unused variable `mask'.
20378 (Fdefine_coding_system_internal): Delete unused variable id.
20379
20380 * fileio.c (kill_workbuf_unwind): New function.
20381 (Finsert_file_contents): On replacing, call
20382 make_conversion_work_buffer with correct args, and call
20383 record_unwind_protect with the first arg kill_workbuf_unwind.
20384
20385 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20386
203872008-02-01 Kenichi Handa <handa@m17n.org>
20388
20389 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20390 (fontset_add): Fix for the case that TO is less than TO1.
20391 (Ffontset_info): Don't use fallback fontset on checking the
20392 default fontset.
20393 (dump_fontset): New function for debugging.
20394
20395 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20396 coding_type is Qcharset.
20397
203982008-02-01 Kenichi Handa <handa@m17n.org>
20399
20400 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20401 (map_char_table): Don't inherit the value from the parent on
20402 initializing VAL. Adjust for the above change.
20403
204042008-02-01 Kenichi Handa <handa@m17n.org>
20405
20406 * coding.c (Qsignature, Qendian): Delete these variables.
20407 (syms_of_coding): Don't initialize them.
20408 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20409 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20410 detect_info->found.
20411 (decode_coding_utf_16): Don't detect BOM here.
20412 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20413 is NOT utf_16_without_bom.
20414 (setup_coding_system): For a coding system of type utf-16, check
20415 if the attribute :endian is Qbig or not (not nil or not), and set
20416 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20417 (detect_coding): If coding type is utf-16 and BOM detection is
20418 required, detect it.
20419 (Fdefine_coding_system_internal): For a coding system of type
20420 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20421
204222008-02-01 Kenichi Handa <handa@m17n.org>
20423
20424 * coding.c (coding_set_source): Fix for the case that the current
20425 buffer is different from coding->src_object.
20426 (decode_coding_object): Don't use the conversion work buffer if
20427 DST_OBJECT is a buffer.
20428
204292008-02-01 Dave Love <fx@gnu.org>
20430
20431 * lread.c (read_emacs_mule_char) [len==2]: Index
20432 emacs_mule_charset correctly.
20433
204342008-02-01 Dave Love <fx@gnu.org>
20435
20436 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20437 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20438 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20439 treated specially.)
20440 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20441 (detected_mask): Remove Big5 bits.
20442
204432008-02-01 Kenichi Handa <handa@m17n.org>
20444
20445 The following changes are to make the font rescaling facility
20446 compatible with Emacs 21.
20447
20448 * xfaces.c (Vface_font_rescale_alist): Rename from
20449 Vface_resizing_fonts.
20450 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20451 (font_rescale_ratio): Rename from font_resizing_ratio.
20452 (split_font_name): Set font->rescale_ratio.
20453 (better_font_p): Pay attention to font->rescale_ratio.
20454 (build_scalable_font_name): Likewise. Change RESX, and RESY
20455 fields.
20456 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20457
204582008-02-01 Kenichi Handa <handa@m17n.org>
20459
20460 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20461 (Qutf_16_le): Remove these variables.
20462 (syms_of_coding): Don't DEFSYM them.
20463 (decode_coding_utf_16): Fix handling of BOM.
20464 (encode_coding_utf_16): Fix handling of BOM.
20465
204662008-02-01 Kenichi Handa <handa@m17n.org>
20467
20468 * fileio.c (Finsert_file_contents): On replacing, before decoding
20469 the file into the work buffer, set point of the work buffer to the end.
20470
204712008-02-01 Dave Love <fx@gnu.org>
20472
20473 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20474
204752008-02-01 Dave Love <fx@gnu.org>
20476
20477 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20478 and fix C types.
20479
204802008-02-01 Kenichi Handa <handa@m17n.org>
20481
20482 * xdisp.c (SKIP_GLYPHS): New macro.
20483 (set_cursor_from_row): Pay attention to string display properties.
20484
20485 * category.c (copy_category_entry): Fix for the case that RANGE
20486 is an integer.
20487
20488 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20489
20490 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20491
204922008-02-01 Kenichi Handa <handa@m17n.org>
20493
20494 * charset.c (Fcharset_id_internal): New function.
20495 (syms_of_charset): Defsubr it.
20496
20497 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20498 with the last arg charset_list acquired from coding.
20499 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20500 the attribute coding_attr_ccl_valids.
20501
20502 * coding.h (enum define_coding_ccl_arg_index): Set the first
20503 member coding_arg_ccl_decoder to coding_arg_max.
20504
20505 * ccl.h (ccl_driver): Adjust prototype.
20506
20507 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20508 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20509 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20510 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20511 last arg Qnil.
20512
205132008-02-01 Kenichi Handa <handa@m17n.org>
20514
20515 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20516 call encode_char.
20517
20518 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20519
205202008-02-01 Dave Love <fx@gnu.org>
20521
20522 * composite.c (syms_of_composite): Make composition_hash_table weak.
20523
205242008-02-01 Kenichi Handa <handa@m17n.org>
20525
20526 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20527 (font_name_registry): Don't extern them.
20528 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20529
20530 * fontset.h (Qfontset): Don't extern it.
20531 (new_fontset_from_font_name): Extern it.
20532
20533 * fontset.c: Give 8 extra slots to fontset objects.
20534 (Qfontset_info): New variable.
20535 (syms_of_fontset): Defsym it.
20536 (FONTSET_FALLBACK): New macro.
20537 (fontset_face): Try also the default fontset.
20538 (make_fontset): Realize a fallback fontset from the default fontset.
20539 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20540 using split_font_name_into_vector and build_font_name_from_vector.
20541 (Fset_fontset_font): Access the elements of font_spec by enum
20542 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20543 name by using split_font_name_into_vector.
20544 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20545 generate a proper font name from the fontset name. Update
20546 Vfontset_alias_alist.
20547 (n_auto_fontsets): New variable.
20548 (new_fontset_from_font_name): New function.
20549 (Ffont_info): Store the information about fonts generated from the
20550 default fontset in the first extra slot of the returned char-table.
20551
20552 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20553 (font_name_registry): Delete function.
20554 (split_font_name_into_vector): New function.
20555 (build_font_name_from_vector): New function.
20556 (font_list): The argument REGISTRY is now a list of registry names.
20557 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20558 specifies an explicit font name, return the name as is. Make a
20559 list of registy names.
20560
20561 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20562 of x_new_fontset.
20563 (Fx_create_frame): Don't call x_new_fontset here. Just use
20564 x_list_fonts to check the existence of fonts.
20565
20566 * xterm.h (x_new_fontset): Adjust prototype.
20567
20568 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20569 string. Use new_fontset_from_font_name to create a fontset from a
20570 font name.
20571
205722008-02-01 Kenichi Handa <handa@m17n.org>
20573
20574 * syntax.c (Vfind_word_boundary_function_table): New name for
20575 Vnext_word_boundary_function_table.
20576 (find-word-boundary-function-table): New name for
20577 next-word-boundary-function-table.
20578
205792008-02-01 Dave Love <fx@gnu.org>
20580
20581 * Makefile.in: Fix some dependencies.
20582
20583 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20584 set it to nil before returning.
20585
20586 * composite.c (update_compositions): Fix type error.
20587
20588 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20589
205902008-02-01 Kenichi Handa <handa@m17n.org>
20591
20592 * xterm.c (x_new_font): Optimize for the case that the font is
20593 already set for the frame.
20594
205952008-02-01 Kenichi Handa <handa@m17n.org>
20596
20597 * chartab.c (char_table_ascii): Check if the char table contents
20598 is sub-char-table or not.
20599 (char_table_set, char_table_set_range): Fix argument to
20600 char_table_ascii.
20601
20602 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20603 (detect_coding_utf_8, detect_coding_utf_16)
20604 (detect_coding_emacs_mule, detect_coding_iso_2022)
20605 (detect_coding_sjis, detect_coding_big5)
20606 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20607 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20608 sequence is valid in this coding system. Change callers.
20609 (MAX_ANNOTATION_LENGTH): New macro.
20610 (ADD_ANNOTATION_DATA): New macro.
20611 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20612 ADD_ANNOTATION_DATA. Change the format of annotation data.
20613 (ADD_CHARSET_DATA): New macro.
20614 (emacs_mule_char): New argument ID. Change callers.
20615 (decode_coding_emacs_mule, decode_coding_iso_2022)
20616 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20617 Produce charset annotation data in coding->charbuf.
20618 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20619 to charset annotation data in coding->charbuf.
20620 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20621 coding->common_flags if the coding system is iso-2022 based and
20622 uses designation.
20623 (produce_composition): Adjust for the new annotation data format.
20624 (produce_charset): New function.
20625 (produce_annotation): Handle charset annotation.
20626 (handle_composition_annotation, handle_charset_annotation): New
20627 functions.
20628 (consume_chars): Handle charset annotation. Utilize the above two
20629 functions.
20630 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20631 buffer, get the deleted text as a string and set
20632 coding->src_object to that string.
20633 (detect_coding, detect_coding_system): Use the new struct
20634 coding_detection_info.
20635
20636 * coding.h (struct coding_detection_info): New structure.
20637 (struct coding_system): Adjust prototype of the member `detector'.
20638 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20639
206402008-02-01 Kenichi Handa <handa@m17n.org>
20641
20642 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20643
206442008-02-01 Dave Love <fx@gnu.org>
20645
20646 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20647 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20648 to new local and nullify apropos_accumulate before returning.
20649 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20650
206512008-02-01 Kenichi Handa <handa@m17n.org>
20652
20653 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20654 correctly.
e3eea1fc 20655
aac0c6e3
MR
206562008-02-01 Dave Love <fx@gnu.org>
20657
20658 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20659
206602008-02-01 Kenichi Handa <handa@m17n.org>
20661
20662 The following changes are to make character composition happen
20663 automatically on displaying.
20664
20665 * Makefile.in (lisp, shortlisp): Add composite.elc.
20666
20667 * composite.h (Qauto_composed, Vauto_composition_function)
20668 (Qauto_composition_function): Extern them.
20669
20670 * composite.c (Vcomposition_function_table)
20671 (Qcomposition_function_table): Delete variables.
20672 (Qauto_composed, Vauto_composition_function)
20673 (Qauto_composition_function): New variables.
20674 (run_composition_function): Don't call
20675 compose-chars-after-function.
20676 (update_compositions): Clear `auto-composed' text property.
20677 (compose_chars_in_text): Delete this function.
20678 (syms_of_composite): Staticpro Qauto_composed and
20679 Qauto_composition_function. Declare Vauto_composition_function as
20680 a Lisp variable.
20681
20682 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20683
20684 * xdisp.c (it_props): Add an entry for Qauto_composed.
20685 (handle_auto_composed_prop): New function.
20686
20687 * xselect.c (selection_data_to_lisp_data): Don't call
20688 compose_chars_in_text.
20689
206902008-02-01 Dave Love <fx@gnu.org>
20691
20692 * keyboard.c (read_char): Modify checking around use of
20693 Vkeyboard_translate_table.
20694
20695 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20696 and fix C types.
20697
206982008-02-01 Kenichi Handa <handa@m17n.org>
20699
20700 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20701 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20702 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20703 the case that the last byte is '\r' correctly.
20704 (decode_coding): Flush out the unprocessed data correctly.
20705 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20706
207072008-02-01 Dave Love <fx@gnu.org>
20708
20709 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20710 Add XK_ISO... case.
20711 (xaw_scroll_callback): Revert last change.
20712
207132008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20716
207172008-02-01 Kenichi Handa <handa@m17n.org>
20718
20719 * xfaces.c (Vface_resizing_fonts): New variable.
20720 (struct font_name): New member `resizing_ratio'.
20721 (font_resizing_ratio): New function.
20722 (split_font_name): Set font->resizing_ratio.
20723 (better_font_p): Pay attention to font->resizing_ratio.
20724 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20725 RESX, and RESY fields.
20726 (try_alternative_families): Try scalable fonts if
20727 Vscalable_fonts_allowed is not Qt.
20728 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20729
207302008-02-01 Dave Love <fx@gnu.org>
20731
20732 * xterm.c (xaw_scroll_callback): Cast correctly.
20733
207342008-02-01 Dave Love <fx@gnu.org>
20735
20736 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20737 (lispy_kana_keys): Comment out.
20738 (make_lispy_event) [XK_kana_A]: Comment out.
20739
20740 * xterm.c (xaw_scroll_callback): Cast call_data.
20741 (XTread_socket): Deal with ASCII keysyms.
20742 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20743
207442008-02-01 Dave Love <fx@gnu.org>
20745
20746 * xterm.c (Vx_keysym_table): New.
20747 (syms_of_xterm): Initialize it.
20748 (XTread_socket): Use it.
20749 From head: Eliminate incorrect optimization that tried to avoid
20750 decoding the output of X*LookupString.
20751 (x_get_font_repertory): Delete charset declaration.
20752
207532008-02-01 Kenichi Handa <handa@m17n.org>
20754
20755 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20756 return 0.
20757 (Fdefine_coding_system_internal): Setup
20758 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20759
207602008-02-01 Dave Love <fx@gnu.org>
20761
20762 * coding.c (Fcheck_coding_system): Doc fix.
20763
20764 * editfns.c (Finsert_byte): Return a proper value.
20765
207662008-02-01 Kenichi Handa <handa@m17n.org>
20767
20768 * coding.c (decode_coding): Fix args to translate_chars. Pay
20769 attention to Vstandard_translation_table_for_decode.
20770 (encode_coding): Fix args to translate_chars. Pay attention to
20771 Vstandard_translation_table_for_encode.
20772
20773 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20774 SINGLE_BYTE_CHAR_P.
20775
20776 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20777 not by SINGLE_BYTE_CHAR_P.
20778
20779 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20780 SINGLE_BYTE_CHAR_P.
20781
20782 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20783 SINGLE_BYTE_CHAR_P.
20784
20785 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20786 by SINGLE_BYTE_CHAR_P.
20787
20788 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20789 SINGLE_BYTE_CHAR_P.
20790
207912008-02-01 Dave Love <fx@gnu.org>
20792
20793 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20794
207952008-02-01 Dave Love <fx@gnu.org>
20796
20797 * fns.c (Flanginfo): Fix typo.
20798
20799 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20800
208012008-02-01 Kenichi Handa <handa@m17n.org>
20802
20803 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20804 (detect_coding_emacs_mule, detect_coding_iso_2022)
20805 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20806 incomplete byte sequence. Don't update *mask when correctly detected.
20807 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20808 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20809 (detect_coding, detect_coding_system): Adjust for the changes above.
20810
208112008-02-01 Kenichi Handa <handa@m17n.org>
20812
20813 * character.c (char_string): Rename from
20814 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20815 (string_char): Rename from string_char.
20816
20817 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20818 if C is greater than MAX_3_BYTE_CHAR.
20819 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20820 string_char instead of string_char_with_unification.
20821
208222008-02-01 Dave Love <fx@gnu.org>
20823
20824 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20825
208262008-02-01 Kenichi Handa <handa@m17n.org>
20827
20828 * keymap.c (push_key_description): Pay attention to force_multibyte.
20829
20830 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20831
208322008-02-01 Dave Love <fx@gnu.org>
20833
20834 * charset.c (define_charset_internal): Rename `supprementary'.
20835
20836 * Makefile.in (lisp, shortlisp): Remove latin-N.
20837
208382008-02-01 Dave Love <fx@gnu.org>
20839
20840 * xfns.c (x_window, x_window): Use use_xim.
20841
20842 * xterm.c (use_xim): Initialize.
20843 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20844 (x_term_init): Maybe set use_xim.
20845
20846 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20847
208482008-02-01 Kenichi Handa <handa@m17n.org>
20849
20850 * search.c (search_buffer): Fix case-fold-search of multibyte
20851 characters.
20852 (boyer_moore): Rename the last argument to char_high_bits.
20853
208542008-02-01 Kenichi Handa <handa@m17n.org>
20855
20856 * xdisp.c (display_string): Fix for the case of zero width glyph.
20857
20858 * xfns.c (x_set_font): Change the error message of the case that
20859 x_new_fontset returns Qt.
20860
20861 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20862 (Finternal_set_lisp_face_attribute): Use signal_error for the
20863 error of invalid fontset.
20864
20865 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20866 fontset, return Qt.
20867
208682008-02-01 Dave Love <fx@gnu.org>
20869
20870 * unexelf.c (unexec): Make .got handling not SGI-specific.
20871
20872 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20873
20874 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20875
20876 * keyboard.c (read_key_sequence): Fix type error.
20877
20878 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20879 type error.
20880
20881 * fontset.c (fontset_add): Return Lisp_Object.
20882
208832008-02-01 Dave Love <fx@gnu.org>
20884
20885 * charset.h (charset_ordered_list_tick): Declare extern.
20886
208872008-02-01 Kenichi Handa <handa@m17n.org>
20888
20889 The following changes (and some of 2008-02-01 changes of mine) are
20890 for handling syntax, category, and case conversion for unibyte
20891 characters by converting them to multibyte on the fly. With these
20892 changes, we don't have to setup syntax and case tables for unibyte
20893 characters in each language environment.
20894
20895 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20896 multibyte if necessary.
20897
20898 * bytecode.c (Fbyte_code): Likewise.
20899
20900 * character.h (LEADING_CODE_LATIN_1_MIN)
20901 (LEADING_CODE_LATIN_1_MAX): New macros.
20902 (unibyte_to_multibyte_table): Extern it.
20903 (unibyte_char_to_multibyte): New macro.
20904 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20905 (CHAR_LEADING_CODE): New macro.
20906 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20907
20908 * character.c (unibyte_to_multibyte_table): New variable.
20909 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20910 (multibyte_char_to_unibyte): If C is an eight-bit character,
20911 convert it to the corresponding byte value.
20912
20913 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20914 not 1, signals an error. Update the elements of
20915 unibyte_to_multibyte_table.
20916 (init_charset_once): Initialize unibyte_to_multibyte_table.
20917 (syms_of_charset): Define the charset `iso-8859-1'.
20918
20919 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20920 as is without converting it to unibyte. In a unibyte buffer,
20921 convert C to multibyte before checking the syntax.
20922
20923 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20924
20925 * minibuf.c (Fminibuffer_complete_word): Use the macro
20926 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20927
20928 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20929
20930 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20931 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20932 that is zero, convert an eight-bit char to multibyte.
20933 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20934 non-emacs case.
20935 (PATFETCH): Convert an eight-bit char to multibyte.
20936 (HANDLE_UNIBYTE_RANGE): New macro.
20937 (regex_compile): Setup the compiled pattern for multibyte chars
20938 even if the given regex string is unibyte. Use PATFETCH_RAW
20939 instead of PATFETCH in many places. To handle `charset'
20940 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20941 only for ASCII chars.
20942 (analyse_first) <exactn>: Simplify because the compiled pattern
20943 is multibyte.
20944 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20945 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20946 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20947 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20948 multibyte always 1.
20949 (re_search_2): In emacs, set the locale variable multibyte to 1,
20950 otherwise to 0. New local variable target_multibyte. Check it
20951 to decide the multibyteness of STR1 and STR2. If
20952 target_multibyte is zero, convert unibyte chars to multibyte
20953 before translating and checking fastmap.
20954 (TARGET_CHAR_AND_LENGTH): New macro.
20955 (re_match_2_internal): In emacs, set the locale variable multibyte
20956 to 1, otherwise to 0. New local variable target_multibyte. Check
20957 it to decide the multibyteness of STR1 and STR2. Use
20958 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20959 <charset, charset_not>: If multibyte is nonzero, check fastmap
20960 only for ASCII chars. Call bcmp_translate with
20961 target_multibyte, not with multibyte.
20962 <begline>: Declare the local variable C as `unsigned'.
20963 (bcmp_translate): Change the last arg name to target_multibyte.
20964
20965 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20966 the regexp pattern and the matching target. Set cp->buf.multibyte
20967 to the multibyteness of the regexp pattern. Set
20968 cp->but.target_multibyte to the multibyteness of the matching target.
20969 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20970 FETCH_STRING_CHAR_ADVANCE.
20971 (Freplace_match): Convert unibyte chars to multibyte.
20972
20973 * syntax.c (char_quoted, back_comment, scan_words)
20974 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20975 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20976 unibyte chars to multibyte.
20977 (skip_chars): Delete the arg syntaxp, and move the code for
20978 handling syntaxes to skip_syntaxes. Change callers.
20979 Fix the case that the multibyteness of STRING and the current
20980 buffer doesn't match.
20981 (skip_syntaxes): New function.
20982 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20983 SINGLE_BYTE_CHAR_P.
20984
209852008-02-01 Kenichi Handa <handa@m17n.org>
20986
20987 * xfaces.c (QCfontset): New variable.
20988 (LFACE_FONTSET): New macro.
20989 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20990 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20991 (Finternal_set_lisp_face_attribute)
20992 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20993 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20994 check also LFACE_FONTSET_INDEX.
20995 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20996 attrs[LFACE_FONT_INDEX].
20997 (syms_of_xfaces): Intern and staticpro QCfontset.
20998
20999 * dispextern.h (enum lface_attribute_index): New member
21000 LFACE_FONTSET_INDEX.
21001
21002 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
21003
210042008-02-01 Kenichi Handa <handa@m17n.org>
21005
21006 * coding.c (coding_set_destination): Fix coding->destination for
21007 the case converting a region.
21008 (encode_coding_utf_8): Encode eight-bit chars as single byte.
21009 (encode_coding_object): Fix coding->dst_pos and
21010 coding->dst_pos_byte for the case converting a region.
21011
21012 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
21013
21014 * character.h (BYTE8_STRING): New macro.
21015
21016 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
21017
210182008-02-01 Kenichi Handa <handa@m17n.org>
21019
21020 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
21021 characters by octal form.
21022
21023 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21024
21025 * buffer.h (_fetch_multibyte_char_len): Delete extern.
21026 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
21027 _fetch_multibyte_char_len.
21028 (FETCH_CHAR_AS_MULTIBYTE): New macro.
21029
21030 * casetab.c (set_canon, set_identity, shuffle): Simplify.
21031
21032 * casefiddle.c (casify_object): Simplify. Handle the case that
21033 the case conversion change the byte length.
21034 (casify_region): Likewise.
21035
21036 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
21037
21038 * character.c (_fetch_multibyte_char_len): Delete this variable.
21039 (syms_of_character): Setup Vprintable_chars.
21040
21041 * editfns.c (Fchar_equal): Fix for the unibyte case.
21042 (Finsert_byte): New function.
21043 (syms_of_editfns): Defsubr it.
21044
21045 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
21046 of direct code 0x3ffff.
21047
21048 * search.c (Freplace_match): Fix for the unibyte case.
21049
210502008-02-01 Kenichi Handa <handa@m17n.org>
21051
21052 * lread.c (safe_to_load_p): Fix the logic.
21053
21054 * syntax.c (scan_words): Don't treat characters belonging to
21055 different scripts as constituting a word.
21056
21057 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21058
21059 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
21060
21061 * emacs.c (main): In the case of --unibyte, instead of aborting on
21062 finding non-empty buffer, make it unibyte.
21063
210642008-02-01 Kenichi Handa <handa@m17n.org>
21065
21066 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
21067 to create a fontset.
21068
210692008-02-01 Dave Love <fx@gnu.org>
21070
21071 * character.c (Funibyte_char_to_multibyte): Doc fix.
21072
21073 * xfns.c [HAVE_STDLIB_H]: Fix last change.
21074
210752008-02-01 Kenichi Handa <handa@m17n.org>
21076
21077 * fontset.c (fontset_add): Make the type `int'.
21078 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
21079
21080 * character.c (unibyte_char_to_multibyte)
21081 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
21082 charset_unibyte, not charset_primary.
21083
21084 * charset.h (charset_unibyte): Extern it instead of charset_primary.
21085
21086 * charset.c (charset_unibyte): Rename from charset_primary.
21087 (Funibyte_charset): Rename from Fprimary_charset.
21088 (Fset_unibyte_charset): Rename from Fset_primary_charset.
21089 (syms_of_charset): Adjust for the above changes.
21090
21091 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21092 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21093 it->multibyte_p is zero.
21094
21095 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
21096 Delete extern.
21097
210982008-02-01 Kenichi Handa <handa@m17n.org>
21099
21100 * coding.c (Fdefine_coding_system_internal): Fix category setting
21101 for a coding system of type iso-2022.
21102
211032008-02-01 Kenichi Handa <handa@m17n.org>
21104
21105 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
21106
211072008-02-01 Kenichi Handa <handa@m17n.org>
21108
21109 * syntax.c (Vnext_word_boundary_function_table): New variable.
21110 (next-word-boundary-function-table): Declare it as a Lisp variable
21111 in syms_of_syntax.
21112 (scan_words): Call functions in Vnext_word_boundary_function_table
21113 if any.
21114
21115 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
21116
21117 * fontset.c (fs_load_font): If fontp->charset is not negative,
21118 return fontp without setting its members.
21119
211202008-02-01 Dave Love <fx@gnu.org>
21121
21122 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
21123
21124 * m/sparc.h (HAVE_ALLOCA): Delete.
21125
21126 * s/irix6-5.h: Don't include strings.h.
21127 (bcopy, bzero, bcmp): Don't undef.
21128
21129 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
21130
21131 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
21132 (TIOCSIGSEND): Don't test IRIX6.
21133 (bcopy, bzero, bcmp): Define conditionally.
21134
211352008-02-01 Kenichi Handa <handa@m17n.org>
21136
21137 * buffer.c (Qas, Qmake, Qto): New variables.
21138 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
21139 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
21140
21141 * callproc.c (Fcall_process): Don't call insert_1_both directly if
21142 we are inserting a process output into a multibyte buffer.
21143
21144 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
21145 multibyte_char_to_unibyte.
21146
21147 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
21148 by the primary charset, make it eight-bit char.
21149 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
21150
21151 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21152 (charset_8_bit__control, charset_8_bit_graphic)
21153 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21154 (define_charset_internal): New function.
21155 (syms_of_charset): Call define_charset_internal for pre-defined
21156 charsets.
21157
21158 * charset.h (charset_8_bit): Extern it.
21159
21160 * coding.c (make_conversion_work_buffer): Adjust for the change
21161 of Fset_buffer_multibyte.
21162 (encode_coding_raw_text): Increment p0 in the loop.
21163
21164 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21165
21166 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21167 for the change of Fset_buffer_multibyte.
21168
21169 * fns.c (Fstring_to_multibyte): New function.
21170 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21171
211722008-02-01 Dave Love <fx@gnu.org>
21173
21174 * xfns.c (x_put_x_image): Declare args.
21175
21176 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21177 (try_font_list): Declare an arg.
21178
21179 * xdisp.c (message2_nolog, set_message): Declare an arg.
21180
21181 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21182
21183 * syntax.c (scan_sexps_forward): Declare an arg.
21184
21185 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21186 Declare an arg.
21187
21188 * lisp.h (Fnew_fontset): Declare.
21189
21190 * keymap.c (push_key_description): Call CHARACTERP correctly.
21191
21192 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21193 (face_for_char): Delete unused vars.
21194 (Fset_fontset_font): Doc fix. Delete unused vars.
21195
21196 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21197
21198 * composite.c (update_compositions): Declare arg.
21199
21200 * cm.c (calccost, cmgoto): Declare args.
21201
21202 * charset.c: Remove `emacs' conditional. Doc fixes.
21203 (map_char_table_for_charset): Declare.
21204
21205 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21206
21207 * ccl.c: Remove `emacs' conditional.
21208
212092008-02-01 Kenichi Handa <handa@m17n.org>
21210
21211 The following changes are to allow specifying multiple font
21212 patterns for a character range (specified by script or charset).
21213
21214 * Makefile.in (abbrev.o): Depend on syntax.h.
21215 (xfaces.o): Depend on charset.h.
21216
21217 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21218 SINGLE_BYTE_CHAR_P.
21219
21220 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21221
21222 * character.h (Vchar_script_table): Extern it.
21223
21224 * character.c (Vscript_alist): Delete.
21225 (Vchar_script_table, Qchar_script_table): New variable.
21226 (syms_of_character): Declare Vchar_script_table as a lisp variable
21227 and initialize it.
21228
21229 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21230 have property char-table-extra-slots, make no extra slot.
21231
21232 * dispextern.h (struct face): Delete member `charset'.
21233 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21234 SINGLE_BYTE_CHAR_P.
21235 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21236 Add prototypes.
21237 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21238 (generate_ascii_font_name): Rename from generate_ascii_font.
21239
21240 * fontset.h (get_font_repertory_func): New prototype.
21241 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21242 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21243
21244 * fontset.c (Qprepend, Qappend): New variables.
21245 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21246 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21247 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21248 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21249 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21250 (load_font_get_repertory): New functions.
21251 (fontset_set): Delete.
21252 (fontset_face): New arg FACE. Return face ID, not face.
21253 Complete re-write to handle new fontset structure. Change caller.
21254 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21255 (face_for_char): Don't call lookup_face.
21256 (make_fontset_for_ascii_face): New arg FACE.
21257 (fs_load_font): New arg CHARSET_ID. Don't check
21258 Vfont_encoding_alist here.
21259 (find_font_encoding): New function.
21260 (list_fontsets): Use STRINGP, not ! NILP.
21261 (accumulate_script_ranges): New function.
21262 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21263 re-written to handle new fontset structure.
21264 (Ffontset_font): Return a copy of element.
21265 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21266 docstring of font-encoding-alist.
21267
21268 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21269 (Fset_fotset_font): Fix arguments to 5.
21270
21271 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21272
21273 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21274 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21275 (highlight_trailing_whitespace): Adjust for the change of
21276 lookup_named_face.
21277
21278 * xfaces.c: Include charset.h.
21279 (load_face_font): Delete argument C. Change caller.
21280 (generate_ascii_font_name): Rename from generate_ascii_font.
21281 (font_name_registry): New function.
21282 (cache_face): Store ascii faces before non-ascii faces in buckets.
21283 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21284 Lookup only ascii faces.
21285 (lookup_non_ascii_face): New function.
21286 (lookup_named_face): Delete argument C. Change caller.
21287 (lookup_derived_face): Delete argument C. Change caller.
21288 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21289 a string, just call font_list with it.
21290 (choose_face_font): Delete arguments FACE and C. New arg
21291 FONT_SPEC. Change caller.
21292 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21293 Change caller.
21294 (realize_non_ascii_face): New function.
21295 (realize_x_face): Call load_face_font here.
21296 (realize_tty_face): Delete argument C. Change caller.
21297 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21298 get a face ID.
21299 (dump_realized_face): Don't print charset of FACE.
21300
21301 * xfns.c (x_set_font): Always call x_new_fontset and
21302 store_frame_parameter.
21303 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21304 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21305
21306 * xterm.h (x_get_font_repertory): Extern it.
21307
21308 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21309 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21310 it->multibyte_p is zero.
21311 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21312 (x_new_fontset): If FONTSETNAME doesn't match any existing
21313 fontsets, create a new one.
21314 (x_get_font_repertory): New function.
21315
213162008-02-01 Kenichi Handa <handa@m17n.org>
21317
21318 * coding.c (Ffind_coding_systems_region_internal): Detect an
21319 ASCII only string correctly.
21320
21321 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21322 version is 0.
21323
213242008-02-01 Kenichi Handa <handa@m17n.org>
21325
21326 * lread.c: Include "coding.h".
21327 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21328 (load_each_byte, unread_char): New variables.
21329 (readchar_backlog): Delete.
21330 (readchar): Return a character unless load_each_byte is nonzero.
21331 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21332 cons. If unread_char is not -1, simply return it.
21333 (unreadchar): Handle the case that readcharfun is
21334 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21335 (read_multibyte): Delete.
21336 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21337 (read_emacs_mule_char): New functions.
21338 (Fload): Even if the file doesn't have the extension ".elc", if
21339 safe_to_load_p returns a positive version number, assume that the
21340 file contains bytecompiled code. If the version is less than 22,
21341 load the file while decoding multibyte sequences by emacs-mule.
21342 (readevalloop): Don't use readchar_backlog.
21343 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21344 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21345 (read_escape): Delete the arg BYTEREP.
21346 (read1): Set load_each_byte to 1 temporarily while handling
21347 #@NUMBER. Don't call read_multibyte.
21348 (read_vector): Call Fread with a cons. If readcharfun is
21349 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21350 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21351 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21352 and Qload_force_doc_strings.
21353
213542008-02-01 Kenichi Handa <handa@m17n.org>
21355
21356 * xdisp.c (face_before_or_after_it_pos): Call
21357 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21358
213592008-02-01 Kenichi Handa <handa@m17n.org>
21360
21361 * character.h (TRAILING_CODE_P): New macro.
21362 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21363 (string_char_with_unification): Fix prototype.
21364 (Vscript_alist): Extern it.
21365
21366 * character.c (Vscript_alist): New variable.
21367 (string_char_with_unification, str_as_unibyte)
21368 (string_escape_byte8): Add `const' to local variables.
21369 (syms_of_character): Declare script-alist as a Lisp variable.
21370
21371 * charset.h (Vcharset_ordered_list): Extern it.
21372 (charset_ordered_list_tick): Extern it.
21373 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21374 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21375 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21376 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21377 (Funify_charset): Adjust for the change of Funify_charset.
21378
21379 * charset.c (charset_ordered_list_tick): New variable.
21380 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21381 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 21382 deunify instead of unify a charset.
aac0c6e3
MR
21383 (string_xstring_p): Add `const' to local variables.
21384 (find_charsets_in_text): Add `const' to arguments and local variables.
21385 (encode_char): Adjust for the change of Funify_charset. Fix
21386 detecting of invalid code.
21387 (Fset_charset_priority): Increment charset_ordered_list_tick.
21388 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21389 and TO_CODE.
21390
21391 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21392 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21393 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21394 (decode_coding_ccl, consume_chars)
21395 (Ffind_coding_systems_region_internal)
21396 (Fcheck_coding_systems_region): Add `const' to local variables.
21397
21398 * print.c (print_object): Use octal form for printing the
21399 contents of a bool vector.
21400
214012008-02-01 Dave Love <fx@gnu.org>
21402
21403 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21404 <version == 20>: Refuse to load.
21405
214062008-02-01 Dave Love <fx@gnu.org>
21407
21408 * fns.c: Move coding.h.
21409 (Qcodeset, Qdays, Qmonths): New.
21410 (concat): Use CHARACTERP instead of INTEGERP.
21411 (Flocale_codeset): Delete.
21412 (Flanginfo): New function.
21413 (syms_of_fns): Change accordingly.
21414
21415 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21416
214172008-02-01 Dave Love <fx@gnu.org>
21418
21419 * casetab.c (init_casetab_once, init_casetab_once): Fix
21420 CHAR_TABLE_SET call.
21421
21422 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21423
21424 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21425
21426 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21427 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21428 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21429
21430 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21431
21432 * coding.c (ENCODE_DESIGNATION, decode_eol)
21433 (make_conversion_work_buffer, code_conversion_restore)
21434 (Fdefine_coding_system_internal): Convert Lisp types.
21435 (code_conversion_restore): Use EQ, not ==.
21436 (Fencode_coding_string): Fix code_convert_string call.
21437
21438 * coding.h (code_convert_region): Fix prototype.
21439
21440 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21441
21442 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21443 (Ffontset_info): Convert Lisp types.
21444
21445 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21446
21447 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21448
21449 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21450
21451 * chartab.c: Include "...h", not <...h> in some cases.
21452
21453 * callproc.c (Fcall_process): Remove unused variables.
21454
214552008-02-01 Dave Love <fx@gnu.org>
21456
21457 * coding.c (Fset_coding_system_priority): Allow null arg list.
21458
214592008-02-01 Dave Love <fx@gnu.org>
21460
21461 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21462 (Fself_insert_and_exit): Use CHARACTERP.
21463
21464 * callproc.c (Fcall_process): Remove unused vars.
21465
21466 * xterm.c (XTread_socket): Add extra dead keysyms.
21467
21468 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21469
21470 * dispextern.h: Remove prototypes for redraw_frame,
21471 redraw_garbaged_frames.
21472
21473 * cmds.c (Fself_insert_command): Use CHARACTERP.
21474
21475 * chartab.c (make_sub_char_table): Remove unused var.
21476 (Fset_char_table_default, Fmap_char_table): Doc fix.
21477
21478 * keymap.c (access_keymap): Remove generic char code.
21479 (push_key_description): Use CHARACTERP.
21480
214812008-02-01 Dave Love <fx@gnu.org>
21482
21483 * charset.c: Doc fixes.
21484 (Funify_charset): Extra checking.
21485
214862008-02-01 Dave Love <fx@gnu.org>
21487
21488 * lread.c: Remove some unused variables.
21489 (safe_to_load_p): If safe, return the magic number version byte.
21490 (Fload): Maybe use load-with-code-conversion.
21491
214922008-02-01 Kenichi Handa <handa@m17n.org>
21493
21494 * category.c (Fmodify_category_entry): Don't modify the contents
21495 of category_set for characters out of the range. Avoid
21496 unnecessary modification.
21497
21498 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21499 Vchar_unify_table. The default value of the table is now nil.
21500
21501 * character.c (syms_of_character): Setup Vchar_width_table for
21502 eight-bit-control and raw-byte chars.
21503
21504 * charset.h (enum define_charset_arg_index): Delete
21505 charset_arg_parents and add charset_arg_subset and
21506 charset_arg_superset.
21507 (enum charset_attr_index): Delete charset_parents and add
21508 charset_subset and charset_superset.
21509 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21510 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21511 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21512 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21513 (CHARSET_SUPERSET): New macros.
21514 (charset_work): Extern it.
21515 (ENCODE_CHAR): Use charset_work.
21516 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21517 (map_charset_chars): Extern it.
21518
21519 * charset.c (load_charset_map): Set the default value of encoder
21520 and deunifier char-tables to nil.
21521 (map_charset_chars): Change argument. Change callers. Use
21522 map_char_table_for_charset instead of map_char_table.
21523 (Fmap_charset_chars): New optional args from_code and to_code.
21524 (Fdefine_charset_internal): Adjust for the change of
21525 `define-charset' (:parents -> :subset or :superset).
21526 (charset_work): New variable.
21527 (encode_char, syms_of_charset): Adjust for the change of
21528 Fdefine_charset_internal.
21529 (Ffind_charset_string): Setup the vector `charsets' correctly.
21530
21531 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21532 the previous change.
21533 (char_table_ref_and_range): Adjust for the above change.
21534 (map_sub_char_table_for_charset): New function.
21535 (map_char_table_for_charset): New function.
21536
21537 * keymap.c (describe_vector): Handle a char-table directly here.
21538 (describe_char_table): Delete.
21539
21540 * lisp.h (map_charset_chars): Delete.
21541
215422008-02-01 Dave Love <fx@gnu.org>
21543
21544 * fns.c (count_combining): Comment out (unused).
21545 (Flocale_codeset): New.
21546 (syms_of_fns): Defsubr it.
21547
21548 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21549 (size_t): Remove.
21550
215512008-02-01 Dave Love <fx@gnu.org>
21552
21553 * Makefile.in (chartab.o): Depend on charset.h.
21554
215552008-02-01 Kenichi Handa <handa@m17n.org>
21556
21557 * character.c (syms_of_character): Set the default value of
21558 Vprintable_chars to Qnil.
21559
215602008-02-01 Dave Love <fx@gnu.org>
21561
21562 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21563
215642008-02-01 Kenichi Handa <handa@m17n.org>
21565
21566 * charset.c (load_charset_map): Handle the case that from < to
21567 correctly.
21568
21569 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21570 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21571 Pay attention to raw-8-bit chars.
21572
215732008-02-01 Kenichi Handa <handa@m17n.org>
21574
21575 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21576 It is not bytecompiled now.
21577
21578 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21579 (charset_jisx0208): New variables.
21580 (Fdefine_charset_internal): Setup them if appropriate.
21581 (init_charset_once): Initialize them to -1.
21582
21583 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21584 (charset_jisx0208): Extern them.
21585
21586 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21587 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21588 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21589 (setup_iso_safe_charsets): Fix arguments to Fassq.
21590 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21591 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21592 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21593 (encode_coding_iso_2022): Change the 1st arg to
21594 ENCODE_ISO_CHARACTER to a variable.
21595
215962008-02-01 Kenichi Handa <handa@m17n.org>
21597
21598 * charset.h (enum define_charset_arg_index): New enums
21599 charset_arg_min_code and charset_arg_max_code.
21600 (struct charset): New member char_index_offset.
21601
21602 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21603 Take charset->char_index_offset into account.
21604 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21605 args[charset_arg_max_code]. Setup charset.char_index_offset.
21606 (syms_of_charset): Fix args to Fdefine_charset_internal.
21607
216082008-02-01 Dave Love <fx@gnu.org>
21609
21610 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21611
216122008-02-01 Dave Love <fx@gnu.org>
21613
21614 * coding.c: Doc fixes.
21615 (Fcoding_system_aliases): Fix return value.
21616 (Qmac): Remove (duplicated) definition.
21617
216182008-02-01 Dave Love <fx@gnu.org>
21619
362654a6
JB
21620 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21621 New functions.
aac0c6e3
MR
21622
21623 * character.c (Fstring): Doc fix.
21624
21625 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21626
362654a6 21627 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21628 (font-encoding-alist): Doc fix.
21629
216302008-02-01 Dave Love <fx@gnu.org>
21631
21632 * term.c (costs_set): Declare static, non-initialized for pcc.
21633 (encode_terminal_code): Remove unused var.
21634
21635 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21636 for K&R.
21637
21638 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21639
21640 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21641 (suffixes): Move out of make_subsidiaries for K&R.
21642
21643 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21644
21645 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21646
216472008-02-01 Dave Love <fx@gnu.org>
21648
21649 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21650
21651 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21652
216532008-02-01 Yong Lu <lyongu@asia-infonet.com>
21654
21655 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21656
21657 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21658
216592008-02-01 Kenichi Handa <handa@m17n.org>
21660
21661 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21662 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21663
216642008-02-01 Kenichi Handa <handa@m17n.org>
21665
21666 * coding.c (decode_coding_charset): Adjust for the change of
21667 Fdefine_coding_system_internal.
21668 (Fdefine_coding_system_internal): For a coding system of
21669 `charset' type, store a list of charset IDs in
21670 `charset_attr_charset_valids' element of coding attributes.
21671
216722008-02-01 Kenichi Handa <handa@m17n.org>
21673
21674 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21675 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21676 caller. Handle 2-byte and 3-byte charsets correctly.
21677 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21678 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21679 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21680 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21681 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21682 sequence.
21683 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21684 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21685 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21686 and alt&rule composition.
21687 (decode_coding_iso_2022): Handle composition correctly.
21688 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21689
21690 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21691 re-defining a charset. If the charset has :emacs-mule-id, setup
21692 emacs_mule_bytes.
21693 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21694
216952008-02-01 Kenichi Handa <handa@m17n.org>
21696
21697 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21698 (encode_coding_big5, encode_coding_charset): If coding requires safe
21699 encoding, produce a character specified by
21700 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21701
217022008-02-01 Dave Love <fx@gnu.org>
21703
21704 * xterm.c (XSetIMValues): Declare.
21705
21706 * process.c: Conditionally include sys/wait.h, pty.h.
21707
21708 * print.c (print_object): Fix print format for 64-bit systems.
21709
21710 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21711
21712 * buffer.c (emacs_strerror): Declare.
21713
21714 * fontset.c (Fclear_face_cache): Declare.
21715 (accumulate_font_info): Comment-out (unused).
21716 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21717 variables.
21718
21719 * character.h (string_escape_byte8): Declare.
21720
21721 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21722 unused vars.
21723 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21724 (Fmap_charset_chars): Doc fix.
21725
21726 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21727 (Fset_coding_system_priority, Fset_coding_system_priority)
21728 (Fdefine_coding_system_internal): Doc fix.
21729
217302008-02-01 Dave Love <fx@gnu.org>
21731
21732 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21733
217342008-02-01 Kenichi Handa <handa@m17n.org>
21735
21736 * character.c (string_escape_byte8): Make multibyte string with
21737 correct size.
21738
21739 * charset.c (Fmake_char): Delete unnecessary code.
21740
217412008-02-01 Kenichi Handa <handa@m17n.org>
21742
21743 * xfns.c (x_encode_text): Allocate coding.destination here, and
21744 call encode_coding_object with dst_object Qnil.
21745
21746 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21747 multibyte form correctly.
21748
21749 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21750 against Vfont_encoding_alist.
21751
21752 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21753 handling of charset list.
21754 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21755 (decode_coding_object): Move point to coding->dst_pos before
21756 calling post-read-conversion function.
21757 (encode_coding_object): Give correct arguments to
21758 pre-write-conversion. Ignore the return value of
21759 pre-write-conversion function. Pay attention to the case that
21760 pre-write-conversion changes the current buffer. If dst_object is
21761 Qt, even if coding->src_bytes is zero, allocate at least one byte
21762 to coding->destination.
21763
21764 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21765
21766 * charset.c (Fmake_char): Make it more backward compatible.
21767 (Fmap_charset_chars): Fix docstring.
21768
217692008-02-01 Dave Love <fx@gnu.org>
21770
21771 * coding.c: Doc fixes.
21772 (Fdefine_coding_system_alias): Use names, not symbols, in
21773 coding-system-alist.
21774
217752008-02-01 Kenichi Handa <handa@m17n.org>
21776
21777 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21778 of calling free_realized_face.
21779
217802008-02-01 Yong Lu <lyongu@asia-infonet.com>
21781
21782 * charset.c (read_hex): Don't treat SPC as a comment starter.
21783 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21784 (Fdecode_char): Fix typo.
21785
217862008-02-01 Kenichi Handa <handa@m17n.org>
21787
21788 * charset.h (struct charset): New member `code_space_mask'.
21789
21790 * coding.c (coding_set_source): Delete the local variable beg_byte.
21791 (encode_coding_charset, Fdefine_coding_system_internal):
21792 Delete the local variable charset.
21793 (Fdefine_coding_system_internal): Setup
21794 attrs[coding_attr_charset_valids] correctly.
21795
21796 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21797 member to check if CODE is valid or not.
21798 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21799 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21800 is within the range of charset->min_code and carset->max_code.
21801
218022008-02-01 Dave Love <fx@gnu.org>
21803
21804 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21805
21806 * dispextern.h (generate_ascii_font): Fix return type.
21807
21808 * xfaces.c (generate_ascii_font): Fix arg declaration.
21809
21810 * coding.c (coding_inherit_eol_type)
21811 (Fset_terminal_coding_system_internal)
21812 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21813
218142008-02-01 Kenichi Handa <handa@m17n.org>
21815
21816 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21817 multiple charsets correctly.
21818
218192008-02-01 Kenichi Handa <handa@m17n.org>
21820
21821 * search.c (boyer_moore): Fix handling of multibyte character
21822 translation.
21823
21824 * xdisp.c (display_mode_element): When the variable `elt' is
21825 changed, update `this' and `lisp_string'.
21826
218272008-02-01 Kenichi Handa <handa@m17n.org>
21828
21829 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21830
21831 * callproc.c (Fcall_process): Be sure to give the current buffer
21832 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21833
21834 * charset.c (struct charset_map_entries): New struct.
21835 (load_charset_map): Rename from parse_charset_map. New args
21836 entries and n_entries. Change caller.
21837 (load_charset_map_from_file): Rename from load_charset_map.
21838 Change caller. New arg control_flag. Call load_charset_map at
21839 the tail.
21840 (load_charset_map_from_vector): New function.
21841 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21842 (encode_char): If the charset is compact, change a character index
21843 to a code point.
21844
21845 * coding.c (coding_alloc_by_making_gap): Check the case that the
21846 source and destination are the same correctly.
21847 (decode_coding_raw_text): Set coding->consumed_char and
21848 coding->consumed to 0.
21849 (produce_chars): If coding->chars_at_source is nonzero, update
21850 coding->consumed_char and coding->consumed before calling
21851 alloc_destination.
21852 (Fdefine_coding_system_alias): Register ALIAS in
21853 Vcoding_system_alist.
21854 (syms_of_coding): Define `no-conversion' coding system at the tail.
21855
21856 * fileio.c (Finsert_file_contents): Set coding_system instead of
21857 val. If the current buffer is multibyte, always call
21858 decode_coding_gap.
21859
21860 * xfaces.c (try_font_list): Give higher priority to fontset's
21861 family than face's family.
21862
218632008-02-01 Kenichi Handa <handa@m17n.org>
21864
21865 * callproc.c (Fcall_process): Be sure to give the current buffer
21866 to decode_coding_c_string.
21867
21868 * xfaces.c (try_font_list): Give a family specified in a fontset
21869 higher priority than a family specified in a face.
21870
218712008-02-01 Kenichi Handa <handa@m17n.org>
21872
21873 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21874 Fix arguments to insert_from_buffer.
21875
21876 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21877
218782008-02-01 Kenichi Handa <handa@m17n.org>
21879
21880 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21881 (decode_coding_gap): Set coding->dst_multibyte correctly.
21882
218832008-02-01 Kenichi Handa <handa@m17n.org>
21884
21885 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21886 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21887 (encode_coding_utf_16): Substitute coding->default_char for
21888 non-Unicode characters.
21889 (decode_coding): Don't call record_insert here.
21890 (setup_coding_system): Initialize `surrogate' of
21891 coding->spec.utf_16 to 0.
21892 (EMIT_ONE_BYTE): Fix for multibyte case.
21893
21894 * insdel.c (insert_from_gap): Call record_insert.
21895
218962008-02-01 Kenichi Handa <handa@m17n.org>
21897
21898 * casefiddle.c (casify_region): Fix multibyte case.
21899
21900 * character.c (c_string_width): Add return type `int'.
21901 (char_string_with_unification): Delete arg ADVANCED.
21902
21903 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21904 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21905 (CHAR_STRING_ADVANCE): Make it do-while statement.
21906
21907 * chartab.c (sub_char_table_set_range): Optimize for the case
21908 DEPTH == 3. Add workaround code for a GCC optimization bug.
21909
21910 * charset.c (parse_charset_map): Remove an unused variable.
21911
21912 * coding.c: Delete unused variables.
21913
21914 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21915 earlier. If inserted is zero and the coding system doesn't
21916 require flushing, don't call decode_coding_gap.
21917
21918 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21919
219202008-02-01 Kenichi Handa <handa@m17n.org>
21921
21922 The following changes are for using Unicode as an internal
21923 character model, and use UTF-8 format for buffer/string
21924 representation.
21925
21926 * .gdbinit (xchartable): Adjust for the change of char table structure.
21927 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21928
21929 * Makefile.in (obj): Add character.o and chartab.o.
21930 (lisp, shortlisp): Remove utf-8.elc.
21931 (*.o): For many files, change dependency on charset.h to
21932 character.h, and add dependency on character.h.
21933 (character.o, chartab.o): New targets.
21934
21935 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21936 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21937 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21938 of "charset.h".
21939
21940 * dired.c, filelock.c: Include "character.h".
21941
21942 * alloc.c: Include "character.h" instead of "charset.h".
21943 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21944 (syms_of_alloc): Remove defsubr for Smake_char_table.
21945
21946 * buffer.c: Include "character.h" instead of "charset.h", don't
21947 include "coding.h".
21948 (Fset_buffer_multibyte): Adjust for UTF-8.
21949
21950 * buffer.h: EXFUN Fbuffer_live_p.
21951
21952 * callproc.c: Include "character.h" instead of "charset.h".
21953 (Fcall_process): Big change for the new code-conversion APIs.
21954
21955 * casetab.c: Include "character.h" instead of "charset.h".
21956 (set_canon, set_identity, shuffle): Adjust for the new
21957 map_char_table spec.
21958 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21959 accessing the char table structure.
21960
21961 * chartab.c: New file that implements char table.
21962
21963 * category.c: Include "character.h".
21964 (copy_category_entry): New function.
21965 (copy_category_table): Call map_char_table and copy_category_entry.
21966 (Fmake_category_table): Initialize all top-level slots.
21967 (char_category_set): New function.
21968 (modify_lower_category_set): Delete.
21969 (Fmodify_category_entry): Call char_table_ref_and_range.
21970
21971 * category.h (CATEGORY_SET): Just call char_category_set.
21972
21973 * ccl.c: Include "character.h".
21974 (Qccl, Qcclp): New variables.
21975 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21976 it's less than 256.
21977 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21978 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21979 and DST type.
21980 (ccl_driver): Change types of argument, adjust code accordingly.
21981 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21982 ccl_driver.
21983 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21984
21985 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21986 New members src_multibyte, dst_multibyte, consumed, and produced.
21987 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21988 (CODING_SPEC_CCL_PROGRAM): New macro.
21989 (ccl_driver): Update prototype.
21990 (Qccl, Qcclp, Fccl_program_p): Extern them.
21991 (CHECK_CCL_PROGRAM): New macro.
21992
21993 * character.c, character.h, chartab.c: New files.
21994
21995 * charset.c: Mostly re-written. Move character and multibyte sequence
21996 handling codes to character.c.
21997
21998 * charset.h: Mostly re-written. Move character and multibyte sequence
21999 handling codes to character.h.
22000
22001 * coding.c, coding.h: Mostly re-written.
22002
22003 * composite.c: Include "character.h" instead of "charset.h".
22004 (CHAR_WIDTH): Move to character.h.
22005 (HASH_KEY, HASH_VALUE): Delete.
22006
22007 * composite.h (enum composition_method): Change order of enumeration
22008 symbols.
22009
22010 * data.c: Include "character.h" instead of "charset.h".
22011 (Faref): Call CHAR_TABLE_REF for a char table.
22012 (Faset): Call CHAR_TABLE_SET for a char table.
22013
22014 * dispextern.h (free_realized_face, check_face_attribytes)
22015 (generate_ascii_font): Extern them.
22016 (free_realized_multibyte_face): Delete extern.
22017
22018 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
22019 table structure.
22020
22021 * editfns.c: Include "character.h" instead of "charset.h".
22022 (Fchar_to_string): Always call CHAR_STRING.
22023
22024 * emacs.c (main): Call init_charset_once, init_charset,
22025 syms_of_chartab, and syms_of_character.
22026
22027 * fileio.c: Include "character.h" instead of "charset.h".
22028 (Finsert_file_contents): Big change for the new code-conversion API.
22029 (choose_write_coding_system, Fwrite_region): Likewise.
22030 (build_annotations_2): Delete.
22031 (e_write): Big change for the new code-conversion API.
22032
22033 * fns.c: Include "character.h" instead of "charset.h".
22034 (copy_sub_char_table): Move to chartab.c.
22035 (Fcopy_sequence): Call copy_char_table for a char table.
22036 (concat): Delete codes calling count_multibyte.
22037 (string_char_to_byte, string_byte_to_char): Adjust for the new
22038 multibyte form.
22039 (internal_equal): Adjust for the change of char table structure.
22040 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
22041 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
22042 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
22043 (char_table_translate, optimize_sub_char_table)
22044 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
22045 chartab.c.
22046 (char_table_ref_and_index): Delete.
22047 (HASH_KEY, HASH_VALUE): Move to lisp.h.
22048 (Fmd5): Call preferred_coding_system instead of accessing
22049 Vcoding_category_list. Adjust for the new code-conversion API.
22050 (syms_of_fns): Move defsubr for char table related functions to
22051 chartab.c.
22052
22053 * fontset.c: Mostly re-written.
22054
22055 * fontset.h (struct font_info): Change type of the member encoding_type.
22056 (enum FONT_SPEC_INDEX): New enum.
22057 (fontset_font_pattern, fs_load_font): Update prototype.
22058 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
22059
22060 * indent.c: Include "character.h" instead of "charset.h".
22061 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
22062
22063 * insdel.c: Include "character.h" instead of "charset.h".
22064 (copy_text): Don't refer to Vnonascii_translation_table.
22065 (insert_from_gap): New function.
22066
22067 * keyboard.c: Include "character.h" instead of "charset.h".
22068 (command_loop_1): Never call direct_output_forward_char before
22069 a non-ASCII character.
22070 (read_char): If Vkeyboard_translate_table is a char table, always
22071 translate a character.
22072
22073 * keymap.c: Include "character.h".
22074 (store_in_keymap): Handle the case that IDX is a cons.
22075 (Fdefine_key): Handle the case that KEY is a cons and the car part
22076 is also a cons (range).
22077 (push_key_description): Adjust for the new character code.
22078 (describe_vector): Call describe_char_table for a char table.
22079 (describe_char_table): New function.
22080
22081 * keymap.h (describe_char_table): Extern it.
22082
22083 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
22084 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
22085 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
22086 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
22087 Delete.
22088 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
22089 structure.
22090 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
22091 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
22092 (CHARTAB_SIZE_BITS_3): New macros.
22093 (chartab_size): Extern it.
22094 (struct Lisp_Char_Table): Re-design.
22095 (struct Lisp_Sub_Char_Table): New structure.
22096 (HASH_KEY, HASH_VALUE): Move from fns.c.
22097 (CHARACTERBITS): Define as 22.
22098 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
22099 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
22100 (GC_SUB_CHAR_TABLE_P): New macro.
22101 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
22102 (code_convert_string_norecord): Deleted extern.
22103 (init_character_once, syms_of_character, init_charset)
22104 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
22105
22106 * lread.c: Include "character.h".
22107 (read_multibyte): New arg NBYTES.
22108 (read_escape): Change the meaning of returned *BYTEREP.
22109 (to_multibyte): Delete.
22110 (read1): Adjust the handling of char table and string.
22111
22112 * print.c: Include "character.h" instead of "charset.h".
22113 (print_string): Convert 8-bit raw bytes to octal form by
22114 string_escape_byte8.
22115 (print_object): Adjust for the new multibyte form. Print 8-bit
22116 raw bytes always in octal form. Handle sub char table correctly.
22117
22118 * process.c: Include "character.h" instead of "charset.h".
22119 (read_process_output, send_process): Adjust for the new
22120 code-conversion API.
22121
22122 * puresize.h (BASE_PURESIZE): Increase.
22123
22124 * regex.c: Include "character.h" instead of "charset.h".
22125 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
22126 (regex_compile): Accept a range whose starting and ending
22127 character have different leading bytes.
22128 (analyse_first): Adjust for the above change.
22129
22130 * search.c: Include "character.h" instead of "charset.h".
22131 (search_buffer, boyer_moore): Adjust for the new multibyte form.
22132 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
22133
22134 * syntax.c: Include "character.h" instead of "charset.h".
22135 (syntax_parent_lookup): Delete.
22136 (Fmodify_syntax_entry): Accept a cons as CHAR.
22137 (skip_chars): Adjust for the new multibyte form.
22138 (init_syntax_once): Call char_table_set_range instead of directly
22139 accessing the structure of a char table.
22140
22141 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
22142 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
22143 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
22144 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
22145
22146 * term.c: Include "buffer.h" and "character.h".
22147 (encode_terminal_code, write_glyphs): Adjust for the new
22148 code-conversion API.
22149 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
22150
22151 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22152
22153 * xdisp.c: Include "character.h".
22154 (get_next_display_element): Adjust for the new multibyte form.
22155 (disp_char_vector): Adjust for the new char table structure.
22156 (decode_mode_spec_coding): Adjust for the new structure of
22157 coding system.
22158 (decode_mode_spec): Adjust for the new code-conversion API.
22159
22160 * xfaces.c: Include "character.h" instead of "charset.h".
22161 (load_face_font): Adjust for the change of choose_face_font and
22162 FS_LOAD_FONT.
22163 (generate_ascii_font): New function.
22164 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22165 (set_font_frame_param): Adjust for the change of choose_face_font.
22166 (free_realized_face): Make it public.
22167 (free_realized_faces_for_fontset): Rename from
22168 free_realized_multibyte_face. Free also faces realized for ASCII.
22169 (choose_face_font): Change arguments. Adjust for the change of
22170 fontset_font_pattern and FS_LOAD_FONT.
22171
22172 * xfns.c: Include "character.h".
22173 (x_encode_text): Adjust for the new code-conversion API.
22174
22175 * xselect.c: Don't include "charset.h".
22176 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22177
22178 * xterm.c: Include "character.h".
22179 (x_encode_char): New argument CHARSET. Change caller.
22180 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22181 Call ENCODE_CHAR instead of SPLIT_CHAR.
22182 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22183 CHAR_WIDTH instead of CHARSET_WIDTH.
22184 (XTread_socket): Adjust for the new code-conversion API.
22185 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22186 (x_load_font): Adjust for the change of struct font.
22187
221882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22189
22190 * xfaces.c (face_at_buffer_position): Remove unused vars.
22191
221922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22193
22194 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22195 Fix overflow checking.
22196
221972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22198
22199 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22200 Cancel previous change.
22201
222022008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22203
22204 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22205 ccl->eight_bit_control. Fix check for buffer overflow.
22206 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22207 (ccl_driver): Initialize extra_bytes to 0.
22208
222092008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22210
22211 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22212 return it ORed with ctrl_modifier.
22213
222142008-01-29 Miles Bader <miles@gnu.org>
22215
22216 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22217
222182008-01-28 Jason Rumney <jasonr@gnu.org>
22219
22220 * w32.c (stat): Don't double check for networked drive.
22221
222222008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22223
22224 * window.c (run_window_configuration_change_hook): New function.
22225 Code extracted from set_window_buffer. Set the selected frame.
22226 (set_window_buffer): Use it.
22227 * window.h (run_window_configuration_change_hook): Declare.
22228 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22229
22230 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22231
222322008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22233
22234 * Makefile.in: Remove references to unused macros.
22235
222362008-01-26 Eli Zaretskii <eliz@gnu.org>
22237
22238 * w32.c (g_b_init_get_sid_sub_authority)
22239 (g_b_init_get_sid_sub_authority_count): New static variables.
22240 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22241 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22242 (init_user_info): Use them to retrieve uid and gid.
22243 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22244 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22245 st_uid and st_gid of the file.
22246
222472008-01-26 Jason Rumney <jasonr@gnu.org>
22248
22249 * w32.c (logon_network_drive): New function.
22250 (stat): Use it.
22251
222522008-01-26 Chong Yidong <cyd@stupidchicken.com>
22253
22254 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22255 invisible text covered with an ellipsis.
22256
222572008-01-25 Richard Stallman <rms@gnu.org>
22258
22259 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22260 jump back to beginning. Move some other initializations after that.
22261 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22262 New variables.
22263 (syms_of_xdisp): Init them.
22264
22265 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22266
22267 * buffer.c (reset_buffer_local_variables):
22268 Implement `permanent-local-hook'.
22269 (Qpermanent_local_hook): New variable.
22270 (syms_of_buffer): Init and staticpro it.
22271
222722008-01-25 Michael Albinus <michael.albinus@gmx.de>
22273
22274 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22275
222762008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22277
22278 * fns.c (Fclrhash): Return TABLE.
22279
222802008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22281
22282 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22283 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22284 is set even without positional changes.
22285 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22286
22287 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22288
222892008-01-23 Jason Rumney <jasonr@gnu.org>
22290
22291 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22292
22293 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22294 the unicode range available in MULE by locale-coding-system.
22295 Improve dbcs lead byte detection. Set event timestamp and modifiers
22296 earlier.
22297
222982008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22299
22300 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22301 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22302 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22303 when used on child processes.
22304
223052008-01-21 Michael Albinus <michael.albinus@gmx.de>
22306
22307 * dbusbind.c (Fdbus_method_return_internal): Rename from
22308 Fdbus_method_return.
22309 (Fdbus_unregister_object): Move to dbus.el.
22310 (Fdbus_call_method, Fdbus_method_return_internal)
22311 (Fdbus_send_signal): Improve debug messages.
22312
223132008-01-20 Martin Rudalics <rudalics@gmx.at>
22314
22315 * undo.c (undo_inhibit_record_point): New variable.
22316 (syms_of_undo): Initialize it.
22317 (record_point): Don't record point when undo_inhibit_record_point
22318 is set.
22319
223202008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22321
22322 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22323
22324 * xdisp.c (Qauto_hscroll_mode): New var.
22325 (syms_of_xdisp): Initialize it.
22326 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22327 window's buffer.
22328 (hscroll_windows): Don't check automatic_hscrolling_p here.
22329
22330 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22331 vscroll if we're setting window-buffer to the value it already has.
22332
223332008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22334
22335 * m/intel386.h: Remove references to XENIX.
22336
223372008-01-17 Andreas Schwab <schwab@suse.de>
22338
22339 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22340 instead of HAVE_X86_64_LIB64_DIR.
22341 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22342
223432008-01-17 Glenn Morris <rgm@gnu.org>
22344
22345 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22346 to HAVE_X86_64_LIB64_DIR.
22347
223482008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22349
22350 * s/irix3-3.h:
22351 * s/irix4-0.h:
22352 * s/386-ix.h:
22353 * s/domain.h:
22354 * s/hpux9-x11r4.h:
22355 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22356
22357 * sysdep.c: Remove code containing references to symbols defined
22358 by unsupported systems.
22359
223602008-01-16 Glenn Morris <rgm@gnu.org>
22361
22362 * coding.c (select-safe-coding-system-function): Doc fix.
22363
223642008-01-15 Glenn Morris <rgm@gnu.org>
22365
22366 * config.in: Revert 2008-01-13 change: this is a generated file.
22367
223682008-01-13 Tom Tromey <tromey@redhat.com>
22369
22370 * lisp.h: Fix typo.
22371
223722008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22373
22374 * m/sequent-ptx.h:
22375 * m/sequent.h:
22376 * s/ptx.h:
22377 * s/ptx4-2.h:
22378 * s/ptx4.h: Remove files for systems no longer supported.
22379
22380 * callproc.c (Fcall_process): Fix previous change.
22381
223822008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22383
22384 * unexsunos4.c: Remove file, system not supported anymore.
22385
22386 * m/mips.h:
22387 * m/intel386.h:
22388 * callproc.c:
22389 * config.in:
22390 * ecrt0.c:
22391 * emacs.c:
22392 * fileio.c:
22393 * frame.c:
22394 * getpagesize.h:
22395 * keyboard.c:
22396 * lread.c:
22397 * process.c:
22398 * puresize.h:
22399 * sysdep.c:
22400 * systty.h:
22401 * syswait.h:
22402 * unexec.c:
22403 * xdisp.c:
22404 * alloc.c: Remove code containing references to symbols defined by
22405 unsupported systems.
22406
224072008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22408
22409 * coding.c (detect_coding_mask): Fix previous change.
22410
224112008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22412
22413 * coding.c (detect_coding_iso2022): New arg
22414 latin_extra_code_state. Allow Latin extra codes only
22415 when *latin_extra_code_state is nonzero.
22416 (detect_coding_mask): If there is a NULL byte, detect the encoding
22417 as UTF-16 or binary. If Latin extra codes exist, detect the
22418 encoding as ISO-2022 only when there's no other proper encoding is
22419 found.
22420
224212008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22422
22423 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22424 #ifdef MAC_OS.
22425
224262008-01-08 Richard Stallman <rms@gnu.org>
22427
22428 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22429
224302008-01-06 Nick Roberts <nickrob@snap.net.nz>
22431
22432 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22433 menu bar in parentheses.
22434
224352008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22436
22437 * m/7300.h:
22438 * m/acorn.h:
22439 * m/alliant-2800.h:
22440 * m/alliant.h:
22441 * m/alliant1.h:
22442 * m/alliant4.h:
22443 * m/altos.h:
22444 * m/amdahl.h:
22445 * m/apollo.h:
22446 * m/att3b.h:
22447 * m/aviion-intel.h:
22448 * m/aviion.h:
22449 * m/celerity.h:
22450 * m/clipper.h:
22451 * m/cnvrgnt.h:
22452 * m/convex.h:
22453 * m/cydra5.h:
22454 * m/delta88k.h:
22455 * m/dpx2.h:
22456 * m/dual.h:
22457 * m/elxsi.h:
22458 * m/f301.h:
22459 * m/gould-np1.h:
22460 * m/gould.h:
22461 * m/i860.h:
22462 * m/ibmps2-aix.h:
22463 * m/ibmrt-aix.h:
22464 * m/ibmrt.h:
22465 * m/irist.h:
22466 * m/is386.h:
22467 * m/isi-ov.h:
22468 * m/mega68.h:
22469 * m/mg1.h:
22470 * m/news-r6.h:
22471 * m/news-risc.h:
22472 * m/news.h:
22473 * m/nh3000.h:
22474 * m/nh4000.h:
22475 * m/ns16000.h:
22476 * m/ns32000.h:
22477 * m/nu.h:
22478 * m/orion.h:
22479 * m/orion105.h:
22480 * m/paragon.h:
22481 * m/pfa50.h:
22482 * m/plexus.h:
22483 * m/pyramid.h:
22484 * m/pyrmips.h:
22485 * m/sh3el.h:
22486 * m/sps7.h:
22487 * m/sr2k.h:
22488 * m/stride.h:
22489 * m/sun1.h:
22490 * m/sun2.h:
22491 * m/sun3-68881.h:
22492 * m/sun3-fpa.h:
22493 * m/sun3-soft.h:
22494 * m/sun3.h:
22495 * m/sun386.h:
22496 * m/symmetry.h:
22497 * m/tad68k.h:
22498 * m/tahoe.h:
22499 * m/targon31.h:
22500 * m/tek4300.h:
22501 * m/tekxd88.h:
22502 * m/tower32.h:
22503 * m/tower32v3.h:
22504 * m/ustation.h:
22505 * m/wicat.h:
22506 * m/xps100.h:
22507 * s/cxux.h:
22508 * s/cxux7.h:
22509 * s/dgux.h:
22510 * s/dgux4.h:
22511 * s/dgux5-4-3.h:
22512 * s/dgux5-4r2.h:
22513 * s/esix.h:
22514 * s/esix5r4.h:
22515 * s/hiuxmpp.h:
22516 * s/hiuxwe2.h:
22517 * s/iris3-5.h:
22518 * s/iris3-6.h:
22519 * s/isc2-2.h:
22520 * s/isc3-0.h:
22521 * s/isc4-0.h:
22522 * s/isc4-1.h:
22523 * s/newsos5.h:
22524 * s/newsos6.h:
22525 * s/osf1.h:
22526 * s/osf5-0.h:
22527 * s/riscix1-1.h:
22528 * s/riscix12.h:
22529 * s/sco4.h:
22530 * s/sco5.h:
22531 * s/sunos4-0.h:
22532 * s/sunos4-1.h:
22533 * s/sunos413.h:
22534 * s/sunos4shr.h:
22535 * s/umax.h:
22536 * s/unipl5-2.h:
22537 * s/xenix.h:
22538 * cxux-crt0.s:
22539 * unexapollo.c:
22540 * unexconvex.c:
22541 * unexenix.c:
22542 * unexsni.c: Remove files for systems no longer supported.
22543
22544 * m/intel386.h: Remove references to unsupported systems.
22545
22546 * w32.c (get_emacs_configuration): Remove reference to i860.
22547
22548 * sysdep.c: Remove dead code.
22549
225502008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22551
22552 * s/rtu.h:
22553 * m/masscomp.h: Remove files. Platform is obsolete.
22554
225552008-01-04 Michael Albinus <michael.albinus@gmx.de>
22556
22557 * dbusbind.c (Fdbus_method_return): New function.
22558 (xd_read_message): Add the serial number to the event.
22559 (Fdbus_register_method): Activate the function.
22560
225612008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22562
22563 * keyboard.c (read_key_sequence): Fix typo.
22564
225652008-01-03 Michael Albinus <michael.albinus@gmx.de>
22566
22567 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22568 (xd_signature, xd_append_arg): Handle element type detection for
22569 empty arrays.
22570 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22571 SDATA () calls; this must be solved more general.
22572 (Fdbus_register_signal): Use SBYTES instead of strlen.
22573
225742008-01-03 Magnus Henoch <magnus@zemdatav>
22575
22576 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22577 unsigned int for byte values (necessary for big-endian platform).
22578 (Fdbus_call_method): Handle the case of no returned arguments.
22579
225802007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22581
22582 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22583
225842007-12-31 Magnus Henoch <mange@freemail.hu>
22585
22586 * dbusbind.c (xd_signature): Signature of variant is just "v".
22587
225882007-12-30 Michael Albinus <michael.albinus@gmx.de>
22589
22590 * dbusbind.c: Fix several errors and compiler warnings.
22591 Reported by Tom Tromey <tromey@redhat.com>.
22592 (XD_ERROR, XD_DEBUG_MESSAGE)
22593 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22594 (xd_append_arg): Part for basic D-Bus types rewritten.
22595 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22596 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22597 appropriate.
22598 (xd_read_message): Return Qnil. Don't signal an error; it is not
22599 useful during event reading.
22600 (Fdbus_register_signal): Signal an error if the check for
22601 FUNCTIONP fails.
22602 (Fdbus_register_method): New function. The implementation is not
22603 complete, the call of the function signals an error therefore.
22604 (Fdbus_unregister_object): New function, renamed from
22605 Fdbus_unregister_signal. The initial check signals an error, if
22606 the object is not well formed.
22607
226082007-12-30 Richard Stallman <rms@gnu.org>
22609
22610 * textprop.c (get_char_property_and_overlay):
22611 Signal error if POSITION is out of range in a buffer.
22612
226132007-12-29 Martin Rudalics <rudalics@gmx.at>
22614
22615 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22616 because the original parameters are in pure storage now.
22617
226182007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22619
22620 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22621
226222007-12-22 Eli Zaretskii <eliz@gnu.org>
22623
22624 * callint.c (syms_of_callint) <command-history>: Add reference to
22625 history-length in the doc string.
22626
226272007-12-17 Jason Rumney <jasonr@gnu.org>
22628
22629 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22630 before passing as wParam.
22631
226322007-12-22 Michael Albinus <michael.albinus@gmx.de>
22633
22634 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22635 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22636 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22637 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22638 as number.
22639 (Fdbus_call_method): Fix docstring.
22640
226412007-12-21 Michael Albinus <michael.albinus@gmx.de>
22642
22643 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22644 New macros.
22645 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22646 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22647 Simplify.
22648 (xd_signature): New function.
22649 (xd_append_arg): Compute also signatures. Major rewrite.
22650 (xd_retrieve_arg): Make debug messages friendly.
22651 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22652 Check for signatures of arguments.
22653
226542007-12-19 Michael Albinus <michael.albinus@gmx.de>
22655
22656 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22657 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22658 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22659 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22660 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22661 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22662 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22663 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22664 (xd_retrieve_value): Remove. Functionality included in ...
22665 (xd_append_arg): New function.
22666 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22667
226682007-12-16 Michael Albinus <michael.albinus@gmx.de>
22669
22670 * dbusbind.c (top): Include <stdio.h>.
22671 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22672 dbus_message_new_method_call and dbus_message_new_signal.
22673 (Fdbus_register_signal): Rename unique_name to uname.
22674 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22675 non-existing unique name. Fix typos in matching rule. Return an
22676 object which is useful in Fdbus_unregister_signal.
22677 (Fdbus_unregister_signal): Reimplementation, in order to remove
22678 only the corresponding entry.
22679 (Vdbus_registered_functions_table): Change the order of entries.
22680 Apply these changes in xd_read_message and Fdbus_register_signal.
22681
226822007-12-16 Andreas Schwab <schwab@suse.de>
22683
22684 * fileio.c (Finsert_file_contents): Fix overflow check to not
22685 depend on undefined integer overflow.
22686
226872007-12-14 Jason Rumney <jasonr@gnu.org>
22688
22689 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22690 for characters above 127.
22691
226922007-12-13 Jason Rumney <jasonr@gnu.org>
22693
22694 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22695 before dereferencing array.
22696 (lookup_vk_code): Remove zero comparison.
22697
226982007-12-14 Michael Albinus <michael.albinus@gmx.de>
22699
22700 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22701 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22702 Use `unsigned int' instead of `uint'.
22703 (xd_read_message, Fdbus_register_signal): Split expressions into
22704 multiple lines before operators "&&" and "||", according to the
22705 GNU Coding Standards.
22706
227072007-12-14 Eli Zaretskii <eliz@gnu.org>
22708
22709 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22710
227112007-12-12 Juri Linkov <juri@jurta.org>
22712
22713 * buffer.c (Frename_buffer): In interactive spec replace
22714 `read-buffer' with `read-string' that uses `buffer-name-history'
22715 as history, and the current buffer's name as default.
22716
227172007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22718
22719 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22720 manipulating the backtrace manually.
22721 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22722 (struct backtrace, backtrace_list): Remove.
22723 (command_loop_1): Remove dead var `no_direct'.
22724
22725 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22726 preserve non-built-in buffer-local variables.
22727 (Fkill_all_local_variables): Don't re-create&re-set permanent
22728 buffer-local variables.
22729
227302007-12-09 Juri Linkov <juri@jurta.org>
22731
22732 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22733 Lisp code that uses `read-buffer' with current buffer as default.
22734
227352007-12-08 Michael Albinus <michael.albinus@gmx.de>
22736
22737 * dbusbind.c (xd_read_message): Generate an event for every
22738 registered handler. There might be several handlers registered
22739 for the same signal.
22740 (Fdbus_register_signal): Don't overwrite a registration for the
22741 same signal. Add a new registration if handlers are different.
22742 (Vdbus_registered_functions_table): Rework doc string.
22743
227442007-12-07 Michael Albinus <michael.albinus@gmx.de>
22745
22746 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22747 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22748 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22749 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22750 Unify argument lists.
22751 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22752 arguments and hash table keys. Use unique name for service.
22753 (Fdbus_unregister_signal): Remove checks.
22754 (Vdbus_registered_functions_table): Fix doc string.
22755
227562007-12-05 Magnus Henoch <mange@freemail.hu>
22757
22758 * process.c (make_process): Initialize pty_flag to 0.
22759
227602007-12-05 Jason Rumney <jasonr@gnu.org>
22761
22762 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22763 specified XBMs.
22764
227652007-12-05 Richard Stallman <rms@gnu.org>
22766
22767 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22768
227692007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22770
22771 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22772 New variable.
22773 (mac_try_close_socket) [MAC_OSX]: New function.
22774 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22775 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22776
22777 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22778 Use mac_try_close_socket.
22779
227802007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22781
22782 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22783 reloc_base.
22784 (copy_dysymtab): Compute relocation base here.
22785 (rebase_reloc_address) [__ppc64__]: New function.
22786 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22787 changed.
22788
227892007-12-05 Jason Rumney <jasonr@gnu.org>
22790
22791 * w32proc.c (sys_spawnve): Quote args with wildcards.
22792
227932007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22794
22795 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22796 __objc_* sections.
22797 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22798
227992007-12-05 Michael Albinus <michael.albinus@gmx.de>
22800
22801 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22802 Move check for Vdbus_registered_functions_table to
22803 xd_read_queued_messages.
22804 (xd_read_queued_messages): Protect xd_read_message calls by
22805 internal_condition_case_1.
22806
228072007-12-04 Michael Albinus <michael.albinus@gmx.de>
22808
22809 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22810 Qdbus_system_bus and Qdbus_session_bus, respectively.
22811 (Vdbus_intern_symbols): Remove.
22812 (Vdbus_registered_functions_table): New hash table.
22813 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22814 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22815 Rewrite in order to manage registered functions by hash table
22816 Vdbus_registered_functions_table.
22817
228182007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22819
22820 * xterm.c: Update URL to Window Manager Specification in comment.
22821
228222007-12-02 Michael Albinus <michael.albinus@gmx.de>
22823
22824 * config.in (HAVE_DBUS): Add.
22825
22826 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22827 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22828 (obj): Add $(DBUS_OBJ).
22829 (LIBES): Add $(DBUS_LIBS).
22830 (dbusbind.o): New target.
22831
22832 * dbusbind.c: New file.
22833
22834 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22835
22836 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22837 (Qdbus_event): New Lisp symbol.
22838 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22839 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22840 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22841
22842 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22843
228442007-12-01 Richard Stallman <rms@gnu.org>
22845
22846 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22847
228482007-11-30 Jason Rumney <jasonr@gnu.org>
22849
22850 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22851 (w32con_reset_terminal_modes): Clear screen buffer.
22852 (w32_face_attributes): Don't use color indexes that are out of range.
22853 Only reverse the default colors.
22854
22855 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22856 WINDOWSNT.
22857
22858 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22859
228602007-11-29 Jason Rumney <jasonr@gnu.org>
22861
22862 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22863 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22864 if the terminal colors are initialized.
22865 (unspecified_fg, unspecified_bg): Remove unused declarations.
22866
228672007-11-29 Andreas Schwab <schwab@suse.de>
22868
22869 * keyboard.c (apply_modifiers): Fix typo.
22870
228712007-11-29 Richard Stallman <rms@gnu.org>
22872
22873 * keymap.c (Fcurrent_local_map): Doc fix.
22874
228752007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22876
22877 * s/gnu-kfreebsd.h: New file.
22878
228792007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22880
22881 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22882 Don't cast redundantly.
22883
22884 * keyboard.c (KEY_TO_CHAR): New macro.
22885 (parse_modifiers, apply_modifiers): Accept integer arguments.
22886 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22887 for chars and symbol keys.
22888 After doing such remapping, apply function-key-map again.
22889
228902007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22891
22892 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22893 compiled anymore.
22894
228952007-11-26 Andreas Schwab <schwab@suse.de>
22896
22897 * process.c (list_processes_1): Fix indentation level of the
22898 command column.
22899
229002007-11-23 Andreas Schwab <schwab@suse.de>
22901
22902 * editfns.c (Fformat): Handle %c specially since it requires the
22903 argument to be of type int.
22904
229052007-11-23 Markus Triska <markus.triska@gmx.at>
22906
22907 * emacs.c (main): Call init_editfns before init_process, since
22908 init_process sets Vprocess_connection_type depending on OS release.
22909
229102007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22911
22912 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22913 (find_symbol_value): Use do_symval_forwarding.
22914
22915 * data.c (set_internal): Set the value in the `cons-cell' (for
22916 Buffer_Local_values) not only for frame-local variables.
22917
229182007-11-22 Andreas Schwab <schwab@suse.de>
22919
22920 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22921 values to sprintf.
22922 * keymap.c (Fsingle_key_description): Likewise.
22923 * print.c (print_object): Likewise.
22924
229252007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22926
22927 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22928 file for image is nil.
22929
229302007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22931
22932 * term.c: Include stdarg.h.
22933 (fatal): Implement using varargs.
22934 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22935
229362007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22937
22938 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22939 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22940 Update call to buffer_slot_type_mismatch.
22941 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22942 (buffer_slot_type_mismatch): Update.
22943 * buffer.c (buffer_local_types): Remove.
22944 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22945 (defvar_per_buffer): Set the type in the buffer_objfwd.
22946
229472007-11-21 Jason Rumney <jasonr@gnu.org>
22948
22949 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22950 CreateFileMapping returns NULL on failure.
22951
229522007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22953
22954 * search.c (Fset_match_data): Remove the `evaporate' feature.
22955 (unwind_set_match_data): Don't use the `evaporate' feature.
22956
229572007-11-21 Jason Rumney <jasonr@gnu.org>
22958
22959 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22960
22961 * w32console.c (w32con_write_glyphs): Remove unused variables.
22962
229632007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22964
22965 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22966
22967 * s/darwin.h (MULTI_KBOARD): Remove.
22968
22969 * macfns.c (x_create_tip_frame, Fx_create_frame)
22970 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22971
229722007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22973
22974 * buffer.c (Fbuffer_local_value): Remove redundant test.
22975 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22976 than in `current-buffer' to match the comment.
22977 Do the swap using swap_in_global_binding.
22978
22979 * data.c (store_symval_forwarding, set_internal):
22980 * eval.c (specbind): Remove dead code.
22981
22982 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22983 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22984 Since we do not want to see internal Lisp_*fwd objects here.
22985
229862007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22987
22988 * sysdep.c (init_system_name): Use getaddrinfo if available.
22989
22990 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22991 (x_scroll_bar_note_movement): start, end, with, height in struct
22992 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22993
229942007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22995
22996 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22997
229982007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22999
23000 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
23001 This undoes Richard's change of 14-Oct-2002.
23002
23003 * alloc.c (allocate_other_vector):
23004 * lisp.h (allocate_other_vector): Remove.
23005
23006 * window.c (struct save_window_data): Move non-lisp data to the end
23007 and make it `int' rather than Lisp_Object.
23008 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
23009 Done wrap/unwrap integer values.
23010 (Fset_window_configuration, compare_window_configurations):
23011 Update use of fields to their new types.
23012
23013 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
23014 Turn integer fields into `int'. Merge x_window_low and x_window_high.
23015 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
23016 (SET_SCROLL_BAR_X_WINDOW): Remove.
23017 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
23018 Access the new x_window field directly.
23019 * xterm.c (x_scroll_bar_create): Use a pseudovector.
23020 Don't wrap/unwrap integers into Lisp_Objects.
23021 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
23022 (x_scroll_bar_report_motion):
23023 Don't wrap/unwrap integers into Lisp_Objects.
23024 (x_term_init): Use SDATA.
23025 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
23026 (x_scroll_bar_set_handle, x_scroll_bar_remove)
23027 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
23028 (x_scroll_bar_report_motion, x_scroll_bar_clear):
23029 * xfns.c (x_set_background_color):
23030 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
23031 Access the new x_window field directly.
23032
23033 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
23034 (allocate_pseudovector): Make non-static.
23035
23036 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
23037 (allocate_pseudovector): Declare.
23038 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
23039
230402007-11-15 Andreas Schwab <schwab@suse.de>
23041
23042 * editfns.c (Fformat): Correctly format EMACS_INT values.
23043 Also take precision into account when formatting an integer.
23044
23045 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
23046
230472007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
23048
23049 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
23050 (syms_of_keyboard): Defsubr it.
23051
23052 * data.c (swap_in_global_binding): Fix longstanding bug where
23053 store_symval_forwarding was not called with the right second argument,
23054 thus causing objfwd-ing from being dropped.
23055
230562007-11-14 Juanma Barranquero <lekktu@gmail.com>
23057
23058 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
23059 (Fx_display_pixel_height, Fx_display_planes)
23060 (Fx_display_color_cells, Fx_server_max_request_size)
23061 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23062 (Fx_display_visual_class, Fx_display_save_under):
23063 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
23064 (Fx_display_pixel_height, Fx_display_planes)
23065 (Fx_display_color_cells, Fx_server_max_request_size)
23066 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
23067 (Fx_display_mm_height, Fx_display_mm_width)
23068 (Fx_display_backing_store, Fx_display_visual_class)
23069 (Fw32_select_font, Fx_display_save_under):
23070 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
23071 (Fx_display_pixel_height, Fx_display_planes)
23072 (Fx_display_color_cells, Fx_server_max_request_size)
23073 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
23074 (Fx_display_save_under): Fix typos in docstrings.
23075
230762007-11-14 Juanma Barranquero <lekktu@gmail.com>
23077
23078 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
23079 corresponding to deleted entries; they are an implementation detail.
23080 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
23081 Remove variables.
23082 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
23083 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
23084 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
23085 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
23086 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
23087 (Fw32_define_rgb_color, Fw32_load_color_file)
23088 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
23089 Fix typos in docstrings.
23090 (Fx_server_version): Reflow docstring.
23091 (Fw32_shell_execute): Doc fixes.
23092
230932007-11-13 Juanma Barranquero <lekktu@gmail.com>
23094
23095 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
23096 if w32_parse_hot_key returned nil.
23097
230982007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
23099
23100 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
23101
231022007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 23103
aac0c6e3
MR
23104 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
23105
23106 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
23107
23108 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
23109 Remove W32_SCROLL_BAR_CLICK_EVENT.
23110
23111 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
23112 Add MULTIMEDIA_KEY_EVENT.
23113
23114 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
23115 (lispy_multimedia_keys) [WINDOWSNT]: New array.
23116 (make_lispy_event) [WINDOWSNT]: Use it to translate
23117 MULTIMEDIA_KEY_EVENT.
23118
23119 * w32term.h (WM_APPCOMMAND): Define if not already.
23120 (GET_APPCOMMAND_LPARAM): Likewise.
23121
23122 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
23123 WM_APPCOMMAND.
23124
23125 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
23126 (syms_of_w32fns): Export and initialize it.
23127 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
23128
231292007-11-09 Chong Yidong <cyd@stupidchicken.com>
23130
23131 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
23132 twice.
23133
23134 * xdisp.c (handle_face_prop): Fix last change.
23135
231362007-11-09 Richard Stallman <rms@gnu.org>
23137
23138 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
23139 not just for after-strings and before-strings.
23140 Call face_for_overlay_string and pass the overlay to it.
23141 (handle_display_prop): Determine whether property came from an overlay.
23142 Pass OVERLAY arg to handle_single_display_spec.
23143 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
23144 (load_overlay_strings): Fill in it->string_overlays.
23145 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
23146
23147 * xfaces.c (face_for_overlay_string): Function renamed from
23148 face_at_buffer_position_no_overlays, and add arg OVERLAY.
23149
23150 * dispextern.h (struct it): New elt string_overlays.
23151 New elt from_overlay, also in stack.
23152 Rearrange a few elements.
23153 (face_for_overlay_string): Decl renamed from
23154 face_at_buffer_position_no_overlays, and add argument.
23155
231562007-11-09 Richard Stallman <rms@gnu.org>
23157
23158 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23159 to get the base face for an overlay string.
23160
23161 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23162
23163 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23164
23165 * xdisp.c (handle_stop): Move some code out of loop.
23166
231672007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23168
23169 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23170 Fix conversion from Lisp object to ATSUFontID.
23171
231722007-11-09 Jason Rumney <jasonr@gnu.org>
23173
23174 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23175
231762007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23177
23178 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23179 Don't assume regions are aligned to page boundary.
23180 (print_load_command_name): Add LC_UUID if defined.
23181
231822007-11-09 Richard Stallman <rms@gnu.org>
23183
23184 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23185
231862007-11-07 Jason Rumney <jasonr@gnu.org>
23187
23188 * s/windows95.h: Remove.
23189
231902007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23191
23192 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23193 abort with a message on unhandled store_type values.
23194
231952007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23196
23197 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23198 Remove HAVE_X11R5 and HAVE_X11R4.
23199
232002007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23201
23202 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23203
232042007-11-01 Johan Bockgård <bojohan@gnu.org>
23205
23206 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23207 Don't set s->stippled_p here, since it has already been set by
23208 x_set_glyph_string_gc from x_draw_glyph_string.
23209
232102007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23211
23212 * sunfns.c: Remove file.
23213
23214 * m/sun386.h:
23215 * m/sun2.h:
23216 * m/sparc.h: Remove Sun windows code.
23217
232182007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23219
23220 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23221 (init_keyboard): Set current_kboard's window-system to nil.
23222 (tty_read_avail_input): Typo.
23223 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23224
232252007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23226
23227 * s/usg5-4.h:
23228 * s/usg5-3.h:
23229 * s/ptx.h:
23230 * m/is386.h:
23231 * m/ibmps2-aix.h:
23232 * Makefile.in: Remove all mentions of X10.
23233
23234 * dispnew.c (syms_of_display): Don't mention version 10.
23235
232362007-10-28 Juanma Barranquero <lekktu@gmail.com>
23237
23238 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23239 ($(BLD)/abbrev.$(O)): Remove.
23240
232412007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23242
23243 Rewrite abbrev.c in Elisp.
23244 * image.c (Qcount): Don't declare as extern.
23245 (syms_of_image): Initialize and staticpro `Qcount'.
23246 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23247 * emacs.c (main): Don't call syms_of_abbrev.
23248 * Makefile.in (obj): Remove abbrev.o.
23249 (abbrev.o): Remove.
23250 * abbrev.c: Remove.
23251
232522007-10-26 Martin Rudalics <rudalics@gmx.at>
23253
23254 * window.c (window_min_size_2): Don't count header-line.
23255
232562007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23257
23258 * frame.h (struct frame): Move all bit fields after the first bit
23259 field to take advantage of the available space. Group all the
23260 chars together to reduce wasted space due to padding.
23261
232622007-10-26 Juanma Barranquero <lekktu@gmail.com>
23263
23264 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23265
23266 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23267 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23268 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23269 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23270 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23271 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23272 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23273 (last_marked, mark_object_loop_halt): Make static.
23274
23275 * frame.c (syms_of_frame) <delete-frame-functions>:
23276 Fix typo in docstring.
23277
232782007-10-25 Juanma Barranquero <lekktu@gmail.com>
23279
23280 * w32.c (init_environment): Fix tiny memory leak.
23281 (w32_get_resource): Remove unused variable `ok'.
23282
232832007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23284
23285 Make `window-system' into a keyboard-local variable (rather than
23286 frame-local as done originally by multi-tty).
23287
23288 * keyboard.h (struct kboard): Add Vwindow_system.
23289 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23290 (mark_kboards): Mark Vwindow_system.
23291
23292 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23293 (init_display): Don't set the obsolete `window-system' frame-param.
23294
23295 * xterm.c (x_term_init):
23296 * w32term.c (w32_create_terminal):
23297 * term.c (init_tty): Set Vwindow_system.
23298 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23299 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23300
23301 * xfns.c (Fx_create_frame, x_create_tip_frame):
23302 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23303 * macfns.c (Fx_create_frame):
23304 Don't set the obsolete `window-system' frame-param.
23305
23306 * frame.h (Qwindow_system): Remove.
23307 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23308 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23309
233102007-10-24 Richard Stallman <rms@gnu.org>
23311
23312 * frame.c (x_figure_window_size): For fullscreen case,
23313 set USPosition | PPosition without clobbering rest of window_prompting.
23314
23315 * keyboard.c (Fcurrent_idle_time): Doc fix.
23316
23317 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23318
233192007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23320
23321 * process.c (unwind_request_sigio): Only define if __ultrix__.
23322
23323 * callproc.c (child_setup): Remove spurious *.
23324
23325 * lisp.h (Fget_text_property): Declare.
23326 (have_menus_p): Declare it here rather than in sys-dep header files.
23327 * macterm.h (have_menus_p):
23328 * msdos.h (have_menus_p):
23329 * xterm.h (have_menus_p): Remove.
23330
23331 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23332 (Fmake_variable_frame_local): Just check the variable's const-ness
23333 rather than checking nil or t.
23334
233352007-10-22 Jason Rumney <jasonr@gnu.org>
23336
23337 * w32fns.c: Include math.h.
23338 (w32_abort): Declaration moved to nt/config.nt.
23339
23340 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23341 (abort): Redefinition moved to nt/config.nt.
23342
23343 * m/windowsnt.h: Remove.
23344
233452007-10-22 Juanma Barranquero <lekktu@gmail.com>
23346
23347 * emacs.c (Fdump_emacs): Fix typo in message.
23348 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23349 <installation-directory>: Reflow docstring.
23350
233512007-10-22 Juri Linkov <juri@jurta.org>
23352
23353 * minibuf.c: Allow minibuffer default to be a list of default values.
23354 With empty input use the first element of this list as returned default.
23355 (string_to_object)
23356 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23357 (read_minibuf): If defalt is cons, set histstring to its car.
23358 (Fread_string): If default_value is cons, set val to its car.
23359 (Fread_buffer): If def is cons, use its car.
23360 (Fcompleting_read): If defalt is cons, set val to its car.
23361
233622007-10-21 Michael Albinus <michael.albinus@gmx.de>
23363
23364 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23365
233662007-10-20 Juanma Barranquero <lekktu@gmail.com>
23367
23368 * doc.c (Fdocumentation): Check for advice in all cases.
23369
233702007-10-19 Chong Yidong <cyd@stupidchicken.com>
23371
23372 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23373
233742007-10-19 Richard Stallman <rms@gnu.org>
23375
23376 * doc.c (Fdocumentation): Check for and handle an advised function.
23377
233782007-10-19 Juanma Barranquero <lekktu@gmail.com>
23379
23380 * process.c (Fset_process_filter): Doc fix.
23381
233822007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23383
23384 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23385 which caused key-translation-map to applied repeatedly (thus breaking
23386 double-mode).
23387
233882007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23389
23390 * xselect.c (x_own_selection, x_handle_selection_clear)
23391 (x_clear_frame_selections):
23392 * w32menu.c (list_of_panes, list_of_items):
23393 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23394 * textprop.c (validate_plist, interval_has_all_properties)
23395 (interval_has_some_properties, interval_has_some_properties_list)
23396 (add_properties, text_property_list):
23397 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23398 * minibuf.c (Fassoc_string):
23399 * macselect.c (x_own_selection, x_clear_frame_selections)
23400 (Fx_disown_selection_internal):
23401 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23402 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23403
234042007-10-17 Chong Yidong <cyd@stupidchicken.com>
23405
23406 * process.c: Link to libs for calling res_init() if available.
23407 (Fmake_network_process): Call res_init() before getaddrinfo or
23408 gethostbyname, if possible.
23409
234102007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23411
23412 * lread.c (read1): Set pvectype for char_tables.
23413
23414 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23415 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23416 Add type checks.
23417 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23418
23419 * alloc.c (free_misc): Use XMISCTYPE.
23420 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23421
234222007-10-17 Glenn Morris <rgm@gnu.org>
23423
23424 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23425 (syms_of_minibuf): Add Qcompletion_ignore_case.
23426 * dired.c (Qcompletion_ignore_case): Change to external.
23427 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23428 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23429 (Fread_file_name): Use it rather than intern'ing.
23430
23431 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23432 (Fread_coding_system): Ignore case of user input.
23433
234342007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23435
23436 * xdisp.c (handle_display_prop): Ignore display specs after
23437 replacing one when string text is being replaced.
23438 (handle_single_display_spec): Pretend as if characters with display
23439 property haven't been consumed only when buffer text is being replaced.
23440
234412007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23442
23443 * xfns.c (Fx_create_frame, Fx_display_list):
23444 * window.c (window_fixed_size_p, enlarge_window)
23445 (shrink_window_lowest_first):
23446 * macterm.c (init_font_name_table):
23447 * macfns.c (Fx_create_frame, Fx_display_list):
23448 * lread.c (close_load_descs):
23449 * keyboard.c (read_char_x_menu_prompt):
23450 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23451 * coding.c (code_convert_region_unwind): Test the type of an object
23452 rather than just !NILP before extracting data from it.
23453
23454 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23455
23456 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23457 (XMISCANY): New macro.
23458 (XMISCTYPE): Use it.
23459 (struct Lisp_Misc_Any): New type.
23460 (union Lisp_Misc): Use it.
23461 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23462 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23463 (find_symbol_value, set_internal, default_value, Fset_default)
23464 (Fmake_variable_buffer_local, Fmake_local_variable)
23465 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23466 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23467 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23468 * alloc.c (allocate_buffer): Set the size and tag.
23469 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23470 Use XMISCANY.
23471 (die): Follow the GNU convention for error messages.
23472 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23473 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23474 tag any more.
23475 (set_buffer_internal_1):
23476 * frame.c (store_frame_param):
23477 * eval.c (specbind):
23478 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23479
23480 * doc.c (Fsnarf_documentation): Simplify.
23481
234822007-10-14 Juanma Barranquero <lekktu@gmail.com>
23483
23484 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23485 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23486
234872007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23488
23489 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23490
234912007-10-14 Juanma Barranquero <lekktu@gmail.com>
23492
23493 * eval.c (do_autoload): Don't save autoloads.
23494
23495 * data.c (Ffset): Save autoload of the function being set.
23496
234972007-10-07 John Paul Wallington <jpw@pobox.com>
23498
23499 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23500 parameter before setting up faces.
23501
235022007-10-13 Eli Zaretskii <eliz@gnu.org>
23503
23504 * ccl.c (Fregister_code_conversion_map):
23505 * keyboard.c (append_tool_bar_item): Reformat last change.
23506
23507 * lisp.h (eabs): Rename from `abs'. All callers changed.
23508
235092007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23510
23511 * buffer.c (add_overlay_mod_hooklist):
23512 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23513 * fontset.c (make_fontset):
23514 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23515 (append_tool_bar_item):
23516 * macmenu.c (grow_menu_items):
23517 * w32menu.c (grow_menu_items):
23518 * xmenu.c (grow_menu_items): Use larger_vector.
23519
235202007-10-13 Eli Zaretskii <eliz@gnu.org>
23521
23522 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23523 selected frame'' on MSDOS).
23524
235252007-10-12 Martin Rudalics <rudalics@gmx.at>
23526
23527 * frame.c (Qexplicit_name): New variable.
23528 (x_report_frame_params): Report it in parameter alist.
23529 (syms_of_frame): Intern and staticpro it.
23530
235312007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23532
23533 * macfns.c (x_create_tip_frame): Set terminal for frame.
23534
235352007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23536
23537 * frame.c (Qenvironment): Remove.
23538 (syms_of_frame) <Qenvironment>: Don't initialize.
23539 (Fdelete_frame): Don't treat the `environment' param specially.
23540 * frame.h (Qenvironment): Don't declare.
23541 * callproc.c (set_initial_environment): Don't set unused frame param.
23542
23543 * frame.c (Fframe_with_environment): Remove.
23544 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23545
23546 * lisp.h (Fframe_with_environment): Don't declare.
23547
235482007-10-10 Juanma Barranquero <lekktu@gmail.com>
23549
23550 * indent.c (indent_tabs_mode, last_known_column)
23551 (last_known_column_modified): Make static.
23552 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23553
235542007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23555
23556 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23557
235582007-10-09 Jason Rumney <jasonr@gnu.org>
23559
23560 * w32term.c (x_set_window_size): Disable code that attempts to tell
23561 Lisp code about a size change before it actually happens.
23562
235632007-10-09 Richard Stallman <rms@gnu.org>
23564
23565 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23566 return HANDLED_RETURN.
23567
235682007-10-08 Martin Rudalics <rudalics@gmx.at>
23569
23570 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23571 when there's an unread command event.
23572
23573 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23574 window autoselection act appropriately when leaving selected frame.
23575 (syms_of_frame): Initialize focus_follows_mouse.
23576 * frame.h (focus_follows_mouse): Extern it.
23577 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23578 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23579 * msdos.c (dos_rawgetc): Likewise.
23580 * w32term.c (w32_read_socket): Likewise.
23581 * xterm.c (handle_one_xevent): Likewise.
23582 * xdisp.c (syms_of_xdisp): In doc-string of
23583 mouse-autoselect-window mention focus-follows-mouse.
23584
235852007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23586
23587 * macterm.c (mac_load_query_font): Fix missing return value.
23588 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23589 Add BLOCK_INPUT.
23590
235912007-10-08 Richard Stallman <rms@gnu.org>
23592
23593 * xdisp.c (get_window_cursor_type): Implement documented behavior
23594 for cursor-in-non-selected-windows = t.
23595
235962007-10-08 Jason Rumney <jasonr@gnu.org>
23597
23598 * w32.c (w32_get_resource): Always close registry keys.
23599
236002007-10-08 Jason Rumney <jasonr@gnu.org>
23601
23602 * makefile.w32-in (LIBS): Add COMCTL32.
23603
23604 * w32fns.c (globals_of_w32fns): Init common controls.
23605
236062007-10-08 Richard Stallman <rms@gnu.org>
23607
23608 * image.c (our_memory_buffer): Rename from omfib_buffer.
23609
236102007-10-08 Richard Stallman <rms@gnu.org>
23611
23612 * buffer.c (Foverlays_at): Doc fix.
23613
236142007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23615
23616 * fns.c (Fplist_put): Preserve uneven tail data.
23617
236182007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23619
23620 * termhooks.h (enum event_kind): Remove trailing comma.
23621
23622 * frame.h (enum): Remove trailing comma.
23623
236242007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23625
23626 * w32proc.c (delete_child): Don't terminate threads of zombies.
23627
236282007-10-08 Martin Rudalics <rudalics@gmx.at>
23629
23630 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23631
23632 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23633 last-repeatable-command.
23634 (init_kboard): Initialize Vlast_repeatable_command.
23635 (command_loop_1): Set it to real_this_command unless that was
23636 bound to an input event.
23637 (mark_kboards): Mark it.
23638
236392007-10-08 Richard Stallman <rms@gnu.org>
23640
23641 * eval.c (condition-case): Doc fix.
23642
236432007-10-08 Masatake YAMATO <jet@gyve.org>
23644
23645 * xfaces.c (tty_supports_face_attributes_p): Fix code
23646 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23647 was copied and not edited.
23648
236492007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23650
23651 Add new `input-decode-map' keymap and use it for terminal
23652 escape sequences.
23653 * keyboard.h (struct kboard): Add Vinput_decode_map.
23654 Remove Vlocal_key_translation_map.
23655 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23656 (init_kboard): Init input-decode-map.
23657 Replace local-key-translation-map back with key-translation-map.
23658 (syms_of_keyboard): Declare input-decode-map.
23659 Remove local-key-translation-map. Update docstrings.
23660 (mark_kboards): Mark Vinput_decode_map.
23661 Don't mark Vlocal_key_translation_map.
23662 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23663 Replace local-key-translation-map back with key-translation-map.
23664 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23665 Bind in input-decode-map rather than function-key-map.
23666
23667 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23668 This was made redundant by the previous introduction of XSETPVECTYPE.
23669
236702007-10-09 Richard Stallman <rms@gnu.org>
23671
23672 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23673
236742007-09-29 Richard Stallman <rms@gnu.org>
23675
23676 * eval.c (internal_condition_case_2, internal_condition_case_1)
23677 (internal_condition_case): Reenable abort if x_catching_errors ()
23678 to see if that really happens and why.
23679
236802007-10-06 Andreas Schwab <schwab@suse.de>
23681
23682 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23683
236842007-10-04 Juanma Barranquero <lekktu@gmail.com>
23685
23686 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23687
236882007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23689
23690 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23691
236922007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23693
23694 * window.h (struct window):
23695 * window.c (struct save_window_data, struct saved_window):
23696 * termhooks.h (struct terminal):
23697 * process.h (struct Lisp_Process):
23698 * frame.h (struct frame):
23699 * buffer.h (struct buffer):
23700 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23701 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23702 The size field of (pseudo)vectors is now unsigned.
23703 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23704
23705 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23706 Turn `count' into an integer.
23707
23708 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23709 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23710 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23711 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23712 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23713
23714 * alloc.c (allocate_pseudovector): New fun.
23715 (ALLOCATE_PSEUDOVECTOR): New macro.
23716 (allocate_window, allocate_terminal, allocate_frame)
23717 (allocate_process): Use it.
23718 (mark_vectorlike): New function.
23719 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23720 (mark_terminals): Use it.
23721 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23722 (Fmake_byte_code): Use XSETPVECTYPE.
23723
23724 * frame.c (Fframe_parameters): Minor simplification.
23725
23726 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23727
23728 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23729
23730 * buffer.c (Fget_buffer_create, init_buffer_once):
23731 * lread.c (defsubr):
23732 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23733
23734 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23735 defined differently in the m/*.h files.
23736 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23737 (XSETPVECTYPE): New macro.
23738 (XSETPSEUDOVECTOR): Use it.
23739
23740 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23741 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23742
23743 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23744 * lread.c (defvar_per_buffer):
23745 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23746
23747 * window.c (candidate_window_p): Only consider as visible frames that
23748 are on the same terminal.
23749
23750 * m/ibms390x.h (MARKBIT): Remove unused macro.
23751
237522007-10-01 Juanma Barranquero <lekktu@gmail.com>
23753
23754 * lread.c (Fload): Fix typo in docstring.
23755
237562007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23757
23758 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23759 of a non-zero value can't yield zero.
23760
237612007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23762
23763 * term.c (term_clear_mouse_face, term_mouse_highlight)
23764 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23765
23766 * print.c (safe_debug_print): Use XHASH.
23767
23768 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23769 Lisp elements such as tags.
23770 (XHASH): New macro.
23771 (EQ): Use it.
23772 (SREF, SSET, STRING_COPYIN): Use SDATA.
23773 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23774
23775 * alloc.c (mark_terminal): Remove left-over declaration.
23776 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23777 (allocate_vectorlike): Remove type argument. Adjust callers.
23778 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23779 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23780
23781 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23782 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23783 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23784 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23785 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23786 Use them.
23787
23788 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23789 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23790 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23791
237922007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23793
23794 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23795 loaded by default.
23796
237972007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23798
23799 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23800 on this tty.
23801 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23802
23803 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23804 Update all users.
23805 (handle_one_term_event): Use Gpm_DrawPointer.
23806 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23807 Signal errors instead of returning nil. Always return nil.
23808 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23809 Make it a noop if gpm-mouse was not activated.
23810 (syms_of_term): Update names.
23811
238122007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23813
23814 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23815 (init_sys_modes): Check that gpm_tty is the current tty.
23816
23817 * alloc.c (allocate_terminal): Set the vector size to only count the
23818 lisp fields. Initialize those to nil.
23819 (mark_object): Don't treat terminals specially.
23820 (mark_terminal): Remove.
23821 (mark_terminals): Use mark_object instead.
23822
23823 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23824 the GC to the beginning.
23825
23826 * indent.h:
23827 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23828
23829 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23830
238312007-09-25 Jason Rumney <jasonr@gnu.org>
23832
23833 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23834
23835 * w32console.c (create_w32cons_output): Remove.
23836
23837 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23838
23839 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23840 (reset_sys_modes): Use reset_terminal_modes_hook.
23841
238422007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23843
23844 * eval.c (do_autoload): Don't output any message.
23845
238462007-09-24 Juri Linkov <juri@jurta.org>
23847
23848 * emacs.c (standard_args): Change priority of "--no-splash"
23849 from 40 to 3. Add "--no-desktop" with the same priority.
23850
238512007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23852
23853 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23854 and optimize the case where they are all 1.
23855
238562007-09-23 Johannes Weiner <hannes@saeurebad.de>
23857
23858 * lisp.h (abs): Define if not defined.
23859 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23860 Don't define `abs', since it's defined in lisp.h.
23861
238622007-09-22 Eli Zaretskii <eliz@gnu.org>
23863
23864 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23865 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23866 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23867 (init_tty): Use DEV_TTY instead of "/dev/tty".
23868 [WINDOWSNT]: No need to protect from NAME arg being null.
23869
238702007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23871
23872 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23873 up the tty state.
23874
238752007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23876
23877 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23878 (gpm_tty): Change its type.
23879 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23880 (gpm_tty): Change its type and initialize it.
23881 (Fterm_open_connection): Check the frame is indeed a tty.
23882 Use the new gpm_tty.
23883 (Fterm_close_connection): Use the new gpm_tty.
23884 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23885 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23886
238872007-09-21 Juanma Barranquero <lekktu@gmail.com>
23888
23889 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23890 underline_color, to draw strike-through.
23891
238922007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23893
23894 * lisp.h (allocate_terminal): Declare.
23895
23896 * window.c (candidate_window_p): Consider frames that are being placed
23897 by the user as somewhere between visible and iconified.
23898 (window_loop): Prefer windows on the current frame.
23899 (Fselect_window): Move the use of select-frame to the beginning so we
23900 can just delegate all the work (it'll call us back anyway).
23901
23902 * frame.c (Qdisplay_environment_variable):
23903 * frame.h (Qdisplay_environment_variable): Delete.
23904
23905 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23906 of the first arg, since that value may be a union.
23907
23908 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23909 parameter rather than Qdisplay_environment_variable. If all else
23910 fails, look for DISPLAY in initial-environment.
23911
239122007-09-21 Glenn Morris <rgm@gnu.org>
23913
23914 * Makefile.in (emacstool): Remove target.
23915 (lisp, shortlisp): Remove termdev.elc.
23916
239172007-09-21 Markus Triska <markus.triska@gmx.at>
23918
23919 * xterm.c (x_delete_display): Compile session management conditionally.
23920
239212007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23922
23923 * callproc.c (getenv_internal_1): New function.
23924 (getenv_internal): Use it.
23925 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23926
23927 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23928 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23929 (Fset_terminal_parameter): Work with dead terminals as well.
23930 (Fmodify_terminal_parameters): Remove.
23931
23932 * terminal.c (get_terminal): Handle terminals.
23933 Make sure the terminal returned is live.
23934 (create_terminal): Use allocate_terminal.
23935 (mark_terminals): Move to alloc.c.
23936 (delete_terminal): Use terminal->name as liveness status.
23937 NULL out fields after freeing their contents.
23938 Don't deallocate the object.
23939 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23940 rather than an int.
23941 (Fterminal_live_p): Accept non-integer arguments.
23942 (Fterminal_list): Return terminal objects rather than an ints.
23943
23944 * alloc.c (enum mem_type): New member for `terminal' objects.
23945 (allocate_terminal): New function.
23946 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23947 Handle terminals.
23948 (mark_terminal): New fun.
23949 (mark_terminals): Move from terminal.c.
23950
23951 * term.c (get_tty_terminal): Don't treat output_initial specially.
23952 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23953 (delete_tty): Use terminal->name as liveness status.
23954
23955 * termhooks.h (struct terminal): Make it into a pseudovector.
23956 Remove `deleted' replaced by checking `name's nullness.
23957
23958 * print.c (print_object): Handle terminals.
23959
23960 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23961 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23962
23963 * frame.c (make_terminal_frame):
23964 * keyboard.c (tty_read_avail_input):
23965 * w32term.c (x_delete_terminal):
23966 * xfns.c (Fx_create_frame, x_create_tip_frame):
23967 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23968
239692007-09-20 Glenn Morris <rgm@gnu.org>
23970
23971 * process.c (Fmake_network_process): Doc fix.
23972
239732007-09-19 Jason Rumney <jasonr@gnu.org>
23974
23975 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23976
239772007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23978
23979 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23980 Fix a C warning regarding variable constness.
23981
23982 * xterm.c (handle_one_xevent): Fix a C warning.
23983
239842007-09-18 Jason Rumney <jasonr@gnu.org>
23985
23986 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23987
239882007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23989
23990 * gtkutil.c (gdpy_def): New variable.
23991 (xg_initialize): Initialize gdpy_def.
23992 (xg_display_close): If no other display exists, set gdpy_def to a
23993 new connection.
23994
239952007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23996
23997 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23998 when we have no file name for the icon.
23999 (xg_tool_bar_expose_callback): Remove.
24000 (xg_create_tool_bar): Don't connect expose signal to
24001 xg_tool_bar_expose_callback.
24002 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
24003
240042007-09-16 Andreas Schwab <schwab@suse.de>
24005
24006 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
24007 values instead of zapping them.
24008
240092007-09-14 Glenn Morris <rgm@gnu.org>
24010
24011 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
24012 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
24013 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
24014 scope and rename to omfib_buffer for clarity.
24015 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
24016
240172007-09-14 Kenichi Handa <handa@m17n.org>
24018
24019 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
24020
240212007-09-13 Jason Rumney <jasonr@gnu.org>
24022
24023 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
24024
24025 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
24026
24027 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
24028 (mac_term_init): Call here instead, passing rif.
24029
240302007-09-13 Glenn Morris <rgm@gnu.org>
24031
24032 * s/hpux.h: No longer define `static' as nothing.
24033
240342007-09-13 Johan Bockgård <bojohan@gnu.org>
24035
24036 * callint.c (Fcall_interactively): Remove unused var `fun'.
24037
240382007-09-12 Romain Francoise <romain@orebokech.com>
24039
24040 * window.c (prefer_window_split_horizontally, display_buffer):
24041 Revert 2007-09-08 change.
24042
240432007-09-12 Glenn Morris <rgm@gnu.org>
24044
24045 * alloca.c: Remove file.
24046 * Makefile.in (alloca): Do not undef.
24047 (allocaobj, alloca.o): Remove.
24048 (otherobj): Remove allocaobj.
24049 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
24050 * regex.c (C_ALLOCA): Remove all references and code that was only
24051 used when this was defined.
24052 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
24053 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
24054 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
24055
24056 * Makefile.in (SOURCES, unlock, relock): Delete.
24057
24058 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
24059 (menu_grab_callback): All uses changed.
24060
24061 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
24062 (x_reply_selection_request): All uses changed.
24063
240642007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
24065
24066 * lread.c (load_warn_old_style_backquotes): Change message to look
24067 better when it appears in the middle of byte-compiler messages.
24068
240692007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
24070
24071 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
24072
24073 * xterm.c (x_create_terminal): Add comment.
24074
24075 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
24076
240772007-09-10 Richard Stallman <rms@gnu.org>
24078
24079 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
24080
240812007-09-10 Michaël Cadilhac <michael@cadilhac.name>
24082
24083 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
24084 (DEFUN): Document `intspec', use it instead of `prompt'.
24085
24086 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
24087
24088 * data.c (Finteractive_form): If the interactive specification starts
24089 with a `(', use it as a Lisp form.
24090
24091 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
24092 name and file modes.
24093
24094 * callint.c (Fcall_interactively): Comment fixes.
24095
240962007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
24097
24098 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
24099 and compiled functions.
24100
241012007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
24102
24103 * window.c (prefer_window_split_horizontally): New variable.
24104 (display_buffer): Consider splitting window horizontally depending
24105 on prefer_window_split_horizontally.
24106
241072007-09-08 Eli Zaretskii <eliz@gnu.org>
24108
24109 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
24110
241112007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24112
24113 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
24114
24115 * frame.c (x_set_frame_parameters): Check number is positive before
24116 using XFASTINT.
24117
24118 * window.c (freeze_window_start): Don't presume selected_window holds
24119 a window object.
24120 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
24121
241222007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
24123
24124 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
24125
241262007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
24127
24128 * window.c (Vsplit_window_preferred_function): New var.
24129 (Fdisplay_buffer): Use it.
24130 (syms_of_window): Export, and initialize it.
24131
241322007-09-06 Pixel <pixel@mandriva.com> (tiny change)
24133
24134 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
24135
241362007-09-06 Glenn Morris <rgm@gnu.org>
24137
24138 * gtkutil.c (menu_grab_callback) <cnt>:
24139 * xselect.c (x_reply_selection_request) <cnt>: Move static
24140 variable to file scope.
24141
241422007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
24143
24144 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
24145 consistent values of selected_frame and selected_window.
24146
241472007-09-04 Jason Rumney <jasonr@gnu.org>
24148
24149 * w32console.c (initialize_w32_display): Zero unused hooks.
24150
241512007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24152
24153 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24154 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24155
241562007-09-04 Jason Rumney <jasonr@gnu.org>
24157
24158 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24159 in w32console.c. Set up input. Remove XXX comments that have been
24160 confirmed as correct.
24161
24162 * s/ms-w32.h (MULTI_KBOARD): Define.
24163
24164 * w32console.c (one_and_only_w32cons): Remove.
24165 (initialize_w32_display): Take terminal argument.
24166
24167 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24168 initialize_w32_display.
24169 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24170
24171 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24172
24173 * keyboard.c (discard_mouse_events): Discard it.
24174 (make_lispy_event): Translate it to a lisp event.
24175 (lispy_wheel_names): Add wheel-left and right events.
24176 (syms_of_keyboard): Enlarge wheel_syms.
24177
24178 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24179 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24180
24181 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24182
24183 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24184 from WM_MOUSEHWHEEL.
24185 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24186
24187 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24188 terminal.
24189
24190 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24191 keyboard for the terminal.
24192
241932007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24194
24195 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24196 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24197 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24198 and resume-tty-function to resume-tty-hook.
24199 (Fsuspend_tty, Fresume_tty): Use new names.
24200
242012007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24202
24203 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24204 if it starts with "n:".
24205
242062007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24207
24208 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24209
242102007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24211
24212 * frame.h:
24213 * frame.c (Qterm_environment_variable): Remove.
24214 (syms_of_frame): Don't init and staticpro it.
24215
24216 * callproc.c (getenv_internal): Remove special case for $TERM.
24217
24218 * callproc.c (Vinitial_environment): New variable.
24219 (set_initial_environment): Initialize it.
24220 (syms_of_callproc): Declare it.
24221 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24222 TERM under which a process runs is never related to the TERM in which
24223 Emacs is running.
24224
242252007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24226
24227 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24228 * s/darwin.h: ... do it here.
24229
242302007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24231
24232 * lisp.h (set_initial_environment): Rename from set_global_environment.
24233
24234 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24235 removed by mistake on the multi-tty branch.
24236
24237 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24238 (Fmodify_frame_parameters): Return a value.
24239
24240 * image.c (png_load): Comment-out var only used in commented-out code.
24241
24242 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24243 before passing it to mark_object.
24244
24245 * xfaces.c (internal_resolve_face_name): Return a value.
24246 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24247
24248 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24249 (x_icon): Comment-out var only used in commented-out code.
24250
242512007-08-29 Romain Francoise <romain@orebokech.com>
24252
24253 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24254 QUIT hasn't been provided.
24255
242562007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24257
24258 * callproc.c (child_setup, getenv_internal): Use the
24259 display-environment-variable and term-environment-variable frame params.
24260 (set_initial_environment): Initialise Vprocess_environment.
24261
24262 * config.in: Disable multi-keyboard support on a mac.
24263
24264 * frame.c (Qterm_environment_variable)
24265 (Qdisplay_environment_variable): New variables.
24266 (syms_of_frame): Intern and staticpro them.
24267 (Fmake_terminal_frame): Disable output method test.
24268
24269 * frame.h: Declare them here.
24270
24271 * macfns.c (x_set_mouse_color): Get rif from the frame.
24272 (x_set_tool_bar_lines): Don't use updating_frame.
24273 (mac_window): Add 2 new parameters for consistency with other systems.
24274 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24275 frame parameters following what is done in X11 and w32. Don't use
24276 FRAME_MAC_DISPLAY_INFO.
24277 (Fx_open_connection, start_hourglass): Remove window-system check.
24278 (x_create_tip_frame): Get the keyboard from the terminal.
24279
24280 * macmenu.c: Reorder includes.
24281 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24282
24283 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24284 terminal parameter.
24285 (x_clear_frame): Add a frame parameter.
24286 (note_mouse_movement): Get rif from the frame.
24287 (mac_term_init): Initialize the terminal.
24288 (mac_initialize): Make static and move terminal initialization ...
24289 (mac_create_terminal): ... to this new function.
24290
24291 * macterm.h (struct mac_display_info): Add terminal.
24292 (mac_initialize): Delete declaration.
24293
24294 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24295
24296 * sysdep.c: Comment out text after #endif.
24297
24298 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24299 is defined. Better initialize ttys in windows. Use terminal
24300 specific mouse_position_hook.
24301
24302 * termhooks.h (union display_info): Add mac_display_info.
24303
24304 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24305 Set the default minibuffer frame, window_system and the rest of the
24306 frame parameters following what is done in X11.
24307
24308 * w32term.c (w32_initialize): Make static.
24309
24310 * xselect.c (x_handle_selection_clear): Only access
24311 terminal->kboard when MULTI_KBOARD is defined.
24312
24313 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24314 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24315
243162007-08-29 Jason Rumney <jasonr@gnu.org>
24317
24318 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24319 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24320
24321 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24322 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24323
24324 * keyboard.c (restore_kboard_configuration): Only define when
24325 MULTI_KBOARD defined.
24326
24327 * makefile.w32-in: Update dependancies from Makefile.in.
24328 (OBJ1): Add terminal.$(O)
24329
24330 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24331 Don't define function body.
24332 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24333
24334 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24335
24336 * w32.c (request_sigio, unrequest_sigio): Remove.
24337
24338 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24339 (w32con_clear_frame, w32con_clear_end_of_line)
24340 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24341 (w32con_delete_glyphs, w32con_set_terminal_window)
24342 (scroll_line, w32_sys_ring_bell): Add frame arg.
24343 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24344 Add terminal arg.
24345 (PICK_FRAME): Remove.
24346 (w32con_write_glyphs): Use frame specific terminal coding.
24347 (one_and_only_w32cons): New global variable.
24348 (initialize_w32_display): Use it for storing hooks.
24349 (create_w32cons_output): New function.
24350
24351 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24352 arg a frame.
24353
24354 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24355 Set window_system.
24356 (x_set_tool_bar_lines): Don't use updating_frame.
24357 (Fx_create_frame): Set terminal and ref count.
24358 (Fx_open_connection): Remove window-system check.
24359
24360 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24361
24362 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24363 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24364 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24365 Add frame arg.
24366 (x_delete_terminal, w32_create_terminal): New functions.
24367 (w32_term_init): Create a terminal.
24368 (w32_initialize): Move terminal specific initialization to
24369 w32_create_terminal.
24370
24371 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24372 (w32_clear_rect, w32_clear_area): Use background from frame.
24373 (w32_display_info): Add terminal.
24374 (w32_sys_ring_bell, x_delete_display): Declare here.
24375
24376 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24377
24378 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24379
243802007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24381
24382 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24383 Fix get_named_tty calls for the controlling tty.
24384
243852007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24386
194d44e7 24387 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24388
243892007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24390
24391 * term.c (tty_insert_glyphs): Add missing first parameter.
24392
243932007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24394
24395 * buffer.c (Fbuffer_list, Fbury_buffer):
24396 Take frame->buried_buffer_list into account.
24397
24398 * cm.c (current_tty): New variable, for cmputc().
24399 (cmputc): Use it.
24400 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24401 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24402 (cmgoto): Add tty parameter. Pass it on to calccost().
24403 Use emacs_tputs() instead of tputs().
24404
24405 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24406 tputs().
24407 (current_tty): New variable, for cmputc().
24408 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24409
24410 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24411 (internal_condition_case, internal_condition_case_1)
24412 (internal_condition_case_2): Don't abort when x_catching_errors.
24413
24414 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24415 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24416 prevent crashes caused by bogus longjmps in read_char.
24417
24418 * keymap.h (Fset_keymap_parent): Add EXFUN.
24419
24420 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24421 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24422 Remove redundant definition.
24423
24424 * macfns.c (x_set_mouse_color, x_make_gc):
24425 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24426
24427 * w32term.c (x_free_frame_resources):
24428 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24429 (w32_initialize): Use the accessor macros for terminal characteristics.
24430
24431 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24432 Use the accessor macros for terminal characteristics.
24433 * msdos.c (internal_terminal_init): Use the accessor macros for
24434 terminal characteristics.
24435 (ScreenVisualBell, internal_terminal_init):
24436 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24437
24438 * termopts.h (no_redraw_on_reenter): Declare.
24439
24440 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24441 (mark_terminals, mark_ttys): Declare.
24442 (Fgarbage_collect): Call them.
24443 (mark_object): Mark buried_buffer_list.
24444
24445 * prefix-args.c: Include stdlib.h for exit.
24446
24447 * syssignal.h: Add comment.
24448
24449 * indent.c: Include stdio.h.
24450
24451 * window.h (Vinitial_window_system): Declare.
24452 (Vwindow_system): Delete declaration.
24453
24454 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24455
24456 * image.c (lookup_image): Don't initialize `c' until the xasserts
24457 have been run.
24458
24459 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24460 FRAME_FOREGROUND_PIXEL.
24461
24462 * print.c (print_preprocess): Don't lose print_depth levels while
24463 iterating.
24464
24465 * widget.c (update_from_various_frame_slots):
24466 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24467
24468 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24469 frames.
24470 (window_internal_height): Remove bogus make_number call.
24471 (init_window_once): Call make_terminal_frame with two zero parameters.
24472
24473 * fileio.c (Fread_file_name): Update comment.
24474
24475 * callint.c (Fcall_interactively):
24476 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24477 Make sure it is correctly unwound.
24478
24479 * xsmfns.c (x_session_close): New function.
24480
24481 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24482 Delete declarations.
24483
24484 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24485 (x_output): Remove background_pixel and foreground_pixel fields.
24486 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24487 (x_delete_device, x_session_close): Declare.
24488
24489 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24490 (read_filtered_event): Call `read_char' with a local
24491 `wrong_kboard_jmpbuf'.
24492
24493 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24494 Don't call single_kboard_state. Use FRAME_RIF.
24495
24496 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24497 systems.
24498
24499 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24500 (Fframe_with_environment, Fset_input_meta_mode)
24501 (Fset_quit_char): EXFUN.
24502 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24503 (init_sys_modes, reset_sys_modes): Update prototypes.
24504 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24505
24506 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24507 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24508 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24509 Delete declarations.
24510 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24511 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24512 New declarations.
24513
24514 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24515 already does that during init_display(). Call syms_of_keymap
24516 before syms_of_keyboard. Call `syms_of_terminal'.
24517 Call set_initial_environment, not set_process_environment.
24518 (shut_down_emacs): Call reset_all_sys_modes() instead of
24519 reset_sys_modes().
24520
24521 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24522 (internal_resolve_face_name, resolve_face_name_error): New functions.
24523 (resolve_face_name): Protect against loops and errors thrown by Fget.
24524 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24525 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24526
24527 * scroll.c: Replace CURTTY() with local variables throughout the
24528 file (where applicable).
24529 (calculate_scrolling, calculate_direct_scrolling)
24530 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24531 characteristics.
24532
24533 * keymap.c (Vfunction_key_map): Remove.
24534 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24535 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24536 (Vkey_translation_map): Remove.
24537 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24538 (Fdescribe_buffer_bindings)
24539 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24540 Update for terminal-local key-translation-map.
24541
24542 * Makefile.in (callproc.o): Update dependencies.
24543 (lisp, shortlisp): Add termdev.elc.
24544 (obj): Add terminal.o.
24545 (terminal.o): Add dependencies.
24546 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24547 (data.o, fns.o): Add termhooks.h dependency.
24548 (SOME_MACHINE_LISP): Add dnd.elc.
24549 (minibuf.o): Fix typo.
24550 Update dependencies.
24551
24552 * data.c (do_symval_forwarding, store_symval_forwarding)
24553 (find_symbol_value): Use the selected frame's keyboard, not
24554 current_kboard.
24555
24556 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24557 Vwindow_system.
24558
24559 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24560 Fmenu_bar_open.
24561 (syms_of_xmenu): Update defsubr.
24562 (mouse_position_for_popup, Fx_popup_menu)
24563 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24564 (set_frame_menubar, free_frame_menubar)
b97439ce 24565 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24566 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24567 an X frame.
24568
24569 * xselect.c (x_own_selection): Abort if not an X frame.
24570 (some_frame_on_display): Check if it is an X frame.
24571 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24572
24573 * coding.c: Include frame.h and termhooks.h.
24574 (terminal_coding, keyboard_coding): Delete.
24575 (Fset_terminal_coding_system_internal)
24576 (Fset_keyboard_coding_system_internal)
24577 (Fkeyboard_coding_system)
24578 (Fterminal_coding_system): Add a terminal parameter.
24579 Get terminal_coding from the terminal.
24580 (init_coding_once): Don't call setup_coding_system here.
24581
24582 * dispextern.h (set_scroll_region, turn_off_insert)
24583 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24584 (tty_clear_end_of_line, tty_setup_colors)
24585 (delete_tty, updating_frame)
24586 (produce_special_glyphs, produce_glyphs, write_glyphs)
24587 (insert_glyphs): Remove.
24588 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24589 (tty_turn_off_highlight, get_tty_size): Add declaration.
24590 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24591
24592 * frame.h (enum output_method): Add output_initial.
24593 (struct x_output): Delete.
24594 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24595 Access foreground_pixel and background_pixel directly from the frame.
24596 (tty_display): Delete.
24597 (struct frame): Add buried_buffer_list, foreground_pixel,
24598 background_pixel and terminal. Delete kboard.
24599 (union output_data): Add tty.
24600 (FRAME_KBOARD): Get the kboard from the terminal.
24601 (FRAME_INITIAL_P): New macro.
24602 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24603 (Qterm_environment_variable, Qdisplay_environment_variable)
24604 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24605 New declarations.
24606
24607 * termchar.h (tty_output, tty_display_info): New structures.
24608 (tty_list): Declare.
24609 (FRAME_TTY, CURTTY): New macros.
24610 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24611 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24612 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24613 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24614
24615 * callproc.c: Include frame.h and termhooks.h, for terminal
24616 parameters.
24617 (add_env): New function.
24618 (child_setup): Use it.
24619 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24620 (getenv_internal): Fix get_terminal_param call.
24621 (Fgetenv_internal, egetenv): Update doc.
24622 (syms_of_callproc): Initialize Vprocess_environment to nil.
24623 Register and initialize them. Remove obsolete defvars. Update doc
24624 strings.
24625 (child_setup): Handle Vlocal_environment_variables.
24626 (getenv_internal): Add terminal parameter.
24627 Handle Vlocal_environment_variables.
24628 (Fgetenv_internal): Add terminal parameter.
24629 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24630 environment in a frame (not terminal) parameter. Update doc strings.
24631 (set_initial_environment): Rename from set_global_environment.
24632 Store Emacs environment in initial frame parameter.
24633
24634 * xdisp.c (redisplay_internal): Update references to
24635 `previous_terminal_frame'.
24636 (display_mode_line, Fformat_mode_line): Replace calls to
24637 `push_frame_kboard' with `push_kboard'.
24638 (get_glyph_string_clip_rects): Add extra parentheses and
24639 braces to prevent compiler warnings.
24640 (calc_pixel_width_or_height): Add xassert to check that the
24641 frame is alive. Don't call `lookup_image' on a termcap frame.
24642 (message2_nolog, message3_nolog, redisplay_internal)
24643 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24644 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24645 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24646 (Fx_display_pixel_width, Fx_display_pixel_height)
24647 (Fx_display_planes, Fx_display_color_cells)
24648 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24649 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24650 (Fx_display_backing_store, Fx_display_visual_class)
24651 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24652 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24653
24654 * xfns.c (x_set_foreground_color x_set_background_color)
24655 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24656 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24657 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24658 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24659 terminal that is being deleted.
24660 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24661 frame parameter, and make sure it overrides any user-supplied setting.
24662 (Fx_close_connection, Fx_synchronize): Unify argument names with
24663 the rest of the DEFUNs.
24664
24665 * dispnew.c (Fsend_string_to_terminal): Update call to
24666 `get_tty_terminal'.
24667 (Fredraw_frame, Fsend_string_to_terminal)
24668 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24669 FRAME_TERMCAP_P and FRAME_TTY.
24670 (window_change_signal): Don't believe width/height values that are
24671 impossibly small.
24672 (Vinitial_window_system): Rename from Vwindow_system.
24673 (termscript, Wcm, rif): Delete.
24674
24675 * termhooks.h (struct terminal): New struct containing the
24676 previously global text display hooks and new members NAME,
24677 DELETED and PARAM_ALIST.
24678 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24679 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24680 (FRAME_RIF): New macros.
24681 (get_terminal_param, get_device): New declarations.
24682 (termscript): Delete declaration.
24683
24684 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24685 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24686 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24687 FRAME_FOREGROUND_PIXEL.
24688 (x_fully_uncatch_errors): Disable definition.
24689 (x_scroll_bar_expose): Fix reference to foreground pixel.
24690 (XTread_socket): Disable loop on all X displays.
24691 (x_delete_terminal): Don't set terminal->deleted and let
24692 delete_terminal delete the frames on the terminal.
24693 (x_delete_display): Doc update to reflect changes in
24694 delete_terminal.
24695 (x_display_info) <terminal>: Move member earlier in the struct.
24696 (deleting_tty): Remove old variable.
24697 (Fsuspend_tty): Call clear_tty_hooks.
24698 (Fresume_tty, init_tty): Call set_tty_hooks.
24699 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24700 errors on X frames.
24701 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24702 (handle_one_xevent): Initialize `f' to NULL.
24703 (x_delete_terminal, x_create_terminal): New functions.
24704 (XTset_terminal_modes, XTreset_terminal_modes)
24705 (XTread_socket, x_connection_closed, x_term_init)
24706 (x_term_init, x_delete_display): Add terminal parameter.
24707 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24708 X connections.
24709
24710 * frame.c: Include termchar.h.
24711 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24712 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24713 (Qdisplay_environment_variable): New vars.
24714 (Fframep): Deal with output_initial.
24715 (Fframe-live-p): Doc fix.
24716 (Fwindow-system): New function.
24717 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24718 (make_terminal_frame): Don't create frames on a terminal that is
24719 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24720 (store_frame_param): Check for found_for_frame before calling XFRAME.
24721 (Fmake_terminal_frame): Handle NULL tty names correctly.
24722 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24723 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24724 frames to refer to a deleted frame in their 'environment parameter.
24725 (Fframe_with_environment): New function.
24726 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24727 (get_future_frame_param): New function.
24728 (Fmake_terminal_frame): Use it.
24729 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24730
24731 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24732 * sysdep.c (reset_sys_modes): Update for renames.
24733
24734 * keyboard.c (tty_read_avail_input): New function.
24735 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24736 (syms_of_keyboard): Defsubr them.
24737 (Fset_input_meta_mode, Fset_quit_char): New functions.
24738 (Fset_input_mode): Split to above functions.
24739 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24740 parameter. Use it in call to `read_char'.
24741 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24742 Set wrong_kboard_jmpbuf correctly in recursive calls.
24743 Use current_kboard to access Vkeyboard_translate_table.
24744 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24745 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24746 Update longjmp invocations. Remember the original current_kboard,
24747 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24748 changes it. Comment out unnecessary calls to
24749 `record_single_kboard_state' and `any_kboard_state'.
24750 Update recursive calls.
24751 (wrong_kboard_jmpbuf): Remove global variable.
24752 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24753 Handle deleted interrupted_kboards correctly; that is a legal
24754 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24755 and read_char calls. Abort if interrupted_kboard died in read_char.
24756 (any_kboard_state, single_kboard_state)
24757 (push_frame_kboard): Remove function.
24758 (pop_kboard): Switch out of single_kboard mode if the kboard has
24759 been deleted. Remove unused variable. Help debugging by not
24760 changing current_kboard unnecessarily. Set current_kboard to the
24761 kboard of the selected frame when the stored kboard object has
24762 been deleted before pop_kboard.
24763 (temporarily_switch_to_single_kboard): Change first parameter to a
24764 frame pointer. Throw an error when caller wants to change kboards
24765 while in single_kboard mode. Don't push_kboard if we weren't in
24766 single kboard state. Don't pop_kboard if we popped into any
24767 kboard state.
24768 (restore_kboard_configuration): Abort if pop_kboard changed the
24769 kboard in single_kboard mode. Call pop_kboard only after setting
24770 up single_kboard mode.
24771 (Frecursive_edit): Switch to single_kboard mode only in nested
24772 command loops.
24773 (cmd_error, command_loop, command_loop_1, timer_check):
24774 Comment out unnecessary call to `any_kboard_state' and
24775 `record_single_kboard_state'.
24776 (delete_kboard): Exit single_kboard mode if we have just deleted
24777 that kboard. Use FRAME_KBOARD.
24778 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24779 `fatal_error_signal'.
24780 (record_single_kboard_state): Don't push_kboard if we weren't in
24781 single kboard state. Don't pop_kboard if we popped into any
24782 kboard state.
24783 (push_frame_kboard): Rename to push_kboard.
24784 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24785 (read_avail_input): Read input from all terminals.
24786 (mark_kboards): Also mark Vkeyboard_translate_table.
24787 (kbd_buffer_store_event_hold): Simplify condition.
24788 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24789 (Vkeyboard_translate_table): Move to struct kboard.
24790 (init_kboard): Initialize Vkeyboard_translate_table.
24791 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24792 Vkeyboard_translate_table. Update doc strings. Update docs of
24793 local-function-key-map and function-key-map.
24794
24795 * terminal.c: New file.
24796
24797 * term.c: Include errno.h.
24798 (Vring_bell_function, device_list, initial_device)
24799 (next_device_id, ring_bell, update_begin, update_end)
24800 (set_terminal_window, cursor_to, raw_cursor_to)
24801 (clear_to_end, clear_frame, clear_end_of_line)
24802 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24803 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24804 (syms_of_term): Move their initialization to terminal.c.
24805 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24806 (Ftty_display_color_cells)
24807 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24808 (clear_tty_hooks, set_tty_hooks)
24809 (init_tty, maybe_fatal): New functions.
24810 (Ftty_type): Return nil if terminal is not on a tty instead of
24811 throwing an error. Doc update.
24812 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24813 Doc update. Initialize new subrs and variables.
24814 (delete_tty): Use terminal->deleted.
24815 (tty_set_terminal_modes): Rename from set_terminal_modes.
24816 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24817 (set_scroll_region): Rename to `tty_set_scroll_region'.
24818 (turn_on_insert): Rename to `tty_turn_on_insert'.
24819 (turn_off_insert): Rename to `tty_turn_off_insert'.
24820 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24821 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24822 (toggle_highligh): Rename to `tty_toggle_highlight'.
24823 (background_highlight): Rename to `tty_background_highlight'.
24824 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24825 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24826 (tty_set_scroll_region, tty_background_highlight)
24827 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24828 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24829 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24830 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24831 Add static modifier.
24832 (tty_reset_terminal_modes, tty_set_terminal_window)
24833 (tty_set_scroll_region, tty_background_highlight)
24834 (tty_highlight_if_desired, tty_cursor_to)
24835 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24836 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24837 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24838 renames.
24839
248402007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24841
24842 * keyboard.c: Qrtl is new.
24843 (parse_tool_bar_item): Handle :rtl keyword.
24844 (syms_of_keyboard): Intern :rtl keyword.
24845
24846 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24847
24848 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24849 so no Lisp code is executed.
24850 (file_for_image, find_rtl_image): New functions.
24851 (xg_get_image_for_pixmap): Use file_for_image.
24852 (update_frame_tool_bar): If direction is RTL, use RTL image if
24853 defined. Use Gtk stock images if defined.
24854
248552007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24856
24857 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24858 for nonexistent or zero-width glyph in composition glyph.
24859
248602007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24861
24862 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24863
24864 * xdisp.c (Finvisible_p): New function.
24865 (syms_of_xdisp): defsubr it.
24866
248672007-08-24 Juanma Barranquero <lekktu@gmail.com>
24868
24869 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24870 Doc fixes.
24871
248722007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24873
24874 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24875
248762007-08-24 Martin Rudalics <rudalics@gmx.at>
24877
24878 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24879 whether decoding has modified buffer contents.
24880
248812007-08-24 Jason Rumney <jasonr@gnu.org>
24882
24883 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24884 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24885 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24886 (init_svg_functions) [HAVE_NTGUI]: New function.
24887 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24888 (svg_load_image): Use them.
24889 (svg_load_image) [HAVE_NTGUI]: Implement background.
24890
248912007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24892
24893 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24894 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24895 (LIBX): Remove @RSVG_LIBS@.
24896 (LIBES): Add $(RSVG_LIBS).
24897
24898 * image.c (svg_load_image): Blend with specified background if exists.
24899 Use IMAGE_BACKGROUND. Add Mac OS Support.
24900
24901 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24902 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24903 Remove macros.
24904 [MAC_OSX] (socket_callback): Do nothing.
24905 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24906 ReceiveNextEvent.
24907 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24908 socket_callback.
24909 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24910
249112007-08-22 Glenn Morris <rgm@gnu.org>
24912
24913 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24914
249152007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24916
24917 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24918
24919 * image.c: Add support for SVG images. Some additional comments
24920 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24921 (svg_image_p): New function to test for SVG image.
24922 (svg_load): New function to load SVG image.
24923 (svg_load_image): New function, helper for svg_load.
24924 (Qsvg): New Lisp_object.
24925 (svg_keyword_index): New enum.
24926 (svg_format): New static `image_keyword' struct.
24927 (svg_type): New static `image_type' struct.
24928 (librsvg/rsvg.h): Include it.
24929
249302007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24931
24932 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24933
249342007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24935
24936 * lread.c (Qold_style_backquotes): New var.
24937 (syms_of_lread): Init and staticpro it.
24938 (load_warn_old_style_backquotes): New fun.
24939 (Fload): Use them to warn about old style backquotes.
24940 (end_of_file_error, Fload): Remove unused vars.
24941
24942 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24943
24944 * lread.c (Vold_style_backquotes): New var.
24945 (syms_of_lread): Init and export it to Elisp.
24946 (read1): Set it when we find an old-style (back)quote.
24947
249482007-08-22 Jason Rumney <jasonr@gnu.org>
24949
24950 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24951
249522007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24953
24954 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24955
249562007-08-19 Richard Stallman <rms@gnu.org>
24957
24958 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24959
249602007-08-19 Andreas Schwab <schwab@suse.de>
24961
24962 * alloc.c (pure): Round PURESIZE up.
24963
249642007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24965
24966 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24967 active frame.
24968
249692007-08-16 Richard Stallman <rms@gnu.org>
24970
24971 * eval.c (Fcommandp): Add parens to clarify.
24972
24973 * minibuf.c (Fall_completions): Use enum for type of table.
24974
24975 * emacs.c (USAGE2): Improve text.
24976
249772007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24978
24979 * term.c (tty_default_color_capabilities): Declare static
24980 variables in file scope, to avoid HPUX compiler problem.
24981
249822007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24983
24984 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24985 to gtk_toolbar_insert.
24986
249872007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24988
24989 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24990
24991 * insdel.c (reset_var_on_error): New fun.
24992 (signal_before_change, signal_after_change):
24993 Use it to reset (after|before)-change-functions to nil in case of error.
24994 Bind inhibit-modification-hooks to t.
24995 Don't bind (after|before)-change-functions to nil while they run.
24996
249972007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24998
24999 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
25000 filling pixmap with stippled background.
25001
250022007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25003
25004 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
25005 Don't use invisible frame as parent window for repositioning.
25006
250072007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
25008
25009 * print.c (new_backquote_output): Rename from old_backquote_output.
25010 (print): Inverse its logic (according to its name) so as to match the
25011 behavior of new_backquote_flag in lread.c.
25012
250132007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25014
25015 * gmalloc.c (posix_memalign): New function.
25016
25017 * macterm.c (frame_highlight, frame_unhighlight): Don't call
25018 ActivateControl/DeactivateControl here.
25019 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
25020 frame-notice-user-settings is non-nil.
25021 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
25022 for kEventParamFMFontStyle.
25023 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
25024 mac_pass_command_to_system and mac_pass_control_to_system here.
25025 (XTread_socket): Call ActivateControl/DeactivateControl here.
25026 (XTread_socket) [TARGET_API_MAC_CARBON]:
25027 Check mac_pass_command_to_system and mac_pass_control_to_system here.
25028 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
25029 for window repositioning.
25030
250312007-08-08 Glenn Morris <rgm@gnu.org>
25032
25033 * Replace `iff' in doc-strings and comments.
25034
250352007-08-07 Chong Yidong <cyd@stupidchicken.com>
25036
25037 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
25038
250392007-08-07 Martin Rudalics <rudalics@gmx.at>
25040
25041 * fileio.c (Finsert_file_contents): Run format-decode and
25042 after_insert_file_functions on entire buffer when REPLACE is
25043 non-nil and inhibit modification_hooks and point_motion_hooks.
25044 For consistency, run after_insert_file_functions iff something
25045 got inserted. Move signal_after_change and update_compositions
25046 after code running after_insert_file_functions. Make sure that
25047 undo_list doesn't record intermediate steps of the decoding process.
25048
250492007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25050
25051 * emacs.c (main)
25052 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
25053 Call malloc_enable_thread on interactive startup.
25054
25055 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
25056 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
25057 [USE_PTHREAD]: Conditionalize with it.
25058 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
25059 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
25060 New functions.
25061
250622007-08-06 Chong Yidong <cyd@stupidchicken.com>
25063
25064 * xdisp.c (redisplay_window): When restoring original buffer
25065 position, make sure it is still valid.
25066
25067 * image.c (png_load): Ignore png-supplied background color.
25068
250692007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25070
25071 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
25072 Use kCFAbsoluteTimeIntervalSince1970.
25073
25074 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
25075 New variable.
25076 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
25077 event loop should be quit.
25078 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
25079 Quit dialog event loop if quit_dialog_event_loop is set.
25080
25081 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
25082 (Selection): New typedef. Use instead of ScrapRef.
25083 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
25084 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
25085 (mac_clear_selection): Rename from clear_scrap.
25086 (get_flavor_type_from_symbol): New argument SEL and subsume function of
25087 scrap_has_target_type. All uses changed.
25088 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
25089 (mac_selection_has_target_p): New functions.
25090 (mac_put_selection_value): Rename from put_scrap_string.
25091 (mac_get_selection_value): Rename from get_scrap_string.
25092 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
25093 (put_scrap_private_timestamp, scrap_has_target_type)
25094 (get_scrap_private_timestamp): Remove functions.
25095 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
25096 (x_own_selection, x_get_local_selection):
25097 Use mac_valid_selection_value_p.
25098 (x_own_selection): Don't use put_scrap_private_timestamp.
25099 Record OWNERSHIP-INFO into Vselection_alist instead.
25100 (x_get_local_selection): Don't check type if request is local.
25101 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
25102 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
25103
251042007-08-04 Jan Djärv <jan.h.d@swipnet.se>
25105
25106 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
25107 add comment explaining why.
25108
251092007-08-03 Richard Stallman <rms@gnu.org>
25110
25111 * fileio.c (Fvisited_file_modtime): Use make_time.
25112
251132007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
25114
25115 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
25116 build.
25117
251182007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
25119
25120 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
25121
251222007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
25123
25124 * puresize.h (BASE_PURESIZE): Increase to 1130000.
25125
251262007-07-30 Richard Stallman <rms@gnu.org>
25127
25128 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
25129
251302007-07-29 Jan Djärv <jan.h.d@swipnet.se>
25131
25132 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
25133
251342007-07-28 Nick Roberts <nickrob@snap.net.nz>
25135
25136 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
25137 remote default-directory.
25138
25139 * buffer.c (mode-line-format): Update doc string.
25140
251412007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25142
25143 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
25144 scroll bar gap.
25145 (x_scroll_bar_create): Set bar->fringe_extended_p.
25146 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
25147 on frame edge. Check fringe background extension. Don't clear
25148 extended fringe background area.
25149
25150 * w32term.h (struct scroll_bar): New member fringe_extended_p.
25151 (w32_fill_area): Enclose multiple statements with do ... while (0).
25152
25153 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25154 Extend fringe background to scroll bar gap.
25155 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25156 Set bar->fringe_extended_p.
25157 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25158 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25159 background extension. Don't clear extended fringe background area.
25160
25161 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25162 New member fringe_extended_p.
25163
251642007-07-25 Glenn Morris <rgm@gnu.org>
25165
25166 * Relicense all FSF files to GPLv3 or later.
25167
25168 * COPYING: Switch to GPLv3.
25169
251702007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25171
25172 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25173
25174 * data.c (Finteractive_form): Check for the presence of an
25175 `interactive-form' symbol property more thoroughly.
25176
25177 * data.c (Finteractive_form): Use an `interactive-form' property if
25178 present, analogous to the function-documentation property.
25179
251802007-07-24 Jason Rumney <jasonr@gnu.org>
25181
25182 * w32fns.c (x_real_positions): Get real position from OS instead of
25183 calculating it.
25184
251852007-07-23 Jason Rumney <jasonr@gnu.org>
25186
25187 * filelock.c (current_lock_owner): Allow for @ sign in username.
25188
251892007-07-22 Nick Roberts <nickrob@snap.net.nz>
25190
25191 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25192 remote default-directory.
25193
25194 * buffer.c (mode-line-format): Describe above case in doc string.
25195
251962007-07-20 Eli Zaretskii <eliz@gnu.org>
25197
25198 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25199 Define if not defined.
25200
252012007-07-18 Jason Rumney <jasonr@gnu.org>
25202
25203 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25204
252052007-07-18 Richard Stallman <rms@gnu.org>
25206
25207 * data.c (Fsetq_default): Doc fix.
25208
25209 * eval.c (Fsetq): Doc fix.
25210
252112007-07-18 Juanma Barranquero <lekktu@gmail.com>
25212
25213 * coding.c (Ffind_operation_coding_system):
25214 * eval.c (For, Fand): Doc fixes.
25215 Reported by Johan Bockgård.
25216
252172007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25218
25219 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25220
25221 * xterm.h: Declare x_ewmh_activate_frame.
25222
25223 * xterm.c (x_ewmh_activate_frame): New function.
25224 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25225
252262007-07-17 Martin Rudalics <rudalics@gmx.at>
25227
25228 * window.c (Fdisplay_buffer): If largest or LRU window is the
25229 only window, split it even if it is not eligible for splitting.
25230 This restores the original behavior broken by the 2007-07-15
25231 change.
25232
252332007-07-17 Glenn Morris <rgm@gnu.org>
25234
25235 * abbrev.c (abbrev_check_chars): New function.
25236 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25237 Call abbrev_check_chars to check abbrev characters are word
25238 constituents. Doc fix.
25239
252402007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25241
25242 * process.c (Fstart_process, Fmake_network_process)
25243 (read_process_output): Fix up last changes.
25244
252452007-07-16 Eli Zaretskii <eliz@gnu.org>
25246
25247 * makefile.w32-in (clean): Don't delete *~.
25248
252492007-07-16 Andreas Schwab <schwab@suse.de>
25250
25251 * window.c (Fdisplay_buffer): Use NILP.
25252 (Fset_window_scroll_bars): Likewise.
25253
252542007-07-15 Martin Rudalics <rudalics@gmx.at>
25255
25256 * window.c (window_min_size_2): New function.
25257 (window_min_size_1, size_window, Fdisplay_buffer)
25258 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25259 windows without mode- or header-lines when window-min-height is
25260 too small.
25261 (size_window): Reset nodelete_p after testing it, following an
25262 earlier note by Kim F. Storm.
25263 (display_buffer): Do not set split_height_threshold to twice the
25264 value of window_min_height to avoid changing the value of a
25265 customizable variable. Rather explicitly check whether the
25266 height of the window that shall be splitted is at least as large
25267 as split_height_threshold.
25268 (Fwindow_full_width_p): New defun.
25269 (syms_of_window): Defsubr it.
25270
25271 * window.h: Add EXFUN for Fwindow_full_width_p.
25272
252732007-07-14 Jason Rumney <jasonr@gnu.org>
25274
25275 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25276
252772007-07-14 Richard Stallman <rms@gnu.org>
25278
25279 * eval.c (maybe_call_debugger): New function.
25280 (find_handler_clause): Use maybe_call_debugger.
25281 Call it when the handler says `debug'.
25282 Eliminate DEBUGGER_VALUE_PTR.
25283 (Fsignal): Eliminate debugger_value.
25284 (Qdebug): New variable.
25285 (syms_of_eval): Initialize it.
25286
252872007-07-14 Juanma Barranquero <lekktu@gmail.com>
25288
25289 * eval.c (Fprogn):
25290 * keyboard.c (Ftrack_mouse):
25291 * print.c (Fwith_output_to_temp_buffer):
25292 * window.c (Fsave_window_excursion): Doc fix.
25293
252942007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25295
25296 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25297
252982007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25299
25300 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25301 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25302 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25303 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25304 Remove unused encoding_carryover.
25305 * process.c: Adjust all functions accordingly.
25306
253072007-07-12 Richard Stallman <rms@gnu.org>
25308
25309 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25310
253112007-07-11 Jason Rumney <jasonr@gnu.org>
25312
25313 * makefile.w32-in (LIBS): Include OLE32.
25314
25315 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25316 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25317
253182007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25319
25320 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25321 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25322 from a Lisp_Object into a bare pointer.
25323 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25324 Adjust the code correspondingly.
25325
25326 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25327
25328 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25329 (term_show_mouse_face): Remove unused var `j'.
25330 (handle_one_term_event): Remove unused vars `i' and `j'.
25331 Don't cast return value of ttyname since it's not necessary.
25332
253332007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25334
25335 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25336 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25337
25338 * fns.c (map_char_table): Use an array of int for `indices' rather than
25339 an array of Lisp_Objects (which are only ever integers anyway).
25340 (Fmap_char_table): Update caller.
25341 * lisp.h: Update prototype.
25342 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25343 * fontset.c (Ffontset_info):
25344 * casetab.c (set_case_table): Update callers.
25345
25346 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25347
25348 * keymap.c (struct accessible_keymaps_data)
25349 (struct where_is_internal_data): New structures.
25350 (accessible_keymaps_1, where_is_internal_1): Use them to change
25351 interface to adhere to the one used by map_keymap.
25352 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25353 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25354
25355 * keymap.h (map_keymap_function_t): More informative prototype.
25356
253572007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25358
25359 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25360 (looking_at_1): Don't change search_regs and last_thing_searched
25361 if `inhibit-changing-match-data' is non-nil.
25362 (string_match_1, search_buffer, set_search_regs): Likewise.
25363 (syms_of_search): Add Lisp level definition for
25364 `inhibit-changing-match-data' and set it to nil.
25365 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25366 start and end of the match, instead of using values in search_regs.
25367
253682007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25369
25370 * minibuf.c (Fcompleting_read): New value `confirm-only'
25371 for `require-match'.
25372
253732007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25374
25375 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25376 part of the 2007-06-27 change to syms_of_fileio.
25377
253782007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25379
25380 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25381 Check WINDOWP before using XWINDOW. Consolidate return statements.
25382
253832007-06-27 Richard Stallman <rms@gnu.org>
25384
25385 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25386
253872007-06-27 Juanma Barranquero <lekktu@gmail.com>
25388
25389 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25390
253912007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25392
25393 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25394 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25395 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25396 (_free_internal, memalign): Use them.
25397 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25398 Initialize to PTHREAD_MUTEX_INITIALIZER.
25399 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25400 (morecore_nolock): Rename from morecore. All uses changed.
25401 Use only nolock versions of internal allocation functions.
25402 (_malloc_internal_nolock, _realloc_internal_nolock)
25403 (_free_internal_nolock): New functions created from
25404 _malloc_internal, _realloc_internal, and _free_internal.
25405 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25406 Copy hook value to automatic variable before its use.
25407 (memalign): Copy hook value to automatic variable before its use.
25408
254092007-06-26 Kenichi Handa <handa@m17n.org>
25410
25411 * coding.c (Ffind_operation_coding_system): Docstring improved.
25412 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25413
254142007-06-25 David Kastrup <dak@gnu.org>
25415
25416 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25417 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25418 cater for additional parameter.
25419
25420 * keymap.h: Adjust number of parameters to `current-active-maps'.
25421
25422 * doc.c (Fsubstitute_command_keys): Adjust call of
25423 `current-active-maps'.
25424
254252007-06-25 David Kastrup <dak@gnu.org>
25426
25427 * callint.c (Fcall_interactively): Make the parsing of interactive
25428 specs somewhat more readable.
25429
254302007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25431
25432 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25433 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25434 if extended background has already been filled.
25435
254362007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25437
25438 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25439 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25440
25441 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25442 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25443 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25444 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25445 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25446 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25447 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25448 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25449 Run timers during dialog popup.
25450 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25451
254522007-06-21 Jason Rumney <jasonr@gnu.org>
25453
25454 * image.c (convert_mono_to_color_image): Swap fore and background.
25455
254562007-06-20 Jason Rumney <jasonr@gnu.org>
25457
25458 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25459 (w32_free_bdf_font): Unmap memory not handle.
25460
254612007-06-20 Sam Steingold <sds@gnu.org>
25462
25463 * gmalloc.c (__morecore): Fix the declaration to comply with the
25464 definition.
25465
254662007-06-20 Juanma Barranquero <lekktu@gmail.com>
25467
25468 * w32term.c (w32_delete_display): Remove leftover declaration.
25469 (w32_define_cursor, w32_initialize): Make static.
25470
25471 * w32.c (_wsa_errlist): Fix typo in error message.
25472 (init_environment): Ignore any environment variable from the
25473 registry having a null value.
25474
254752007-06-20 Glenn Morris <rgm@gnu.org>
25476
25477 * Makefile.in (LIBGIF): Default to -lgif.
25478
254792007-06-17 Jason Rumney <jasonr@gnu.org>
25480
25481 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25482 unicode strings.
25483
254842007-06-16 Juanma Barranquero <lekktu@gmail.com>
25485
25486 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25487 Fix typo in docstring.
25488
254892007-06-16 Eli Zaretskii <eliz@gnu.org>
25490
25491 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25492 and their keybindings.
25493
254942007-06-15 Chong Yidong <cyd@stupidchicken.com>
25495
25496 * composite.c (update_compositions): Fix last fix.
25497
254982007-06-14 Jason Rumney <jasonr@gnu.org>
25499
25500 * w32.c (get_process_times_fn): New function pointer.
25501 (globals_of_w32): Intialize it if present in kernel32.dll.
25502 (w32_get_internal_run_time): New function.
25503
25504 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25505
255062007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25507
25508 * composite.c (update_compositions): Check the validness of
25509 compositions.
25510
255112007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25512
25513 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25514 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25515
25516 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25517 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25518
25519 * macgui.h (USE_MAC_TOOLBAR): New define.
25520
25521 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25522 Return immediately unless popup is activated.
25523
25524 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25525 background to scroll bar gap.
25526 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25527 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25528 scroll bars on frame edge. Check fringe background extension.
25529 Don't clear extended fringe background area.
25530 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25531 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25532 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25533 [USE_MAC_TOOLBAR]: New macros.
25534 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25535 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25536 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25537 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25538 [USE_MAC_TOOLBAR]: New functions.
25539 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25540 manually if previous repositioning has failed.
25541 (mac_handle_keyboard_event): Use precomputed event kind.
25542 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25543 as tool bar item click. Handle mouse movement over tool bar items.
25544
25545 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25546 toolbar_win_gravity.
25547 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25548 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25549 Add externs.
25550
25551 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25552 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25553
255542007-06-14 Chong Yidong <cyd@stupidchicken.com>
25555
25556 * image.c (search_image_cache): Remove unused variable.
25557
255582007-06-13 Chong Yidong <cyd@stupidchicken.com>
25559
25560 * xfns.c, xmenu.c: Link to xaw3d if available.
25561
255622007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25563
25564 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25565 frame_foreground and frame_background.
25566
25567 * image.c (lookup_image): Save frame foreground and background colors.
25568 (search_image_cache): Check if saved and current frame colors match.
25569
255702007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25571
25572 * regex.c (regex_compile): Remove the `regnum' counter.
25573 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25574
255752007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25576
25577 * term.c: Include intervals.h to declare Fget_text_property.
25578
255792007-06-10 Jason Rumney <jasonr@gnu.org>
25580
25581 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25582
255832007-06-08 Juanma Barranquero <lekktu@gmail.com>
25584
25585 * callint.c (Fcall_interactively):
25586 * editfns.c (Fdelete_and_extract_region):
25587 * fileio.c (Fread_file_name):
25588 * fns.c (Fmapconcat):
25589 * keyboard.c (cmd_error_internal):
25590 * keymap.c (Fkey_description):
25591 * lread.c (openp):
25592 * minibuf.c (read_minibuf):
25593 * search.c (wordify):
25594 * sunfns.c (sel_read):
25595 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25596 * xfns.c (x_default_scroll_bar_color_parameter):
25597 * xmenu.c (menu_help_callback):
25598 * xselect.c (Fx_get_atom_name):
25599 * xterm.c (x_term_init): Use empty_unibyte_string.
25600
256012007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25602
25603 * alloc.c (init_strings): Initialize canonical empty strings.
25604 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25605 canonical empty string when the requested size is 0.
25606
25607 * emacs.c (empty_unibyte_string): Rename from empty_string.
25608 (empty_multibyte_string): New canonical empty string.
25609 (syms_of_emacs): Don't initialize empty_string.
25610
25611 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25612 string, if appropriate.
25613 (empty_unibyte_string, empty_multibyte_string): New externs.
25614 (empty_string): Remove extern.
25615
25616 * lread.c (syms_of_lread): Use empty_unibyte_string.
25617
256182007-06-07 Jason Rumney <jasonr@gnu.org>
25619
25620 * s/ms-w32.h: Don't define HAVE_TZNAME.
25621
25622 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25623
256242007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25625
25626 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25627
25628 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25629 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25630
25631 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25632 Don't call next handler.
25633 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25634 Remove argument. Install handler to application.
25635 (set_frame_menubar): Don't change deep_p.
25636 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25637 FRAME_OUTER_TO_INNER_DIFF_Y.
25638 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25639 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25640 [HAVE_DIALOGS]: New macros.
25641 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25642 Use them.
25643 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25644
25645 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25646 init_service_handler. All callers changed. Return OSStatus value.
25647
25648 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25649 All callers changed so as not to call SetPortWindowPort.
25650 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25651 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25652 mac_draw_string_common.
25653 (mac_draw_image_string_qd): Likewise.
25654 (mac_draw_string_common): Use them. Add INLINE.
25655 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25656 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25657 GetGlobalMouse.
25658 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25659 and FRAME_OUTER_TO_INNER_DIFF_Y.
25660 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25661 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25662 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25663 repositioning window to mac_handle_window_event.
25664 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25665 saving window location to mac_handle_window_event
25666 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25667 (install_menu_target_item_handler): Remove argument in extern.
25668 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25669 Also accept command events.
25670 (do_keystroke): New function created from XTread_socket.
25671 (init_command_handler): Remove functions.
25672 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25673 and save window location by kEventWindowShowing and kEventWindowHiding
25674 handlers here. Don't call next handler for window state change and
25675 focus events.
25676 (mac_handle_application_event, mac_handle_keyboard_event)
25677 [TARGET_API_MAC_CARBON]: New functions.
25678 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25679 kEventWindowShowing and kEventWindowHiding events. Move installation
25680 of mouse, font, text input and menu target item handlers to
25681 install_application_handler.
25682 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25683 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25684 New function.
25685 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25686 Register it.
25687 (XTread_socket) [TARGET_API_MAC_CARBON]:
25688 Consolidate SendEventToEventTarget calls.
25689 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25690 Move application activation handler to mac_handle_application_event.
25691 Move keyboard handler to mac_handle_keyboard_event.
25692 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25693 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25694 init_command_handler. Call install_application_handler.
25695
25696 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25697 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25698
256992007-06-07 Glenn Morris <rgm@gnu.org>
25700
25701 * emacs.c (main): Use `emacs-copyright' in --version output.
25702
257032007-06-06 Chong Yidong <cyd@stupidchicken.com>
25704
25705 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25706
257072007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25708
25709 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25710
25711 * macgui.h: Replace WindowPtr with WindowRef.
25712
25713 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25714 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25715 Replace ControlHandle with ControlRef.
25716 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25717
25718 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25719 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25720 Replace ControlHandle with ControlRef.
25721 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25722 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25723
25724 * macterm.h (struct scroll_bar): Rename member control_handle_low
25725 and control_handle_high to control_ref_low and control_ref_high.
25726 All uses changed.
25727 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25728 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25729 respectively. All uses changed.
25730 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25731 (install_window_handler, remove_window_handler): Replace WindowPtr
25732 with WindowRef in externs.
25733
257342007-06-05 Juanma Barranquero <lekktu@gmail.com>
25735
25736 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25737
257382007-06-03 Nick Roberts <nickrob@snap.net.nz>
25739
25740 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25741
25742 * frame.c (Fmouse_position, Fmouse_pixel_position):
25743 Condition on HAVE_GPM too.
25744
25745 * term.c (term_mouse_highlight): Remove unused variables.
25746 (Fterm_open_connection): Set gpm_zerobased to 1.
25747 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25748 Use zero based co-ordinates.
25749 (handle_one_term_event): Report a drag as mouse movement too.
25750
25751 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25752
257532007-06-03 Chong Yidong <cyd@stupidchicken.com>
25754
25755 * image.c (search_image_cache): New function. Require background
25756 color match if background color is unspecified in the image spec.
25757 (uncache_image, lookup_image): Use it.
25758
257592007-06-01 Juanma Barranquero <lekktu@gmail.com>
25760
25761 * window.c (Fshrink_window): Reflow docstring.
25762
257632007-06-02 Chong Yidong <cyd@stupidchicken.com>
25764
25765 * Version 22.1 released.
25766
257672007-06-01 Richard Stallman <rms@gnu.org>
25768
25769 * xfns.c (x_encode_text): Add GCPRO.
25770
257712007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25772
25773 * xfns.c (x_set_name_internal): Save encoded name before
25774 x_encode_text in case string data is relocated.
25775
257762007-05-31 Richard Stallman <rms@gnu.org>
25777
25778 * buffer.c (syms_of_buffer): Doc fix.
25779
257802007-05-30 Nick Roberts <nickrob@snap.net.nz>
25781
25782 * sysdep.c (init_sys_modes): Add rather than replace with
25783 O_NONBLOCK.
25784
25785 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25786 term_mouse_moveto.
25787
25788 * termhooks.h (term_mouse_moveto): New extern.
25789
25790 * term.c (mouse_face_window): Rename...
25791 (Qmouse_face_window): ...to this.
25792 (term_show_mouse_face, term_clear_mouse_face)
25793 (term_mouse_highlight): Use Qmouse_face_window.
25794 (term_mouse_moveto): New function.
25795 (term_mouse_position): Make it work.
25796 (syms_of_term): Uncomment assignment to mouse_position_hook.
25797 Staticpro Qmouse_face_window.
25798
257992007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25800
25801 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25802 around current_column call.
25803
258042007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25805
25806 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25807 * xdisp.c (next_element_from_buffer):
25808 * window.c (delete_window):
25809 * term.c (term_mouse_highlight):
25810 * msdos.c (getdefdir):
25811 * macterm.c (mac_create_bitmap_from_bitmap_data)
25812 (init_font_name_table):
25813 * fns.c (Fsxhash):
25814 * data.c (Fmake_local_variable):
25815 * ccl.c (ccl_driver): Likewise.
25816
258172007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25818
25819 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25820 Call mac_wakeup_from_rne on window size change.
25821
258222007-05-25 Chong Yidong <cyd@stupidchicken.com>
25823
25824 * image.c (uncache_image): Fix typo.
25825
258262007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25827
25828 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25829
258302007-05-22 Richard Stallman <rms@gnu.org>
25831
25832 * xterm.c (x_connection_closed): Remove NO_RETURN.
25833
258342007-05-22 Martin Rudalics <rudalics@gmx.at>
25835
25836 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25837
258382007-05-21 Chong Yidong <cyd@stupidchicken.com>
25839
25840 * image.c (uncache_image): New function.
25841 (Fimage_refresh): New function.
25842
258432007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25844
25845 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25846
258472007-05-20 Nick Roberts <nickrob@snap.net.nz>
25848
25849 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25850 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25851
258522007-05-20 Nick Roberts <nickrob@snap.net.nz>
25853
25854 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25855 conditional on [HAVE_GPM_H].
25856
258572007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25858
25859 * syntax.c (skip_chars): Update syntax-table only after we checked that
25860 the new location is valid.
25861
258622007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25863
25864 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25865 mac_get_window_bounds.
25866
258672007-05-20 Nick Roberts <nickrob@snap.net.nz>
25868
25869 * Makefile.in (LIBGPM): Allow it to be set from configure.
25870 If set then link Emacs with it.
25871
25872 * config.in: Regenerate.
25873
25874 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25875 New externs.
25876
25877 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25878 Include gpm.h.
25879 (handle_one_term_event, term_gpm): New externs.
25880
25881 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25882 and allow it to be interrupted by SIGIO.
25883
25884 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25885 (wait_reading_process_output): Wait on gpm_fd too.
25886 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25887 (add_gpm_wait_descriptor_called_flag): New variable.
25888 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25889
25890 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25891 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25892 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25893 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25894 (make_lispy_event): Add case GPM_CLICK_EVENT.
25895 (read_avail_input): Handle mouse input.
25896
25897 * term.c (write_glyphs_with_face): New function.
25898 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25899 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25900 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25901 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25902 (last_mouse_x, last_mouse_y): New variables.
25903 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25904 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25905 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25906 (Fterm_close_connection): New functions.
25907 (term_init): Initialise mouse_face_window.
25908
259092007-05-19 Chong Yidong <cyd@stupidchicken.com>
25910
25911 * xdisp.c (redisplay_window): If first window line is a
25912 continuation line, recompute the new window start instead of
25913 recentering.
25914
259152007-05-18 Glenn Morris <rgm@gnu.org>
25916
25917 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25918 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25919
259202007-05-17 Glenn Morris <rgm@gnu.org>
25921
25922 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25923
259242007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25925
25926 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25927 dead key repeat and up events.
25928
259292007-05-14 Chong Yidong <cyd@stupidchicken.com>
25930
25931 * image.c (pbm_load): Check image size for monochrome pbm.
25932
259332007-05-13 Chong Yidong <cyd@stupidchicken.com>
25934
25935 * xterm.c (XTread_socket): Revert last change.
25936
259372007-05-12 Chong Yidong <cyd@stupidchicken.com>
25938
25939 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25940
25941 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25942
259432007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25944
25945 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25946 mixup (YAILOM).
25947
259482007-05-07 Andreas Schwab <schwab@suse.de>
25949
25950 * keymap.c (Flookup_key): Fix typo in last change.
25951
259522007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25953
25954 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25955 mapping for unibyte strings.
25956
259572007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25958
25959 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25960 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25961
259622007-04-29 Richard Stallman <rms@gnu.org>
25963
25964 * insdel.c (replace_range): For undo, record insertion first.
25965
259662007-04-29 Andreas Schwab <schwab@suse.de>
25967
25968 * lisp.h (VECSIZE): Use OFFSETOF.
25969
259702007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25971
25972 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25973 disabled lines.
25974
259752007-04-28 Richard Stallman <rms@gnu.org>
25976
25977 * lread.c (read_escape): In a string, \s is always space.
25978
259792007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25980
25981 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25982
25983 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25984 submenu for menu bar items.
25985
25986See ChangeLog.10 for earlier changes.
25987
25988;; Local Variables:
25989;; coding: utf-8
25990;; add-log-time-zone-rule: t
aac0c6e3
MR
25991;; End:
25992
e3eb1dae 25993 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25994
25995 This file is part of GNU Emacs.
25996
25997 GNU Emacs is free software: you can redistribute it and/or modify
25998 it under the terms of the GNU General Public License as published by
25999 the Free Software Foundation, either version 3 of the License, or
26000 (at your option) any later version.
26001
26002 GNU Emacs is distributed in the hope that it will be useful,
26003 but WITHOUT ANY WARRANTY; without even the implied warranty of
26004 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26005 GNU General Public License for more details.
26006
26007 You should have received a copy of the GNU General Public License
26008 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26009
26010;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40