Update package-x to latest package.el changes.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
26469a38
DN
12010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
2
3 Make lisp_time_argument declaration work on all systems.
4 * lisp.h (lisp_time_argument): Move declaration ...
5 * systime.h (lisp_time_argument): ... here
6 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
7
8848b728
JD
82010-07-29 Jan Djärv <jan.h.d@swipnet.se>
9
10 * vm-limit.c (POINTER): Add typedef for it.
11 (start_of_data): Change return type from POINTER to char *.
12
13 * frame.h (Qtty_color_mode): Move declaration out of ifdef
14 HAVE_WINDOW_SYSTEM.
15
76fd1ee9
DN
162010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
17
0441987e
DN
18 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
19 Remove reference to __osf__, unused.
20
56a000c7
DN
21 * mem-limits.h: Remove duplicated includes.
22 (NULL): Remove definition, unused.
23 (POINTER): Remove definition.
24 (start_of_data): Use char* in prototype, as the function
25 definition does.
26
e6cba650
DN
27 Remove extern declarations from .c files, and them to .h files.
28 * keyboard.h (Qhelp_echo, waiting_for_input)
29 (input_available_clear_time, ignore_mouse_drag_p)
30 (Vdouble_click_time, real_this_command, Vthis_original_command):
31 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
32 (Voverriding_local_map_menu_flag):
33 * lisp.h (Qinteractive_form, use_file_dialog)
34 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
35 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
36 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
37 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
38 (Qfunction, debug_on_next_call, Qfield)
39 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
40 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
41 (Qfile_directory_p, Qinsert_file_contents)
42 (Qcompletion_ignore_case, Qcompletion_ignore_case)
43 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
44 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
45 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
46 (Qminibuffer_prompt)
47 (Vtemporary_file_directory,char_ins_del_vector, Qface):
48 * xterm.h (gray_bitmap_width, gray_bitmap_height)
49 (gray_bitmap_bits, xic_create_fontsetname):
50 * coding.h (Vtranslation_table_for_input): Add extern declarations.
51
52 * xsmfns.c (Vuser_login_name):
53 * xrdb.c (Vdouble_click_time):
54 * xfaces.c (xic_create_fontsetname):
55 * w32select.c (waiting_for_input):
56 * print.c (minibuffer_auto_raise):
57 * msdos.c (Qhelp_echo):
58 * macros.c (real_this_command):
59 * keymap.c (Voverriding_local_map):
60 * xterm.c (poll_for_input_1, gray_bitmap_width)
61 (gray_bitmap_height, gray_bitmap_bits;
62 * xmenu.c ( Voverriding_local_map)
63 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
64 (use_file_dialog, Xt_app_con):
65 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
66 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
67 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
68 (Qtool_bar_lines, ignore_mouse_drag_p):
69 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
70 (Qrear_nonsticky, nconc2):
71 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
72 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
73 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
74 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
75 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
76 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
77 (gc_in_progress):
78 * doc.c (Voverriding_local_map, Qremap):
79 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
80 (Vcompletion_regexp_list):
81 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
82 (Qcompletion_ignore_case):
83 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
84 (Vhistory_length, Vthis_original_command, real_this_command)
85 (Qface, Qminibuffer_prompt, history_delete_duplicates):
86 * image.c (Qrisky_local_variable):
87 * fontset.c (QCname):
88 * fns.c (minibuffer_auto_raise, QCname):
89 * dispnew.c (char_ins_del_cost):
90 * composite.c (font_fill_lglyph_metrics):
91 * cmds.c (Qface, Vtranslation_table_for_input):
92 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
93 * ccl.c (charset_unicode):
94 * callproc.c (Vtemporary_file_directory):
95 * buffer.c (emacs_strerror): Remove extern declarations.
96
97 * data.c (Qwindow): Make non-static, used from other files too.
98 * frame.c (validate_x_resource_name): Remove shadow definition for i.
99
76fd1ee9
DN
100 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
101 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
102 * s/usg5-4.h (COFF):
103 * s/template.h:
104 * s/msdos.h (COFF, NO_REMAP):
105 * s/ms-w32.h (NO_REMAP):
106 * s/hpux10-20.h (NO_REMAP):
107 * m/sparc.h (SEGMENT_MASK):
108 * m/m68k.h (NO_REMAP):
109 * m/intel386.h (SEGMENT_MASK):
110 * m/arm.h (NO_REMAP):
111 * m/alpha.h (COFF):
112 * m/template.h: Remove references to unused defines.
113
8a52f00a
JD
1142010-07-28 Jan Djärv <jan.h.d@swipnet.se>
115
116 * xsettings.c (Ftool_bar_get_system_style): Also check for
117 Qtext_image_horiz.
118
119 * xdisp.c (Qtext_image_horiz): Define.
120 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 121 to documentation of tool-bar-style.
8a52f00a
JD
122
123 * lisp.h (Qtext_image_horiz): Declare.
124
125 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
126 style text_image_horiz.
127
89dc303e
DN
1282010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
129
60799703
DN
130 * emacs.c (Fkill_emacs): Remove return statement.
131
37254dc1
DN
132 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
133 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
134 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
135 local extern declarations.
136
71c7345a
DN
137 * xmenu.c: Do not included lwlib.h, not needed.
138
6ba577cb
DN
139 * m/iris4d.h (XUINT, XSET): Remove, not needed.
140
fdb183d6
DN
141 * process.c: Move definitions earlier to minimize #ifdefs.
142
143 * xterm.h (x_get_customization_string, x_load_resources)
144 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
145 (x_check_errors, x_property_data_to_lisp, defined_color)
146 (xic_set_xfontset, x_defined_color): Use const.
147
148 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
149 (x_text_icon, x_check_errors, x_connection_closed): Use const.
150
151 * xselect.c (selection_data_to_lisp_data)
152 (x_property_data_to_lisp):
153 * xrdb.c (x_get_string_resource, file_p)
154 (x_get_customization_string, magic_file_p, search_magic_path)
155 (get_system_app, get_user_app, x_load_resources, x_get_resource)
156 (x_get_string_resource): Use const.
157
158 * xfns.c: Include xlwmenu.h when USE_LUCID.
159 (x_defined_color, xic_set_xfontset): Use const.
160 (Fx_hide_tip): Remove local extern declaration.
161
162 * xfaces.c (Qmouse_face): Remove declaration.
163 (face_color_gray_p, tty_defined_color, defined_color)
164 (face_color_gray_p, face_color_supported_p). Add const.
165
166 * xdisp.c (do_mouse_tracking): Remove declaration.
167 (add_to_log): Use const.
168
169 * minibuf.c (Qmouse_face): Remove declaration.
170
171 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
172
173 * keyboard.h (do_mouse_tracking): Add declaration.
174
175 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
176 (QCdata, QCtype, Qcenter): Remove declarations.
177
178 * frame.c (x_get_resource_string, x_get_string_resource)
179 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
180 (x_default_parameter): Use const.
181
182 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
183 (QCheight, QCsize, QCname): Remove declarations.
184
185 * emacs.c (main): Remove local extern declaration.
186
187 * editfns.c (region_limit, syms_of_editfns): Remove local extern
188 declarations.
189
190 * dispnew.c: Remove duplicate #include <unistd.h>.
191 (update_window, update_frame_1, init_display): Remove local extern
192 declarations.
193
194 * dispextern.h (add_to_log): Remove declaration.
195 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
196 (x_frame_get_and_record_arg, x_default_parameter): Add const.
197
198 * dired.c (scmp): Add const.
199 (directory_files_internal): Remove local extern declaration.
200
201 * data.c (Finteractive_form): Use const.
202
203 * composite.c (syms_of_composite): Remove local extern declarations.
204
205 * charset.c (add_to_log): Remove declaration.
206
207 * character.c (strwidth, parse_str_to_multibyte): Add const.
208
209 * character.h (strwidth, parse_str_to_multibyte): Likewise.
210
211 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
212
89dc303e 213 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
214 (Lisp_Subr): Make doc and intspec constant.
215 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
216 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
217 (QCheight, QCsize, QCname, QCwidth, QCforeground)
218 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
219 (display_arg): Add declarations.
89dc303e 220
0ed082fe 2212010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
222
223 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
224
0ed082fe
JB
225 * window.c (Fwindow_height): Doc fix (bug#6518).
226
2272010-07-27 Juanma Barranquero <lekktu@gmail.com>
228
229 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
230
ccaf0336
DN
2312010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
232
977105dc
DN
233 * keyboard.c (Ftop_level, Fexit_recursive_edit)
234 (Fabort_recursive_edit): Remove return statements in NO_RETURN
235 functions.
236
f5ada890
DN
237 * frame.h (Qtty_color_mode): Add declaration.
238
ccaf0336
DN
239 * lisp.h (Ftop_level, Fexit_recursive_edit)
240 (Fabort_recursive_edit): Mark as NO_RETURN.
241
dfe3c90f
KH
2422010-07-26 Kenichi Handa <handa@m17n.org>
243
244 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 245 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 246
7d383292
JB
2472010-07-26 Juanma Barranquero <lekktu@gmail.com>
248
249 * lread.c (unreadpure, mapatoms_1): Make static.
250
da31e629
JB
2512010-07-25 Juanma Barranquero <lekktu@gmail.com>
252
253 * terminfo.c (tparam): Fix prototype of tparm.
254
7bfa6d77
AS
2552010-07-25 Andreas Schwab <schwab@linux-m68k.org>
256
dcc19aac
AS
257 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
258 find start of text segment.
259 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
260 is defined.
261
7bfa6d77
AS
262 * callproc.c (set_initial_environment): Avoid unbalanced braces.
263
63f9a672
KB
2642010-07-25 Ken Brown <kbrown@cornell.edu>
265
266 * vm-limit.c (check_memory_limits): Fix previous change;
267 accidentally reverted an earlier change.
268
24933075
KB
2692010-07-25 Ken Brown <kbrown@cornell.edu>
270
271 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
272 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
273
361358ea
JB
2742010-07-25 Juanma Barranquero <lekktu@gmail.com>
275
276 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
277 * dired.c (opendir, readdir): Fix prototypes.
278 * editfns.c (w32_get_internal_run_time): Fix prototypes.
279 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
280 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
281 (telldir): Remove declaration.
282 * ralloc.c (real_morecore, __morecore): Fix prototypes.
283 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
284 * syssignal.h (strsignal): Fix prototype.
285 * term.c (tparam): Fix prototype.
286 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
287 (term_get_fkeys): Set inside "#ifndef DOS_NT".
288 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
289 and __morecore.
290 * w32gui.h (XParseGeometry): Fix prototype.
291 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
292 * w32term.c (my_set_focus): Declare inside #if 0.
293 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
294 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
295 (drain_message_queue, get_next_msg, post_msg, parse_button)
296 (ClipboardSequence_Proc): Fix prototypes.
297 (wait_for_sync): Remove declaration.
298
630b9592
JB
2992010-07-24 Juanma Barranquero <lekktu@gmail.com>
300
301 * w32fns.c (w32_to_x_color): Remove, unused.
302
6a0d6611
AS
3032010-07-24 Andreas Schwab <schwab@linux-m68k.org>
304
305 * lisp.h: Remove leftover P_.
306
4e8608ff
DN
3072010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
308
309 * ecrt0.c, unexalpha.c: Remove files, unused.
310
c8197983
AS
3112010-07-24 Andreas Schwab <schwab@linux-m68k.org>
312
313 * cmds.c (internal_self_insert): Make static.
314 * lisp.h (internal_self_insert): Remove declaration.
315
97b372d7
JB
3162010-07-23 Juanma Barranquero <lekktu@gmail.com>
317
33ac0414
JB
318 * alloc.c (free_float):
319 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
320 * frame.c (delete_frame_handler):
321 * ralloc.c (reorder_bloc):
322 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
323 Remove unused static functions.
324
94da8397
JB
325 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
326 it is called only from NS code.
327
2e6c8532
JB
328 * w32term.c (my_set_focus): #ifdef away; it is called only from
329 "#ifdef 0" code.
330
97b372d7
JB
331 * w32fns.c (x_edge_detection):
332 * xfaces.c (may_use_scalable_font_p):
333 Remove obsolete static declarations.
334
7c3320d8
JB
3352010-07-20 Juanma Barranquero <lekktu@gmail.com>
336
337 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
338 (emacs_blocked_realloc, uninterrupt_malloc):
339 * fringe.c (w32_reset_fringes):
340 * image.c (convert_mono_to_color_image, lookup_rgb_color)
341 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
342 * sound.c (be2hs, do_play_sound):
343 * vm-limit.c (get_lim_data, ret_lim_data):
344 * w32term.c (x_free_frame_resources):
345 * xfaces.c (x_create_gc, x_free_gc):
346 Convert definitions to standard C.
347
d5273788
SM
3482010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
349
350 * eval.c (Feval, Ffuncall): Use the new names.
351
352 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
353 (DEFUN): Add braces around the union initialisation and use ## to
354 specify the right union alternative and avoid a cast.
355
8d16a259
JB
3562010-07-18 Juanma Barranquero <lekktu@gmail.com>
357
358 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
359
3b8eff32
CY
3602010-07-17 Chong Yidong <cyd@stupidchicken.com>
361
362 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
363
499322ce
J
3642010-07-17 Jan Djärv <jan.h.d@swipnet.se>
365
366 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
367 is related to the menu bar (Bug#6499).
a628ad9d 368 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 369
f6003da5 3702010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
371
372 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
373
374 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
375
376 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
377 i.e. don't put back ButtonRelease (Bug#6608).
378
379 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
380 instead of Window. Call xg_event_is_for_menubar when
381 USE_GTK (Bug#6499).
382
383 * gtkutil.h (xg_event_is_for_menubar): Declare.
384
385 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
386
f6003da5 3872010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
388
389 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
390 when it's the same as the old foreground. (Bug#6609)
391
23243f29
J
3922010-07-16 Jan Djärv <jan.h.d@swipnet.se>
393
394 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
395 widget is non-null (Bug#6645).
396
2b23d2a6
AS
3972010-07-15 Andreas Schwab <schwab@linux-m68k.org>
398
01b564ff
AS
399 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
400 Convert old-style definition.
401
2b23d2a6
AS
402 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
403 timestamp argument.
404
c4affd2c
EZ
4052010-07-15 Eli Zaretskii <eliz@gnu.org>
406
407 * fringe.c (update_window_fringes): Restore mistakenly reverted
408 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
409
cf28cebc
J
4102010-07-14 Jan Djärv <jan.h.d@swipnet.se>
411
412 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
413 (SET_SAVED_KEY_EVENT): Remove (not used).
414 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
415 remove size parameter.
416 (handle_one_xevent): Check popup_activated () for menu for Xt also.
417 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
418 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
419 ButtonRelease.
6b2c4bd9
J
420 (x_set_window_size_1): scroll_bar_actual_width is always
421 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
422
423 * xdisp.c (pending_menu_activation): Remove extern declaration.
424 (prepare_menu_bars): Remove setting of pending_menu_activation.
425
426 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
427 (x_activate_menubar): Set popup_activated_flag for Xt also.
428 Remove setting of pending_menu_activation.
cf28cebc
J
429 (set_frame_menubar): Remove check of pending_menu_activation.
430 Declare menubar_size before code. Correct spelling in comment.
431
f6c1c771
KH
4322010-07-14 Kenichi Handa <handa@m17n.org>
433
434 * font.c (font_open_entity): Cancel previous change.
435 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
436
20477505
EZ
4372010-07-13 Eli Zaretskii <eliz@gnu.org>
438
77defa9a
EZ
439 Remove subprocesses #ifdefs.
440 * process.c <inhibit_sentinels>: Move to the common part.
441 (Fwaiting_for_user_input_p): Move to the common part; return nil
442 if async subprocesses aren't supported.
443 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
444 MS-DOS. Remove "#ifdef subprocesses".
445 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
446 (gettimeofday): Remove "#ifdef subprocesses".
447 (wait_without_blocking): Remove function.
448 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
449 Remove "#ifdef subprocesses".
450 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
451 compiled on MS-DOS.
452 * callproc.c (Fcall_process) [!MSDOS]: Don't call
453 wait_for_termination on MS-DOS.
454 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
455 initialization of inhibit_sentinels.
456 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
457 subprocesses" conditional.
458 * callproc.c (Fcall_process) [!subprocesses]: Don't call
459 wait_for_termination, since `buffer' cannot be an integer when
460 async subprocesses are not supported
461 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
462 for ifdefing away the call to Fprocess_status.
463
20477505
EZ
464 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
465 away the entire body of the function.
466
b3ffc17c
DN
4672010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
468
01faa934
DN
469 Remove subprocesses #ifdefs from term.c.
470 * process.c (add_keyboard_wait_descriptor)
471 (delete_keyboard_wait_descriptor): Move to common section, do
472 nothing when subprocesses is not defined.
a628ad9d
JB
473 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
474 Remove subprocesses #ifdefs.
01faa934 475
b3ffc17c
DN
476 Convert maybe_fatal to standard C.
477 * lisp.h (verror): Declare.
478 * eval.c (verror): New function containing the code from ...
479 (error): ... this. Call verror.
480 * term.c (vfatal): New function containing the code from ...
481 (fatal): ... this. Call vfatal.
482 (maybe_fatal): Convert to standard C, use variable number of
483 arguments. Declare as non-return.
484 (init_tty): Fix maybe_fatal call.
485
0521f580
DN
4862010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
487
488 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
489 (_scroll_bar_note_movement): Convert definitions to standard C.
490 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
491 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
492
ebd15611
DN
4932010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
494
495 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
496 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
497 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
498 (xaw_jump_callback, xaw_scroll_callback)
499 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
500 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
501 definitions to standard C.
502 * xmenu.c (menubar_id_to_frame, popup_get_selection)
503 (popup_activate_callback, popup_deactivate_callback)
504 (menu_highlight_callback, menubar_selection_callback)
505 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
506 (free_frame_menubar, popup_selection_callback, as)
507 (create_and_show_popup_menu, dialog_selection_callback)
508 (create_and_show_dialog):
509 * xfns.c (hack_wm_protocols, x_window):
510 * xfaces.c (x_update_menu_appearance):
511 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
512 (char_to_pixel_size, round_size_to_char, get_wm_shell)
513 (set_frame_size, update_wm_hints, setup_frame_gcs)
514 (update_various_frame_slots, update_from_various_frame_slots)
515 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
516 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
517 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
518
de06a2dd
AS
5192010-07-12 Andreas Schwab <schwab@linux-m68k.org>
520
a628ad9d 521 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 522
fc549af9
EZ
5232010-07-12 Eli Zaretskii <eliz@gnu.org>
524
525 * process.c (setup_process_coding_systems): Move to the part
526 shared by non-subprocesses systems, and make its body empty when
527 subprocesses is not defined.
528 (close_process_descs): Move to the part shared by non-subprocesses
529 systems.
1408902e
EZ
530 (wait_reading_process_output) [!subprocesses]: Convert arg list to
531 ANSI C.
fc549af9 532
d5a3eaaf
AS
5332010-07-12 Andreas Schwab <schwab@linux-m68k.org>
534
535 * editfns.c (transpose_markers): Convert old-style definition.
536 * emacs.c (abort, shut_down_emacs, fixup_locale)
537 (synchronize_system_time_locale)
538 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
539 * floatfns.c (extract_float, matherr, init_floatfns)
540 (syms_of_floatfns): Likewise.
541 * fns.c (make_hash_table): Likewise.
542 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
543 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
544 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
545 (ftfont_variation_glyphs): Likewise.
546 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
547 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
548 * lread.c (read_filtered_event): Likewise.
549 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
550 * process.c (wait_reading_process_output): Likewise.
551 * scroll.c (do_line_insertion_deletion_costs): Likewise.
552 * search.c (search_buffer, boyer_moore): Likewise.
553 * syntax.c (scan_sexps_forward): Likewise.
554 * xdisp.c (try_scrolling): Likewise.
555 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
556 (face_at_string_position): Likewise.
557 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
558 * xselect.c (x_get_window_property, receive_incremental_selection)
559 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
560 Likewise.
561 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
562
6f704c76
DN
5632010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
564
ded80a25
DN
565 * callproc.c (child_setup): Remove subprocesses conditional.
566 Remove code dealing with SET_EMACS_PRIORITY, unused.
567
49d937f4 568 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
569 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
570
571 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
572 (__do_global_dtors, __main): Use void in definition.
573 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
574 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
575 the only users from ...
576 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
577 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
578 (HAVE_VOLATILE): Remove, unused.
579
6f704c76
DN
580 Convert more function definitions to standard C.
581 * xdisp.c (window_box_edges, handle_single_display_spec)
582 (display_string): Convert definition to standard C.
583 * scroll.c (do_direct_scrolling, scrolling_1):
584 * dispnew.c (allocate_matrices_for_frame_redisplay)
585 (mirrored_line_dance):
586 * coding.c (code_convert_string):
587 * charset.c (map_charset_chars):
588 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
589 (Fregister_ccl_program, Fregister_code_conversion_map):
590 * keyboard.c (kbd_buffer_nr_stored): Likewise.
591 (head_table): Make static and const.
592
e6cfa7c3
AS
5932010-07-12 Andreas Schwab <schwab@linux-m68k.org>
594
595 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
596 (PROFILING_LDFLAGS): Set from substitution.
597 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
598 CFLAGS last.
599
892dd565
KH
6002010-07-12 Kenichi Handa <handa@m17n.org>
601
6f2cdcd1
KH
602 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
603 (shortlisp): Likewise.
604
892dd565
KH
605 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
606
607 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
608 of FONT_ENTITY_INDEX.
609 (Ffont_get): If KEY is :otf and the font-object doesn't have the
610 property, get the property value dynamically.
611 (Ffont_put): Accept font-entity and font-object too.
612 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
613 return value changed.
614 (syms_of_font): Adjusted for the above change.
615
ae96d47a
AS
6162010-07-11 Andreas Schwab <schwab@linux-m68k.org>
617
c8fc18ee
AS
618 * blockinput.h: Remove obsolete comment.
619
89887d67
AS
620 * lisp.h: Include <stddef.h>.
621 (OFFSETOF): Don't define.
622 (VECSIZE): Use offsetof instead of OFFSETOF.
623 (PSEUDOVECSIZE): Likewise.
624 * process.c (conv_sockaddr_to_lisp): Likewise.
625 * alloc.c: Don't include <stddef.h>.
626 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
627
ae96d47a
AS
628 * process.c: Remove obsolete comment.
629
635c0aa1
CY
6302010-07-11 Chong Yidong <cyd@stupidchicken.com>
631
632 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
633
a64df650
AS
6342010-07-11 Andreas Schwab <schwab@linux-m68k.org>
635
8966b757
AS
636 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
637 index, rindex.
638 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
639 * editfns.c (Fuser_full_name, Fformat): Likewise.
640 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
641 * fileio.c (Ffile_symlink_p): Likewise.
642 * filelock.c (current_lock_owner): Likewise.
643 * font.c (font_parse_name, font_parse_family_registry): Likewise.
644 * fontset.c (fontset_pattern_regexp): Likewise.
645 * lread.c (read1): Likewise.
646 * sysdep.c (init_system_name): Likewise.
647 * xfns.c (select_visual): Likewise.
648 * s/hpux10-20.h (index, rindex): Don't define.
649 * s/ms-w32.h (index): Likewise.
650 * s/usg5-4.h: Likewise.
651
cf237e27
AS
652 * callproc.c (relocate_fd): Use F_DUPFD if defined.
653
a8fe7202
AS
654 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
655 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
656 (egetenv): Likewise.
657 * doprnt.c (doprnt): Likewise.
658 * editfns.c (set_time_zone_rule, format2): Likewise.
659 * emacs.c (decode_env_path): Likewise.
660 * eval.c (signal_error, error): Likewise.
661 * insdel.c (replace_range_2): Likewise.
662 * keyboard.c (cmd_error_internal): Likewise.
663 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
664 * print.c (write_string, write_string_1, print_error_message):
665 Likewise.
666 * vm-limit.c (warn_function, memory_warnings): Likewise.
667 * xdisp.c (message1, message1_nolog, message_with_string)
668 (vmessage, message, message_nolog): Likewise.
669 * emacs.c: Remove duplicate declaration.
670 * keyboard.h: Likewise.
671 * lisp.h: Update prototypes.
672
bb8e180f
AS
673 * eval.c: Fix indentation problem.
674
83380e65
AS
675 * keyboard.c: Include "process.h"
676
a64df650
AS
677 * eval.c: Remove obsolete noinline declaration.
678 * fns.c: Likewise.
679
6a8033e1
KR
6802010-07-11 Ken Raeburn <raeburn@raeburn.org>
681
682 * doprnt.c (doprnt): Take a va_list argument instead of count and
683 pointer.
684 * eval.c (error): Change to a standard-C variadic function.
685 * xdisp.c (vmessage): Renamed from message, made static, and
686 changed to take a va_list argument.
687 (message): New variadic wrapper.
688 (message_nolog): Now a variadic function, calling vmessage.
689 * lisp.h: Include stdarg.h for va_list.
690 (doprnt, error, message, message_nolog): Decls updated.
691
462aa963
EZ
6922010-07-11 Eli Zaretskii <eliz@gnu.org>
693
694 * process.c (syms_of_process) <delete-exited-processes>: Define
695 even if !subprocesses.
696 (delete_exited_processes): Ditto.
697
698 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
699 (delete_exited_processes): Don't define.
700
48104462
CY
7012010-07-10 Chong Yidong <cyd@stupidchicken.com>
702
703 * frame.c (make_frame): Initialize menu_bar_lines and
704 tool_bar_lines members.
705 (make_initial_frame, make_terminal_frame): Initialize
706 menu_bar_lines using value of menu-bar-mode.
707
708 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
709
f388c88a
EZ
7102010-07-10 Eli Zaretskii <eliz@gnu.org>
711
712 * process.c: Reshuffle #include's. Condition some of the global
713 and static variables on `subprocesses'.
714 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
715 Leave only one implementation.
716 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
717 (kill_buffer_processes, Flist_system_processes)
718 (Fprocess_attributes, init_process, syms_of_process): Unify the
719 implementations for with subprocesses and without them.
720
723f5a07
J
7212010-07-09 Jan Djärv <jan.h.d@swipnet.se>
722
723 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
724 correct size for Motif.
725 (free_frame_menubar): Call x_set_window_size to update frame size.
726
727 * xfns.c (x_window): Set borderWidth to 0 for pane and
728 EmacsFrame. Frame size calculation is wrong otherwise.
729
2536a4b7
MA
7302010-07-09 Michael Albinus <michael.albinus@gmx.de>
731
732 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
733 allows to suppress errors when polling in Emacs' main loop.
734 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
735 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
736 (Fdbus_method_error_internal, Fdbus_send_signal)
737 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
738 (Fdbus_register_method): Use it. (Bug#6579)
739
5842a27b
DN
7402010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
741
742 * alloc.c: Convert DEFUNs to standard C.
743 * buffer.c:
744 * bytecode.c:
745 * callint.c:
746 * callproc.c:
747 * casefiddle.c:
748 * casetab.c:
749 * category.c:
750 * character.c:
751 * charset.c:
752 * chartab.c:
753 * cmds.c:
754 * coding.c:
755 * composite.c:
756 * data.c:
757 * dbusbind.c:
758 * dired.c:
759 * dispnew.c:
760 * doc.c:
761 * dosfns.c:
762 * editfns.c:
763 * emacs.c:
764 * eval.c:
765 * fileio.c:
766 * filelock.c:
767 * floatfns.c:
768 * fns.c:
769 * font.c:
770 * fontset.c:
771 * frame.c:
772 * fringe.c:
773 * image.c:
774 * indent.c:
775 * insdel.c:
776 * keyboard.c:
777 * keymap.c:
778 * lread.c:
779 * macros.c:
780 * marker.c:
781 * menu.c:
782 * minibuf.c:
783 * msdos.c:
784 * nsfns.m:
785 * nsmenu.m:
786 * nsselect.m:
787 * print.c:
788 * process.c:
789 * search.c:
790 * sound.c:
791 * syntax.c:
792 * term.c:
793 * terminal.c:
794 * textprop.c:
795 * undo.c:
796 * w16select.c:
797 * w32console.c:
798 * w32fns.c:
799 * w32font.c:
800 * w32menu.c:
801 * w32proc.c:
802 * w32select.c:
803 * window.c:
804 * xdisp.c:
805 * xfaces.c:
806 * xfns.c:
807 * xmenu.c:
808 * xselect.c:
809 * xsettings.c:
810 * xsmfns.c: Likewise.
811
d568829b
EZ
8122010-07-08 Eli Zaretskii <eliz@gnu.org>
813
814 * process.c (kbd_is_on_hold, hold_keyboard_input)
815 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
816
52214050
J
8172010-07-08 Jan Djärv <jan.h.d@swipnet.se>
818
819 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
820 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
821 unless USE_LUCID.
822
313d9eb2
DN
8232010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
824
a628ad9d
JB
825 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
826 declaration.
d8825aa3 827
295d0d8f
DN
828 Clean up include guards.
829 * tparam.c: Remove include guards for config.h, string.h and code
830 that assumes #ifndef emacs.
831 * termcap.c:
832 * unexalpha.c:
833 * sysdep.c:
834 * filemode.c:
835 * filelock.c:
836 * bidi.c: Likewise.
837
49d9e6b0
DN
838 Remove prefix-args.c
839 * prefix-args.c: Remove file.
840 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
841 * Makefile.in (temacs${EXEEXT}): Remove references to
842 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
843 (mostlyclean): Remove reference to prefix-args.
844 (prefix-args): Remove.
845
313d9eb2
DN
846 Simplify cstart_of_data, start_of_code and related code.
847 * mem-limits.h: Remove !emacs and _LIBC conditional code.
848 (start_of_data): Merge into start_of_data function.
849 * sysdep.c (start_of_text): Remove. Move simplified versions of
850 it in the only users: unexaix.c and unexec.c.
851 (read_input_waiting): Remove local declaration of quit_char.
852 (start, etext): Remove declarations.
853 (start_of_data): Merge with the version in mem-limits.h and move
854 to vm-limits.c.
855 * vm-limit.c (start_of_data): Merged and simplified version of the
856 code formerly in mem-limits.h and sysdep.c.
857 * unexec.c (start): New declaration, moved from sysdep.c.
858 (start_of_text): Simplified version of the code formerly in sysdep.c.
859 * unexaix.c (start_of_text): Simplified version of the code
860 formerly in sysdep.c.
861 * m/alpha.h (HAVE_TEXT_START): Remove.
862 (TEXT_START): Move ...
863 * unexalpha.c (TEXT_START): ... here.
864 * s/hpux10-20.h (TEXT_START): Remove.
865 * s/darwin.h (TEXT_START):
866 * m/mips.h (TEXT_START):
867 * m/macppc.h (HAVE_TEXT_START):
868 * m/m68k.h (TEXT_START):
869 * m/iris4d.h (TEXT_START):
870 * m/intel386.h (TEXT_START):
871 * m/ibmrs6000.h (TEXT_START):
872 * m/ia64.h (HAVE_TEXT_START):
873 * s/msdos.h (TEXT_START): Likewise.
874
72af86bd
AS
8752010-07-07 Andreas Schwab <schwab@linux-m68k.org>
876
877 * alloc.c (overrun_check_malloc, overrun_check_realloc)
878 (overrun_check_free, xstrdup, allocate_string)
879 (allocate_string_data, compact_small_strings, Fmake_string)
880 (make_unibyte_string, make_multibyte_string)
881 (make_string_from_bytes, make_specified_string, make_float)
882 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
883 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
884 memcpy, memmove, memset, memcmp.
885 * atimer.c (start_atimer, set_alarm): Likewise.
886 * buffer.c (clone_per_buffer_values, report_overlay_modification)
887 (mmap_realloc, init_buffer_once): Likewise.
888 * callint.c (Fcall_interactively): Likewise.
889 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
890 (getenv_internal_1): Likewise.
891 * casefiddle.c (casify_object): Likewise.
892 * ccl.c (ccl_driver): Likewise.
893 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
894 * charset.c (load_charset_map_from_file)
895 (load_charset_map_from_file, load_charset_map_from_vector)
896 (Fdefine_charset_internal): Likewise.
897 * cm.c (Wcm_clear): Likewise.
898 * coding.c (decode_eol, decode_coding_object)
899 (Fset_coding_system_priority, make_subsidiaries): Likewise.
900 * data.c (Faset): Likewise.
901 * dired.c (directory_files_internal, file_name_completion_stat):
902 Likewise.
903 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
904 (clear_glyph_row, copy_row_except_pointers)
905 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
906 (save_current_matrix, restore_current_matrix)
907 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
908 (mirror_line_dance, scrolling_window): Likewise.
909 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
910 Likewise.
911 * doprnt.c (doprnt): Likewise.
912 * editfns.c (Fuser_full_name, make_buffer_string_both)
913 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
914 * emacs.c (sort_args): Likewise.
915 * eval.c (Fapply, Ffuncall): Likewise.
916 * fileio.c (Ffile_name_directory, make_temp_name)
917 (Fexpand_file_name, search_embedded_absfilename)
918 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
919 (auto_save_error): Likewise.
920 * fns.c (Fstring_equal, Fcopy_sequence, concat)
921 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
922 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
923 (Fmake_hash_table): Likewise.
924 * fringe.c (Fdefine_fringe_bitmap): Likewise.
925 * ftfont.c (ftfont_text_extents): Likewise.
926 * getloadavg.c (getloadavg): Likewise.
927 * image.c (define_image_type, make_image, make_image_cache)
928 (x_create_x_image_and_pixmap, xbm_image_p)
929 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
930 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
931 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
932 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
933 (tiff_image_p, tiff_read_from_memory, gif_image_p)
934 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
935 Likewise.
936 * indent.c (scan_for_column, compute_motion): Likewise.
937 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
938 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
939 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
940 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
941 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
942 (store_user_signal_events, menu_bar_items, tool_bar_items)
943 (process_tool_bar_item, append_tool_bar_item)
944 (read_char_minibuf_menu_prompt, read_key_sequence)
945 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
946 Likewise.
947 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
948 Likewise.
949 * lisp.h (STRING_COPYIN): Likewise.
950 * lread.c (Fload, read1, oblookup): Likewise.
951 * msdos.c (Frecent_doskeys): Likewise.
952 * nsfns.m (Fx_create_frame): Likewise.
953 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
954 Likewise.
955 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
956 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
957 Likewise.
958 * nsmenu.m (ns_update_menubar): Likewise.
959 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
960 * print.c (print_unwind, printchar, strout, print_string)
961 (print_error_message): Likewise.
962 * process.c (conv_lisp_to_sockaddr, set_socket_option)
963 (Fmake_network_process, Fnetwork_interface_list)
964 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
965 (init_process): Likewise.
966 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
967 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
968 Likewise.
969 * scroll.c (do_scrolling, do_direct_scrolling)
970 (scrolling_max_lines_saved): Likewise.
971 * search.c (search_buffer, wordify, Freplace_match): Likewise.
972 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
973 * syntax.c (skip_chars, skip_syntaxes): Likewise.
974 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
975 (emacs_set_tty): Likewise.
976 * term.c (encode_terminal_code, calculate_costs)
977 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
978 Likewise.
979 * termcap.c (tgetst1, gobble_line): Likewise.
980 * termhooks.h (EVENT_INIT): Likewise.
981 * tparam.c (tparam1): Likewise.
982 * unexalpha.c (unexec): Likewise.
983 * unexec.c (write_segment): Likewise.
984 * unexmacosx.c (unexec_write_zero): Likewise.
985 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
986 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
987 * w32font.c (w32font_list_family, w32font_text_extents)
988 (w32font_list_internal, w32font_match_internal)
989 (w32font_open_internal, compute_metrics, Fx_select_font):
990 Likewise.
991 * w32menu.c (set_frame_menubar, add_menu_item)
992 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
993 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
994 * w32uniscribe.c (uniscribe_list_family): Likewise.
995 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
996 * window.c (make_window, replace_window, set_window_buffer)
997 (Fsplit_window): Likewise.
998 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
999 (add_to_log, message3, x_consider_frame_title)
1000 (append_space_for_newline, extend_face_to_end_of_line)
1001 (decode_mode_spec_coding, init_glyph_string): Likewise.
1002 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
1003 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
1004 (face_attr_equal_p, make_realized_face, make_face_cache)
1005 (free_realized_faces, lookup_named_face, smaller_face)
1006 (face_with_height, lookup_derived_face)
1007 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1008 (Finternal_set_font_selection_order, realize_default_face)
1009 (compute_char_face, face_at_buffer_position)
1010 (face_for_overlay_string, face_at_string_position, merge_faces):
1011 Likewise.
1012 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1013 (Fx_window_property, x_create_tip_frame)
1014 (Fx_backspace_delete_keys_p): Likewise.
1015 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1016 (xfont_text_extents): Likewise.
1017 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1018 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1019 * xselect.c (x_queue_event, x_get_window_property)
1020 (receive_incremental_selection): Likewise.
1021 * xsmfns.c (x_session_check_input): Likewise.
1022 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1023 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1024 Likewise.
1025 * character.h (BCOPY_SHORT): Removed.
1026 * config.in: Regenerate.
1027 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1028 * emacs.c (main) [PROFILING]: Don't declare
1029 dump_opcode_frequencies.
1030 * lisp.h (safe_bcopy): Remove declaration.
1031 (memset) [!HAVE_MEMSET]: Declare.
1032 (memcpy) [!HAVE_MEMCPY]: Likewise.
1033 (memmove) [!HAVE_MEMMOVE]: Likewise.
1034 (memcmp) [!HAVE_MEMCMP]: Likewise.
1035 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1036 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1037 Don't define.
1038 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1039 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1040 (BCOPY_DOWNWARD_SAFE): Don't define.
1041 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1042 (memcpy) [!HAVE_MEMCPY]: Define.
1043 (memmove) [!HAVE_MEMMOVE]: Define.
1044 (memcmp) [!HAVE_MEMCMP]: Define.
1045
cb768704
J
10462010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1047
1048 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1049 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1050 New functions.
cb768704
J
1051 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1052 select on empty input mask.
1053 (init_process): Initialize kbd_is_on_hold to 0.
1054
1055 * process.h (hold_keyboard_input, unhold_keyboard_input)
1056 (kbd_on_hold_p): Declare.
1057
1058 * keyboard.c (input_available_signal): Declare.
1059 (kbd_buffer_nr_stored): New function.
1060 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1061 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1062 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1063 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1064 (tty_read_avail_input): If input is on hold, return.
1065 Don't read more that free slots in kbd_buffer (Bug#6571).
1066
3a8ce822
EZ
10672010-07-07 Eli Zaretskii <eliz@gnu.org>
1068
1069 * msdos.h:
1070 * msdos.c:
1071 * dosfns.c:
1072 * w16select.c: Convert function definitions to ANSI C.
1073
a628ad9d
JB
1074 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1075 Remove unused prototypes.
3a8ce822 1076
cf84bb53
JB
10772010-07-07 Juanma Barranquero <lekktu@gmail.com>
1078
1079 * coding.c, sysdep.c: Convert some more functions to standard C.
1080
1a4990fb
JB
10812010-07-07 Juanma Barranquero <lekktu@gmail.com>
1082
1083 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1084 (encode_coding_object): Use SPECPDL_INDEX.
1085 (syms_of_coding): Use DOS_NT.
1086
c0f2f16b
DN
10872010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1088
48fb6855
DN
1089 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1090
c0f2f16b
DN
1091 Make the function member of Lisp_Subr use standard C prototypes.
1092 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1093 (DECL_ALIGN): Add a cast for the function.
1094 * eval.c (Feval, Ffuncall): Use the proper type for each type
1095 function call.
1096
67aecef9
CY
10972010-07-06 Chong Yidong <cyd@stupidchicken.com>
1098
1099 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1100 fringe face id, so face-remapping-alist works (Bug#6091).
1101
b56ceb92
JB
11022010-07-06 Juanma Barranquero <lekktu@gmail.com>
1103
1104 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1105 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1106 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1107
7af07b96
AS
11082010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1109
1110 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1111 * lisp.h: Declare x_get_keysym_name.
1112 * keyboard.c (modify_event_symbol): Don't declare
1113 x_get_keysym_name here.
1114
69e24e34
DN
11152010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1116
1117 * ecrt0.c: Revert conversion to standard C.
1118
d3da34e0 11192010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1120
1121 * vm-limit.c (memory_warnings):
1122 * keyboard.c (modify_event_symbol):
1123 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1124 (round2, emacs_rint):
1125 * process.c (send_process, old_sigpipe): Convert function
1126 definitions and declarations to standard C.
1127
11282010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1129
1130 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1131 * xdisp.c: Convert function definitions to standard C.
1132
1133 * cm.c (cmputc): Arg C is now int, not char.
1134 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1135
00be444c
J
11362010-07-05 James Cloos <cloos@jhcloos.com>
1137
1138 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1139
1140 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1141 _NET_WM_ICON_NAME atoms.
1142
1143 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1144 and _NET_WM_ICON_NAME properties, too, matching what is
1145 done in the Gtk+ case.
1146
e4c8d29a
J
11472010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1148
ff919460
J
1149 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1150
e4c8d29a
J
1151 * xsmfns.c (SSDATA): New macro.
1152 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1153 passed to strlen/strcpy/strcat.
1154 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1155 7:th arg to XChangeProperty to (unsigned char *)
1156
1157 * xsettings.c (something_changedCB, parse_settings)
1158 (apply_xft_settings): Reformat prototype.
1159 (something_changedCB, init_gconf): Remove unused variable i.
1160 (read_settings): Remove unused variable long_len.
1161
1162 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1163 (xg_get_image_for_pixmap, create_dialog)
1164 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1165 (menuitem_highlight_callback, make_menu_item)
1166 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1167 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1168 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1169 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1170 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1171 (xg_tool_bar_item_expose_callback): Reformat prototype.
1172 (xg_update_menubar): GList *group => GSList *group.
1173 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1174 before use.
1175 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1176 to GTK_IMAGE (wimage).
1177
dd4c5104
DN
11782010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1179
898b4c5c
DN
1180 * atimer.c: Use "" instead of <> for local includes for
1181 consistency with the rest of the code.
1182
dd4c5104
DN
1183 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1184 * xrdb.c (get_system_name):
1185 * window.c (shrink_windows):
1186 * syntax.c (forw_comment):
1187 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1188 (ins_del_costs):
1189 * mem-limits.h (start_of_data):
1190 * lread.c (readevalloop):
1191 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1192 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1193 * frame.c (x_get_focus_frame):
1194 * floatfns.c (fmod_float):
1195 * fileio.c (choose_write_coding_system):
1196 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1197 (malloc_initialize_hook, sort_args, synchronize_locale):
1198 * doprnt.c (doprnt):
1199 * dired.c (compile_pattern):
1200 * data.c (fmod_float):
1201 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1202 (map_char_table_for_charset):
1203 * charset.c (define_charset_internal):
1204 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1205 to standard C.
1206
9a39b306 12072010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1208 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1209
1210 * lread.c (read1): Fix up last change to not mess up `c'.
1211
e6cb2cbb
JB
12122010-07-04 Juanma Barranquero <lekktu@gmail.com>
1213
1214 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1215
438105ed
JB
12162010-07-04 Juanma Barranquero <lekktu@gmail.com>
1217
1218 Fix prototypes.
1219
e5447b22 1220 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1221 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1222 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1223 arg, as required by internal_condition_case_1.
dcc7404b 1224 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1225 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1226 (analyse_first): Fix "const const".
e5447b22 1227 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1228 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1229 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1230
971de7fb
DN
12312010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1232
1233 * alloc.c: Convert function definitions to standard C.
1234 * atimer.c:
1235 * bidi.c:
1236 * bytecode.c:
1237 * callint.c:
1238 * callproc.c:
1239 * casefiddle.c:
1240 * casetab.c:
1241 * category.c:
1242 * ccl.c:
1243 * character.c:
1244 * charset.c:
1245 * chartab.c:
1246 * cmds.c:
1247 * coding.c:
1248 * composite.c:
1249 * data.c:
1250 * dbusbind.c:
1251 * dired.c:
1252 * dispnew.c:
1253 * doc.c:
1254 * doprnt.c:
1255 * ecrt0.c:
1256 * editfns.c:
1257 * fileio.c:
1258 * filelock.c:
1259 * filemode.c:
1260 * fns.c:
1261 * font.c:
1262 * fontset.c:
1263 * frame.c:
1264 * fringe.c:
1265 * ftfont.c:
1266 * ftxfont.c:
1267 * gtkutil.c:
1268 * indent.c:
1269 * insdel.c:
1270 * intervals.c:
1271 * keymap.c:
1272 * lread.c:
1273 * macros.c:
1274 * marker.c:
1275 * md5.c:
1276 * menu.c:
1277 * minibuf.c:
1278 * prefix-args.c:
1279 * print.c:
1280 * ralloc.c:
1281 * regex.c:
1282 * region-cache.c:
1283 * scroll.c:
1284 * search.c:
1285 * sound.c:
1286 * strftime.c:
1287 * syntax.c:
1288 * sysdep.c:
1289 * termcap.c:
1290 * terminal.c:
1291 * terminfo.c:
1292 * textprop.c:
1293 * tparam.c:
1294 * undo.c:
1295 * unexelf.c:
1296 * window.c:
1297 * xfaces.c:
1298 * xfns.c:
1299 * xfont.c:
1300 * xftfont.c:
1301 * xgselect.c:
1302 * xmenu.c:
1303 * xrdb.c:
1304 * xselect.c:
1305 * xsettings.c:
1306 * xsmfns.c:
1307 * xterm.c: Likewise.
1308
ae492bec
EZ
13092010-07-03 Eli Zaretskii <eliz@gnu.org>
1310
76ea4cc9
EZ
1311 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1312 frames other than the initial one. Fix reversal of colors when
1313 `reverse' is specified in the frame parameters. Call
1314 update_face_from_frame_parameter instead of
1315 internal-set-lisp-face-attribute. Initialize screen colors from
1316 initial_screen_colors[] when f->default_face_done_p is zero,
1317 instead of depending on being called with default-frame-alist as
1318 the alist argument.
1319
1320 * xfaces.c (update_face_from_frame_parameter): Move out of
1321 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1322 with HAVE_WINDOW_SYSTEM.
1323
1e6255ae
EZ
1324 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1325 to menu-bar-mode, if not set in the frame parameters or in
1326 default-frame-alist.
1327
ae492bec
EZ
1328 * w32console.c (sys_tputs): Adjust argument list to prototype in
1329 term.c.
1330
3a35a84c
JB
13312010-07-03 Juanma Barranquero <lekktu@gmail.com>
1332
1333 * lisp.h (memory_warnings): Fix prototype.
1334
1335 * cm.h (evalcost): Fix prototype.
1336
1337 * cm.c (evalcost): Fix arg type.
1338
c532d349
DN
13392010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1340
1341 * term.c (term_clear_mouse_face, Fidentity):
1342 * syssignal.h (signal_handler_t):
1343 * lisp.h (memory_warnings):
1344 * coding.h (preferred_coding_system):
1345 * cm.h (evalcost):
1346 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1347
c0b36d46
EZ
13482010-07-02 Eli Zaretskii <eliz@gnu.org>
1349
1350 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1351 from prototypes.
1352
1353 * msdos.h (load_pixmap): Don't define away.
1354
383e0970
J
13552010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1356
f57e2426
J
1357 * lisp.h:
1358 * atimer.h: Remove define for P_.
1359
1360 * alloc.c: Remove __P and P_ from .c and .m files.
1361 * atimer.c:
1362 * buffer.c:
1363 * callint.c:
1364 * category.c:
1365 * charset.c:
1366 * chartab.c:
1367 * cm.c:
1368 * coding.c:
1369 * composite.c:
1370 * data.c:
1371 * dired.c:
1372 * dispnew.c:
1373 * doc.c:
1374 * editfns.c:
1375 * emacs.c:
1376 * eval.c:
1377 * fileio.c:
1378 * filelock.c:
1379 * fns.c:
1380 * font.c:
1381 * fontset.c:
1382 * frame.c:
1383 * ftfont.c:
1384 * ftxfont.c:
1385 * gmalloc.c:
1386 * gtkutil.c:
1387 * image.c:
1388 * indent.c:
1389 * intervals.c:
1390 * keyboard.c:
1391 * keymap.c:
1392 * lread.c:
1393 * marker.c:
1394 * menu.c:
1395 * minibuf.c:
1396 * print.c:
1397 * process.c:
1398 * scroll.c:
1399 * search.c:
1400 * sound.c:
1401 * strftime.c:
1402 * syntax.c:
1403 * sysdep.c:
1404 * term.c:
1405 * terminal.c:
1406 * textprop.c:
1407 * unexalpha.c:
1408 * w32console.c:
1409 * w32fns.c:
1410 * w32font.c:
1411 * w32menu.c:
1412 * w32term.c:
1413 * w32uniscribe.c:
1414 * window.c:
1415 * xdisp.c:
1416 * xfaces.c:
1417 * xfns.c:
1418 * xfont.c:
1419 * xftfont.c:
1420 * xmenu.c:
1421 * xselect.c:
1422 * xterm.c: Likewise.
1423
383e0970 1424 Remove P_ and __P macros.
f57e2426
J
1425 * atimer.h: Remove P_ and __P macros.
1426 * buffer.h:
383e0970
J
1427 * category.h:
1428 * ccl.h:
1429 * character.h:
1430 * charset.h:
1431 * cm.h:
1432 * coding.h:
1433 * composite.h:
1434 * dispextern.h:
1435 * disptab.h:
9e892c8d 1436 * dosfns.h:
383e0970
J
1437 * font.h:
1438 * fontset.h:
1439 * frame.h:
1440 * gtkutil.h:
1441 * indent.h:
1442 * intervals.h:
1443 * keyboard.h:
1444 * keymap.h:
1445 * lisp.h:
1446 * macros.h:
1447 * md5.h:
1448 * menu.h:
1449 * msdos.h:
1450 * nsterm.h:
1451 * puresize.h:
1452 * region-cache.h:
1453 * syntax.h:
1454 * syssignal.h:
1455 * systime.h:
1456 * termhooks.h:
9e892c8d 1457 * w32font.h:
383e0970
J
1458 * w32term.h:
1459 * widget.h:
1460 * window.h:
1461 * xgselect.h:
1462 * xsettings.h:
1463 * xterm.h: Likewise.
1464
98601119
DN
14652010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1466
d9170db5
DN
1467 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1468
98601119
DN
1469 Cleanup old code.
1470 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1471 * syssignal.h: Remove code for Lynx, not supported anymore.
1472 * vm-limit.c: Remove unused code the depends on emacs not being
1473 defined and NO_LIM_DATA being defined.
1474 * mem-limits.h: Remove dead code.
1475
1f984e12
J
14762010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1477
c49d071a
J
1478 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1479
9d5405ec
J
1480 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1481 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1482
7a18115b
J
1483 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1484 parameters, they are already absolute.
1485
a628ad9d
JB
1486 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1487 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1488
a628ad9d 1489 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1490
a628ad9d
JB
1491 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1492 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1493
a628ad9d
JB
1494 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1495 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1496
c1ef4455
CY
14972010-06-30 Chong Yidong <cyd@stupidchicken.com>
1498
1499 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1500 check default-frame-alist.
1501
ce8f5a9a
AS
15022010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1503
1504 * process.c (create_process): Avoid using invalid file descriptors.
1505
1506 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1507
bf935339
J
15082010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1509
1510 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1511 Improve documentation. Return font regardless of use_system_font.
1512 (syms_of_xsettings): Improve documentation for font-use-system-font.
1513
7c33a057
CY
15142010-07-10 Chong Yidong <cyd@stupidchicken.com>
1515
2ec1b5ee
CY
1516 * xfaces.c (realize_face): Garbage the frame if a face is removed
1517 (Bug#6593).
1518
15192010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1520
1521 * keyboard.c: Remove duplicate <setjmp.h>.
1522 (read_key_sequence): Remove volatile qualifiers.
1523
15242010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1525
1526 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1527 (struct glyph_row): New members left_fringe_offset and
1528 right_fringe_offset.
1529
1530 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1531 specially.
1532 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1533 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1534
1535 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1536 Take account of bitmap offset.
2ec1b5ee
CY
1537 (draw_window_fringes): Take account of window vscroll.
1538 (update_window_fringes): Likewise. Extend top-aligned top indicator
1539 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1540 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1541 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1542
15432010-07-04 Juanma Barranquero <lekktu@gmail.com>
1544
1545 * w32fns.c (Qtooltip): Declare.
1546 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1547
15482010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1549
1550 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1551 grab on just Press (Bug#6499).
1552
15532010-07-02 Chong Yidong <cyd@stupidchicken.com>
1554
1555 * frame.c (Qtooltip): New var.
1556 (delete_frame): Use it. Fix faulty if statement. Don't update
1557 mode line for tooltip frames. Suggested by Martin Rudalics.
1558
1559 * xfns.c (x_create_tip_frame):
1560 * w32fns.c (x_create_tip_frame): Use it.
1561
15622010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1563
1564 * xftfont.c (xftfont_open): Check font width one by one also when
1565 spacing is dual.
1566
1567 * ftfont.c (ftfont_open): Ditto.
1568
6259c2ec
GM
15692010-06-30 Glenn Morris <rgm@gnu.org>
1570
a46007e9
GM
1571 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1572
6259c2ec
GM
1573 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1574
1575 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1576 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1577 * s/darwin.h (SYSTEM_MALLOC):
1578 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1579
5d1d3d04
J
15802010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1581
1582 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1583 (ns_get_screen): Don't assign integer to f.
1584 (Fx_display_color_cells): Declarations before statements.
1585
e547b051
J
15862010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1587
5fc8e5bc
J
1588 * xfns.c (x_default_font_parameter): Remove got_from_system
1589 (Bug#6526).
1590
e547b051
J
1591 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1592 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1593 defines based on what configure finds.
1594
1595 * xterm.c (XTflash): Use gtk_widget_get_window.
1596 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1597 gtk_adjustment_get_page_size.
1598 (handle_one_xevent): Use gtk_widget_get_mapped.
1599 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1600 messages.
1601
1602 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1603
1604 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1605 HAVE_GTK_FILE_SELECTION_NEW.
1606
1607 * gtkutil.c (xg_display_open, xg_display_close): Remove
1608 HAVE_GTK_MULTIDISPLAY, it is always defined.
1609 (xg_display_open): Return type is void.
1610 (gtk_widget_set_has_window)
1611 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1612 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1613 (gtk_adjustment_set_page_increment)
1614 (gtk_adjustment_get_step_increment): #define these if not found
1615 by configure.
1616 (remove_submenu): New define based on Gtk+ version.
1617 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1618 gtk_widget_get_window.
1619 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1620 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1621 (create_dialog): Use gtk_dialog_get_action_area and
1622 gtk_dialog_get_content_area.
1623 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1624 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1625 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1626 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1627 g_object_ref and g_object_unref.
1628 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1629 gtk_widget_get_sensitive.
1630 (xg_update_submenu): Use remove_submenu.
1631 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1632 properties instead to get old x and y position.
1633 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1634 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1635 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1636 (xg_get_tool_bar_widgets): New function.
1637 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1638 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1639 (toolbar_set_orientation): New #define based on if configure
1640 finds gtk_orientable_set_orientation.
1641 (xg_create_tool_bar): Call toolbar_set_orientation.
1642 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1643 instead of gtk_box_pack_start_defaults.
1644
b9229673
CY
16452010-06-28 Chong Yidong <cyd@stupidchicken.com>
1646
1647 * cmds.c (Fdelete_backward_char): Move into Lisp.
1648
bbc803b0
DN
16492010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1650
1651 * s/freebsd.h (BSD4_2): Remove redundant definition.
1652 bsd-common.h defines it already.
1653
6431f2e6
CY
16542010-06-27 Chong Yidong <cyd@stupidchicken.com>
1655
1656 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1657 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1658 tool-bar-mode, which are now set using these X resources at
1659 startup, to determine the defaults (Bug#2249).
1660
1661 * w32fns.c (Fx_create_frame):
1662 * nsfns.m (Fx_create_frame): Likewise.
1663
1664 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1665
8c079ebb
JB
16662010-06-24 Juanma Barranquero <lekktu@gmail.com>
1667
1668 * gtkutil.c (xg_update_scrollbar_pos):
1669 Avoid C99 mid-block variable declaration.
1670
e9b7ab96
JD
16712010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1672
bc869eca
JD
1673 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1674
2b7e356a 1675 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1676
1677 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1678 if height is less than scroll bar min size.
1679 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1680
e9b7ab96
JD
1681 * xfns.c (x_default_font_parameter): Try to open font from system
1682 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1683
a628ad9d 16842010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1685
1686 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1687
70c4cfbb
EZ
16882010-06-20 Eli Zaretskii <eliz@gnu.org>
1689
1690 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1691 most-positive-fixnum, be extra accurate when scrolling window
1692 start, to avoid missing the cursor line.
1693
ad5a12b5
EZ
16942010-06-19 Eli Zaretskii <eliz@gnu.org>
1695
1696 * xdisp.c (try_scrolling): Compute the limit for searching point
1697 in forward scroll from scroll_max, instead of an arbitrary limit
1698 of 10 screen lines. See
1699 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1700 and
1701 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1702 for details.
1703
2a64315a 17042010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1705
1706 * editfns.c (Fbyte_to_string): Pacify compiler.
1707
288cf4e9
SM
17082010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1709
1710 * lread.c (read1): Phase out old-style backquotes a bit more.
1711
6e6e5760
EZ
17122010-06-12 Eli Zaretskii <eliz@gnu.org>
1713
cbc4fd20
EZ
1714 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1715 bidimirror.h.
1716
1717 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1718
317fbf33
EZ
1719 * bidi.c (bidi_initialize): Remove explicit initialization of
1720 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1721 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1722 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1723
1724 * biditype.h: New file.
1725
cbc4fd20
EZ
1726 * bidimirror.h: New file.
1727
6e6e5760
EZ
1728 * window.c (syms_of_window): Doc fix (bug#6409).
1729
4176cba2
RF
17302010-06-12 Romain Francoise <romain@orebokech.com>
1731
1732 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1733 ediff-hook.
1734
cb4bfcb5
GM
17352010-06-10 Glenn Morris <rgm@gnu.org>
1736
64c60c2f
GM
1737 * editfns.c (Fbyte_to_string): Pacify compiler.
1738
cb4bfcb5
GM
1739 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1740
2ec1b5ee
CY
17412010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1742
1743 * alloc.c (Fmake_byte_code): Don't access undefined argument
1744 (Bug#6517).
1745
17462010-06-25 Chong Yidong <cyd@stupidchicken.com>
1747
1748 * xdisp.c (next_element_from_image): Ensure that after-strings are
1749 read the next time we hit handle_stop (Bug#1336).
1750
17512010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1752
1753 * lread.c (read1): Signal error if #s is not followed by paren.
1754
17552010-06-19 Chong Yidong <cyd@stupidchicken.com>
1756
1757 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1758
1759 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1760
17612010-06-15 Glenn Morris <rgm@gnu.org>
1762
1763 * editfns.c (Fbyte_to_string): Pacify compiler.
1764
e454a4a3
SM
17652010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1766
1767 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1768 Check `object's type before accessing its guts.
1769
c1b1acc2
DN
17702010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1771
1772 * s/usg5-4.h: Fix previous change.
1773 Suggested by Lawrence Mitchell <wence@gmx.li>
1774
657d4c0b
AS
17752010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1776
1777 * minibuf.c (Fall_completions): Add more checks.
1778
9b27fd9f
JB
17792010-06-08 Juanma Barranquero <lekktu@gmail.com>
1780
1781 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1782
a99ebb40
DN
17832010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1784
d7c5d87d
DN
1785 * lread.c (X_OK): Remove, unused.
1786
0263a941
DN
1787 * dispnew.c: Remove obsolete comment.
1788
a99ebb40
DN
1789 Remove INCLUDED_FCNTL.
1790 * xterm.c (INCLUDED_FCNTL):
1791 * callproc.c (INCLUDED_FCNTL):
1792 * alloc.c (INCLUDED_FCNTL):
1793 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1794 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1795
13b5221f
MR
17962010-06-07 Martin Rudalics <rudalics@gmx.at>
1797
1798 * window.c (Fselect_window): Move `record_buffer' up to the
1799 beginning of this function, so the buffer gets recorded
1800 even if the selected window does not change.
1801 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1802
5220357f
JB
18032010-06-07 Juanma Barranquero <lekktu@gmail.com>
1804
1805 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1806 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1807
3085237c
DN
18082010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1809
1810 Remove BSTRING related code, all platforms define it.
1811 * s/usg5-4.h (BSTRING): Remove definition.
1812 * s/template.h (BSTRING):
1813 * s/msdos.h (BSTRING):
1814 * s/ms-w32.h (BSTRING):
1815 * s/hpux10-20.h (BSTRING):
1816 * s/gnu-linux.h (BSTRING):
1817 * s/darwin.h (BSTRING):
1818 * s/cygwin.h (BSTRING):
1819 * s/bsd-common.h (BSTRING):
1820 * s/aix4-2.h (BSTRING): Likewise.
1821 * sysdep.c: Remove code depending on BSTRING not being defined.
1822
409f2919
JB
18232010-06-05 Juanma Barranquero <lekktu@gmail.com>
1824
1825 Remove obsolete macro BASE_LEADING_CODE_P.
1826 * character.h (BASE_LEADING_CODE_P): Remove.
1827 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1828 * buffer.c (Fset_buffer_multibyte):
1829 * indent.c (scan_for_column, compute_motion):
1830 * insdel.c (count_combining_before, count_combining_after):
1831 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1832
087fc47a
JB
18332010-06-04 Juanma Barranquero <lekktu@gmail.com>
1834
1835 Turn `directory-sep-char' into a noop.
1836
1837 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1838 (DIRECTORY_SEP): Define unconditionally.
1839
1840 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1841
1842 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1843 call dostounix_filename directly.
1844
1845 * fileio.c (CORRECT_DIR_SEPS): Remove.
1846 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1847 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1848 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1849 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1850
1851 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1852 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1853
0eb7675e
AS
18542010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1855
a628ad9d
JB
1856 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1857 (Bug#6346)
0eb7675e 1858
78edd3b7
JB
18592010-06-03 Juanma Barranquero <lekktu@gmail.com>
1860
1861 * ccl.c (Fccl_program_p): Fix typo in docstring.
1862
eb697db5
DN
18632010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1864
1865 Move UNEXEC definition to autoconf.
1866 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1867 * s/sol2-10.h (UNEXEC):
1868 * s/irix6-5.h (UNEXEC):
1869 * s/hpux10-20.h (UNEXEC):
1870 * s/gnu-linux.h (UNEXEC):
1871 * s/darwin.h (UNEXEC):
1872 * s/cygwin.h (UNEXEC):
1873 * s/bsd-common.h (UNEXEC):
1874 * s/aix4-2.h (UNEXEC):
1875 * m/alpha.h (UNEXEC): Likewise.
1876 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1877
aa3830c4
JB
18782010-06-03 Juanma Barranquero <lekktu@gmail.com>
1879
1880 Remove obsolete pre-unicode2 macros.
1881 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1882 * composite.c (composition_reseat_it):
1883 * data.c (Faset):
1884 * fns.c (Ffillarray):
1885 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1886 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1887
d234d13e
JL
18882010-06-03 Juri Linkov <juri@jurta.org>
1889
1890 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1891 (Fswitch_to_buffer): Remove unused variable `err'.
1892
0d4bcf4d
GM
18932010-06-03 Glenn Morris <rgm@gnu.org>
1894
e23dc1e2
GM
1895 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1896
05b09564
GM
1897 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1898 now that AH_BOTTOM does it.
1899
824e2978
GM
1900 * m/hp800.h (HAVE_ALLOCA):
1901 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1902
0d4bcf4d
GM
1903 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1904 Remove NOT_C_CODE tests, it is always true now.
1905
c55d2abf
DN
19062010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1907
08a494a3
DN
1908 Fix config.h includes.
1909 * xsettings.c:
1910 * xgselect.c:
1911 * nsterm.m:
1912 * nsselect.m:
1913 * nsimage.m:
1914 * nsfont.m:
1915 * nsfns.m:
1916 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1917 other files do.
1918
75934b1d
DN
1919 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1920
9f32a766
DN
1921 * s/sol2-6.h: Remove obsolete comments.
1922
c55d2abf
DN
1923 Remove unnecessary alloca.h includes.
1924 * keymap.c: Do not include alloca.h, config.h does that.
1925 * sysdep.c: Likewise. Do not define fwrite, not used.
1926
06ac62b4
SM
19272010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1928
1929 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1930 the HAVE_TERMIO where it belongs (bug#6149).
1931
1ab8293c
SM
19322010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1933
1934 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1935 of bug#6305).
1936
6dcfd253
EZ
19372010-05-30 Eli Zaretskii <eliz@gnu.org>
1938
1939 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1940 state is always cached (bug#6306).
1941
6d26bbb2
EZ
19422010-05-29 Eli Zaretskii <eliz@gnu.org>
1943
06fa4a23
EZ
1944 Fix cursor motion in bidi-reordered continued lines.
1945 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1946 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1947 over continuation lines in bidi-reordered buffers. Return
1948 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1949 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1950
f5783df3
MA
19512010-05-28 Michael Albinus <michael.albinus@gmx.de>
1952
1953 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1954
7d56b2dd
KH
19552010-05-28 Kenichi Handa <handa@m17n.org>
1956
1957 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1958 Don't sheck SPEC if it is nil.
1959 (font_list_entities): Call font_delete_unmatched if
b925d231 1960 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1961
e58d4ff7
GM
19622010-05-28 Glenn Morris <rgm@gnu.org>
1963
1964 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1965
f1a5d776
CY
19662010-05-27 Chong Yidong <cyd@stupidchicken.com>
1967
1968 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1969 whether to trash.
1970 (internal_delete_file, Frename_file): Callers changed.
1971 (delete_by_moving_to_trash): Doc fix.
1972 (Fdelete_directory_internal): Don't move to trash.
1973
1974 * callproc.c (delete_temp_file):
1975 * buffer.c (Fkill_buffer): Callers changed.
1976
1977 * lisp.h: Update prototype.
1978
f44a59e6
CY
19792010-05-27 Chong Yidong <cyd@stupidchicken.com>
1980
1981 * xdisp.c (redisplay_window): After redisplay, check if point is
1982 still valid before setting it (Bug#6177).
1983
81ac4f35
GM
19842010-05-27 Glenn Morris <rgm@gnu.org>
1985
1986 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1987 Convert comments to Makefile format.
1988
1989 * Makefile.in (bootstrap-clean): No more Makefile.c.
1990
ccd89fb3
GM
19912010-05-26 Glenn Morris <rgm@gnu.org>
1992
90278cb6
GM
1993 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1994 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1995
ccd89fb3
GM
1996 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1997 Remove.
1998 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1999
b7050583
KH
20002010-05-26 Kenichi Handa <handa@m17n.org>
2001
2002 * composite.c (composition_compute_stop_pos): Fix condition for
2003 backward scanning.
2004
e5458003
GM
20052010-05-25 Glenn Morris <rgm@gnu.org>
2006
c345fe90
GM
2007 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2008 Move before TEMACS_LDFLAGS.
2009 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2010 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2011
2e0689ab
GM
2012 * Makefile.in (NOT_C_CODE): No longer define.
2013 (config.h): No longer include.
2014
8009a5e8
GM
2015 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2016 variables it may reference.
2017
e5458003
GM
2018 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2019 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2020
10f72a37
KH
20212010-05-25 Kenichi Handa <handa@m17n.org>
2022
2023 * dispextern.h (struct composition_it): New members rule_idx and
2024 charpos.
2025
2026 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2027 that the character positions of IT point the last character of the
2028 current grapheme cluster.
2029 (next_element_from_composition): Don't change character positions
2030 of IT.
2031 (append_composite_glyph): Set glyph->charpos to
2032 it->cmp_it.charpos.
2033
2034 * composite.c (autocmp_chars): Change the first argument to RULE,
2035 and try composition with RULE only.
2036 (composition_compute_stop_pos): Record the index number of the
2037 composition rule in CMP_IT->rule_idx.
2038 (composition_reseat_it): Call autocmp_chars repeatedly until the
2039 correct rule of the composition is found.
2040 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2041 is at the last character of the current grapheme cluster when
2042 CMP_IT->reversed_p is nonzero.
2043
171eda53 20442010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2045
171eda53
SM
2046 * editfns.c (Fbyte_to_string): New function.
2047
66a9f7f4
SM
20482010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2049
2050 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2051 Suggested by Masatake YAMATO <yamato@redhat.com>.
2052
d8c315d1
EZ
20532010-05-23 Eli Zaretskii <eliz@gnu.org>
2054
171eda53 2055 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2056
f5b416d2 20572010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2058
2059 * s/netbsd.h: If terminfo is found, use it in preference to
2060 termcap. (Bug#6190) [Backport from trunk]
2061
0416466c
EZ
20622010-05-19 Eli Zaretskii <eliz@gnu.org>
2063
11117830 2064 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2065
2066 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2067 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2068 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2069 and maxpos members instead of start.pos and end.pos, respectively.
2070
2071 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2072 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2073 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2074 (try_window_reusing_current_matrix, try_window_id):
2075 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2076 (init_from_display_pos, init_iterator): Use EMACS_INT for
2077 character and byte positions.
66a9f7f4 2078 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2079 arguments for minimum and maximum buffer positions seen by
2080 display_line for this row. Don't use iterator to find the
2081 position following the maximum one; instead, increment the
11117830
EZ
2082 position found by display_line directly. Fix logic; eol_pos
2083 should be tested before the rest. Handle the case of characters
2084 delivered from display vector (bug#6036). Fix tests related to
2085 it->method. Handle the truncated_on_right_p rows.
2086 (RECORD_MAX_MIN_POS): New macro.
2087 (display_line): Use it to record the minimum and maximum buffer
2088 positions for glyphs in the row being assembled. Record the
2089 position of the newline that terminates the line. If word wrap is
2090 in effect, restore minimum and maximum positions seen up to the
2091 wrap point, when iterator returns to it.
2092 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2093 row and cursor not already at point. Restore original pre-bidi
2094 code for unidirectional buffers.
d36fe237
EZ
2095
2096 * dispnew.c (increment_row_positions, check_matrix_invariants):
2097 Increment and check row->start.pos and row->end.pos, in addition
2098 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2099
11117830
EZ
2100 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2101 Display truncated_on_left_p and truncated_on_right_p flags.
2102 Formatting fixes.
2103 (pmtxrows): Display the ordinal number of each row. Don't display
2104 rows beyond the last one.
2105
2106 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2107 it is not copied by bidi_copy_it.
2108
6e83d800
EZ
21092010-05-22 Eli Zaretskii <eliz@gnu.org>
2110
2111 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2112 (Bug#6237)
2113
110683ad
CY
21142010-05-22 Chong Yidong <cyd@stupidchicken.com>
2115
2116 * image.c (Fimage_flush): Rename from image-refresh.
2117
98fe5161
CY
21182010-05-21 Chong Yidong <cyd@stupidchicken.com>
2119
2120 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2121 just one window.
2122
2123 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2124 (clear_image_cache): If the number of cached images is unusually
2125 large, decrease the cache eviction delay (Bug#6230).
2126
e8752c66
GM
21272010-05-21 Glenn Morris <rgm@gnu.org>
2128
66dbf213
GM
2129 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2130 Move these rules to ns.mk.
2131 * ns.mk: New file.
2132
04384b2d
GM
2133 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2134
e8752c66
GM
2135 * Makefile.in (CANNOT_DUMP): New, set by configure.
2136 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2137
2e2bbddb
JL
21382010-05-20 Juri Linkov <juri@jurta.org>
2139
2140 * fileio.c (Fdelete_file): Change interative spec to use
2141 `read-file-name' like in `find-file-read-args' where the default
2142 value is `default-directory' instead of `buffer-file-name'.
2143 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2144
31c4aaf6
KR
21452010-05-20 Kevin Ryde <user42@zip.com.au>
2146
2147 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2148 (Voverriding_terminal_local_map, Vsystem_key_alist)
2149 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2150
9d5cf9b6
GM
21512010-05-20 Glenn Morris <rgm@gnu.org>
2152
2153 * Makefile.in (DEPDIR): New constant.
2154 (DEPFLAGS): Set with configure, not cpp.
2155 (MKDEPDIR): New, set by configure.
2156 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2157 (clean): Use $DEPDIR.
2158 (deps_frag): Include from configure.
2159 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2160 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2161
ead6f8f5
EZ
2162 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2163 reallocation of the cache. (Bug#6210)
2164
7f34aec3
GM
21652010-05-19 Glenn Morris <rgm@gnu.org>
2166
d494e8f2
GM
2167 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2168
c1d0dcfd
GM
2169 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2170 (GNULIB_VAR): Remove.
2171 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2172
2173 * m/ibms390x.h (LINKER):
2174 * m/macppc.h (LINKER) [GNU_LINUX]:
2175 * s/aix4-2.h (ORDINARY_LINK):
2176 * s/cygwin.h (LINKER):
2177 * s/darwin.h (ORDINARY_LINK):
2178 * s/gnu.h (ORDINARY_LINK):
2179 * s/netbsd.h (LINKER):
2180 * s/usg5-4.h (ORDINARY_LINK):
2181 Move to configure.
2182
7f34aec3
GM
2183 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2184
754790b6
CY
21852010-05-18 Chong Yidong <cyd@stupidchicken.com>
2186
2187 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2188 prevent stack overflow if number of arguments is too large
2189 (Bug#6214).
2190
161e44d1
JB
21912010-05-18 Juanma Barranquero <lekktu@gmail.com>
2192
2193 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2194
be4ff9da
GM
21952010-05-18 Glenn Morris <rgm@gnu.org>
2196
9539dc5d
GM
2197 * s/gnu-linux.h: Combine two conditionals.
2198
2199 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2200 $(POST_ALLOC_OBJ).
2201
40dc6bf4
GM
2202 * Makefile.in (RALLOC_OBJ): New, set by configure.
2203 (rallocobj): Replace with the previous variable.
2204 (otherobj): Use $RALLOC_OBJ.
2205
2206 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2207 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2208
be4ff9da
GM
2209 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2210 (gmallocobj, vmlimitobj): Replace with previous two variables.
2211 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2212
16455a85
GM
22132010-05-17 Glenn Morris <rgm@gnu.org>
2214
2215 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2216 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2217
5fdb7468
GM
22182010-05-16 Glenn Morris <rgm@gnu.org>
2219
7ca1f3f9
GM
2220 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2221
7541dad5
GM
2222 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2223
da53fab9
GM
2224 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2225 trailing "/".
2226
b02a6645
GM
2227 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2228 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2229
8877ca0f
GM
2230 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2231 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2232 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2233 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2234 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2235
5fdb7468
GM
2236 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2237 Remove ${STARTFLAGS}, nothing ever sets it.
2238
95adb4b1
DN
22392010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2240
2241 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2242
676b6304
GM
22432010-05-16 Glenn Morris <rgm@gnu.org>
2244
9beab9ce
GM
2245 * Makefile.in (LIBX_BASE): Always define.
2246
8a95f0e7
GM
2247 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2248
676b6304
GM
2249 * Makefile.in (LIBXT): Always define.
2250
6e546d18
GM
22512010-05-15 Glenn Morris <rgm@gnu.org>
2252
4235ca47 2253 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2254
6e546d18
GM
2255 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2256 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2257
8c5ff6dd
KR
22582010-05-15 Ken Raeburn <raeburn@raeburn.org>
2259
560bb7ae 2260 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2261 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2262
8b4eb796
KR
2263 * emacs.c (main): Initialize initial-environment and
2264 process-environment before generating from env, not after.
2265
8c5ff6dd
KR
2266 Handle --version reasonably in CANNOT_DUMP configuration.
2267 * emacs.c (emacs_version, emacs_copyright): New string variables.
2268 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2269 (syms_of_emacs): Defvar them, and initialize them from the C
2270 string variables.
2271 (main): If initialization hasn't been done, print initial version
2272 info from the C strings, instead of starting an interactive session.
2273
dbd3f723
EZ
22742010-05-15 Eli Zaretskii <eliz@gnu.org>
2275
d20e1419
EZ
2276 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2277 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2278 (bidi_paragraph_init): Remove redundant assertion that we are at
2279 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2280
2281 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2282 (syms_of_xdisp): Defsubr it.
2283
d36fe237
EZ
2284 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2285
dbd3f723
EZ
2286 * Makefile.in: Fix MSDOS-related comments.
2287
02be533b
GM
22882010-05-15 Glenn Morris <rgm@gnu.org>
2289
1a82cca9
GM
2290 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2291 (really-lwlib, really-oldXMenu): Always define.
2292 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2293
3df7b338
GM
2294 * Makefile.in: Simplify cpp conditional.
2295
2b5f541b
GM
2296 * Makefile.in (${ns_appdir}): Simplify using umask.
2297
02be533b
GM
2298 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2299
4e2db1fe
SM
23002010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2301
2302 * eval.c (specbind): Remove left-over duplicate test.
2303 Disallow let-binding frame-local vars. Add comment.
2304
4b292a22
EZ
23052010-05-14 Eli Zaretskii <eliz@gnu.org>
2306
2fe72643 2307 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2308 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2309 (bidi_init_it): Call it.
2310 (bidi_cache_iterator_state): Enlarge the cache if needed.
2311
4e2db1fe 2312 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2313 bidi_get_next_char_visually. All callers changed.
2314
82ebc97b
KH
23152010-05-14 Kenichi Handa <handa@m17n.org>
2316
2317 * dispextern.h (struct composition_it): New member reversed_p.
2318
2319 * composite.c (composition_compute_stop_pos): Search backward if
2320 ENDPOS < CHARPOS.
2321 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2322 Set CMP_IT->reversed_p.
b4b6e17e 2323 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2324
4e2db1fe
SM
2325 * xdisp.c (set_iterator_to_next):
2326 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2327 scanning backward. Call composition_compute_stop_pos if scan
2328 direction is changed.
2329 (next_element_from_buffer): Call composition_compute_stop_pos with
2330 negative ENDPOS if we are scanning backward.
2331 (next_element_from_composition): Pay attention to
2332 IT->cmp_it.reversed_p.
2333
0e5d7800
KH
23342010-05-14 Kenichi Handa <handa@m17n.org>
2335
560bb7ae 2336 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2337
cb027b32
GM
23382010-05-14 Glenn Morris <rgm@gnu.org>
2339
177b0288
GM
2340 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2341
fbc00890
GM
2342 * Makefile.in (mktime, X11, register): Move undefs to configure.
2343
f14d1dfd
GM
2344 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2345 (MSDOS_X_OBJ): New variable.
2346 (MSDOS_SUPPORT_REAL): New constant.
2347 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2348 (obj): Use MSDOS_X_OBJ.
2349 (lisp): Use MSDOS_SUPPORT as a variable.
2350
11842bd8
GM
2351 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2352 (GPM_MOUSE_SUPPORT): Now it's a constant.
2353 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2354 not cpp.
2355
489d31a4 2356 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2357 (ns_appresdir): Remove, unused.
e20f1f07 2358
489d31a4
GM
2359 * Makefile.in (SHELL): Move outside cpp section.
2360
cb027b32
GM
2361 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2362
5a903aa9
GM
23632010-05-13 Glenn Morris <rgm@gnu.org>
2364
3369c79f
GM
2365 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2366 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2367
d5e982a6
GM
2368 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2369 HAVE_WINDOW_SYSTEM must be too.
2370
6192e163
GM
2371 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2372 (lisp): Remove WINNT_SUPPORT.
2373
472c5d6b
GM
2374 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2375 Let configure set these variables (to empty) in this case as well.
2376
0116466b
GM
2377 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2378 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2379
5a903aa9
GM
2380 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2381 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2382 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2383 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2384 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2385 the values output by configure.
5a903aa9
GM
2386 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2387
1a0d7c06
GM
23882010-05-12 Glenn Morris <rgm@gnu.org>
2389
b5457f14
GM
2390 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2391 (LINKER_WAS_SPECIFIED): Remove.
2392
1a0d7c06
GM
2393 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2394 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2395 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2396 * s/cygwin.h (LIB_GCC):
2397 * s/freebsd.h (LIB_GCC):
2398 * s/gnu-linux.h (LIB_GCC):
2399 * s/msdos.h (LIB_GCC):
2400 * s/netbsd.h (LIB_GCC):
2401 Move to configure.
2402
3ffd4615 24032010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2404
2405 * ftfont.c: Fix incorrect parentheses of #if condition for
2406 definining M17N_FLT_USE_NEW_FEATURE.
2407
acddf8ae
GM
24082010-05-11 Glenn Morris <rgm@gnu.org>
2409
2410 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2411 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2412
ae5e04fa
EZ
24132010-05-10 Eli Zaretskii <eliz@gnu.org>
2414
2415 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2416 unibyte buffers. See
2417 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2418
7490175b
GM
24192010-05-10 Glenn Morris <rgm@gnu.org>
2420
97efb629
GM
2421 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2422 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2423 (LIBES): Use LIBS_SYSTEM as a variable.
2424 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2425 * s/aix4-2.h (LIBS_SYSTEM):
2426 * s/freebsd.h (LIBS_SYSTEM):
2427 * s/hpux10-20.h (LIBS_SYSTEM):
2428 * s/sol2-6.h (LIBS_SYSTEM):
2429 * s/unixware.h (LIBS_SYSTEM):
2430 Move to configure.
2431
7490175b
GM
2432 * s/aix4-2.h (MAIL_USE_LOCKF):
2433 * s/bsd-common.h (MAIL_USE_FLOCK):
2434 * s/darwin.h (MAIL_USE_FLOCK):
2435 * s/gnu-linux.h (MAIL_USE_FLOCK):
2436 * s/irix6-5.h (MAIL_USE_FLOCK):
2437 * s/template.h (MAIL_USE_FLOCK):
2438 Move to configure.
2439
0235128c 24402010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2441
2442 * Version 23.2 released.
2443
0235128c 24442010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2445
2446 * composite.c (autocmp_chars): Save point as marker before calling
2447 auto-composition-function (Bug#5984).
2448
2449 * lisp.h (restore_point_unwind): Add prototype.
2450
2451 * fileio.c (restore_point_unwind): Remove static attribute.
2452
0235128c 24532010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2454
2455 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2456 new feature of libotf and m17n-flt.
0235128c
SM
2457 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2458 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2459 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2460 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2461 that OUT is NULL. Use OTF_drive_gsub_with_log and
2462 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2463 OTF_drive_gpos.
2464 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2465 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2466 Setup mflt_enable_new_feature and mflt_try_otf.
2467
4721152c
J
24682010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2469
2470 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2471
2472 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2473 box and toolbar (Bug #6139).
2474 (xg_create_tool_bar): Remove comment (Bug #6139).
2475 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2476 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2477
ee0a16cf
JB
24782010-05-08 Juanma Barranquero <lekktu@gmail.com>
2479
2480 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2481 Update dependencies.
2482
96d79611
EZ
24832010-05-08 Eli Zaretskii <eliz@gnu.org>
2484
2485 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2486 R2L lines.
2487
40c17879
GM
24882010-05-08 Glenn Morris <rgm@gnu.org>
2489
7b42b29f
GM
2490 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2491
40c17879
GM
2492 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2493 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2494 (termcapobj): Replace with TERMCAP_OBJ.
2495 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2496 (LIBES): Use LIBS_TERMCAP as a variable.
2497
2498 * s/freebsd.h (osreldate.h): No longer include, since this file
2499 does not use __FreeBSD_version any more.
2500
2501 * s/aix4-2.h (TERMINFO):
2502 * s/cygwin.h (TERMINFO):
2503 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2504 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2505 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2506 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2507 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2508 * s/irix6-5.h (TERMINFO):
2509 * s/netbsd.h (LIBS_TERMCAP):
2510 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2511 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2512 * s/usg5-4.h (TERMINFO):
2513 Move to configure.
2514
94b612ad
SM
25152010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2516
2517 * eval.c (unbind_to): Don't unbind a local binding into the global
2518 binding when the local binding disappeared. Inversely, don't unbind
2519 a global binding into a newly created local binding.
2520 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2521 can specify the frame to use, when applicable. Adjust callers.
2522
15e12598 25232010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2524 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2525
2526 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2527
f724825e
EZ
25282010-05-07 Eli Zaretskii <eliz@gnu.org>
2529
5cba3209
EZ
2530 * w32fns.c: Include w32.h.
2531 (Fw32_shell_execute): Decode the error message before passing it
2532 to `error'. (Bug#6126)
2533
d16bdfc3
EZ
2534 * msdos.c (dos_set_window_size):
2535 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2536 instead of `XSYMBOL (foo)->value'.
2537
59d93e87
EZ
25382010-05-07 Eli Zaretskii <eliz@gnu.org>
2539
9fdec8bc
EZ
2540 Fix the MS-DOS build, broken by autoconfiscation.
2541
2542 * Makefile.in: Don't use Make-style comments past the "start of
2543 cpp stuff" line.
2544 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2545
2546 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2547 edited directly by msdos/sed1v2.inp).
f724825e 2548
2f86b22b
GM
25492010-05-07 Glenn Morris <rgm@gnu.org>
2550
2551 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2552 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2553 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2554 move out of cpp section.
2555 * s/freebsd.h (LD_SWITCH_SYSTEM):
2556 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2557 * s/netbsd.h (LD_SWITCH_SYSTEM):
2558 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2559
49ebbd65
DN
25602010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2561
2562 Define LIB_STANDARD and START_FILES using autoconf.
2563 * s/usg5-4.h (LIB_STANDARD):
2564 * s/netbsd.h (START_FILES):
2565 * s/irix6-5.h (LIB_STANDARD):
2566 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2567 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2568 * s/freebsd.h (START_FILES):
2569 * s/darwin.h (START_FILES):
2570 * s/cygwin.h (START_FILES):
2571 * s/aix4-2.h (LIB_STANDARD):
2572 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2573 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2574 autoconf, not cpp.
2575
d43c06d6
DN
25762010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2577
28823648
DN
2578 Remove NEED_BSDTTY and NEED_UNISTD_H.
2579 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2580 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2581 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2582 <sys/ptyio.h> and <unistd.h>.
2583
aca00430
DN
2584 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2585
d43c06d6
DN
2586 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2587 * s/gnu.h (START_FILES): Remove empty definition.
2588
3e56b11d
JD
25892010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2590
2591 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2592
e3cf0cde
GM
25932010-05-06 Glenn Morris <rgm@gnu.org>
2594
2595 * Makefile.in (CPP, LN_S): Remove unused variables.
2596
774b9a60
SM
25972010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2598
2599 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2600
4ab92842
LM
26012010-05-05 Lawrence Mitchell <wence@gmx.li>
2602
2603 * m/sparc.h: Fix typo in earlier change.
2604
178f2507
SM
26052010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2606
2607 Misc tweaks.
2608 * eval.c (Fdefvaralias): Remove unintended nested if.
2609 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2610
80f00217 26112010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2612
2613 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2614
ef03a4e6
DN
26152010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2616
58eb6cf0
DN
2617 Remove BSD_PGRPS.
2618 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2619 * s/gnu-linux.h (BSD_PGRPS): Remove.
2620 * term.c (dissociate_if_controlling_tty):
2621 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2622 (init_sys_modes, reset_sys_modes):
2623 * emacs.c (main):
2624 * callproc.c (Fcall_process, child_setup): Remove code depending
2625 on BSD_PGRPS.
2626
ef03a4e6
DN
2627 Remove POSIX_SIGNALS.
2628 * s/usg5-4.h (POSIX_SIGNALS):
2629 * s/netbsd.h (POSIX_SIGNALS):
2630 * s/msdos.h (POSIX_SIGNALS):
2631 * s/ms-w32.h (POSIX_SIGNALS):
2632 * s/hpux11.h (POSIX_SIGNALS):
2633 * s/gnu.h (POSIX_SIGNALS):
2634 * s/gnu-linux.h (POSIX_SIGNALS):
2635 * s/freebsd.h (POSIX_SIGNALS):
2636 * s/darwin.h (POSIX_SIGNALS):
2637 * s/cygwin.h (POSIX_SIGNALS):
2638 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2639 * s/unixware.h:
2640 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2641 * process.c (create_process):
2642 * syssignal.h:
2643 * sysdep.c (wait_for_termination, init_signals):
2644 * process.c (create_process):
2645 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2646 remove all code that assumes the contrary.
2647
49628785
GM
26482010-05-04 Glenn Morris <rgm@gnu.org>
2649
27a2cdfc
GM
2650 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2651 variable.
2652 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2653 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2654 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2655 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2656 LD_SWITCH_SYSTEM_tmp.
2657 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2658 New variables, set by configure.
2659
eb21eab5
GM
2660 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2661 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2662 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2663 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2664 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2665
49628785
GM
2666 * s/aix4-2.h (C_SWITCH_SYSTEM):
2667 * m/alpha.h (C_SWITCH_MACHINE):
2668 Move to configure.in.
2669 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2670 New variables, set by configure.
2671 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2672 $c_switch_machine and $c_switch_system.
2673
7dff330b
DN
26742010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2675
2676 * s/hpux10-20.h (LIB_STANDARD): New definition.
2677 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2678 on it, not used anymore.
2679
53967e09
CY
26802010-05-03 Chong Yidong <cyd@stupidchicken.com>
2681
2682 * eval.c (internal_condition_case_n): Rename from
2683 internal_condition_case_2.
2684 (internal_condition_case_2): New function.
2685
2686 * xdisp.c (safe_call): Use internal_condition_case_n.
2687
2688 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2689 (internal_delete_file, Frename_file): Callers changed.
2690
2691 * buffer.c (Fkill_buffer):
2692 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2693
2694 * lisp.h: Update prototypes.
2695
3dee6fdb
GM
26962010-05-03 Glenn Morris <rgm@gnu.org>
2697
2698 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2699 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2700 (LIBXT): Set with configure, not cpp.
2701 (LIBX): Remove.
2702 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2703
a101e0fb
DN
27042010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2705
2706 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2707 The FreeBSD is not needed, the default works, Solaris version is
2708 not needed, and the remaining case is not supported by configure.
2709
f63d0028
JD
27102010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2711
2712 * xsmfns.c (CHDIR_OPT): New define.
2713 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2714 restarting emacs.
2715
2716 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2717 shut_down_emacs.
2718
2719 * emacs.c (USAGE1): Mention --chdir.
2720 (main): Handle --chdir.
2721 (standard_args): Add --chdir.
2722 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2723 #5552).
2724
e4814a9f
DN
27252010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2726
cd03c74a
DN
2727 Remove LD_SWITCH_MACHINE.
2728 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2729 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2730
c3a398a1
DN
2731 Clean up IRIX code.
2732 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2733 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2734
87e7285c
DN
2735 Clean up AIX code.
2736 * m/ibmrs6000.inp: Remove file, unused.
2737 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2738 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2739 definition ...
2740 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2741
80f00217
JB
2742 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2743 unused.
e4814a9f 2744
59ca28de
EZ
27452010-05-01 Eli Zaretskii <eliz@gnu.org>
2746
197daef4
EZ
2747 Emulate POSIX_SIGNALS on MS-Windows.
2748
2749 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2750 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2751
2752 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2753 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2754 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2755
80f00217
JB
2756 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2757 New stubs.
197daef4 2758
af7c7572
EZ
2759 Miscellaneous fixes of bidi display.
2760
59ca28de
EZ
2761 * xdisp.c (find_row_end): New function, refactored from display_line.
2762 (display_line): Use it.
017ea819
EZ
2763 (extend_face_to_end_of_line): In almost-filled rows, extend only
2764 if the row is R2L and not continued.
166e930d 2765 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2766 Preserve overlay and string info in row->end.
166e930d
EZ
2767 (insert_left_trunc_glyphs): Support addition of left truncation
2768 glyphs to R2L rows.
b47e0dcf 2769 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2770 glyph between adjacent windows. Fix a crash when a display string
2771 is continued to the next line. Don't return zero if cursor was
2772 found by `cursor' property of a display string.
b47e0dcf
EZ
2773 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2774 test for that explicitly.
59ca28de 2775
7acac9f4
GM
27762010-05-01 Glenn Morris <rgm@gnu.org>
2777
2778 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2779 for clarity.
2780 (OTHER_OBJ): Remove.
2781 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2782 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2783
45841e65
KK
27842010-05-01 Karel Klíč <kklic@redhat.com>
2785
2786 * fileio.c (Ffile_selinux_context): Context functions may return null.
2787
afc61943
DN
27882010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2789
80f00217 2790 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2791
5a1bb006
GM
27922010-04-30 Glenn Morris <rgm@gnu.org>
2793
2794 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2795 (OTHER_OBJ): Define as a separate variable, for clarity.
2796
210af043
J
27972010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2798
2799 * xsettings.c: include limits.h and update file comment.
2800
0a7df391
GM
28012010-04-30 Glenn Morris <rgm@gnu.org>
2802
d5096f16
GM
2803 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2804 Set with configure, not cpp.
2805 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2806
7eb1ac33
GM
2807 * Makefile.in (mallocobj): Remove.
2808 (otherobj): Simplify using @OTHER_OBJ@.
2809
517d086b
GM
2810 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2811 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2812 Don't bother making nsgui.h dependency platform-specific.
2813
0a7df391
GM
2814 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2815
d6d23852
SM
28162010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2817
d2630aef
SM
2818 * process.c (read_process_output, exec_sentinel): Don't burp if the
2819 sentinel/filter kills the current buffer (bug#6060).
2820
f9dddf52 2821 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2822 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2823 Remove unused var `args'.
2824 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2825 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2826 * doc.c (store_function_docstring): Use XSETCAR.
2827
f1e3642a
GM
28282010-04-28 Glenn Morris <rgm@gnu.org>
2829
faf535f8
GM
2830 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2831 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2832
c40f9449
GM
2833 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2834
658f86ca
GM
2835 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2836 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2837
bc0b5f61
GM
2838 * Makefile.in (FONT_OBJ): New, set by configure.
2839 (FONT_DRIVERS): Use $FONT_OBJ.
2840
294c50a0
GM
2841 * Makefile.in (LIBXMU): Set with configure, not cpp.
2842 * s/aix4-2.h (LIBXMU):
2843 * s/hpux10-20.h (LIBXMU):
2844 Remove definition, now set in configure.
2845
e6ec4e99
GM
2846 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2847
f1e3642a
GM
2848 * m/amdx86-64.h [i386]: Move this test to configure.in.
2849
c6ea2936
GM
28502010-04-27 Glenn Morris <rgm@gnu.org>
2851
8fdac2c3
GM
2852 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2853 * s/unixware.h (NEED_LIBW): Remove definition.
2854
986fb647
GM
2855 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2856 (TOOLKIT_LIBW): New, set by configure.
2857 (@X_TOOLKIT_TYPE@): No longer define it.
2858
c6ea2936
GM
2859 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2860 (MOTIF_LIBW): Set with configure, not cpp.
2861 * s/aix4-2.h (LIB_MOTIF):
2862 * s/gnu-linux.h (LIB_MOTIF):
2863 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2864
aaa36002
DN
28652010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2866
2867 Reduce CPP usage.
2868 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2869 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2870 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2871 definitions and undefs. Inline definitions in the only user.
2872 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2873
b678dd8b
GM
28742010-04-27 Glenn Morris <rgm@gnu.org>
2875
76cda504
GM
2876 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2877 since the defaults (set by the system file) are fine in most cases.
2878 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2879 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2880 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2881 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2882 Remove definitions, since they are set correctly in s/gnu-linux.h.
2883 * s/freebsd.h (START_FILES, LIB_STANDARD):
2884 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2885 * s/hpux10-20.h (START_FILES):
2886 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2887 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2888
b678dd8b
GM
2889 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2890 (MOTIF_LIBW): Use $LIBXP.
2891 (otherobj): Use $WIDGET_OBJ.
2892
9452ded1
DN
28932010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2894
7e10844c
DN
2895 * Makefile.in (LIBS_MACHINE): Remove, unused.
2896
9452ded1
DN
2897 Use autoconf instead of cpp for LIB_MATH.
2898 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2899 * s/cygwin.h (LIB_MATH): Likewise.
2900 * Makefile.in (LIB_MATH): Do not define with cpp.
2901 (LIBES): Use autoconf for LIB_MATH.
2902
fcebfc6a
KH
29032010-04-26 Kenichi Handa <handa@m17n.org>
2904
2905 * composite.c (Ffind_composition_internal): Fix the return value
2906 for an automatic composition.
2907
39e2ad1b
DN
29082010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2909
2910 Remove all NO_ARG_ARRAY uses.
2911 * fns.c (concat2, concat3, nconc2):
2912 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2913 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2914 * m/xtensa.h (NO_ARG_ARRAY):
2915 * m/template.h (NO_ARG_ARRAY):
2916 * m/sparc.h (NO_ARG_ARRAY):
2917 * m/sh3.h (NO_ARG_ARRAY):
2918 * m/mips.h (NO_ARG_ARRAY):
2919 * m/macppc.h (NO_ARG_ARRAY):
2920 * m/iris4d.h (NO_ARG_ARRAY):
2921 * m/intel386.h (NO_ARG_ARRAY):
2922 * m/ibms390x.h (NO_ARG_ARRAY):
2923 * m/ibms390.h (NO_ARG_ARRAY):
2924 * m/ibmrs6000.h (NO_ARG_ARRAY):
2925 * m/ia64.h (NO_ARG_ARRAY):
2926 * m/hp800.h (NO_ARG_ARRAY):
2927 * m/arm.h (NO_ARG_ARRAY):
2928 * m/amdx86-64.h (NO_ARG_ARRAY):
2929 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2930
adf4f59c
EZ
29312010-04-25 Eli Zaretskii <eliz@gnu.org>
2932
6bdf5d65
EZ
2933 * xdisp.c (display_line): Don't assume 2nd call to
2934 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2935 (iterate_out_of_display_property): New function, body from pop_it.
2936 (pop_it): Use it.
adf4f59c 2937
dfbbda83
GM
29382010-04-24 Glenn Morris <rgm@gnu.org>
2939
2940 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2941 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2942 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2943 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2944
2d4018aa
EZ
29452010-04-24 Eli Zaretskii <eliz@gnu.org>
2946
a49884a6
EZ
2947 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2948 use `get_next_display_element' and `set_iterator_to_next' to
2949 advance to the next character, when looking for the character that
2950 begins the next row.
2951
76db6fcc 2952 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2953 definition of "struct Lisp_Symbol".
2954
70eab5c1
GM
29552010-04-24 Glenn Morris <rgm@gnu.org>
2956
2957 * Makefile.in (CRT_DIR): New variable, set by configure.
2958 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2959 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2960
1ad4cc3d
DN
29612010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2962
e769f484
DN
2963 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2964
4196ff33
DN
2965 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2966
879b0ee4
DN
2967 Remove redundant flags.
2968 * s/freebsd.h (C_SWITCH_SYSTEM):
2969 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2970 * s/netbsd.h (C_SWITCH_SYSTEM):
2971 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2972 of these.
2973
03cbbcb8
DN
2974 Simplify m/intel386.h.
2975 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2976 user: ecrt0.c.
2977 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2978 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2979 the only user: s/unixware.h.
2980 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2981 from m/intel386.h.
2982 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2983 moved here from m/intel386.h.
2984
1ad4cc3d
DN
2985 * m/mips.h: Remove #if 0 code.
2986
8785b888
EZ
29872010-04-23 Eli Zaretskii <eliz@gnu.org>
2988
728588cc
EZ
2989 Fix display of composed characters from L2R scripts in bidi buffers.
2990 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2991 After advancing IT past the composition, resync the bidi iterator
2992 with IT's position. (Bug#5977)
2993
a63f80b4
DN
29942010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2995
2996 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2997 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2998
ff5dec5c
SM
29992010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
3000
3001 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
3002
8785b888
EZ
30032010-04-23 Eli Zaretskii <eliz@gnu.org>
3004
58ccf243 3005 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
3006 * xdisp.c (pop_it): When the stack is popped after displaying
3007 from a string, bidi-iterate to exit from the text portion covered
3008 by the `display' property or overlay. (Bug#5988, bug#5920)
3009
feeb1604
DN
30102010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3011
8e324eb6
DN
3012 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3013 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3014
809fcaba
DN
3015 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3016 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3017
ed710380
DN
3018 Simplify STARTFILES definition.
3019 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3020 relying on Makefile.in to define it.
3021 * s/cygwin.h (START_FILES): Likewise.
3022 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3023
feeb1604
DN
3024 Clean up Solaris code.
3025 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3026 (LIB_MOTIF): Remove, configure takes care of this.
3027 (NOT_USING_MOTIF): Remove, unused.
3028 * xrdb.c: Remove #if 0-ed #include.
3029 (SYSV): Remove conditional for old SysV.
3030 * sysdep.c (closedir): Remove conditional code for Solaris,
3031 Solaris has closedir.
3032
a0d0b563
JD
30332010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3034
3035 * xsettings.c (read_and_apply_settings): Check if current_font is
3036 NULL before strcmp (Bug#6001).
3037
56bae7c7
DN
30382010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3039
3040 Clean up HP-UX files.
3041 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3042 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3043 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3044 * s/hpux10-20.h: ... to the only user, here.
3045
372b7a95
EZ
30462010-04-21 Eli Zaretskii <eliz@gnu.org>
3047
3048 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3049 use buffer-local values of paragraph-start and paragraph-separate.
3050 <paragraph_start_re, paragraph_separate_re>: Rename from
3051 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3052 (Bug#5992)
3053
f904c0f9
JD
30542010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3055
3056 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3057 current_tool_bar_style are new.
3058 (store_config_changed_event): Rename from store_font_changed_event.
3059 (XSETTINGS_TOOL_BAR_STYLE): New define.
3060 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3061 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3062 HAVE_XFT.
3063 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3064 store_config_changed_event.
f904c0f9
JD
3065 (parse_settings): Rename from parse_xft_settings. Read
3066 non-xft xsettings outside #ifdef HAVE_XFT.
3067 (read_settings): Renamed from read_xft_settings.
3068 (apply_xft_settings): Take current settings as parameter. Do not
3069 call read_(xft)_settings.
3070 (read_and_apply_settings): New function.
3071 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3072 read_and_apply_settings if there are settings to be read.
3073 (init_xsettings): Renamed from init_xfd_settings.
3074 Call read_and_apply_settings unconditionally.
3075 (xsettings_initialize): Call init_xsettings.
3076 (Ftool_bar_get_system_style): New function.
3077 (syms_of_xsettings): Define Qmonospace_font_name and
3078 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3079 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3080 dynamic-setting.
31a01b90 3081 Move misplaced HAVE_GCONF
f904c0f9
JD
3082
3083 * xsettings.h (Ftool_bar_get_system_style): Declare.
3084
3085 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3086 Qtext, Qboth, Qboth_horiz are new.
3087 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3088 Vtool_bar_style, tool_bar_max_label_size.
3089
3090 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3091
3092 * keyboard.c: QClabel is new.
3093 (parse_tool_bar_item): Take out QClabel from tool bar items.
3094 Try to construct a label if ther is no QClabel.
3095 (syms_of_keyboard): Intern :label as QClabel.
3096
3097 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3098 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3099 New.
3100
3101 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3102 dynamic-setting.el.
3103
3104 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3105 (xg_make_tool_item, xg_show_toolbar_item): New function.
3106 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3107 Call xg_make_tool_item to make a tool bar item.
3108 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3109
3110 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3111 into account for toolbars.
3112
c632dfda
JD
31132010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3114
3115 * data.c (make_blv): Declarations before code (Bug#5993).
3116
10efe302
GM
31172010-04-21 Glenn Morris <rgm@gnu.org>
3118
3119 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3120 Define using autoconf, not cpp.
3121 (LIBXSM): New variable, set by autoconf.
3122 (LIBXT): Use $LIBXSM.
3123
4285ac5a
DN
31242010-04-21 Dan Nicolaescu <local_user@dannlt>
3125
3ec759e7
DN
3126 Remove NOMULTIPLEJOBS, unused.
3127 * s/template.h (NOMULTIPLEJOBS):
3128 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3129
4285ac5a
DN
3130 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3131 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3132 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3133 detects -znocombreloc and passes it to the linker
3134 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3135
2807228d
GM
31362010-04-21 Glenn Morris <rgm@gnu.org>
3137
3138 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3139
574c05e2
KK
31402010-04-21 Karel Klíč <kklic@redhat.com>
3141
3142 * Makefile.in (LIBSELINUX_LIBS): New.
3143 (LIBES): Add $LIBSELINUX_LIBS.
3144 * eval.c, lisp.h (call7): New function.
3145 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3146 (Ffile_selinux_context, Fset_file_selinux_context):
3147 New functions.
3148 (Fcopy_file): New parameter preserve-selinux-context.
3149 (Frename_file): Preserve selinux context when renaming by copy-file.
3150
91eac4bb 31512010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3152 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3153
50426a04
JB
3154 Don't depend on cm.c or termcap.c on Windows, use stubs.
3155 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3156 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3157 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3158 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3159 (sys_tputs, sys_tgetstr): New stubs.
3160 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3161 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3162
938efb77
JB
31632010-04-20 Juanma Barranquero <lekktu@gmail.com>
3164
3165 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3166
b4bf28b7
SM
31672010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3168
8b1e1112
SM
3169 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3170 Just signal a warning rather than an error when inside a let.
3171 (Fmake_variable_frame_local): Add the same test.
3172
933ac235
SM
3173 * font.c (syms_of_font): Make the style table vars read-only.
3174
b4bf28b7
SM
3175 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3176 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3177
3178 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3179
93d68d0c
EZ
31802010-04-20 Eli Zaretskii <eliz@gnu.org>
3181
3182 Fix R2L paragraph display on TTY.
3183
3184 * xdisp.c (unproduce_glyphs): New function.
3185 (display_line): Use it when produced glyphs are discarded from R2L
3186 glyph rows.
3187 (append_composite_glyph): In R2L rows, prepend the glyph rather
3188 than appending it.
3189
3190 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3191 rather than append it. Set up the resolved_level and bidi_type
3192 attributes of the appended glyph.
283ccc18
EZ
3193 (produce_special_glyphs): Mirror the backslash continuation
3194 character in R2L lines.
93d68d0c 3195
283ccc18 3196 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3197
283ccc18
EZ
3198 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3199 append_stretch_glyph.
3200 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3201 off-by-one error in computing x at end of text in the row.
3202 (append_stretch_glyph): In reversed row, prepend the glyph rather
3203 than append it. Set resolved_level and bidi_type of the glyph.
3204 (extend_face_to_end_of_line): If the row is reversed, prepend a
3205 stretch glyph whose width is such that the rightmost glyph will be
3206 drawn at the right margin of the window. Fix off-by-one error on
3207 TTY frames in testing whether a line needs face extension. Fix
3208 face extension at ZV. If this is the last glyph row, use
3209 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3210 region face.
3211 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3212 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3213 row->continuation_lines_width.
283ccc18
EZ
3214 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3215 are at ZV. Fixes a crash when reseated to ZV by
3216 try_window_reusing_current_matrix.
45903529
EZ
3217 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3218 which happens with R2L glyph rows. Fixes a crash when inserting a
3219 character at end of an R2L line.
283ccc18
EZ
3220 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3221 treat them as having zero-width characters. Improve comments.
3222 Don't reverse pos_before and pos_after for reversed glyph rows.
3223 Set cursor.x to negative value when the cursor might be on the
3224 left fringe.
3225 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3226 left fringe, not the right one.
f951a506
EZ
3227 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3228 (erase_phys_cursor): For reversed cursor_row, support cursor on
3229 the left fringe.
3230
283ccc18
EZ
3231 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3232 of continuation indicators on the fringes.
3233 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3234 left fringe.
3235
f951a506
EZ
3236 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3237 draw cursor on the left fringe.
3238
3239 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3240 cursor on the left fringe.
3241
f951a506
EZ
3242 * dispnew.c (update_text_area): Handle reversed desired rows when
3243 the cursor is on the left fringe.
3244 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3245 below, not by 0, for when the cursor is on the left fringe.
3246
3bb49aaf
JD
32472010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3248
3249 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3250 widget is a scrollbar.
3251
c0be27fd
KH
32522010-04-20 Kenichi Handa <handa@m17n.org>
3253
3254 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3255 only when the arg CHARSET_LIST is nil.
3256
ce5b453a
SM
32572010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3258
3259 Make variable forwarding explicit rather the using special values.
3260 Basically, this makes the structure of buffer-local values and object
3261 forwarding explicit in the type of Lisp_Symbols rather than use
3262 special Lisp_Objects for that. This tends to lead to slightly more
3263 verbose code, but is more C-like, simpler, and makes it easier to make
3264 sure we handled all cases, among other things by letting the compiler
3265 help us check it.
3266 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3267 Removing forwarding objects.
3268 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3269 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3270 explicit rather than hiding them inside Lisp_Object "values".
3271 (XFWDTYPE): New macro.
3272 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3273 (XBUFFER_LOCAL_VALUE): Remove.
3274 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3275 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3276 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3277 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3278 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3279 Remove the Lisp_Misc_* header.
3280 (struct Lisp_Buffer_Local_Value): Redefine.
3281 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3282 (struct Lisp_Misc_Any): Add filler to get the right size.
3283 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3284 Lisp_Intfwd.
3285 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3286 (DEFVAR_KBOARD): Allocate a forwarding object.
3287 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3288 (let_shadows_global_binding_p): New function.
3289 (union Lisp_Val_Fwd): New type.
3290 (make_blv): New function.
3291 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3292 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3293 (swap_in_symval_forwarding, find_symbol_value, Fset)
3294 (let_shadows_buffer_binding_p, set_internal, default_value)
3295 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3296 (Fkill_local_variable, Fmake_variable_frame_local)
3297 (Flocal_variable_p, Flocal_variable_if_set_p)
3298 (Fvariable_binding_locus):
3299 * xdisp.c (select_frame_for_redisplay):
3300 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3301 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3302 * frame.c (store_frame_param):
3303 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3304 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3305 value structure.
3306 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3307 (clone_per_buffer_values): Only adjust markers into the current buffer.
3308 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3309 (Fbuffer_local_value, set_buffer_internal_1)
3310 (swap_out_buffer_local_variables):
3311 Adapt to the new symbol value structure.
3312 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3313 (defvar_per_buffer): Take a new arg for the fwd object.
3314 (buffer_lisp_local_variables): Return a proper alist (different fix
3315 for bug#4138).
3316 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3317 (Fgarbage_collect): Don't handle buffer_defaults specially.
3318 (mark_object): Handle new symbol value structure rather than the old
3319 special Lisp_Misc_* objects.
3320 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3321 * term.c (set_tty_color_mode):
3322 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3323 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3324 a buffer_local_flags.
3325 * print.c (print_object): Get rid of impossible forwarding objects.
3326
fd3998ff
EZ
33272010-04-19 Eli Zaretskii <eliz@gnu.org>
3328
3329 * bidi.c (bidi_get_type, bidi_get_category)
3330 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3331 (bidi_type_of_next_char, bidi_level_of_next_char):
3332 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3333
e42cd1a7
JB
33342010-04-19 Juanma Barranquero <lekktu@gmail.com>
3335
3336 * dired.c (Ffile_attributes): Fix typo in docstring.
3337
6e104790 33382010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3339
3340 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3341 NSInteger (Bug#5811).
3342
6e104790 33432010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3344
3345 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3346 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3347
6e104790 33482010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3349
3350 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3351
6e104790
SM
33522010-04-19 Chong Yidong <cyd@stupidchicken.com>
3353
3354 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3355 terminal frames (Bug#5837).
3356
37dcfea0
EZ
33572010-04-19 Eli Zaretskii <eliz@gnu.org>
3358
d1da276f
EZ
3359 * .gdbinit (xsubchartable): New command.
3360
37dcfea0
EZ
33612010-04-19 Eli Zaretskii <eliz@gnu.org>
3362
3363 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3364 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3365 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3366 and
3367 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3368
e9515805
SM
33692010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3370
3371 * alloc.c (Fpurecopy): Hash-cons if requested.
3372 (syms_of_alloc): Update purify-flag docstring.
3373
22aa44a8
JD
33742010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3375
3376 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3377 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3378
ebb5722e
EZ
33792010-04-17 Eli Zaretskii <eliz@gnu.org>
3380
3381 Fix a crash when an NSM character is inserted at BEGV.
3382
3383 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3384 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3385 NEUTRAL_B or UNKNOWN_BT.
3386
0f4442ef
EZ
33872010-04-16 Eli Zaretskii <eliz@gnu.org>
3388
3389 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3390 other rows with cursor unless they are different from this row and
3391 this row is part of a continued line. (Bug#5943)
3392
7d4e45f8
DN
33932010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3394
3395 * s/freebsd.h: Restore osreldate.h include.
3396 Suggested by Naohiro Aota.
3397
5ba5ec85
J
33982010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3399
3400 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3401
20af301d
CY
34022010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3403
3404 * s/cygwin.h: Avoid linking against static libgcc.
3405
a4b000fb
JL
34062010-04-15 Juri Linkov <juri@jurta.org>
3407
3408 * window.c: Add Qscroll_command.
3409 Remove Vscroll_preserve_screen_position_commands.
3410 (window_scroll_pixel_based, window_scroll_line_based): Check the
3411 `scroll-command' property on the last command instead of searching
3412 the last command in Vscroll_preserve_screen_position_commands.
3413 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3414 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3415 (scroll-preserve-screen-position): Doc fix.
3416 (Vscroll_preserve_screen_position_commands): Remove variable.
3417
bc319ba4
DN
34182010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3419
6bb24457
DN
3420 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3421
19d4c244
DN
34222010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3423
3424 Reduce cpp use in Makefile.in.
3425 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3426 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3427 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3428 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3429 (CRT0_COMPILE): Remove, inline it in the only user.
3430
32129746
JL
34312010-04-14 Juri Linkov <juri@jurta.org>
3432
3433 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3434 `scroll-up-command' and `M-v' from `scroll-down' to
3435 `scroll-down-command'.
3436
9013a7f8
JL
34372010-04-14 Juri Linkov <juri@jurta.org>
3438
3439 * window.c (Vscroll_preserve_screen_position_commands): New variable
3440 with the default value as the list of Qscroll_down and Qscroll_up.
3441 (window_scroll_pixel_based, window_scroll_line_based): Search the
3442 last command in the list Vscroll_preserve_screen_position_commands
3443 instead of comparing with Qscroll_up and Qscroll_down.
3444
4bef8d26
JD
34452010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3446
92848133
JD
3447 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3448 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3449 does that.
3450
4bef8d26
JD
3451 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3452 to zero.
3453
58b963f7
SM
34542010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3455
84164a0d
SM
3456 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3457
2b0a91e7
SM
3458 Try to solve the problem of spurious EOF chars in long lines of text
3459 sent to interactive subprocesses.
3460 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3461 (system_process_attributes): Remove unused var `ttotal'.
3462 * process.c (send_process): Don't bother breaking long line with EOF
3463 chars when talking to ttys any more.
3464 (wait_reading_process_output): Output a warning when called in such
3465 a way that it could block without being interruptible.
3466
58b963f7
SM
3467 Try to detect file modification within the same second.
3468 * buffer.h (struct buffer): New field modtime_size.
3469 * buffer.c (reset_buffer): Initialize it.
3470 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3471 (Fverify_visited_file_modtime): Check it.
3472 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3473 (Fset_visited_file_modtime): Set (or clear) it.
3474
01f5787b
SM
34752010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3476
3477 * process.c (status_notify): Remove unused var `ro'.
3478
83725342
JD
34792010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3480
3481 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3482 more than one visual (Bug#5938).
3483
b9465836
DN
34842010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3485
50426a04
JB
3486 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3487 Undefine.
b9465836 3488
8d9c8ece
DN
34892010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3490
b1f52161
DN
3491 Remove C_SWITCH_SYSTEM_TEMACS.
3492 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3493 (malloc, realloc, free): Use emacs, not temacs for conditional
3494 definition.
3495
3496 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3497 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3498
8d9c8ece
DN
3499 Use autoconf, not cpp for some variables.
3500 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3501 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3502 (ALL_CFLAGS): Use them as make variables.
3503 (really-lwlib, really-oldXMenu): Do not pass them.
3504
1ecb2d3f
JD
35052010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3506
3507 * xmenu.c (apply_systemfont_to_dialog): New.
3508 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3509
3a4fa2f2
SM
35102010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3511
97e53006
SM
3512 * process.c (exec_sentinel): Preserve current-buffer.
3513
3a4fa2f2
SM
3514 * process.c (read_process_output): Move the save-current-buffer to
3515 apply to both the filter and the non-filter branches.
3516
88df7221
DN
35172010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3518
3519 * s/msdos.h (UNEXEC): New definition.
3520
5634ff85
YM
35212010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3522
6eff5c3d
YM
3523 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3524 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3525
3526 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3527 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3528 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3529 TRY_WINDOW_CHECK_MARGINS.
3530
3531 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3532 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3533 width only when it is for padding.
5634ff85 3534
b13aef54
J
35352010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3536
3537 * xfns.c (Fx_show_tip): Call try_window in a loop until
3538 fonts_changed_p is zero (Bug#2423).
3539
21d28484
EZ
35402010-04-08 Eli Zaretskii <eliz@gnu.org>
3541
3542 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3543 the end of TEXT_AREA. (Bug#5856)
3544
0269ef77
JD
35452010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3546
3547 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3548 HAVE_GCONF.
3549
5930fe97
EZ
35502010-04-08 Eli Zaretskii <eliz@gnu.org>
3551
3552 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3553 prev.orig_type, for resolving type of NSM. (Bug#5858)
3554
99852628
JD
35552010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3556
3557 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3558 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3559 in current_font.
3560 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3561 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3562 New functions.
3563 (syms_of_xsettings): Initialize current_font.
3564 defsubr Sfont_get_system_normal_font.
99852628
JD
3565
3566 * xsettings.h (Ffont_get_system_normal_font,
3567 xsettings_get_system_normal_font): Declare.
3568
3569 * xfns.c (extern xlwmenu_default_font): Remove.
3570 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3571 to xlwmenu.c.
3572
3573 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3574 menu items in UTF-8.
3575
3576 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3577 (apply_systemfont_to_menu): New function.
3578 (set_frame_menubar, create_and_show_popup_menu): Call
3579 apply_systemfont_to_menu.
3580
7fc874c4
J
35812010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3582
3583 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3584 FRAME_LINE_TO_PIXEL_Y.
3585
3586 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3587 pixelwidth/height.
3588
863bf481
DN
35892010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3590
5e5a3b92
DN
3591 Simplify code for HP machines.
3592 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3593 for GNU_LINUX, not needed.
3594 (UNEXEC, NEED_BSDTTY): Move definitions...
3595 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3596
863bf481
DN
3597 * m/iris4d.h (UNEXEC): Move definition ...
3598 * s/irix6-5.h (UNEXEC): ... here.
3599
3e6bec3b
JD
36002010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3601
3602 * xfns.c (set_machine_and_pid_properties): New function.
3603 (Fx_create_frame): Call set_machine_and_pid_properties.
3604
2912322b
SM
36052010-04-03 Eli Zaretskii <eliz@gnu.org>
3606
1502b819
EZ
3607 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3608 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3609 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3610
2912322b
SM
3611 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3612 in this function. (Bug#5703)
3613
36142010-04-03 Chong Yidong <cyd@stupidchicken.com>
3615
3616 * nsterm.h: Fix last change.
3617
c435b432
DN
36182010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3619
a568f507
DN
3620 * m/intel386.h (NO_REMAP): Move definition ...
3621 * s/msdos.h (NO_REMAP): ... here.
3622
4cd9f6c2
DN
3623 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3624
c435b432
DN
3625 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3626 used on those platforms.
3627
42a2c622
DN
36282010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3629
3630 Remove extern errno declarations.
3631 * xterm.c:
3632 * xrdb.c:
3633 * w32term.c:
3634 * unexec.c:
3635 * unexaix.c:
3636 * sysdep.c:
3637 * process.c:
3638 * lread.c:
3639 * keyboard.c:
3640 * floatfns.c:
3641 * filelock.c:
3642 * fileio.c:
3643 * emacs.c (main):
3644 * ecrt0.c:
3645 * dispnew.c:
3646 * callproc.c:
3647 * buffer.c: Remove errno extern declarations.
3648 * s/netbsd.h (NEED_ERRNO): Remove.
3649
8224f93d
DN
36502010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3651
3652 Remove all uses of LIBX11_SYSTEM.
3653 * Makefile.in (LIBX11_SYSTEM): Remove.
3654 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3655 instead.
3656
814062c7
EZ
36572010-04-01 Eli Zaretskii <eliz@gnu.org>
3658
ed68db4d
EZ
3659 Remove support for DJGPP v1.x (bug#5813).
3660
3661 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3662 * s/msdos.h:
3663 * unexec.c (make_hdr, copy_text_and_data):
3664 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3665 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3666 (IT_set_terminal_modes, __write, _rename, gethostname)
3667 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3668 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3669 the value of __DJGPP__.
ed68db4d
EZ
3670 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3671 compatibility code.
8224f93d
DN
3672 * lread.c:
3673 * gmalloc.c (memalign):
3674 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3675 * emacs.c (main):
3676 * dosfns.c (init_dosfns):
ed68db4d
EZ
3677 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3678
52f4d8d5
EZ
36792010-04-01 Eli Zaretskii <eliz@gnu.org>
3680
814062c7
EZ
3681 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3682 string with `cursor' property comes from an `after-string'
3683 overlay. (Bug#5816)
3684
0dc2e11d
GM
36852010-04-01 Glenn Morris <rgm@gnu.org>
3686
3687 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3688 Define as Makefile variables.
3689 (LIBX): Use above variables rather than directly using autoconf.
3690
1d29df59
DN
36912010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3692
3693 Clean up BSD_SYSTEM use.
3694 * xterm.c:
3695 * process.c:
3696 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3697 for including <sys/ioctl.h>.
3698 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3699 code is only used for MSDOS.
3700
1546c559
JL
37012010-03-31 Juri Linkov <juri@jurta.org>
3702
3703 * image.c: Add `Qextension_data'.
3704 (syms_of_image): Initialize and staticpro `Qextension_data'.
3705 (Fimage_metadata): Rename from `Fimage_extension_data'.
3706 (gif_load): Put GIF extension data to the property
3707 `Qextension_data'.
3708
6521c534
CY
37092010-03-31 Chong Yidong <cyd@stupidchicken.com>
3710
3711 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3712 * nsterm.h: Fix prototype.
3713
52c30783
EZ
37142010-03-31 Eli Zaretskii <eliz@gnu.org>
3715
3716 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3717 trailing whitespace in right-to-left rows.
3718
855a0da7
SM
37192010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3720
3721 Get rid of the direct_output optimizations.
3722 * keyboard.c (nonundocount): Remove extern declaration.
3723 (command_loop_1): Remove brittle optimisation for cheap and
3724 common operations.
3725 * xdisp.c (redisplay_internal): Don't bother checking
3726 redisplay_performed_directly_p any more.
3727 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3728 any more.
3729 * dispnew.c (redisplay_performed_directly_p)
3730 (direct_output_for_insert, direct_output_forward_char):
3731 * dispextern.h (redisplay_performed_directly_p)
3732 (direct_output_for_insert, direct_output_forward_char): Remove.
3733 * cmds.c (nonundocount): Make it static.
3734
85738751 37352010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3736
3737 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3738
85738751 37392010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3740
3741 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3742 invisible (Bug#5766).
3743
85738751 37442010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3745
855a0da7
SM
3746 * xdisp.c (x_consider_frame_title, update_window_cursor):
3747 Remove HAVE_NS conditionals.
194d44e7 3748 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3749
3750 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3751 filename for the title.
3752 (ns_set_doc_edited): Do nothing if the selected window is a
3753 minibuffer window.
3754
3755 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3756 ns_set_doc_edited.
3757
3758 * nsterm.m: Remove unneeded prototype.
3759
85738751 37602010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3761
3762 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3763 in the DOC file. (Bug#5336)
3764
85738751 37652010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3766
3767 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3768
75d1428c
SM
37692010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3770
3771 * window.c (keys_of_window): Remove redundant/overridden bindings.
3772
82043cfb
EZ
37732010-03-30 Eli Zaretskii <eliz@gnu.org>
3774
3775 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3776 Restore original behavior when the iterator is not bidi_p.
3777
b5dd0ae7
DN
37782010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3779
3780 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3781
bd924a5d
EZ
37822010-03-30 Eli Zaretskii <eliz@gnu.org>
3783
3784 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3785 are outside the range of cached character positions.
3786
3580374b
JB
37872010-03-30 Juanma Barranquero <lekktu@gmail.com>
3788
3789 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3790
a7b02820
EZ
37912010-03-30 Eli Zaretskii <eliz@gnu.org>
3792
3793 Initial support for bidirectional editing.
3794
3795 * Makefile.in (obj): Include bidi.o.
3796 (bidi.o): New target.
3797
3798 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3799 ($(BLD)/bidi.$(O)): New target.
3800
3801 * bidi.c: New file.
3802
3803 * buffer.h (struct buffer): New members bidi_display_reordering
3804 and bidi_paragraph_direction.
3805
3806 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3807 and bidi_paragraph_direction.
3808 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3809 and bidi-paragraph-direction.
3810 (Fbuffer_swap_text): Swap the values of
3811 bidi_display_reordering and bidi_paragraph_direction.
3812
3813 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3814 (bidi_type_t, bidi_dir_t): New types.
3815 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3816 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3817 prev_stop, base_level_stop, and eol_pos.
3818 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3819 (IT_STACK_SIZE): Enlarge to 5.
3820 (struct glyph_row): New member reversed_p.
3821 <string_buffer_position>: Update prototype.
3822 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3823 glyph_row if bidi_it.paragraph_dir == R2L.
3824 (struct glyph): New members resolved_level and bidi_type.
3825
3826 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3827 processing or buffer's direction is right-to-left.
3828 (prepare_desired_row): Preserve the reversed_p flag.
3829 (row_equal_p): Compare the reversed_p attributes as well.
3830
3831 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3832 bidi_init_it and set it->paragraph_embedding from the current
3833 buffer's value of bidi_paragraph_direction.
3834 (reseat_1): Initialize bidi_it.first_elt.
3835 (set_iterator_to_next, next_element_from_buffer): Use the value of
3836 paragraph_embedding to determine the paragraph direction.
3837 (set_iterator_to_next): Under bidi reordering, call
3838 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3839 new_paragraph flag is set in the bidi iterator.
3840 (next_element_from_buffer): If bidi_it.first_elt is set,
3841 initialize paragraph direction and find the first character to
3842 display in the visual order. If reseated to a middle of a line,
3843 prime the bidi iterator starting at the line's beginning. Handle
3844 the situation where we overstepped stop_charpos due to
3845 non-linearity of the bidi iteration. Likewise for when we back up
3846 beyond the previous stop_charpos. When moving across stop_charpos,
3847 record it in prev_stop.
3848 (display_line): Set row->end and it->start for the next row to the
3849 next character in logical order. Always extend reversed_p rows to
3850 the end of line, even if they end at ZV. Copy the reversed_p flag
3851 to the next glyph row. Keep calling set_cursor_from_row for
3852 bidi-reordered rows even if we already have a possible candidate
3853 for cursor position. Set row_end after all the row's glyphs have
3854 been produced, by looping over the glyphs. Record the position
3855 after EOL in it->eol_pos, and use it to set end_pos of the last
3856 row produced for a continued line.
3857 <Qright_to_left, Qleft_to_right>: New variables.
3858 (syms_of_xdisp): Initialize and staticpro them.
3859 (string_buffer_position_lim): New function.
3860 (string_buffer_position): Most of code moved to
3861 string_buffer_position_lim. Last argument and return value are
3862 now EMACS_INT; all callers changed.
3863 (set_cursor_from_row): Rewritten to support bidirectional text and
3864 reversed glyph rows.
3865 (text_outside_line_unchanged_p, try_window_id): Disable
3866 optimizations if we are reordering bidirectional text and the
3867 paragraph direction can be affected by the change.
3868 (append_glyph, append_composite_glyph)
3869 (produce_image_glyph, append_stretch_glyph): Set the
3870 resolved_level and bidi_type members of each glyph.
3871 (append_glyph): If the glyph row is reversed, prepend the glyph
3872 rather than appending it.
3873 (handle_stop_backwards): New function.
3874 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3875 (reseat): call handle_stop_backwards to recompute prev_stop and
3876 base_level_stop for the new position.
3877 (handle_invisible_prop): Under bidi iteration, skip invisible text
3878 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3879 paragraph direction. Update IT->prev_stop after skipping
3880 invisible text.
3881 (move_it_in_display_line_to): New variables prev_method
3882 and prev_pos. Compare for strict equality in
3883 BUFFER_POS_REACHED_P.
3884 (try_cursor_movement): Examine all the candidate rows that occlude
3885 point, to return the best match. If rows are bidi-reordered
3886 and point moved backwards, back up to the row that is not a
3887 continuation line, and start looking for a suitable row from
3888 there.
3889
3890 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3891 rather than appending, if the glyph_row's reversed_p flag is set.
3892 Set the resolved_level and bidi_type members of each glyph.
3893
3894 * .gdbinit (pbiditype): New command.
3895 (pgx): Use it to display bidi level and type of the glyph.
3896 (pitx): Display some bidi information about the iterator.
3897 (prowlims, pmtxrows): New commands.
3898
32a8894e
DN
38992010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3900
3901 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3902 * s/usg5-4.h (LIBS_DEBUG):
3903 * s/irix6-5.h (C_DEBUG_SWITCH):
3904 * s/gnu-linux.h (LIBS_DEBUG):
3905 * s/darwin.h (LIBS_DEBUG):
3906 * s/bsd-common.h (LIBS_DEBUG):
3907 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3908 * m/iris4d.h (LIBS_DEBUG):
3909 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3910
3911 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3912 (LIBS_DEBUG): Remove definition.
3913
649dbf36
CY
39142010-03-27 Chong Yidong <cyd@stupidchicken.com>
3915
3916 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3917 Windows.
3918
cad4261f
YM
39192010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3920
3921 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3922 `connect' (Bug#5723).
3923
cd591dbc
HE
39242010-03-25 Helmut Eller <eller.helmut@gmail.com>
3925
3926 * process.c (Fmake_network_process): Call `select' for interrupted
3927 `connect' rather than creating new socket (Bug#5173).
3928
e867cb5d 39292010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3930
3931 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3932
3933 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3934
3935 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3936
e867cb5d 39372010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3938
3939 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3940 XLoadQueryFont.
3941
e867cb5d 39422010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3943
3944 * coding.c (decode_coding_ccl): Fix previous change for the
3945 multibyte case.
fb608df3
KH
3946 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3947 case that the output buffer is fullfilled.
3948 (encode_coding): Setup ccl program here.
fbdc1721 3949
5845f0ed
DN
39502010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3951
814fb708
DN
3952 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3953
5845f0ed
DN
3954 Simplify LIBS_MACHINE definitions.
3955 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3956 * m/iris4d.h (LIBS_MACHINE): Likewise.
3957 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3958 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3959 * s/netbsd.h: Remove commented out code.
5845f0ed 3960
b7064064
DN
39612010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3962
df7734b2
DN
3963 Remove dead code dealing with POSIX_SIGNALS.
3964 * atimer.c (set_alarm): Remove dead code, all USG systems define
3965 POSIX_SIGNALS.
3966 * data.c (arith_error): Likewise.
3967 * keyboard.c (input_available_signal, handle_user_signal)
3968 (interrupt_signal): Likewise.
3969 * process.c (sigchld_handler): Likewise.
3970 (create_process): Remove if 0 code. Remove HPUX conditional when
3971 !defined (POSIX_SIGNALS), it cannot be true.
3972 * syssignal.h: Remove USG5_4 and USG conditionals when
3973 !POSIX_SIGNALS, they cannot be true.
3974
b7064064
DN
3975 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3976 NO_SOCK_SIGIO, not used anymore.
3977
55da5ee3
DN
39782010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3979
0be96e3a
DN
3980 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3981 support vax on BSDs.
3982
55da5ee3
DN
3983 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3984 * s/aix4-2.h (ORDINARY_LINK): ... here.
3985
c0282183
AS
39862010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3987
82c3d67a
AS
3988 * Makefile.in (abs_builddir): Define.
3989 (bootstrap_exe): Use it.
3990 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3991
3613edce
SM
39922010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3993
3994 * Makefile.in (bootstrap_exe): Use an absolute name.
3995
7f110ddc
DN
39962010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3997
22e87574
DN
3998 Remove support for old GNU/Linux using libc version 5.
3999 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
4000 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
4001
05a670e6
DN
4002 Consolidate redundant definitions in s/bsd-common.h.
4003 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4004 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4005 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
4006 doing it in all files that include this one.
4007 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4008 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4009 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4010 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4011 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4012 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4013 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4014 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4015 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4016
2968f561
DN
4017 Consolidate redundant definitions.
4018 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4019 it's undefined in all files that include this one.
4020 (POSIX_SIGNALS): Define here instead of doing it in all files that
4021 include this one.
4022 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4023 (POSIX_SIGNALS): Do not define.
4024 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4025 (POSIX_SIGNALS): Do not define.
4026 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4027 (POSIX_SIGNALS): Do not define.
4028
15d25dc0
DN
4029 Remove support for old UNIX System V systems.
4030 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4031 * s/usg-5-4-2.h: Remove.
4032
07e339e4
DN
4033 Remove support for Solaris on PPC and for old versions.
4034 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4035 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4036 that cancel each other.
4037 * s/sol2-3.h:
4038 * s/sol2-4.h:
4039 * s/sol2-5.h: Remove.
4040 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4041 (NO_REMAP): Remove, unused.
4042 (UNEXEC): Move definition ...
4043 * s/aix4-2.h (UNEXEC): ... here.
4044
7f110ddc
DN
4045 * s/openbsd.h: Remove support for non-ELF and for systems that do
4046 not support shared libraries.
4047 * s/netbsd.h:
4048 * s/freebsd.h: Likewise.
4049
605f35cd
DN
40502010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4051
4052 Remove non-working support for lynxos 3.0.
4053 * s/lynxos.h: Remove file.
4054
4055 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4056 COFF_BSD_SYMBOLS, nothing defines it anymore.
4057
aed71cf4
DN
40582010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4059
4060 Remove obsolete uses of HAVE_SHM.
4061 * emacs.c (standard_args):
4062 (Fdump_emacs):
4063 (syms_of_emacs): Remove code depending on HAVE_SHM.
4064
4065 * alloc.c: Remove HAVE_SHM dependent definition.
4066
4067 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4068
aded53ff
GM
40692010-03-18 Glenn Morris <rgm@gnu.org>
4070
17284745
GM
4071 * emacs.c (USAGE4): Hard-code bug address.
4072 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4073 (bug_reporting_address): Remove.
4074 (main): Don't call bug_reporting_address.
4075
aded53ff
GM
4076 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4077 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4078
303500aa
CY
40792010-03-15 Chong Yidong <cyd@stupidchicken.com>
4080
4081 * xfns.c (Fx_create_frame):
4082 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4083 on left.
4084
cef3058f
CY
40852010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4086
4087 * editfns.c (Fformat): Account for string precision when computing
4088 field width (Bug#5710).
4089
a647d59d
CY
40902010-03-12 Chong Yidong <cyd@stupidchicken.com>
4091
4fa42018
CY
4092 * xfns.c (Fx_create_frame): Set default to Qright.
4093
a647d59d
CY
4094 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4095 all window systems.
4096
6da23aaa
EZ
40972010-03-12 Eli Zaretskii <eliz@gnu.org>
4098
a96f6398 4099 These changes remove termcap.c from the build on Posix platforms.
83d02def 4100 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4101 (MSDOS_OBJ): ...to here.
4102 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4103 now identical to when LIBS_TERMCAP is defined.
4104
4105 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4106
4107 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4108
a96f6398 4109 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4110
288f9fc0
CY
41112010-03-10 Chong Yidong <cyd@stupidchicken.com>
4112
4113 * Branch for 23.2.
4114
d48cd3f4
SM
41152010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4116
4117 Cleanup setup of gl_state in various parts of the code.
4118 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4119 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4120 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4121 (skip_chars):
4122 * regex.c (regex_compile): Use it.
4123 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4124 it's now set in regex_compile when/if we need it.
4125
618db430
SM
41262010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4127
c0335e02
SM
4128 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4129 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4130 (QUIT): Use it to consolidate code and remove redundancy.
4131 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4132
254c06a8
SM
4133 * regex.c (regex_compile): Setup gl_state as well.
4134
618db430
SM
4135 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4136 (in_classes): Use CONSP before XCAR/XCDR.
4137
233f0c9f
CY
41382010-03-03 Chong Yidong <cyd@stupidchicken.com>
4139
4140 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4141 definitions, so that keyboard macros are correctly handled
4142 (Bug#5481).
4143
75f80e63
EZ
41442010-03-02 Eli Zaretskii <eliz@gnu.org>
4145
4146 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4147 text that could be relocated inside the call to emacs_mule_char.
4148 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4149 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4150
dcfb9bc4
KH
41512010-03-02 Kenichi Handa <handa@m17n.org>
4152
fc9a17bc
KH
4153 * character.c (parse_str_as_multibyte): Fix handling of the
4154 multibyte form of raw-bytes.
4155 (str_as_multibyte): Likewise.
4156
dcfb9bc4
KH
4157 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4158 form of raw-bytes.
4159
412c01b6
CY
41602010-02-28 Chong Yidong <cyd@stupidchicken.com>
4161
4162 * charset.c (load_charset_map_from_file)
4163 (load_charset_map_from_vector): Zero out allocated
4164 charset_map_entries before using them.
4165
df7e1ea0
AS
41662010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4167
4168 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4169
fe69a722
CY
41702010-02-27 Chong Yidong <cyd@stupidchicken.com>
4171
4ed28cf4
CY
4172 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4173 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4174
7379cfce
KH
41752010-02-26 Kenichi Handa <handa@m17n.org>
4176
f88cc4d6
KH
4177 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4178
7379cfce
KH
4179 * xdisp.c (reseat_to_string): Fix previous change.
4180
cf2fdcfb
CY
41812010-02-26 David Reitter <david.reitter@gmail.com>
4182
4183 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4184 Lisp_Object (Bug#4736).
4185
cc6c7c75
KH
41862010-02-25 Kenichi Handa <handa@m17n.org>
4187
4188 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4189
32e737d7
JD
41902010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4191
4192 * xterm.c (XTflash): Move declarations before statements.
4193
4194 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4195 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4196 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4197 (xg_create_tool_bar): Remove unused variables.
4198 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4199 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4200
676cae9f
CY
42012010-02-21 Chong Yidong <cyd@stupidchicken.com>
4202
4203 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4204
886cc2b8
SM
42052010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4206
4207 * term.c (fatal): Add a final \n if needed (bug#5596).
4208
ddb2d8e2
CY
42092010-02-18 Chong Yidong <cyd@stupidchicken.com>
4210
4211 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4212
2a4f8d3d
GM
42132010-02-18 Glenn Morris <rgm@gnu.org>
4214
4215 * callint.c (Finteractive): Doc fix.
4216
ebaf11b6
KH
42172010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4218
886cc2b8
SM
4219 * coding.c (record_conversion_result):
4220 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4221 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4222 memory allocation error.
4223
d0396581
KH
42242010-02-17 Kenichi Handa <handa@m17n.org>
4225
886cc2b8
SM
4226 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4227 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4228 (decode_coding): Setup ccl program here. Keep looping when the
4229 decoder stopped because the output buffer is
4230 fullfilled (bug#5534).
4231
4232 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4233
98599f74
JD
42342010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4235
471e4f04 4236 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4237 bug #5571.
886cc2b8 4238 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4239 overdrawn.
98599f74 4240
182659ae
JD
42412010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4242
4243 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4244 doing_interact here.
4245 (ice_connection_closed): New function.
4246 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4247 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4248 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4249 returns I/O error.
4250 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4251 bug #5512.
4252
9be32c4e 42532010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4254
4255 * nsfont.m (nsfont_open): The system's value for the font descent
4256 is negative, so round it down to avoid clipping.
4257
a2f3eb19
CY
42582010-02-06 Chong Yidong <cyd@stupidchicken.com>
4259
4260 * charset.c (load_charset_map_from_file)
4261 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4262 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4263
3088147c
CY
42642010-02-05 Chong Yidong <cyd@stupidchicken.com>
4265
4266 * charset.c (load_charset_map_from_file): Allocate large
4267 charset_map_entries structure on the heap rather than the stack.
4268 (Bug#5526).
4269
b57d9029
KH
42702010-01-31 Kenichi Handa <handa@m17n.org>
4271
4272 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4273 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4274
c67d885b
CY
42752010-01-31 Chong Yidong <cyd@stupidchicken.com>
4276
4277 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4278 <deactivated@gmail.com> (Bug#3605).
4279
8fab2362
CY
42802010-01-31 David De La Harpe Golden <david@harpegolden.net>
4281
4282 * fileio.c (Frename_file): Correctly rename symlinks to
4283 directories (Bug#5496).
4284
cb2a62f2
CY
42852010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4286
4287 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4288
944c7a26
AS
42892010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4290
4291 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4292
c024ac08
CY
42932010-01-29 Chong Yidong <cyd@stupidchicken.com>
4294
4295 * frame.c (DEFAULT_ROWS): Change default to 35.
4296
4297 * xfns.c (x_default_font_parameter): Change default XFT font to
4298 monospace-10 (Bug#3643).
4299
af93af83
EZ
43002010-01-29 Eli Zaretskii <eliz@gnu.org>
4301
4302 * w32inevt.c (key_event): Remove unnecessary comparison of
4303 event->uChar.AsciiChar with 128.
4304
ca0eb708
CY
43052010-01-28 Chong Yidong <cyd@stupidchicken.com>
4306
b242dbfc
CY
4307 * fileio.c (Frename_file): Fix last change (Bug#5487).
4308
ca0eb708
CY
4309 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4310
4311 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4312
45d45af5
JD
43132010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4314
4315 * xfns.c (Fx_create_frame): Remove window size matching code from
4316 2010-01-15.
a73f9c9d 4317 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4318
7e233730
JR
43192010-01-27 Jason Rumney <jasonr@gnu.org>
4320
4321 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4322 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4323
86e893e3
KH
43242010-01-27 Kenichi Handa <handa@m17n.org>
4325
4326 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4327 pattern string (Bug#4209).
86e893e3 4328
8719abec
CY
43292010-01-27 David De La Harpe Golden <david@harpegolden.net>
4330
4331 * fileio.c (Frename_file): Call copy-directory and
4332 delete-directory for directories, in order to handle cross-device
4333 renaming (Bug#3353).
4334
844794c8
JD
43352010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4336
aa3e13b5 4337 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4338 sizes 24 and 10. Bug #3643.
844794c8 4339
bd4b5750
SM
43402010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4341
8dc1adf6 4342 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4343 * keymap.c (shadow_lookup): Add `remap' arg.
4344 (describe_map, describe_vector): Update calls to shadow_lookup.
4345 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4346 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4347 perform remapping during shadow_lookup check of remapped_sequences.
4348
285d07e2
CY
43492010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4350
4351 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4352 png_check_sig, which has been removed in libpng 1.4.
4353
c6d09b8d
CY
43542010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4355
4356 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4357 lacks this header file).
4358
3d782998
YM
43592010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4360
4361 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4362 as in Emacs 22.
4363
2aff7c53
YM
43642010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4365
4366 * lisp.h (make_pure_string): String pointer arg now points to const.
4367
4368 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4369 args now point to const.
4370
74327f7a
EZ
43712010-01-22 Eli Zaretskii <eliz@gnu.org>
4372
4373 * lread.c (Fload): Don't treat files without .elc extension as
4374 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4375 them. (bug#5303)
4376
4d1e6632
KH
43772010-01-20 Kenichi Handa <handa@m17n.org>
4378
4379 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4380 treat the source as actual byte sequence.
4381
1fdede8f
AM
43822010-01-19 Alan Mackenzie <acm@muc.de>
4383
4384 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4385 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4386 `signal_after_change_p' to `coherent_change_p', and make the
4387 invocation of `modify_region' conditional on it.
4388
67477f30
JD
43892010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4390
4391 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4392 for debug purpose.
4393 (syms_of_xsettings): Declare xft-settings.
4394
244b023e
CY
43952010-01-18 Chong Yidong <cyd@stupidchicken.com>
4396
4397 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4398
617364fe
CY
43992010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4400
4401 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4402
4fe22cdf
CY
44032010-01-16 Chong Yidong <cyd@stupidchicken.com>
4404
4405 * emacs.c (standard_args): Adjust arg priorities to reflect how
4406 they are processed in startup.el.
4407
e118d2be
AS
44082010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4409
4410 * Makefile.in (lisp, shortlisp): Update.
4411
523ae620
SM
44122010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4413
4414 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4415 code, link the new kboard into all_kboard before running Lisp code,
4416 and protect the new terminal with GCPRO (Bug#5365).
4417 (x_term_init): Remove unused var `atom'.
4418 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4419
f0d13888
JD
44202010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4421
4422 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4423 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4424 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4425 this. Bug #3643.
f0d13888 4426
cc320f07
KH
44272010-01-15 Kenichi Handa <handa@m17n.org>
4428
4429 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4430
7ffdf101
CY
44312010-01-15 Chong Yidong <cyd@stupidchicken.com>
4432
4433 * nsterm.m (Qnone): Define.
4434
4435 * nsfns.m (Qnone): Move definition to nsterm.m.
4436
d12bd917
KH
44372010-01-14 Kenichi Handa <handa@m17n.org>
4438
4439 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4440 systems.
4441
d9a7c140
KH
44422010-01-14 Kenichi Handa <handa@m17n.org>
4443
4444 Make auto-composition work on all buffers even if they are
4445 fundamental mode.
4446
4447 * composite.c (Vauto_composition_mode): New variable.
4448 (composition_compute_stop_pos): Check Vauto_composition_mode
4449 instead of Vauto_composition_function.
4450 (composition_adjust_point, Ffind_composition_internal): Likewise.
4451 (syms_of_composite): Declare Lisp variable
4452 "auto-composition-mode" here.
4453
63286bb2
CY
44542010-01-13 Chong Yidong <cyd@stupidchicken.com>
4455
4456 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4457 during call to vendor-specific-keysyms (Bug#5365).
4458
c2623ee7
YM
44592010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4460
4461 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4462 Call SIGNAL_THREAD_CHECK (Bug#5333).
4463
4464 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4465 Call SIGNAL_THREAD_CHECK.
4466
0b5397c2
SM
44672010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4468
4469 Try to fix bug#5314. This is probably not the final word, tho.
4470 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4471 recent-auto-save-p as a side-effect.
4472 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4473 * buffer.c (Fkill_buffer, reset_buffer):
4474 * editfns.c (Fsubst_char_in_region):
4475 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4476 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4477
dc954cb2
KH
44782010-01-13 Kenichi Handa <handa@m17n.org>
4479
4480 Display buffer name, etc. in mode line by composing correctly.
4481
4482 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4483 STRING is not nil.
0b5397c2 4484 (display_mode_element): Adjust for the change of
dc954cb2
KH
4485 decode_mode_spec and display_line.
4486 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4487 (display_string): Handle the case that STRING is non-null and
4488 LISP_STRING is not nil.
4489
0b5397c2
SM
4490 * xterm.c (x_draw_composite_glyph_string_foreground):
4491 Pay attention to s->face->overstrike.
dc954cb2
KH
4492
4493 * composite.c (composition_reseat_it): Don't check PT if STRING is
4494 non nil.
4495
4a00eaca
YM
44962010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4497
4498 * keyboard.c (read_char): Don't apply previous change when current
4499 buffer is unchanged by command execution.
4500
60abb287
JD
45012010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4502
4503 * keyboard.c (read_char): Return after executing from special map.
4504
893db5bc
GM
45052010-01-12 Glenn Morris <rgm@gnu.org>
4506
4507 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4508 bug-gnu-emacs rather than emacs-pretest-bug.
4509
4d03ece0
CY
45102010-01-11 Chong Yidong <cyd@stupidchicken.com>
4511
4512 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4513 initializing the Lisp variables that depend on them.
4514
1df47e38
YM
45152010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4516
4517 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4518 Clear areas that will not be updated after change of menu bar lines.
4519 Clear the menu bar window's current matrix when the window gets empty.
4520
2f1c6384
CY
45212010-01-09 Chong Yidong <cyd@stupidchicken.com>
4522
e398c61c
CY
4523 * intervals.h, textprop.c (extend_property_ranges): Return value
4524 and args changed. Discard properties that begin at or after the
4525 new end (Bug#5306).
4526
4527 * editfns.c (Fformat): Caller changed.
4528
e5a29a10
CY
4529 * nsterm.m (ns_set_default_prefs): Delete function.
4530 (syms_of_nsterm): Initialize ns_command_modifier,
4531 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4532 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4533
2f1c6384
CY
4534 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4535 position (Bug#4040).
4536
d427a9fa
EZ
45372010-01-09 Eli Zaretskii <eliz@gnu.org>
4538
4539 * editfns.c (Ffloat_time): Doc fix.
4540
21b9df2f
JD
45412010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4542
4543 * xfns.c (Fx_create_frame): Don't create frame larger than display
4544 by default bug#3643.
4545
4b00d3b1
YM
45462010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4547
4548 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4549 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4550 windows above internal border.
4551
4552 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4553 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4554 windows above internal border.
4555
4556 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4557 tool bar windows specially.
4558
4559 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4560
4561 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4562 specially.
4563 (XTflash): Take account of menu bar height.
4564
4565 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4566 specially.
4567
5075d853
JD
45682010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4569
ac146f82 4570 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4571 also be true before we can return early (bug #5339).
4572
474217c8
CY
45732010-01-06 David Reitter <david.reitter@gmail.com>
4574
4575 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4576 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4577 (Bug#3233).
4578
c0e6d47d
JD
45792010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4580
d0cf45b7
JD
4581 * font.c (font_open_entity): Enable chache and call cached_font_ok
4582 for the driver if defined.
4583 (QCuser_spec): New symbol.
4584 (font_spec_from_name): Save name as user-spec.
4585 (font_load_for_lface): Keep user-spec instead of name.
4586 (font_open_by_name): Save name as user-spec.
4587 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4588 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4589
4590 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4591 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4592 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4593
4594 * font.h (struct font_driver): Add cached_font_ok.
4595
c0e6d47d
JD
4596 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4597
7c583cd8
JD
45982010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4599
4600 * xterm.c (x_new_font): Move code for setting rows/cols before
4601 resizing ...
ac146f82 4602 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4603
4604 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4605 (xg_frame_resized, xg_frame_set_char_size):
4606 Call xg_clear_under_internal_border.
7c583cd8 4607 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4608
03f77f0a
CY
46092010-01-05 Chong Yidong <cyd@stupidchicken.com>
4610
4611 * keyboard.c (read_key_sequence): Catch keyboard switch after
4612 making a new tty frame (Bug#5095).
4613
2a1ef5be
KH
46142010-01-05 Kenichi Handa <handa@m17n.org>
4615
4616 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4617
e3eb1dae
SM
46182010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4619
4620 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4621 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4622 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4623
777013f2
MA
46242010-01-03 Michael Albinus <michael.albinus@gmx.de>
4625
4626 * dbusbind.c (xd_add_watch): Improve debug message.
4627 (xd_remove_watch): Improve debug message. If DATA is the session
4628 bus, unset D-Bus session environment.
4629 (Fdbus_init_bus): Pass the bus as argument to
4630 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4631
8932b1c2
CY
46322010-01-01 Chong Yidong <cyd@stupidchicken.com>
4633
87231e2c
CY
4634 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4635
4801c5fa
CY
4636 * lread.c (syms_of_lread): Make it clearer that these are the
4637 names of loaded files (Bug#5068).
4638
8932b1c2
CY
4639 * eval.c (run_hook_with_args): Handle the case where the global
4640 value has the obsolete single-function form (Bug#5026).
4641
11e3c684
CY
46422009-12-27 Chong Yidong <cyd@stupidchicken.com>
4643
4644 * minibuf.c (Fall_completions): Minor optimization.
4645
5b28ce35
EZ
46462009-12-26 Eli Zaretskii <eliz@gnu.org>
4647
5ce6e4f4
JB
4648 * .gdbinit (pgx): Fix display of composite glyphs.
4649 Display cmp.from and cmp.to as well.
4650 (pitx): Fix last change.
5b28ce35 4651
bcffff46
KH
46522009-12-25 Kenichi Handa <handa@m17n.org>
4653
4654 * composite.h (composition_adjust_point): Update prototype.
4655
4656 * composite.c (composition_reseat_it): Don't make a composition
4657 spanning over point.
4658 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4659 composable characters.
4660 (composition_adjust_point): New arg NEW_PT. Callers changed.
4661
4662 * keyboard.c (command_loop_1): Force redisplay if the last point
4663 was within a composition.
4664 (adjust_point_for_property): Don't adjust point for automatic
4665 composition when called after buffer modification.
4666
3f670e9a
EZ
46672009-12-19 Eli Zaretskii <eliz@gnu.org>
4668
5ce6e4f4
JB
4669 * .gdbinit (pitx): Don't use enum names, use their values.
4670 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4671 (pgx): Don't use enum names, use their values.
4672 (pitmethod): New helper command.
4673 (pitx): Use it to display iteration method.
4674 (pgrowit): New command.
4675
ad903955
EZ
4676 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4677
3f670e9a
EZ
4678 Update dependencies in Makefile.in.
4679
4680 * Makefile.in (alloc.o): Depend on termhooks.h.
4681 (atimer.o): Depend on blockinput.h.
4682 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4683 and frame.h.
4684 (callint.o): Depend on systime.h, coding.h, and composite.h.
4685 (callproc.o): Depend on buffer.h.
4686 (casefiddle.o): Don't depend on charset.h.
4687 (casetab.o): Depend on character.h.
4688 (ccl.o): Depend on composite.h.
4689 (chartab.o): Depend on ccl.h.
4690 (cm.o): Depend on dispextern.h.
4691 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4692 (coding.o): Don't depend on $(INTERVALS_H).
4693 (composite.o): Don't depend on dispextern.h explicitly (it's in
4694 $(INTERVALS_H)). Depend on ccl.h.
4695 (data.o): Depend on systime.h, coding.h, composite.h,
4696 dispextern.h, font.h, and ccl.h.
4697 (dired.o): Depend on composite.h.
4698 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4699 composite.h (it's in $(INTERVALS_H)).
4700 (doc.o): Depend on systime.h, coding.h, and composite.h.
4701 (editfns.o): Don't depend explicitly on dispextern.h.
4702 (emacs.o): Depend on frame.h and coding.h.
4703 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4704 (fileio.o): Depend on frame.h and commands.h. Don't depend
4705 explicitly on dispextern.h.
4706 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4707 composite.h.
4708 (fns.o): Don't depend on termhooks.h.
4709 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4710 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4711 coding.h, $(INTERVALS_H), window.h, xterm.h.
4712 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4713 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4714 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4715 fontset.h, ccl.h, and ftfont.h.
4716 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4717 (gtkutil.o): Depend on dispextern.h and composite.h.
4718 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4719 termhooks.h, and ccl.h.
4720 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4721 (intervals.o): Depend on systime.h and coding.h.
4722 (keyboard.o): Depend on composite.h and coding.h.
4723 (keymap.o): Depend on coding.h and frame.h.
4724 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4725 (macros.o): Depend on systime.h, coding.h, and composite.h.
4726 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4727 and atimer.h.
4728 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4729 dispextern.h explicitly.
0b5397c2
SM
4730 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4731 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4732 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4733 (regex.o): Don't depend on charset.h.
4734 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4735 (search.o): Don't depend explicitly on composite.h.
4736 (sound.o): Depend on atimer.h and systime.h.
4737 (syntax.o): Don't depend explicitly on composite.h.
4738 (sysdep.o): Depend on coding.h and composite.h.
4739 (term.o): Depend on xterm.h and buffer.h.
4740 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4741 (textprop.o): Don't depend on dispextern.h explicitly.
4742 (undo.o): Depend on dispextern.h.
4743 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4744 dispextern.h and composite.h explicitly.
4745 (xdisp.o): Depend on ccl.h.
4746 (xfaces.o): Depend on coding.h and ccl.h.
4747 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4748 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4749 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4750 ftfont.h.
4751 (xgselect.o): New dependency.
4752 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4753 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4754 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4755 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4756 (xsmfns.o): Depend on frame.h and dispextern.h.
4757 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4758 sysselect.h.
4759
7a6f7fea
AS
47602009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4761
4762 * font.c (Fclear_font_cache): Pass correct cache argument to
4763 font_clear_cache.
4764
f4c21026
AS
47652009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4766
4767 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4768 twice.
4769
f7ab0997
CY
47702009-12-15 Chong Yidong <cyd@stupidchicken.com>
4771
4772 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4773 calling file-remote-p. Reported by Jim Meyering.
4774
fa8e045a
MA
47752009-12-15 Michael Albinus <michael.albinus@gmx.de>
4776
4777 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4778 avoid compiler warnings. (Bug #5217)
fa8e045a 4779
a63dba42
KH
47802009-12-14 Kenichi Handa <handa@m17n.org>
4781
4782 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4783 in 8-bit encoding.
4784
5ce6e4f4 47852009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4786
4787 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4788 tooltip windows.
4789
223e5fc6
JD
47902009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4791
36acb2a7
JD
4792 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4793 Xatom_net_window_type.
4794
4795 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4796 Xatom_net_window_type.
4797
b8f00677
JD
4798 * xterm.c (my_log_handler): New function.
4799 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4800 so we can filter out buggy messages. (Bug #5120).
b8f00677 4801
e5f0bc9a
JD
4802 * xterm.c (xg_scroll_callback): Parameter list changed,
4803 use parameter GtkScrollType to determine scroll/line/page.
4804 Only allow dragging if a button < 4 is grabbed (bug #5177).
4805 (xg_end_scroll_callback): New function.
4806 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4807 xg_create_scroll_bar.
4808
4809 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4810 (scroll_end_callback): Remove.
4811 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4812 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4813 bug #5177.
e5f0bc9a
JD
4814 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4815 bug #5177.
4816
4817 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4818 (xg_create_scroll_bar): Add GCallback end_callback.
4819
223e5fc6
JD
4820 * xftfont.c (QClcdfilter): New variable.
4821 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4822 (syms_of_xftfont): Initialize QClcdfilter.
4823
3c055b77
JD
48242009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4825
4826 * xsettings.c (struct xsettings): Add member seen.
4827 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4828 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4829 (apply_xft_settings): Only update Xft settings with what member seen
4830 indicates as new.
4831
05fe33ff
EZ
48322009-12-12 Eli Zaretskii <eliz@gnu.org>
4833
c4cc8b9a 4834 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4835 (struct glyph): Use EMACS_INT for charpos.
4836 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4837 region_beg_charpos, region_end_charpos,
4838 redisplay_end_trigger_charpos, and also for
4839 iterator_stack_entry.end_charpos and
4840 iterator_stack_entry.stop_charpos.
4841
e8d7886a
JD
48422009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4843
5ce6e4f4 4844 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4845 (xg_create_scroll_bar): Call scroll_end_callback on button release
4846 event (bug #5177).
4847 (xg_event_is_for_scrollbar): != replaced with ==.
4848
d0db2ec8
KH
48492009-12-12 Kenichi Handa <handa@m17n.org>
4850
4851 * ftfont.c (struct ftfont_info): New member matrix.
4852 (ftfont_open): Setup xftfont_info->matrix.
4853 (MFLTFontFT): New member matrix.
4854 (FLOOR, CEIL, ROUND): New macros.
4855 (ftfont_get_metrics): Handle matrix transformation.
4856 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4857
4858 * xftfont.c (struct xftfont_info): New member matrix.
4859 (xftfont_open): Setup xftfont_info->matrix.
4860
48612009-12-10 Kenichi Handa <handa@m17n.org>
4862
4863 * xdisp.c (append_space_for_newline): Consider face-remapping.
4864
2cc7b62f
AS
48652009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4866
b87dd913
AS
4867 * xsettings.c: Include "keyboard.h".
4868
eba5eb94
AS
4869 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4870
2cc7b62f
AS
4871 Fix implicit function declarations.
4872 * cmds.c: Include "frame.h".
4873 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4874 * frame.h: Move declaration of delete_frame outside of
4875 HAVE_WINDOW_SYSTEM.
4876
a4ef73c8
CY
48772009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4878
4879 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4880
4881 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4882 GTK builds.
4883
944a300c
AS
48842009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4885
4886 * unexelf.c (unexec): Don't search for .data twice.
4887
022eef62
CY
48882009-12-05 Chong Yidong <cyd@stupidchicken.com>
4889
426ac949
CY
4890 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4891 if push failed.
4892 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4893 of push_display_prop (Bug#5000).
4894
022eef62
CY
4895 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4896 value of font_list_entities (Bug#5085).
4897
be95bee9
JB
48982009-12-04 Juanma Barranquero <lekktu@gmail.com>
4899
4900 Fix `string-to-number' to deal consistently with integers and floats.
4901 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4902 trailing characters, not just whitespace.
4903 (read1): Pass new arg 0 to keep old behavior.
4904 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4905 trailing chars, as it is already done for integers. Doc fixes.
4906 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4907
24c2d7ce
EZ
49082009-12-04 Eli Zaretskii <eliz@gnu.org>
4909
0b5397c2
SM
4910 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4911 Delete unused enumeration value.
24c2d7ce 4912
7e694795
EZ
49132009-12-03 Eli Zaretskii <eliz@gnu.org>
4914
4915 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4916
84b31826
SM
49172009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4918
4919 * process.c (Fmake_network_process): Fix up the tests for
4920 "connectionless socket", so they DTRT for seqpacket sockets as well.
4921
f00c449b
SM
49222009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4923
4924 * process.c (Qseqpacket): New symbol.
4925 (HAVE_SEQPACKET): New macro.
4926 (Fmake_network_process): Accept new :type `seqpacket'.
4927 (init_process): Add `seqpacket' feature when applicable.
4928 (syms_of_process): Initialize Qseqpacket.
4929
8096a0ff
YM
49302009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4931
4932 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4933 if entity is Qnil.
4934
3e0de07f
SM
49352009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4936
4937 * print.c (print_preprocess): Preprocess the key_and_value table of
4938 hashtables, even tho they're "hidden" (bug#5082).
4939
abeafb2a
JD
49402009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4941
4942 * frame.c (frame_make_pointer_invisible)
4943 (frame_make_pointer_visible): Declare f before statements.
4944
4bf47195
EZ
49452009-11-28 Eli Zaretskii <eliz@gnu.org>
4946
4947 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4948 omitted dependencies on lisp.h.
4949
c525b3f2
JD
49502009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4951
ece2d4ed
JD
4952 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4953 is NULL.
4954
4955 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4956
4957 * frame.c (frame_make_pointer_invisible)
3e0de07f 4958 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4959 frame.
4960
c525b3f2
JD
4961 * search.c (simple_search): Remove warning by making *p const.
4962
2f00e299
DN
49632009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4964
4965 * xdisp.c (power_letter): Remove duplicate const.
4966
084b049b
JD
49672009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4968
a1fadc6f
JD
4969 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4970
5ce6e4f4 4971 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4972 defaults (bug #5025).
4973
28259cac
SM
49742009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4975
4976 * insdel.c (adjust_markers_for_delete): Move it in the
4977 right direction! (bug#4803)
4978
e8e14166
YM
49792009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4980
4981 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4982
4983 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4984
86677b58
GM
49852009-11-24 Glenn Morris <rgm@gnu.org>
4986
4987 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4988
581e51e8
JD
49892009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4990
cfc86c7a
JD
4991 * Makefile.in: Must create deps for ecrt0.o in its rule.
4992
581e51e8
JD
4993 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4994 because that is what Gtk+ font dialog understands.
4995
4996 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4997 of Fcopy_sequence.
4998 (font_open_by_name): Put name given into QCname for font-object returned.
4999
5000 * frame.c (x_set_font): Save original font name as frame parameter
5001 font-parameter.
5002
5003 * xsettings.c (set_default_xft_settings): New function.
5004 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
5005 is found.
5006
8b264ecb
AS
50072009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5008
5009 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5010 searching backwards through multibyte buffer.
5011
872870b2
JD
50122009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5013
5014 * xterm.c: #include xgselect.h.
5015 (x_initialize): Call xgselect_initialize.
5016
5017 * xsettings.c (something_changedCB): C++ comments => C comments.
5018 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5019 does that now.
5020
5021 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5022 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5023 (scroll_bar_button_cb): Remove.
5ce6e4f4 5024 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5025 event.
5026 (xg_create_scroll_bar): Don't bind button-press-event and
5027 button-release-event.
5028
5029 * process.c: Include xgselect.h if defined (USE_GTK) ||
5030 defined (HAVE_GCONF).
5031 (wait_reading_process_output): Call xg_select for the same condition.
5032
5033 * xgselect.c (xg_select): New function to better integrate with
5034 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5035
5036 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5037
5038 * Makefile.in (XOBJ): Add xgselect.o.
5039
62a6e103
AS
50402009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5041
0b5397c2
SM
5042 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5043 Remove ignored second argument. All callers changed.
62a6e103
AS
5044 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5045 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5046 * xdisp.c (string_char_and_length): Likewise.
5047
b0ca0f33
DN
50482009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5049
5050 * xterm.c (x_new_font):
5051 * print.c (print_object):
5052 * cmds.c (Fself_insert_command): Move declarations before statements.
5053
dd5a6279
CY
50542009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5055
5056 * s/cygwin.h: Remove unneeded linker flags.
5057
4a8e097d
JD
50582009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5059
0d1d0d26
JD
5060 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5061
5062 * xsettings.h: Declare xsettings_get_system_font.
5063
5064 * xsettings.c (xsettings_get_system_font): New function.
5065 (init_gconf): No use initiating gconf unless we have Xft also.
5066 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5067 HAVE_GCONF.
5068
4a8e097d
JD
5069 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5070 add a blank entry so it doesn't collapse into nothing.
5071
8ab1650e
SM
50722009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5073
5074 * lread.c (Funintern): Comment out last change.
5075
82c602f0
RS
50762009-11-19 Richard Stallman <rms@gnu.org>
5077
5078 * lread.c (Funintern): Error if symbol is t or nil.
5079
87e32266
SM
50802009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5081
5082 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5083 representation of Lisp integers.
5084 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5085
1b9ac145
AS
50862009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5087
5088 * lisp.h: Remove declaration of Ffont_get_system_font.
5089 * xfns.c: Move include of "xsettings.h".
5090 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5091
dfb3c4c6
JD
50922009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5093
87e32266
SM
5094 * xsettings.c (something_changedCB, Ffont_get_system_font):
5095 Check use_system_font.
dfb3c4c6
JD
5096 (syms_of_xsettings): DEFVAR font-use-system-font.
5097
9370c1d8
AS
50982009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5099
25fe851a
AS
5100 * xfns.c (x_default_font_parameter): Remove dead assignment.
5101
9370c1d8
AS
5102 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5103
637fa988
JD
51042009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5105
87e32266 5106 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5107 not have FC_LCD_*. #define them if not there.
a6eb20d8 5108
87e32266 5109 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5110
637fa988
JD
5111 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5112
5113 * xterm.c (handle_one_xevent): Call xft_settings_event for
5114 ClientMessage, PropertyNotify and DestroyNotify.
5115 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5116 Call xsettings_initialize.
5117
5118 * xftfont.c (xftfont_fix_match): New function.
5119 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5120 Call xftfont_fix_match after XftFontMatch.
5121
5122 * xfont.c (xfont_driver): Initialize all members.
5123
87e32266
SM
5124 * xfns.c (x_default_font_parameter):
5125 Try font from Ffont_get_system_font.
637fa988
JD
5126 Do not get font from x_default_parameter if we got one from
5127 Ffont_get_system_font.
87e32266 5128 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5129
5130 * w32font.c (w32font_driver): Initialize all members.
5131
5132 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5133
5134 * lisp.h: Declare syms_of_xsettings.
5135
87e32266
SM
5136 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5137 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5138
5139 * ftfont.c (ftfont_filter_properties): New function.
5140
5141 * frame.c (x_set_font): Remove unused variable lval.
5142
87e32266 5143 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5144
5145 * font.c (font_put_extra): Don't return if val is nil, it means
5146 boolean option is off.
5147 (font_parse_fcname): Collect all extra properties in extra_props
5148 and call filter_properties for all drivers with extra_props and
5149 font as parameter.
87e32266
SM
5150 (font_open_entity): Do not use cache, it does not pick up new
5151 fontconfig settings like hinting.
637fa988
JD
5152 (font_load_for_lface): If spec had a name in it, store it in entity.
5153
a73f9c9d 5154 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5155
5156 * config.in: HAVE_GCONF is new.
5157
5158 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5159 xsettings.o is new.
5160
5a942932
KH
51612009-11-17 Kenichi Handa <handa@m17n.org>
5162
5163 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5164 back to the default font in case that no suitable font is found.
5165
b7c7a4d1
SM
51662009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5167
5168 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5169 Suggested by Chad Brown <yandros@mit.edu>.
5170 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5171
072f1e39
JD
51722009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5173
5174 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5175
5d1e70a2
AS
51762009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5177
87e32266 5178 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5179
a53cfbe5
JD
51802009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5181
473a99b7
JD
5182 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5183 has a parent.
5184
a53cfbe5 5185 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5186 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5187
5188 * config.in: Generated (AUTO_DEPEND).
5189
f04bb9b2
MA
51902009-11-13 Michael Albinus <michael.albinus@gmx.de>
5191
b7c7a4d1 5192 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5193 Vdbus_registered_functions_table, because it contains also
5194 properties. Fix docstring.
b7c7a4d1 5195 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5196
8f11f7ec
SM
51972009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5198
5199 * alloc.c (mark_object): Don't reprocess marked strings.
5200 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5201 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5202
8a605fe8
KH
52032009-11-13 Kenichi Handa <handa@m17n.org>
5204
8f11f7ec 5205 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5206 semantics of Vword_combining_categories.
5207 (Vword_combining_categories): Describe the slight change of the
5208 semantics.
5209
241c4680
EZ
52102009-11-13 Eli Zaretskii <eliz@gnu.org>
5211
5212 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5213
5214 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5215
5d58e44c
SM
52162009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5217
5218 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5219
5e13f9d3
JB
52202009-11-12 Juanma Barranquero <lekktu@gmail.com>
5221
5222 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5223
cf54c754
DR
52242009-11-11 David Reitter <david.reitter@gmail.com>
5225
5226 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5227 variables to fix 2009-11-09 change.
5228
a4ada374
DN
52292009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5230
91433552
DN
5231 * process.c (ifflag_def): Make flag_sym constant.
5232 (Fnetwork_interface_info): Use a constant pointer.
5233 (ifflag_table):
5234 * xfns.c (cursor_bits):
5235 * xdisp.c (power_letter):
5236 * termcap.c (speeds, esctab):
5237 * sysdep.c (baud_convert):
5238 * keyboard.c (lispy_accent_codes, modifier_names):
5239 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5240 (jpeg_format, tiff_format, gif_format, svg_format)
5241 (interlace_start, interlace_increment, gs_format):
5242 * gtkutil.c (separator_names):
5243 * fringe.c (swap_nibble):
5244 * fns.c (base64_value_to_char, base64_char_to_value):
5245 * fileio.c (make_temp_name_tbl):
5246 * coding.c (suffixes): Make constant.
5247
f4265f6c
DN
5248 * frame.c (make_initial_frame):
5249 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5250 build_string.
5251 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5252
04420943
DN
5253 * s/freebsd.h:
5254 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5255
0a5d24ae
DN
5256 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5257 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5258
a4ada374
DN
5259 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5260 * xterm.c (syms_of_xterm):
5261 * xfaces.c (syms_of_xfaces):
5262 * xdisp.c (syms_of_xdisp):
5263 * lread.c (syms_of_lread):
5264 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5265 build_string.
91433552 5266
a4ada374
DN
5267 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5268
af98fc7f
SM
52692009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5270
8ab1650e 5271 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5272
e90292a9
JD
52732009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5274
5275 * keyboard.h: Declare timer_check.
5276
5277 * keyboard.c (timer_check_2): New function that does what the old
5278 timer_check did.
5279 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5280 returned, i.e. don't return -1 with timers pending.
5281
5282 * process.c: Remove extern declaration of timer_check.
5283
5284 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5285 even if timer_check returned -1.
5286
af98fc7f
SM
5287 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5288 xg_dialog_data.
e90292a9
JD
5289 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5290 the event loop.
5291 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5292 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5293 Destroy the dialog after xg_dialog_run.
5294
045b83c0
SM
52952009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5296
5297 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5298
1fb99a3a
JD
52992009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5300
5301 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5302
04e452cb
JB
53032009-11-09 Juanma Barranquero <lekktu@gmail.com>
5304
5305 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5306
ef7417fd
SM
53072009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5308
5309 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5310 w32menu.c, and nsmenu.m.
5311 Simplify the obsolete case where position is nil.
5312 (cleanup_popup_menu): New function, moved from nsmenu.m.
5313 (struct skp): Remove slot `notreal'.
5314 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5315 adjust callers.
5316 (single_menu_item): Adjust call to parse_menu_item.
5317 (syms_of_menu): Defsubr x-popup-menu.
5318 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5319 (keymap_panes): Don't export any more.
5320 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5321 (xmenu_show): Declare.
5322 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5323 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5324 * keyboard.h (parse_menu_item): Update declaration.
5325 * xmenu.c (Fx_popup_menu): Remove.
5326 (syms_of_xmenu): Don't defsubr x-popup-menu.
5327 * w32menu.c (Fx_popup_menu): Remove.
5328 (syms_of_w32menu): Don't defsubr x-popup-menu.
5329 * nsmenu.m (cleanup_popup_menu): Remove.
5330 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5331 moved to menu.c's Fx_popup_menu.
5332 (Fx_popup_menu): Remove.
5333 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5334 menu_items (it's done in menu.c already).
5335
424d6179
SM
53362009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5337
5338 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5339 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5340
c0df13a6 53412009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5342
5343 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5344 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5345 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5346 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5347
2de9f71c
SM
53482009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5349
5350 Let integers use up 2 tags to give them one extra bit and thus double
5351 their range.
5352 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5353 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5354 New macros.
5355 (enum Lisp_Type): Use them. Give explicit values.
5356 (Lisp_Type_Limit): Remove.
5357 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5358 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5359 Pay attention to USE_2_TAGS_FOR_INTS.
5360 (INTEGERP): Use LISP_INT_TAG_P.
5361 * fns.c (internal_equal): Simplify the default case.
5362 (sxhash): Use case_Lisp_Int.
5363 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5364 any more.
5365 (Ftype_of): Use case_Lisp_Int.
5366 (store_symval_forwarding): Take into account the fact that Ints can
5367 now have more than one tag.
5368 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5369 buffer_slot_type_mismatch):
5370 * xfaces.c (face_attr_equal_p):
5371 * print.c (print_object):
5372 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5373 Use case_Lisp_Int.
5374
323637a2
EZ
53752009-11-06 Eli Zaretskii <eliz@gnu.org>
5376
7ac65b38
EZ
5377 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5378
323637a2
EZ
5379 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5380 warning.
5381
e511451f
JD
53822009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5383
5384 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5385
5386 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5387
5388 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5389 ButtonPressRelease and MotionNotify (bug#4870).
5390
5e2327cf
DN
53912009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5392
5adc433e
DN
5393 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5394
d67b4f80
DN
5395 * xterm.c (syms_of_xterm):
5396 * xselect.c (syms_of_xselect):
5397 * xmenu.c (syms_of_xmenu):
5398 * xfns.c (syms_of_xfns):
5399 * xfaces.c (syms_of_xfaces):
5400 * xdisp.c (syms_of_xdisp):
5401 * window.c (syms_of_window):
5402 * w32fns.c (syms_of_w32fns):
5403 * undo.c (syms_of_undo):
5404 * textprop.c (syms_of_textprop):
5405 * terminal.c (syms_of_terminal):
5406 * syntax.c (syms_of_syntax):
5407 * sound.c (syms_of_sound):
5408 * search.c (syms_of_search):
5409 * print.c (syms_of_print):
5410 * minibuf.c (syms_of_minibuf):
5411 * macros.c (syms_of_macros):
5412 * keymap.c (syms_of_keymap, initial_define_key)
5413 (initial_define_lispy_key):
5414 * keyboard.c (syms_of_keyboard):
5415 * insdel.c (syms_of_insdel):
5416 * image.c (syms_of_image):
5417 * fringe.c (syms_of_fringe):
5418 * frame.c (syms_of_frame):
5419 * fontset.c (syms_of_fontset):
5420 * fns.c (syms_of_fns):
5421 * fns.c (syms_of_fns):
5422 * fileio.c (syms_of_fileio):
5423 * fileio.c (syms_of_fileio):
5424 * eval.c (syms_of_eval):
5425 * doc.c (syms_of_doc):
5426 * dispnew.c (syms_of_display):
5427 * dired.c (syms_of_dired):
5428 * dbusbind.c (syms_of_dbusbind):
5429 * data.c (syms_of_data):
5430 * composite.c (syms_of_composite):
5431 * coding.c (syms_of_coding):
5432 * cmds.c (syms_of_cmds):
5433 * charset.c (define_charset_internal, syms_of_character):
5434 * ccl.c (syms_of_ccl):
5435 * category.c (syms_of_category, init_category_once):
5436 * casetab.c (syms_of_casetab):
5437 * casefiddle.c (syms_of_casefiddle):
5438 * callint.c (syms_of_callint):
5439 * bytecode.c (syms_of_bytecode):
5440 * buffer.c (keys_of_buffer, syms_of_buffer):
5441 * alloc.c (syms_of_alloc):
5442 * process.c (syms_of_process, init_process):
5443 * lread.c (syms_of_lread, init_obarray):
5444 * font.c (build_style_table):
5445 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5446 intern_c_string, calls to make_pure_string with
5447 make_pure_c_string. Use pure_cons instead of Fcons.
5448
5e2327cf
DN
5449 * process.c (socket_options): Make it const.
5450 (set_socket_option, init_process): Use a const pointer.
5451
5452 * lread.c (intern_c_string): New function.
5453 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5454 (defvar_int): Uset it. Make the name const char*.
5455
5456 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5457 (defvar_int): Update prototypes.
5458 (DEFUN, EXFUN): Support for prototypes is now required.
5459 (intern_c_string): New prototype.
5460 (struct Lisp_Subr): Make symbol_name constant.
5461
5462 * font.c (struct table_entry): Remove unused member. Make NAMES
5463 constant.
5464 (weight_table, slant_table, width_table): Make constant.
5465
5466 * emacs.c (struct standard_args): Make name and longname constant.
5467
5468 * character.h (DEFSYM): Use intern_c_string.
5469
a56eaaef
DN
54702009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5471
5472 * alloc.c (make_pure_c_string): New function.
5473
5474 * eval.c (Fautoload): Purecopy all arguments.
5475
f6a07420
KH
54762009-11-05 Kenichi Handa <handa@m17n.org>
5477
5478 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5479 the buffer in case of replace.
5480
5d28d4b1
DN
54812009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5482
5483 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5484
b349d111
SM
54852009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5486
d528b1ce
SM
5487 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5488 when applicable (bug#4851).
5489
b349d111
SM
5490 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5491 (P_): Support for prototypes is now required.
5492
c38eb027
CY
54932009-10-31 Chong Yidong <cyd@stupidchicken.com>
5494
5495 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5496 (Bug#4827).
5497
0405f8d9
EZ
54982009-10-30 Eli Zaretskii <eliz@gnu.org>
5499
d528b1ce 5500 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5501
ca0a881a
DN
55022009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5503
5504 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5505
d528b1ce
SM
5506 * lread.c (Fload): Purecopy the file name when building
5507 Vpreloaded_file_list.
ca0a881a 5508
47e0e0e4
JR
55092009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5510
5511 * w32fns.c (syms_of_w32fns): Change default value of
5512 w32-scroll-lock-modifier to nil. (Bug#2827)
5513
057bce6f
JB
55142009-10-26 Juanma Barranquero <lekktu@gmail.com>
5515
782a943e 5516 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5517
242bc74c
AS
55182009-10-26 Andreas Schwab <schwab@redhat.com>
5519
5520 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5521
522d013a
JB
55222009-10-26 Juanma Barranquero <lekktu@gmail.com>
5523
5524 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5525 For delta < 0, skip check that only makes sense when the mini-window
5526 is going to be enlarged. (Bug#4534)
5527
18060980
CY
55282009-10-25 Chong Yidong <cyd@stupidchicken.com>
5529
5530 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5531 string in menu maps (Bug#4471).
5532
fec8f0fe
CY
55332009-10-24 Chong Yidong <cyd@stupidchicken.com>
5534
5535 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5536 FRAME_NS_VIEW on terminal frames (Bug#4765).
5537
10d66ec0
AS
55382009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5539
1cae01f7
AS
5540 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5541 DBUS_TYPE_UINTnn separately to get proper sign extension.
5542
58a12889
AS
5543 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5544 can properly handle unsigned types.
d528b1ce 5545 (make_uid, make_gid): Remove.
58a12889 5546
987c9327
AS
5547 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5548 types again.
5549
522d013a 5550 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5551 (system_process_attributes): Likewise.
5552
905a9ed3
DN
55532009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5554
5555 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5556
5557 * eval.c (Fautoload): Purecopy the filename. Simplify.
5558
5559 * category.c (Fdefine_category): Purecopy docstring.
5560
a599b3e8
AS
55612009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5562
7b792fc9
AS
5563 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5564
a599b3e8
AS
5565 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5566
b35ac83e
CY
55672009-10-23 Chong Yidong <cyd@stupidchicken.com>
5568
5569 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5570 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5571 (Bug#4775).
5572
e8903e00
SM
55732009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5574
5575 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5576 (init_fileio_once):
5577 * lisp.h (init_fileio_once): Remove.
5578 * emacs.c (main): Don't call init_fileio_once.
5579
8f43cbf3
DN
55802009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5581
5582 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5583
26898943
AS
55842009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5585
5586 * doprnt.c (doprnt): Fix overflow check.
5587
5c646d5a
JD
55882009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5589
3132a7ea
JD
5590 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5591
5c646d5a
JD
5592 * xterm.h (x_wait_for_event): Declare it.
5593
5594 * xterm.c (pending_event_wait): New variable.
5595 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5596 see pending_event_wait.eventtype.
5597 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5598 (x_new_font): Call change_frame_size with new rows/columns before we
5599 try to resize the frame.
5c646d5a 5600 (x_wait_for_event): New function.
d528b1ce
SM
5601 (x_set_window_size_1): Don't change gravity unless change_gravity
5602 is set.
5c646d5a
JD
5603 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5604 don't change frame size, instead wait for the ConfigureNotify.
5605 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5606 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5607 (x_initialize): Initialize pending_event_wait.
5608
5609 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5610 size.
5611
5612 * widget.c (EmacsFrameSetValues): Add comment.
5613 (EmacsFrameSetCharSize): Just call x_set_window_size.
5614
5615 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5616 x_wait_for_event.
d528b1ce 5617 (flush_and_sync): Remove again.
5c646d5a
JD
5618 (xg_get_font_name): Suggest monospace if no previous font is known.
5619
e9c1637d
SM
56202009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5621
5622 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5623 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5624
5a72cccb
YM
56252009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5626
5627 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5628 processing pending events when event is filtered for input method.
ab04798f 5629 (Bug#3681)
5a72cccb 5630
2629aa37
JB
56312009-10-20 Juanma Barranquero <lekktu@gmail.com>
5632
5633 * fns.c: Add #endif accidentally removed in previous change.
5634
c3417a74
DN
56352009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5636
5637 * fns.c: Remove code for unsupported system: MAC_OS.
5638 * image.c: Likewise. Include setjmp.h.
5639
9685cef2
JD
56402009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5641
5642 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5643 pixel -1 (bug #4742).
5644
d7306fe6
DN
56452009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5646
019d2c4c
DN
5647 * process.c (create_pty): Remove conditionals for no longer
5648 supported systems: UNIPLUS and RTU.
5649
ee6bacd4
DN
5650 * xterm.c:
5651 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5652
d7306fe6
DN
5653 * alloc.c: Do not define struct catchtag.
5654 * eval.c: Move struct catchtag definition ...
5655 * lisp.h: ... here.
5656
5657 * image.c: Move png.h #include earlier to avoid warnings.
5658
5659 * xterm.c:
5660 * xsmfns.c:
5661 * xselect.c:
5662 * xrdb.c:
5663 * xmenu.c:
5664 * xftfont.c:
5665 * xfont.c:
5666 * xfns.c:
5667 * xfaces.c:
5668 * xdisp.c:
5669 * window.c:
5670 * widget.c:
5671 * w32xfns.c:
5672 * w32uniscribe.c:
5673 * w32term.c:
5674 * w32select.c:
5675 * w32reg.c:
5676 * w32proc.c:
5677 * w32menu.c:
5678 * w32inevt.c:
5679 * w32heap.c:
5680 * w32font.c:
5681 * w32fns.c:
5682 * w32console.c:
5683 * w32.c:
5684 * w16select.c:
5685 * vm-limit.c:
5686 * unexsol.c:
5687 * unexec.c:
5688 * unexcw.c:
5689 * unexaix.c:
5690 * undo.c:
5691 * tparam.c:
5692 * textprop.c:
5693 * terminfo.c:
5694 * terminal.c:
5695 * termcap.c:
5696 * term.c:
5697 * syntax.c:
5698 * sound.c:
5699 * sheap.c:
5700 * search.c:
5701 * scroll.c:
5702 * region-cache.c:
5703 * regex.c:
5704 * ralloc.c:
5705 * process.c:
5706 * print.c:
b024548b
DN
5707 * nsterm.m:
5708 * nsselect.m:
5709 * nsmenu.m:
5710 * nsimage.m:
5711 * nsfont.m:
5712 * nsfns.m:
d7306fe6
DN
5713 * msdos.c:
5714 * minibuf.c:
5715 * menu.c:
5716 * marker.c:
5717 * macros.c:
5718 * keymap.c:
5719 * keyboard.c:
5720 * intervals.c:
5721 * insdel.c:
5722 * indent.c:
5723 * gtkutil.c:
5724 * ftxfont.c:
5725 * ftfont.c:
5726 * fringe.c:
5727 * frame.c:
5728 * fontset.c:
5729 * font.c:
5730 * fns.c:
5731 * floatfns.c:
5732 * filelock.c:
5733 * fileio.c:
5734 * emacs.c:
5735 * editfns.c:
5736 * dosfns.c:
5737 * doprnt.c:
5738 * doc.c:
5739 * dispnew.c:
5740 * dired.c:
5741 * dbusbind.c:
5742 * data.c:
5743 * composite.c:
5744 * coding.c:
5745 * cmds.c:
5746 * cm.c:
5747 * chartab.c:
5748 * charset.c:
5749 * character.c:
5750 * ccl.c:
5751 * category.c:
5752 * casetab.c:
5753 * casefiddle.c:
5754 * callproc.c:
5755 * callint.c:
5756 * bytecode.c:
5757 * buffer.c:
5758 * atimer.c: Include setjmp.h. (Bug#4643)
5759
fd5f21e6
SM
57602009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5761
4c0354d7
SM
5762 Remove leftover table unibyte_to_multibyte_table.
5763 * character.c (unibyte_to_multibyte_table): Remove.
5764 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5765 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5766 * character.h (UNIBYTE_TO_CHAR): New macro.
5767 (MAKE_CHAR_MULTIBYTE): Use it.
5768 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5769 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5770 (message_dolog, set_message_1):
5771 * search.c (Freplace_match):
5772 * editfns.c (Fcompare_buffer_substrings):
5773 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5774 (concat):
5775 * insdel.c (copy_text, count_size_as_multibyte):
5776 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5777 * term.c (produce_glyphs):
5778 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5779 * regex.c (RE_CHAR_TO_MULTIBYTE):
5780 * cmds.c (internal_self_insert):
5781 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5782
fd5f21e6
SM
5783 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5784
4418646e
DN
57852009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5786
5787 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5788
35f5c1d2
JB
57892009-10-16 Juanma Barranquero <lekktu@gmail.com>
5790
5791 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5792
a0cd8f6b
AR
57932009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5794
5795 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5796 still needed under Tiger.
5797
5798 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5799
5800 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5801 __Apple__.
5802
5803 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5804
01a8d3fa
KH
58052009-10-15 Kenichi Handa <handa@m17n.org>
5806
5807 * print.c (print_object): Escape a symbol like "2E10" too.
5808
bf6c75c9 58092009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5810
5811 Cleanups and changes for 64-bit compile under Snow Leopard.
5812 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5813
5814 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5815
c5959062 5816 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5817 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5818 cast argument.
5819 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5820 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5821
5822 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5823
5824 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5825 where appropriate.
5826
5827 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5828 where appropriate.
6e4780c5
JB
5829 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5830 Use stringWithUTF8String.
bf6c75c9
AR
5831 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5832
6e4780c5
JB
5833 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5834 Add formal protocol mention to inheritance.
bf6c75c9
AR
5835 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5836
6e4780c5
JB
5837 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5838 Fix printf format.
bf6c75c9
AR
5839 (ns_query_color): Use CGFloat where appropriate.
5840 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5841 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5842 argument.
5843
3d87f118
AR
5844 * config.in (NS_HAVE_NSINTEGER): Drop.
5845
a95c8102
AR
5846 * dbusbind.c (dbus-method-return-internal)
5847 (dbus-method-error-internal): Use long format in printf, and cast
5848 argument.
5849
5850 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5851 in printf, and cast argument.
5852
6873acca 5853 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5854 cast argument.
5855
9ec6f100
GM
58562009-10-11 Glenn Morris <rgm@gnu.org>
5857
5858 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5859
5be883cd
JD
58602009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5861
5862 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5863 menu bar with a small width so it doesn't enlarge the frame.
5864
d7a39b51
JB
58652009-10-08 Juanma Barranquero <lekktu@gmail.com>
5866
5867 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5868
0c2b6f8e
GM
58692009-10-06 Glenn Morris <rgm@gnu.org>
5870
5871 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5872 SOME_MACHINE_LISP (this enters indirectly via DOC).
5873
e02131a2
EZ
58742009-10-05 Eli Zaretskii <eliz@gnu.org>
5875
5876 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5877
b4744254
EZ
58782009-10-04 Eli Zaretskii <eliz@gnu.org>
5879
5880 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5881 Doc fix.
5882
dbf64827
JB
58832009-10-03 Martin Rudalics <rudalics@gmx.at>
5884
5885 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5886
e9a0aef8
MA
58872009-10-02 Michael Albinus <michael.albinus@gmx.de>
5888
d528b1ce 5889 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5890 used anymore outside fileio.c.
5891
5892 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5893
64eb2b56
JB
58942009-10-01 Juanma Barranquero <lekktu@gmail.com>
5895
5896 * lisp.h (Qdelete_directory_internal):
5897 Declare, instead of Qdelete_directory.
5898
5899 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5900
9d28c33e
SM
59012009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5902
5903 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5904
9d8f3bd9
MA
59052009-10-01 Michael Albinus <michael.albinus@gmx.de>
5906
9d28c33e 5907 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5908 Fdelete_directory. It is not a command anymore. It has no file
5909 name handler.
5910
9694740b
SM
59112009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5912
5913 * xdisp.c (get_next_display_element): Use an enum in last change.
5914
748e162f
KH
59152009-09-28 Kenichi Handa <handa@m17n.org>
5916
9694740b 5917 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5918 unibyte_display_via_language_environment in handling
5919 Vnobreak_char_display.
5920
17efd58d
AR
59212009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5922
5923 * nsterm.h (ns_app_name): New extern variable.
5924
5925 * nsterm.m (ns_app_name): New variable.
5926 (ns_term_init): Set and use it.
5927 (ns_term_shutdown): Use it.
5928
5929 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5930 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5931
5932 * nsfns.m (ns_set_name_iconic, ns_set_name)
5933 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5934 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5935
9694740b
SM
5936 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5937 Remove double-casting in client_data comparison.
31c2d412 5938
3208cb35
YM
59392009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5940
5941 * keyboard.c (make_lispy_event): Remember last wheel direction.
5942 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5943
b7d552d6
GM
59442009-09-26 Glenn Morris <rgm@gnu.org>
5945
5946 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5947 internal.elc. Add term/pc-win.elc.
5948 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5949 term/x-win.elc.
5950 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5951 term/w32-win.elc.
5952 (NS_SUPPORT): New.
5953 (lisp): Add NS_SUPPORT.
5954 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5955
4ff670a8
DR
59562009-09-25 David Reitter <david.reitter@gmail.com>
5957
5958 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5959 on Mac OS X 10.6+ (bug#4513).
5960
feabfb6c
JB
59612009-09-24 Juanma Barranquero <lekktu@gmail.com>
5962
5963 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5964 some parts of Emacs code (like font selection) don't grok them.
5965 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5966
de59072a
AS
59672009-09-24 Andreas Schwab <schwab@redhat.com>
5968
5969 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5970
a489517b
JB
59712009-09-24 Juanma Barranquero <lekktu@gmail.com>
5972
5973 * dired.c (Fdirectory_files): Fix typo in docstring.
5974
0592970c
AR
59752009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5976
5977 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5978 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5979 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5980 under GNUstep.
5981 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5982
5983 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5984 glyph advancement.
5985
48e8a88b
AR
59862009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5987
5988 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5989 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5990
5991 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5992 deleted (bug #4492).
5993
e14f0a78
AR
5994 * nsfont.m (Vns_reg_to_script): New lisp variable.
5995 (syms_of_nsfont): Declare it.
5996 (ns_registry_to_script): New function.
5997 (ns_get_req_script): Call it.
5998 (ns_findfonts): Don't give up on non-unicode registry.
5999
6000 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
6001
5b650faa
SM
60022009-09-20 Tom Tromey <tromey@redhat.com>
6003
6004 * eval.c (find_handler_clause): Make stack-trace-on-error work in
6005 batch mode (bug#4228).
6006
a489517b 60072009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6008
6009 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6010 carefully. (Bug #4339)
0bae4e09 6011
fcfe06f3
CY
60122009-09-18 Chong Yidong <cyd@stupidchicken.com>
6013
d798ba87 6014 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6015
31642728
AR
60162009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6017
6018 * emacs.c (inhibit_x_resources): Update doc string for NS.
6019 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6020 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6021
6022 * nsterm.h (ns_no_defaults): Remove.
6023
6024 * nsterm.m (ns_no_defaults): Remove.
6025 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6026 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6027 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6028 don't update the NSWindow itself.
6029 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6030 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6031
6032 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6033 ns_use_qd_smoothing.
6034
6035 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6036 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6037 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6038 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6039
8686ac71
JB
60402009-09-17 Juanma Barranquero <lekktu@gmail.com>
6041
6042 * emacs.c (inhibit_x_resources): New variable.
6043 (main) [HAVE_NS]: Don't process --quick command line option.
6044 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6045
6046 * lisp.h (inhibit_x_resources): Declare it extern.
6047
6048 * w32reg.c (x_get_string_resource):
6049 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6050
e227ba05
EZ
60512009-09-17 Eli Zaretskii <eliz@gnu.org>
6052
362654a6
JB
6053 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6054 Add lisp/term/internal.elc.
e227ba05 6055
742d40e8
SM
60562009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6057
6058 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6059 (bug#4461).
6060
005bd5a2
DN
60612009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6062
6063 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6064
6065 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6066 (OBJECTS_MACHINE): Remove, unused.
6067
f9af9719
SM
60682009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6069
6070 * frame.c (x_get_resource_string): Remove unused.
6071
0307c7d2
JD
60722009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6073
6074 * xterm.c (x_new_font): Call change_frame_size before calling
6075 x_set_window_size, in case frame size won't change.
6076
6077 * frame.c (x_set_font): Remove dead code.
6078
428b13d6
SM
60792009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6080
6081 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6082
5766c380
SM
60832009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6084
6085 * lread.c (Fload): Don't output a message after loading an obsolete
6086 package any more (done in Lisp now).
6087
2fd0161b
CY
60882009-09-12 Chong Yidong <cyd@stupidchicken.com>
6089
6090 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6091
bc5e75b6
SM
60922009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6093
6094 * keymap.c (Fwhere_is_internal): Use nconc2.
6095
c31c985e
AM
60962009-09-11 Alan Mackenzie <acm@muc.de>
6097
6098 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6099 batch mode.
6100
78012bd2
AS
61012009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6102
6103 * xdisp.c (display_mode_element): Detect cycles.
6104
9d889332
SM
61052009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6106
6107 * keymap.c (where_is_internal): Don't erroneously return nil right after
6108 filling the cache.
6109 (where_is_internal_1): Fix up typo.
6110
7ab5d780
GM
61112009-09-11 Glenn Morris <rgm@gnu.org>
6112
6113 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6114 share a common doc-string.
6115
5238a749
SM
61162009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6117
66d77eda
SM
6118 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6119 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6120
5238a749
SM
6121 * keymap.c (QCadvertised_binding): New constant.
6122 (syms_of_keymap): Initialize it.
6123 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6124 if applicable.
6125
19f48442
SM
61262009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6127
50d4ba39
SM
6128 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6129 (parse_menu_item): Streamline since bindings are recomputed all the
6130 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6131 more and don't support lmenu's menu-alias any more either.
6132
a88a5372
SM
6133 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6134 (where_is_internal): Strip it down to only traverse the keymaps.
6135 Move the cache handling from Fwhere_is_internal to here.
6136 (Fwhere_is_internal): Move the handling of remapping and the choice of
6137 the best binding from where_is_internal to here.
6138 Unify the cached/noncached paths, so remapping is also handled
6139 correctly when the cache is used, and so the cache can be used to
6140 speed up remap-handling when applicable.
6141 Give preference to non-remapped bindings.
6142 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6143 non-remapped bindings.
6144 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6145 command remapping.
6146
19f48442
SM
6147 * xdisp.c (display_mode_element): Move list length limit from 50 to
6148 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6149
599498c3 61502009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6151
6152 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6153
f9b7b5ac
SM
61542009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6155
a53af587
JB
6156 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6157 (Bug#4334)
6158
f9b7b5ac
SM
6159 * keymap.c (where_is_internal): Filter out shadowed remappings.
6160 Assume that where_is_internal returns unshadowed bindings to simplify
6161 the code and get rid of the gotos. Use ASIZE.
6162
04f4b72d
JD
61632009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6164
4da146f2
JD
6165 * xterm.c (x_focus_changed): If we get a focusout and pointer
6166 is invisible, make it visible.
6167
04f4b72d
JD
6168 * xterm.h: Remove condition for declaration of
6169 x_*_window_to_frame.
6170
7cef7ce3
SM
61712009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6172
6173 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6174 initial terminal as well.
6175
a54fa5b7
JD
61762009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6177
6178 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6179 x_menubar_window_to_frame.
a54fa5b7 6180
50426a04 6181 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6182 (XTmouse_position): Do not return valid positions
6183 for clicks in the menubar and the toolbar for Gtk+.
6184
6185 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6186 if the widget for the event has the same top level as a frame,
6187 return the frame.
6188 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6189 internal windows, bug #4122.
6190 (x_non_menubar_window_to_frame): Remove.
6191
5a021dd0
GM
61922009-09-02 Glenn Morris <rgm@gnu.org>
6193
6194 * buffer.c (default-major-mode): Move most of the doc from here...
6195 (major-mode): ... to here.
6196
548fe2f3
NR
61972009-08-30 Nick Roberts <nickrob@snap.net.nz>
6198
6199 * process.c (wait_reading_process_output): Keep the descriptor
6200 when pty is used by a non-child process, e.g., in I/O buffer of
6201 GDB this allows inferior to be restarted.
6202
e0840eef
EZ
62032009-08-29 Eli Zaretskii <eliz@gnu.org>
6204
6205 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6206 both branches into one.
6207
82e98df4
SM
62082009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6209
6210 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6211 (main): Use enable-multibyte-characters rather than
6212 default-enable-multibyte-characters. Output a warning message when
6213 running a unibyte session.
6214
890617cb
YM
62152009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6216
6217 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6218 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6219 (copy_data_segment): Also copy __program_vars section.
6220 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6221 (dump_it) [LC_DYLD_INFO]: Use it.
6222
6223 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6224
e7adeadc
EZ
62252009-08-28 Eli Zaretskii <eliz@gnu.org>
6226
6227 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6228 $(SRC)/buildobj.h.
6229 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6230 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6231 $(SRC)/buildobj.h.
6232 (clean): Add buildobj.h.
6233
3ed8bbdc
TZ
62342009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6235
6236 * print.c (print_object): Set escapeflag to 1 when printing
6237 hashtable keys and values.
6238
155a6764
SM
62392009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6240
6241 * lread.c (read_integer): Use doubles (and potentially return a float
6242 number) as we do in string-to-number.
6243 (read1): Use strtol to read integers, signal errors on strtol's
6244 overflow and use floats if strtol's output is too large for
6245 Elisp integers.
6246
877610de
EZ
62472009-08-27 Eli Zaretskii <eliz@gnu.org>
6248
6249 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6250 (make-buildobj-SH): Fix last change.
6251 (SRC): Move to before where it's first used.
6252
ef73e7be
KH
62532009-08-27 Kenichi Handa <handa@m17n.org>
6254
550c8289
KH
6255 * process.c (send_process): Use encode_coding_object instead of
6256 encode_coding_string to perform eol-conversion even if the string
6257 is unibyte.
6258
60afa08d
KH
6259 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6260 character.
6261
ef73e7be 6262 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6263 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6264
7b3a82d7
DN
62652009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6266
5654bf63
DN
6267 * callproc.c (Fcall_process): Remove always true #if.
6268
7b3a82d7
DN
6269 * lisp.h: Replace #if 0 code for checking with text pointing to
6270 the --enable-checking configure flag.
6271
6272 * emacs.c (main): Mention the --enable-profiling configure flag
6273 instead of using CFLAGS.
6274
878bde49
KR
62752009-08-26 Ken Raeburn <raeburn@raeburn.org>
6276
6277 * Makefile.in (buildobj.h): New target.
6278 (doc.o): Depend on it.
6279 (temacs${EXEEXT}): Don't generate buildobj.lst.
6280 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6281 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6282 ($(BLD)/doc.$(O)): Depend on it.
6283 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6284 provided by Eli Zaretskii.)
6285 ($(TEMACS)): Don't generate buildobj.lst.
6286 * doc.c: Include buildobj.h.
6287 (buildobj): New static variable.
6288 (Fsnarf_documentation): Use it, instead of opening and reading
6289 buildobj.lst.
6290
1574224c
MA
62912009-08-25 Michael Albinus <michael.albinus@gmx.de>
6292
6293 * dbusbind.c (Fdbus_call_method)
6294 (Fdbus_call_method_asynchronously): Use English numeric format for
6295 timeout values in doc string.
6296
d9da2f45
KH
62972009-08-25 Kenichi Handa <handa@m17n.org>
6298
ef73e7be
KH
6299 * alloc.c (mark_char_table): New function.
6300 (mark_object): Use mark_char_table for a char-table.
6301
d9da2f45
KH
6302 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6303 (CHAR_TABLE_REF): Use it.
6304
c8edcc01
KR
63052009-08-23 Ken Raeburn <raeburn@raeburn.org>
6306
6307 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6308 before invoking the newly build emacs to check for load-path
6309 shadowing.
6310
7763401b
GM
63112009-08-22 Glenn Morris <rgm@gnu.org>
6312
6313 * Makefile.in (bootstrap_exe): New variable.
6314 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6315 Use ${bootstrap_exe}.
6316
729eadda
EZ
63172009-08-22 Eli Zaretskii <eliz@gnu.org>
6318
6319 * coding.h (encode_coding_string): Don't encode unibyte strings.
6320 (Bug#4047)
6321
eb4c6ace
MA
63222009-08-22 Michael Albinus <michael.albinus@gmx.de>
6323
6324 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6325
6326 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6327 intended as hotfix only.
6328 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6329
36e34d1b
AR
63302009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6331
6332 * nsterm.m (ns_get_color): Update documentation properly for last
6333 change, and clean up loose ends in the code left by it. Fix
6334 longstanding bug with 16-bit hex parsing, and add support for
6335 yet another X11 format (rgb:r/g/b) for compatibility.
6336 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6337 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6338
f983eb8a
SM
63392009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6340
6341 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6342
3f56d3c6
MA
63432009-08-20 Michael Albinus <michael.albinus@gmx.de>
6344
6345 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6346 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6347 (xd_initialize, xd_pending_messages): Check, whether
6348 $DBUS_SESSION_BUS_ADDRESS is set.
6349
fb641d68
YM
63502009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6351
6352 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6353
6354 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6355
cf59a374
GM
63562009-08-20 Glenn Morris <rgm@gnu.org>
6357
6358 * emacs.c (system-type): Doc fix.
6359
1373f3be
SM
63602009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6361
6362 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6363 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6364
058ed861
MA
63652009-08-18 Michael Albinus <michael.albinus@gmx.de>
6366
1373f3be
SM
6367 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6368 New functions.
058ed861
MA
6369 (xd_initialize): Revert change from 2009-08-16.
6370
563a866e 63712009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6372
6373 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6374 font-group vector, return nil.
5fc05db0 6375
e42bdf01
CY
63762009-08-17 Chong Yidong <cyd@stupidchicken.com>
6377
6378 * process.c (status_notify): Don't perform redisplay.
6379 (Fdelete_process, list_processes_1, process_send_signal):
6380 Expliticly perform redisplay.
6381 (wait_reading_process_output): Always check process status, but
6382 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6383
4230ab74
KR
63842009-08-17 Ken Raeburn <raeburn@raeburn.org>
6385
1373f3be 6386 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6387 (XFLOAT_INIT): New macro for storing a float value.
6388 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6389 * fns.c (sxhash): Copy out the value of a float in order to
6390 examine its bytes.
6391 * dbusbind.c (xd_append_arg): Likewise.
6392
4230ab74
KR
6393 * emacs.c (main): Don't call syms_of_data twice.
6394
a0645cdd
MA
63952009-08-16 Michael Albinus <michael.albinus@gmx.de>
6396
6397 * dbusbind.c (xd_initialize): Add connection file descriptor to
6398 input_wait_mask, in order to let select() detect, whether a new
6399 message has been arrived.
ca4f31ea 6400 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6401
485db0ba
MA
64022009-08-15 Michael Albinus <michael.albinus@gmx.de>
6403
1373f3be
SM
6404 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6405 New functions.
485db0ba
MA
6406
6407 * lisp.h (xd_pending_messages): Declare.
6408
6409 * keyboard.c (readable_events): Call xd_pending_messages.
6410
b5b98ff4
CY
64112009-08-15 Chong Yidong <cyd@stupidchicken.com>
6412
1373f3be 6413 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6414
f8354c6e
CY
6415 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6416
b5b98ff4
CY
6417 * buffer.c (set_buffer_internal_1)
6418 (swap_out_buffer_local_variables): Check for unbound local
6419 variables (Bug#4138).
6420
8b9fc636
EZ
64212009-08-14 Eli Zaretskii <eliz@gnu.org>
6422
6423 * process.c (create_pty): Fix last change.
6424
ce959360
CY
64252009-08-13 Chong Yidong <cyd@stupidchicken.com>
6426
6427 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6428 (xbm_load_image): Caller changed.
64b807c9 6429 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6430
c7baf7e9
NR
64312009-08-13 Nick Roberts <nickrob@snap.net.nz>
6432
6433 * process.c (create_pty): New function.
6434 (Fstart_process): Use it to allow Emacs to just associate a pty
6435 with the buffer. See associated change in gdb-mi.el.
6436 (list_processes_1): Deal with no program name.
6437 (start_process_unwind): Use pid == -2 to mean no process.
6438
1ac9108a
SM
64392009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6440
6441 * cmds.c (nonundocount): New global variable.
6442 (keys_of_cmds): Initialize it.
6443 (Fself_insert_command): Use it to combine upto 20 sequential chars
6444 into a single undo entry, just like the Qself_insert_command code in
6445 keyboard.c does.
6446 Call frame_make_pointer_invisible, also like the Qself_insert_command
6447 code in keyboard.c does.
6448 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6449 than its own local replacement for it.
6450
e267324c
KR
64512009-08-10 Ken Raeburn <raeburn@raeburn.org>
6452
1ac9108a 6453 * fns.c (concat): Don't re-set string length to its current value.
77437343 6454
1ac9108a
SM
6455 * coding.h (decode_coding_string, encode_coding_string):
6456 Use SBYTES macro.
f0bed503 6457
1ac9108a 6458 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6459 (doprnt): Merge with doprnt1, discarding lispstrings code.
6460 * lisp.h (doprnt_lisp): Don't declare.
6461
416e006d
JL
64622009-08-07 Juri Linkov <juri@jurta.org>
6463
6464 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6465
6f7d5780
DN
64662009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6467
6468 * print.c (syms_of_print): Undo previous change.
6469
f19a0f5b
TZ
64702009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6471
6472 * lread.c (read1, syms_of_lread): Read hashtables back from the
6473 readable format.
6474
6475 * print.c (print_preprocess, print_object): Print hashtables fully
6476 and readably.
6477 (syms_of_print): Provide 'hashtable-print-readable.
6478
b9173dc2
AR
64792009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6480
6481 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6482 no family set.
6483 (nsfont_open): Handle case when entity has no family.
6484
1586503c
AR
64852009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6486
6487 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6488 element, not a list, for match case.
6489
087048cd
KH
64902009-07-28 Kenichi Handa <handa@m17n.org>
6491
6492 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6493 rigidly.
6494
6495 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6496 font_parse_xlfd. Check font properties more rigidly.
6497
780c2506
DN
64982009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6499
31fd7c5c
JB
6500 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6501 bsd-common.h.
780c2506 6502
a8c0cc18
KH
65032009-07-27 Kenichi Handa <handa@m17n.org>
6504
6505 * xfaces.c (face_with_height): Call font_clear_prop.
6506
4fbe2306
CY
65072009-07-26 Chong Yidong <cyd@stupidchicken.com>
6508
111d9af3
CY
6509 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6510
6511 * xterm.c (x_term_init): Use Qx.
6512
4fbe2306
CY
6513 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6514
1ac9108a 6515 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6516 (ns_get_color): Revert 2009-07-16 change.
6517
beb0b7f9
EZ
65182009-07-25 Eli Zaretskii <eliz@gnu.org>
6519
6520 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6521 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6522
2baf5e76
KR
65232009-07-25 Ken Raeburn <raeburn@raeburn.org>
6524
1ac9108a
SM
6525 * coding.h (decode_coding_string, encode_coding_string):
6526 Use SCHARS macro.
8890e5f5 6527
2baf5e76 6528 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6529 (load_depth): Delete.
2baf5e76
KR
6530 (Qload_in_progress): New variable.
6531 (load_unwind): Don't reference load_depth or load_in_progress.
6532 (Fload): Likewise; specbind Qload_in_progress instead.
6533 (init_lread): Don't initialize load_depth.
6534 (syms_of_lread): Initialize and protect Qload_in_progress.
6535
1395c6f5
AR
65362009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6537
6538 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6539
4e2f36cf
AR
65402009-07-23 Yavor Doganov <yavor@gnu.org>
6541
6542 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6543
5dd9a6f7
AR
65442009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6545
6546 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6547 Bugs 3792, 3720, 2402.
6548 (ns_lookup_indexed_color): Check for bad index.
6549 (ns_index_color): Init unused slot to 0.
6550 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6551 Bug 3714, possibly 3082.
5dd9a6f7 6552
c902b920
JR
65532009-07-22 Jason Rumney <jasonr@gnu.org>
6554
1ac9108a
SM
6555 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6556 Position IME window at cursor (Bug#2570).
c902b920
JR
6557 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6558 (globals_of_w32fns): Dynamically load functions required above.
6559
6560 * w32term.c (w32_draw_window_cursor): Send message to reposition
6561 any IME window.
6562
090101cf
CY
65632009-07-21 Chong Yidong <cyd@stupidchicken.com>
6564
6565 * fileio.c: Revert 2009-07-16 changes.
6566 (Vauto_save_include_big_deletions): New variable.
6567 (Fdo_auto_save): Disable auto-save only if
6568 auto-save-include-big-deletions is nil.
6569
e6583e3d
CY
65702009-07-21 Chong Yidong <cyd@stupidchicken.com>
6571
6572 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6573 the overflowed pixels into account (Bug#3879).
6574
ece435a5
KR
65752009-07-21 Ken Raeburn <raeburn@raeburn.org>
6576
6577 * lread.c (load_depth): New variable.
6578 (Fload, load_unwind, init_lread): Set it to the load recursion
6579 depth; set load_in_progress as a simple boolean based on the
6580 current load_depth. (Bug#3892)
6581
40b2d973
AR
65822009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6583
6584 * nsfont.m (ns_has_attribute): Remove.
6585 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6586
10be7e0d
JL
65872009-07-18 Juri Linkov <juri@jurta.org>
6588
6589 * process.c (Fset_process_query_on_exit_flag): Mention killing
6590 a buffer in docstring.
6591
fa055055
KH
65922009-07-17 Kenichi Handa <handa@m17n.org>
6593
6594 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6595
042f7b69
YM
65962009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6597
6598 * nsfns.m (Fns_set_alpha): Remove function.
6599 (syms_of_nsfns): Don't defsubr it.
6600
6601 * nsterm.m (ns_get_color): Remove incompatible color formats.
6602 (ns_color_to_lisp): Generate #rrggbb color format string.
6603
4be941e3
RS
66042009-07-16 Richard Stallman <rms@gnu.org>
6605
6606 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6607 (Fset_buffer_auto_saved): Handle save_length = -2.
6608
4e6b227d
CY
66092009-07-16 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * xterm.c (Qx_gtk_map_stock): New var.
6612
6613 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6614 of calling intern each time.
6615
a1856973
YM
66162009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6617
6618 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6619 does tiling.
6620
6621 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6622
497e54d8
KH
66232009-07-14 Kenichi Handa <handa@m17n.org>
6624
72d36834
KH
6625 * font.c (font_vconcat_entity_vectors): New function.
6626 (struct font_sort_data): New member font_driver_preference.
6627 (font_compare): Check font_driver_preference.
6628 (font_sort_entities): The format of the first argument changed.
6629 (font_delete_unmatched): Likewise.
6630 (font_list_entities): The return type changed.
6631 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6632 (font_find_for_lface): Adjuste for the above changes.
6633 Don't suppress the checking of C even if the repertory supports it.
6634 (Flist_fonts): Adjust for the above changes.
72d36834 6635
1ac9108a
SM
6636 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6637 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6638 Reject a font who has adstyle property that is different from a
6639 langname derived from registry property.
1ac9108a 6640 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6641
b6046155
EZ
66422009-07-13 Eli Zaretskii <eliz@gnu.org>
6643
6644 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6645 local copy of dirfilename.
6646
fb6b6049
KH
66472009-07-13 Kenichi Handa <handa@m17n.org>
6648
e2402a5e
KH
6649 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6650 against max_char.
6651
fb6b6049
KH
6652 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6653 calling XSYMBOL (sym).
6654
65156807
EZ
66552009-07-11 Eli Zaretskii <eliz@gnu.org>
6656
1ac9108a
SM
6657 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6658 New function.
6659 (directory_files_internal) [WINDOWSNT]:
6660 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6661 the filesystem of the directory is fast or slow.
6662
6663 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6664 file name.
6665 (is_slow_fs): New function.
6666 (stat): Use it to determine whether to issue more system calls to
6667 get accurate file attributes, when w32-get-true-file-attributes is
6668 `local'.
6669
e0ab5fcf
JD
66702009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6671
6672 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6673 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6674 parameter font-parameter as default to the font dialog.
6675
784ceded
KH
66762009-07-10 Kenichi Handa <handa@m17n.org>
6677
6678 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6679
fb8edc0b
EZ
66802009-07-09 Eli Zaretskii <eliz@gnu.org>
6681
1ac9108a 6682 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6683
fb8edc0b
EZ
6684 * w32.c (stat): Treat UNC file names as residing on remote
6685 drives. (Bug#3542)
6686
635c75b1
KH
66872009-07-09 Kenichi Handa <handa@m17n.org>
6688
6689 * fontset.c (fontset_find_font): Fix previous change.
6690
c1d5ce94
MA
66912009-07-08 Michael Albinus <michael.albinus@gmx.de>
6692
6693 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6694 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6695 error flag.
6696
edb61b39
KH
66972009-07-08 Kenichi Handa <handa@m17n.org>
6698
374bf7e4
KH
6699 * fontset.c (fontset_find_font): Fix the logic of handling
6700 charset_matched.
6701 (font_for_char): Delete unused var.
6702 (generate_ascii_font_name): Delete it.
6703
edb61b39
KH
6704 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6705
6706 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6707 (encode_coding_sjis): Fix the code range check.
6708
0f3f018c
CY
67092009-07-07 Chong Yidong <cyd@stupidchicken.com>
6710
6711 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6712 (Fexpand_file_name): Copy string data properly (Bug#3772).
6713
fcaf6f3a
JD
67142009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6715
6716 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6717 first MapNotify.
6718
6809ca75
KH
67192009-07-07 Kenichi Handa <handa@m17n.org>
6720
6721 * character.h (unibyte_has_multibyte_table): Delete extern.
6722 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6723
6724 * charset.c (Fset_charset_priority): Update charset_unibyte.
6725 (syms_of_charset): Initialize charset_unibyte.
6726
6727 * character.c (unibyte_has_multibyte_table): Delete it.
6728 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6729 charset_unibyte.
6730 (multibyte_char_to_unibyte_safe): Likewise.
6731 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6732
1ac9108a 6733 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6734 (x_produce_glyphs): Likewise.
6735
6736 * .gdbinit (xcharset): Fix the treating $arg0.
6737
ad9e2d54
EZ
67382009-07-04 Eli Zaretskii <eliz@gnu.org>
6739
6740 Emulation of `getloadavg' on MS-Windows.
50426a04 6741 * w32.c: Include float.h.
ad9e2d54
EZ
6742 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6743 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6744 (get_native_system_info, get_system_times): New functions.
6745 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6746 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6747 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6748 g_b_init_get_system_times, and num_of_processors.
6749
0a3472c7
JR
67502009-07-03 Jason Rumney <jasonr@gnu.org>
6751
6752 * w32term.c (w32_initialize): Use standard types.
6753
80904120
EZ
67542009-07-03 Eli Zaretskii <eliz@gnu.org>
6755
6756 * dired.c (Ffile_attributes): Decode user and group names by the
6757 locale's encoding. (Bug#3443)
6758
6978862d
DN
67592009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6760
f8d23104
DN
6761 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6762 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6763
6764 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6765
6766 * term.c (init_tty): Remove spurious #ifdef.
6767
6978862d
DN
6768 * m/mips.h: Mention this file is also used for netbsd.
6769 * m/pmax.h: Remove file.
6770
e044e4fc
JD
67712009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6772
6773 * xterm.h (struct x_display_info): Add invisible_cursor.
6774 (struct x_output): Add current_cursor.
6775
6776 * xterm.c (XTtoggle_invisible_pointer): New function.
6777 (x_define_frame_cursor): Don't define cursor if invisible or the
6778 same as before. Set current_cursor.
6779 (x_create_terminal): Set toggle_invisible_pointer_hook.
6780
6781 * xfns.c (make_invisible_cursor): New function.
6782 (x_set_mouse_color): Call make_invisible_cursor.
6783 Set current_cursor.
6784 (x_window): Set current_cursor.
6785
6786 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6787
6788 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6789 inserting a character.
6790 (read_avail_input): Call frame_make_pointer_visible.
6791
6792 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6793 (frame_make_pointer_invisible, frame_make_pointer_visible):
6794 New functions.
e044e4fc
JD
6795 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6796
6797 * frame.h: Declare frame_make_pointer_invisible and
6798 frame_make_pointer_visible.
6799 (struct frame): Add pointer_invisible.
6800
574c8efa
JD
68012009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6802
7b507248
JD
6803 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6804 frame isn't visible.
6805 (xg_frame_resized): If width/height is -1, get size of window
6806 from X server.
6807
6808 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6809 for MapNotify.
6810
835bdaa7 6811 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6812 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6813 (flush_and_sync): Reintroduce.
574c8efa 6814
3f1c6666 68152009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6816
31fd7c5c 6817 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6818
6819 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6820 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6821
6822 * frame.h: Declare Qsticky.
6823
cad9ef74
JD
6824 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6825
6826 * nsfns.m (ns_frame_parm_handlers): Ditto.
6827
6828 * frame.c: Declare Qsticky.
6829 (frame_parms): Add sticky.
6830
6831 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6832
6833 * xterm.h: Declare x_set_sticky.
6834
6835 * xterm.c (x_set_sticky): New function.
6836
69b16610
JD
6837 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6838 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6839 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6840
6841 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6842
6843 * frame.c: Qmaximized is new.
6844 (x_set_frame_parameters): Do not handle fullscreen specially.
6845 Only set width and height if explicitly set.
6846 (x_set_fullscreen): Handle Qmaximized.
6847 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6848 (syms_of_frame): Initialize Qmaximized.
6849
1ac9108a
SM
6850 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6851 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6852
6853 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6854 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6855 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6856 set gravity to NorthWestGravity when USE_GTK.
6857 (set_wm_state): New function.
31fd7c5c 6858 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6859 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6860 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6861 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6862 to x_real_positions and x_fullscreen_adjust.
6863
6864 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6865 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6866 flush_and_sync.
6867 (xg_height_changed): New function.
6868 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6869 and gtk_window_set_policy. Set frame gravity after parsing the
6870 geometry string.
3f1c6666
JD
6871 (xg_update_frame_menubar, free_frame_menubar)
6872 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6873 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6874 Remove calls to xg_frame_set_char_size.
6875
fd503d99
KH
68762009-07-01 Kenichi Handa <handa@m17n.org>
6877
6878 * keyboard.c (decode_keyboard_code): New function.
6879 (tty_read_avail_input): Decode the input bytes if necessary.
6880
1ac9108a
SM
6881 * coding.c (setup_coding_system):
6882 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6883 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6884 use Qno_conversion.
6885
24ed93fb
YM
68862009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6887
6888 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6889
99061dfc
CY
68902009-06-30 Chong Yidong <cyd@stupidchicken.com>
6891
1ac9108a 6892 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6893
ff90fbde
JR
68942009-06-30 Jason Rumney <jasonr@gnu.org>
6895
6896 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6897 is already loaded.
6898 Set user model ID if supported (bug#1849).
6899
5f445726
JM
69002009-06-29 Jim Meyering <meyering@redhat.com>
6901
6902 Remove useless if-before-xfree test.
6903 * nsfont.m (nsfont_close): Remove useless test.
6904 * term.c (delete_tty): Likewise.
6905 * w32.c (system_process_attributes): Likewise.
6906 * w32font.c (w32font_close): Likewise.
6907 * xfaces.c (x_free_gc): Likewise.
6908 * xselect.c (buffer): Likewise.
6909
b9607587
AS
69102009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6911
6912 * process.c (send_process): Keep decoded string in a local
6913 variable and protect it from GC. (Bug#3521)
6914
89ba96f4
EZ
69152009-06-28 Eli Zaretskii <eliz@gnu.org>
6916
6917 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6918 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6919
098a1589
CY
69202009-06-28 Chong Yidong <cyd@stupidchicken.com>
6921
485422be
CY
6922 * xdisp.c (start_display, handle_face_prop)
6923 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6924 (redisplay_window, try_window_id, produce_image_glyph):
6925 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6926
098a1589
CY
6927 * xterm.c (x_update_window_begin, x_new_focus_frame)
6928 (x_scroll_bar_handle_click, handle_one_xevent)
6929 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6930 (x_make_frame_visible, x_make_frame_invisible)
6931 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6932 code chunks that are now obsolete.
6933
78c38319
MA
69342009-06-28 Michael Albinus <michael.albinus@gmx.de>
6935
6936 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6937 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6938 for hours, when optimzation is enabled.
6939 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6940 (xd_read_message): Make them static.
6941
4189ed40
CY
69422009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6943
6944 * term.c (turn_on_face): Allow simultaneously bold and dim
6945 terminal faces (Bug#3530).
6946
cd9b5e16
CY
69472009-06-27 Chong Yidong <cyd@stupidchicken.com>
6948
4e23bedb
CY
6949 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6950
cd9b5e16
CY
6951 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6952 truncation glyphs (Bug#3686).
6953
07cc3c35
GM
69542009-06-27 Glenn Morris <rgm@gnu.org>
6955
6956 * m/pmax.h: Restore file, with only netbsd portions.
6957
31fd7c5c 69582009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6959
cd9b5e16 6960 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6961
42d4a64f
KH
69622009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6963
6964 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6965 the arg FORCE_SYMBOL.
6966
930fe55b 69672009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6968
6969 * fontset.c (fontset_find_font): When a usable rfont_def is found
6970 in a fallback font-group, make it the first element of the group.
6971
57ebc3fd
CY
69722009-06-24 Chong Yidong <cyd@stupidchicken.com>
6973
6974 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6975
f084f942
KH
69762009-06-24 Kenichi Handa <handa@m17n.org>
6977
6978 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6979 set for C.
6980 (fontset_font): Record the availability of a font for C both in
6981 the realized fontsets of the current one and the default one.
6982
2f686c87
DN
69832009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6984
6985 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6986 conditional, it is always defined on AIX.
6987
666e158e
MB
69882009-06-23 Miles Bader <miles@gnu.org>
6989
6990 * window.c (Vrecenter_redisplay): New variable.
6991 (syms_of_window): Initialize it.
6992 (Qtty): New extern declaration.
6993 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6994
c6da7cd2
JM
69952009-06-23 Jim Meyering <meyering@redhat.com>
6996
1ac9108a
SM
6997 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6998 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6999 pointer dereferences are guaranteed to be valid.
c6da7cd2 7000
678dca3d
KH
70012009-06-23 Kenichi Handa <handa@m17n.org>
7002
74d75424
KH
7003 * emacs.c (main): Call init_font ().
7004
7005 * font.h (Vfont_log): Extern it.
7006 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7007
7008 * font.c (font_sort_entities, font_list_entities)
7009 (font_matching_entity, font_open_entity)
7010 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7011 (Vfont_log): Delete static.
7012 (font_log_env_checked): Delete this variable.
7013 (font_add_log): Don't check font_log_env_checked.
7014 (font_deferred_log): Check Vfont_log.
7015 (init_font): New function.
7016
678dca3d
KH
7017 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7018
7019 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7020
7021 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7022
7023 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7024
7025 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7026 (face_for_char): Don't call font_deferred_log here.
7027 (font_for_char): Likewise.
7028
8a668709
CY
70292009-06-22 Chong Yidong <cyd@stupidchicken.com>
7030
9a01ee33
CY
7031 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7032 rather than its background_width for drawing the overline and
7033 underline (Bug#489).
7034
7035 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7036 rather than its background_width for drawing the overline and
7037 underline (Bug#489).
ec7c9926
CY
7038 (xg_default_icon_file): New variable.
7039 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7040 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7041
8a668709
CY
7042 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7043 (load_overlay_strings): Remove externs.
7044 (fast_find_position): Function deleted.
7045 (mouse_face_from_buffer_pos): New function, based on
7046 fast_find_position. Correctly handle before-strings,
7047 display-strings, and after-strings (Bug#1220).
7048 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7049
4d4c02d8
CY
70502009-06-21 Chong Yidong <cyd@stupidchicken.com>
7051
1ac9108a 7052 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7053 (move_it_in_display_line_to, move_it_in_display_line_to)
7054 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7055
70243478
CY
70562009-06-21 Chong Yidong <cyd@stupidchicken.com>
7057
7058 * Branch for 23.1.
7059
13087e59
JR
70602009-06-21 Jason Rumney <jasonr@gnu.org>
7061
7062 * w32term.c (keyboard_codepage): New static variable.
7063 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7064 (w32_read_socket) [WM_CHAR]: Use it to decode character
7065 input (bug#3237).
7066 (w32_initialize): Initialize it.
7067 (codepage_for_locale): New function.
7068
4735b74e
KR
70692009-06-20 Ken Raeburn <raeburn@raeburn.org>
7070
7071 * process.c (status_message): Pass Faset index argument as a lisp
7072 object, so as to work with USE_LISP_UNION_TYPE.
7073
0e727afa
YM
70742009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7075
7076 * coding.c (Ffind_coding_systems_region_internal):
7077 Cache checked characters.
7078
cf299835
KH
70792009-06-18 Kenichi Handa <handa@m17n.org>
7080
1ac9108a 7081 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7082
90f20d94
AS
70832009-06-18 Andreas Schwab <aschwab@redhat.com>
7084
7085 * xdisp.c (redisplay_internal): Check that the frame is still
7086 live after redisplay of its windows.
7087 (redisplay_windows): Check that the window is still live.
7088
7f1faf1c
KH
70892009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7090
7091 * coding.c (detect_coding_utf_16): Fix previous change.
7092
cc13543e
KH
70932009-06-16 Kenichi Handa <handa@m17n.org>
7094
7095 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7096 UTF-16 by checking the dispersion of Eth and Oth bytes.
7097
977b85f4
AS
70982009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7099
7100 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7101
66bd43d1
KH
71022009-06-15 Kenichi Handa <handa@m17n.org>
7103
7104 * process.c (status_message): Fix previous change. Be sure to
7105 decode a localized string.
7106
cb5ca9c5
YM
71072009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7108
7109 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7110 add comment explaining why.
7111
ec7709ba 71122009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7113
ec7709ba 7114 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7115
4b7f335c
AR
71162009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7117
7118 * nsfont.m (ns_attribute_value): Remove.
7119 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7120 (ns_has_attribute): Shrink the normal range.
7121 (ns_findfonts): Don't worry about requested spec in determining
7122 need for synthItal.
e41820ee 7123 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7124
73b26103
SZ
71252009-06-14 Seiji Zenitani <zenitani@mac.com>
7126
7127 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7128
5753e4da
KH
71292009-06-11 Kenichi Handa <handa@m17n.org>
7130
7131 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7132 overhang for the static composition case.
7133
3561b671
KH
71342009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7135
5753e4da
KH
7136 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7137 overhang for the automatic composition case.
7138
3561b671
KH
7139 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7140 composition case.
7141
852bbd41
CY
71422009-06-10 Chong Yidong <cyd@stupidchicken.com>
7143
7144 * xdisp.c (get_next_display_element): When handling wrap-prefix
7145 and line-prefix, treat \n as a control character (bug#3502).
7146
9903d1e6
KH
71472009-06-10 Kenichi Handa <handa@m17n.org>
7148
7149 * font.c (font_parse_family_registry): Fix for one-char foundry.
7150 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7151
0bcbaaaa
CY
71522009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7153
7154 * process.c (status_message): Fix handling of multibyte signal
7155 string (Bug#3499).
7156
40aa3f13
JM
71572009-06-09 Jim Meyering <meyering@redhat.com>
7158
1f80c7e2
CY
7159 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7160 color name is missing.
40aa3f13 7161
72d51285
KH
71622009-06-09 Kenichi Handa <handa@m17n.org>
7163
7164 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7165 FROM-CODE and TO-CODE are codepoints of CHARSET.
7166
c1d04d84
AR
71672009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7168
7169 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7170
71712009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7172
7173 Changes to support :script/:lang/:otf in NS font driver.
7174 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7175 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7176 indicate not part of font driver interface, and change callers.
7177 (ns_get_family): Remove pointless null check.
7178 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7179 ns_spec_to_descriptor, ns_descriptor_to_entity.
7180 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7181 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7182 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7183 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7184 (ns_get_req_script, ns_accumulate_script_ranges)
7185 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7186 New functions.
7187 (nsfont_list, nsfont_match): Use ns_findfonts.
7188 (nsfont_open): Use font descriptor instead of traits.
7189 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7190 (dump_glyphstring): Rename to ns_dump_glyphstring.
7191
c7eb9816
AR
7192 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7193
c1d04d84
AR
7194 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7195
7196 * fontset.c (fontset_from_font): Remove NS-specific code.
7197
ec7709ba 71982009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7199
7200 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7201 nonactive windows.
7202
31fd7c5c 72032009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7204
1ac9108a 7205 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7206
68852c13 72072009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7208
7209 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7210
6756cd1d
CY
72112009-06-07 Chong Yidong <cyd@stupidchicken.com>
7212
7213 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7214 account for the overflowing of newlines into the last glyph on the
7215 display line (Bug#3482).
7216
28bf482a
DR
72172009-06-05 David Reitter <david.reitter@gmail.com>
7218
ec7709ba
JB
7219 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7220 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7221 Fns_selection_exists_p, Fns_selection_owner_p.
7222
fdb55376
JR
72232009-06-03 Jason Rumney <jasonr@gnu.org>
7224
7225 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7226 available. (Bug#3379)
7227
05129fbe
KH
72282009-05-29 Kenichi Handa <handa@m17n.org>
7229
1ac9108a
SM
7230 * coding.c (get_translation_table):
7231 Check Venable_character_translation.
05129fbe 7232
ec7709ba 72332009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7234
ec7709ba
JB
7235 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7236 (x_make_frame_visible): Move frame to front rather than calling
15891144 7237 ns_raise_frame().
ec7709ba 7238 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7239 isn't key window.
ec7709ba 7240 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7241 drawRect may be called by NSView even if the frame is hidden.
7242
ec7709ba
JB
7243 * nsfns.m (Fx_create_frame): Follow other ports in
7244 determining visibility; default to t. Ensure async_visible is set.
15891144 7245
21f73755
EZ
72462009-05-23 Eli Zaretskii <eliz@gnu.org>
7247
7248 * dired.c (Ffile_attributes): Doc fix.
7249
34001e41
CY
72502009-05-22 Chong Yidong <cyd@stupidchicken.com>
7251
7252 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7253
46306a17
SM
72542009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7255
7256 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7257 and xfont_scratch_props.
7258 (syms_of_xfont): Do it here instead.
7259 (xfont_find_ccl_program): Delete, unused.
7260 (xfont_open): Delete unused var `i'.
7261
ef6e0694
KH
72622009-05-21 Kenichi Handa <handa@m17n.org>
7263
7264 * fontset.c (Qlatin): Don't make it static.
7265
46306a17
SM
7266 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7267 New functions.
ef6e0694
KH
7268 (xfont_scripts_cache, xfont_scratch_props): New variables.
7269 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7270 (xfont_list_pattern): Argument changed. Callers changed.
7271 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7272 (xfont_list): Don't reject a font spec with :script property.
7273 (xfont_has_char): Fix setting of encoding.
7274 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7275 xfont_scratch_props.
7276
72772009-05-19 Kenichi Handa <handa@m17n.org>
7278
46306a17 7279 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7280 Callers changed.
7281
72822009-05-18 Kenichi Handa <handa@m17n.org>
7283
7284 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7285
ac71ced7
SM
72862009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7287
7288 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7289 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7290
1c6d1051
YM
72912009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7292
7293 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7294 (x_delete_terminal): Dissociate resource database from display and
7295 then call XrmDestroyDatabase before closing display.
7296
9b9b779c
AR
72972009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7298
7299 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7300 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7301 whether selected frame is viable before raising it (based on patch
7302 by David Reitter), and improve commentary.
7303 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7304
cccd42d5
KH
73052009-05-15 Kenichi Handa <handa@m17n.org>
7306
7307 * font.c (Ffont_spec): Check arguments.
7308
337fbd17
CY
73092009-05-14 Chong Yidong <cyd@stupidchicken.com>
7310
7311 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7312 weight when testing attributes (Bug#3282).
7313
47a6002f
JD
73142009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7315
7316 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7317 what we expect to get in the next ConfigureNotify event.
7318
9cb363db
YM
7319 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7320 before Xft one (Bug#1696).
7321
b9126609
CY
73222009-05-07 David Reitter <david.reitter@gmail.com>
7323
7324 * nsfns.m (Fx_display_planes): Compute bitplanes using
7325 NSBitsPerPixelFromDepth (Bug#3207).
7326
27a69fd9
CY
73272009-05-10 Chong Yidong <cyd@stupidchicken.com>
7328
7329 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7330
00f37552
TTN
73312009-05-10 Ulrich Mueller <ulm@gentoo.org>
7332
7333 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7334
2d82a920
DR
73352009-05-07 David Reitter <david.reitter@gmail.com>
7336
ec7709ba
JB
7337 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7338 Respect mouse face background.
2d82a920 7339
46b0d52d
DR
73402009-05-07 David Reitter <david.reitter@gmail.com>
7341
ec7709ba
JB
7342 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7343 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7344 in ns_update_begin and ns_update_end.
7345
ce1b23bb
SM
73462009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7347
5996e1b7
SM
7348 * nsfns.m (ns_get_screen): Rewrite.
7349 Don't presume selected-frame is of type `ns'.
7350
ba98e3a0
SM
7351 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7352 all drivers.
7353
ce1b23bb
SM
7354 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7355
bcda200f
YM
73562009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7357
7358 * keyboard.h (add_user_signal): Fix typo in extern.
7359
7360 * lisp.h (add_user_signal): Remove extern.
7361
7362 * unexelf.c (unexec): Consider a section to precede the .bss section
7363 if its addresses overlap that of .bss.
7364 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7365 instead of dumping process.
7366
864660a2
SM
73672009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7368
7369 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7370
50da4e56
SM
73712009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7372
7373 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7374
51520a1a
DN
73752009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7376
7377 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7378 any statements.
7379
409ea3a1
AS
73802009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7381
59c4c60f
AS
7382 * process.c (read_process_output): Make sure the current buffer is
7383 always restored.
7384
409ea3a1
AS
7385 * coding.c (record_conversion_result): Don't modify
7386 Vlast_code_conversion_error for successful result.
7387 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7388
56f00ed2
KH
73892009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7390
7391 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7392 (load_charset_map): Remove unnecessary code.
56f00ed2 7393
4491c9d2
DR
73942009-04-30 David Reitter <david.reitter@gmail.com>
7395
35f5b128 7396 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7397 through f24.
7398
6970f632
CY
73992009-04-30 Chong Yidong <cyd@stupidchicken.com>
7400
7401 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7402
7403 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7404 face_at_buffer_position.
7405 (face_before_or_after_it_pos, get_next_display_element)
7406 (note_mouse_highlight): Update face_at_buffer_position call.
7407
7408 * term.c (term_mouse_highlight):
7409 * msdos.c (IT_note_mouse_highlight):
7410 * fontset.c (Finternal_char_font):
35f5b128 7411 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7412
7413 * dispextern.h (face_at_buffer_position): Update prototype.
7414
0c616f63
KH
74152009-04-30 Kenichi Handa <handa@m17n.org>
7416
35f5b128 7417 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7418
ad3aaf33
AS
74192009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7420
7421 * callproc.c (Fcall_process): Fix GC protection. Make sure
7422 current buffer is always restored.
7423
c3c963a0
YM
74242009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7425
7426 * atimer.c (init_atimer): Also clear stopped_atimers.
7427
7428 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7429
7e3386cb
YM
7430 * process.c (create_process): Clean up merger residues of
7431 2008-07-17 change.
7432
91f68422
CY
74332009-04-29 Ulrich Mueller <ulm@gentoo.org>
7434
7435 * lread.c (Vread_circle): New variable.
7436 (read1): Disable recursive read if Vread_circle is nil.
7437
24b34550
KH
74382009-04-29 Kenichi Handa <handa@m17n.org>
7439
7440 * fontset.h (set_default_ascii_font): Delete extern.
7441
7442 * fontset.c (set_default_ascii_font): Delete this unused function.
7443
7444 * frame.c (x_set_font): When ARG is a font-object, check if the
7445 font-object matches with the ASCII font-spec of the frame's
9c358bda 7446 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7447
77bf07e1
AS
74482009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7449
7450 * fns.c (Flocale_info): Protect vector from GC during decoding.
7451
7452 * process.c (Fstart_process): Protect argv strings from GC during
7453 encoding.
7454
2c55aacf
AS
74552009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7456
7457 * sysdep.c: Include <ctype.h>.
7458
b892d3c9
DR
74592009-04-27 David Reitter <david.reitter@gmail.com>
7460
35f5b128 7461 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7462 Remove commented-out code.
7463
9d0644c4
JB
74642009-04-26 Johan Bockgård <bojohan@gnu.org>
7465
7466 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7467
b7053016
JR
74682009-04-25 Jason Rumney <jasonr@gnu.org>
7469
7470 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7471
4e8231f3
YM
74722009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7473
7474 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7475 Swap bytes in short integer if fringe bitmap width > 8.
7476
493dcf2c
KH
74772009-04-23 Kenichi Handa <handa@m17n.org>
7478
7479 * xfaces.c (Fx_list_fonts): If a font size is specified in
7480 PATTERN, set it in returned scalable fonts.
7481
401e9e57
CY
74822009-04-22 Chong Yidong <cyd@stupidchicken.com>
7483
708e05dc
CY
7484 * keyboard.c (Fset_input_meta_mode): Doc fix.
7485
7486 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7487
1ac9108a 7488 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7489
7490 * coding.c (Fterminal_coding_system): Doc fix.
7491
7492 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7493 (Fx_display_pixel_height, Fx_display_planes)
7494 (Fx_display_color_cells, Fx_server_max_request_size)
7495 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7496 (Fx_display_mm_height, Fx_display_mm_width)
7497 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7498 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7499 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7500 (check_x_display_info): Handle terminal objects instead of
7501 terminal ids.
7502
401e9e57
CY
7503 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7504 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7505 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7506 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7507
df80c7f0
KH
75082009-04-21 Kenichi Handa <handa@m17n.org>
7509
5a8f12af 7510 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7511 (font_score): Check AVGWIDTH too.
908567ef 7512
df80c7f0
KH
7513 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7514 worst case.
1ac9108a
SM
7515 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7516 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7517
705af33f
JR
75182009-04-19 Jason Rumney <jasonr@gnu.org>
7519
7520 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7521 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7522
7523 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7524 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7525 get_phys_cursor_geometry.
7526
b71ac3dd 7527 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7528 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7529 using get_phys_cursor_geometry.
7530
7531 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7532 correctly calculated.
7533
dc2933eb
JD
75342009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7535
1ac9108a
SM
7536 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7537 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7538 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7539 is deprecated.
7540
973e7849
AS
75412009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7542
7543 * font.c (font_put_frame_data): Use xfree instead of free.
7544
314d66f4
JB
75452009-04-17 Juanma Barranquero <lekktu@gmail.com>
7546
7547 * w32font.c (Qja, Qko): Remove declarations.
7548 (syms_of_w32font): Don't DEFSYM them.
7549
cf702558
CY
75502009-04-17 Chong Yidong <cyd@stupidchicken.com>
7551
7552 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7553
7554 * font.h (Qja, Qko): Extern them.
7555
7556 * ftfont.c (Qja, Qko): Remove declarations.
7557
7558 * xfont.c (Qja, Qko): Remove declarations.
7559
b50504f5
KH
75602009-04-17 Kenichi Handa <handa@m17n.org>
7561
bde25748
KH
7562 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7563 string from a vector to handle Latin-1 characters correctly.
7564
b50504f5
KH
7565 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7566 entity even if the cache hits.
7567
f4646fff
AS
75682009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7569
7570 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7571 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7572
e7deaab0
AS
7573 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7574 * lisp.h: Adjust prototypes.
7575
0a0e7d49
CY
75762009-04-16 Chong Yidong <cyd@stupidchicken.com>
7577
7578 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7579 change (Bug#3003).
7580
3c908a57
KH
75812009-04-16 Kenichi Handa <handa@m17n.org>
7582
1ac9108a 7583 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7584
7585 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7586 adstyle.
7587
7588 * ftfont.c (Qja, Qko): Don't make them static.
7589 (enum ftfont_cache_for): New enum.
7590 (fc_charset_table): Undo the previous change.
7591 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7592 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7593 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7594 non-scarable font, try to get AVERAGE_WIDTH.
7595 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7596 Change ft_face_cache from a list of a hash-table. Don't check
7597 `ja' and `ko' adstyle here.
7598 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7599 FTFONT_CACHE_FOR_CHARET.
7600 (ftfont_get_charset): Undo the previous change.
1ac9108a 7601 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7602 (ftfont_close): Likewise.
7603 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7604
7605 * font.c (font_sort_entites): Change the meaning of the arg
7606 BEST-ONLY. Don't optimize for VEC of lenght 1.
7607 (font_select_entity): Just return the value of font_sort_entites.
7608
7609 * xfaces.c (merge_face_vectors): Reflect font properties in
7610 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7611 font_clear_prop if a face attribute doesn't change.
7612
3c908a57
KH
7613 * charset.h (charset_ksc5601): Extern it.
7614
7615 * charset.c (charset_ksc5601): New variable.
7616 (Fdefine_charset_internal): Set charset_ksc5601.
7617 (init_charset_once): Initialize charset_ksc5601 to -1.
7618
d65859c3
DN
76192009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7620
7621 * fileio.c (history_delete_duplicates): Remove unused declaration.
7622
7623 * callint.c (history_delete_duplicates): New declaration.
7624 (Fcall_interactively): Remove command history duplicates when
7625 history_delete_duplicates is true.
7626
3ba010e5
EZ
76272009-04-14 Eli Zaretskii <eliz@gnu.org>
7628
7629 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7630
06f19b91
KH
76312009-04-14 Kenichi Handa <handa@m17n.org>
7632
7633 * font.c (Ffont_info): Fix docstring. Fix the second element of
7634 the returned value (bug#2949).
7635
2cce8bfc
CY
76362009-04-14 Chong Yidong <cyd@stupidchicken.com>
7637
7638 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7639
d156542d
KH
76402009-04-14 Kenichi Handa <handa@m17n.org>
7641
7642 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7643 encoding charset is ascii_compatible.
7644
7645 * charset.c (Fdefine_charset_internal): Make charset
7646 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7647 code_offset is 0, and covers all ASCII characters.
7648
86fa089e
SM
76492009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7650
7651 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7652 (ns_string_to_pasteboard_internal):
7653 * nsmenu.m (process_dialog):
7654 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7655 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7656 * lisp.h (Fx_load_color_file): Declare.
7657
a8a3728b
KH
76582009-04-13 Kenichi Handa <handa@m17n.org>
7659
1ac9108a 7660 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7661 (font_select_entity): Suppress the code to optimize for the same
7662 kind of fonts.
7663 (font_load_for_lface): Get a font that supports at least ASCII
7664 characters.
7665
7666 * ftfont.c (Qja, Qko): New variables.
7667 (fc_charset_table): Delete uniquifier data for iso8859-1.
7668 (ftfont_get_latin1_charset): New function.
7669 (get_adstyle_property): New function.
7670 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7671 bitmap fonts.
7672 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7673 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7674 `ko' or `ja'.
7675 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7676 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7677 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7678 property.
7679 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7680 (syms_of_ftfont): DEFSYM Qja and Qko.
7681
483670b5
KH
76822009-04-09 Kenichi Handa <handa@m17n.org>
7683
12b55765
KH
7684 * charset.c (map_charset_chars): For a charset of `superset'
7685 method, fix calculation of code range.
7686
483670b5
KH
7687 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7688 from the list of extra properties.
7689 (font_clear_prop): Be sure to delete `:name' font property.
7690
57d3b93b
KH
76912009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7692
b4b2c2ca
YM
7693 * dispnew.c (redraw_overlapping_rows): Fix detection of
7694 overlapping for topmost and bottommost rows.
7695
1ac9108a 7696 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7697
472c3609
JR
76982009-04-06 Jason Rumney <jasonr@gnu.org>
7699
7700 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7701
ab193662
KH
77022009-04-06 Kenichi Handa <handa@m17n.org>
7703
7704 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7705
7706 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7707
0c26f026
KH
77082009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7709
7710 * ftfont.c (ftfont_open): Fix checking of the return value of
7711 FT_Load_Char. Fix setting font->underline_thickness.
7712
e173bbce
CY
77132009-04-04 Chong Yidong <cyd@stupidchicken.com>
7714
7715 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7716 (Fterminal_parameters, Fterminal_parameter)
7717 (Fset_terminal_parameter): In doc string, refer to terminal
7718 objects rather than terminal ids.
7719
693a2698
EZ
77202009-04-04 Eli Zaretskii <eliz@gnu.org>
7721
7722 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7723 ret_lim_data. (Bug#2867)
7724
d5221487
CY
77252009-04-03 Chong Yidong <cyd@stupidchicken.com>
7726
7727 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7728 so they don't get wider than the window, matching 2006-01-23
7729 change to the partner function in xdisp.c (Bug#2800).
7730
223509a3
KH
77312009-04-03 Kenichi Handa <handa@m17n.org>
7732
7733 * print.c (print_object): Make each lowest sub_char_table start a
7734 new line (Bug#2866).
7735
74fcd0b1
KH
77362009-04-02 Kenichi Handa <handa@m17n.org>
7737
7738 * fontset.c (fontset_font): Record no-font when a fontset
7739 explicitly tells not to try another font-specs.
7740
c542407d
SM
77412009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7742
7743 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7744
e3869731
KH
77452009-03-30 Kenichi Handa <handa@m17n.org>
7746
d8d2f142
KH
7747 * fontset.c (fontset_from_font): Specify only registry in a
7748 font-spec for all characters supported by that registry.
7749
e3869731
KH
7750 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7751 even if HAVE_M17N_FLT is not defined.
7752
5da5f805
CY
77532009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7754
7755 * ftfont.c: Conditionalize prototyping and use of
7756 ftfont_variation_glyphs.
7757
ab226c50
SM
77582009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7759
9628fed7
SM
7760 * frame.c (delete_frame): Work around compiler bug.
7761
7762 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7763 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7764 Some more EMACS_INT.
7765 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7766
7767 * xdisp.c (dump_glyph): Fix typo.
7768
ae19ba7c
SM
7769 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7770 (adjust_markers_gap_motion, adjust_markers_for_delete)
7771 (adjust_markers_for_insert, adjust_point)
7772 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7773 (make_gap, copy_text, count_size_as_multibyte, insert)
7774 (insert_and_inherit, insert_before_markers)
7775 (insert_before_markers_and_inherit, insert_1)
7776 (count_combining_before, count_combining_after, insert_1_both)
7777 (insert_from_string, insert_from_string_before_markers)
7778 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7779 (insert_from_buffer_1, adjust_after_replace)
7780 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7781 (replace_range_2, del_range, del_range_1, del_range_byte)
7782 (del_range_both, del_range_2, modify_region)
7783 (prepare_to_modify_buffer, signal_before_change)
7784 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7785 for buffer positions and sizes.
7786 * lisp.h: Adjust prototypes accordingly.
7787
7788 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7789 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7790 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7791
ab226c50
SM
7792 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7793
46dfb8fb
JD
77942009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7795
7796 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7797 lines and columns so we keep the same pixel height and width.
7798
7799 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7800 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7801 (x_handle_net_wm_state): New function to update frame parameter
7802 fullscreen.
7803 (x_term_init): Initialize atoms for _NET_WM_STATE.
7804
7805 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7806
d347e494
SM
78072009-03-27 Kevin Ryde <user42@zip.com.au>
7808
7809 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7810 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7811 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7812 (Fgpm_mouse_stop): Pass that new parameter.
7813 * termhooks.h (close_gpm): Adjust prototype.
7814
84db11d6
SM
78152009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7816
c95a5008
SM
7817 * lisp.h (Fx_focus_frame): Declare.
7818
84db11d6
SM
7819 * callint.c (Fcall_interactively): For '^' just delegate the work to
7820 handle-shift-selection.
7821 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7822
0a1958d6
CY
78232009-03-24 Chong Yidong <cyd@stupidchicken.com>
7824
0bfdff23
CY
7825 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7826
0a1958d6
CY
7827 * data.c (Qinteractive_form): New variable.
7828 (Finteractive_form): Use it.
7829
7830 * eval.c (Fcommandp): Use Qinteractive_form.
7831
58aec0d6
JR
78322009-03-24 Jason Rumney <jasonr@gnu.org>
7833
7834 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7835 Calculate total size precisely. Decode environment variables
7836 before substituting. (Bug#38)
7837
553dd618
KH
78382009-03-24 Kenichi Handa <handa@m17n.org>
7839
7840 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7841 encoding (Bug#2722).
553dd618 7842
c39ea606
JD
78432009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7844
7845 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7846 that gdpy is set.
7847
bc9b2b5e
AM
78482009-03-22 Alan Mackenzie <acm@muc.de>
7849
7850 * callint.c (Finteractive): Clarify the doc string - even
7851 promptless elements need \n separators.
7852
9f995a76
JR
78532009-03-22 Jason Rumney <jasonr@gnu.org>
7854
7855 * w32term.c (syms_of_w32term): Doc fix for
7856 x-use-underline-position-properties.
7857
22749e9a
EZ
78582009-03-21 Eli Zaretskii <eliz@gnu.org>
7859
7860 * w32.c (getpwuid): Change argument type to unsigned.
7861 (struct w32_id): Change type of `rid' member to unsigned.
7862 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7863 argument ID to unsigned. All callers changed.
7864 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7865
e00553bf
EZ
78662009-03-20 Eli Zaretskii <eliz@gnu.org>
7867
7868 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7869 negative, produce a float value.
7870
7871 * dired.c (make_uid, make_gid): New functions.
7872 (Ffile_attributes): Use them to avoid negative UID and GID.
7873
f761d6b6
JB
78742009-03-20 Juanma Barranquero <lekktu@gmail.com>
7875
7876 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7877 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7878 Fix typos in docstrings.
7879
d507f8d7
KH
78802009-03-19 Kenichi Handa <handa@m17n.org>
7881
7882 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7883 changed, use font_load_for_lface to get a new font object.
7884 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7885
7886 * frame.c (x_set_font): Handle the case that ARG is a cons.
7887
c68845e0
GM
78882009-03-19 Glenn Morris <rgm@gnu.org>
7889
7890 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7891
bfa49dd1
CY
78922009-03-19 Chong Yidong <cyd@stupidchicken.com>
7893
7894 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7895
8458d4c1
KH
78962009-03-19 Kenichi Handa <handa@m17n.org>
7897
7898 * charset.c (load_charset_map_from_file): When a mapfile can't be
7899 loaded, signal an error.
7900
78e7d1fe
EZ
79012009-03-18 Eli Zaretskii <eliz@gnu.org>
7902
7903 * dired.c (Ffile_attributes): Make sure UID and GID are always
7904 positive, even if the value is too large for a positive EMACS_INT.
7905 Doc fix.
7906
7907 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7908
5da9fdfa
YM
79092009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7910
7911 * xmenu.c (xdialog_show): Move Fredisplay call ...
7912 (Fx_popup_dialog): ... here.
7913
7519c40d
SM
79142009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7915
7916 * dired.c (file_name_completion): Disable the first optimization just
7917 installed, since it is not implemented correctly.
7918
2cd298e2
SM
79192009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7920
7921 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7922 only if the entry can affect bestmatch.
2cd298e2
SM
7923 Stop the search early, as Ftry_completion already does.
7924
48d37adf
CY
79252009-03-17 Chong Yidong <cyd@stupidchicken.com>
7926
e10c9c93 7927 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7928
9286b16a
CY
79292009-03-15 Chong Yidong <cyd@stupidchicken.com>
7930
7931 * keyboard.c (parse_menu_item): Don't display remappings as menu
7932 equivalent bindings (Bug#788).
7933
f7b146dc
JR
79342009-03-15 Jason Rumney <jasonr@gnu.org>
7935
7936 * w32term.h (WM_EMACS_PAINT): New message.
7937 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7938 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7939 before passing to lisp thread. (Bug#950)
7940
f761d6b6 79412009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7942
d93f9575
CY
7943 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7944 variable as it was never reset.
7945 (ns_term_init): Remove initialization of Lisp-settable defaults
7946 and ns_expand_space.
7947 (-setPanelFromDefaultValues): Remove ns_expand_space.
7948 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7949 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7950 i.e. no additional spacing, similar to Carbon port.
7951
d93f9575
CY
7952 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7953 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7954
305018ec
JD
79552009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7956
7957 * sound.c (alsa_configure): Remove call to deprecated
7958 snd_pcm_sw_params_set_xfer_align.
7959
f761d6b6 79602009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7961
7962 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7963 after clicking in a detached tool bar.
7964 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7965
46e722a9
SM
79662009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7967
348db3dd
SM
7968 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7969 int/Lisp_Object mixup).
46e722a9 7970
a3d16f39
KH
79712009-03-13 Kenichi Handa <handa@m17n.org>
7972
7973 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7974 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7975 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7976 (set_fontset_font): Change ARG to a vector. Handle range_list in
7977 ARG correctly.
7978 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7979 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7980 the above change.
7981 (fontset_from_font): Fix previous change.
fe24f56a 7982 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7983 entry. If FONTSET is the default fontset, don't set the extra
7984 slot of the returning char-table.
7985
b066e6b6
JB
79862009-03-12 Juanma Barranquero <lekktu@gmail.com>
7987
7988 * nsfns.m (Fx_close_connection): Doc fix.
7989 (Fns_do_applescript): Reflow docstring.
7990 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7991 (Fx_display_pixel_width, Fx_display_pixel_height)
7992 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7993 Fix typos in docstrings.
7994 (Fns_set_alpha): Fix typos in error messages.
7995
d472514e 79962009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7997
d472514e 7998 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7999 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
8000 were used for such events.
8001
d472514e
JB
8002 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
8003 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 8004
d472514e 8005 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
8006 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8007
fb930676
KH
80082009-03-11 Kenichi Handa <handa@m17n.org>
8009
ff85581a
KH
8010 * font.h (font_open_by_spec): Extern it.
8011
c50b7e98
KH
8012 * font.c (font_open_by_spec): New function.
8013 (font_open_by_name): Use font_open_by_spec.
8014
fb930676
KH
8015 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8016 fontset of the frame.
8017
8018 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8019 modify the default font of frames that use this fontset.
8020 (num_auto_fontsets): New variable.
8021 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8022 name. Be sure to set FONTSET_ASCII to the correct font name.
8023 (update_auto_fontset_alist): New function.
8024
df4e8455
JB
80252009-03-11 Juanma Barranquero <lekktu@gmail.com>
8026
8027 * makefile.w32-in: Update dependencies.
8028
0a375797
AR
80292009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8030
8031 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8032
61313fa3
SM
80332009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8034
8035 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8036
b55103fb
CY
80372009-03-10 Chong Yidong <cyd@stupidchicken.com>
8038
8039 * lread.c (Feval_buffer): Doc fix.
8040
dde2559c
KH
80412009-03-09 Kenichi Handa <handa@m17n.org>
8042
8043 * charset.c (Qfile_name_handler_alist): Extern it.
8044 (load_charset_map_from_file): Temporarily bind
8045 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8046
df4e8455 80472009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8048
47f588bb
GM
8049 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8050 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8051
4ddf94bd
AR
80522009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8053
4c9bdfc2
AR
8054 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8055 (x_set_window_size): Change back to calculated method of setting
8056 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8057 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8058 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8059
fe41ae9e
AR
8060 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8061
4c9bdfc2
AR
8062 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8063 accelerator in parens under GNUstep.
8064
825d0875
KH
80652009-03-06 Kenichi Handa <handa@m17n.org>
8066
8067 These changes are to detect incorrect composition sequence without
f3b3be74 8068 looking ahead the source. (Bug#2370)
825d0875
KH
8069
8070 * coding.h: Include "composite.h".
8071 (enum compisition_state): New enum.
8072 (struct compisition_status): New struct.
8073 (struct iso_2022_spec): New member cmp_status.
8074 (struct emacs_mule_spec): New struct.
8075 (struct coding_system): New members ctext_extended_segment_len and
8076 embedded_utf_8. Change the union member
8077 spec.emacs_mule_full_support to spec.emacs_mule.
8078
8079 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8080 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8081 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8082 (ADD_COMPOSITION_DATA): New arg nbytes.
8083 (emacs_mule_char): New arg cmp_status.
8084 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8085 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8086 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8087 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8088 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8089 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8090 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8091 (EMACS_MULE_COMPOSITION_END): New macro.
8092 (emacs_mule_finish_composition): New function.
8093 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8094 (decode_coding_emacs_mule): Avoid long looking ahead while
8095 handling composition.
8096 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8097 (ENCODE_COMPOSITION_RULE): New macro.
8098 (finish_composition): New function.
8099 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8100 (DECODE_COMPOSITION_START): New implementation.
8101 (DECODE_COMPOSITION_END): Likewise.
8102 (STORE_COMPOSITION_RULE): New macro.
8103 (decode_coding_iso_2022): Avoid long looking ahead while handling
8104 composition, CTEXT extended segment, and embedded UTF-8.
8105 (setup_coding_system): For a coding of type iso-2022, reset
8106 CODING_ISO_EXTSEGMENT_LEN (coding) and
8107 CODING_ISO_EMBEDDED_UTF_8 (coding).
8108 (get_translation): Delete arguments last_block, from_nchars,
8109 to_nchars. Callers changed.
8110 (produce_chars): Don't modify charbuf. Adjusted for the change of
8111 get_translation.
98a326f7 8112 (produce_composition): Adjust for the new annotation sequence.
825d0875 8113 (handle_composition_annotation): Likewise.
98a326f7 8114 (consume_chars): Adjust for the change of get_translation.
825d0875 8115
ccbc4452
AR
81162009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8117
4ddf94bd 8118 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8119
988a7ddb
KH
81202009-03-05 Kenichi Handa <handa@m17n.org>
8121
8122 * font.c (font_select_entity): New function.
8123 (font_find_for_lface): Use font_select_entity to select a font.
8124
8125 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8126 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8127 font with C restriction.
8128
98a326f7 81292009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8130
be1bce46 8131 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8132
10ea2b82
JR
81332009-03-04 Jason Rumney <jasonr@gnu.org>
8134
2c93b248 8135 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8136 characters that have already been read. (Bug#2569)
2c93b248 8137
10ea2b82
JR
8138 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8139 Log an error message if check_image_size failed.
8140 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8141 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8142
71a0c011
EZ
81432009-03-02 Eli Zaretskii <eliz@gnu.org>
8144
8145 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8146 when decoding process output.
8147
2f63bba8
RS
81482009-03-01 Richard M Stallman <rms@gnu.org>
8149
8150 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8151
8152 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8153
0a9564cb
EZ
81542009-02-28 Eli Zaretskii <eliz@gnu.org>
8155
8156 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8157 (decode_coding_emacs_mule, decode_coding_iso_2022)
8158 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8159 (decode_coding_raw_text, decode_coding_charset)
8160 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8161 Honor inhibit-eol-conversion. (Bug #2186)
8162
449148b3
JR
81632009-02-28 Jason Rumney <jasonr@gnu.org>
8164
8165 * coding.c (detect_coding_charset): If not checking latin extra,
8166 fail on characters between 0x80 and 0xA0. (Bug#2354)
8167
a4aee864
EZ
81682009-02-28 Eli Zaretskii <eliz@gnu.org>
8169
8170 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8171 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8172
d88bee5a
GM
81732009-02-27 Glenn Morris <rgm@gnu.org>
8174
8175 * callint.c (Finteractive): Doc fix.
8176
a808f22d
KH
81772009-02-27 Kenichi Handa <handa@m17n.org>
8178
8179 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8180
caf8d60c
CY
81812009-02-27 Chong Yidong <cyd@stupidchicken.com>
8182
8183 * font.c (font_style_to_value): Set value for unknown symbols to
8184 100 instead of 255.
b61137ea
CY
8185 (weight_table, slant_table, width_table): Treat "unspecified" as
8186 the default value.
caf8d60c 8187
1a0de25c
JB
81882009-02-26 Juanma Barranquero <lekktu@gmail.com>
8189
8190 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8191
8fc45744
JB
81922009-02-25 Juanma Barranquero <lekktu@gmail.com>
8193
107bd7d1
JB
8194 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8195 error as soon as a recursive load is detected.
8fc45744 8196
f097e223
AR
81972009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8198
8199 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8200 before caching.
8201
8810a12f
KH
82022009-02-24 Kenichi Handa <handa@m17n.org>
8203
8204 * fontset.c (fontset_find_font): Fix the condition for checking
8205 unavailable font.
8206
2c7d1565
GM
82072009-02-24 Glenn Morris <rgm@gnu.org>
8208
8209 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8210 whitespace that confuses documentation.
8211
a20878b6
MB
82122009-02-23 Miles Bader <miles@gnu.org>
8213
8214 * process.c (Flist_system_processes, Fprocess_attributes)
8215 (syms_of_process): Rename `system-process-attributes' to
8216 `process-attributes'.
8217
b3b58c01
AS
82182009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8219
1b3b981b
AS
8220 * coding.h (struct coding_system): Make safe_charsets a pointer to
8221 unsigned char.
8222 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8223 being 255.
8224 (SAFE_CHARSET_P): Likewise.
8225 (setup_iso_safe_charsets): Properly setup safe_charsets.
8226 (Fdefine_coding_system_internal): Likewise.
8227 (setup_coding_system): Likewise. Remove unneeded casts.
8228 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8229 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8230 unneeded casts.
8231
b3b58c01
AS
8232 * insdel.c (del_range_2): Don't modify gap contents when called
8233 from decode_coding_object. (Bug#1809)
8234
0b6f228c
CY
82352009-02-21 Chong Yidong <cyd@stupidchicken.com>
8236
8237 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8238 Qfont_object.
8239 (Ftype_of): Recognize font objects.
8240
8241 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8242
8243 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8244 moved to data.c.
8245
52f8870b
AR
82462009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8247
8248 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8249 async_iconified. Based on a patch by Christian Lynbech
8250 <christian.lynbech@tieto.com>.
8251 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8252
7087d5e9
GM
82532009-02-20 Glenn Morris <rgm@gnu.org>
8254
8255 * syntax.c (Fskip_chars_forward): Fix doc typo.
8256
41d2ceef
CY
82572009-02-20 Chong Yidong <cyd@stupidchicken.com>
8258
8259 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8260
1a3b7ca6
CY
82612009-02-19 Chong Yidong <cyd@stupidchicken.com>
8262
8263 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8264
73cce38d
KH
82652009-02-19 Kenichi Handa <handa@m17n.org>
8266
8267 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8268 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8269
a51092ee
DN
82702009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8271
8272 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8273
c423ecca
KH
82742009-02-18 Kenichi Handa <handa@m17n.org>
8275
8276 * font.c (font_check_otf_features): Fix handling of `nil' element.
8277 (Ffont_spec): Describe :lang and :otf in the docstring.
8278
4c1958f4
AS
82792009-02-16 Andreas Schwab <schwab@suse.de>
8280
8281 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8282 string.
8283
5704f39a
KH
82842009-02-16 Kenichi Handa <handa@m17n.org>
8285
8286 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8287 (Bug#1723)
5704f39a 8288
8f0085aa
CY
82892009-02-14 Chong Yidong <cyd@stupidchicken.com>
8290
a057d86a 8291 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8292
8293 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8294 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8295
aff01dd9
EZ
82962009-02-14 Eli Zaretskii <eliz@gnu.org>
8297
8298 * msdos.c (MAX_SCREEN_BUF): New macro.
8299 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8300 Encode the entire run of glyphs sharing the same face, instead of
8301 doing that one glyph at a time (fixes a bug with displaying
8302 double-size characters).
8303
ba301db3
AR
83042009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8305
8306 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8307
8308 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8309 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8310 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8311
8312 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8313 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8314
51d861de
SM
83152009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8316
ac146f82 8317 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8318 invisible areas.
8319
7fed8996
JR
83202009-02-12 Jason Rumney <jasonr@gnu.org>
8321
631ea4fb
JR
8322 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8323 (add_font_entity_to_list): Call check_face_name even when family
8324 is unspecified.
8325
cb4a3e42
JR
8326 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8327 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8328 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8329
7fed8996 8330 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8331 raster fonts. (Bug#2219)
7fed8996 8332
895416e3
KH
83332009-02-12 Kenichi Handa <handa@m17n.org>
8334
8335 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8336 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8337 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8338 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8339 (find_automatic_composition): While looking forward and backward,
8340 check static composition. Fix where to stop looking forward.
8341 (composition_adjust_point): Fix checking of static composition.
8342 (Fcomposition_get_gstring): Pay attention to
1dacf998 8343 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8344
8345 * lisp.h (fast_looking_at): Extern it.
8346
8347 * search.c (fast_looking_at): New function.
8348
51d861de 8349 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8350 <struct glyph>.u.cmp.to.
8351 (append_composite_glyph): Likewise.
8352
51d861de 8353 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8354 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8355 composition.
51d861de 8356 (append_composite_glyph): Adjust for the change of
895416e3
KH
8357 <strcut glyph>.u.cmp.to.
8358
8510724d
JB
83592009-02-11 Juanma Barranquero <lekktu@gmail.com>
8360
8361 * casetab.c (init_casetab_once):
8362 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8363 * font.c (font_update_lface):
8364 * fontset.c (Fnew_fontset):
8365 * ftfont.c (ftfont_drive_otf):
8366 * xfont.c (xfont_open):
8367 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8368
294fa707
SM
83692009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8370
8371 * fileio.c (Fwrite_region): !NILP -> CONSP.
8372
b5bfebec
AS
83732009-02-10 Andreas Schwab <schwab@suse.de>
8374
8375 * process.c (send_process): Properly relocate pointer into data
adab88bd 8376 when using encoded data. (Bug#2272)
b5bfebec 8377
cb84a2be
KH
83782009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8379
8380 * coding.c (detect_coding_charset): Fix previous change.
8381
89e09428
JR
83822009-02-08 Jason Rumney <jasonr@gnu.org>
8383
8384 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8385 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8386
4470a277
AS
83872009-02-07 Andreas Schwab <schwab@suse.de>
8388
8389 * unexelf.c (unexec): Fix error message.
8390
3175b12a
AR
83912009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8392
8393 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8394 when modal window is active. (Bug #2152)
3175b12a
AR
8395 (applicationShouldTerminate:): Remove now-unneeded while loop
8396 around NSRunAlertPanel.
8397
8398 * nsmenu.m (popupSession): New file-global variable.
8399 (pop_down_menu): End the popupSession before closing dialog.
8400 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8401 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8402 don't query NSApp for events (just sleep instead).
8403
8434d0b8
EZ
84042009-02-07 Eli Zaretskii <eliz@gnu.org>
8405
51d861de
SM
8406 * coding.c (syms_of_coding) <translation-table-for-input>:
8407 Modify doc string to discourage use for character code unification.
8434d0b8 8408
aa82edfd
CY
84092009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8410
8411 * atimer.c (run_timers): Update pending_atimers.
8412
2d283c7c
CY
84132009-02-06 Chong Yidong <cyd@stupidchicken.com>
8414
eb306cab
CY
8415 * image.c (svg_load_image): Fix last change.
8416
2d283c7c
CY
8417 * xfns.c (Fx_create_frame): Signal an error if no font is
8418 found (Bug#2147).
8419
4d8e170e
JB
84202009-02-05 Juanma Barranquero <lekktu@gmail.com>
8421
8422 * character.c (syms_of_character) <script-representative-chars>:
8423 Fix typo in docstring.
8424
c96169a0
AR
84252009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8426
8427 * nsmenu.m (pop_down_menu): New function.
8428 (ns_popup_dialog): Call it on unwind.
8429 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8430 call timer_check() (Bug#2154).
8431 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8432 handling_signal is set.
8433 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8434
31fd7c5c 8435 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8436
8437 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8438
8439 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8440
51d861de
SM
8441 * keyboard.c (poll_for_input_1, handle_async_input):
8442 Set handling_signal under HAVE_NS.
c96169a0 8443
aacd8ba1
GM
84442009-02-04 Glenn Morris <rgm@gnu.org>
8445
8446 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8447
4cb75c4b
KH
84482009-02-04 Kenichi Handa <handa@m17n.org>
8449
8450 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8451
8452 * charset.c (Fchar_charset): New optional arg restriction.
8453
8454 * coding.h (coding_system_charset_list): Extern it.
8455
8456 * coding.c (coding_system_charset_list): New function.
8457
8458 * composite.c: Include coding.h and termhooks.h.
8459 (composition_gstring_p): Fix for the terminal case.
8460 (composition_gstring_width): Likewise.
8461 (fill_gstring_body): Likewise.
8462 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8463 the frame.
8464 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8465 is within a composition.
867d4bb3 8466 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8467
8468 * term.c (encode_terminal_code): Fix handling of composition.
8469 (produce_composite_glyph): For static composition, get pixel_width
8470 from struct composition.
8471
826ba17e
AS
84722009-02-02 Andreas Schwab <schwab@suse.de>
8473
8474 * unexelf.c (unexec): Handle unaligned bss offset.
8475
8ad093db
AR
84762009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8477
8478 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8479 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8480
8ad093db
AR
8481 * keyboard.c (handle_interrupt): Don't call
8482 quit_throw_to_read_char() under NS.
d0a76a6e 8483
8ad093db
AR
8484 * blockinput.h: Remove NS-specific code.
8485
4d18a7a2
DN
84862009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8487
db878925
DN
8488 * dispnew.c (window_change_signal): Don't try to get the size of a
8489 suspended tty frame.
8490 * term.c (Fresume_tty): Resize if the size has changed while the
8491 tty was suspended.
8492
4d18a7a2
DN
8493 * alloc.c (mark_stack): Properly conditionalize previous change.
8494
8984df7c
JB
84952009-01-30 Juanma Barranquero <lekktu@gmail.com>
8496
8497 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8498 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8499 Remove; this code is not used on Windows.
8500
75f4f1ac
EZ
85012009-01-30 Eli Zaretskii <eliz@gnu.org>
8502
8503 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8504 EOLs that also has stray ^M characters.
8505
07a1e794
JB
85062009-01-30 Juanma Barranquero <lekktu@gmail.com>
8507
8508 * atimer.c (run_timers, alarm_signal_handler):
8509 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8510 * w32inevt.c (w32_console_read_socket):
8511 * w32term.c (w32_read_socket):
8512 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8513
a8b11cc9
CY
85142009-01-30 Chong Yidong <cyd@stupidchicken.com>
8515
8516 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8517 Initialize it as a relative filename pattern.
8518 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8519 (Fcall_process_region): Simplify temp file creation using
8520 temporary-file-directory.
8521
c279587b
EZ
85222009-01-29 Eli Zaretskii <eliz@gnu.org>
8523
8524 * msdos.c: Rename pending_signals to msdos_pending_signals.
8525 (sig_suspender, sigprocmask): Adjust.
8526
a8fe3242
CY
85272009-01-29 Chong Yidong <cyd@stupidchicken.com>
8528
8529 * keyboard.c (pending_signals): New var.
8530 (poll_for_input, input_available_signal, init_keyboard): Set it.
8531 (process_pending_signals): New function.
8532
8533 * lisp.h (QUIT): Check pending_signals instead of
8534 interrupt_input_pending. Use process_pending_signals.
8535
51d861de 8536 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8537
51d861de 8538 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8539
8540 * sysdep.c (emacs_write): Use process_pending_signals.
8541
8542 * xterm.c (XTread_socket): Update pending_signals.
8543
8544 * w32term.c (w32_read_socket): Update pending_signals.
8545
8546 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8547
6570a1c4
KH
85482009-01-29 Kenichi Handa <handa@m17n.org>
8549
8550 * xftfont.c (xftfont_has_char): New function.
8551 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8552
d72a4afa
AR
85532009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8554
8555 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8556 under GNUstep.
8557 (ns_query_color): New declaration.
8558
8559 * nsterm.m (ns_confirm_quit): New variable.
8560 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8561 (EmacsApp-applicationShouldTerminate:): Use it.
8562 (EmacsPrefsController): Let user set it.
8563 (ns_query_color): New function.
8564 (ns_defined_color): Use it.
8565 (ns_initialize): Drop.
8566 (ns_term_init): Add two lines from ns_initialize(), and set
8567 input_interrupt_mode to nil.
8568
8569 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8570 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8571
9fe78804
KH
85722009-01-28 Kenichi Handa <handa@m17n.org>
8573
8574 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8575 (fontset_get_font_group): Remember that no font-group is specified
8576 for C.
9fe78804 8577
fa57de36
CY
85782009-01-27 Chong Yidong <cyd@stupidchicken.com>
8579
930600e9
CY
8580 * fns.c (concat): Check for string overflow (bug#1787).
8581
fa57de36
CY
8582 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8583 Quadruple undo limits (bug#1501).
8584
7179ce7b
KH
85852009-01-27 Kenichi Handa <handa@m17n.org>
8586
8587 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8588 directly use GT_Get_Char_index.
8589
8590 * xftfont.c (struct xftfont_info): New member `index'.
8591
8592 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8593 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8594
5be8fcc0
CY
85952009-01-26 Kenichi Handa <handa@m17n.org>
8596
8597 * fontset.c (fontset_find_font): Fix handling of non-cons return
8598 value of fontset_get_font_group.
8599 (fontset_font): Revert last change.
8600
19ae3e61
JR
86012009-01-26 Jason Rumney <jasonr@gnu.org>
8602
8603 * w32font.c (w32font_list_internal): Return quickly if registry is
8604 unknown. Simplify final return.
8605 (add_font_entity_to_list): Break complex logic down into more
8606 manageable chunks. Move unknown registry check to
8607 w32font_list_internal.
8608
8612b71a
AR
86092009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8610
8611 Changes to remove Feval calls from GUI under NS.
8612
d8038940
JB
8613 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8614 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8615 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8616
8617 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8618 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8619 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8620 instead of NON_ASCII_KEYSTROKE_EVENT.
8621 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8622 (EmacsApp-applicationShouldTerminate:): Query user.
8623 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8624 instead of Feval.
8625
8626 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8627
8628 * keyboard.c (kbd_buffer_get_event): Check for it.
8629 (keys_of_keyboard): Define lispy keys for
8630 ns-put/unput-working-text.
8631
8632 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8633 versions.
8634 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8635
6288ae55
CY
86362009-01-25 Chong Yidong <cyd@stupidchicken.com>
8637
8638 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8639 setting current_buffer directly. (Bug#2044)
6288ae55 8640
289e7f8f
CY
86412009-01-24 Chong Yidong <cyd@stupidchicken.com>
8642
5ce87308 8643 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8644 any work. (Bug#1952, bug#1990).
5ce87308 8645
64cc3cf6 8646 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8647
b3243e6f
AR
86482009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8649
8650 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8651 (ns_no_defaults): New declaration.
8652 (main): Use it.
e0d2e69a 8653
d900b2af 8654 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8655
d900b2af 8656 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8657
d900b2af
AR
8658 * nsterm.m (ns_no_defaults): New variable.
8659 (ns_initialize): Don't read defaults when ns_no_defaults.
8660 (EmacsView-readSelectionFromPasteboard:)
8661 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8662 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8663 (ns_dumpglyphs_stretch): New function.
8664 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8665 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8666
e0d2e69a
AR
8667 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8668
3ac71f5d
CY
86692009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8670
8671 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8672 call for Sparc64.
8673
3fe53a83
AR
86742009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8675
8676 * nsfns.m:
8677 * nsgui.h:
8678 * nsmenu.m:
8679 * nsselect.m:
8680 * nsterm.h:
8681 * nsterm.m: Remove '23' comments that indicated code added during
8682 update from emacs-20 -> emacs-23.
8683
10f87c6f 86842009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8685
8686 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8687 ns_alternate_modifier. (Bug#1217)
a3b53a85 8688
c7cef62d
AR
8689 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8690 Display all shortcuts, including those w/o super modifier.
8691
575fb8bd
AR
8692 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8693
918b848b
CY
86942009-01-22 Chong Yidong <cyd@stupidchicken.com>
8695
8696 * fileio.c (Vwrite_region_post_annotation_function)
8697 (Vwrite_region_annotation_buffers): New vars.
8698 (build_annotations_unwind): Just reset
8699 Vwrite_region_annotation_buffers.
8700 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8701 Call write-region-post-annotation-function.
8702 (build_annotations): Add to Vwrite_region_annotation_buffers if
8703 buffer changes.
8704
a39e2539
AR
87052009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8706
8707 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8708 Tiger.
51d861de
SM
8709 * nsfns.m (ns_do_applescript):
8710 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8711
35ed44db
AR
87122009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8713
8714 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8715
cbe0b5bf
AR
87162009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8717
8718 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8719
6049d3a0
AR
8720 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8721
8722 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8723 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8724 handle Ctrl-tab. (Bug#1841)
8725 (ns_get_color): Use unsigned long long for scanned hex string value.
8726 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8727 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8728 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8729 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8730 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8731 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8732 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8733
d3810c21 8734 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8735 DPI. (Bug#1316)
d3810c21
AR
8736 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8737 values in onTiger section.
4c7077c3 8738
e301e634
CY
87392009-01-19 Chong Yidong <cyd@stupidchicken.com>
8740
7f82490b
CY
8741 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8742 Check return value of font_spec_from_name.
64cc3cf6 8743 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8744
8745 * font.c (font_spec_from_name): Return Qnil if font name could not
8746 be parsed.
8747 (font_parse_name): Treat a `?' character as part of an XLFD.
8748
e301e634
CY
8749 * fns.c (Fsubstring): Doc fix.
8750
1c0db158
KH
87512009-01-19 Kenichi Handa <handa@m17n.org>
8752
51d861de 8753 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8754 (ftfont_list): Likewise.
8755
acf20901
JB
87562009-01-18 Juanma Barranquero <lekktu@gmail.com>
8757
fff4e459
JB
8758 * dbusbind.c (Fdbus_register_signal):
8759 * process.c (conv_sockaddr_to_lisp):
8760 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8761
acf20901
JB
8762 * callproc.c (Fgetenv_internal): Doc fix.
8763
e7abcdfb
CY
87642009-01-16 Chong Yidong <cyd@stupidchicken.com>
8765
8766 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8767 it is not even used.
8768
b60861e6
GM
87692009-01-16 Glenn Morris <rgm@gnu.org>
8770
8771 * font.c (Ffont_variation_glyphs): Silence compiler.
8772
8db52afe
JB
87732009-01-15 Juanma Barranquero <lekktu@gmail.com>
8774
8775 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8776 Reported by David Robinow <drobinow@gmail.com>.
8777
4cddb209
KH
87782009-01-15 Kenichi Handa <handa@m17n.org>
8779
51d861de 8780 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8781
f247f67b
JR
87822009-01-14 Jason Rumney <jasonr@gnu.org>
8783
8784 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8785 never a fontset. (Bug#1562)
f247f67b 8786
f56a4450
KH
87872009-01-14 Kenichi Handa <handa@m17n.org>
8788
8789 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8790 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8791
4e99855e
CY
87922009-01-13 Chong Yidong <cyd@stupidchicken.com>
8793
8794 * font.c (font_clear_prop): If clearing the family, clear the font
8795 width index too.
8796
fff4e459 8797 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8798
24f01470
JB
87992009-01-12 Juanma Barranquero <lekktu@gmail.com>
8800
8801 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8802 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8803 functions, use sizeof.
8804
a41240a3
MR
88052009-01-12 Martin Rudalics <rudalics@gmx.at>
8806
8807 * keyboard.c (read_char): Fix case where last_nonmenu_event
8808 returned a bad value with submenus. (Bug#447)
8809
944636b8
CY
88102009-01-12 Chong Yidong <cyd@stupidchicken.com>
8811
8812 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8813 family, clear the font width index too.
8814
0dad7c6f
JR
88152009-01-11 Jason Rumney <jasonr@gnu.org>
8816
8817 * keyboard.c (cmd_error_internal): Exit when errors occur before
8818 frame creation and not in daemon mode. (Bug#1836)
8819
7c2363af
CY
88202009-01-10 Chong Yidong <cyd@stupidchicken.com>
8821
8822 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8823 of a display vector, backtrack.
8824 (try_window_reusing_current_matrix): Check glyph type before
8825 referencing charpos member.
8826
97b1b294
EZ
88272009-01-10 Eli Zaretskii <eliz@gnu.org>
8828
8829 Fix Bug #876:
8830
8831 * coding.c (inhibit_null_byte_detection): New variable.
8832 (detect_coding, detect_coding_system): Don't pay attention to null
8833 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8834 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8835 <inhibit-iso-escape-detection>: Doc fix.
8836
4624b6e3
JR
88372009-01-09 Jason Rumney <jasonr@gnu.org>
8838
8839 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8840 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8841 Only report Unicode Plane 2 fonts as unicode-sip.
8842
323b840c
CY
88432009-01-09 Chong Yidong <cyd@stupidchicken.com>
8844
51d861de
SM
8845 * xfaces.c (Fx_font_family_list): Delete function.
8846 Move compatibility version to faces.el.
323b840c 8847
51d861de 8848 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8849
eba7400d
MR
88502009-01-09 Martin Rudalics <rudalics@gmx.at>
8851
8852 * frame.c (x_set_frame_parameters): Remember requested value for
8853 fullscreen before it's reset by the parameter handler.
8854
4b09796d
GM
88552009-01-09 Glenn Morris <rgm@gnu.org>
8856
8857 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8858 (last_command_event): ... and update all users.
4b09796d
GM
8859 (last_input_char): For clarity, rename to...
8860 (last_input_event): ... and update all users.
8861 (last-command-char, last-input-char): Move to subr.el as aliases.
8862 * cmds.c, commands.h: Update for last_command_char rename.
8863
14ccea62
CY
88642009-01-08 Chong Yidong <cyd@stupidchicken.com>
8865
51d861de 8866 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8867
5f004711
JR
88682009-01-08 Jason Rumney <jasonr@gnu.org>
8869
8870 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8871 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8872 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8873 Don't declare.
fff4e459 8874 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8875 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8876
b71f6f73
KH
88772009-01-07 Kenichi Handa <handa@m17n.org>
8878
50b06221 8879 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8880 remember the coding system used for decoding in
50b06221
KH
8881 coding_system (Bug#1039).
8882
b71f6f73 8883 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8884 breaking the loop. (Bug#870)
b71f6f73
KH
8885 (decode_coding_utf_16, decode_coding_emacs_mule)
8886 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8887 (decode_coding_charset): Likewise.
8888
56f668f7
MR
88892009-01-05 Martin Rudalics <rudalics@gmx.at>
8890
8891 * frame.c (x_set_frame_parameters): Make sure height (width) get
8892 applied when fullwidth (fullheight) is set. (Bug#1522)
8893
5da9424d
JB
88942009-01-04 Juanma Barranquero <lekktu@gmail.com>
8895
8896 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8897 (utc_base): Declare as ULONGLONG, not long double.
8898 (convert_time_raw): Delete.
8899 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8900 (initialize_utc_base): New function.
8901 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8902 (convert_from_time_t): Use initialize_utc_base; compute result with
8903 64-bit arithmetic.
8904 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8905
c4605e09
EZ
89062009-01-03 Eli Zaretskii <eliz@gnu.org>
8907
9acef61c 8908 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8909 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8910 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8911 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8912 [!subprocesses]: Define.
8913 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8914 (Flist_system_processes, Fsystem_process_attributes)
8915 [!subprocesses]: Call list_system_processes and
8916 system_process_attributes instead of returning Qnil.
8917
9acef61c
JB
8918 * dosfns.c (system_process_attributes, list_system_processes):
8919 New functions.
c4605e09
EZ
8920
8921 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8922
8923 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8924 Don't use the default (no-op) implementation.
8925
8b7d0a16
JR
89262009-01-03 Jason Rumney <jasonr@gnu.org>
8927
a6d46bc1
JR
8928 * keyboard.c (parse_modifiers_uncached): Wheel events are
8929 clicks (bug#687).
8930
8b7d0a16
JR
8931 * w32term.c (x_query_colors, x_query_color): New functions.
8932
8933 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8934 (svg_load_image): Cast returned pointers from dynamically loaded
8935 functions. Eliminate W32 specific code.
8936
bfe11752
DN
89372009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8938
89e2438a
DN
8939 * nsfns.m (x_set_foreground_color, x_set_background_color)
8940 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8941 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8942 x_ prefix instead of ns_. Update references.
8943 (syms_of_nsfns): Add a FIXME comment.
8944
8945 * nsterm.m (x_set_cursor_type): New prototype.
8946 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8947
bfe11752
DN
8948 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8949 for Solaris instead of incorrectly providing Qutime and Qcutime.
8950
031da700
EZ
89512009-01-02 Eli Zaretskii <eliz@gnu.org>
8952
8953 * w32.c (process_times): Compute sum of utime and stime.
8954 (system_process_attributes): Add Qtime to the alist.
8955
8956 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8957 and add them to the alist.
8958
8959 * process.c (top level) <Qtime, Qctime>: New variables.
8960 (syms_of_process): staticpro them.
8961 (Fsystem_process_attributes): Add their documentation to the doc
8962 string.
8963
8964 * process.h: Declare Qtime and Qctime.
8965
df23bf08
JR
89662009-01-02 Jason Rumney <jasonr@gnu.org>
8967
9acef61c 8968 * image.c (Qgobject): New symbol.
df23bf08
JR
8969 (syms_of_image): Initialize it.
8970 (init_svg_functions): Load some functions from gobject library.
8971
5bbdf7aa
DN
89722009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8973
8974 * frame.c (make_terminal_frame): Remove redundant code and useless
8975 block.
8976
63136da6
AS
89772009-01-01 Andreas Schwab <schwab@suse.de>
8978
8979 * process.c (conv_sockaddr_to_lisp): Add workaround for
8980 getsockname bug on BSD.
8981
9ef69046
CY
89822009-01-01 Chong Yidong <cyd@stupidchicken.com>
8983
d6fafbe0
CY
8984 * xfns.c (x_create_tip_frame): Set border width of the X window.
8985
51d861de 8986 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8987
f9c34147
JR
89882009-01-01 Jason Rumney <jasonr@gnu.org>
8989
9acef61c 8990 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8991 Don't block input, as per earlier xterm.c changes.
8992
f5497e45
AR
89932008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8994
8995 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8996 (ns_appkit_version_int): New function.
8997 (x-server-version): Use ns_appkit_version_int and follow 21+
8998 convention of returning 3 integers.
8999
c19cab20
KH
90002008-12-30 Kenichi Handa <handa@m17n.org>
9001
9002 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
9003 (CHAR_SURROGATE_PAIR_P): New macro.
9004
9005 * font.h (struct font_driver): New member get_variation_glyphs.
9006
9acef61c 9007 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9008 (Ffont_variation_glyphs): New function.
9009 (syms_of_font): Defsubr it.
9010
9011 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9012 ftfont_variation_glyphs.
9013 (setup_otf_gstring): New function.
9014 (ftfont_drive_otf): Use it.
9015 (ftfont_shape_by_flt): Handle variation selector.
9016 (ftfont_variation_glyphs): New function.
9017
28cd591f
MR
90182008-12-30 Martin Rudalics <rudalics@gmx.at>
9019
9020 * frame.c (Vemacs_iconified): Remove.
9021
7f714baf
JR
90222008-12-30 Jason Rumney <jasonr@gnu.org>
9023
9024 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9025 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9026
9d2d22ab
CY
90272008-12-30 Chong Yidong <cyd@stupidchicken.com>
9028
9029 * indent.c (Fvertical_motion): Don't advance iterator if we have
9030 reseated to the desired position.
9031
9032 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9033 checking for pos match.
9034
545312c2
KH
90352008-12-30 Kenichi Handa <handa@m17n.org>
9036
1ede3eb6
KH
9037 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9038 just get the low 8-bit of the code.
9039
545312c2
KH
9040 * font.c (font_intern_prop): Validate str as multibyte.
9041
bd7bbf29
DN
90422008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9043
31e0750e
DN
9044 * dispextern.h (struct face): Move lface and hash from the middle
9045 of bitfields.
9046
bd7bbf29
DN
9047 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9048
b5672e7c
DN
90492008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9050
9051 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9052 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9053 instead of intervals.h.
9054
d704470f
AS
90552008-12-26 Andreas Schwab <schwab@suse.de>
9056
9057 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9058 cons.
9059
54b33868
MR
90602008-12-26 Martin Rudalics <rudalics@gmx.at>
9061
9062 * textprop.c (Qminibuffer_prompt): New variable.
9063 (syms_of_textprop): Initialize it.
9064 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9065 in minibuffer-prompt face. (Bug#1662)
9066
40b615d6
JR
90672008-12-25 Jason Rumney <jasonr@gnu.org>
9068
9069 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9070
baae5c2d
JR
90712008-12-24 Jason Rumney <jasonr@gnu.org>
9072
9073 * ralloc.c (r_alloc_reset_variable): New function.
9074
9075 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9076 record of what points where. (Bug#716)
baae5c2d 9077
a9051c88
DN
90782008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9079
9080 * minibuf.c (read_minibuf): Follow the non-interactive case when
9081 running as a daemon, before detaching.
9082
8b146312
AS
90832008-12-22 Andreas Schwab <schwab@suse.de>
9084
9085 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9086 * gtkutil.c (free_widget_value): Use xfree instead of free.
9087
56f2de10
MR
90882008-12-22 Martin Rudalics <rudalics@gmx.at>
9089
9090 * frame.c (delete_frame): New function derived from
9091 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9092 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9093 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9094 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9095 * frame.h: Extern delete_frame.
9096 * window.c (window_loop):
9097 * terminal.c (delete_terminal):
9098 * xterm.c (x_connection_closed):
9099 * xfns.c (Fx_hide_tip):
9acef61c 9100 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9101
1fc200d6
JR
91022008-12-21 Jason Rumney <jasonr@gnu.org>
9103
9104 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9105 when character maps to .notdef character.
9106
5e252df2
SM
91072008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9108
9109 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9110
99b72cc4
JR
91112008-12-20 Jason Rumney <jasonr@gnu.org>
9112
9113 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9114 a graphical frame on Windows. (Bug#1325)
99b72cc4 9115
acc49a52
JD
91162008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9117
9118 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9119
6ea15123
CY
91202008-12-20 Chong Yidong <cyd@stupidchicken.com>
9121
9122 * minibuf.c (Fread_buffer): Doc fix.
9123
b2dab6c8
JR
91242008-12-20 Jason Rumney <jasonr@gnu.org>
9125
54ea0c87 9126 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9127 server name in UNC paths. (Bug#719)
54ea0c87 9128
b2dab6c8 9129 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9130 charbuf. (Bug#1035)
b2dab6c8 9131
6d1921be
DN
91322008-12-19 Daniel Engeler <engeler@gmail.com>
9133
9134 * sysdep.c (serial_configure): Fix typo.
9135
53934c98
DN
91362008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9137
9138 * sysdep.c: Include alloca.h.
f4f634e8
DN
9139 (system_process_attributes): Add implementation for Solaris.
9140
9141 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9142
06e111a6
DN
91432008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9144
9145 Reorganize implementation of Flist_system_processes and
9146 Fsystem_process_attributes. No functional changes.
9147 * process.c: Don't #include pwd.h, grp.h and limits.h.
9148 (Flist_system_processes): Just call list_system_processes.
9149 (Fsystem_process_attributes): Just call system_process_attributes.
9150 (procfs_list_system_processes, time_from_jiffies)
9151 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9152 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9153
9154 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9155 (list_system_processes): Rename from
9156 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9157 Provide a do nothing implementation.
9158 (system_process_attributes): Rename from
9159 procfs_list_system_processes.
9160 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9161 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9162
9163 * w32.c (list_system_processes): Rename from
9164 w32_list_system_processes.
9165 (system_process_attributes): Rename from
9166 w32_system_process_attributes.
9167
9168 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9169
9170 * process.h (w32_list_system_processes)
9171 (w32_system_process_attributes): Remove.
362654a6
JB
9172 (list_system_processes, system_process_attributes):
9173 New prototypes.
06e111a6 9174
6a705b23
KH
91752008-12-19 Kenichi Handa <handa@m17n.org>
9176
9177 * xfont.c (xfont_decode_coding_xlfd): New function.
9178 (xfont_encode_coding_xlfd): New function.
9179 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9180 (xfont_list): Decode and encode XLFD by iso-8859-1.
9181 (xfont_match): Likewise.
9182 (xfont_list_family): Likewise.
9183 (xfont_open): Likewise.
9184
d66c0241 9185 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9186 names are utf-8.
9187
d66c0241 9188 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9189 names are utf-8.
9190
5a130941
JD
91912008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9192
9193 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9194 changed.
bfd20325
JD
9195 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9196 clicked on a detached tool bar button.
5a130941 9197
fd95644b
DN
91982008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9199
9200 * emacs.c (main): Print and error and exit when no data is read
9201 from the pipe.
9202
e6eee6ae
JR
92032008-12-17 Jason Rumney <jasonr@gnu.org>
9204
9205 * w32font.c (w32font_has_char): Always return -1.
9206
a35dd56b
KH
92072008-12-16 Kenichi Handa <handa@m17n.org>
9208
9209 * font.c (font_open_entity): Fix previous change.
9210
0e3635c2
DN
92112008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9212
9213 * process.c: Include <limits.h>.
9214
d4835507 92152008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9216
9217 * font.c (font_update_drivers): Fix mistake in reconstructing the
9218 driver list.
9219
92202008-12-16 Chong Yidong <cyd@stupidchicken.com>
9221
9222 * font.c (font_clear_cache): Fix format of font cache data.
9223
e2cbc401
CY
92242008-12-15 Chong Yidong <cyd@stupidchicken.com>
9225
9226 * xftfont.c (xftfont_open): Free Xft font pattern if
9227 XftFontOpenPattern fails.
9228
9229 * xterm.c (x_free_frame_resources): Remove extraneous call to
9230 free_frame_faces.
9231
b131d535
CY
92322008-12-13 Chong Yidong <cyd@stupidchicken.com>
9233
9234 * xterm.c (x_delete_display): Move xim_close_dpy call to
9235 x_delete_terminal.
9236 (x_delete_terminal): Call xim_close_dpy.
9237
e6df5336
JR
92382008-12-13 Jason Rumney <jasonr@gnu.org>
9239
9240 * w32font.c (intern_font_name): New function.
9241 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9242 (w32font_open_internal, Fx_select_font): Decode font name.
9243 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9244
9245 * w32font.h (intern_font_name): Declare new function.
9246
9247 * w32uniscribe.c (add_opentype_font_name_to_list):
9248 Use intern_font_name.
9249
20d68145
CY
92502008-12-13 Chong Yidong <cyd@stupidchicken.com>
9251
9f2554de
CY
9252 * frame.c (Fdelete_frame): Call free_font_driver_list.
9253
3d9bec9a
CY
9254 * font.c (free_font_driver_list): Implement missing function.
9255
20d68145
CY
9256 * w32term.c (w32_term_init): Don't initialize the image cache
9257 here; it will be done in init_frame_faces.
9258
9259 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9260 (struct x_display_info): Remove unused member null_pixel. New
9261 member xim_callback_data.
9262
9263 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9264 (xim_initialize): Save pointer to callback function data.
9265 (xim_close_dpy): Free callback function data. Call XCloseIM,
9266 reverting 2008-11-04 change by David Smith.
9267 (x_term_init): Don't initialize the image cache here; it will be
9268 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9269 (x_delete_display): Free x_dnd_atoms member.
9270
96f9306b
KH
92712008-12-13 Kenichi Handa <handa@m17n.org>
9272
6dec9044
JB
9273 * font.c (font_rescale_ratio): Moved from xfaces.c.
9274 Argument type changed. Handle a font-spec too.
96f9306b 9275 (font_score): Check Vface_font_rescale_alist.
6dec9044 9276 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9277
9278 * xfaces.c (font_rescale_ratio): Moved to font.c.
9279
8d5b4964
CY
92802008-12-13 Chong Yidong <cyd@stupidchicken.com>
9281
9282 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9283
e6df5336
JR
92842008-12-12 Jason Rumney <jasonr@gnu.org>
9285
9286 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9287 Vwindow_system_version to the real w32 major version.
9288
97c6058a
DN
92892008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9290
9291 * term.c (init_tty): Move setting the terminal name before the
9292 potential user: maybe_fatal.
9293
ec4e88d7
CY
92942008-12-11 Chong Yidong <cyd@stupidchicken.com>
9295
d4835507
JB
9296 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9297 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9298
b4233ec9
JR
92992008-12-11 Jason Rumney <jasonr@gnu.org>
9300
8ec71e23 9301 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9302 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9303
b4233ec9 9304 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9305 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9306
011a0143
JB
93072008-12-11 Juanma Barranquero <lekktu@gmail.com>
9308
9309 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9310
3c309f34
JB
93112008-12-11 Juanma Barranquero <lekktu@gmail.com>
9312
9313 * process.c (Fsystem_process_attributes, syms_of_process):
9314 Fix typo in name of Ssystem_process_attributes.
9315 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9316
fedc6ab5
JB
93172008-12-11 Juanma Barranquero <lekktu@gmail.com>
9318
9319 * syntax.c (Fmodify_syntax_entry): Doc fix.
9320
ba3de0e8
JB
93212008-12-10 Juanma Barranquero <lekktu@gmail.com>
9322
9323 * font.c (Ffont_spec): Move usage to end of docstring.
9324
174f1c74
JR
93252008-12-10 Jason Rumney <jasonr@gnu.org>
9326
9327 * w32font.c (Qcham): New symbol.
9328 (font_supported_scripts): Add cham, and comments for other new
9329 scripts in bitfield from OpenType spec.
9d32f818
JR
9330 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9331 contain characters beyond the bmp.
174f1c74 9332
7b649478
KH
93332008-12-10 Kenichi Handa <handa@m17n.org>
9334
9335 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9336 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9337 Qunicode_sip.
9338
2133e2d1
JB
93392008-12-10 Juanma Barranquero <lekktu@gmail.com>
9340
9341 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9342 (Fcoding_system_put): Use QCdefault_char.
9343 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9344
9af886ee
CY
93452008-12-09 Chong Yidong <cyd@stupidchicken.com>
9346
74d819eb
CY
9347 * xftfont.c (syms_of_xftfont): Fix typo.
9348
4ccfa1c0 9349 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9350
7c19d3ae
DN
93512008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9352
9353 * emacs.c (main): Close daemon_pipe on exec.
9354
567826bb
CY
93552008-12-08 Chong Yidong <cyd@stupidchicken.com>
9356
9357 * termchar.h (struct tty): New members termcap_term_buffer and
9358 termcap_strings_buffer.
9359
9360 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9361 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9362 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9363 All callers changed.
9364 (init_tty): Store termcap data and string buffers in new struct
9365 tty members termcap_term_buffer and termcap_strings_buffer.
9366 (delete_tty): Free them.
4ccfa1c0 9367 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9368
aa96c42b
SZ
93692008-12-07 Seiji Zenitani <zenitani@mac.com>
9370
9371 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9372 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9373
b7e1d896
CY
93742008-12-06 Chong Yidong <cyd@stupidchicken.com>
9375
9376 * coding.c (make_conversion_work_buffer): Disable buffer
9377 modification hooks in the work buffer.
9378
b5ec91a5
EZ
93792008-12-05 Eli Zaretskii <eliz@gnu.org>
9380
9381 * process.c (procfs_system_process_attributes): If `nread' has a
9382 negative value, assign zero to it.
9383
a5d2a52b
CY
93842008-12-05 Chong Yidong <cyd@stupidchicken.com>
9385
68c5540b 9386 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9387
7bf1bb21
KH
93882008-12-05 Kenichi Handa <handa@m17n.org>
9389
9390 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9391 second character is a combining character.
9392
2fdc7d00
EZ
93932008-12-05 Eli Zaretskii <eliz@gnu.org>
9394
9395 * process.c (procfs_system_process_attributes): Don't use cmd,
9396 cmdsize, and q without initializing them first.
9397
bf6bfba8
JR
93982008-12-04 Jason Rumney <jasonr@gnu.org>
9399
9400 * w32font.c (w32font_draw): Initialize orig_clip before getting
9401 it, and delete it when finished.
9402
a3b1a468
DN
94032008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9404
9405 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9406 case when running as a daemon before detaching.
9407
8b8be8eb
JB
94082008-12-03 Juanma Barranquero <lekktu@gmail.com>
9409
805f2638 9410 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9411
b1bde622
KH
94122008-12-03 Kenichi Handa <handa@m17n.org>
9413
e500c47d
KH
9414 * font.c (font_at): Set `multibyte' at first.
9415
ca516334
KH
9416 * coding.c (decode_coding_charset): Check type of an element of
9417 vector VALIDS.
7bf1bb21 9418 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9419
4ccfa1c0 9420 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9421 (font_for_char): Likewise.
9422
1e5ecd37
CY
94232008-12-03 Chong Yidong <cyd@stupidchicken.com>
9424
d5b01609 9425 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9426 (font_update_lface): Handle fonts with corrupted size specs,
9427 i.e. non-int and non-float.
d5b01609 9428
11e3a6e4 9429 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9430 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9431 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9432
ab06788b
CY
9433 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9434
1e5ecd37 9435 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9436 underline_minimum_offset for underline position.
1e5ecd37 9437
63c125ab
DN
94382008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9439
9440 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9441
9442 * character.c (c_string_width): Specify the type for LEN.
9443
3a8406e1
KH
94442008-12-03 Kenichi Handa <handa@m17n.org>
9445
4ccfa1c0 9446 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9447 (decode_coding_utf_8): Likewise.
4ccfa1c0 9448 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9449 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9450
651df7d9
CY
94512008-12-02 Chong Yidong <cyd@stupidchicken.com>
9452
9453 * keyboard.c (make_lispy_position): Only use PT if the selected
9454 window is current.
9455
1f625c6c
AS
94562008-12-02 Andreas Schwab <schwab@suse.de>
9457
f7741ce9
AS
9458 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9459
1f625c6c
AS
9460 * doprnt.c (doprnt1): Fix size of charbuf.
9461
92bc2678
CY
94622008-12-02 Chong Yidong <cyd@stupidchicken.com>
9463
9464 * keyboard.c (timer_check): Revert last change.
9465
93b9e8cc
JB
94662008-12-02 Juanma Barranquero <lekktu@gmail.com>
9467
9468 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9469
fd7a37d5
JB
94702008-12-01 Juanma Barranquero <lekktu@gmail.com>
9471
9472 * makefile.w32-in: Update dependencies.
9473 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9474
c115043b
AS
94752008-12-01 Andreas Schwab <schwab@suse.de>
9476
9477 * font.c (register_font_driver): Use xmalloc.
9478 (font_put_frame_data): Likewise.
9479
f5668d2a
CY
94802008-12-01 Chong Yidong <cyd@stupidchicken.com>
9481
860d96be
CY
9482 * xfaces.c (realize_x_face): Make abort condition clearer.
9483
f5668d2a
CY
9484 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9485
379c17e7
CY
94862008-11-30 Chong Yidong <cyd@stupidchicken.com>
9487
9488 * keyboard.c (timer_check): After a timer runs, ensure that the
9489 selected window's buffer is current.
9490
35f36d65
JB
94912008-11-30 Juanma Barranquero <lekktu@gmail.com>
9492
f952c61c
JB
9493 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9494 It was accidentally restored by the Unicode merge.
9495
35f36d65
JB
9496 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9497
b23077df
JB
94982008-11-29 Juanma Barranquero <lekktu@gmail.com>
9499
9500 * w32proc.c: Include "coding.h".
9501 (Fw32_short_file_name): Encode filename passed to Windows API.
9502 (Fw32_long_file_name): Encode filename passed to Windows API and
9503 decode back the result. (Bug#1433)
9504
b8ebe9dd
KH
95052008-11-29 Kenichi Handa <handa@m17n.org>
9506
8cc53f96
KH
9507 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9508 not before accessing it.
9509
b8ebe9dd
KH
9510 * charset.c (Fdefine_charset_internal): After calculating
9511 min_char, max_char, and fastmap, copy the charset structure again.
9512 (encode_char): Fix the previous change.
9513
59bc82c0
SZ
95142008-11-28 Seiji Zenitani <zenitani@mac.com>
9515
9516 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9517
9518 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9519
9520 * nsterm.m (x_set_frame_alpha): New function.
9521
32247e3d
EZ
95222008-11-27 Eli Zaretskii <eliz@gnu.org>
9523
9524 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9525
b003e5ff
JB
95262008-11-27 Juanma Barranquero <lekktu@gmail.com>
9527
9528 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9529 pointer to check_face_name.
9530
708550f5
KH
95312008-11-27 Kenichi Handa <handa@m17n.org>
9532
9533 * category.h (SET_CATEGORY_SET): Call set_category_set.
9534 (set_category_set): Extern it.
9535
9536 * category.c (hash_get_category_set): New function.
9537 (Fmodify_category_entry): Adjusted for the change of
9538 char_table_ref_and_range. Call hash_get_category_set to get a
9539 category set to store in the table.
9540
9541 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9542 Funify_charset.
9543
2ae37cf0 9544 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9545 (DECODE_CHAR): Check if the decoder vector is ready.
9546 (ENCODE_CHAR): Check if the encoder char-table is ready.
9547 (maybe_unify_char): Extern it.
9548
9549 * charset.c (Vchar_unified_charset_table): Delete it.
9550 (inhibit_load_charset_map): New variable.
9551 (temp_charset_work): New variable.
9552 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9553 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9554 New macros.
9555 (load_charset_map): Meaning of control_flag changed. If
9556 inhibit_load_charset_map is nonzero, setup a table in
9557 temp_charset_work.
9558 (load_charset): New argument control_flag.
9559 (map_charset_for_dump): New function.
9560 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9561 map_charset_for_dump.
9562 (Fdefine_charset_internal): If the charset method is MAP, load
9563 mapping tables by calling load_charset.
9564 (Funify_charset): Don't load a mapping table but directly set
9565 Vchar_unify_table.
9566 (maybe_unify_char): New function.
9567 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9568 Handle the case of inhibit_load_charset_map being nonzero.
9569 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9570 Handle the case of inhibit_load_charset_map being nonzero.
9571 (Fclear_charset_maps): Just free temp_charset_work.
9572 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9573 variable.
9574
9575 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9576 change of char_table_ref_and_range.
9577 (char_table_ref_and_range): Change the meaning of argument FROM
9578 and TO. Now the caller must provide initial values for *FROM
9579 and *TO.
9580
9581 * fontset.c (fontset_add): Adjusted for the change of
9582 char_table_ref_and_range.
9583 (fontset_get_font_group): Likewise.
9584 (Ffontset_info): Likewise.
9585
9586 * keymap.c (describe_vector): Adjusted for the change of
9587 char_table_ref_and_range. For char-table, put boundary between
9588 non-ASCII and 8-bit characters.
9589
9590 * print.c (print_object): For bool-vector, delete unnecessary
9591 check of ASCII_BYTE_P.
9592
9196133b
JR
95932008-11-26 Jason Rumney <jasonr@gnu.org>
9594
9595 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9596 leading in font height. (Bug#879)
9196133b 9597
9f688acf
GM
95982008-11-26 Glenn Morris <rgm@gnu.org>
9599
9600 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9601 redefinition with ifdef. (Bug#1383)
9602
90d19aff
AR
96032008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9604
9605 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9606
4ccfa1c0 96072008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9608
9609 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9610 New EmacsView methods.
9611 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9612 Fixes bug #1048,1357,1414.
9613
96142008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9615
9616 Fix bug #1362.
9617 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9618 is not an indexed color.
9619 * nsterm.m (free_indexed_color): Add argument checking.
9620 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9621
e7d5ecb3
CY
96222008-11-24 Chong Yidong <cyd@stupidchicken.com>
9623
9624 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9625 Document confirm-after-completion value for
9626 minibuffer-completion-confirm.
9627
c285743c
JR
96282008-11-24 Jason Rumney <jasonr@gnu.org>
9629
9630 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9631 warning.
9632
b0857706
JR
96332008-11-23 Jason Rumney <jasonr@gnu.org>
9634
9635 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9636 restored before returning.
9637
9638 * w32font.c (check_face_name): New function.
9639 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9640 fonts. (Bug#642)
b0857706 9641
ee50ff07
MR
96422008-11-22 Martin Rudalics <rudalics@gmx.at>
9643
9644 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9645 confirm-nonexistent-file-or-buffer in doc-string.
9646
b8ff72fa
SM
96472008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9648
9649 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9650 Fix copy/paste typo. Add checks.
9651
cee53ed4
KH
96522008-11-21 Kenichi Handa <handa@m17n.org>
9653
9654 * coding.c (detect_coding_iso_2022): Reject invalid composition
9655 sequence.
9656 (DECODE_COMPOSITION_START): If the current source is the last
9657 block, and the current composition doesn't end, regard this
9658 sequence as invalid.
9659 (decode_coding_iso_2022): Handle invalid composition sequence.
9660
f6ef1e65
MR
96612008-11-20 Martin Rudalics <rudalics@gmx.at>
9662
9663 * window.c (coordinates_in_window): Don't return
9664 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9665 line when the window is not the rightmost one. (Bug#1372)
9666
e08b1705
MR
96672008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9668
9669 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9670
ad98e89f
EZ
96712008-11-15 Eli Zaretskii <eliz@gnu.org>
9672
9673 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9674 and bright_bg if noninteractive is non-zero.
9675
fb098a4b
CY
96762008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9677
9678 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9679 x_draw_glyph_string_background.
9680
9681 * w32term.c (x_draw_glyph_string): Likewise.
9682
ce952b6e
CY
96832008-11-15 Chong Yidong <cyd@stupidchicken.com>
9684
9685 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9686 the next glyph string once past the overhang width.
9687
9688 * nsterm.m (ns_draw_glyph_string): Likewise.
9689
9690 * w32term.c (x_draw_glyph_string): Likewise.
9691
26ea7079
CY
96922008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9693
9694 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9695 double file close.
9696
1c33c906
MR
96972008-11-14 Martin Rudalics <rudalics@gmx.at>
9698
9699 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9700 dedicated status of window before attempting to display another
9701 buffer in it.
9702
8fc29035
JB
97032008-11-14 Juanma Barranquero <lekktu@gmail.com>
9704
9705 * msdos.c (Fmsdos_long_file_names):
9706 (syms_of_msdos) <dos-unsupported-char-glyph>:
9707 * dosfns.c (Fint86): Fix typos in docstrings.
9708
55fb4286
EZ
97092008-11-14 Eli Zaretskii <eliz@gnu.org>
9710
9711 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9712
3fda0315
KY
97132008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9714
9715 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9716
7e849c17
CY
97172008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9718
9719 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9720
9721 * frame.h: Negative alpha means "don't touch".
9722
9723 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9724
9725 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9726
b9fd67bd
DN
97272008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9728
9729 * hftctl.c:
9730 * chpdef.h:
9731 * acldef.h: Remove files used only for systems no longer supported.
9732
9733 * Makefile.in: Fix .o alphabetical ordering.
9734 (hftctl.o): Remove dependency, file removed.
9735 (keymap.o, print.o): Depend on charset.h.
9736
d5998e03
KH
97372008-11-10 Kenichi Handa <handa@m17n.org>
9738
2ae37cf0 9739 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9740
be70e183
CY
97412008-11-08 Chong Yidong <cyd@stupidchicken.com>
9742
9743 * dired.c (file_name_completion): If completion_ignore_case is
9744 enabled, ignore case when checking completion-regexp-list.
9745
7cf94eac
EZ
97462008-11-08 Eli Zaretskii <eliz@gnu.org>
9747
9748 * vm-limit.c (get_lim_data): Fix last change.
9749
ee107a89
KH
97502008-11-08 Kenichi Handa <handa@m17n.org>
9751
9752 * character.c (Fget_byte): New function.
9753 (syms_of_character): Defsubr Fget_byte.
9754
5fd15622
CY
97552008-11-07 Chong Yidong <cyd@stupidchicken.com>
9756
9757 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9758 cursor position is valid after scrolling.
9759
13d62fad
JB
97602008-11-06 Juanma Barranquero <lekktu@gmail.com>
9761
9762 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9763
a1dd2936
GM
97642008-11-06 Glenn Morris <rgm@gnu.org>
9765
9766 * xterm.c (handle_one_xevent): Don't let popup menus cause
9767 mouse-autoselect-window related window switching. (Bug#1261)
9768
860cd236
CY
97692008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9770
9771 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9772
653a3150
AS
97732008-11-04 Andreas Schwab <schwab@suse.de>
9774
9775 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9776
870f5cac
CY
97772008-11-03 Chong Yidong <cyd@stupidchicken.com>
9778
9779 * xfns.c (Fx_wm_set_size_hint): New function.
9780
1e02f3cb
MR
97812008-11-03 Martin Rudalics <rudalics@gmx.at>
9782
9783 * textprop.c (Fprevious_single_char_property_change): Return 0
9784 when there's no change in a string. (Bug#1301)
9785
e630dfc6
MR
97862008-11-02 Martin Rudalics <rudalics@gmx.at>
9787
9788 * frame.c (do_switch_frame): New argument NORECORD passed to
9789 Fselect_window.
9790 (Fselect_frame): New argument NORECORD passed to
9791 do_switch_frame.
9792 (Fset_frame_selected_window): New argument NORECORD passed to
9793 Fselect_frame.
9794 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9795 in call of do_switch_frame.
9796 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9797 Handle NORECORD argument in call of Fselect_frame.
9798 * lisp.h (do_switch_frame, Fselect_frame)
9799 (Fset_frame_selected_window): Adjust declarations.
9800 * window.c (select_frame_norecord): New function.
9801 (run_window_configuration_change_hook): Use it and call
9802 Fselect_frame with NORECORD set.
9803 (Fselect_window): Pass NORECORD to Fselect_frame.
9804 (Fset_window_configuration): Handle NORECORD argument in call of
9805 do_switch_frame.
9806 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9807 Fset_frame_selected_window.
9808 * keyboard.c (command_loop_1): Handle NORECORD in call of
9809 Fselect_frame (currently ifdefd).
9810
9020b223
GM
98112008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9812
9813 * emacs.c (USAGE2): Untabify.
9814
793ffee8
SM
98152008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9816
9817 * composite.c (fill_gstring_header): Fix copy/paste typo.
9818
ab6d1131
MR
98192008-10-31 Martin Rudalics <rudalics@gmx.at>
9820
9821 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9822 (Fother_window): Rename argument and rewrite doc-string.
9823 (select_window_norecord): Fix return value. (Bug#1276)
9824
601a9cf1
JB
98252008-10-30 Juanma Barranquero <lekktu@gmail.com>
9826
9827 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9828 new frames overriding foreground for tooltips. Based on similar patch
9829 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9830
813b0652
CY
98312008-10-29 Chong Yidong <cyd@stupidchicken.com>
9832
9833 * emacs.c (Fdaemon_initialized): Initialize nfd.
9834
4414f58f
MR
98352008-10-29 Martin Rudalics <rudalics@gmx.at>
9836
9837 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9838 (Fwindow_text_height): Clarify doc-strings.
9839 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9840 doc-string of window-scroll-functions.
9841
ecdcaa09
RS
98422008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9843
9844 * category.c (syms_of_category): Fix typo in docstring.
9845
23fe745a
JB
98462008-10-28 Juanma Barranquero <lekktu@gmail.com>
9847
9848 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9849 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9850 Fix typos in docstrings.
9851
ff808935
DN
98522008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9853
9854 * emacs.c (daemon_pipe): Make non-static.
9855 (IS_DAEMON): Move definition ...
9856 * lisp.h (IS_DAEMON): ... here.
9857 (daemon_pipe): Declare.
9858 (is_daemon): Remove.
9859 * dispnew.c (init_display): Use IS_DAEMON.
9860
fc012771
SM
98612008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9862
9863 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9864 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9865
9866 * emacs.c (is_daemon): Remove.
9867 (main): Don't set is_daemon.
9868 (IS_DAEMON): New macro.
9869 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9870 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9871 parent exits.
9872 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9873
d8bdbe6f
CY
98742008-10-27 Chong Yidong <cyd@stupidchicken.com>
9875
d1a072bf
CY
9876 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9877 over-sized glyph, draw it with the default glyph width.
9878
e2e325aa
CY
9879 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9880 glyph, draw it with the default glyph width.
9881
9882 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9883 glyph, draw it with the default glyph width.
9884
d8bdbe6f
CY
9885 * xdisp.c (try_scrolling): When computing the distance from the
9886 scroll margin to PT, try moving some distance past the window
9887 bottom before giving up.
9888
7bfac547
MR
98892008-10-27 Martin Rudalics <rudalics@gmx.at>
9890
9891 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9892 (Fset_window_buffer): Explain in doc-string that a window can be
9893 "strongly" dedicated to its buffer.
9894
4ff029f6
DN
98952008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9896
9897 * emacs.c (daemon_name): New variable.
9898 (main): Deal with --daemon=SERVER_NAME.
9899 (Fdaemonp): Return a name if one was passed to --daemon.
9900
5790ef40
DN
99012008-10-26 Romain Francoise <romain@orebokech.com>
9902
f9bd0df9 9903 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9904 (main): Create a pipe before forking, make the parent exit only after
9905 the child has closed its end of the pipe. Move closing the
9906 descriptors ...
9907 (Fdaemon_initialized): ... here. New function.
9908
f5385255
SM
99092008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9910
4d632321
SM
9911 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9912 the previous unoptimized table.
9913
f5385255
SM
9914 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9915 the distinction between non-nil and non-t value of `dedicated'.
9916
6c56a0f3
CY
99172008-10-25 Chong Yidong <cyd@stupidchicken.com>
9918
9919 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9920 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9921
fec89261
MR
99222008-10-25 Martin Rudalics <rudalics@gmx.at>
9923
9924 * window.c (Fget_buffer_window, Fdelete_windows_on)
9925 (Freplace_buffer_in_windows): Make buffer argument optional and
9926 rename to buffer_or_name.
9927
34fcddd0
CY
99282008-10-24 Chong Yidong <cyd@stupidchicken.com>
9929
f5385255
SM
9930 * xdisp.c (handle_single_display_spec, handle_display_prop):
9931 Undo 2005-05-16 change.
34fcddd0
CY
9932 (handle_stop): Pop iterator if it's loaded with an empty string.
9933 (get_overlay_strings_1): Don't save iterator if it's loaded with
9934 an empty string (bug#1201).
9935
064766f2
KH
99362008-10-24 Kenichi Handa <handa@m17n.org>
9937
9938 * ftfont.c (ftfont_otf_features): Fix previous change.
9939 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9940 calling ftfont_otf_features.
9941
f9bd0df9 99422008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9943
9944 * font.c (font_match_p): Fix for the case that a vector of
9945 characters is in script-representative-chars.
9946
1dae9197
MA
99472008-10-24 Michael Albinus <michael.albinus@gmx.de>
9948
9949 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9950 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9951 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9952 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9953 macro. (Bug#1186)
1dae9197 9954
f9bd0df9 99552008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9956
9957 * s/sol2-10.h: New file.
9958
878a4584
JB
99592008-10-23 Juanma Barranquero <lekktu@gmail.com>
9960
9961 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9962 poor beast has survived 9+ years and the jump from xterm.c!).
9963
cd265ca6
MR
99642008-10-23 Martin Rudalics <rudalics@gmx.at>
9965
9966 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9967 Reword doc-string.
f5385255 9968 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9969
472a4dc9
JB
99702008-10-23 Juanma Barranquero <lekktu@gmail.com>
9971
9972 * character.c (syms_of_character) <script-representative-chars>:
9973 <unicode-category-table>: Doc fixes.
9974
159bd5a2
NF
99752008-10-23 Noah Friedman <friedman@splode.com>
9976
9977 * coding.c (make_conversion_work_buffer): Check that
9978 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9979 Fget_buffer_create.
9980
49f9c344
KH
99812008-10-23 Kenichi Handa <handa@m17n.org>
9982
9983 * font.c (font_add_log): Check the values of extra properties.
9984
12bb3111
MR
99852008-10-22 Martin Rudalics <rudalics@gmx.at>
9986
9987 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9988 Reword doc-string.
9989 (Fset_window_parameter): Use NILP.
9990 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9991 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9992
bbeb4e99
JB
99932008-10-22 Juanma Barranquero <lekktu@gmail.com>
9994
9995 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9996
99972008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9998
9999 * nsfns.m (ns_appkit_version): New function.
10000 (x-server-version): Use it.
10001 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
10002 (x-server-vendor): Don't check_ns().
10003
10004 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
10005
a9b555d3
JB
100062008-10-22 Juanma Barranquero <lekktu@gmail.com>
10007
10008 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10009 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10010
4626499f
KH
100112008-10-22 Kenichi Handa <handa@m17n.org>
10012
e3681952
KH
10013 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10014 scripts.
10015
4626499f
KH
10016 * category.c (word_boundary_p): Check scripts instead of charset.
10017 Handle nil value in word-separating-categories and
10018 word-combining-categories.
10019 (syms_of_category): Fix docstrings of word-separating-categories
10020 and word-combining-categories.
10021
1560f91a
EZ
100222008-10-21 Eli Zaretskii <eliz@gnu.org>
10023
10024 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10025 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10026
f4668441
MR
100272008-10-21 Martin Rudalics <rudalics@gmx.at>
10028
10029 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10030 Rename arg "buffer" to "buffer_or_name".
10031 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10032 it optional.
10033 (no_switch_window): Remove since the return value is not used.
a9b555d3 10034 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10035 Consider window as dedicated when Fwindow_dedicated_p returns a
10036 non-nil value.
10037 * lisp.h: Remove prototype for no_switch_window.
10038
fd75ddb2
JD
100392008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10040
10041 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10042 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10043
07295713
KH
100442008-10-21 Kenichi Handa <handa@m17n.org>
10045
10046 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10047 check Vlatin_extra_code_table.
10048
712adc82
EZ
100492008-10-20 Eli Zaretskii <eliz@gnu.org>
10050
10051 * fileio.c (Fset_file_modes): Doc fix.
10052
f549eb0b
MA
100532008-10-19 Michael Albinus <michael.albinus@gmx.de>
10054
10055 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10056 in arrays.
10057
aac0c6e3
MR
100582008-10-19 Martin Rudalics <rudalics@gmx.at>
10059
10060 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10061 Mention kill-buffer in doc-string.
10062 (Fset_window_buffer): Reinsert tem check removed in last commit.
10063 (Fenlarge_window, Fshrink_window): Have argument names and
10064 doc-string follow Elisp manual more closely.
10065
100662008-10-18 Eli Zaretskii <eliz@gnu.org>
10067
10068 * fileio.c (Fset_file_modes): Doc fix.
10069
100702008-10-18 Martin Rudalics <rudalics@gmx.at>
10071
10072 * window.c (Fwindow_width, Fset_window_start)
10073 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10074 (Fdelete_windows_on, Freplace_buffer_in_windows):
10075 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10076 (Fwindow_dedicated_p): Make window argument optional.
10077 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10078 (Fset_window_buffer): Respect any non-nil dedicated value for
10079 window. Rename "buffer" argument to "buffer_or_name".
10080
100812008-10-18 Ulrich Mueller <ulm@gentoo.org>
10082
10083 * m/sh3.h: New file, machine description for SuperH.
10084
100852008-10-17 Martin Rudalics <rudalics@gmx.at>
10086
10087 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10088
100892008-10-17 Kenichi Handa <handa@m17n.org>
10090
10091 * ftfont.c (ftfont_otf_features): Fix indexing
10092 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10093
100942008-10-16 Magnus Henoch <mange@freemail.hu>
10095
10096 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10097 (Fdbus_call_method_asynchronously): Ditto.
10098 This change makes C-h f display the argument list.
10099
101002008-10-16 Chong Yidong <cyd@stupidchicken.com>
10101
10102 * fileio.c (Fexpand_file_name): Doc fix.
10103
10104 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10105 of :foreground and :background equivalent to unspecified (20.x
10106 compatibility).
10107
101082008-10-15 Eli Zaretskii <eliz@gnu.org>
10109
10110 * buffer.c (syms_of_buffer): Doc fix.
10111
101122008-10-14 Kenichi Handa <handa@m17n.org>
10113
10114 * font.c (font_clear_prop): When clearing font width, clear the
10115 average width field too.
10116
101172008-10-12 Andreas Schwab <schwab@suse.de>
10118
10119 * ftfont.c (ftfont_shape_by_flt): Make static.
10120 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10121
10122 * font.c: Don't include <m17n-flt.h>.
10123
101242008-10-10 Eli Zaretskii <eliz@gnu.org>
10125
10126 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10127
101282008-10-09 Eli Zaretskii <eliz@gnu.org>
10129
10130 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10131 away code.
10132
101332008-10-09 Chong Yidong <cyd@stupidchicken.com>
10134
10135 * dispnew.c (update_text_area): Avoid looping due to large glyph
10136 overhangs (bug#1070).
10137
101382008-10-09 Kenichi Handa <handa@m17n.org>
10139
10140 * fontset.c (face_for_char): If face->fontset is negative, just
10141 return ascii_face.
10142
f5385255
SM
10143 * font.c (font_delete_unmatched): Fix previous change.
10144 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10145
101462008-10-09 Martin Rudalics <rudalics@gmx.at>
10147
10148 * frame.c (Fraise_frame): On text-only terminals select frame in
10149 order to make it visible. (Bug#1061)
10150
101512008-10-08 Chong Yidong <cyd@stupidchicken.com>
10152
10153 * fontset.c (fontset_find_font): Check frame validity.
10154
101552008-10-07 Chong Yidong <cyd@stupidchicken.com>
10156
a9b555d3 10157 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10158 (xg_display_close): Allow Emacs to close all displays (bug#985).
10159
101602008-10-06 Andreas Schwab <schwab@suse.de>
10161
f5385255 10162 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10163
101642008-10-06 Chong Yidong <cyd@stupidchicken.com>
10165
f5385255 10166 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10167
a9b555d3 10168 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10169
10170 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10171 during initialization.
10172
101732008-10-04 Eli Zaretskii <eliz@gnu.org>
10174
10175 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10176 whole thing on MSDOS frames as well as on a TTY.
10177
10178 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10179 well as for TTY.
10180 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10181 well as on a TTY.
10182
10183 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10184 as well as for TTY.
10185
10186 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10187
10188 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10189 MSDOS frames as well.
10190
101912008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10192
10193 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10194 correct arguments.
b71ac3dd 10195 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10196
101972008-10-03 Glenn Morris <rgm@gnu.org>
10198
10199 * emacs.c (USAGE1): Add --daemon.
10200
102012008-10-02 Eli Zaretskii <eliz@gnu.org>
10202
10203 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10204 100, so it's in percents as advertised.
10205
102062008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10207
10208 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10209 (ns_output.current_cursor, ns_output.desired_cursor)
10210 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10211 (FRAME_NEW_CURSOR_COLOR): Remove.
10212
10213 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10214 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10215 enumeration (HOLLOW_BOX_CURSOR, etc.).
10216
10217 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10218 (draw_window_cursor): Simplify code.
f5385255
SM
10219 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10220 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10221 updates manually.
a9b555d3
JB
10222 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10223 Use core Emacs cursor types.
aac0c6e3 10224
b8ff72fa 10225 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10226
102272008-10-02 Martin Rudalics <rudalics@gmx.at>
10228
10229 * process.c (Faccept_process_output): Fix doc-string.
10230
102312008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10232
10233 * gmalloc.c (__sbrk): Also define for uClibc.
10234
10235 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10236 for uClibc.
10237
102382008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10239
10240 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10241 styles.
10242 (nsfont_open): Reenable the cache.
10243
102442008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10245
10246 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10247 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10248
102492008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10250
10251 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10252 a suspended terminal.
10253
102542008-09-30 Michael Albinus <michael.albinus@gmx.de>
10255
10256 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10257
102582008-09-30 Eli Zaretskii <eliz@gnu.org>
10259
10260 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10261
102622008-09-30 Chong Yidong <cyd@stupidchicken.com>
10263
10264 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10265 in a continued line coincides with a line beginning.
10266
102672008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10268
10269 * nsfont.m (nsfont_trait_distance): Fix bug.
10270 (nsfont_list): Return a list rather than a vector (syncs with Handa
10271 changes of 2008-05-14).
10272 (nsfont_open): Improve logging.
10273
102742008-09-29 Andreas Schwab <schwab@suse.de>
10275
10276 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10277
102782008-09-28 Martin Rudalics <rudalics@gmx.at>
10279
10280 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10281 name as char-resolve-modifiers.
10282 Reported by: Markus Triska <markus.triska@gmx.at>
10283
102842008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10285
10286 * dispnew.c (init_display): Return earlier when running as a daemon.
10287
102882008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10289
10290 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10291
102922008-09-27 Eli Zaretskii <eliz@gnu.org>
10293
10294 * composite.c (Fcomposition_get_gstring)
10295 (Fcompose_region_internal, Fcompose_string_internal)
10296 (Ffind_composition_internal): Doc fix.
10297 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10298 (syms_of_composite) <auto-composition-function>: Doc fix.
10299 (syms_of_composite) <composition-function-table>: Doc fix.
10300
103012008-09-25 Chong Yidong <cyd@stupidchicken.com>
10302
10303 * search.c (wordify): New argument for lax word-ends.
10304 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10305
103062008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10307
10308 * lisp.h (is_daemon): Declare.
10309 * dispnew.c (init_display): Do not try to initialize the terminal
10310 when running as a daemon.
10311
103122008-09-22 Chong Yidong <cyd@stupidchicken.com>
10313
10314 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10315 x_display_pixel_height.
10316
103172008-09-22 Martin Rudalics <rudalics@gmx.at>
10318
10319 * undo.c (record_point): Don't call Fundo_boundary for first
10320 change. (Bug#731)
10321
103222008-09-22 Juanma Barranquero <lekktu@gmail.com>
10323
10324 * emacs.c (Fdaemonp): Doc fix.
10325
103262008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10327
10328 * emacs.c (main): Place #ifdef in the proper place.
10329
103302008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10331
10332 * emacs.c (standard_args): Add --daemon.
10333 (main): Disconnect from the terminal when --daemon is passed.
10334 (is_daemon): New variable.
10335 (Fdaemonp): New function.
10336 (syms_of_emacs): Defsubr it.
10337
103382008-09-20 Chong Yidong <cyd@stupidchicken.com>
10339
10340 * xdisp.c (get_next_display_element): Handle string display
10341 correctly when checking for the end of a box run.
10342
103432008-09-20 Glenn Morris <rgm@gnu.org>
10344
10345 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10346 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10347 (Frename_file): Avoid copying to trash if a rename involves
10348 a delete. (Bug#964).
10349
103502008-09-20 Eli Zaretskii <eliz@gnu.org>
10351
10352 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10353 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10354 frames as well as termcap frames.
10355 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10356 get_named_tty.
10357
103582008-09-19 Eli Zaretskii <eliz@gnu.org>
10359
10360 * process.c (procfs_system_process_attributes): Fix cmdline in
10361 case /proc/PID/cmdline is empty.
10362
10363 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10364 x_display_pixel_height.
10365
103662008-09-19 Juanma Barranquero <lekktu@gmail.com>
10367
10368 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10369
10370 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10371 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10372
103732008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10374
10375 * dispextern.h (struct it): Move line_wrap away from the middle of
10376 bitfields. Move voffset in struct iterator_stack_entry after the
10377 bitfields. Move tab_width near after another short.
10378
103792008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10380
10381 * frame.h (struct frame): Move alpha from the middle of bitfields.
10382
10383 * window.h (struct window): Move frozen_window_start_p after the
10384 rest of the bitfields to reduce padding.
10385
103862008-09-18 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * xterm.h (x_display_info): Remove `height' and `width' members.
10389
10390 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10391
10392 * w32term.h (w32_display_info): Remove `height', `width',
10393 `height_in', and `width_in' members.
10394
b8ff72fa
SM
10395 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10396 New functions.
aac0c6e3
MR
10397 (x_calc_absolute_position): Use them.
10398 (x_term_init): Omit removed `height' and `width' members.
10399
b8ff72fa
SM
10400 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10401 New functions.
aac0c6e3
MR
10402 (w32_read_socket, x_calc_absolute_position): Use them.
10403 (w32_initialize_display_info, w32_term_init): Omit removed members
10404 of w32_display_info.
10405
b8ff72fa
SM
10406 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10407 New functions.
10408 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10409
b8ff72fa
SM
10410 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10411 New functions.
aac0c6e3
MR
10412 (x_calc_absolute_position): Use them.
10413 (x_term_init): Omit removed `height' and `width' members.
10414
10415 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10416 (compute_tip_xy):
10417 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10418 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10419 x_display_pixel_width.
10420
104212008-09-18 Kenichi Handa <handa@m17n.org>
10422
10423 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10424 (composition_compute_stop_pos): Fix handling of static composition.
10425 (Fcomposition_get_gstring): Check FROM and TO at first.
10426
104272008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10428
46e722a9 10429 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10430 mixup (YAILOM).
10431
104322008-09-17 Chong Yidong <cyd@stupidchicken.com>
10433
10434 * indent.c (Fvertical_motion): Use position reported by iterator
10435 instead of PT for determining screen motion (bug#943).
10436
104372008-09-17 Romain Francoise <romain@orebokech.com>
10438
10439 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10440
104412008-09-17 Kenichi Handa <handa@m17n.org>
10442
10443 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10444
10445 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10446 if necessary.
10447
104482008-09-16 Kenichi Handa <handa@m17n.org>
10449
10450 * coding.c (make_conversion_work_buffer): Avoid calling
10451 Fget_buffer_create if it is not necessary.
10452
104532008-09-15 Martin Rudalics <rudalics@gmx.at>
10454
10455 * window.c (Fselect_window): Don't update window_select_count and
10456 use_time when norecord is not nil.
10457
104582008-09-14 Kenichi Handa <handa@m17n.org>
10459
10460 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10461 specpdl_ptr.
10462
104632008-09-12 Kenichi Handa <handa@m17n.org>
10464
10465 * indent.c (scan_for_column): Don't handle automatic composition
10466 if the current buffer is not associated with a window.
10467
10468 * composite.c (composition_reseat_it): If the current buffer is
10469 not associated with a window, ignore the automatic composition.
10470 (find_automatic_composition): Likewise.
10471
104722008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10473
10474 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10475 (Fgpm_mouse_stop): Use it.
10476 * termhooks.h (close_gpm): Declare.
10477 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10478 connection if Gpm_GetEvent fails.
10479
10480 * window.c (set_window_buffer): Always preserve current-buffer.
10481
104822008-09-12 Glenn Morris <rgm@gnu.org>
10483
10484 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10485
104862008-09-11 Glenn Morris <rgm@gnu.org>
10487
10488 * charset.c (charset-map-path): Doc fix.
10489
104902008-09-10 Kenichi Handa <handa@m17n.org>
10491
10492 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10493
10494 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10495 compose a grapheme cluster with the preceding base glyph.
10496
10497 * composite.c (composition_compute_stop_pos): Fix previous change.
10498 Reset cmp_it->id to -1 at first.
10499
105002008-09-10 Glenn Morris <rgm@gnu.org>
10501
10502 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10503
105042008-09-09 Chong Yidong <cyd@stupidchicken.com>
10505
10506 * keyboard.c (read_key_sequence): Reapply translation maps when
10507 switching keyboards.
10508
105092008-09-09 Kenichi Handa <handa@m17n.org>
10510
10511 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10512 characters.
10513
10514 * composite.c (FORWARD_CHAR): Fix calculation
10515 of (POSITION).pos_byte.
10516 (composition_compute_stop_pos): Limit the search of composition to
10517 at most 500 characters ahead. If we reach the limit or find a
10518 newline, set cmp_it->ch to -2 and return 0.
10519 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10520
105212008-09-08 Kenichi Handa <handa@m17n.org>
10522
10523 * indent.c (Fvertical_motion): Be sure to set
10524 it_overshoot_expected if it.cmp_it.id is non-negative.
10525
105262008-09-07 Andreas Schwab <schwab@suse.de>
10527
10528 * callproc.c (Fcall_process): Don't hold references to string data
10529 across garbage collection. Move initialisation of new_argv down
10530 to avoid compiler bug.
10531
105322008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10533
10534 * process.c (Fsystem_process_attributes): Doc fix.
10535
105362008-09-07 Chong Yidong <cyd@stupidchicken.com>
10537
10538 * callproc.c (Fcall_process): Canonicalize current directory name.
10539
10540 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10541 iterator advances to the next line if the current line ends in a
10542 continued tab.
10543
105442008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10545
10546 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10547 member to point to cmp_from.
10548
10549 * xdisp.c: Doc fix for references to gidx data member.
10550
105512008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10552
10553 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10554
105552008-09-07 Kenichi Handa <handa@m17n.org>
10556
10557 * composite.c (FORWARD_CHAR): Check STOP after
10558 incrementing (POSITION).pos.
10559
105602008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10561
10562 * process.c (Fsystem_process_attributes): Doc fix.
10563
105642008-09-06 Chong Yidong <cyd@stupidchicken.com>
10565
10566 * keyboard.c (Ftop_level): Doc fix.
10567
105682008-09-06 Eli Zaretskii <eliz@gnu.org>
10569
10570 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10571 minibuffer, don't let lower part of menu invade the echo area.
10572
10573 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10574 "char *q" to access menu text and advance through it. Revert the
10575 change that displayed ">" instead of ASCII character 0x10.
10576
105772008-09-05 Eli Zaretskii <eliz@gnu.org>
10578
10579 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10580 toggle boxes and radio buttons on MS-DOS as well.
10581
105822008-09-05 Kenichi Handa <handa@m17n.org>
10583
10584 * composite.c (autocmp_chars): Check lookback count.
10585 (composition_compute_stop_pos): Set cmp_it->lookback.
10586 (composition_reseat_it): Check lookback count.
10587 (struct position_record): New struct.
10588 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10589 (find_automatic_composition): New function.
10590 (composition_adjust_point): Use find_automatic_composition.
10591
10592 * dispextern.h (struct composition_it): New member lookback.
10593
105942008-09-02 Chong Yidong <cyd@stupidchicken.com>
10595
10596 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10597 if moving by a single line.
10598
105992008-09-02 Andreas Schwab <schwab@suse.de>
10600
10601 * xterm.c (x_delete_display): Fix merge error.
10602
10603 * fileio.c (Fexpand_file_name): Remove unused variables.
10604
106052008-09-02 Eli Zaretskii <eliz@gnu.org>
10606
10607 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10608 storage on all platforms, not just on DOS_NT.
10609
106102008-09-02 Jason Rumney <jasonr@gnu.org>
10611
b8ff72fa
SM
10612 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10613 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10614
106152008-09-01 Chong Yidong <cyd@stupidchicken.com>
10616
10617 * xfaces.c (Finternal_set_alternative_font_family_alist)
10618 (Finternal_set_alternative_font_registry_alist): Properly copy
10619 entire alist structure.
10620
106212008-09-01 Kenichi Handa <handa@m17n.org>
10622
d66c0241 10623 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10624 representative chars of the script is a vector.
d66c0241
JB
10625 (ftfont_list): Handle the case where the representative chars of
10626 the script is a vector.
aac0c6e3
MR
10627
10628 * character.c (syms_of_character): Docstring of
10629 script-representative-chars fixed.
10630
106312008-08-31 Eli Zaretskii <eliz@gnu.org>
10632
10633 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10634 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10635 the menu. Allocate larger buffer for `text', to account for
10636 possible ^C characters.
10637
106382008-08-31 Martin Rudalics <rudalics@gmx.at>
10639
10640 * xdisp.c (prepare_menu_bars): Don't call
10641 Vwindow_size_change_functions with arg Qt.
10642
106432008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10644
10645 * font.h (font_range):
10646 * fileio.c (report_file_error):
46e722a9
SM
10647 * composite.c (composition_update_it): Yet another int/Lisp_Object
10648 mixup (YAILOM).
aac0c6e3
MR
10649
106502008-08-30 Glenn Morris <rgm@gnu.org>
10651
10652 * data.c (Fmake_variable_frame_local): Doc fix.
10653
10654 * frame.c (Fmodify_frame_parameters): Doc fix.
10655
106562008-08-30 Eli Zaretskii <eliz@gnu.org>
10657
10658 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10659 needed by GetTokenInformation.
10660 (w32_system_process_attributes): Check return values of all system
10661 APIs.
10662
10663 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10664 only when the state changes.
10665 (IT_update_begin, IT_update_end): Add termscript trace.
10666
10667 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10668 clipboard is unavailable. Set dst to NULL if it doesn't point to
10669 malloc'ed data.
10670 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10671 passing random values to xfree.
10672
10673 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10674 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10675
106762008-08-29 Jason Rumney <jasonr@gnu.org>
10677
10678 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10679
106802008-08-29 Eli Zaretskii <eliz@gnu.org>
10681
10682 * composite.c (fill_gstring_body): Avoid compiler warnings.
10683
10684 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10685 LGLYPH_SET_CODE to avoid compiler warnings.
10686
2ae37cf0 10687 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10688
10689 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10690
10691 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10692 LGLYPH_SET_CODE.
10693
106942008-08-29 Kenichi Handa <handa@m17n.org>
10695
10696 * fileio.c (report_file_error): Don't downcase the first character
10697 of errstring if it is still unibyte.
10698
106992008-08-29 Kenichi Handa <handa@m17n.org>
10700
10701 These changes are to re-implement the automatic composition so
10702 that it doesn't use text properties.
10703
10704 * Makefile.in (ftfont.o): Depend on composite.h.
10705 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10706
10707 * character.h (Vunicode_category_table): Extern it.
10708
10709 * character.c (Vunicode_category_table): New variable.
10710 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10711
10712 * chartab.c (optimize_sub_char_table): Perform more greedy
10713 optimization.
10714
b8ff72fa
SM
10715 * composite.h (enum composition_method):
10716 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10717 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10718 (Vcomposition_function_table): Extern it.
10719 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10720 (composition_gstring_put_cache, composition_gstring_from_id)
10721 (composition_gstring_p, composition_gstring_width)
10722 (composition_compute_stop_pos, composition_reseat_it)
10723 (composition_update_it, composition_adjust_point): Extern them.
10724 (Fcomposition_get_gstring): EXFUN it.
10725
d66c0241 10726 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10727 (Vcomposition_function_table)
10728 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10729 (gstring_hash_table, gstring_work, gstring_work_headers):
10730 New variables.
aac0c6e3
MR
10731 (gstring_lookup_cache, composition_gstring_put_cache)
10732 (composition_gstring_from_id, composition_gstring_p)
10733 (composition_gstring_width, fill_gstring_header)
10734 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10735 (composition_reseat_it, composition_update_it)
b8ff72fa 10736 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10737 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10738 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10739 Defsubr composition_get_gstring.
aac0c6e3
MR
10740
10741 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10742 cmp_id.
10743 (struct glyph_string): Delete the member gidx. New members
10744 cmp_id, cmp_from, and cmp_to.
10745 (enum it_method): Delete GET_FROM_COMPOSITION.
10746 (struct composition_it): New struct.
10747 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10748 Delete c, len, cmp_id, cmp_len in u.comp.
10749
10750 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10751 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10752 (enum lglyph_indices): Likewise.
b8ff72fa 10753 (font_range): Adjust extern.
aac0c6e3
MR
10754 (font_fill_lglyph_metrics): Extern it.
10755
10756 * font.c (QCf): New variable.
10757 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10758 (font_prepare_composition): Delete this function.
10759 (font_range): Type and arguments changed.
10760 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10761 (font_fill_lglyph_metrics): New function.
b8ff72fa 10762 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10763 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10764 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10765 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10766
10767 * fontset.h (font_for_char): Extern it.
10768
10769 * fontset.c (font_for_char): New function.
10770
10771 * ftfont.c: Include composite.h.
10772 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10773 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10774
10775 * indent.c: Include composite.h and dispextern.h.
10776 (check_composition): Delete this function.
10777 (scan_for_column): Handle composition by
10778 composition_compute_stop_pos, composition_reseat_it, and
10779 composition_update_it.
10780 (compute_motion): Likewise.
10781 (Fvertical_motion): Fix checking of composition.
10782
10783 * keyboard.c (adjust_point_for_property): Check composition by
10784 composition_adjust_point.
10785
b8ff72fa 10786 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10787 struct glyph_string.
10788
b8ff72fa
SM
10789 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10790 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10791 struct glyph.
10792 (produce_composite_glyph): Likewise.
10793
b8ff72fa
SM
10794 * w32term.c (x_draw_composite_glyph_string_foreground):
10795 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10796 (x_draw_glyph_string): Likewise.
10797
10798 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10799 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10800
10801 * xdisp.c: Include font.h.
10802 (it_props): Delete the entry for Qauto_composed.
10803 (init_iterator): Initialize it->cmp_it.id to -1.
10804 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10805 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10806 (handle_auto_composed_prop): Delete it.
10807 (handle_composition_prop): Handle only static composition.
10808 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10809 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10810 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10811 (pop_it): Likewise.
10812 (get_next_element): Delete next_element_from_composition.
10813 (CHAR_COMPOSED_P): New macro.
10814 (get_next_display_element): For automatic composition, get a face
10815 from the font in the glyph-string.
10816 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10817 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10818 (next_element_from_string): Check if the character at the current
10819 position is composed by CHAR_COMPOSED_P.
10820 (next_element_from_buffer): Likewise.
d66c0241
JB
10821 (next_element_from_composition): Adjust for the change of struct it.
10822 Update it->cmp_it.
b8ff72fa
SM
10823 (dump_glyph): Adjust for the change of struct glyph.
10824 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10825 it and struct glyph. Don't handle automatic composition here.
10826 (fill_gstring_glyph_string): New function.
10827 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10828 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10829 (BUILD_GSTRING_GLYPH_STRING): New macro.
10830 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10831 automatic composition.
b8ff72fa 10832 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10833 struct glyph.
b8ff72fa 10834 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10835
b8ff72fa 10836 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10837 the change of struct glyph_string.
10838 (x_draw_glyph_string): Likewise.
10839
108402008-08-29 Glenn Morris <rgm@gnu.org>
10841
10842 * buffer.c (word-wrap): Doc fix.
10843 * xdisp.c (truncate-partial-width-windows): Doc fix.
10844 Increase default to 50.
10845
108462008-08-29 Chong Yidong <cyd@stupidchicken.com>
10847
10848 * xdisp.c (update_tool_bar_unwind): New function.
10849 (update_tool_bar): Temporarily set selected frame before building
10850 tool-bar items.
10851
108522008-08-28 Michael Albinus <michael.albinus@gmx.de>
10853
10854 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10855 snprintf, respectively.
10856 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10857
108582008-08-28 Chong Yidong <cyd@stupidchicken.com>
10859
10860 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10861 LDFLAGS to GNUstep CC invocation.
10862
108632008-08-27 Chong Yidong <cyd@stupidchicken.com>
10864
10865 * indent.c (Fvertical_motion): Revert last change. Handle the
10866 general case where we are moving forward, and PT spans multiple
10867 screen lines.
10868
10869 * eval.c (find_handler_clause): Temporarily increase
10870 max-lisp-eval-depth while printing the backtrace buffer, to
10871 guarantee that help-mode code can run.
10872
108732008-08-27 Eli Zaretskii <eliz@gnu.org>
10874
10875 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10876 colors under -rv.
10877 (IT_set_frame_parameters): Don't swap foreground and background
10878 colors if `(reverse . t)' is present in the frame properties.
10879 (internal_terminal_init): Call init_frame_faces only for the
10880 initial frame.
10881
108822008-08-27 Andreas Schwab <schwab@suse.de>
10883
10884 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10885
108862008-08-27 Andreas Schwab <schwab@suse.de>
10887
10888 * search.c (search_buffer): Set char_base to zero only at the end.
10889
108902008-08-27 Kenichi Handa <handa@m17n.org>
10891
b8ff72fa 10892 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10893
108942008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10895
10896 * xterm.c (x_term_init): Temporarily hide the partially
10897 initialized terminal while calling vendor-specific-keysyms.
10898
108992008-08-26 Eli Zaretskii <eliz@gnu.org>
10900
10901 * msdos.c (internal_terminal_init): Most initializations done only
10902 once, especially initial_screen_colors[] and termscript open.
10903
109042008-08-26 Chong Yidong <cyd@stupidchicken.com>
10905
10906 * eval.c (Fcondition_case): Doc fix.
10907
10908 * widgetprv.h (EmacsFramePart): Change font member to the new font
10909 struct.
10910
10911 * widget.c: Include character.h and font.h for XSETFONT.
10912 (setup_frame_gcs): Compute X font id from font struct, just once.
10913
109142008-08-26 Eli Zaretskii <eliz@gnu.org>
10915
10916 * term.c (get_named_tty): Fix last change.
10917
109182008-08-26 Chong Yidong <cyd@stupidchicken.com>
10919
10920 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10921 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10922
109232008-08-25 Eli Zaretskii <eliz@gnu.org>
10924
10925 * frame.c (do_switch_frame): Mark previously displayed frame as
10926 obscured for FRAME_MSDOS_P frames as well.
10927
109282008-08-24 Eli Zaretskii <eliz@gnu.org>
10929
10930 * frame.c (make_terminal_frame): Initialize f->terminal,
10931 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10932 Set the top frame to newly created frame.
10933 (Fmake_terminal_frame): Reuse the_only_display_info.
10934
10935 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10936 estimating available memory.
10937
b97439ce 109382008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10939
10940 * nsterm.m (ns_draw_window_cursor): Don't call
10941 NSDisableScreenUpdates and NSEnableScreenUpdates on
10942 non-NS_IMPL_COCOA systems.
10943
109442008-08-23 Andreas Schwab <schwab@suse.de>
10945
10946 * process.c (procfs_system_process_attributes): Fix use of
10947 uninitialized variables.
10948
109492008-08-23 Eli Zaretskii <eliz@gnu.org>
10950
10951 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10952
10953 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10954 calling tty-set-up-initial-frame-faces.
10955
b8ff72fa
SM
10956 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10957 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10958
10959 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10960 addition to output_termcap.
10961
10962 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10963
10964 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10965 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10966 highlight.
10967
10968 * process.c [!subprocesses]: Define QCname.
10969 (syms_of_process): Intern and staticpro it.
10970
10971 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10972 Adjust for changes in encoding/decoding routines.
10973 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10974 encode_coding and decode_coding.
10975
b8ff72fa 10976 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10977
10978 * dosfns.c: Include frame.h before termhooks.h.
10979 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10980 variable termscript.
10981
10982 * s/msdos.h (USER_FULL_NAME): Define.
10983 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10984
10985 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10986 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10987 pw->pw_gecos.
10988
10989 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10990 SELECTED_FRAME as additional (1st) argument.
10991 (tty_read_avail_input): Handle output_msdos_raw in
10992 addition to output_termcap.
10993
10994 * msdos.c: Include frame.h before termhooks.h.
10995 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10996 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10997 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10998 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10999 (IT_set_terminal_modes, IT_reset_terminal_modes)
11000 (IT_set_frame_parameters): Use tty->termscript instead of a global
11001 variable termscript.
11002 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
11003 global variable terminal_coding. Don't refer to
11004 Vnonascii_translation_table.
11005 (internal_terminal_init): Set Vwindow_system in current_kboard.
11006 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11007 Announce date and time of session start, if termscript is open.
11008 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11009 term.c:init_tty). Open termscript only of not already open.
11010 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11011 here instead of dos_ttraw. Don't initialize display if this is an
11012 initial tty. Don't set FRAME_FONT.
11013 (Vwindow_system_version): Bump to 23.
11014 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11015 is available, set up mouse_position_hook.
11016 (dos_ttraw, IT_set_terminal_modes): If called with initial
11017 terminal, do nothing.
11018 (IT_set_frame_parameters): Handle the Qtty_type frame
11019 parameter by calling internal_terminal_init.
11020 (dos_set_window_size, show_mouse_face)
11021 (clear_mouse_face, IT_note_mode_line_highlight)
11022 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11023 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11024 (initialize_msdos_display): New function.
11025 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11026 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11027 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11028 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11029 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11030 (request_sigio, unrequest_sigio): Don't define, now defined on
11031 sysdep.c.
11032 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11033
11034 * term.c [MSDOS]: Include msdos.h.
11035 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11036 conditional to DOS_NT. Allow only one call to this function in a
11037 session. Don't allocate a new struct tty_display_info; instead,
11038 reuse the_only_display_info. Call get_tty_size to get screen
11039 dimensions. Call init_baud_rate to set bad_rate.
11040 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11041 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11042 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11043 (get_tty_terminal, get_named_tty, Ftty_type)
11044 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11045 output_termcap.
b8ff72fa
SM
11046 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11047 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11048 only when subprocesses are supported.
aac0c6e3
MR
11049
11050 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11051 f->output_data.x.
11052 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11053 terminal devices.
11054
5582fbc7 11055 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11056 x_output.
11057 (FRAME_FONT): Use output_data.tty.
11058 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11059 (struct x_display_info): Rename from display_info. Update all users in
11060 msdos.c.
aac0c6e3 11061 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11062 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11063 (dos_ttraw): Update prototype.
11064
11065 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11066 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11067
110682008-08-23 Jason Rumney <jasonr@gnu.org>
11069
11070 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11071 (fn_TIFFSetDirectory): New library function used.
11072 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11073 (tiff_load): Use :index to select among multiple images. Set count
11074 property when multiple images exist.
11075 (gif_format): Use :index, not :image.
11076
110772008-08-23 Chong Yidong <cyd@stupidchicken.com>
11078
11079 * xdisp.c (try_scrolling): Check INT_MAX instead of
11080 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11081 to obtain INT_MAX.
11082
110832008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11084
11085 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11086
110872008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11088
11089 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11090 GNUstep library location.
11091
110922008-08-21 Chong Yidong <cyd@stupidchicken.com>
11093
11094 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11095 before using it.
11096
11097 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11098
110992008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11100
11101 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11102 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11103 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11104 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11105 (EmacsApp-cursor_blink_handler): Remove declaration.
11106 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11107 match 01 Feb 2008 changes in xterm.c.
11108 (ns_read_socket): Add cast to avoid warning.
11109 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11110 GNUstep.
11111
111122008-08-20 Chong Yidong <cyd@stupidchicken.com>
11113
11114 * xselect.c (x_get_foreign_selection): Return nil if desired
11115 selection could not be obtained, instead of signalling an error.
11116
111172008-08-20 David Reitter <david.reitter@gmail.com>
11118
11119 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11120 * nsterm.m: Remove ns-specific code for cursor blinking.
11121 (ns_draw_window_cursor): Clear cursor properly rather than
11122 redrawing the area. Respect width of bar cursors.
11123 These changes enable the use of generic blink-cursor-mode and
11124 generic cursor types in NS and support smooth cursor movements (do
11125 not blink off after command).
11126 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11127 Nextstep, too.
11128
111292008-08-19 Kenichi Handa <handa@m17n.org>
11130
11131 * font.c (Vfont_log_deferred): New variable.
11132 (font_add_log): Check Vfont_log_deferred.
11133 (font_deferred_log): New function.
11134
11135 * font.h (font_deferred_log): Extern it.
11136
11137 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11138 for sorting.
11139 (face_for_char): Use deferred log.
11140
111412008-08-18 Kenichi Handa <handa@m17n.org>
11142
11143 * fontset.c (face_for_char): Add font log.
11144
11145 * font.c (font_add_log): Add the font properties :script, :lang,
11146 and :otf in the log.
11147
111482008-08-17 Chong Yidong <cyd@stupidchicken.com>
11149
11150 * xdisp.c: Remove dead code.
11151 (handle_invisible_prop, next_overlay_string): Defer call to
11152 setup_for_ellipsis.
11153 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11154
111552008-08-15 Chong Yidong <cyd@stupidchicken.com>
11156
11157 * xfaces.c (lookup_derived_face): Properly handle possible zero
11158 return value of get_lface_attributes.
11159 (merge_faces): Don't tell lookup_derived_face to signal an error
11160 if face is not found.
11161
11162 * dired.c (Fdirectory_files): Doc fix.
11163
11164 * process.c (make_process): Initialize kill_without_query struct
11165 member.
11166
111672008-08-15 Eli Zaretskii <eliz@gnu.org>
11168
11169 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11170 Alternative calculation of totphys for Visual Studio 6.
11171
11172 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11173
11174 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11175 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11176 All users changed.
11177 (stat): Only root directory passed to GetDriveType. Allow RAM
11178 disk as well as local fixed disk when w32-get-true-file-attributes
11179 is set to `local'.
11180 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11181 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11182 (w32_cached_id, w32_add_to_cache): New functions.
11183 (get_name_and_id): Look account names in the cache before calling
11184 lookup_account_sid.
11185 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11186 New initialization flags.
11187 (globals_of_w32): Initialize them to zero.
11188 (w32_system_process_attributes): Use w32_cached_id and
11189 w32_add_to_cache.
11190
111912008-08-14 Lawrence Mitchell <wence@gmx.li>
11192
11193 * lread.c (Fread_char, Fread_char_exclusive): If no character
11194 event is read before timeout is reached, return nil, rather than
11195 converting to a number.
11196
111972008-08-14 Chong Yidong <cyd@stupidchicken.com>
11198
11199 * fns.c (use_dialog_box): Doc fix.
11200
11201 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11202 on OS X.
11203
112042008-08-13 Chong Yidong <cyd@stupidchicken.com>
11205
11206 * frame.c (Qns_parse_geometry): New var.
11207 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11208
112092008-08-11 Chong Yidong <cyd@stupidchicken.com>
11210
11211 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11212 space character in calculating tabs.
11213
112142008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11215
11216 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11217
112182008-08-10 Glenn Morris <rgm@gnu.org>
11219
11220 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11221 silence gcc "limited range of data type" warnings in some
11222 make_fixnum_or_float calls.
11223
112242008-08-09 Eli Zaretskii <eliz@gnu.org>
11225
11226 * w32.c (w32_system_process_attributes): If the process does not
11227 exist, return nil.
11228
11229 * w32.c: Include thelp32.h, psapi.h and coding.h.
11230 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11231 declarations.
11232 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11233 (Process32Next_Proc): New typedefs.
11234 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11235 (g_b_init_process32_next, g_b_init_open_thread_token)
11236 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11237 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11238 (g_b_init_get_process_working_set_size)
11239 (g_b_init_global_memory_status_ex): New static variables.
11240 (globals_of_w32): Initialize them.
11241 (create_toolhelp32_snapshot, process32_first, process32_next)
11242 (open_thread_token, impersonate_self, revert_to_self)
11243 (get_process_memory_info, get_process_working_set_size)
11244 (global_memory_status, global_memory_status_ex): New wrapper
11245 functions.
11246 (w32_list_system_processes, w32_system_process_attributes)
11247 (enable_privilege, restore_privilege, ltime, process_times):
11248 New functions.
11249 (convert_time_raw): New function.
11250 (convert_time): Remove conversion of FILETIME into time in 100
11251 nsec units, call convert_time_raw instead.
11252
11253 * process.h (w32_list_system_processes, w32_system_process_attributes):
11254 Add prototypes.
11255 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11256 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11257 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11258 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11259
11260 * process.c (Fsystem_process_attributes): Doc fix.
11261
112622008-08-08 Chong Yidong <cyd@stupidchicken.com>
11263
11264 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11265 a continued multi-char glyph; if so, advance to the actual glyph.
11266
112672008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11268
11269 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11270
11271 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11272 (.m.o): Use it.
11273 * config.in: Regenerate.
11274
112752008-08-07 Chong Yidong <cyd@stupidchicken.com>
11276
11277 * xdisp.c (redisplay_window): Revert last change.
11278 (try_window): Check bottom scroll margin too.
11279
112802008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11281
11282 * config.in: Regenerate.
11283
11284 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11285 -list-load-path-shadows'.
11286 (nsgui.h): Reduce number of things depending on it.
11287
112882008-08-06 Chong Yidong <cyd@stupidchicken.com>
11289
11290 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11291 instead of window-end which does the wrong thing at eob.
11292 (try_cursor_movement): Minor optimization.
11293 (redisplay_window): If scroll margin is defined, don't assume
11294 window doesn't need scrolling.
11295
112962008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11297
11298 * config.in: Regenerate.
11299
11300 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11301 (mostlyclean): Don't delete *.d under NS.
11302
11303 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11304
113052008-08-06 Kenichi Handa <handa@m17n.org>
11306
11307 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11308
113092008-08-06 Andreas Schwab <schwab@suse.de>
11310
11311 * config.in: Regenerate.
11312
113132008-08-05 Chong Yidong <cyd@stupidchicken.com>
11314
11315 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11316 forcing a window start.
11317
11318 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11319 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11320
113212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11322
11323 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11324 argument.
11325
113262008-08-05 Juanma Barranquero <lekktu@gmail.com>
11327
11328 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11329 <scroll-down-aggressively, before-change-functions>:
11330 <after-change-functions>: Reflow docstrings.
11331
113322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11333 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11334
11335 Dock menu customization, based on a patch by Ken Raeburn, plus some
11336 other fixes.
11337 * nsmenu.m (dockMenu): New variable.
11338 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11339
11340 * nsterm.h (dockMenu): Declare.
11341
11342 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11343 (ns_term_init): Initialize dockMenu.
11344 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11345 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11346 left.
11347
11348 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11349
113502008-08-04 Chong Yidong <cyd@stupidchicken.com>
11351
11352 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11353
11354 * config.in: Regenerate.
11355
113562008-08-04 Seiji Zenitani <zenitani@mac.com>
11357
11358 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11359
113602008-08-04 Chong Yidong <cyd@stupidchicken.com>
11361
11362 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11363
113642008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11365
11366 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11367
11368 * keyboard.h: Comment an #endif.
11369
11370 * lisp.h (have_menus_p): Adjust comment.
11371
11372 * menu.c (find_and_return_menu_selection): Fix comparison with
11373 client_data.
11374
11375 * nsmenu.m (popup_activated_flag): New variable.
11376 (popup_activated): New function.
11377 (menu-or-popup-active-p): New exported lisp definition.
11378 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11379 when popup done.
11380 (ns_popup_dialog): Set popup_activated_flag.
11381
11382 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11383 version for GNUstep (handled by conditional typedef in nsterm.m).
11384 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11385 in rgb.txt).
11386
11387 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11388
11389 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11390
11391 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11392
11393 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11394 shortcircuit if popup_activated like GTK and X toolkit.
11395
11396 * m/inter386.h: Change DARWIN to DARWIN_OS.
11397
11398 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11399 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11400 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11401 comment on NO_SOCK_SIGIO.
11402
114032008-08-03 Chong Yidong <cyd@stupidchicken.com>
11404
11405 * nsterm.m (windowDidResize): Remove stopModal call.
11406
114072008-08-03 Andreas Schwab <schwab@suse.de>
11408
11409 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11410 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11411
114122008-08-02 Chong Yidong <cyd@stupidchicken.com>
11413
11414 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11415 Don't use uninitialized pointer variable when using getrlimit.
11416
114172008-08-02 Jason Rumney <jasonr@gnu.org>
11418
11419 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11420
114212008-08-02 Eli Zaretskii <eliz@gnu.org>
11422
11423 * alloc.c (NSTATICS): Bump to 0x640.
11424
11425 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11426
11427 * lisp.h: Add prototype for directory_files_internal.
11428
11429 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11430 New functions.
11431 (syms_of_process): Defsubr them. Add initializations for various
11432 Q* symbols used in procfs_system_process_attributes.
11433 (procfs_list_system_processes, procfs_system_process_attributes)
11434 [HAVE_PROCFS]: New functions.
11435 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11436 (procfs_get_total_memory): New functions.
11437
114382008-08-01 Juanma Barranquero <lekktu@gmail.com>
11439
11440 * xfaces.c (Fx_load_color_file): Fix previous change;
11441 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11442
114432008-08-01 Michael Albinus <michael.albinus@gmx.de>
11444
11445 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11446
114472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11448
11449 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11450
114512008-08-01 Chong Yidong <cyd@stupidchicken.com>
11452
11453 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11454
11455 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11456 define NSApplicationDelegateReplySuccess.
11457 (EmacsView -converstationIdentifier): Use long instead of
11458 NSInteger for GNUstep, since it doesn't have NSInteger.
11459
11460 * xmenu.c: Revert last change.
11461
11462 * keyboard.h: Fix last change.
11463
114642008-08-01 Juanma Barranquero <lekktu@gmail.com>
11465
11466 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11467 on Windows.
11468
114692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11470
11471 Warning clearing and clean-up in NS port.
11472 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11473 Add prototypes.
11474 * nsgui.h (FACE_DEFAULT): Remove, unused.
11475 (XGCValues): Change colors to unsigned long.
11476 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11477 nsterm.m.
11478 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11479 (ns_list_fonts): Remove, unused.
11480 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11481 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11482 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11483 (nsfont_draw): Compare face colors to 0, not nil.
11484 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11485 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11486 (-addSubmenuWithTitle:): Use NSMenuItem class.
11487 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11488 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11489 (ns_clip_to_row): Make gc arg a BOOL.
11490 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11491 ns_clip_to_row() call.
11492 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11493 used). Cast FRAME_FONT assignments.
11494 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11495 (ns_string_to_lispmod): Change arg to const char.
11496 (ns_term_init): Use NSMenuItem class.
11497 (EmacsApp -openFile:): Move to different section of file.
11498 (EmacsApp -application:openFiles:): Don't return a value, call
11499 -replyToOpenOrPrint:.
11500 (EmacsView -keyDown:): Fix up cast.
11501 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11502 (EmacsView -menuDown:): Cast tag in call to
11503 find_and_call_menu_selection().
11504 (ns_list_fonts): Remove, unused.
11505 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11506 (ns_fontname_to_xlfd): Make static.
11507 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11508 Remove prototypes (now in keyboard.h).
11509 (next_menubar_widget_id): Remove, unused.
11510 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11511 Remove prototypes (now in keyboard.h).
11512 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11513
115142008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11515
11516 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11517 (floatfns.o): Depend on syssignal.h.
11518 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11519
11520 * systty.h: Fix previous change that removed BSD_TERMIOS.
11521 Add comments to #ifdefs.
11522
115232008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11524
11525 * w32fns.c (w32-load-color-file): Remove.
11526 (x-open-connection): Use renamed Fx_load_color_file.
11527 * xfaces.c (x-load-color-file): Add.
11528 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11529 Emacs.clr.
11530 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11531
115322008-07-31 Michael Albinus <michael.albinus@gmx.de>
11533
11534 * dbusbind.c (Fdbus_call_method_asynchronously)
11535 (Fdbus_method_error_internal): New defuns.
11536 (xd_read_message): Handle also reply messages.
11537 (Vdbus_registered_functions_table): Extend docstring.
11538
115392008-07-31 Juanma Barranquero <lekktu@gmail.com>
11540
11541 * keyboard.c (gobble_input): Fix previous change.
11542
115432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11544
11545 * bitmaps/README:
11546 * xfns.c:
11547 * termcap.c:
11548 * term.c:
11549 * syswait.h:
11550 * systty.h:
11551 * systime.h:
11552 * syssignal.h:
11553 * sysdep.c:
11554 * process.h:
11555 * process.c:
11556 * print.c:
11557 * ndir.h:
11558 * lread.c:
11559 * keyboard.c:
11560 * getpagesize.h:
11561 * floatfns.c:
11562 * fileio.c:
11563 * emacs.c:
11564 * doc.c:
11565 * dispnew.c:
11566 * dired.c:
11567 * data.c:
11568 * callproc.c:
11569 * buffer.c:
11570 * README:
11571 * Makefile.in:
11572 * s/template.h:
11573 * s/msdos.h:
11574 * m/vax.h: Remove VMS support.
11575 * s/vms.h:
11576 * vlimit.h:
11577 * uaf.h:
11578 * temacs.opt:
11579 * param.h:
11580 * ioctl.h: Remove file.
11581
115822008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11583
11584 * s/ms-w32.h (MULTI_KBOARD): Remove.
11585 * xterm.c:
11586 * xselect.c:
11587 * xfns.c:
11588 * window.c:
11589 * w32term.c:
11590 * w32fns.c:
11591 * terminal.c:
11592 * termhooks.h:
11593 * term.c:
11594 * sysdep.c:
11595 * keyboard.h:
11596 * keyboard.c:
11597 * frame.h:
11598 * frame.c:
11599 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11600 * config.in: Regenerate.
11601
116022008-07-30 Jason Rumney <jasonr@gnu.org>
11603
11604 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11605
11606 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11607 (w32font_open_internal): Get unicode version of textmetrics.
11608 Don't enable or disable glyph indices here.
11609 (w32font_open): Disable use of glyph indices.
11610
11611 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11612
116132008-07-30 Chong Yidong <cyd@stupidchicken.com>
11614
11615 * minibuf.c (Vread_buffer_function): Doc fix.
11616
116172008-07-30 John Paul Wallington <jpw@pobox.com>
11618
11619 * minibuf.c (read_buffer_completion_ignore_case): New var.
11620 (Fread_buffer): Use it.
11621
116222008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11623
11624 * systty.h (sensemode): Remove empty #if. Remove reference to
11625 BSD_TERMIOS, unused.
11626
11627 * sysdep.c: Remove reference to DGUX.
11628 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11629
11630 * config.in: Regenerate.
11631
116322008-07-30 Jason Rumney <jasonr@gnu.org>
11633
11634 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11635
116362008-07-29 Jason Rumney <jasonr@gnu.org>
11637
11638 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11639 is populated.
11640 (uniscribe_encode_char): Always use uniscribe.
11641 Avoid using context if cache is populated.
11642
116432008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11644
11645 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11646 open menu.
11647
11648 * gtkutil.c (menu_nav_ended): Remove.
11649 (create_menus): Remove signal connect for menu_nav_ended.
11650
116512008-07-28 Chong Yidong <cyd@stupidchicken.com>
11652
11653 * xdisp.c (redisplay_window): Check return value of
11654 compute_window_start_on_continuation_line before forcing a window
11655 start.
11656
116572008-07-28 Jason Rumney <jasonr@gnu.org>
11658
11659 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11660
11661 * w32term.c (w32_enable_unicode_output, cleartype_active):
11662 Remove obsolete display options.
11663 (x_draw_glyph_string_background): Don't use old cleartype_active
11664 workaround.
11665 (w32_initialize): Remove cleartype_active initialization.
11666 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11667
116682008-07-28 Andreas Schwab <schwab@suse.de>
11669
11670 * lisp.h (init_weak_hash_tables, syms_of_font)
11671 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11672 (remove_hash_entry): Don't declare.
11673 * eval.c (maybe_call_debugger): Make static and move before use.
11674 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11675 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11676 * xterm.h (x_set_frame_alpha): Declare.
11677
116782008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11679
11680 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11681 (create_menus): Connect selection-done to menu_nav_ended.
11682
116832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11684
11685 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11686 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11687 parameter with read of 'alpha' one.
11688 (Qns_frame_parameter): Remove.
5582fbc7 11689 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11690 (next-selection-coding-system, Vselection_coding_system)
11691 (Vnext_selection_coding_system): Drop.
11692
116932008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11694
11695 * nsfns.m (do-applescript, do_applescript): Rename to
11696 ns-do-applescript, ns_do_applescript, and move within file.
11697
116982008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11699
11700 Remove support for Mac Carbon.
11701 * mactoolbox.c:
11702 * macterm.h:
11703 * macterm.c:
11704 * macselect.c:
11705 * macmenu.c:
11706 * macgui.h:
11707 * macfns.c:
11708 * mac.c: Remove file.
11709 * s/darwin.h:
11710 * m/intel386.h:
11711 * xfaces.c:
11712 * xdisp.c:
11713 * window.c:
11714 * tparam.c:
11715 * termhooks.h:
11716 * termcap.c:
11717 * term.c:
11718 * syssignal.h:
11719 * sysselect.h:
11720 * sysdep.c:
11721 * process.c:
11722 * lread.c:
11723 * lisp.h:
11724 * keyboard.c:
11725 * image.c:
11726 * fringe.c:
11727 * frame.h:
11728 * frame.c:
11729 * fontset.c:
11730 * font.h:
11731 * font.c:
11732 * fns.c:
11733 * fileio.c:
11734 * emacs.c:
11735 * dispnew.c:
11736 * dispextern.h:
11737 * config.in:
11738 * atimer.c:
2ae37cf0 11739 * Makefile.in: Remove code for Carbon.
aac0c6e3 11740
f0131492 117412008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11742
11743 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11744
117452008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11746
11747 * macterm.h (kCGBitmapByteOrder32Host): New define for
11748 non-universal SDKs.
11749
11750 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11751 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11752
11753 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11754 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11755
117562008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11757
11758 * w32inevt.c: Include dispextern.h.
11759
117602008-07-26 Andreas Schwab <schwab@suse.de>
11761
11762 * print.c (print_object): Fix off-by-one in last change.
11763
117642008-07-25 Juanma Barranquero <lekktu@gmail.com>
11765
11766 * term.c (syms_of_term): Don't initialize default_orig_pair,
11767 default_set_foreground and default_set_background on Windows.
11768
117692008-07-25 Jason Rumney <jasonr@gnu.org>
11770
11771 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11772 ScriptItemize. Clean up return value checking. Remove unused
11773 variables.
11774 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11775 shaping engine.
11776
11777 * w32font.c (w32font_has_char): Handle the case where we can't
11778 determine the script for a character.
11779
117802008-07-25 Chong Yidong <cyd@stupidchicken.com>
11781
11782 * term.c (syms_of_term): Initialize default_orig_pair,
11783 default_set_foreground, and default_set_background.
11784
11785 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11786 clash (bug#86).
11787 (getloadavg): Callers changed.
11788
11789 * image.c (svg_load_image): Fix last change.
11790 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11791 image size is valid. Use g_object_unref instead of deprecated
11792 rsvg_handle_free to free rsvg handle.
11793 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11794
117952008-07-25 Jason Rumney <jasonr@gnu.org>
11796
11797 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11798 surrogates before looking up glyph index.
11799 (w32font_text_extents): Encode as surrogates if falling back to
11800 functions that need UTF-16 wide chars.
11801
11802 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11803 BMP as surrogates before looking up glyph index.
11804
118052008-07-25 Chong Yidong <cyd@stupidchicken.com>
11806
11807 * image.c (svg_load_image): Check for failure in return value of
11808 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11809
118102008-07-25 Jason Rumney <jasonr@gnu.org>
11811
11812 * w32font.c (Fx_select_font): Reverse sense of second arg.
11813
118142008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11815
11816 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11817 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11818
11819 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11820 (PURESIZE): Use it.
11821
118222008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11823
11824 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11825 * m/alpha.h (TEXT_END):
11826 * m/ibmrs6000.h (TEXT_END):
11827 * m/macppc.h (TEXT_END):
11828 * s/darwin.h (TEXT_END):
11829 * s/msdos.h (TEXT_END): Remove, unused.
11830 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11831 * s/cygwin.h: Remove comment.
11832
11833 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11834 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11835 * m/intel386.h (DOT_GLOBAL_START):
11836 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11837 (USG): Remove, file not used on USG platforms.
11838
11839 * Makefile.in (HAVE_X11): Remove empty #else.
11840
118412008-07-24 Andreas Schwab <schwab@suse.de>
11842
11843 * fileio.c (Finsert_file_contents): Properly adjust undo list
11844 after format conversion.
11845
118462008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11847
11848 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11849 (menu_nav_ended): Remove.
11850 (create_menus): Remove signal connect for menu_nav_ended.
11851 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11852 create_menus.
11853 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11854
118552008-07-23 Jason Rumney <jasonr@gnu.org>
11856
11857 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11858 with opened font.
11859 (w32font_open): Set font type to gdi.
11860
11861 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11862
118632008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11864
11865 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11866 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11867 defines it.
11868 * unexec.c (ADDR_CORRECT): Define unconditionally.
11869
11870 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11871
11872 * unexec.c: Remove code depending on !COFF and USG, the file is
11873 not used for such systems.
11874
11875 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11876 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11877 (LD_SWITCH_SYSTEM_1): Remove, update users.
11878
11879 * s/darwin.h (DATA_END):
11880 * m/intel386.h (DATA_END):
11881 * m/ibmrs6000.h (DATA_END):
11882 * m/alpha.h (DATA_END): Remove, unused.
11883
11884 * config.in: Regenerate.
11885 * s/ms-w32.h (subprocesses): Define unconditionally.
11886 * s/template.h (subprocesses): Update comment.
11887 * s/vms.h (subprocesses):
11888 * s/usg5-4.h (subprocesses):
11889 * s/hpux10-20.h (subprocesses):
11890 * s/gnu-linux.h (subprocesses):
11891 * s/cygwin.h (subprocesses):
11892 * s/bsd-common.h (subprocesses):
11893 * s/aix4-2.h (subprocesses):
11894 * s/darwin.h (subprocesses): Do not define, defined by default now.
11895
11896 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11897 Remove all references.
11898 (temacs): Add GNUstep specific ld flags.
11899
11900 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11901 similarly to what X does.
11902
119032008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11904
11905 * nsfns.m (x-list-fonts): Remove.
11906 (syms_of_nsfns): Drop the x-list-fonts declaration.
11907 * nsterm.m: Get rid of remaining "//" comments.
11908
119092008-07-22 Chong Yidong <cyd@stupidchicken.com>
11910
11911 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11912
11913 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11914 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11915 (Fns_own_selection_internal, Fx_disown_selection_internal)
11916 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11917
11918 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11919 ... */' style of docstrings. Doc fixes.
11920
119212008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11922
11923 * terminfo.c (UP, BC, PC): Undo previous change.
11924
11925 * nsfns.m: Rename ns prefixed functions/variables to the
11926 corresponding x versions. Update references.
11927
119282008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11929
11930 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11931
119322008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11933
11934 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11935 Remove forwarding functions.
11936 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11937 non-static.
11938 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11939 non-static.
11940 (ns_frame_parm_handlers): Use the new names.
11941 (syms_of_nsfns): Move to the end of file.
11942
11943 * nsterm.m (syms_of_nsterm): Move to the end of file.
11944
11945 * dispnew.c (init_display): Remove code for X10.
11946
119472008-07-22 Jason Rumney <jasonr@gnu.org>
11948
11949 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11950 bare drive.
11951
119522008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11953
11954 * nsterm.m (syms_of_nsterm): Remove debugging println.
11955
119562008-07-22 David Reitter <david.reitter@gmail.com>
11957
11958 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11959 Carbon implementation of the same functionality: execute arbitrary
11960 AppleScript code.
11961
119622008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11963
11964 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11965 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11966 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11967 (Fx_display_mm_height, Fx_display_mm_width)
11968 (Fx_display_backing_store, Fx_display_visual_class)
11969 (Fx_display_save_under, Fx_open_connection)
11970 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11971 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11972 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11973 (Fx_display_pixel_width, Fx_display_pixel_height)
11974 (Fx_display_usable_bounds, Fx_display_planes)
11975 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11976 ... */' style of docstrings.
11977
119782008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11979
11980 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11981 on this platform.
11982 (mips):
11983 * m/iris4d.h (mips): Do not define.
11984 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11985
11986 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11987
11988 * image.c:
11989 * nsfns.m:
11990 * nsselect.m:
11991 * nsterm.h:
11992 * nsterm.m: Rename ns prefixed functions/variables to the
11993 corresponding x versions. Update references.
11994
11995 * m/ibms390x.h (NO_REMAP): Do not undefine.
11996
11997 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11998
119992008-07-21 Chong Yidong <cyd@stupidchicken.com>
12000
12001 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
12002 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
12003 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
12004 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
12005 (Fns_display_mm_height, Fns_display_mm_width)
12006 (Fns_display_backing_store, Fns_display_visual_class)
12007 (Fns_display_save_under, Fns_open_connection)
12008 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12009 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12010 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12011 (Fns_display_pixel_width, Fns_display_pixel_height)
12012 (Fns_display_usable_bounds, Fx_display_planes)
12013 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12014
120152008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12016
12017 * print.c (print_object): Check print_depth before searching for
12018 circularities.
12019
120202008-07-21 Michael Albinus <michael.albinus@gmx.de>
12021
12022 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12023 only sprintf.
12024
120252008-07-21 Kenichi Handa <handa@m17n.org>
12026
12027 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12028
120292008-07-20 Andreas Schwab <schwab@suse.de>
12030
12031 * syntax.c (find_start_pos, find_start_value)
12032 (find_start_value_byte, find_start_begv, find_defun_start)
12033 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12034
120352008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12036
12037 * s/sol2-3.h: Insert contents of s/sol2.h.
12038 (LD_SWITCH_SYSTEM): Remove redundant definition.
12039 * s/sol2.h: Remove, unused.
12040
120412008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12042
12043 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12044
120452008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12046
12047 * Makefile.in (ns_appdir): Fix typo in find command.
12048
120492008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12050
12051 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12052
12053 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12054 added not supported anymore.
12055
12056 * s/usg5-4-2.h (LIBS_SYSTEM):
12057 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12058
12059 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12060 * s/lynxos.h (GETPGRP_NO_ARG):
12061 * s/hpux10-20.h (NO_SIOCTL_H):
12062 * s/gnu.h (GETPGRP_NO_ARG):
12063 * s/gnu-linux.h (NO_SIOCTL_H):
12064 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12065 * s/cygwin.h (GETPGRP_NO_ARG):
12066 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12067 (C_DEBUG_SWITCH): Remove duplicate definition.
12068
12069 * m/ibms390.h: Remove boilerplate comments.
12070
12071 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12072
12073 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12074 (wait_reading_process_output): Remove code for SunOS, platform not
12075 supported anymore. Use SOLARIS2 instead of sun.
12076
120772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12078
12079 * font.c (font_open_by_name): Under NS, default lface height to zero.
12080 (font_open_for_lface): Under NS, set size based on frame fontsize.
12081 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12082 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12083
120842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12085
12086 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12087 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12088 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12089 YES/NO.
12090 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12091 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12092 * Makefile.in (clean): Clear out build destination dir.
12093
120942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12095
12096 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12097 xterm, xselect.
12098 * lisp.h: Remove declaration of hash_remove.
12099 * nsgui.h: Remove redefinitions of hash_remove.
12100 * fns.c (hash_remove): Rename to hash_remove_from_table.
12101
121022008-07-19 Seiji Zenitani <zenitani@mac.com>
12103
12104 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12105 strdup() the family UTF8String before modifying it.
12106
121072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12108
12109 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12110 NS_FACE_BACKGROUND with 0 instead of nil.
12111 * nsfont.m (nsfont_draw): Same.
12112
121132008-07-19 Chong Yidong <cyd@stupidchicken.com>
12114
12115 * nsfns.m (ns_set_background_color): Fix crash.
12116
121172008-07-18 Chong Yidong <cyd@stupidchicken.com>
12118
12119 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12120
121212008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12122
12123 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12124
121252008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12126
12127 * gtkutil.c: Include <config.h> instead of "config.h".
12128
12129 * lisp.h (Foverlay_buffer): Add EXFUN.
12130
12131 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12132 child process to complete child_setup. Undo 2005-09-21 change.
12133
12134 * s/darwin.h: Mention setsid after vfork.
12135
121362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12137
12138 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12139 Depend on macgui.h.
12140
12141 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12142 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12143
12144 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12145 and f19.
12146 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12147
12148 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12149 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12150 Remove enumerators.
12151
12152 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12153 Check if FACE_FROM_ID returns NULL.
12154
121552008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12156
12157 * w32inevt.c (change_frame_size): Remove extern declaration.
12158 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12159 change_frame_size.
12160
121612008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12162
12163 * getloadavg.c: Revert last change (2008-07-15).
12164
121652008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12166
12167 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12168 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12169 from configure.
12170
121712008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12172
12173 * s/sol2.h:
12174 * s/sol2-4.h: Reorganize conditionals.
12175
12176 * ecrt0.c: Remove code depending on m68000, not used anymore.
12177
12178 * fns.c (hash_remove): Make static.
12179 * lisp.h (hash_remove): Don't prototype.
12180
12181 * m/ibmrs6000.h:
12182 * m/ibms390x.h:
12183 * m/macppc.h: Remove boilerplate comments.
12184
12185 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12186 Solaris, which does not need them.
12187
12188 * m/vax.h: Remove comments about unsupported systems.
12189
12190 * s/darwin.h: Reorganize ifdefs.
12191
121922008-07-17 Andreas Schwab <schwab@suse.de>
12193
12194 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12195
121962008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12197
12198 Use SDATA. Follow coding convention of placing operators at
12199 beginning of next line rather than end of previous line, and placing
12200 spaces around infix operators.
12201
12202 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12203 in case it was defined already.
12204 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12205 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12206 ns_default.
12207 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12208 Lisp_Objects.
12209 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12210 (ns_defined_color, ns_color_to_lisp): Declare.
12211 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12212 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12213 it's accepted even with USE_LISP_UNION_TYPE.
12214 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12215 (update_frame_tool_bar): Remove apparently obsolete tests for
12216 non-integerness of f->tool_bar_lines.
12217 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12218 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12219 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12220 (nsfont_open): Don't confuse NULL for Qnil.
12221 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12222 * menu.h (find_and_call_menu_selection):
12223 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12224 (find_and_return_menu_selection): Always return something.
12225 * frame.h: Include dispextern.h for Display_Info.
12226 (display_x_get_resource): Declare.
12227
122282008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12229
12230 * syntax.c: Remove stdio.h include accidentally introduced in
12231 Emacs.app commit.
12232 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12233 NS_IMPL_COCOA.
12234 * keyboard.c (handle_async_input, input_available_signal): Remove
12235 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12236
122372008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12238
12239 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12240 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12241 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12242 Use SDATA.
12243
12244 * keymap.c: Remove all NS-specific code.
12245 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12246 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12247 where_is_preferred_modifier, return a different value depending on how
12248 preferred is the binding.
12249 (where_is_internal): Adjust accordingly.
12250 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12251 Adjust to new preferred_sequence_p.
12252 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12253 * keyboard.c (parse_solitary_modifier): Not static any more.
12254 * keyboard.h (parse_solitary_modifier): Declare.
12255
122562008-07-16 Andreas Schwab <schwab@suse.de>
12257
12258 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12259 of easymenu.
12260
122612008-07-16 Chong Yidong <cyd@stupidchicken.com>
12262
12263 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12264 that we don't move off the line.
12265
122662008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12267
12268 * keyboard.c (Qsuper): Remove.
12269 (parse_menu_item): Don't call where_is_internal specially for NS.
12270
122712008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12272
12273 * s/gnu-linux.h: Remove boilerplate comments.
12274
12275 * m/alpha.h (__ELF__): Consolidate conditions.
12276
12277 * m/m68k.h (linux): Use GNU_LINUX instead.
12278 Remove boilerplate comments.
12279
12280 * m/intel386.h: Undo refactoring from previous change.
12281 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12282 too, remove dead code.
12283 (linux): Use GNU_LINUX instead.
12284
122852008-07-16 Jason Rumney <jasonr@gnu.org>
12286
12287 * w32gui.h: Repeat 26 June changes lost by last change.
12288
122892008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12290
12291 * systty.h: Remove code for Aix on 386, unsupported platform.
12292
12293 * s/ms-w32.h: Remove boilerplate comments.
12294 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12295
12296 * s/gnu-linux.h (TERM): Remove support.
12297 (HAVE_SYSVIPC): Remove, unused.
12298 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12299 for this system.
12300
12301 * process.c: Remove support for IRIS, unused.
12302 Remove support for TERM, not relevant anymore.
12303
12304 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12305 used with the definition.
12306
12307 * s/aix4-2.h (static): Do not undef.
12308
12309 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12310 only used on Aix.
12311 (HAVE_SYSVIPC): Remove, unused.
12312
12313 * m/hp800.h (CANNOT_DUMP): Do not undef.
12314
12315 * m/alpha.h: Fix comment.
12316
12317 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12318 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12319 used by this configuration.
12320 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12321 * unexec.c: Remove code depending on HPUX and
12322 USG_SHARED_LIBRARIES, not used with this file. Remove code
12323 depending on IRIS, unused. Remove if 0-ed code.
12324
12325 * s/template.h: Remove comments about static.
12326
12327 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12328 Remove if 0-ed code.
12329 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12330 were the same as the default.
12331 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12332 Remove boilerplate comments.
12333 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12334 (HAVE_SYSVIPC): Remove, unused.
12335 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12336
12337 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12338 Remove boilerplate comments.
12339 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12340 Remove boilerplate comments.
12341 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12342 Remove boilerplate comments.
12343 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12344
12345 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12346 USG systems which do not use DATA_SEG_BITS.
12347 Refactor code. Remove boilerplate comments.
12348
12349 * m/ibms390.h:
12350 * m/m68k.h:
12351 * s/bsd-common.h:
12352 * s/cygwin.h:
12353 * s/darwin.h:
12354 * s/freebsd.h:
12355 * s/gnu.h:
12356 * s/msdos.h: Remove boilerplate comments.
12357
12358 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12359 do not use this file.
aac0c6e3
MR
12360 (IRIS_4D): Remove, unused.
12361
12362 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12363 do not use this file.
aac0c6e3
MR
12364 (SIGN_EXTEND_CHAR):
12365 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12366 * unexmips.c: Remove file, unused.
12367
12368 * editfns.c (Fuser_full_name): Replace the only use of
12369 USER_FULL_NAME with its value.
12370 * config.in: Regenerate.
12371
123722008-07-16 David Reitter <david.reitter@gmail.com>
12373
12374 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12375 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12376
123772008-07-16 Glenn Morris <rgm@gnu.org>
12378
12379 * emacs.c (system-type): Doc fix.
12380
123812008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12382
12383 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12384 If the cache doesn't work, let's fix it, rather than work around it.
12385
123862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12387
12388 * Makefile.in: Correct additions for nsfont.o in last commit.
12389 * nsfont.m: New file (forgot last commit).
12390
123912008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12392
12393 * callproc.c (set_initial_environment): Initialize
12394 Vprocess_environment under CANNOT_DUMP (fixes crash when
12395 batch-compiling for bootstrap).
12396
123972008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12398 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12399
c4cc8b9a
JB
12400 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12401 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12402
124032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12404
12405 Changes and additions for NeXTstep windowing system (Cocoa and
12406 GNUstep) support.
12407
12408 * Makefile.in:
12409 * config.in: Support defines and build commands for NS port.
12410 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12411 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12412 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12413 windowing.
12414 (struct face): Add synth_ital field.
12415 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12416 (init_display): Initialize Vinitial_window_system to "ns" when so
12417 compiled.
12418 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12419 (display_arg): Use under NS.
12420 (main): Under NS, allocate autorelease pool and handle command line
12421 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12422 (standard_args): Add NS-specific args.
12423 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12424 * font.c (DEFAULT_ENCODING): New variable.
12425 (font_find_for_lface): Use it.
12426 (syms_of_font): Load syms_of_nsfont under NS.
12427 * font.h: Declare nsfont_driver when compiled under NS.
12428 * fontset.c: When compiling under NS, include nsterm.h.
12429 (fontset_from_font): Autoconstruct fontset under NS.
12430 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12431 symbol, document and use it.
12432 (do_switch_frame): When for_deletion under Cocoa, add
12433 Fraise_frame(Qnil).
12434 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12435 (x_get_arg): Allow "yes" and "no" as boolean values.
12436 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12437 Qright under Cocoa.
12438 (focus-follows-mouse): Default to 0 under NS.
12439 * frame.h (enum output_method): Add output_ns.
12440 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12441 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12442 (FRAME_WINDOW_P): NS-specific definition.
12443 * fringe.c (max_used_fringe_bitmap): Make public.
12444 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12445 (getloadavg): Use NeXT code under descendant OS's.
12446 * image.c (includes and header section, x_create_bitmap_from_data)
12447 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12448 (image_background_transparent, x_clear_image_1)
12449 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12450 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12451 (x_to_xcolors, x_from_xcolors, x_disable_image)
12452 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12453 other GUIs, including XPM support using code originally written for
12454 Carbon GUI.
12455 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12456 using NS API.
12457 (image_ascent): Use font metrics macros instead of direct struct field
12458 access.
12459 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12460 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12461 Also, handle NS as GTK for menu bar purposes.
12462 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12463 toolkit where they differ.
12464 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12465 use cachelist, still needed under NS.
12466 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12467 (struct widget_value): Define it here for menu.c.
12468 * keymap.c (includes): Include modifier internals.
12469 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12470 NS.
12471 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12472 support for preferring sequences using certain modifiers, specified by
12473 the FIRSTONLY argument.
12474 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12475 under NS GNUstep implementation.
12476 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12477 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12478 * menu.c: Include nsterm.h under NS.
12479 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12480 (free_menubar_widget_tree_value, update_submenu_strings)
12481 (find_and_call_menu_selection): Treat NS as X and NT.
12482 (find_and_return_menu_selection): New function, used for popup menus.
12483 * nsgui.h:
12484 * nsterm.h:
12485 * nsfns.m:
12486 * nsimage.m:
12487 * nsmenu.m:
12488 * nsselect.m:
12489 * nsterm.m: New files.
12490 * process.c (wait_reading_process_output): Under NS, call ns_select()
12491 instead of plain select().
12492 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12493 beginning of buffer.
12494 * sysselect.h (init_process): Rename when compiling under Cocoa to
12495 avoid name conflict.
12496 * termhooks.h (display_info): Add ns_display_info to union.
12497 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12498 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12499 COCOA environment.
12500 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12501 unexec() signature. (Note, this will dump, but the resulting file
12502 crashes; unexosx is used instead; keeping around for reference and
12503 possible aid in getting dump working under GNUstep.)
12504 * w32gui.h (button_type, widget_value): Remove definitions (now in
12505 keyboard.h).
12506 * window.c: Include nsterm.h when compiling under NS.
12507 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12508 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12509 other GUI windowing systems.
12510 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12511 GTK.
12512 (x_consider_frame_title): Under NS, set icon type and frame
12513 modified-state indicator; use ns_set_name_as_filename() when using
12514 formatted title.
12515 (update_window_cursor): Make public when compiling under NS.
12516 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12517 (hourglass_atimer, Vhourglass_delay
12518 * xfaces.c (header section, init_frame_faces, clear_font_table)
12519 (defined_color, unload_color, x_face_list_fonts)
12520 (prepare_face_for_display): Add NS support parallel to other GUIs.
12521 Emulate GCs like other non-X GUIs.
12522 (split_font_name): Don't lowercase font name under NS.
12523 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12524 under NS.
12525 * s/darwin.h: Add support for compilation under NS.
12526
125272008-07-15 Jason Rumney <jasonr@gnu.org>
12528
12529 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12530 (w32_show_hourglass): Rename from show_hourglass.
12531 (w32_hide_hourglass): Rename from hide_hourglass.
12532 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12533 (Vhourglass_delay): Declare extern.
12534 (hourglass_started): Remove.
12535
12536 * xdisp.c (Vhourglass_delay): Remove static.
12537 (hourglass_started, start_hourglass, cancel_hourglass):
12538 Don't include these versions on WINDOWSNT.
12539
125402008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12541
12542 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12543 variables (formerly in xfns.c).
12544 (show_hourglass, hide_hourglass): New prototypes (same).
12545 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12546 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12547 in xfns.c).
12548 (syms_of_xdisp): Declare/initialize display-hourglass,
12549 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12550 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12551 formerly in xfns.c.
12552 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12553 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12554 (start_hourglass, cancel_hourglass): Remove.
12555 (show_hourglass, hide_hourglass): Remove prototypes and static
12556 modifiers.
12557 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12558 hourglass_atimer, hourglass_shown_p declaration/initialization.
12559 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12560 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12561 (start_hourglass, cancel_hourglass): Remove.
12562 (show_hourglass, hide_hourglass): Remove prototypes and static
12563 modifiers.
12564 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
12565 hourglass_atimer, hourglass_shown_p declaration/initialization.
12566 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12567 (DEFAULT_HOURGLASS_DELAY): Remove.
12568 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12569 hourglass_shown_p declaration/initialization.
12570
125712008-07-14 Jason Rumney <jasonr@gnu.org>
12572
12573 * w32fns.c (w32_get_arg): Remove wrapper function.
12574 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12575 directly.
12576 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12577
125782008-07-14 Kenichi Handa <handa@m17n.org>
12579
12580 * xfont.c (xfont_open): Add workaround for X's bug.
12581
125822008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12583
12584 * fontset.c: Include <stdio.h> unconditionally.
12585
125862008-07-13 Michael Albinus <michael.albinus@gmx.de>
12587
12588 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12589 for filtering.
12590
125912008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12592
12593 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12594
12595 * m/macppc.h:
12596 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12597
c4cc8b9a 12598 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12599 (SPECIAL_EMACS_INT):
12600 * m/ia64.h (SPECIAL_EMACS_INT):
12601 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12602 * s/gnu.h (NLIST_STRUCT):
12603 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12604 * s/gnu-linux.h (LINUX):
12605 * s/msdos.h (HAVE_FACES):
12606 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12607
12608 * systty.h:
12609 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12610 anymore.
12611
126122008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12613
12614 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12615 always defined as int.
12616
12617 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12618 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12619 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12620 * s/freebsd.h (HAVE_WAIT_HEADER):
12621 * s/bsd-common.h (HAVE_UNION_WAIT):
12622 * s/aix4-2.h (HAVE_WAIT_HEADER):
12623 * m/mips.h (HAVE_UNION_WAIT):
12624 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12625 (COFF, static): Do not define, they are undefined later in the file.
12626
12627 * process.c (update_status): Don't use a union.
12628 (status_convert):
12629 (sigchld_handler): Use int instead of WAITTYPE.
12630
126312008-07-12 Chong Yidong <cyd@stupidchicken.com>
12632
12633 * indent.c (Fvertical_motion): Restore hscroll before moving to
12634 goal column.
12635
126362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12637
12638 * lisp.h: Remove left over code.
12639
126402008-07-11 Andreas Schwab <schwab@suse.de>
12641
12642 * lisp.h: Fix logic in last change.
12643
12644 * menu.h: New file.
12645 * menu.c: Include it.
12646 * xmenu.c: Likewise.
12647 * Makefile.in: Update dependencies.
12648
126492008-07-11 Kenichi Handa <handa@m17n.org>
12650
12651 * fontset.c (fontset_from_font): Cancel the previous change.
12652
126532008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12654
12655 * lisp.h:
12656 * w32heap.c:
12657 * emacs.c:
12658 * alloc.c: Replace all references of NO_UNION_TYPE with
12659 USE_LISP_UNION_TYPE.
12660
12661 * m/xtensa.h (NO_UNION_TYPE):
12662 * m/vax.h (NO_UNION_TYPE):
12663 * m/template.h (NO_UNION_TYPE):
12664 * m/sparc.h (NO_UNION_TYPE):
12665 * m/mips.h (NO_UNION_TYPE):
12666 * m/macppc.h (NO_UNION_TYPE):
12667 * m/m68k.h (NO_UNION_TYPE):
12668 * m/iris4d.h (NO_UNION_TYPE):
12669 * m/intel386.h (NO_UNION_TYPE):
12670 * m/ibms390x.h (NO_UNION_TYPE):
12671 * m/ibms390.h (NO_UNION_TYPE):
12672 * m/ibmrs6000.h (NO_UNION_TYPE):
12673 * m/ia64.h (NO_UNION_TYPE):
12674 * m/hp800.h (NO_UNION_TYPE):
12675 * m/arm.h (NO_UNION_TYPE):
12676 * m/amdx86-64.h (NO_UNION_TYPE):
12677 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12678 defining it the same.
12679
126802008-07-10 Chong Yidong <cyd@stupidchicken.com>
12681
12682 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12683
126842008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12685
12686 * fileio.c:
50426a04 12687 * sysdep.c:
aac0c6e3
MR
12688 * systty.h:
12689 * m/ibmrs6000.h:
12690 * m/iris4d.h:
12691 * s/aix4-2.h:
12692 * s/freebsd.h:
12693 * s/gnu-linux.h:
12694 * s/hpux10-20.h:
12695 * s/hpux11.h:
12696 * s/netbsd.h:
12697 * s/sol2-3.h:
12698 * s/sol2-4.h:
12699 * s/sol2.h:
12700 * s/usg5-4.h:
12701 * s/vms.h: Remove references to unused variables.
12702
127032008-07-10 Andreas Schwab <schwab@suse.de>
12704
12705 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12706 pattern before matching the generic family.
12707
127082008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12709
12710 * unexec.c:
12711 * s/vms.h:
12712 * s/usg5-4-2.h:
12713 * s/sol2-5.h:
12714 * s/freebsd.h:
12715 * s/darwin.h: Remove dead code.
12716
12717 * m/template.h:
12718 * m/sparc.h:
12719 * m/mips.h:
12720 * m/m68k.h:
12721 * m/iris4d.h:
12722 * m/intel386.h:
12723 * m/ibms390x.h:
12724 * m/ibms390.h:
12725 * m/ia64.h:
12726 * m/hp800.h:
12727 * m/arm.h:
12728 * m/amdx86-64.h: Remove dead code and references to unused
12729 and compiler defined symbols.
12730
12731 * unexmips.c:
12732 * unexelf.c: Remove references to desupported systems.
12733
12734 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12735
12736 * m/powermac.h: Remove boilerplate comments.
12737 (NO_REMAP): Remove unused definition.
12738
12739 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12740 define them.
12741
127422008-07-10 Kenichi Handa <handa@m17n.org>
12743
12744 * xfont.c (xfont_open): Log the reason of failure.
12745
127462008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12747
12748 * fontset.c (fontset_get_font_group):
12749 * font.c (font_check_otf): Specify argument types.
12750
127512008-07-09 Kenichi Handa <handa@m17n.org>
12752
12753 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12754 non-ASCII char is found.
12755
12756 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12757 (reorder_font_vector): Change the arg preferred_family to font.
12758 Prefer the spec matching with font.
12759 (fontset_get_font_group): New function.
12760 (fontset_find_font): Change the format of an element of a realized
12761 fontset. Use fontset_get_font_group.
12762 (fontset_font): Try the current fontset, the default fontset, the
12763 fallbacks of the current fontset, and the fallbacks of the default
12764 fontset in this order.
12765 (face_for_char): Delete the shortcut to use the current font.
12766 (fontset_from_font): Don't set fonts for Latin in the fontset.
12767
12768 * font.h (font_make_object, font_match_p): Adjust prototypes.
12769
12770 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12771
12772 * font.c (font_make_object): New arg entity and pixelsize.
12773 (font_check_otf_features, font_check_otf): New functions.
12774 (font_match_p): Check :lang, :script, and :otf properties.
12775
12776 * xfont.c (xfont_open): Adjust it for the change of
12777 font_make_object.
12778 (xfont_text_extents): Fix initial setting of metrics.
12779
12780 * ftfont.c (struct ftfont_info): New member index, delete member
12781 fc_charset_idx. Make the member order compatible with struct
12782 xftfont_info.
12783 (fc_charset_table): Change charset names to registry names.
12784 (ftfont_pattern_entity): Delete the args registry and
12785 fc_charset_idx. Change the value of :font-entity property
12786 to (FONTNAME . INDEX). Always set :registry property to
12787 `iso10646-1'.
12788 (struct ftfont_cache_data): New struct.
12789 (ftfont_lookup_cache): New arg for_face.
12790 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12791 (ftfont_driver): Set the member otf_capability.
12792 (ftfont_get_charset): Adjust it for the change of
12793 fc_charset_table.
12794 (OTF_TAG_SYM): New macro.
12795 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12796 for the change of fc_charset_table.
12797 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12798 ftfont_pattern_entity. Add FC_INDEX to objset.
12799 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12800 and ftfont_pattern_entity.
12801 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12802 font_make_object, struct ftfont_info.
12803 (ftfont_has_char): Use ftfont_get_fc_charset.
12804 (ftfont_otf_features, ftfont_otf_capability): New functions.
12805 (ftfont_shape): Use ftfont_get_otf.
12806 (ftfont_text_extents): Fix initial setting of metrics.
12807
12808 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12809 member order compatible with struct ftfont_info.
12810 (xftfont_open): Add FC_CHARSET to the pattern. Set
12811 xftfont_info->ft_size. Don't unlock the face. Check BDF
12812 properties if appropriate.
12813 (xftfont_close): Unlock the face.
12814 (xftfont_anchor_point, xftfont_shape): Deleted.
12815 (syms_of_xftfont): Don't set members anchor_point and shape of
12816 xftfont_driver.
12817
12818 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12819 font_make_object.
12820
12821 * w32font.c (w32font_open): Adjust it for the change of
12822 font_make_object.
12823 (w32font_open_internal): Don't set properties of font_object here.
12824
128252008-07-08 Chong Yidong <cyd@stupidchicken.com>
12826
12827 * macfns.c (x_create_tip_frame):
12828 * w32fns.c (x_create_tip_frame):
12829 * xfns.c (x_create_tip_frame): Pass parameter argument to
12830 face-set-after-frame-default.
12831
12832 * xfaces.c (Finternal_merge_in_global_face): Save merged
12833 attributes for the default face back into the face vector.
12834
128352008-07-08 Andreas Schwab <schwab@suse.de>
12836
12837 * fontset.h: Declare fontset_from_font. Don't declare
12838 new_fontset_from_font and fontset_from_font_name.
12839 * xterm.c: Include "fontset.h".
12840 * Makefile.in (xterm.o): Update dependencies.
12841
128422008-07-08 Glenn Morris <rgm@gnu.org>
12843
12844 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12845 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12846
128472008-07-07 Chong Yidong <cyd@stupidchicken.com>
12848
12849 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12850 (x_set_frame_parameters): Don't bind it.
12851
128522008-07-07 Juanma Barranquero <lekktu@gmail.com>
12853
12854 * w32fns.c (map_w32_filename): Declare extern.
12855
128562008-07-07 Jason Rumney <jasonr@gnu.org>
12857
12858 * w32term.c (WS_EX_LAYERED): Define if not already.
12859
128602008-07-06 Chong Yidong <cyd@stupidchicken.com>
12861
12862 * xfaces.c (set_font_frame_param): Don't try to set the font
12863 parameter if it is still unspecified in the lface.
12864
128652008-07-05 Chong Yidong <cyd@stupidchicken.com>
12866
12867 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12868 face if it didn't already exist.
12869
12870 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12871
128722008-07-05 Andreas Schwab <schwab@suse.de>
12873
12874 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12875
128762008-07-05 Chong Yidong <cyd@stupidchicken.com>
12877
12878 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12879 word-wrapping.
12880 (IT_DISPLAYING_WHITESPACE): New macro.
12881 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12882 when word-wrapping. Simplify word-wrapping logic. Use correct
12883 pixel positions when saving copies of the iterator.
12884 (display_line): Use proper wrap point if the last character on a
12885 line was preceded by whitespace.
12886
128872008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12888
12889 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12890
128912008-07-04 Kenichi Handa <handa@m17n.org>
12892
12893 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12894
12895 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12896
128972008-07-02 Jason Rumney <jasonr@gnu.org>
12898
12899 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12900 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12901
12902 * xdisp.c (next_element_from_display_vector): Move assignment out
12903 of if statement.
12904
129052008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12906
12907 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12908
12909 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12910 (syms_of_fileio): Initialize and export them.
12911 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12912
12913 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12914 (Fsystem_move_file_to_trash): New function.
12915 (syms_of_w32fns): Export it to lisp.
12916
129172008-07-01 Jason Rumney <jasonr@gnu.org>
12918
12919 * w32font.c (w32font_text_extents): Don't count overhang as part
12920 of width.
12921
129222008-06-30 Miles Bader <miles@gnu.org>
12923
12924 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12925 Add `avoid_cursor_p' field.
12926
12927 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12928 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12929 (append_glyph, append_composite_glyph, produce_image_glyph)
12930 (append_stretch_glyph): Initialize avoid_cursor_p.
12931 (get_it_property): Rename from `get_line_height_property'.
12932 (x_produce_glyphs): Use get_it_property.
12933 (handle_line_prefix, push_display_prop): New functions.
12934 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12935 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12936 New variables.
12937 (syms_of_xdisp): Initialize them.
12938
129392008-06-30 Kenichi Handa <handa@m17n.org>
12940
12941 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12942 XftDefaultSubstitute (they are called in XftFontMatch).
12943 (xftfont_open): Fix args to ftfont_font_format.
12944
12945 * ftfont.c (fc_charset_table): New member lang.
12946 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12947 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12948 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12949 (ftfont_open): Fix args to ftfont_font_format.
12950 (ftfont_font_format): New arg filename.
12951
129522008-06-30 Chong Yidong <cyd@stupidchicken.com>
12953
12954 * xfaces.c (Finternal_merge_in_global_face): If default face was
12955 modified, realize it again. Update the font face attribute.
12956
129572008-06-29 Jason Rumney <jasonr@gnu.org>
12958
12959 * w32term.c (x_set_frame_alpha): Fix logic.
12960
129612008-06-29 Kenichi Handa <handa@m17n.org>
12962
12963 * fontset.c (Finternal_char_font): Return font-object instead of
12964 font-name.
12965
12966 * composite.c (get_composition_id): Fix the width calculation for TAB.
12967
129682008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12969
12970 * indent.c (Fvertical_motion): Properly handle float column arg.
12971
129722008-06-28 Jason Rumney <jasonr@gnu.org>
12973
12974 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12975 (pfnSetLayeredWindowAttributes): New function pointer.
12976 (w32_initialize): Initialize it when supported.
12977 (x_set_frame_alpha): New function.
12978
12979 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12980 (w32_frame_parm_handlers): Set alpha handler.
12981
12982 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12983
129842008-06-27 Jason Rumney <jasonr@gnu.org>
12985
12986 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12987 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12988 (w32_to_x_charset, x_to_w32_charset)
12989 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12990 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12991 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12992 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12993 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12994 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12995 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12996 (Qw32_charset_unicode): Remove.
12997 (syms_of_w32fns): Update for above changes.
12998
12999 * w32font.c (w32_to_x_charset, x_to_w32_charset)
13000 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
13001 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
13002 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
13003 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
13004 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
13005 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
13006 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13007 (syms_of_w32font): Update for above changes.
13008
130092008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13010
13011 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13012 removed #if.
13013 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13014
130152008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13016 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13017
13018 * makefile.w32-in (LOCAL_FLAGS):
13019 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13020
13021 * sysdep.c (_spawnlp, _getpid):
13022 Declare with explicit _cdecl instead of _CRTAPI1.
13023
13024 * editfns.c (Fget_internal_run_time):
13025 Check for WINDOWSNT with #ifdef, not #if.
13026
130272008-06-26 Jason Rumney <jasonr@gnu.org>
13028
13029 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13030
13031 * w32term.c (x_draw_glyph_string_foreground)
13032 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13033 Use FONT_HANDLE macro.
13034 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13035
13036 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13037 (uniscribe_encode_char): Use FONT_HANDLE macro.
13038
13039 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13040 (w32font_text_extents): Use precast w32_font.
13041 (w32font_close): Free cached metrics.
13042 (w32font_open_internal): Allocate space for name on stack.
13043
130442008-06-26 Chong Yidong <cyd@stupidchicken.com>
13045
13046 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13047
130482008-06-26 Jason Rumney <jasonr@gnu.org>
13049
13050 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13051 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13052
130532008-06-26 Juanma Barranquero <lekktu@gmail.com>
13054
13055 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13056
130572008-06-26 Jason Rumney <jasonr@gnu.org>
13058
13059 * w32bdf.c, w32bdf.h: Remove obsolete files.
13060
13061 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13062
13063 * w32gui.h: Don't include w32bdf.h.
13064 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13065 Remove obsolete font support.
13066
13067 * w32font.h (struct w32font_info): Remove compat_w32_font.
13068 Add hfont member.
13069 (FONT_COMPAT): Remove obsolete macro.
13070
13071 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13072 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13073 (w32font_open_internal): Remove compat code. Set new hfont member.
13074 (Fx_select_font): Use new hfont member.
13075
13076 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13077 (uniscribe_encode_char): Use new hfont member.
13078
13079 * w32term.c (x_draw_glyph_string_foreground)
13080 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13081 (x_draw_glyph_string): Use metrics in w32font_info.
13082
130832008-06-26 Kenichi Handa <handa@m17n.org>
13084
13085 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13086
130872008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13088
13089 * unexnext.c:
13090 * m/ews4800.h:
13091 * m/hp9000s300.h:
13092 * m/ibm370aix.h:
13093 * m/mips-siemens.h:
13094 * m/ncr386.h:
13095 * m/next.h:
13096 * m/pmax.h:
13097 * m/powerpcle.h:
13098 * m/tandem-s2.h:
13099 * s/386bsd.h:
13100 * s/bsd386.h:
13101 * s/bsd4-1.h:
13102 * s/bsd4-2.h:
13103 * s/bsdos2-1.h:
13104 * s/bsdos2.h:
13105 * s/bsdos3.h:
13106 * s/bsdos4.h:
13107 * s/nextstep.h:
13108 * s/ultrix4-3.h:
13109 * s/usg5-0.h:
13110 * s/usg5-2-2.h:
13111 * s/usg5-2.h:
13112 * s/usg5-4-3.h:
13113 * s/ux4800.h:
13114 * s/uxpds.h:
13115 * s/uxpv.h: Remove support for obsolete systems.
13116 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13117 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13118 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13119 Remove, insert contents in s/aix4-2.h.
13120 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13121 * s/bsd4-3.h: Rename to ...
13122 * s/bsd-common.h: ... this.
13123 * data.c:
13124 * doc.c:
13125 * ecrt0.c:
13126 * emacs.c:
13127 * fileio.c:
13128 * floatfns.c:
13129 * keyboard.c:
13130 * mem-limits.h:
13131 * print.c:
13132 * process.c:
13133 * sysdep.c:
13134 * syssignal.h:
13135 * systty.h:
13136 * syswait.h:
13137 * term.c:
13138 * unexec.c:
13139 * unexelf.c:
13140 * unexhp9k800.c:
13141 * m/hp800.h:
13142 * m/ibmrs6000.h:
13143 * m/mips.h:
13144 * m/vax.h:
13145 * s/darwin.h:
13146 * s/freebsd.h:
13147 * s/gnu.h:
13148 * s/ms-w32.h:
13149 * s/msdos.h:
13150 * s/netbsd.h:
13151 * s/template.h: Remove references to obsolete variables.
13152
13153 * Makefile.in: Add dependencies for all unexec files.
13154 (admindir): Remove unused variable.
13155 (UNEXEC_SRC): Remove references.
13156
131572008-06-25 Chong Yidong <cyd@stupidchicken.com>
13158
13159 * xfns.c (x_default_font_parameter): If Xft is available, first
13160 try Monospace-12 for the default font.
13161
131622008-06-25 Jason Rumney <jasonr@gnu.org>
13163
13164 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13165
131662008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13167
13168 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13169
13170 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13171
131722008-06-25 Juanma Barranquero <lekktu@gmail.com>
13173
13174 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13175 <scroll-conservatively>: Fix typo in docstring.
13176
13177 * xselect.c (Fx_send_client_event): Doc fix.
13178
131792008-06-25 Kenichi Handa <handa@m17n.org>
13180
13181 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13182
13183 * font.c (font_parse_fcname): Remove unused variables.
13184 (font_sort_entites): Delete the arg SPEC. Caller changed.
13185 Fix for the case of ! best_only.
13186 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13187
13188 * lisp.h (Fstring_to_unibyte): EXFUN it.
13189
13190 * character.h (str_to_unibyte): Extern it.
13191
13192 * character.c (str_to_unibyte): New function.
13193
13194 * fns.c (Fstring_to_unibyte): New function.
13195 (syms_of_fns): Defsubr it.
13196
131972008-06-24 Kenichi Handa <handa@m17n.org>
13198
13199 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13200 DPI too.
13201 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13202
132032008-06-24 Andreas Schwab <schwab@suse.de>
13204
13205 * Makefile.in (${lispsource}loaddefs.el): Rename from
13206 ../lisp/loaddefs.el.
13207 (bootstrap-clean): Do what distclean does but don't remove
13208 Makefile.
13209 (distclean): Depend on bootstrap-clean and remove Makefile.
13210
132112008-06-24 Chong Yidong <cyd@stupidchicken.com>
13212
13213 * buffer.h (struct buffer): New member word_wrap.
13214
13215 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13216 word-wrap.
13217 (init_buffer_once): Initialize them.
13218
13219 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13220 line_wrap enum possessing three possible values.
13221
13222 * termopts.h: Replace truncate_partial_width_windows with
13223 Vtruncate_partial_width_windows.
13224
13225 * dispnew.c (direct_output_for_insert): Avoid direct output when
13226 inserting a space with word wrap on.
13227
13228 * indent.c (compute_motion): Obey integer values of
13229 truncate-partial-width-windows.
13230
13231 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13232 replacing truncate_partial_width_windows.
13233 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13234 truncate only if the window width is below that integer.
13235 (start_display, resize_mini_window, produce_stretch_glyph)
13236 (display_string, move_it_in_display_line_to): Use line_wrap.
13237 (back_to_previous_visible_line_start, reseat_1): Reset
13238 string_from_display_prop_p.
13239 (display_line): Extend default face to end of line when wrapping.
13240
132412008-06-24 Kim F. Storm <storm@cua.dk>
13242
13243 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13244 to wrap continued lines at word boundaries.
13245
132462008-06-24 Jason Rumney <jasonr@gnu.org>
13247
13248 * font.c (Ffont_face_attributes): Multiply pixel size before point
13249 conversion to avoid multiplying rounding error.
13250
132512008-06-23 Jason Rumney <jasonr@gnu.org>
13252
13253 * w32term.c (x_draw_glyph_string_background)
13254 (x_draw_glyph_string): Remove old bdf font code.
13255
13256 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13257
132582008-06-22 Kenichi Handa <handa@m17n.org>
13259
13260 * font.c (font_find_for_lface): Try the adstyle specified in
13261 the property of LFACE_FONT of LFACE (if any).
13262
132632008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13264 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13265
13266 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13267
132682008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13269
13270 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13271 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13272 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13273 (witness-emacs): Remove.
13274 (lisp, shortlisp): Move loaddefs.el earlier.
13275 (mostlyclean): Forget about witness-emacs.
13276
132772008-06-22 Glenn Morris <rgm@gnu.org>
13278
13279 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13280 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13281
132822008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13283
13284 * Makefile.in (PRECOMP): Remove.
13285 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13286 (witness-emacs): Run `compile-first'.
13287 (.el.elc): Use the new compile-onefile target.
13288
132892008-06-21 Kenichi Handa <handa@m17n.org>
13290
13291 * xftfont.c (xftfont_open): Handle QCembolden only when
13292 FC_EMBOLDEN is defined.
13293
132942008-06-21 Andreas Schwab <schwab@suse.de>
13295
13296 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13297 (.el.elc): Likewise.
13298
132992008-06-21 Miles Bader <miles@gnu.org>
13300
13301 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13302 build dir, not the lisp source dir.
13303
133042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13305
13306 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13307 (bootstrapclean): Remove.
13308 (.el.elc): New rule.
13309 (PRECOMP): New var.
13310 (../lisp/subdirs.el): Remove.
13311 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13312 (witness-emacs): New target.
13313 (mostlyclean): Remove witness-emacs as well.
13314 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13315 Add witness-emacs dependency.
13316
133172008-06-20 Chong Yidong <cyd@stupidchicken.com>
13318
13319 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13320 defined by the font.
13321
133222008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13323
13324 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13325 (bootstrap-clean): New target that keeps TAGS around.
13326 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13327 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13328
133292008-06-20 Jason Rumney <jasonr@gnu.org>
13330
13331 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13332 Remove obsolete font code.
13333
13334 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13335 to determine language support.
13336
133372008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13338
13339 * sysdep.c (cfsetspeed): New fun extracted from the code.
13340 (cfmakeraw): Move before first use.
13341
133422008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13343
13344 * sysdep.c (cfmakeraw): Provide fallback implementation.
13345 (serial_configure): Provide fallback implementation of cfsetspeed.
13346
133472008-06-20 Kenichi Handa <handa@m17n.org>
13348
13349 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13350 the pattern.
13351
13352 * fontset.c (fontset_from_font): Copy font_spec before changing
13353 the elements.
13354
13355 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13356
133572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13358
13359 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13360 for explicit `font' parameters.
13361
13362 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13363
133642008-06-19 Kenichi Handa <handa@m17n.org>
13365
13366 * frame.c: Include <ctype.h>.
13367 (x_set_font_backend): Allow spacing characters in the X resource
13368 for FontBackend.
13369
133702008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13371
13372 * w32fns.c, xfns.c (Qfont_param): New var.
13373 (syms_of_w32fns): Initialize it.
13374 (x_default_font_parameter): Record explicit `font' into
13375 `font-parameter'.
13376
133772008-06-18 Kenichi Handa <handa@m17n.org>
13378
13379 * font.c (font_parse_xlfd): Fix previous change.
13380 (font_parse_fcname): Don't use :fc-unknown-spec.
13381 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13382 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13383 (font_add_log): Prepend the driver name to the resulting fonts.
13384
13385 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13386 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13387 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13388
13389 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13390 (QCembolden): New variables.
13391 (syms_of_xftfont): DEFSYM them.
13392 (xftfont_open): Call XftFontMatch. Don't trust the result of
13393 XftTextExtents8 if the pixel_size is less than 5.
13394
133952008-06-18 Andreas Schwab <schwab@suse.de>
13396
13397 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13398 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13399
134002008-06-18 Jason Rumney <jasonr@gnu.org>
13401
13402 * w32font.c (w32font_list, w32font_match): Add logging.
13403
13404 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13405
134062008-06-17 Chong Yidong <cyd@stupidchicken.com>
13407
13408 * font.c (font_parse_fcname): Store divider characters for
13409 unknown-spec list. For known key symbols, intern using correct
13410 symbol name.
13411
134122008-06-17 Kenichi Handa <handa@m17n.org>
13413
13414 * xfaces.c (realize_default_face): If the frame is not on window
13415 system, set the fontset of face to nil.
13416
134172008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13418
13419 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13420
134212008-06-16 Juanma Barranquero <lekktu@gmail.com>
13422
13423 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13424 (build_font_name_from_vector): Delete externs.
13425
13426 * xfaces.c (struct font_name): Don't declare.
13427
134282008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13429
13430 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13431
134322008-06-16 Chong Yidong <cyd@stupidchicken.com>
13433
13434 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13435
134362008-06-16 Juanma Barranquero <lekktu@gmail.com>
13437
13438 * font.c (Ffont_spec): Fix usage in docstring.
13439 (Ffont_face_attributes): Doc fix.
13440
134412008-06-16 Andreas Schwab <schwab@suse.de>
13442
13443 * font.c (Ffont_face_attributes): Fix definition.
13444
134452008-06-16 Jason Rumney <jasonr@gnu.org>
13446
13447 * font.h (font_style_symbolic_from_value): Remove.
13448
13449 * font.c (font_style_symbolic_from_value): Remove.
13450 (font_style_symbolic): Revert to pre 2008-06-13 version.
13451
13452 * w32font.c (w32_to_fc_weight): New function.
13453 (w32font_full_name, logfont_to_fcname): Use it.
13454
134552008-06-16 Kenichi Handa <handa@m17n.org>
13456
13457 * font.c (font_check_object): Delete it.
13458 (font_clear_cache): Check if a font-object is alive.
13459 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13460 font-object to nil.
13461 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13462 (font_at): Don't call font_check_object.
13463 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13464
134652008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13466
13467 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13468
134692008-06-16 Chong Yidong <cyd@stupidchicken.com>
13470
13471 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13472
134732008-06-15 Chong Yidong <cyd@stupidchicken.com>
13474
13475 * font.c (font_parse_fcname): Only one decimal point.
13476 (font_unparse_fcname): Handle data in family and foundry indices
13477 as symbols, not strings.
13478 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13479
13480 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13481
13482 * font.h (font_unparse_gtkname): Add prototype.
13483
134842008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13485
13486 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13487
134882008-06-15 Andreas Schwab <schwab@suse.de>
13489
13490 * font.c (font_update_drivers): Fix crash when no drivers match.
13491
134922008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13493
13494 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13495 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13496
134972008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13498
13499 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13500
135012008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13502
13503 * process.c (Fserial_process_configure, Fprocess_send_eof):
13504 Use EQ to compare Lisp_Objects.
13505
135062008-06-13 Jason Rumney <jasonr@gnu.org>
13507
13508 * w32fns.c (Fw32_select_font): Remove old font API function.
13509
13510 * w32font.c (logfont_to_fcname): New function.
13511 (Fx_select_font): New font dialog function compatible with
13512 GTK/fontconfig version.
13513
13514 * font.c (font_style_symbolic_from_value): New function.
13515 (font_style_symbolic): Use it.
13516
13517 * font.h (font_style_symbolic_from_value): Declare new function.
13518
135192008-06-13 Juanma Barranquero <lekktu@gmail.com>
13520
13521 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13522 <font-width-table>: Fix typos in docstrings.
13523
135242008-06-13 Daniel Engeler <engeler@gmail.com>
13525
13526 These changes add serial port access.
13527 * process.c: Add HAVE_SERIAL.
13528 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13529 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13530 (list_processes_1, select_wrapper, Fstop_process)
13531 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13532 (status_notify): Modify to handle serial processes.
13533 [HAVE_SERIAL] (Fserial_process_configure)
13534 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13535 New functions.
13536 * process.h (struct Lisp_Process): Add `type'.
13537 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13538 New functions.
13539 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13540 serial ports.
b71ac3dd 13541 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13542 * w32.h: Add FILE_SERIAL.
13543 (struct _child_process): Add ovl_read, ovl_write.
13544
135452008-06-13 Kenichi Handa <handa@m17n.org>
13546
13547 * dispextern.h (enum lface_attribute_index): New member
13548 LFACE_FOUNDRY_INDEX.
13549
13550 * font.c (font_score): Delete arg alternate_families. Check only
13551 weight, slant, width, and size. Ignore the difference of alias
13552 style symbols.
13553 (font_sort_entites): Adjust for the above change. Reflect the
13554 order of font-driver to scores.
13555 (font_list_entities): Don't check alternate_familes here.
13556 (font_clear_prop): Handle foundry.
13557 (font_update_lface): Don't parse "foundry-family" form here.
13558 Handle FONT_FOUNDRY_INDEX.
13559 (font_find_for_lface): Likewise. Handle alternate families here.
13560 If registry is nil, try iso8859-1 and ascii-0.
13561 (font_open_for_lface): Pay attention to size in ENTITY.
13562 (font_open_by_name): Simplify by calling font_load_for_lface.
13563 (free_font_driver_list): Delete it.
13564 (font_update_drivers): Preserve the order of backends.
13565 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13566 of font_score and font_sort_entites.
13567 (font_update_sort_order): Likewise.
13568
13569 * xfaces.c (LFACE_FOUNDRY): New macro.
13570 (check_lface_attrs): Check foundry.
13571 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13572 (merge_face_vectors): Check foundry.
13573 (merge_face_ref): Likewise.
13574 (Finternal_set_lisp_face_attribute): Likewise.
13575 (x_update_menu_appearance): Likewise.
13576 (Finternal_get_lisp_face_attribute): Likewise.
13577 (lface_hash): Likewise.
13578 (lface_same_font_attributes_p): Likewise.
13579 (x_supports_face_attributes_p): Likewise.
13580 (tty_supports_face_attributes_p): Likewise.
13581 (Finternal_set_alternative_font_family_alist): Intern strings.
13582 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13583 (realize_default_face): Set LFACE_FOUNDRY (lface).
13584
13585 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13586 font-driver at first.
13587
13588 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13589
135902008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13591
13592 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13593
135942008-06-12 Jim Meyering <meyering@redhat.com>
13595
13596 Make unexec_free handle NULL the same way free does.
13597 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13598
135992008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13600
13601 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13602 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13603 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13604 (WEAK_ALIAS): Simplify.
13605 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13606 when searching a unibyte buffer.
13607
136082008-06-12 Chong Yidong <cyd@stupidchicken.com>
13609
13610 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13611
136122008-06-12 Juanma Barranquero <lekktu@gmail.com>
13613
13614 * w32font.c: Include ctype.h.
13615
136162008-06-11 Jason Rumney <jasonr@gnu.org>
13617
13618 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13619 misreported as space.
13620 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13621 as aliases for registry iso10646-1.
13622
136232008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13624
13625 * buffer.c (clone_per_buffer_values): Skip `name'.
13626
136272008-06-11 Chong Yidong <cyd@stupidchicken.com>
13628
13629 * font.c (font_parse_fcname): Fix last change; accept decimal
13630 points in font size.
13631
136322008-06-10 Jason Rumney <jasonr@gnu.org>
13633
13634 * w32uniscribe.c (add_opentype_font_name_to_list):
13635 Skip non unicode fonts.
13636
136372008-06-10 Chong Yidong <cyd@stupidchicken.com>
13638
13639 * xfns.c (Fx_font_dialog): New function.
13640
13641 * gtkutil.c (xg_dialog_response_cb): Rename from
13642 xg_file_response_callback.
13643 (pop_down_dialog): Rename from pop_down_file_dialog.
13644 (xg_get_file_name): Callers changed.
13645 (xg_get_font_name): New function.
13646
13647 * gtkutil.h (xg_get_font_name): Insert prototype.
13648
136492008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13650
13651 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13652 x_underline_minimum_display_offset.
13653 (syms_of_xdisp): Declare it here rather than in xterm.c.
13654 * dispextern.h (underline_minimum_offset): Declare it.
13655 * w32term.c (x_draw_glyph_string): Use it.
13656 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13657 (syms_of_xterm): Don't declare it any more.
13658 (x_draw_glyph_string): Adjust to the new name.
13659
8719abec 136602008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13661
13662 * xterm.c (x_underline_minimum_display_offset): New var.
13663 (x_draw_glyph_string): Use it.
13664 (syms_of_xterm): Declare it.
13665
136662008-06-10 Chong Yidong <cyd@stupidchicken.com>
13667
13668 * font.c (font_parse_fcname): Accept GTK-style font names too.
13669
136702008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13671
13672 * dired.c (file_name_completion): Don't return t if the match is exact
13673 but with different capitalization.
13674 * minibuf.c (Ftry_completion): Simplify.
13675
13676 * window.c (Vwindow_point_insertion_type): New var.
13677 (set_window_buffer): Use it.
13678 (syms_of_window): Init and export it to Lisp.
13679
136802008-06-10 Kenichi Handa <handa@m17n.org>
13681
13682 * font.h (font_intern_prop): Prototype adjusted.
13683
13684 * font.c (font_intern_prop): New arg force_symbol.
13685 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13686 Adjust for the change of font_intern_prop.
13687
13688 * ftfont.c (ftfont_pattern_entity):
13689 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13690 (w32_registry):
13691 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13692 the change of font_intern_prop.
13693
136942008-06-09 Juanma Barranquero <lekktu@gmail.com>
13695
13696 * w32menu.c (digest_single_submenu): Declare extern.
13697
136982008-06-09 Jason Rumney <jasonr@gnu.org>
13699
13700 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13701
13702 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13703 (parse_single_submenu): Remove.
13704 (digest_single_submenu): Remove.
13705 (syms_of_w32menu): Don't initialise variables that have moved
13706 to menu.c.
13707 (set_frame_menubar): Sync with version in xmenu.c.
13708 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13709
13710 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13711 Make static again.
13712
137132008-06-09 Jason Rumney <jasonr@gnu.org>
13714
13715 Changes to w32 files related to the move of common menu code
13716 to menu.c on 2008-06-08 by Chong Yidong.
13717
13718 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13719 defs to w32gui.h.
13720 (single_keymap_panes, push_menu_item, push_menu_pane):
13721 Make globally visible.
13722
13723 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13724 (local_free, malloc_widget_value, free_widget_value)
13725 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13726 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13727 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13728 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13729 (menu_items, menu_items_allocated, menu_items_used)
13730 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13731 (init_menu_items, finish_menu_items, discard_menu_items)
13732 (grow_menu_items, push_submenu_start, push_submenu_end)
13733 (push_left_right_boundary, push_menu_pane, push_menu_item)
13734 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13735 (free_menubar_widget_tree_value, parse_single_submenu)
13736 (update_submenu_strings): Remove functions.
13737 (xmalloc_widget_value): Remove and declare extern.
13738
13739 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13740 (OBJ1): Build it.
13741
13742 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13743 (local_heap, local_alloc, local_free, malloc_widget_value)
13744 (free_widget_value): Define here.
13745
137462008-06-09 Kenichi Handa <handa@m17n.org>
13747
13748 * font.h (Qascii_0): Extern it.
13749
13750 * font.c (Qascii_0): New variable.
13751 (syms_of_font): DEFSYM it.
13752 (font_open_by_name): If the registry "iso8859-1" fails, try also
13753 "ascii-0".
13754
13755 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13756
137572008-06-08 Kenichi Handa <handa@m17n.org>
13758
13759 * .gdbinit (xfont): New command.
13760
137612008-06-08 Andreas Schwab <schwab@suse.de>
13762
13763 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13764 * Makefile.in (menu.o): Update dependencies.
13765
13766 * Makefile.in (obj): Always add menu.o.
13767 * emacs.c (main): Always call syms_of_menu.
13768 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13769
137702008-06-08 Chong Yidong <cyd@stupidchicken.com>
13771
13772 * Makefile.in: Compile menu.c.
13773
13774 * lisp.h: Declare syms_of_menu.
13775
13776 * emacs.c (main): Call syms_of_menu.
13777
13778 * keyboard.h: Relocate platform-independent menu definitions from
13779 xmenu.c.
13780
13781 * menu.c: New file. Relocate platform-independent menu
13782 definitions from xmenu.c. Suggested by Adrian Robert.
13783
13784 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13785 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13786 (menu_items_used, menu_items_n_panes)
13787 (menu_items_submenu_depth): Move to keyboard.h.
13788 (init_menu_items, finish_menu_items, unuse_menu_items)
13789 (discard_menu_items, restore_menu_items, save_menu_items)
13790 (grow_menu_items, push_submenu_start, push_submenu_end)
13791 (push_left_right_boundary, push_menu_pane, push_menu_item)
13792 (keymap_panes, single_keymap_panes, single_menu_item)
13793 (list_of_panes, list_of_items, find_and_call_menu_selection)
13794 (xmalloc_widget_value, free_menubar_widget_value_tree)
13795 (parse_single_submenu, digest_single_submenu)
13796 (update_submenu_strings): Move to menu.c.
13797
137982008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13799
13800 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13801
138022008-06-06 Miles Bader <miles@gnu.org>
13803
13804 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13805 face, not frame default.
13806
138072008-06-05 Martin Rudalics <rudalics@gmx.at>
13808
13809 * window.c (pop_up_windows, pop_up_frames)
13810 (display_buffer_reuse_frames, Vpop_up_frame_function)
13811 (Vdisplay_buffer_function, Veven_window_heights)
13812 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13813 (Vspecial_display_function, Vsame_window_buffer_names)
13814 (Vsame_window_regexps, split_height_threshold)
13815 (Vsplit_window_preferred_function): Move those vars to window.el.
13816 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13817 (Fdisplay_buffer): Move those functions to window.el.
13818 (syms_of_window): Remove corresponding declarations.
13819 (display_buffer): New function.
13820 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13821 * dispnew.c (Flast_nonminibuf_frame): New function.
13822 * buffer.c (Fpop_to_buffer): Move to window.el.
13823
138242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13825
13826 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13827
138282008-06-05 Kenichi Handa <handa@m17n.org>
13829
13830 * coding.c (detect_coding): Fix previous change.
13831 (detect_coding_system): Likewise.
13832
138332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13834
13835 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13836
13837 * keymap.c (Vminibuffer_local_filename_must_match_map):
13838 Rename from Vminibuffer_local_must_match_filename_map.
13839 (syms_of_keymap):
13840 * minibuf.c (Fcompleting_read): Adjust accordingly.
13841 * commands.h: Rename declaration as well.
13842
138432008-06-05 Kenichi Handa <handa@m17n.org>
13844
13845 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13846 family name.
13847 (Ffont_put): Likewise.
13848
13849 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13850 current font-spec.
13851
13852 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13853 is unspecified.
13854
13855 * xfaces.c (realize_x_face): If the font-related face attributes
13856 are the same as those of default face, realize a new fontset from
13857 default->fontset.
13858 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13859
138602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13861
13862 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13863 (move_it_in_display_line): New wrapper.
13864
13865 * window.c (window_scroll_pixel_based_preserve_x)
13866 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13867 (window_scroll_pixel_based, window_scroll_line_based):
13868 Use them to preserve column positions.
13869 (syms_of_window): Initialize them.
13870
13871 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13872 (HPOS . VPOS) pair.
13873
13874 * dispextern.h (move_it_in_display_line): Declare.
13875
138762008-06-05 Juanma Barranquero <lekktu@gmail.com>
13877
13878 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13879 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13880 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13881
138822008-06-04 Juanma Barranquero <lekktu@gmail.com>
13883
13884 * window.c (Fset_window_parameter): Doc fix.
13885 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13886
138872008-06-04 Joakim Verona <joakim@verona.se>
13888
13889 * window.h (struct window): Add new member window_parameters.
13890
13891 * window.c (Fwindow_parameters, Fwindow_parameter)
13892 (Fset_window_parameter): New defuns.
13893 (syms_of_window): Defsubr the new defuns.
13894 (make_window): Initialize window_parameters to nil.
13895
138962008-06-04 John Paul Wallington <jpw@pobox.com>
13897
13898 * eval.c (Fdefmacro): Doc fix.
13899
139002008-06-04 Kenichi Handa <handa@m17n.org>
13901
13902 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13903 Be sure to call setup_coding_system when we find a proper coding system.
13904 (detect_coding_system): Fix handling of coding->head_ascii.
13905
139062008-06-03 Andreas Schwab <schwab@suse.de>
13907
13908 * font.c (font_prop_validate_spacing): Fix last change.
13909
139102008-06-03 Kenichi Handa <handa@m17n.org>
13911
13912 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13913 (font_parse_fcname): Fix handling of unknown key.
13914
13915 * xfont.c (xfont_list): Try an alias.
13916
13917 * charset.c (char_charset): Return NULL if the arg charset_list is
13918 specified and C doesn't belong to any of them.
13919
139202008-06-02 Chip Coldwell <coldwell@redhat.com>
13921
13922 * font.c (font_pixel_size): Don't take cdr of an integer.
13923
139242008-06-02 Jim Meyering <meyering@redhat.com>
13925
13926 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13927 * alloc.c (xfree): Return right away for a NULL arg.
13928 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13929 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13930 * mac.c (create_apple_event_from_event_ref): Likewise.
13931 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13932 Likewise.
13933 * doprnt.c (doprnt1): Likewise.
13934 * frame.c (frame): Likewise.
13935 * keyboard.c (wipe_kboard): Likewise.
13936 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13937 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13938 * term.c (tty_default_color_capabilities, maybe_fatal)
13939 (delete_tty): Likewise.
13940 * w16select.c (string): Likewise.
13941 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13942 * w32bdf.c (w32_free_bdf_font): Likewise.
13943 * w32fns.c (w32_unload_font): Likewise.
13944 * w32font.c (w32font_close): Likewise.
13945 * window.c (size_window): Likewise.
13946 * xselect.c (receive_incremental_selection): Likewise.
13947 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13948 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13949 * w32.c (stat): Likewise.
13950
13951 Remove useless if-before-free tests.
13952 * editfns.c (Fset_time_zone_rule): Likewise.
13953 * lread.c (nosuffix): Likewise.
13954 * ralloc.c (get_bloc): Likewise.
13955 * regex.c (reg_free): Likewise.
13956 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13957 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13958 * xsmfns.c (smc_save_yourself_CB): Likewise.
13959
139602008-06-02 Kenichi Handa <handa@m17n.org>
13961
13962 * font.c (font_find_for_lface): Handle float font size.
13963 (font_open_for_lface): Likewise.
13964
13965 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13966 comparing the properties.
13967
139682008-06-01 Jason Rumney <jasonr@gnu.org>
13969
13970 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13971 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13972 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13973 Don't add empty script list.
13974 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13975
139762008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13977
13978 * Makefile.in (dot, dotdot): Remove, update users.
13979 ".." has been used elsewhere in the file for a long time.
13980 (LIBXT_STATIC): Remove conditional based on unused variable.
13981
139822008-06-01 Miles Bader <miles@gnu.org>
13983
13984 * xfaces.c (Vface_remapping_alist): New variable.
13985 (syms_of_xfaces): Initialize it.
13986 (enum named_merge_point_kind): New type.
13987 (struct named_merge_point): Add `named_merge_point_kind' field.
13988 (push_named_merge_point): Make cycle detection respect different
13989 named-merge-point kinds.
13990 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13991 Remove face-name alias resolution.
13992 (lface_from_face_name): New definition using
13993 `lface_from_face_name_no_resolve'.
13994 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13995 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13996 (get_lface_attributes): New definition that layers face-remapping on
13997 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13998 (lookup_basic_face): New function.
13999 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
14000 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
14001 `get_lface_attributes'.
14002 (face_at_buffer_position): Use `lookup_basic_face' to lookup
14003 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
14004 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
14005
14006 * xdisp.c (init_iterator): Pass base_face_id through
14007 `lookup_basic_face' when we actually use it as a face-id.
14008 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14009 DEFAULT_FACE_ID.
14010
14011 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14012 lookup the initial face-id.
14013
14014 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14015
140162008-06-01 Juanma Barranquero <lekktu@gmail.com>
14017
14018 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14019 (Fremove_text_properties): Fix typos in docstrings.
14020
140212008-05-31 Kenichi Handa <handa@m17n.org>
14022
14023 * font.c (font_list_entities): Fix the car part of data to be
14024 stored in the cache.
14025
14026 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14027
140282008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14029
14030 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14031 Add a `test' argument so another predicate than `equal' can be used.
14032 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14033 (map_char_table): Remove unused vars `c' and `i'.
14034 * lisp.h (Foptimize_char_table): Adjust declaration.
14035 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14036
140372008-05-30 Kenichi Handa <handa@m17n.org>
14038
14039 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14040 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14041 defined.
14042
140432008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14044
14045 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14046 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14047 frame-local settings for the same variable.
14048
140492008-05-30 Kenichi Handa <handa@m17n.org>
14050
14051 * fontset.c (Ffont_info): Move to font.c.
14052 (syms_of_fontset): Delete defsubr of Sfont_info.
14053
14054 * font.c (font_style_to_value, font_score): Delete casting of the
14055 args to xstcasecmp.
14056 (register_font_driver): Increment num_font_drivers only when
14057 registering the driver globally.
14058 (Ffont_info): Move from fontset.c. Handle a font object too.
14059 (syms_of_font): Defsubr Sfont_info.
14060
140612008-05-29 Kenichi Handa <handa@m17n.org>
14062
14063 * coding.h (enum define_coding_utf8_arg_index): New enum.
14064 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14065 coding_attr_utf_bom.
14066 (enum utf_bom_type): Rename from utf_16_bom_type.
14067 (struct utf_16_spec): Adjust for the above change.
14068 (struct coding_system): Add utf_8_bom in `spec' union.
14069
14070 * coding.c (CODING_UTF_8_BOM): New macro.
14071 (enum coding_category): Delete coding_category_utf_8, add
14072 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14073 coding_category_utf_8_sig.
14074 (CATEGORY_MASK_UTF_8): Delete it.
14075 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14076 (CATEGORY_MASK_UTF_8_SIG): New macros.
14077 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14078 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14079 CATEGORY_MASK_UTF_8_SIG.
14080 (CATEGORY_MASK_UTF_8): New macro.
14081 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14082 (detect_coding_utf_8): Check BOM.
14083 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14084 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14085 (encode_coding_utf_16): Likewise.
14086 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14087 (detect_coding, detect_coding_system): Handle utf-8-auto.
14088 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14089 (syms_of_coding): Fix setting up of Vcoding_category_table.
14090
140912008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14092
14093 * process.c (Faccept_process_output): If `millisec' is non-nil,
14094 `seconds' default to 0.
14095 (wait_reading_process_output): Also return non-nil if we read output
14096 from a non-running process.
14097
140982008-05-29 Jason Rumney <jasonr@gnu.org>
14099
14100 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14101 `raster' specified.
14102 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14103 in the uniscribe backend, but disallow any font that has no
14104 unicode subrange support.
14105
141062008-05-29 Juanma Barranquero <lekktu@gmail.com>
14107
14108 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14109 Fix typos in docstrings.
14110
141112008-05-29 Kenichi Handa <handa@m17n.org>
14112
14113 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14114 (Fx_family_fonts): Set frame correctly.
14115
141162008-05-28 Jason Rumney <jasonr@gnu.org>
14117
14118 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14119
141202008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14121
14122 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14123 calling build_annotations.
14124
141252008-05-28 Juanma Barranquero <lekktu@gmail.com>
14126
14127 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14128 (Fencode_coding_string):
14129 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14130 <latin-extra-code-table>: Fix typos in docstrings.
14131 (syms_of_coding) <coding-system-alist>: Doc fix.
14132 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14133
141342008-05-28 Kenichi Handa <handa@m17n.org>
14135
14136 * fontset.c (Ffont_info): Don't call font_close_object.
14137
14138 * font.c (font_parse_family_registry): Use Ffont_put to validate
14139 foundry and family.
14140 (font_delete_unmatched): Don't check spacing.
14141 (font_list_entities): Add spacing to the spec to list fonts.
14142
14143 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14144 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14145
14146 * coding.c (encode_coding_raw_text): Fix previous change.
14147 (encode_coding_object): When the dst_object is a buffer and is
14148 different from src_object, move gap to PT.
14149
141502008-05-27 Chong Yidong <cyd@stupidchicken.com>
14151
14152 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14153
141542008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14155
14156 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14157 all branches. Compute it differently.
14158
14159 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14160
141612008-05-27 Juanma Barranquero <lekktu@gmail.com>
14162
14163 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14164 into "else if () ... else ...".
14165
141662008-05-27 Jason Rumney <jasonr@gnu.org>
14167
14168 * w32font.c (w32font_open_internal): Determine if glyph indices
14169 are likely to work here.
14170
141712008-05-27 Chong Yidong <cyd@stupidchicken.com>
14172
14173 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14174 draw overlap glyphs with appropriate highlighting.
14175
141762008-05-27 Kenichi Handa <handa@m17n.org>
14177
14178 * xfont.c (xfont_open): Fix calculation of font->average_width.
14179
141802008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14181
14182 * casefiddle.c (casify_object): Try to guess better whether the
14183 argument is a byte or a char.
14184
141852008-05-26 Andreas Schwab <schwab@suse.de>
14186
14187 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14188 Always send multiples of format size.
14189
14190 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14191
141922008-05-26 Jason Rumney <jasonr@gnu.org>
14193
14194 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14195 (compute_metrics): Don't set failure if we just cleared the cache.
14196 (w32_weight_table): Remove unused variable.
14197 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14198 backwards compatibility.
14199
142002008-05-25 Kenichi Handa <handa@m17n.org>
14201
14202 * w32term.c (x_draw_glyph_string):
14203 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14204
14205 * xfaces.c: Delete unused function prototypes.
14206 (xstrlwr, font_frame): Delete them.
14207 (clear_face_cache): Delete unused variable.
14208
14209 * xftfont.c (xftfont_open): Delete unused variable.
14210 If underline_thickness is not 1, adjust underline_position.
14211
14212 * ftxfont.c (ftxfont_open): Delete unused variable.
14213
14214 * fontset.c (face_for_char): Optimize for the case of no charset
14215 property.
14216
14217 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14218 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14219 (otf_open, font_otf_capability, generate_otf_features)
14220 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14221 Comment out by surrounding "#if 0" and "#endif" for the moment.
14222 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14223 (syms_of_font): Codes for accessing above commented out.
14224
142252008-05-24 Eli Zaretskii <eliz@gnu.org>
14226
14227 * w32proc.c: Include dispextern.h.
14228
14229 * w32.c: Include dispextern.h.
14230
142312008-05-23 Juanma Barranquero <lekktu@gmail.com>
14232
14233 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14234 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14235 Fix typos in docstrings.
14236
142372008-05-23 Jason Rumney <jasonr@gnu.org>
14238
14239 * xsmfns.c: Remove includes that are already included by config.h.
14240
142412008-05-23 Kenichi Handa <handa@m17n.org>
14242
14243 * charset.c (Qemacs, charset_emacs): New variables.
14244 (char_charset): Fix for non-Unicode characters.
14245 (syms_of_charset): Define charset_emacs.
14246
14247 * w32term.c (x_draw_glyph_string): Be sure to update
14248 s->underline_thickness and s->underline_position. Be sure to draw
14249 underline within the current line area.
14250
14251 * xterm.c (x_draw_glyph_string): Be sure to update
14252 s->underline_thickness and s->underline_position. Be sure to draw
14253 underline within the current line area.
14254
14255 * fontset.c: Delete unused variables and add casting for char *
14256 throughout the file.
14257 (fontset_font): Try the fallback fonts of the current fontset
14258 before consulting the default fontset.
14259
14260 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14261
14262 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14263
142642008-05-22 Jason Rumney <jasonr@gnu.org>
14265
14266 * font.c: Don't include strings.h.
14267
14268 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14269
14270 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14271 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14272 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14273 to call xstrcasecmp.
14274
14275 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14276
14277 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14278
14279 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14280
14281 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14282
142832008-05-22 Kenichi Handa <handa@m17n.org>
14284
14285 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14286
14287 * font.c (font_prop_validate_style): Adjust for the format
14288 change of font_style_table.
14289
14290 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14291 two args.
14292
14293 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14294 two args.
14295
142962008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14297
14298 * minibuf.c (keys_of_minibuf): Delete.
14299 * lisp.h (keys_of_minibuf): Delete.
14300 * emacs.c (main): Don't call keys_of_minibuf.
14301
143022008-05-22 Kenichi Handa <handa@m17n.org>
14303
14304 * ftfont.c (ftfont_resolve_generic_family): Rename from
14305 ftfont_list_generic_family. Return a single family for each
14306 generic family.
14307 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14308 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14309 Call font_add_log.
14310 (ftfont_match): Call font_add_log.
14311
14312 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14313 (FONT_DEBUG): Define it.
14314 (font_add_log): Extern it.
14315 (font_assert): Rename from xassert.
14316
14317 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14318 (xfont_list_family): Call font_add_log.
14319 (xfont_match): Likewise.
14320 (memq_no_quit): Delete.
14321
14322 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14323 call of Ffont_xlfd_name.
14324
14325 * xfaces.c (struct table_entry, slant_table, weight_table)
14326 (swidth_table): Move to font.c.
14327
14328 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14329 xassert are changed to font_assert. Delete many unused variables.
14330 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14331 New variables.
14332 (struct table_entry): Move from xfaces.c and modified.
14333 (weight_table, slant_table, width_table): Move from xfaces.c and
14334 contents adjusted for the change of struct table_entry.
14335 (font_style_to_value, font_style_symbolic): Adjust for the
14336 format change of font_style_table.
14337 (font_parse_family_registry): Don't overwrite existing foundry and
14338 family of font_spec.
14339 (font_score): Fix calculation of diff for sizes.
14340 (font_sort_entites): Call font_add_log.
14341 (font_delete_unmatched): Return a newly created list.
14342 (font_list_entities): Fix previous change. Call font_add_log.
14343 (font_matching_entity, font_open_entity, font_close_entity):
14344 Call font_add_log.
14345 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14346 (Finternal_set_font_style_table): Delete.
14347 (BUILD_STYLE_TABLE): New macro.
14348 (build_style_table): New function.
14349 (Vfont_log, font_log_env_checked): New variables.
14350 (font_add_log): New function.
14351 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14352 Declare Lisp variables "font-weight-table", "font-slant-table",
14353 "font-width-table", and "font-log". Initialize font_style_table.
14354
143552008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14356
14357 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14358
143592008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14360 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14361
14362 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14363 (Vframe_alpha_lower_limit): New variable.
14364 (x_set_alpha): New function.
14365
14366 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14367
14368 * xfns.c (x-create-frame, Qalpha):
14369 Initialize the frame parameter `alpha'.
14370 * xterm.c (OPAQUE, OPACITY): New.
14371 (x_set_frame_alpha): New function.
14372 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14373
14374 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14375 * w32fns.c (w32_frame_parm_handlers): Likewise.
14376
143772008-05-20 Jason Rumney <jasonr@gnu.org>
14378
14379 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14380 truetype fonts to opentype list.
14381
143822008-05-20 Juanma Barranquero <lekktu@gmail.com>
14383
14384 * fontset.c (Ffontset_info): Doc fix.
14385 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14386 <ignore-relative-composition>: Fix typos in docstrings.
14387
14388 * font.c (syms-of-font) <font-encoding-alist>:
14389 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14390 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14391 (Ffont_otf_alternates): Doc fixes.
14392
143932008-05-20 Kenichi Handa <handa@m17n.org>
14394
14395 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14396 font.h through out the file.
14397 (FONT_DRIVERS): Rename from FONTOBJ.
14398 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14399 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14400
14401 * emacs.c (main): Call syms_of_font unconditionally.
14402
14403 * font.h (find_font_encoding): Extern it.
14404
14405 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14406 fontset.c.
194d44e7 14407 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14408 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14409 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14410 only when HAVE_WINDOW_SYSTEM is defined.
14411 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14412 when HAVE_WINDOW_SYSTEM is defined.
14413
14414 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14415 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14416
14417 * xfaces.c: Include font.h unconditionally.
14418 (merge_face_ref, merge_face_vectors)
14419 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14420
144212008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14422
14423 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14424 indirect_variable.
14425 * eval.c (lisp_indirect_variable): New fun.
14426 (Fuser_variable_p): Use it.
14427
144282008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14429
14430 * lisp.h (indirect_variable):
14431 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14432 Use Lisp_Symbol pointers rather than Lisp_Object.
14433 Adjust callers.
14434 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14435 To this end, change calling-convention.
14436
14437 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14438 if some non-hidden buffers are selected by string&pred.
14439
144402008-05-19 Chong Yidong <cyd@stupidchicken.com>
14441
14442 * process.c (wait_reading_process_output): Always check status
14443 when in batch mode.
14444
144452008-05-19 Kenichi Handa <handa@m17n.org>
14446
14447 * font.c (font_list_entities): Fix handling of cache.
14448 (font_matching_entity): Likewise.
14449
14450 * ftfont.c (cs_iso8859_1): Delete.
14451 (ft_face_cache): New variable.
14452 (struct ftfont_info): New member fc_charset_idx.
14453 (ftfont_build_basic_charsets): Delete.
14454 (fc_charset_table): New variable.
14455 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14456 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14457 Callers changed.
14458 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14459 (ftfont_spec_pattern): New argument fc_charset_idx.
14460 Check registry more rigidly. Change callers.
14461 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14462 change of :font-entity property of the font.
14463
14464 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14465 property of the font.
14466
144672008-05-18 Juanma Barranquero <lekktu@gmail.com>
14468
14469 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14470 (Funencodable_char_position, Fcheck_coding_systems_region)
14471 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14472 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14473 (Ffind_operation_coding_system, Fset_coding_system_priority)
14474 (Fcoding_system_eol_type): Doc fixes.
14475
144762008-05-17 Glenn Morris <rgm@gnu.org>
14477
14478 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14479
144802008-05-16 Eli Zaretskii <eliz@gnu.org>
14481
14482 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14483 and st_gid.
14484
14485 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14486 HAVE_WINDOW_SYSTEM is not defined.
14487
14488 * xfaces.c (merge_face_ref, merge_face_vectors)
14489 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14490 HAVE_WINDOW_SYSTEM is defined.
14491 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14492
144932008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14494
14495 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14496
144972008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14498
14499 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14500
145012008-05-15 Kenichi Handa <handa@m17n.org>
14502
14503 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14504 preference.
14505
145062008-05-15 Glenn Morris <rgm@gnu.org>
14507
14508 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14509
145102008-05-15 Chong Yidong <cyd@stupidchicken.com>
14511
14512 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14513 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14514
14515 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14516
145172008-05-15 Kenichi Handa <handa@m17n.org>
14518
14519 * ftfont.c (ftfont_list): Downcase family name to check generic
14520 families.
14521
14522 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14523 font-spec for QCfont value.
14524
14525 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14526 buffer. Check the return value of it.
14527
145282008-05-14 Jason Rumney <jasonr@gnu.org>
14529
14530 * w32term.c (w32_get_glyph_overhangs): Remove.
14531 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14532
145332008-05-14 Kenichi Handa <handa@m17n.org>
14534
14535 * font.c (font_prop_validate): Make nil a valid value.
14536 (font_clear_cache): Check if the cached vector of entities is nil
14537 or not.
14538
145392008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14540
14541 * emacs.c (main_thread): Conditionalize on
14542 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14543 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14544
14545 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14546 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14547 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14548
145492008-05-14 Kenichi Handa <handa@m17n.org>
14550
14551 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14552 has no corresponding coding system.
14553
145542008-05-14 Jason Rumney <jasonr@gnu.org>
14555
14556 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14557
14558 * w32font.h (w32font_open_internal): Update declaration.
14559
14560 * w32font.c (w32font_open_internal): Change last argument from
14561 w32font_info struct to font object. Fill in font object from
14562 font_entity. Get Outline metrics if possible. Use them to
14563 calculate underline position and thickness. Use xlfd name as name
14564 property. Don't set codepage.
14565 (w32font_open): Pass font_object to w32font_open_internal. Don't
14566 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14567 (w32font_draw): Use s->font.
14568 (clear_cached_metrics): Don't clear non-existent blocks.
14569
14570 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14571 font was not found.
14572 (x_draw_glyph_string): Use underline position and thickness from font.
14573
14574 * w32uniscribe.c (uniscribe_open): Pass font_object to
14575 w32font_open_internal.
14576
145772008-05-14 Kenichi Handa <handa@m17n.org>
14578
14579 These changes are to delete all legacy font-handling codes, and
14580 make Emacs use only font-backends.
14581
14582 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14583 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14584
14585 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14586
14587 * charset.h (Vcharset_non_preferred_head)
14588 (Vcurrent_iso639_language): Extern them.
14589
14590 * charset.c (Vcharset_non_preferred_head): New variable.
14591 (Vcurrent_iso639_language): New variable.
14592 (syms_of_charset): Declare it as a Lisp variable.
14593 (char_charset): Don't check non preferred charsets. As a last
14594 resort, return charset_unicode.
14595 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14596
14597 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14598 conditionals. Don't check enable_font_backend. Delete all codes
14599 used only when USE_FONT_BACKEND is not defined.
14600
14601 * dispextern.h (struct glyph_string): Change type of `font' to
14602 `struct font *'.
14603 (struct glyph_string): New member underline_position and
14604 underline_thickness.
14605 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14606 (struct face): Change type of `font' to `struct font *'. Remove
14607 members `font_name', `font_info_id'.
14608 (per_char_metric, encode_char): Delete externs.
14609 (calc_pixel_width_or_height): Adjust the prototype.
14610
14611 * emacs.c (enable_font_backend): Delete extern.
14612 (main): Don't set enable_font_backend. Don't check the command
14613 line argument "-disable-font-backend".
14614
14615 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14616 (enum font_property_index): New members FONT_DPI_INDEX,
14617 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14618 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14619 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14620 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14621 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14622 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14623 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14624 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14625 (struct font_spec, struct font_entity): New structs.
14626 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14627 (struct font): Many members from old "struct font_info" moved to
14628 here. Members font and entity deleted.
14629 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14630 the new font-related objects.
14631 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14632 (CHECK_FONT_GET_OBJECT): Likewise.
14633 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14634 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14635 (struct font_driver): New members case_sensitive anc check. Type
14636 of the member list and open changed.
14637 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14638 (font_symbolic_width, font_find_object, font_get_spec)
14639 (font_set_lface_from_name): Delete extern.
14640 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14641
14642 * font.c: Include <strings.h>.
14643 (enable_font_backend): Delete it.
14644 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14645 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14646 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14647 (null_string): Delete it.
14648 (null_vector): Make it static.
14649 (font_family_alist): Delete it.
14650 (Qnormal): Extern it.
14651 (QCextra, QClanguage): Delete it.
14652 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14653 (font_make_spec, font_make_entity, font_make_object)
14654 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14655 the string. Callers changed.
14656 (font_pixel_size): Adjusted for the format change of font-related
14657 objects.
14658 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14659 (font_style_to_value, font_style_symbolic): New function.
14660 (build_font_family_alist): Delete it.
14661 (font_registry_charsets): Use Fassoc_string instead of
14662 assq_no_quit.
14663 (font_prop_validate_symbol): Don't return null_string.
14664 (font_prop_validate_style): Adjusted for the change of
14665 style-related values in a font vector.
14666 (font_property_table): Delete entries for QClanguage and
14667 QCantialias, add entries for QCavgwidth.
14668 (get_font_prop_index): Delete the 2nd argument FROM.
14669 (font_prop_validate): Arguments changed.
14670 (font_put_extra): Adjusted for the change of font-related objects.
14671 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14672 (font_parse_fcname, font_unparse_fcname)
14673 (font_prepare_composition): Likewise.
14674 (font_parse_family_registry): Renamed from font_merge_old_spec.
14675 (otf_open): Delete the 1st arg entity.
14676 (font_otf_capability): Adjusted for the above change.
14677 (font_score): New arg alternate_families. Adjusted for the change
14678 of font-related objects.
14679 (font_sort_entites): New arg best_only.
14680 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14681 Delete them.
14682 (font_match_p): Check alternate families.
14683 (font_find_object): Delete it.
14684 (font_check_object): New function.
14685 (font_clear_cache): Adjusted for the change of font-related objects.
14686 (font_delete_unmatched): New arg.
14687 (font_list_entities): Call font_driver->list with a spec that
14688 doesn't specify style-related properties.
14689 (font_matching_entity): Arguments changed. Caller changed.
14690 (font_open_entity): Adjusted for the change of font-related objects.
14691 (font_close_object, font_has_char, font_encode_char)
14692 (font_get_name, font_get_spec): Likewise.
14693 (font_spec_from_name, font_clear_prop, font_update_lface):
14694 New functions.
14695 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14696 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14697 (font_at): Adjusted for the change of font-related objects.
14698 (font_range): New function.
14699 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14700 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14701 (Fcopy_font_spec, Fmerge_font_spec): New function.
14702 (Ffont_family_list): Renamed from list-families.
14703 (Finternal_set_font_style_table): Arguments changed.
14704 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14705 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14706 change of font-related objects.
14707 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14708
14709 * fontset.h (struct font_info): Delete it. Most members go to
14710 struct font.
14711 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14712 (enum FONT_SPEC_INDEX): Delete it.
14713 (font_info, list_fonts_func, load_font_func, query_font_func)
14714 (set_frame_fontset_func, find_ccl_program_func)
14715 (get_font_repertory_func, new_fontset_from_font_name): Delete
14716 externs.
14717 (fontset_from_font_name): Extern it.
14718 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14719 (FONT_INFO_FROM_FACE): Deleted.
14720 (face_for_font): Adjust prototype.
14721
14722 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14723 conditionals. Don't check enable_font_backend. Delete all codes
14724 used only when USE_FONT_BACKEND is not defined.
14725 (get_font_info_func, list_font_func, load_font_func)
14726 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14727 (get_font_repertory_func): Delete them.
14728 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14729 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14730 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14731 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14732 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14733 (fontset_compare_rfontdef): New function.
14734 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14735 rfont-defs by qsort. Adjusted for the change of font-group vector.
14736 (load_font_get_repertory): Deleted.
14737 (fontset_find_font): Use new macros to ref/set elements of
14738 font-def and rfont-def.
14739 (fontset_font): Fix the timing of remembering that no font for C.
14740 (free_face_fontset): Do nothing if the face has no fontset.
14741 (face_suitable_for_char_p): Use new macros to ref/set elements of
14742 rfont-def.
14743 (face_for_char): Likewise. Call face_for_char with font_object.
14744 (fs_load_font): Delete. Delete #pragma surrounding it.
14745 (fs_query_fontset): Use strcasecmp instead of strcmp.
14746 (generate_ascii_font_name): Adjusted for the format change of
14747 font-spec.
14748 (Fset_fontset_font): Likewise. Use new macros to set elements of
14749 font-def.
14750 (Fnew_fontset): Use font_unparse_xlfd to generate
14751 FONTSET_ASCII (fontset).
14752 (new_fontset_from_font_name): Deleted.
14753 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14754 a fontset is already created for the font. FIx updating of
14755 Vfontset_alias_alist.
14756 (fontset_ascii_font): Deleted.
14757 (Ffont_info): Adjusted for the format change of font-spec.
14758 (Finternal_char_font): Likewise.
14759 (Ffontset_info): Likewise.
14760 (syms_of_fontset): Don't check load_font_func.
14761
14762 * fns.c (internal_equal): Handle PREV_FONT.
14763
14764 * frame.h: Delete USE_FONT_BACKEND conditional.
14765
14766 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14767 conditionals. Don't check enable_font_backend. Delete all codes
14768 used only when USE_FONT_BACKEND is not defined.
14769 (x_set_font): Call x_new_font, not x_new_fontset2.
14770 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14771 already set for the frame.
14772
14773 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14774 a font-entity by font_make_entity. Use font_intern_prop instead
14775 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14776 font property. If a font is scalable, set avgwidth property to 0.
14777 Set font-entity property by font_put_extra.
14778 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14779 (ffont_driver): Adjusted for the change of struct font_driver.
14780 (ftfont_spec_pattern): New function.
14781 (ftfont_list): Return a list, not vector.
14782 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14783 (ftfont_list_family): Don't downcase names.
14784 (ftfont_free_entity): Deleted.
14785 (ftfont_open): Return a font-object. Adjusted for the change of
14786 struct font. Get underline_thickness and underline_position from
14787 font property. Don't update dpyinfo->smallest_font_height and
14788 dpyinfo->smallest_char_width.
14789 (ftfont_close): Don't free `struct font'.
14790 (ftfont_has_char): Adjusted for the format change of font-entity.
14791 (ftfont_encode_char, ftfont_text_extents): Likewise.
14792
14793 * ftxfont.c (ftxfont_list): Return a list, not vector.
14794 (ftxfont_open): Return a font-object. Adjusted for the change of
14795 struct font. Get underline_thickness and underline_position from
14796 font property. Don't update dpyinfo->smallest_font_height and
14797 dpyinfo->smallest_char_width.
14798 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14799 (ftxfont_draw): Adjusted for the change of struct font.
14800
14801 * image.c (image_ascent): Don't include "charset.h". Include
14802 "character.h" and "font.h".
14803
14804 * lisp.h (enum pvec_type): New member PREV_FONT.
14805 (Fassoc_string): EXFUN it.
14806
14807 * print.c: Include font.h.
14808 (print_object): Handle font-related objects.
14809
14810 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14811 conditionals. Don't check enable_font_backend. Delete all codes
14812 used only when USE_FONT_BACKEND is not defined.
14813 (handle_auto_composed_prop): Do nothing if it->f is not on a
14814 window system. Check how many following characters can be
14815 displayed by the same font.
14816 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14817 'struct font *'.
14818 (get_char_face_and_encoding): Assign the whole encoding task to
14819 the `encode-char' method of a font driver.
14820 (fill_composite_glyph_string): Adjusted for the change of `struct
14821 face' and `struct glyph_string'.
14822 (fill_glyph_string): Likewise.
14823 (get_per_char_metric): Arguments changed.
14824 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14825 and `struct glyph_string'.
14826 (produce_stretch_glyph, calc_line_height_property)
14827 (x_produce_glyphs): Likewise.
14828
14829 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14830 conditionals. Don't check enable_font_backend. Delete all codes
14831 used only when USE_FONT_BACKEND is not defined. Use
14832 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14833 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14834 (Qp): Extern them.
14835 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14836 Deleted.
14837 (struct font_name): Deleted.
14838 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14839 (compare_fonts_by_sort_order): New function.
14840 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14841 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14842 Deleted.
14843 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14844 compare_fonts_by_sort_order.
14845 (Fx_font_family_list): Call Ffont_family_list.
14846 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14847 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14848 (face_symbolic_slant, face_symbolic_swidth)
14849 (split_font_name_into_vector, build_font_name_from_vector)
14850 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14851 (font_rescale_ratio, split_font_name, build_font_name)
14852 (free_font_names, sort_fonts, x_face_list_fonts)
14853 (face_font_available_p, sorted_font_list, cmp_font_names)
14854 (font_list_1, concat_font_list, font_list, remove_duplicates):
14855 Deleted.
14856 (Fx_list_fonts): Use Ffont_list.
14857 (LFACE_AVGWIDTH): Deleted.
14858 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14859 by FONTP.
14860 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14861 (set_lface_from_font_name): Delete it.
14862 (set_lface_from_font): Renamed from
14863 set_lface_from_font_and_fontset. Caller changed. Don't set
14864 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14865 for face.
14866 (merge_face_vectors): Copy font-spec if necessary.
14867 Clear properties of the font-spec if necessary.
14868 (merge_face_ref): Clear properties of the font-spec if necessary.
14869 (Finternal_set_lisp_face_attribute): Likewise.
14870 (set_font_frame_param): Use font_load_for_lface to load a
14871 font-object, and call Fmodify_frame_parameters with it.
14872 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14873 font name by Ffont_xlfd_name.
14874 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14875 QCslant, and QCwidth.
14876 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14877 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14878 Compare fonts by EQ.
14879 (lookup_non_ascii_face): Deleted.
14880 (face_for_font): The 2nd argument changed.
14881 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14882 Check atomic font properties by case insensitive.
14883 (realize_non_ascii_face): Set face->overstrike correctly.
14884 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14885 (dump_realized_face): Get font name from
14886 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14887
14888 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14889 conditionals. Don't check enable_font_backend. Delete all codes
14890 used only when USE_FONT_BACKEND is not defined.
14891 (xic_create_xfontset): Original code deleted and renamed from
14892 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14893 (x_make_gc): Don't set GCFont in GCs.
14894 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14895 opened by "fixed".
14896 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14897 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14898 get_font_repertory_func.
14899
14900 * xfont.c: Include <stdlib.h> and "ccl.h".
14901 (struct xfont_info): New structure.
14902 (xfont_query_font): Deleted.
14903 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14904 moved from xterm.c.
14905 (xfont_driver): Adjusted for the change of struct font_driver.
14906 (compare_font_names): New function.
14907 (xfont_list_pattern): Sort font names case insensitively. Make
14908 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14909 (xfont_list): Return a list, not vector.
14910 (xfont_match): If the font doesn't have QCname property, generate
14911 a name from the other font properties.
14912 (xfont_open): Return a font-object. Adjusted for the change of
14913 struct font. Get underline_thickness and underline_position from
14914 font property. Don't update dpyinfo->smallest_font_height and
14915 dpyinfo->smallest_char_width.
14916 (xfont_close): Don't free struct font.
14917 (xfont_prepare_face): Adjusted for the change of struct font.
14918 (xfont_done_face): Deleted.
14919 (xfont_has_char): Adjusted for the change of struct font.
14920 (xfont_encode_char, xfont_draw): Likewise.
14921 (xfont_check): New function.
14922
14923 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14924 callback function.
14925 (xftfont_match): Adjusted for the format change of font-entity.
14926 (xftfont_open): Adjusted for the format change of font-entity and
14927 font-object. Adjusted for the change of struct font. Return a
14928 font-object. Don't update dpyinfo->smallest_font_height and
14929 dpyinfo->smallest_char_width.
14930 (xftfont_close): Block input while calling XftFontClose.
14931 (xftfont_prepare_face): Don't block input while calling
14932 xftfont_get_colors. Adjusted for the change of struct font.
14933 (xftfont_shape): Return value of error case fixed.
14934
14935 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14936
14937 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14938 conditionals.
14939 (FONT_WIDTH): Return (f)->max_width.
14940 (struct x_display_info): Delete member `font'.
14941 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14942 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14943 (struct x_output): Change type of `font' to `struct font *'.
14944
14945 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14946 conditionals. Don't check enable_font_backend. Delete all codes
14947 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14948 (x_per_char_metric, x_encode_char): Deleted.
14949 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14950 (x_compute_glyph_string_overhangs): Adjusted for the change of
14951 `struct face'.
14952 (x_draw_glyph_string_foreground)
14953 (x_draw_composite_glyph_string_foreground): Likewise.
14954 (x_draw_glyph_string): Likewise. Use font->underline_position and
14955 font->underline_thickness.
14956 (x_new_font): Renamed from x_new_fontset2.
14957 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14958 (x_check_font): Call `check' method of a font driver.
14959 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14960 (x_query_font, x_get_font_repertory): Deleted.
14961 (x_find_ccl_program): Renamed and moved to xfont.c.
14962 (x_redisplay_interface): Adjusted for the change of `struct
14963 redisplay_interface'.
14964
14965 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14966 conditionals. Don't check enable_font_backend. Delete all codes
14967 used only when USE_FONT_BACKEND is not defined. Surround non-used
14968 code by "#ifdef OLD_FONT" and "endif".
14969 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14970
14971 * w32font.h (struct w32font_info): New member.
14972 (FONT_COMPAT): New macro.
14973 (w32font_open_internal): Prototype adjusted.
14974
14975 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14976 OLD_FONT" and "endif".
14977
14978 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14979 conditionals. Don't check enable_font_backend. Delete all codes
14980 used only when USE_FONT_BACKEND is not defined.
14981 (w32font_open): Return a font-object. Make a font-object by
14982 font_make_object. Adjusted for the change of struct w32font_info.
14983 (w32font_close): Don't free struct font. Adjusted for the change
14984 of struct w32font_info.
14985 (w32font_encode_char, w32font_text_extents, w32font_draw):
14986 Adjusted for the change of struct w32font_info.
14987 (w32font_draw): Likewise.
14988 (w32font_list_internal): Return a list, not vector.
14989 (w32font_open_internal): Change the 4th arg to font-object.
14990 Adjusted for the change of struct w32font_info and font-object format.
14991 (add_font_name_to_list): Don't downcase names.
14992 (w32_enumfont_pattern_entity): Make a font-entity by
14993 font_make_entity. Adjusted for the format change of font-entity.
14994 Use FONT_SET_STYLE to set a style-related font property. If a
14995 font is scalable, set avgwidth property to 0. Set font-entity
14996 property by font_put_extra.
14997 (font_matches_spec): Adjusted for the format change of font-entity.
14998 (w32_weight_table, w32_decode_weight): New variables.
14999 (w32_encode_weight): New function.
15000 (fill_in_logfont): Adjusted for the format change of font-spec.
15001 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
15002 weight value.
15003 (w32font_driver): Adjusted for the change of struct font_driver.
15004
15005 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
15006 conditionals. Don't check enable_font_backend. Surround non-used
15007 code by "#ifdef OLD_FONT" and "endif".
15008 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15009 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15010
15011 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15012 conditionals. Don't check enable_font_backend. Delete all codes
15013 used only when USE_FONT_BACKEND is not defined. Surround non-used
15014 code by "#ifdef OLD_FONT" and "endif".
15015
15016 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15017 (uniscribe_open): Return value changed to font-object.
15018 Adjusted for the format change of font-object.
15019 (uniscribe_otf_capability): Adjusted for the change of struct font.
15020 (add_opentype_font_name_to_list): Don't downcase names.
15021 (uniscribe_font_driver): Adjusted for the change of struct
15022 font_driver.
15023
150242008-05-13 Chong Yidong <cyd@stupidchicken.com>
15025
15026 * dispnew.c (update_frame_1): Check if tty output is still valid
15027 before flushing it.
15028
150292008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15030
15031 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15032 to Gtk+ menus.
15033
150342008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15035
15036 * dired.c (file_name_completion): Tweak the code so as to always do it
15037 in a single pass. Tighten the scope of some variables.
15038
15039 * dired.c (Qdefault_directory): New var.
15040 (file_name_completion): Use it instead of Fexpand_file_name.
15041 (syms_of_dired): Initialize it.
15042
150432008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15044
15045 * fileio.c (double_dollars): Remove dead code.
15046
150472008-05-10 Eli Zaretskii <eliz@gnu.org>
15048
15049 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15050 Mention w32-get-true-file-attributes in doc string.
15051
15052 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15053
150542008-05-09 Glenn Morris <rgm@gnu.org>
15055
15056 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15057 2008-04-23.
15058
150592008-05-09 Eli Zaretskii <eliz@gnu.org>
15060
15061 Support for reporting owner and group of each file on MS-Windows:
15062 * dired.c (stat_uname, stat_gname): New functions, with special
15063 implementation for w32.
15064 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15065
15066 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15067 (dflt_group_name): New static variable.
15068 (dflt_group): Rename from the_group.
15069 (init_user_info): Init dflt_group fields. Get user's group name
15070 from LookupAccountSid.
15071 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15072 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15073 New initialization states.
15074 (globals_of_w32): Initialize them to zero. Initialize the default
15075 group name to "None".
15076 (GetFileSecurity_Name): New global var, the name of the function
15077 to call for GetFileSecurity.
15078 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15079 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15080 (get_file_security, get_security_descriptor_owner)
15081 (get_security_descriptor_group, is_valid_sid)
15082 (get_file_security_desc, get_rid, get_name_and_id)
15083 (get_file_owner_and_group): New functions.
15084 (stat): Use get_file_security_desc and get_file_owner_and_group to
15085 report the owner and primary group of each file. Don't ignore the
15086 high 32 bits of file's size, now that st_size is 64-bit wide.
15087 Fix test when to get true file attributes.
15088 (init_user_info): Use get_rid instead of equivalent inline code.
15089 (fstat): Don't ignore the high 32 bits of file's size.
15090
150912008-05-09 Chong Yidong <cyd@stupidchicken.com>
15092
15093 * image.c (png_load): Use correct bit-depth for setting background
15094 color.
15095
150962008-05-08 Eli Zaretskii <eliz@gnu.org>
15097
15098 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15099 epa-hook.elc.
15100
151012008-05-08 Juanma Barranquero <lekktu@gmail.com>
15102
15103 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15104
151052008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15106
15107 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15108 because the original parameters are in pure storage now.
15109 (mac_window): Remove unused params. Update callers.
15110
151112008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15112
15113 * lread.c (substitute_object_recurse): Use lower-level primitives.
15114 Don't signal errors when traversing sub-char-tables.
15115 Don't loop over all the possible characters when traversing char-tables.
15116
15117 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15118 just like we do in print.c.
15119
151202008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15121
15122 * minibuf.c (Ftry_completion): Remove code left over from when we used
15123 scmp instead of Fcompare_strings.
15124
151252008-05-04 Juanma Barranquero <lekktu@gmail.com>
15126
15127 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15128
151292008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15130
15131 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15132 Create bitmap context in native byte order.
15133
15134 * macterm.c (XDrawLine)
15135 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15136 context in native byte order.
15137
151382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15139
15140 * config.in: Regenerate.
15141
15142 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15143 New definitions for Image I/O support.
15144 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15145 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15146 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15147 (mac_data_provider_release_data, image_load_image_io)
15148 [USE_MAC_IMAGE_IO]: New functions.
15149 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15150 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15151 (init_image_func_pointer) [MAC_OSX]: Remove function.
15152 (image_load_quartz2d) [MAC_OSX]: Check availability of
15153 CGImageCreateWithPNGDataProvider at compile time.
15154 Use lowercase `false' for boolean constant.
15155 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15156 Use image_load_image_io.
15157 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15158 Don't check MyCGImageCreateWithPNGDataProvider.
15159 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15160 Don't call init_image_func_pointer.
15161
15162 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15163
15164 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15165 Make variable non-static.
15166 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15167 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15168
15169 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15170 (RED_FROM_ULONG): Mask off higher bits.
15171 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15172
15173 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15174 Include AvailabilityMacros.h.
15175 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15176 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15177
151782008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15179
15180 * chartab.c (Fset_char_table_range): If range is t, really set all
15181 chars to that value.
15182
151832008-05-03 Eli Zaretskii <eliz@gnu.org>
15184
15185 * dired.c (Ffile_attributes): Don't allow the device number become
15186 negative.
15187
151882008-05-02 Daiki Ueno <ueno@unixuser.org>
15189
15190 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15191
151922008-05-02 Juri Linkov <juri@jurta.org>
15193
15194 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15195 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15196 DEFAULT argument as a list of default values in docstrings.
15197
151982008-05-01 Chong Yidong <cyd@stupidchicken.com>
15199
15200 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15201
152022008-05-01 Martin Rudalics <rudalics@gmx.at>
15203
15204 * dispnew.c (change_frame_size_1): Preserve small windows when
15205 shrinking frames by calling set_window_height|width with third
15206 arg 2.
15207
15208 * window.h (struct window): Replace field too_small_ok by field
15209 resize_proportionally.
15210
15211 * window.c (make_window): Initialize resize_proportionally.
15212 (enlarge_window): Temporarily set resize_proportionally to make
15213 sure that shrink_windows does scale the window proportionally.
15214 (shrink_windows): When window has resize_proportionally set try
15215 to shrink it proportionally by stealing from other windows.
15216 (struct saved_window, Fset_window_configuration)
15217 (compare_window_configurations): Handle resize_proportionally.
15218 (WINDOW_TOTAL_SIZE): New macro.
15219 (window_min_size, shrink_windows, size_window): Use it.
15220 (check_min_window_sizes): Remove. Invalid values of
15221 window-min-height|width are handled by window_min_size_2 now.
15222 (size_window, Fsplit_window, enlarge_window)
15223 (adjust_window_trailing_edge, grow_mini_window): Don't call
15224 check_min_window_sizes.
15225 (window_min_size_2, window_min_size_1, window_min_size):
15226 New argument safe_p for retrieving "safe" minimum sizes.
15227 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15228 (adjust_window_trailing_edge, grow_mini_window):
15229 Adjust arguments of window_min_size... functions.
15230 (shrink_windows): Argument min_size removed. New argument
15231 safe_p allows shrinking windows to their safe minimum sizes.
15232 Calculate minimum size and decide whether a window shall be
15233 deleted for each window individually.
15234 (size_window): When nodelete_p equals 2, tell shrink_windows to
15235 delete windows only if their new minimum size is no more safe.
15236 (shrink_window_lowest_first): Call window_min_size_1 to make
15237 sure to preserve modeline of bottom-most window when resizing
15238 the minibuffer.
15239 (Fset_window_configuration, Fcurrent_window_configuration)
15240 (compare_window_configurations): Do not handle
15241 window-min-height|width any more.
15242 (syms_of_window): Clarify window-min-height|width doc-strings.
15243
152442008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15245
15246 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15247 some more. Copy some of the code from Ftry_completions.
15248 Remove special case code that dates back to initial revision when the
15249 slash was only added when necessary and that can't trigger nowadays.
15250
152512008-04-27 Kenichi Handa <handa@m17n.org>
15252
15253 * font.c (font_prop_validate): Signal `error' instead of `font'.
15254
152552008-04-29 Jason Rumney <jasonr@gnu.org>
15256
15257 * w32fns.c (Fw32_battery_status): New defun.
15258 (syms_of_w32fns): Defsubr it.
15259
152602008-04-28 Andreas Schwab <schwab@suse.de>
15261
15262 * dired.c (file_name_completion): Fix another mixing of encoded
15263 and decoded names.
15264
152652008-04-28 Juanma Barranquero <lekktu@gmail.com>
15266
15267 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15268
152692008-04-27 Juanma Barranquero <lekktu@gmail.com>
15270
15271 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15272
152732008-04-27 Andreas Schwab <schwab@suse.de>
15274
15275 * dired.c (file_name_completion): Fix inappropriate mixing of
15276 encoded and decoded names.
15277
15278 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15279
15280 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15281
152822008-04-26 Eli Zaretskii <eliz@gnu.org>
15283
15284 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15285 2008-03-31, it's not needed anymore with `struct stat' definition
15286 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15287 for the same reasons.
15288
152892008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15290
15291 * m/sparc.h: Additional redefinitions for GNU/Linux.
15292
152932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15294
15295 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15296 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15297 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15298 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15299 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15300 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15301 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15302 Likewise.
15303
15304 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15305 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15306 (mac_ax_number_of_characters): Add externs.
15307 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15308 [USE_MAC_TSM]: Likewise.
15309 (mac_handle_text_input_event) [MAC_OSX]:
15310 Handle kEventTextInputOffsetToPos for no active input area case.
15311 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15312 (mac_handle_document_access_event)
15313 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15314 (install_application_handler) [MAC_OSX]: Register handlers for
15315 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15316 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15317 Register mac_handle_document_access_event.
15318
15319 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15320 Make functions non-static.
15321
153222008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15323
15324 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15325 (read_file_name_completion_ignore_case, insert_default_directory)
15326 (Qdefault_directory): Move to minibuffer.el.
15327 (Fread_file_name): Call the new `read-file-name' instead.
15328
153292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15330
15331 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15332 Make function non-static.
15333 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15334 Remove function.
15335 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15336 Move to mactoolbox.c.
15337 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15338
15339 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15340 (mac_rect_make): New macro.
15341
15342 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15343 instead of float.
15344 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15345 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15346 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15347 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15348 CGRectMake.
15349 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15350 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15351 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15352 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15353 instead of WindowRef in argument type.
15354 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15355 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15356 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15357 instead of DISPLAY. All uses changed.
15358 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15359 (x_calc_absolute_position): Simplify so as not to use
15360 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15361
15362 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15363 instead of WindowRef in argument type.
15364 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15365 [TARGET_API_MAC_CARBON]: Remove externs.
15366 (create_apple_event, mac_event_parameters_to_lisp)
15367 [TARGET_API_MAC_CARBON]: Add externs.
15368
15369 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15370 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15371 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15372 is clicked.
15373 (x_activate_menubar): Remove extern for saved_menu_event_location.
15374 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15375 Move from mac.c.
15376
153772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15378
15379 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15380 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15381
153822008-04-23 Jason Rumney <jasonr@gnu.org>
15383
15384 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15385 attributes only for local files.
15386
15387 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15388 default to Qlocal.
15389
153902008-04-22 Juri Linkov <juri@jurta.org>
15391
15392 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15393 read-buffer-to-switch instead of using the letter "B".
15394
153952008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15396
15397 * fileio.c (Qdefault_directory): New variable.
15398 (Fread_file_name): Use it to pass `dir' to the completion functions.
15399
154002008-04-20 Chong Yidong <cyd@stupidchicken.com>
15401
15402 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15403
154042008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15405
15406 * keyboard.c (Vpre_help_message): Remove.
15407 (show_help_echo): Remove default C code.
15408
15409 * dired.c (directory_files_internal, file_name_completion):
15410 Only call ENCODE_FILE if the string is indeed decoded.
15411
154122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15413
15414 * Makefile.in (TOOLKIT_DEFINES): Remove.
15415 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15416
154172008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15418
15419 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15420 (mactoolbox.o): New target.
15421
15422 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15423 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15424
15425 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15426 Use mac_set_frame_window_background instead of XSetWindowBackground.
15427 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15428 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15429 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15430 instead of SetWindowTitleWithCFString.
15431 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15432 Move function to mactoolbox.c.
15433 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15434 Use mac_set_window_modified instead of SetWindowModified.
15435 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15436 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15437 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15438 FrontNonFloatingWindow. Use mac_activate_window instead of
15439 ActivateWindow. Use mac_active_non_floating_window instead of
15440 ActiveNonFloatingWindow.
15441 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15442 Use mac_show_hourglass and mac_hide_hourglass.
15443 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15444 instead of GetGlobalMouse.
15445 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15446 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15447 Use mac_bring_window_to_front instead of BringToFront.
15448 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15449 mactoolbox.c.
15450 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15451 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15452 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15453 mactoolbox.c.
15454
15455 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15456 (XtPointer): Move typedef from macmenu.c.
15457 (enum button_type): Move enum from macmenu.c.
15458 (widget_value): Move typedef from macmenu.c.
15459 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15460 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15461 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15462 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15463 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15464 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15465 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15466 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15467 (Selection): Move typedef from macselect.c.
15468 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15469 macterm.c.
15470 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15471 (mac_is_window_collapsed, mac_bring_window_to_front)
15472 (mac_send_window_behind, mac_hide_window, mac_show_window)
15473 (mac_collapse_window, mac_front_non_floating_window)
15474 (mac_active_non_floating_window, mac_activate_window)
15475 (mac_move_window_structure, mac_move_window, mac_size_window)
15476 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15477
15478 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15479 (enum mac_menu_kind): Move enum to mactoolbox.c.
15480 (min_menu_id): Move variable to mactoolbox.c.
15481 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15482 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15483 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15484 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15485 [TARGET_API_MAC_CARBON]: Likewise.
15486 (XtPointer): Move typedef to macgui.h.
15487 (enum button_type): Move enum to macgui.h.
15488 (widget_value): Move typedef to macgui.h.
15489 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15490 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15491 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15492 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15493 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15494 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15495 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15496 (popup_activated_flag): Make variable non-static.
15497 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15498 (add_menu_item, fill_menu, dispose_menus):
15499 Move functions to mactoolbox.c.
15500 (restore_show_help_function, menu_target_item_handler)
15501 (install_menu_target_item_handler, mac_handle_dialog_event)
15502 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15503 [TARGET_API_MAC_CARBON]: Likewise.
15504 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15505 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15506 (find_and_call_menu_selection, name_is_separator): Make function
15507 non-static.
15508 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15509 to mactoolbox.c.
15510 (set_frame_menubar): Don't call install_menu_quit_handler.
15511 (menu_item_selection): New variable.
15512 (mac_menu_show): Use create_and_show_popup_menu.
15513 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15514 selection but set variable menu_item_selection. All uses changed.
15515 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15516 Call install_menu_quit_handler. Move to mactoolbox.c.
15517
15518 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15519 (Selection): Move typedef to macgui.h.
15520 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15521 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15522 Make variables non-static.
15523 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15524 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15525 Make functions non-static.
15526 (Vmac_service_selection) [MAC_OSX]: Likewise.
15527 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15528 (mac_valid_selection_target_p, mac_clear_selection)
15529 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15530 (mac_put_selection_value, mac_selection_has_target_p)
15531 (mac_get_selection_value, mac_get_selection_target_list)
15532 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15533 Move functions to mactoolbox.c.
15534 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15535 Likewise.
15536 (copy_scrap_flavor_data, mac_handle_service_event)
15537 (install_service_handler) [MAC_OSX]: Likewise.
15538 (syms_of_macselect) <Vmac_dnd_known_types>:
15539 Use mac_dnd_default_known_types.
15540
15541 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15542 Move to mactoolbox.c.
15543 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15544 (Fx_selection_owner_p): Add EXFUN.
15545 (install_window_handler, remove_window_handler, XSetWindowBackground):
15546 Remove externs.
15547 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15548 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15549 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15550 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15551 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15552 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15553 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15554 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15555 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15556 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15557 (mac_valid_selection_target_p, mac_clear_selection)
15558 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15559 (mac_put_selection_value, mac_selection_has_target_p)
15560 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15561 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15562 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15563 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15564 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15565 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15566 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15567 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15568 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15569
15570 * mactoolbox.c: New file.
15571
155722008-04-18 Jason Rumney <jasonr@gnu.org>
15573
15574 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15575
155762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15577
15578 * character.c (Fmultibyte_char_to_unibyte):
15579 Return latin1 chars unchanged.
15580
15581 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15582 relocated if it points to `name'.
15583
155842008-04-17 Kenichi Handa <handa@m17n.org>
15585
15586 * data.c (Faset): Allow setting a multibyte character in an
15587 ASCII-only unibyte string.
15588
15589 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15590
155912008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15592
15593 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15594 done in config.h.
15595
155962008-04-16 Juanma Barranquero <lekktu@gmail.com>
15597
15598 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15599 (Fchar_direction): Add usage in the docstring.
15600
156012008-04-15 Chong Yidong <cyd@stupidchicken.com>
15602
15603 * keyboard.c (read_key_sequence): Remove always-true checks.
15604
156052008-04-14 Jason Rumney <jasonr@gnu.org>
15606
15607 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15608 compatibility struct, for better underline positioning.
15609
156102008-04-13 David Hansen <david.hansen@gmx.net>
15611
15612 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15613 string.
15614
156152008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15616
15617 * m/hp800.h (XUINT, XSET): Remove.
15618
156192008-04-12 Juanma Barranquero <lekktu@gmail.com>
15620
15621 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15622 previous change.
15623
156242008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15625
15626 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15627 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15628
156292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15630
15631 * keymap.h (map_keymap_canonical): Declare.
15632 * xmenu.c (single_keymap_panes): Use it.
15633
156342008-04-11 Glenn Morris <rgm@gnu.org>
15635
15636 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15637 set the target's value to that of the alias.
15638
156392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15640
15641 * term.c (set_tty_color_mode): Left over typo.
15642
156432008-04-10 Michael Albinus <michael.albinus@gmx.de>
15644
15645 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15646 only after check for file name handler functions. Signal, when
15647 native functionality is not supported.
15648 (syms_of_fileio): Declare it unconditionally.
15649
156502008-04-10 Jason Rumney <jasonr@gnu.org>
15651
15652 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15653 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15654
15655 * w32.c (logon_network_drive): Also logon to remote drives that
15656 are mapped to drive letters.
15657
156582008-04-10 Glenn Morris <rgm@gnu.org>
15659
15660 * xdisp.c (truncate-partial-width-windows): Doc fix.
15661
156622008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15663
15664 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15665 Move functions to minibuffer.el.
15666 (syms_of_fileio): Don't declare them.
15667
156682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15669
15670 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15671 (syms_of_minibuf): Remove its initialization.
15672
15673 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15674
156752008-04-09 Juanma Barranquero <lekktu@gmail.com>
15676
15677 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15678
156792008-04-09 Jason Rumney <jasonr@gnu.org>
15680
15681 * makefile.w32-in (distclean): Delete makefile too.
15682 (maintainer-clean): New target.
15683
15684 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15685
15686 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15687 for new font backend and composite cases.
15688
156892008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15690
15691 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15692 Most of the code moved to run_timers.
15693 (do_pending_atimers): Call run_timers.
15694 (run_timers): New function.
15695
15696 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15697 run atimers.
15698
15699 * process.c (wait_reading_process_output): The same as above.
15700
157012008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15702
15703 * minibuf.c (last_exact_completion): Remove variable.
15704 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15705 (complete_and_exit_1, complete_and_exit_2)
15706 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15707 (Fdisplay_completion_list, display_completion_list_1)
15708 (Fminibuffer_completion_help, Fself_insert_and_exit)
15709 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15710 minibuffer.el.
15711 (syms_of_minibuf): Remove corresponding initializations.
15712
15713 * keyboard.c (Qdeactivate_mark): New var.
15714 (command_loop_1): Use it to call `deactivate-mark'.
15715 (syms_of_keyboard): Initialize it.
15716
15717 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15718 to another frame.
15719 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15720 Don't call set_tty_color_mode.
15721 (store_frame_param): Reset previous_frame rather than call
15722 set_tty_color_mode.
15723 * term.c (set_tty_color_mode): Rewrite.
15724 * dispextern.h (set_tty_color_mode): New type.
15725 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15726
157272008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15728
15729 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15730 for generic chars, which do not exist any more in emacs-unicode.
15731
157322008-04-08 Michael Albinus <michael.albinus@gmx.de>
15733
15734 * coding.c (detect_coding_emacs_mule)
15735 (Ffind_operation_coding_system): Fix typo.
15736
157372008-04-08 Jason Rumney <jasonr@gnu.org>
15738
15739 * w32uniscribe.c (SNAME): Extract only symbol name.
15740
15741 * w32font.h (struct w32_metric_cache): New struct.
15742 (w32font_info): Use it.
15743 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15744 (CACHE_BLOCKSIZE): New constants.
15745
15746 * w32font.c (Qja, Qko, Qzh): New symbols.
15747 (syms_of_w32font): Initialise them.
15748 (font_matches_spec): Use them to filter by language.
15749 (recompute_cached_metrics): Remove function.
15750 (compute_metrics, clear_cached_metrics): New functions.
15751 (w32font_encode_char): Use them to manage metric cache.
15752 (w32font_text_extents): Cache metrics for all glyphs on demand.
15753 Delay converting glyph indices to WORD until needed.
15754 (w32font_open_internal): Initialize metric cache to empty.
15755 (registry_to_w32_charset): Charset should always be a symbol.
15756 (fill_in_logfont, list_all_matching_fonts): Family should
15757 always be a symbol.
15758
157592008-04-06 Jason Rumney <jasonr@gnu.org>
15760
15761 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15762 Give up if glyph indices not supported. Use uniscribe obtained
15763 ABC widths for individual metrics. Map glyph clusters back to
15764 characters using fClusterStart flag. Return number of glyphs
15765 produced, not chars processed.
15766 (uniscribe_shape): Map char at FROM to current glyph.
15767
157682008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15769
15770 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15771 Use SetMenuItemHierarchicalMenu.
15772
157732008-04-05 Jason Rumney <jasonr@gnu.org>
15774
15775 * image.c (pbm_load): Allow color values up to 65535.
15776 Throw an error if max_color_idx is outside the supported range.
15777 Report an error when image size is invalid.
15778 Read two bytes at a time when raw images have max_color_idx above 255.
15779
aac0c6e3
MR
157802008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15781
15782 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15783 append "CCL: Quitted" when the CCL program is quitted.
15784 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15785
15786 * ccl.h (struct ccl_program): New member quit_silently.
15787
157882008-04-05 Chong Yidong <cyd@stupidchicken.com>
15789
15790 * search.c (compile_pattern_1): Treat non-nil and non-string of
15791 search-spaces-regexp as nil.
15792
15793 * minibuf.c (Fassoc_string): Tweak docstring.
15794
157952008-04-05 Eli Zaretskii <eliz@gnu.org>
15796
15797 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15798 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15799 2008-03-14 to force inode be positive.
15800
15801 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15802 _S_* ones, since we now use our own sys/stat.h.
15803 (stat, fstat): Don't mangle the inode number.
15804 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15805
158062008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15807
15808 * frame.h (struct frame): Give one more bit to `visible' since we use
15809 values larger than 1 to indicate obscured frames on ttys.
15810
15811 * keymap.c (Qkeymap_canonicalize): New var.
15812 (Fmap_keymap_internal): New fun.
15813 (describe_map): Use keymap-canonicalize.
15814
15815 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15816 (Fundo_boundary): Set them.
15817 (syms_of_undo): Initialize them.
15818 (record_point): Use them instead of last_point_position*.
15819 (last_undo_buffer): Change type.
15820
158212008-04-04 Jason Rumney <jasonr@gnu.org>
15822
15823 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15824 (recompute_cached_metrics): Don't set ascent and descent per char.
15825
15826 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15827 (uniscribe_check_otf): Add GC protection before consing.
15828 Rearrange loop for counting features.
15829
158302008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15831
15832 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15833 buffer with byte-size of source buffer.
15834
158352008-04-03 Chong Yidong <cyd@stupidchicken.com>
15836
15837 * callint.c (Fcall_interactively): Handle temporary region even
15838 when shift-select-mode is off.
15839
158402008-04-03 Jason Rumney <jasonr@gnu.org>
15841
15842 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15843
158442008-04-03 Kenichi Handa <handa@m17n.org>
15845
15846 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15847 (CATEGORY_MASK_UTF_16): Likewise.
15848 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15849 binary file.
15850 (detect_coding): Add null-byte detection for a binary file.
15851 (detect_coding_system): Likewise.
15852
158532008-04-03 Jason Rumney <jasonr@gnu.org>
15854
15855 * w32uniscribe.c: New file.
15856
15857 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15858
15859 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15860
15861 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15862 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15863 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15864 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15865 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15866 (Qphonetic): New symbols.
15867 (syms_of_w32font): Initialize them.
15868 (font_supported_scripts): Use them.
15869 (w32font_list_family): List all charsets.
15870 (w32font_text_extents, recompute_cached_metrics): Fix metric
15871 calculations.
15872 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15873 Give opentype fonts their own format.
15874 (font_matches_spec): New arguments backend and logfont.
15875 Handle :otf spec for uniscribe backend.
15876 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15877 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15878
15879 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15880 font backend.
15881 (globals_of_w32fns): Initialize uniscribe font backend.
15882
15883 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15884 dependencies.
15885 (w32uniscribe.$(O)): New file to build.
15886 (FONT_OBJ): Include w32uniscribe.$(O).
15887 (LIBS): Add uniscribe libraries.
15888
15889 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15890
158912008-04-02 Chong Yidong <cyd@stupidchicken.com>
15892
15893 * callint.c (Vshift_select_mode): New var.
15894 (Finteractive): Document new ^ spec.
15895 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15896 is present.
15897
15898 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15899 (command_loop_1): Avoid running the direct display versions of
15900 forward-char and backward-char if shift-selection may occur.
15901 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15902 shift-translation takes place.
15903
15904 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15905 avoid clobbering by define-minor-mode.
15906
15907 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15908 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15909
15910 * syntax.c (Fforward_word): Add ^ interactive spec.
15911
15912 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15913 (Fscroll_right): Add ^ interactive spec.
15914
159152008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15916
15917 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15918
15919 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15920
15921 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15922
159232008-03-31 Juri Linkov <juri@jurta.org>
15924
15925 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15926
159272008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15928
15929 * gtkutil.c (xg_set_geometry): Fix indentation.
15930 (xg_resize_outer_widget): Remove.
15931 (x_wm_size_hint_off): Fix indentation.
15932 (xg_frame_set_char_size): Call flush_and_sync after
15933 gtk_window_resize.
15934 (x_wm_set_size_hint): Pass NULL as geometry window to
15935 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15936 Add menu bar and tool bar height to base height.
15937 (xg_update_frame_menubar, free_frame_menubar)
15938 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15939 (update_frame_tool_bar, free_frame_tool_bar):
15940 Change xg_resize_outer_widget to xg_frame_set_char_size.
15941
159422008-03-30 Michael Albinus <michael.albinus@gmx.de>
15943
15944 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15945 (Fdbus_call_method): New parameter TIMEOUT.
15946 (dbus-send-signal): Optimize UNGCPRO call.
15947
159482008-03-29 Juri Linkov <juri@jurta.org>
15949
15950 * window.c (Fdisplay_buffer): Move call to
15951 Vsplit_window_preferred_function out of conditions that check
15952 if window is eligible for vertical splitting.
15953 When Vsplit_window_preferred_function is non-nil, call it and use
15954 its non-nil return value as window. Otherwise, continue doing
15955 vertical splitting using Fsplit_window with arg horflag=nil.
15956 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15957 default value from `split-window' to nil.
15958
159592008-03-29 Juri Linkov <juri@jurta.org>
15960
15961 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15962 for interactive code letters 'b' and 'B'.
15963
159642008-03-29 Eli Zaretskii <eliz@gnu.org>
15965
15966 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15967 multibyte string.
15968
159692008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15970
15971 * keyboard.c (pending_funcalls): New var.
15972 (timer_check): Run it.
15973 (syms_of_keyboard): Initialize it.
15974 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15975 (Vdelete_terminal_functions): New vars.
15976 (syms_of_terminal): Initialize them.
15977 (Fdelete_terminal): Run delete-terminal-functions.
15978 * xdisp.c (safe_eval): Rewrite.
15979 (safe_call2): New fun.
15980 * frame.c (Qdelete_frame_functions): New var.
15981 (syms_of_frame): Initialize it.
15982 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15983 * lisp.h (safe_call2, pending_funcalls): Declare.
15984
159852008-03-28 Andreas Schwab <schwab@suse.de>
15986
15987 * indent.c (Fmove_to_column): Move declaration before statements.
15988
159892008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15990
15991 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15992 (struct frame): Use bit fields for boolean vars.
15993
15994 * process.c (server_accept_connection): Simplify naming.
15995 (emacs_get_tty_pgrp): Use SDATA.
15996
15997 * coding.c (decode_coding_object): Fix last change.
15998
159992008-03-27 Jason Rumney <jasonr@gnu.org>
16000
16001 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
16002
160032008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
16004
16005 * charset.c (Fdefine_charset_internal): Change the way of
16006 registering charsets in Vcharset_order_list.
16007 (syms_of_charset): Make the charset `eight-bit' supplementary.
16008
160092008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16010
16011 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16012 operations, to avoid having the difference between pointers
16013 overflow.
16014
160152008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16016
16017 * indent.c (check_display_width): New fun.
16018 (scan_for_column): Use it.
16019
16020 * data.c (syms_of_data): Mark most-positive-fixnum and
16021 most-negative-fixnum as constants.
16022
16023 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16024
16025 * indent.c (scan_for_column): Extract from current_column_1.
16026 Merge with the same code from Fmove_to_column.
16027 (current_column_1, Fmove_to_column): Use it.
16028
160292008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16030
16031 * keymap.c (map_keymap_internal): New fun.
16032 (map_keymap): Use it.
16033 (Fmap_keymap_internal): New fun.
16034 (Fmap_keymap): Remove left-out test from before make_save_value.
16035
16036 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16037
16038 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16039 Use XCAR/XCDR.
16040
16041 * process.h (struct Lisp_Process): Remove filter_multibyte.
16042 * process.c (QCfilter_multibyte): Remove.
16043 (setup_process_coding_systems): Don't use filter_multibyte.
16044 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16045 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16046 (Fset_process_filter_multibyte): Change the coding-system to
16047 approximate the previous behavior.
16048 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16049 coding-system.
16050
16051 * coding.c (decode_coding_object): When not decoding into a buffer,
16052 obey the coding system's preference of (uni|multi)byte.
16053
160542008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16055
16056 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16057 every char is changed and has a different byte-length.
16058 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16059 Fix int -> EMACS_INT.
16060
160612008-03-23 David Hansen <david.hansen@gmx.net>
16062
16063 * dbusbind.c (xd_read_message): Remove extra copying of message
16064 strings. Check for NULL `interface' or `member'.
16065
160662008-03-22 Eli Zaretskii <eliz@gnu.org>
16067
16068 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16069 cFileName a file name that includes `?' characters, use the 8+3
16070 alias in cAlternateFileName instead.
16071
160722008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16073
16074 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16075
160762008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16077
16078 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16079 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16080 work on current_buffer only instead (that was already the case
16081 for some of the code anyway).
16082 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16083 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16084 (SET_PT, SET_PT_BOTH): Adjust.
16085 * intervals.h (set_point, temp_set_point, set_point_both)
16086 (temp_set_point_both): Remove redundant declarations.
16087
160882008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16089
16090 * fileio.c (Finsert_file_contents):
16091 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16092 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16093 when buffer != current_buffer anyway.
16094
160952008-03-20 Andreas Schwab <schwab@suse.de>
16096
16097 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16098 as default.
16099
161002008-03-19 Jason Rumney <jasonr@gnu.org>
16101
16102 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16103 (syms_of_w32fns): Initialize them.
16104 (HOURGLASS_ID): New constant.
16105 (x_window_to_frame): Don't check hourglass_window.
16106 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16107 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16108 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16109 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16110 Only change the cursor if hourglass is not active.
16111 (Fx_create_frame): Initialize frame's current_cursor.
16112 (hourglass_atimer): Remove.
16113 (hourglass_started): New function.
16114 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16115 (show_hourglass): Adapt to w32, changing argument to frame.
16116
16117 * w32term.h (struct w32_output): Remove hourglass_window.
16118 Add current_cursor.
16119
16120 * eval.c (call_debugger, Fsignal):
16121 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16122 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16123 (Fexecute_extended_command, cancel_hourglass_unwind):
16124 * minibuf.c (read_minibuf):
16125 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16126
161272008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16128
16129 * window.c (run_funs): New fun.
16130 (run_window_configuration_change_hook): Use it to run the buffer-local
16131 and the global part of the hook.
16132
16133 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16134 (unwind_format_mode_line): Restore selected window.
16135 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16136
161372008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16138
16139 * editfns.c (Fchar_equal): Check they are valid characters.
16140
16141 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16142
161432008-03-17 Andreas Schwab <schwab@suse.de>
16144
16145 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16146 against a charset.
16147
16148 * lisp.h (Fbuffer_list): Declare.
16149
161502008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16151
aac0c6e3
MR
16152 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16153 handlebox_widget is != 0.
16154
161552008-03-16 Juri Linkov <juri@jurta.org>
16156
16157 * callint.c (Fcall_interactively): For interactive code letters
16158 'b' and 'B' put the buffer list into the list of default "future"
16159 values of the minibuffer.
16160
161612008-03-16 Andreas Schwab <schwab@suse.de>
16162
16163 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16164 modifiers.
16165
16166 * regex.c (re_match_2_internal): Correct matching of a charset
16167 against latin-1 characters.
16168
161692008-03-16 Kenichi Handa <handa@m17n.org>
16170
16171 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16172 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16173 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16174 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16175 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16176 CHAR_STRING_ADVANCE.
16177 (produce_chars): Fix for the case that the source and the
16178 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16179 instead of CHAR_STRING_ADVANCE.
16180 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16181 STRING_CHAR_ADVANCE.
16182
161832008-03-15 Andreas Schwab <schwab@suse.de>
16184
16185 * regex.c (re_match_2_internal): Correct matching of eight bit
16186 characters in unibyte strings.
16187
161882008-03-15 Martin Rudalics <rudalics@gmx.at>
16189
16190 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16191 at end of range when it coincides with the end of the buffer.
16192
161932008-03-14 Eli Zaretskii <eliz@gnu.org>
16194
16195 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16196
16197 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16198
161992008-03-14 Jason Rumney <jasonr@gnu.org>
16200
16201 * editfns.c (initial_tz): New variable.
16202 (syms_of_editfns): Initialize it.
16203 (Fset_time_zone_rule): Set it when first called.
16204 Use it when TZSTRING is nil.
16205
16206 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16207 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16208 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16209 (globals_of_w32fns): Initialize them.
16210 (compute_tip_xy): Use them to position tooltips.
16211
162122008-03-14 Glenn Morris <rgm@gnu.org>
16213
16214 * emacs.c (main): Revert previous change.
16215 (standard_args): Revert -internal-script back to -scriptload,
16216 and remove the long-option form.
16217
162182008-03-13 Glenn Morris <rgm@gnu.org>
16219
16220 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16221 Remove option -enable-font-backend.
16222
162232008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16224
16225 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16226
162272008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16228
16229 * xterm.c (x_connection_closed): For GTK: If this is the last
16230 terminal just exit without closing the display.
16231
162322008-03-11 Jason Rumney <jasonr@gnu.org>
16233
16234 * w32font.c (w32font_full_name): Use floor to round.
16235
f0131492 162362008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16237
16238 * sound.c (alsa_configure): Declare vol at beginning of block.
16239
16240 * fontset.c (Ffontset_info): Remove extra semicolon.
16241
162422008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16243
16244 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16245 size of resulting string.
16246
162472008-03-10 Jason Rumney <jasonr@gnu.org>
16248
16249 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16250
162512008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16252
16253 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16254 Don't pretend as if characters with display property haven't been
16255 consumed for string-replacing-string case.
16256
162572008-03-08 Kim F. Storm <storm@cua.dk>
16258
16259 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16260 (get_next_display_element, next_element_from_string)
16261 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16262
162632008-03-08 Andreas Schwab <schwab@suse.de>
16264
16265 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16266
162672008-03-06 Jason Rumney <jasonr@gnu.org>
16268
16269 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16270 when charset not specified. Only translate ANSI to unicode when
16271 font_type is truetype.
16272 (w32font_coverage_ok): New function.
16273 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16274
162752008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16276
16277 * lread.c (Fread_char): Resolve modifiers.
16278 (Fread_char_exclusive): Likewise.
16279
16280 * character.c (char_resolve_modifier_mask): New function.
16281 (char_string): Use char_resolve_modifier_mask.
16282 (Fchar_resolve_modifiers): New function.
16283 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16284 function.
16285
162862008-03-04 Jason Rumney <jasonr@gnu.org>
16287
16288 * makefile.w32-in: Always include w32font.c in the build.
16289 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16290
162912008-03-04 Andreas Schwab <schwab@suse.de>
16292
16293 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16294 (versionclean): Likewise.
16295
162962008-03-04 Juanma Barranquero <lekktu@gmail.com>
16297
16298 * .cvsignore: Add oo.
16299
163002008-03-03 Andreas Schwab <schwab@suse.de>
16301
16302 * coding.c (decode_coding_object): Inhibit gap shrinking while
16303 decoding in place.
16304
163052008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16306
16307 * w32term.c: Remove unused include "gnu.h".
16308 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16309
16310 * gnu.h: Rename to ...
16311 * emacs-icon.h: ... this.
16312 * xterm.c: Use emacs-icon.h instead of gnu.h.
16313 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16314
163152008-03-03 Juanma Barranquero <lekktu@gmail.com>
16316
16317 * w32font.c: Include math.h.
16318
163192008-03-03 Jason Rumney <jasonr@gnu.org>
16320
16321 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16322 Compute options separately.
16323 (w32font_open_internal): Set glyph_idx before caching metrics.
16324
16325 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16326 Define if system headers don't.
16327 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16328 (w32font_encode_char): Don't declare here.
16329
16330 * w32font.c (Quniscribe, QCformat): New symbols.
16331 (syms_of_w32font): Define them.
16332 (w32font_has_char): Indicate uncertainty.
16333 (w32font_encode_char): Encode as glyph point. Make static.
16334 (recompute_cached_metrics): New function.
16335 (w32font_open_internal): Use it. Set font to use glyph points
16336 initially. Set format based on type of font.
16337 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16338 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16339 on it. Set format based on information available here.
16340 (add_font_entity_to_list): Identify backend based on opentype_only.
16341
163422008-03-02 Andreas Schwab <schwab@suse.de>
16343
16344 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16345
16346 * coding.c (decode_coding_big5, produce_chars):
16347 Fix typos in last change.
16348
163492008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16350
16351 * gnu.h: New icon.
16352
163532008-03-02 Kenichi Handa <handa@m17n.org>
16354
16355 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16356 `dos', don't decode '\r' if that is the last in the source.
16357 (decode_coding_utf_16, decode_coding_emacs_mule)
16358 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16359 (decode_coding_raw_text, decode_coding_charset): Likewise.
16360 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16361
163622008-03-01 Jason Rumney <jasonr@gnu.org>
16363
16364 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16365
163662008-03-01 Kim F. Storm <storm@cua.dk>
16367
16368 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16369
163702008-03-01 Jason Rumney <jasonr@gnu.org>
16371
16372 * w32font.c (w32font_full_name): New function.
16373 (w32font_open_internal): Use it.
16374
163752008-03-01 Kim F. Storm <storm@cua.dk>
16376
16377 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16378
163792008-03-01 Jason Rumney <jasonr@gnu.org>
16380
16381 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16382
163832008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16384
16385 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16386 xg_frame_resized when the event is for the edit widget.
16387
16388 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16389
16390 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16391 set_char_size.
16392 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16393 operations on widgets here. Just set frame size if needed.
16394 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16395 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16396 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16397 the whole frame.
16398 (xg_create_tool_bar): Move attachment of the tool bar to
16399 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16400 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16401
164022008-03-01 Jason Rumney <jasonr@gnu.org>
16403
16404 * w32fns.c (w32_msg_pump): Disable debug code.
16405
164062008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16407
16408 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16409
164102008-02-29 Chong Yidong <cyd@stupidchicken.com>
16411
16412 * xdisp.c (next_overlay_string): Don't set
16413 overlay_strings_at_end_processed_p if we're currently reading from
16414 a display string.
16415
164162008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16417
16418 * xdisp.c (get_overlay_strings_1): Fix typo.
16419
164202008-02-29 Chong Yidong <cyd@stupidchicken.com>
16421
16422 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16423
164242008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16425
16426 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16427
16428 * xdisp.c (display_mode_element): Cancel the previous change.
16429 (decode_mode_spec): Likewise.
16430 (handle_auto_composed_prop): Don't make composition if it->string
16431 is a string.
16432
164332008-02-27 Kim F. Storm <storm@cua.dk>
16434
16435 * lisp.h (GLYPH): Change type from int to struct with separate char
16436 and face_id members.
16437 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16438 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16439 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16440 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16441 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16442 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16443 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16444 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16445 handle new Lisp glyph code encoding, either an integer or a cons.
16446
16447 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16448 (GLYPH_ALIAS): Delete.
16449 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16450 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16451 (GLYPH_FROM_CHAR): Replace macro by ...
16452 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16453
16454 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16455 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16456 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16457 (GLYPH_INVALID_P): New macro.
16458 (spec_glyph_lookup_face): Update prototype.
16459
16460 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16461 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16462 new glyph code encoding.
16463 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16464 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16465
16466 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16467 Adapt to new glyph type and new glyph code encoding.
16468
16469 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16470
16471 * indent.c (current_column, current_column_1, Fmove_to_column)
16472 (compute_motion): Adapt to new glyph code encoding.
16473
16474 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16475
164762008-02-27 Chong Yidong <cyd@stupidchicken.com>
16477
16478 * process.c (wait_reading_process_output): Check for window
16479 changes caused by timers.
16480 Suggested by Johan Bockgård.
16481
164822008-02-27 Glenn Morris <rgm@gnu.org>
16483
16484 * emacs.c (USAGE1): Add `--disable-font-backend'.
16485
164862008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16487
16488 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16489 is made to the buffer.
16490
164912008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16492
16493 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16494 (face_at_string_position):
16495 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16496 (face_at_string_position):
16497 * xdisp.c (display_string, next_overlay_change):
16498 * buffer.h (overlays_at):
16499 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16500 Update callers.
16501
165022008-02-26 Chong Yidong <cyd@stupidchicken.com>
16503
16504 * editfns.c (Fformat): Doc fix.
16505
165062008-02-26 Juanma Barranquero <lekktu@gmail.com>
16507
16508 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16509 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16510 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16511
165122008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16513
16514 * buffer.c (Fbuffer_swap_text): New function.
16515 (syms_of_buffer): Defsubr it.
16516
165172008-02-25 Chong Yidong <cyd@stupidchicken.com>
16518
16519 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16520
165212008-02-25 Jason Rumney <jasonr@gnu.org>
16522
16523 * w32font.c (w32font_draw): Draw one character at a time when padding.
16524
165252008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16526
16527 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16528 Handle a nil arg. Use run_window_configuration_change_hook.
16529 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16530 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16531 Use run_window_configuration_change_hook.
16532
165332008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16534
16535 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16536 1-pixel width.
16537
165382008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16539
16540 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16541 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16542 if the glyph in the font is zero pixel with.
16543
16544 * dispextern.h (struct glyph_string): New member padding_p.
16545
16546 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16547
16548 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16549
16550 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16551
16552 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16553
16554 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16555
165562008-02-25 Jason Rumney <jasonr@gnu.org>
16557
16558 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16559
165602008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16561
16562 Allow fine-grained image-cache flushing.
16563 * dispextern.h (struct image): Add `dependencies' field.
16564 (clear_image_caches): Change arg to Lisp_Object.
16565 * image.c (make_image): Initialize `dependencies' field.
16566 (clear_image_cache): Change arg to allow fine-grained flushing.
16567 Perform the flush even if image-cache-eviction-delay is nil.
16568 (clear_image_caches): Change arg to Lisp_Object.
16569 (Fclear_image_cache): Expand meaning of the argument.
16570 (mark_image): Mark `dependencies' field.
16571 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16572 (lface_hash): Use XHASH rather than XFASTINT.
16573 (face_at_buffer_position): Fix int -> EMACS_INT position.
16574 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16575 (select_frame_for_redisplay): Remove code duplication.
16576 (redisplay_internal): Adapt arg to call to clear_image_caches.
16577
165782008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16579
16580 * s/vms4-0.h:
16581 * s/vms4-2.h:
16582 * s/vms4-4.h:
16583 * s/vms5-5.h: Remove, unused.
16584
16585 * s/irix5-2.h:
16586 * s/irix6-0.h:
16587 * s/riscos5.h:
16588 * s/mach-bsd4-3.h:
16589 * m/mips4.h: Remove files for obsolete systems.
16590
16591 * Makefile.in:
16592 * filelock.c:
16593 * unexmips.c:
16594 * m/hp9000s300.h:
16595 * m/iris4d.h:
16596 * s/aix3-1.h:
16597 * s/hpux.h:
16598 * s/msdos.h:
16599 * s/usg5-0.h:
16600 * s/usg5-2-2.h:
16601 * s/usg5-2.h:
16602 * s/usg5-3.h: Remove references to obsolete variables.
16603
16604 * s/irix5-0.h: Remove, move all the contents ...
16605 * s/irix6-5.h: ... here. Simplify.
16606 * config.in: Regenerate.
16607
166082008-02-24 Jason Rumney <jasonr@gnu.org>
16609
16610 * w32term.c (x_draw_glyph_string_background): Clear the background
16611 manually when cleartype is in use.
16612 (x_draw_glyph_string_foreground): Draw text transparently when
16613 cleartype is in use.
16614
16615 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16616 a font into it unless we have to.
16617
166182008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16619
16620 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16621 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16622
aac0c6e3
MR
166232008-02-18 Jason Rumney <jasonr@gnu.org>
16624
16625 * w32fns.c (Fw32_shell_execute): Encode parameters.
16626
166272008-02-09 Eli Zaretskii <eliz@gnu.org>
16628
16629 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16630
166312008-02-05 Juanma Barranquero <lekktu@gmail.com>
16632
16633 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16634
166352008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16636
16637 * xterm.c (x_set_offset): Don't change the gravity if
16638 CHANGE_GRAVITY is -1.
16639
166402008-02-23 Chong Yidong <cyd@stupidchicken.com>
16641
16642 * fileio.c (auto_save_error_occurred): New var.
16643 (auto_save_error): Set it.
16644 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16645 error occurred.
16646
166472008-02-23 Eli Zaretskii <eliz@gnu.org>
16648
16649 * w32.c (globals_of_w32): Add initializations for
16650 g_b_init_get_sid_sub_authority and
16651 g_b_init_get_sid_sub_authority_count.
16652
166532008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16654
16655 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16656 (font_parse_xlfd): Use them for sanity check.
16657 (Finternal_set_font_style_table): Make sure the table is bijective.
16658
16659 Consolidate the image_cache to the terminal struct.
16660 * termhooks.h (P_): Remove redundant def.
16661 (struct terminal): New field `image_cache'.
16662 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16663 of FRAME_X_IMAGE_CACHE.
16664 * xterm.h (struct x_display_info): Remove image_cache field.
16665 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16666 * w32term.h (struct w32_display_info): Remove image_cache field.
16667 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16668 * macterm.h (struct mac_display_info): Remove image_cache field.
16669 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16670 * xterm.c (x_term_init):
16671 * w32term.c (w32_term_init):
16672 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16673 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16674 Remove declarations.
16675 (clear_image_caches, mark_image_cache): New declarations.
16676 * xfaces.c (clear_face_cache):
16677 * xdisp.c (redisplay_internal): Use clear_image_caches.
16678 * image.c (clear_image_cache): Don't check that a frame is on
16679 a window-system before checking if it shares the same cache.
16680 (clear_image_caches): New function.
16681 (Fclear_image_cache): Use it.
16682 (mark_image): Move from allo.c.
16683 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16684 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16685 (mark_object): Don't call mark_image_cache for frames.
16686 (mark_terminals): Call mark_image_cache.
16687
16688 * lisp.h (Fdelete_terminal): Declare.
16689
16690 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16691 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16692 wrong_type_argument.
16693
166942008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16695
16696 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16697 malayalam.el, and tamil.el. Add sinhala.el.
16698
166992008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16700
16701 * xterm.c (x_connection_closed): Consolidate identical tests.
16702 (x_delete_terminal): Don't crash if called via x_connection_closed.
16703
167042008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16705
16706 * xdisp.c (decode_mode_spec): New arg string.
16707 (display_mode_element): Adjust for the above change.
16708
167092008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16710
16711 * callint.c (Fcall_interactively): Use AREF.
16712
167132008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16714
16715 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16716
167172008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16718
16719 * xfns.c (Fx_show_tip): Set string to " " if empty.
16720
167212008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16722
16723 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16724 with Qt.
16725
167262008-02-17 Kenichi Handa <handa@m17n.org>
16727
16728 * ftfont.c (ftfont_shape): Return Lispy number.
16729
16730 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16731 for GCs.
16732 (Finternal_set_font_selection_order): Call font_update_sort_order
16733 only when enable_font_backend is set.
16734 (realize_x_face): Set face->font_info to that of default face only
16735 when enable_font_backend is set.
16736
16737 * xdisp.c (handle_composition_prop): Set it->c to the fist
16738 character of the composed region.
16739 (fill_composite_glyph_string): Set base_face->font_info to
16740 s->font_info. Get a face for ascii from base_face->ascii_face.
16741 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16742 with a face already decided.
16743 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16744 non-negative.
16745 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16746 call font_prepare_composition unconditionally.
16747
16748 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16749
16750 * xterm.h (struct x_display_info): New member font.
16751
16752 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16753 (x_set_mouse_face_gc, x_new_font): Likewise.
16754 (x_term_init): Setup display_info->font.
16755 (x_delete_terminal): Free display_info->font.
16756
16757 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16758
16759 * ftxfont.c (ftxfont_default_fid): Delete it.
16760 (ftxfont_open): Set xfont->fid to 0.
16761 (ftxfont_end_for_frame): Clear data specific to the frame and the
16762 font-driver.
16763
16764 * xftfont.c (xftfont_default_fid): Delete it.
16765 (xftfont_open): Set xfont->fid to 0.
16766
16767 * fontset.c (FONTSET_OBJLIST): New macro.
16768 (fontset_find_font): Update font-object list of the fontset.
16769 (free_realized_fontset): New function.
16770 (free_face_fontset): Call free_realized_fontset.
16771 (Ffont_info): Call font_close_object only when enable_font_backend
16772 is set.
16773
16774 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16775 [HAVE_NTGUI]: Include w32term.h.
16776 [MAC_OS]: Include macterm.ch.
16777 (font_otf_ValueRecord): Use make_number.
16778 (font_finish_cache): Fix handling of reference count.
16779 (font_clear_cache): Update num_fonts.
16780 (font_open_entity): Update smallest_char_width and
16781 smallest_font_height of the frame.
16782 (font_close_object): Update num_fonts.
16783 (Fclear_font_cache): Fix finding the target cache data.
16784
167852008-02-16 Glenn Morris <rgm@gnu.org>
16786
16787 * fontset.c (Finternal_char_font): Fix compilation warning.
16788
167892008-02-16 Eli Zaretskii <eliz@gnu.org>
16790
16791 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16792 instead of char arrays. Enlarge the size of array passed to
16793 get_token_information.
16794
16795 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16796 warnings.
16797
167982008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16799
16800 * .gdbinit: Don't set `args', it breaks gdb --args.
16801
168022008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16803
16804 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16805 within a narrowed buffer.
16806
168072008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16808
16809 * coding.c (decode_coding_object, encode_coding_object):
16810 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16811
168122008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16813
16814 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16815 hardcoding 1.
16816 (detect_coding_system):
16817 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16818 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16819 * insdel.c (insert_from_gap):
16820 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16821 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16822 (string_to_multibyte):
16823 * character.c (chars_in_text, multibyte_chars_in_text):
16824 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16825
16826 * character.h (FETCH_STRING_CHAR_ADVANCE)
16827 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16828 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16829 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16830
16831 * casefiddle.c (casify_region): Only call after-change and composition
16832 functions on the part of the region that was changed.
16833
16834 * keyboard.c (read_avail_input):
16835 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16836
168372008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16838
16839 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16840 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16841
168422008-02-11 Juanma Barranquero <lekktu@gmail.com>
16843
16844 * w32menu.c (push_submenu_start, push_submenu_end)
16845 (push_left_right_boundary, push_menu_pane, push_menu_item):
16846 * keyboard.c (read_key_sequence): Don't pass args with side effects
16847 to AREF, it fails when compiling with -DENABLE_CHECKING.
16848
168492008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16850
16851 * Makefile.in (${lispsource}international/charprop.el):
16852 Delete this target.
16853
16854 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16855 emacs-unicode-2.
16856
168572008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16858
16859 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16860
168612008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16862
16863 * frame.c (Qnoelisp): New symbol.
16864 (syms_of_frame): Initialize it.
16865 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16866 harmless Elisp code, from a strong `force' from x_connection_closed.
16867 * frame.h (Qnoelisp): Declare.
16868 * xterm.c (x_connection_closed): Pass `noelisp'.
16869
16870 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16871 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16872 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16873 rather than `int' for the type of `type'.
16874
168752008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16876
16877 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16878
16879 * Makefile.in (GNUC): Remove support for gcc-1.x.
16880
168812008-02-10 Richard Stallman <rms@gnu.org>
16882
16883 * lisp.h (ASET): Use AREF, not ASLOT.
16884
168852008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16886
16887 * lisp.h (ASET): Check bounds.
16888
168892008-02-10 Glenn Morris <rgm@gnu.org>
16890
16891 * buffer.c (mode-name): Doc fix.
16892
168932008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16894
16895 * Makefile.in:
16896 * emacs.c:
16897 * gmalloc.c:
16898 * keyboard.c:
16899 * lisp.h:
16900 * m/ibm370aix.h:
16901 * process.c:
16902 * regex.c:
16903 * s/hpux.h:
16904 * sysdep.c:
16905 * sysselect.h:
16906 * systty.h:
16907 * unexec.c:
16908 * w32term.c:
16909 * xsmfns.c:
16910 * xterm.c: Remove code that deals with obsolete variables.
16911
16912 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16913
16914 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16915 nothing else needs it anymore.
16916
169172008-02-09 Eli Zaretskii <eliz@gnu.org>
16918
16919 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16920 instead of unibyte_char_to_multibyte.
16921
169222008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16923
16924 * s/gnu-linux.h: Remove commented out code.
16925
16926 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16927
16928 * Makefile.in: Update what RMS says about using autoconf.
16929 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16930 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16931 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16932 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16933
169342008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16935
16936 * keymap.c (Fkey_description): Move side effect outside of macro call.
16937
16938 * xfaces.c (Finternal_make_lisp_face):
16939 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16940
16941 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16942 (syms_of_fontset): Use ASET.
16943
16944 * fns.c (concat): Move side effect outside of macro call.
16945 (hash_clear): Use ASET.
16946
169472008-02-08 Richard Stallman <rms@gnu.org>
16948
16949 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16950 If FORCE, and frame has a surrogate minibuffer for another frame,
16951 delete the other frame first.
16952
169532008-02-07 Timo Savola <timo.savola@iki.fi>
16954
16955 * xterm.c (x_detect_focus_change): Handle embed client message.
16956 (handle_one_xevent): Ditto.
16957 (handle_one_xevent): If embedded and we get a button press/release,
16958 request focus.
16959 (xembed_set_info, xembed_send_message): New functions.
16960 (x_make_frame_visible): Call xembed_set_info if embedded.
16961 (x_make_frame_invisible): Call xembed_set_info if embedded.
16962 (x_term_init): Initialize Xatom_XEMBED.
16963 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16964 (x_iconify_frame): Ditto.
16965
16966 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16967 (enum xembed_info, enum xembed_message, enum xembed_focus)
16968 (enum xembed_modifier, enum xembed_accelerator): New.
16969 (xembed_set_info, xembed_send_message): Declare.
16970 (FRAME_X_EMBEDDED_P): New.
16971
16972 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16973 gtk_plug_new.
16974
16975 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16976 window ID of a frame.
16977 (x_window): Reparent frame if embedded.
16978 (Fx_create_frame): Don't set border width if embedded.
16979
16980 * emacs.c (USAGE3): Add --parent-id.
16981 (standard_args): Ditto.
16982
169832008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16984
16985 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16986
169872008-02-07 Jim Meyering <meyering@redhat.com>
16988
16989 Use "do...while (0)", not "if (1)...else" in macro definitions.
16990 The latter provokes a warning from gcc about the empty else, when
16991 followed by ";". Also, without that trailing semicolon, it would
16992 silently swallow up any following statement.
16993 * syntax.h (SETUP_SYNTAX_TABLE)
16994 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16995 * buffer.h (DECODE_POSITION): Likewise.
16996 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16997 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16998 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16999 (FETCH_CHAR_ADVANCE): Likewise.
17000 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
17001
170022008-02-07 Jim Meyering <meyering@redhat.com>
17003
17004 * lread.c [lint]: Don't include <sys/inode.h>.
17005
170062008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17007
17008 * xselect.c (x_handle_dnd_message):
17009 * xmenu.c (digest_single_submenu, xmenu_show):
17010 * xdisp.c (with_echo_area_buffer_unwind_data)
17011 (format_mode_line_unwind_data, unwind_format_mode_line)
17012 (display_menu_bar):
17013 * eval.c (Ffetch_bytecode):
17014 * doc.c (store_function_docstring):
17015 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17016 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17017 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17018
170192008-02-07 Kenichi Handa <handa@m17n.org>
17020
17021 * ftxfont.c (ftxfont_open): Don't set
17022 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17023
17024 * ftfont.c (ftfont_open): Fix previous change.
17025
170262008-02-06 Jason Rumney <jasonr@gnu.org>
17027
17028 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17029 Use cached metrics for ASCII characters.
17030 (w32font_open_internal): Don't set font's owning_frame.
17031 Cache metrics for ASCII characters.
17032
17033 * w32font.h (struct w32font_info): Add ascii_metrics.
17034 Remove owning_frame.
17035
170362008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17037
17038 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17039 to negative value.
17040
17041 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17042
17043 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17044
17045 * charset.c (syms_of_charset): Set QCtest and Qeq.
17046
170472008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17048
17049 * process.c (Fstart_process):
17050 * callproc.c (Fcall_process): Handle the case where
17051 Funhandled_file_name_directory returns nil.
17052
17053 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17054 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17055 * font.c (check_gstring): Use them and AREF to access the vector before
17056 we know it's really a gstring.
17057 (Ffont_shape_text): Fix typo.
46e722a9 17058 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17059
17060 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17061 Declare.
17062
17063 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17064
170652008-02-05 Jason Rumney <jasonr@gnu.org>
17066
17067 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17068 Set smallest_font_height and smallest_char_width in display info.
17069
170702008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17071
17072 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17073
170742008-02-05 Miles Bader <miles@gnu.org>
17075
17076 * xfaces.c (get_lface_attributes, merge_named_face)
17077 (lookup_named_face, lookup_derived_face, realize_named_face):
17078 Revert 2008-02-01 change by cyd@stupidchicken.com.
17079
170802008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17081
17082 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17083 fallback fonts.
17084 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17085
170862008-02-04 Jason Rumney <jasonr@gnu.org>
17087
17088 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17089 set full_name.
17090 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17091
170922008-02-03 Jason Rumney <jasonr@gnu.org>
17093
17094 * makefile.w32-in (OBJ1): Include font.o here.
17095 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17096
170972008-02-02 Jason Rumney <jasonr@gnu.org>
17098
17099 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17100
171012008-02-01 Jason Rumney <jasonr@gnu.org>
17102
17103 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17104
17105 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17106
171072008-02-01 Andreas Schwab <schwab@suse.de>
17108
17109 * Makefile.in (shortlisp, lisp): Update for rename of
17110 ../lisp/language/myanmar.el.
17111
171122008-02-01 Chong Yidong <cyd@stupidchicken.com>
17113
17114 * xfaces.c (get_lface_attributes): Delete function.
17115 (merge_named_face, lookup_named_face, lookup_derived_face)
17116 (realize_named_face): Call lface_from_face_name directly, and use
17117 the fact that merge_face_vectors does not alter its FROM argument.
17118
171192008-02-01 Jason Rumney <jasonr@gnu.org>
17120
17121 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17122 input in the default locale. Handle non-Unicode multibyte input.
17123
171242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17125
17126 * fontset.c (reorder_font_vector): Exclude nil elements from the
17127 font group. Don't try multiple fonts.
17128 (fontset_font): Adjust for the above change.
17129 (Finternal_char_font): Return nil if the found font doesn't
17130 contain the character ch.
17131
17132 * Makefile.in (lisp, shortlisp): Add cham.el.
17133
171342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17135
17136 * font.h (FONTP): Make it return 1 also for a font-object.
17137
17138 * .gdbinit (xfontset): New function.
17139
17140 * font.c (font_find_for_lface): Check if the character C is
17141 supported or not only for the first font.
17142
17143 * fontset.c (reorder_font_vector): Fix typo.
17144 (fontset_find_font): Don't add a font-spec specifying a script.
17145 Use 0 (not Qt) for the indication of empty font-group. Change the
17146 format of RFONT-DEF. Return Qt if no font in the font-group
17147 support the character.
17148 (fontset_font): Adjust for the above change. If no font was
17149 found the character, remember that.
17150 (face_for_char): Adjust for the change of RFONT-DEF.
17151 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17152 no font for the target.
17153 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17154
171552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17156
17157 * font.c (font_load_for_face): Handle the case that the font in
17158 face->lface is a string.
17159
171602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17161
17162 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17163
171642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17165
17166 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17167 Fix previous change. If the frame is not on a window system,
17168 signal an error.
17169
171702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17171
17172 * coding.c (decode_coding_object, encode_coding_object): Adjust
17173 marker positions after conversion.
17174
17175 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17176
171772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17178
17179 * font.c (font_find_for_lface): Fix the handling of the return
17180 value of font_has_char.
17181 (Ffont_shape_text): Fix previous change.
17182
17183 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17184 (fontset_ref_and_range): Delete it.
17185 (fontset_find_font): Call char_table_ref_and_range instead of
17186 FONTSET_REF_AND_RANGE.
17187 (make_fontset): Don't setup font groups of Latin here.
17188 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17189 (new_fontset_from_font): Make the specified font the default for
17190 all Latin characters.
17191
171922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17193
17194 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17195 is on a window system before accessing the fontset of the frame.
17196
171972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17198
17199 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17200
17201 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17202 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17203
17204 * font.c (Ffont_shape_text): If the font driver doesn't have a
17205 shaper function, make zero-width glyphs to have at least one-pixel
17206 width. Fix setting of `to' field of glyphs.
17207
172082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17209
17210 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17211 glyphs.
17212
17213 * font.h (struct font_driver): Improve docstring of member `shape'.
17214
172152008-02-01 Kenichi Handa <handa@m17n.org>
17216
17217 * composite.c (syms_of_composite): Fix docstring of
17218 auto-composition-function.
17219
17220 * font.h (LGLYPH_SIZE): New macro.
17221
17222 * font.c (Ffont_fill_gstring): Stop filling when a character not
17223 supported by the font is found.
17224 (Ffont_shape_text): When a shape callback function returns nil,
17225 try at most two more times with larger gstring.
17226 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17227
17228 * xdisp.c (handle_auto_composed_prop): Change the argument to
17229 auto-composition-function.
17230
17231 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17232 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17233 Lispy glyph and store it in the lgstring.
17234
17235 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17236
17237 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17238
172392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17240
17241 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17242
17243 * fontset.c (Vfont_encoding_charset_alist): New variable.
17244 (syms_of_fontset): DEFVAR it.
17245 (reorder_font_vector, fontset_find_font): Optimize for the case of
17246 no need of reordering.
17247 (face_for_char): Map the charset property by
17248 Vfont_encoding_charset_alist.
17249
172502008-02-01 Jason Rumney <jasonr@gnu.org>
17251
17252 * w32font.c (logfonts_match): Don't check adstyle here.
17253 (font_matches_spec): Check here against physical font instead.
17254 (add_font_entity_to_list): Avoid some substitutions.
17255
17256 * font.c (font_parse_fcname): Default weight and slant to normal.
17257 (font_score): Prefer normal fonts if weight or slant unspecified.
17258 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17259 match freetype scores.
17260
172612008-02-01 Jason Rumney <jasonr@gnu.org>
17262
17263 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17264 font, as it may have been deleted.
17265 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17266 most common hyphenless variation.
17267 (logfonts_match): Check generic family.
17268 (font_matches_spec): Don't check generic family here.
17269 (fill_in_logfont): Set generic family based on adstyle.
17270
17271 * w32font.h (w32font_get_cache): Update declaration.
17272
172732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17274
17275 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17276
17277 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17278 If none of the new drivers are available, call font_update_drivers
17279 with the old drivers.
17280
17281 * w32font.c (w32font_get_cache): Adjust the argument type.
17282
17283 * xfont.c (xfont_get_cache): Adjust the argument type.
17284
17285 * font.h (struct font_driver): Change argument type of get_cache.
17286
17287 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17288
17289 * font.c (Ffont_get): Fix arguments to Fassoc.
17290 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17291 (font_clear_cache): New function.
17292 (font_list_entities, font_matching_entity): Use font_get_cache.
17293 (font_update_drivers): Call font_clear_cache when finishing a driver.
17294
17295 * fontset.c (fontset_find_font): Fix previous change.
17296
172972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17298
17299 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17300 dpyinfo->font_table.
17301 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17302 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17303
17304 * font.c (font_at): Handle the case that the arg C is negative.
17305 Handle the unibyte case.
17306 (Ffont_at): Call font_at with the arg C -1.
17307
17308 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17309 the position here, and call font_at with the arg C -1.
17310 Don't check the range of the existing composition at the point.
17311
173122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17313
17314 * fontset.c (fontset_add): New args charset_id and family.
17315 Change caller.
17316 (load_font_get_repertory, fontset_find_font): Assume that
17317 font_spec is always a font-spec object.
17318 (Fset_fontset_font): Always store a font-spec object in a fontset.
17319
17320 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17321 instead of get_property_and_range.
17322
173232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17324
17325 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17326 (xftfont_open): Don't keep locking face.
17327 (xftfont_close): Don't unlock face.
17328 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17329
17330 * fontset.c (fontset_find_font): Don't prefer a font of
17331 supplementary charset.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17336 script, langsys_tag to langsys, new member script.
17337 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17338 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17339 listing to the script specified in that property. Fix arg to
17340 OTF_check_features.
17341
173422008-02-01 Jason Rumney <jasonr@gnu.org>
17343
17344 * w32font.h: New file.
17345
17346 * w32font.c: Include it.
17347 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17348 (w32font_open): Set owning_frame.
17349 (w32font_text_extents): Use owning_frame.
17350 (struct font_callback_data): Add opentype_only field.
17351 (add_font_entity_to_list): Use it to filter fonts.
17352 Don't check against full name.
17353 (w32font_list_internal): New function.
17354 (w32font_list): Use it.
17355 (w32font_match_internal): New function.
17356 (w32font_match): Use it.
17357 (w32font_open_internal): New function.
17358 (w32font_open): Use it.
17359 (w32font_get_cache, w32font_close, w32font_has_char)
17360 (w32font_encode_char, w32font_text_extents, w32font_draw):
17361 Make non-static.
17362
17363 * makefile.w32-in (w32font.o): Depend on w32font.h.
17364
173652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17366
17367 * charset.c (Fdefine_charset_internal): Record a supplementary
17368 charset at the tail of Vcharset_order_list.
17369
17370 * font.c (Ffont_shape_text): Fix the return value.
17371
17372 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17373
17374 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17375
173762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17377
17378 * ftfont.c (struct OpenTypeSpec): New struct.
17379 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17380 (ftfont_get_open_type_spec): New function.
17381 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17382
17383 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17384
173852008-02-01 Jason Rumney <jasonr@gnu.org>
17386
17387 * w32font.c (add_font_entity_to_list): Compare only the beginning
17388 of full name.
17389
173902008-02-01 Kenichi Handa <handa@m17n.org>
17391
17392 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17393 Never return HANDLED_RECOMPUTE_PROPS.
17394
173952008-02-01 Kenichi Handa <handa@m17n.org>
17396
17397 * font.c (font_gstring_produce): Delete it.
17398
17399 * composite.h (COMPOSITION_METHOD):
17400 Handle COMPOSITION_WITH_GLYPH_STRING.
17401
174022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17403
17404 * xfont.c (Qx): Delete.
17405 (syms_of_xfont): Don't initialize Qx.
17406
17407 * composite.h (enum composition_method):
17408 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17409
174102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17411
17412 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17413 (choose_face_font): Accept new form of font-spec.
17414
17415 * frame.h (font_driver_list): Declare it unconditionally.
17416 (struct frame): Define members font_driver_list and font_data_list
17417 unconditionally.
17418
17419 * fontset.c: Include "font.h" unconditionally.
17420 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17421 (Fset_fontset_font): Accept a font-spec object.
17422
17423 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17424 PIXEL_SIZE part a wild card.
17425
17426 * dispextern.h (struct glyph_string): Define members clip and
17427 num_clips unconditionally.
17428 (struct face): Define members font_info and extra unconditionally.
17429
17430 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17431 ftfont_info only when HAVE_LIBOTF is defined.
17432
174332008-02-01 Andreas Schwab <schwab@suse.de>
17434
17435 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17436 and end.
17437
174382008-02-01 Jason Rumney <jasonr@gnu.org>
17439
17440 * w32font.c (w32font_driver): Add new fields.
17441
174422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17443
17444 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17445 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17446 (LIBES): Add @M17N_FLT_CFLAGS@.
17447
17448 * composite.c (compose_text): Don't treat the new style
17449 composition specially.
17450
17451 * emacs.c (main): Call syms_of_font unconditionally.
17452
17453 * font.h (FONT_ENTITY_NOT_LOADABLE)
17454 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17455 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17456 (struct font_driver): New member shape.
17457 (font_registry_charsets): Extern it.
17458 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17459 (font_otf_capability, font_drive_otf): Delete their externs.
17460
17461 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17462 (font_charset_alist, font_registry_charsets): Move from xfont.c
17463 and rename.
17464 (font_prop_validate_otf): New function.
17465 (font_property_table): Register it for QCotf.
17466 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17467 (font_drive_otf): Delete.
17468 (font_prepare_composition): New arg F. Adjust for the change of
17469 lispy gstring.
17470 (font_find_for_lface): New arg C.
17471 (font_load_for_face): Adjust for the change of font_find_for_lface.
17472 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17473 lispy gstring.
17474 (Ffont_shape_text): New function.
17475 (Fopen_font): If the font size is not given, use 12-pixel.
17476 (Ffont_at): New arg STRING.
17477 (syms_of_font): Initalize font_charset_alist.
17478 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17479 conditionally.
17480
17481 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17482 fonts of the same font-spec. Change the format of RFONT-DEF.
17483 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17484 Adjust for the change of RFONT-DEF.
17485 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17486
17487 * ftfont.h: New file.
17488
17489 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17490 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17491 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17492 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17493 font_otf_capability and font_drive_otf, set ftfont_shape.
17494 (ftfont_list): Adjust for the change of :otf property value.
17495 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17496 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17497 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17498 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17499 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17500 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17501
17502 * w32term.c (x_draw_composite_glyph_string_foreground):
17503 Adjust for the change of lispy gstring.
17504
17505 * xdisp.c (handle_composition_prop): Adjust for the change of
17506 lispy gstring. Call a function for auto-composition with the
17507 third arg it->window.
17508 (fill_composite_glyph_string): Adjust for the change of lispy string.
17509 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17510
17511 * xfaces.c (set_font_frame_param): Adjust for the change of
17512 font_find_for_lface.
17513
17514 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17515 (xfont_registry_charsets): Likewise. Change caller.
17516 (syms_of_xfont): Don't handle x_font_charset_alist.
17517
17518 * xftfont.c: Include "ftfont.h".
17519 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17520 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17521 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17522 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17523 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17524 Set xftfont_driver.shape to xftfont_shape.
17525
17526 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17527 the change of lispy gstring.
17528
175292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17530
17531 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17532
175332008-02-01 Jason Rumney <jasonr@gnu.org>
17534
17535 * w32font.c (w32font_draw): Fill background manually.
17536
175372008-02-01 Jason Rumney <jasonr@gnu.org>
17538
17539 * font.c (Qfontp): Remove unused symbol.
17540 (QCantialias): New symbol.
17541 (syms_of_font): Define it.
17542 (font_property_table): Set a validator for QCantialias.
17543
17544 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17545 Define if not already.
17546 (QCfamily): Share with xfaces.c.
17547 (Qstandard, Qsubpixel, Qnatural): New symbols.
17548 (syms_of_w32font): Define them. Don't define QCfamily here.
17549 (w32_antialias_type, lispy_antialias_type): New functions.
17550 (w32_enumfont_pattern_entity): New arg requested_font.
17551 Set antialias parameter if non-default was requested.
17552 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17553
175542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17555
17556 * lread.c (read1): Undo the previous change.
17557
175582008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17559
17560 * frame.c (Fdelete_frame): Call font_update_drivers only when
17561 USE_FONT_BACKEND is defined.
17562
175632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17564
17565 * font.h (struct font_bitmap): New member bits_per_pixel.
17566 (struct font_driver): New members start_for_frame and end_for_frame.
17567 (struct font_data_list): New struct.
17568 (font_put_frame_data, font_get_frame_data): Extern them.
17569
17570 * frame.h (struct frame): New member font_data_list.
17571
17572 * font.c (font_update_drivers): Call driver->start_for_frame and
17573 driver->end_for_frame at proper timings.
17574 (font_put_frame_data, font_get_frame_data): New functions.
17575 (Ffont_spec): Add usage in the docstring.
17576
17577 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17578 (Fdelete_frame): Call font_update_drivers.
17579
17580 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17581 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17582 (xftfont_get_xft_draw): New function.
17583 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17584 (xftfont_end_for_frame): New function.
17585 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17586
17587 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17588 Change argument. Cache GCs in the per-frame data.
17589 (struct ftxfont_frame_data): New struct.
17590 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17591 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17592 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17593 (ftxfont_end_for_frame): New function.
17594 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17595
17596 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17597
175982008-02-01 Kenichi Handa <handa@m17n.org>
17599
17600 * xselect.c (Vselection_coding_system)
17601 (Vnext_selection_coding_system): Delete them.
17602 (syms_of_xselect): Don't declare selection-coding-system and
17603 next-selection-coding-system. They are declared in select.el.
17604
176052008-02-01 Jason Rumney <jasonr@gnu.org>
17606
17607 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17608
17609 * w32fns.c: Include imm.h.
17610 (get_composition_string_fn, get_ime_context_fn): New optional
17611 system functions.
17612 (globals_of_w32fns): Load them from imm32.dll.
17613 (ignore_ime_char): New flag.
17614 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17615 WM_IME_ENDCOMPOSITION messages.
17616
17617 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17618 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17619
176202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17621
17622 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17623 (READCHAR_REPORT_MULTIBYTE): New macro.
17624 (readchar): New 2nd arg MULTIBYTE.
17625 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17626 Make symbol's name multibyte according to the multibyteness of the
17627 source.
17628
176292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17630
17631 * xfaces.c (face_for_overlay_string): Call lookup_face with
17632 correct arguments (fix of synching with the trunk).
17633
176342008-02-01 Kenichi Handa <handa@m17n.org>
17635
17636 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17637 (font_prop_validate_non_neg, font_prop_validate_spacing):
17638 Delete argument prop_index.
17639 (font_property_table): Change arguments to validater. Change Callers.
17640 (font_lispy_object): Delete.
17641 (font_at): Use font_find_object instead fo font_lispy_object.
17642
176432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17644
17645 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17646 and file names.
17647
176482008-02-01 Jason Rumney <jasonr@gnu.org>
17649
17650 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17651 (font_matches_spec): Remove debug output.
17652 (add_font_entity_to_list): Avoid using substituted fonts.
17653
176542008-02-01 Jason Rumney <jasonr@gnu.org>
17655
17656 * doc.c (Fsnarf_documentation):
17657 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17658
176592008-02-01 Miles Bader <miles@gnu.org>
17660
17661 * dispextern.h (struct glyph_row): Only define "clip" field if
17662 HAVE_WINDOW_SYSTEM is defined.
17663
176642008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17665
17666 Fix up multi-tty merge.
17667
17668 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17669 and indentation.
17670
17671 * xfaces.c (free_realized_face, clear_face_gcs):
17672 Include font_done_for_face in the input_blocked section, just in case.
17673
17674 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17675 (get_char_face_and_encoding): Undo last change and remove the *other*
17676 duplicate definition (i.e. keep the one that's better scoped and that
17677 includes code for the font-backend).
17678
17679 * terminal.c (create_terminal): Default keyboard_coding to
17680 `no-conversion' and terminal_coding to `undecided'.
17681
17682 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17683
17684 * fontset.c (free_realized_fontsets): Check that the table entry does
17685 contain a fontset before trying to compare it to `base'.
17686
17687 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17688 syms_of_charset, and syms_of_coding earlier because init_window_once
17689 now needs Vcoding_system_hash_table to be setup.
17690
17691 * coding.h (default_buffer_file_coding): Remove.
17692
17693 * coding.c (default_buffer_file_coding): Remove.
17694 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17695 than ->symbol, and use the terminal-local coding system.
17696 (syms_of_coding): Don't setup the coding-systems that are not
17697 terminal-local.
17698 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17699
17700 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17701 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17702
17703 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17704 in chartab.c and were re-added here by mistake.
17705 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17706
17707 * doc.c (Fsnarf_documentation):
17708 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17709 src to etc.
17710
17711 * ChangeLog.10: Add mistakenly removed entry.
17712
177132008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17714
17715 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17716
177172008-02-01 Miles Bader <miles@gnu.org>
17718
17719 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17720 Add extra args to FACE_FOR_CHAR.
17721
177222008-02-01 Kenichi Handa <handa@m17n.org>
17723
17724 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17725 in sequence.
17726
17727 * chartab.c (map_sub_char_table, map_char_table): If the range
17728 contains just one character, call the function with that character
17729 even if the depth is not 3.
17730
177312008-02-01 Jason Rumney <jasonr@gnu.org>
17732
17733 * w32font.c (w32font_text_extents): Calculate metrics for the
17734 whole string.
17735
177362008-02-01 Jason Rumney <jasonr@gnu.org>
17737
17738 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17739
177402008-02-01 Jason Rumney <jasonr@gnu.org>
17741
17742 * w32term.c (x_set_glyph_string_clipping): Use
17743 get_glyph_string_clip_rects.
17744 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17745 Adjust for the change of struct glyph_string.
17746
17747 * w32font.c (w32font_draw): Do clipping here.
17748
177492008-02-01 Kenichi Handa <handa@m17n.org>
17750
17751 * xftfont.c (xftfont_draw): Adjust for the change of struct
17752 glyph_string.
17753
17754 * xterm.c (x_set_glyph_string_clipping): Use
17755 get_glyph_string_clip_rects.
17756 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17757 Adjust for the change of struct glyph_string.
17758
17759 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17760 the resulting clip(s}.
17761 (expose_overlaps): Add arg r. Change callers. Set it to
17762 row->clip temporarily.
17763 (expose_window): Redraw rows overlapping the exposed area.
17764
17765 * dispextern.h (struct glyph_row): New member clip.
17766 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17767 clip_height, new member clip, and num_clips.
17768
177692008-02-01 Kenichi Handa <handa@m17n.org>
17770
17771 * data.c (Fchar_or_string_p): Fix docstring.
17772
177732008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17776 create a temporary XftDraw object.
17777
177782008-02-01 Kenichi Handa <handa@m17n.org>
17779
17780 * font.c (Ffontp): Fix docstring.
17781
17782 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17783 strong evidence of ISO-2022.
17784
177852008-02-01 Kenichi Handa <handa@m17n.org>
17786
17787 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17788 SYNTAX_ENTRY_FOLLOW_PARENT.
17789
177902008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17791
17792 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17793 its type.
17794 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17795 Update to the new type of weak_hash_tables and next_weak.
17796
17797 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17798 a plain C pointer to Lisp_Hash_Table.
17799
17800 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17801 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17802 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17803 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17804 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17805 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17806 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17807 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17808 (GC_EQ): Remove since they've been identical to their non-GC_
17809 alter-egos ever since the markbit was eradicated.
17810
17811 * alloc.c:
17812 * buffer.c:
17813 * buffer.h:
17814 * data.c:
17815 * fileio.c:
17816 * filelock.c:
17817 * fns.c:
17818 * frame.h:
17819 * lisp.h:
17820 * macterm.c:
17821 * print.c:
17822 * process.c:
17823 * w32fns.c:
17824 * w32menu.c:
17825 * w32term.c:
17826 * xfns.c:
17827 * xmenu.c:
17828 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17829
178302008-02-01 Kenichi Handa <handa@m17n.org>
17831
17832 * chartab.c (map_sub_char_table): Make it work for the top-level
17833 char-table. Fix handling of parent char-table.
17834 (map_char_table): Adjust for the above change.
17835
178362008-02-01 Jason Rumney <jasonr@gnu.org>
17837
17838 * w32font.c (Qgdi): Rename from Qw32.
17839
178402008-02-01 Jason Rumney <jasonr@gnu.org>
17841
17842 * w32bdf.c (get_quoted_string): Make function static.
17843
178442008-02-01 Kenichi Handa <handa@m17n.org>
17845
17846 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17847 bigger ascent and descent than those of the font, use them as
17848 font's ascent and descent.
17849
178502008-02-01 Kenichi Handa <handa@m17n.org>
17851
17852 * Makefile.in (${lispsource}international/charprop.el): Move this
17853 target within "#ifdef HAVE_UNIDATA" and "#endif".
17854
178552008-02-01 Kenichi Handa <handa@m17n.org>
17856
17857 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17858 (shortlisp): Add ../lisp/language/tai-viet.el.
17859
178602008-02-01 Ulrich Mueller <ulm@gentoo.org>
17861
17862 * Makefile.in (${lispsource}international/charprop.el): Depend on
17863 temacs${EXEEXT}.
17864
178652008-02-01 Jason Rumney <jasonr@gnu.org>
17866
17867 * w32font.c (w32font_close): Delete the GDI font object.
17868
17869 * w32menu.c: Include character.h.
17870
17871 * w32proc.c: Likewise.
17872
17873 * w32select.c: Likewise.
17874
17875 * makefile.w32-in (w32proc.o): Depend on character.h.
17876
178772008-02-01 Jason Rumney <jasonr@gnu.org>
17878
17879 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17880
17881 * w32menu.c (syms_of_w32menu): Likewise.
17882
17883 * w32proc.c (syms_of_ntproc): Likewise.
17884
17885 * w32select.c (syms_of_w32select): Likewise.
17886
17887 * w32term.c (syms_of_w32term): Likewise.
17888
178892008-02-01 Jason Rumney <jasonr@gnu.org>
17890
17891 * w32font.c (w32font_draw): Delete brush after using it.
17892
178932008-02-01 Jason Rumney <jasonr@gnu.org>
17894
17895 * w32font.c (w32font_open): Don't set font_idx.
17896 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17897 to font settings.
17898 (w32font_draw): Fill background explicitly.
17899
179002008-02-01 Jason Rumney <jasonr@gnu.org>
17901
17902 * w32term.c (w32_initialize): Don't call w32font_initialize.
17903
17904 * w32font.c (w32font_info): Remove subranges.
17905 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17906 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17907 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17908 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17909 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17910 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17911 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17912 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17913 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17914 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17915 New symbols.
17916 (font_callback_data): New struct.
17917 (w32font_list, w32font_match): Use it.
17918 (w32font_open): Don't populate subranges.
17919 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17920 (w32font_encode_char): Always return unicode code-point as-is.
17921 (w32font_text_extents): Supply a transformation matrix to
17922 GetGlyphOutline. Never look up by glyph index. Avoid looping
17923 twice. Use unicode version of GetTexExtentPoint32 instead of
17924 glyph index version.
17925 (set_fonts_frame): Remove.
17926 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17927 set frame parameter. Use backward compatible fake foundries.
17928 Save generic family in extra slot under QCfamily. Make width slot
17929 constant. Save QCspacing value. Save list of scripts instead of
17930 binary subranges.
17931 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17932 (add_font_entity_to_list): Use font_callback_data struct. Filter
17933 unwanted fonts.
17934 (add_one_font_entity_to_list): Use font_callback_data struct.
17935 (w32_registry): Default to iso10646_1.
17936 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17937 string font registries. Don't fill in font name if it is a generic
17938 family name, fill family instead. Use spacing, family and script
17939 extra info to fill pitch, family and charset fields.
17940 (list_all_matching_fonts): Use font_callback_data struct.
17941 (unicode_range_for_char): Remove.
17942 (font_supported_scripts): New function.
17943 (w32font_initialize): Remove.
17944 (syms_of_w32font): Update which symbols are defined.
17945
179462008-02-01 Jason Rumney <jasonr@gnu.org>
17947
17948 * font.c (font_pixel_size): Reverse assq_no_quit args.
17949
17950 * w32term.h (FONT_WIDTH): Report max width, not average.
17951 (FONT_MAX_WIDTH): Remove.
17952 (FONT_AVG_WIDTH): New macro.
17953
17954 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17955 redefinition of FONT_WIDTH.
17956
17957 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17958 (w32_cache_char_metrics): Use FONT_WIDTH.
17959
17960 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17961
179622008-02-01 Jason Rumney <jasonr@gnu.org>
17963
17964 * w32font.c (w32font_open): Make lfHeight negative.
17965
17966 * w32fns.c (x_default_font_parameter): Use new style font name.
17967 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17968
179692008-02-01 Jason Rumney <jasonr@gnu.org>
17970
17971 * w32font.c (QCsubranges): New symbol.
17972 (w32font_open, w32font_has_char): Get subranges from subproperty
17973 of extra.
17974 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17975 (syms_of_w32font): Define :subranges symbol.
17976
17977 * font.c (font_put_extra): Expose externally.
17978
17979 * font.h (font_put_extra): Move declaration from font.c.
17980
17981 * font.c (Ffont_get): Use font driver to determine otf capability.
17982 (adjust_anchor): Check if driver defines anchor_point before using.
17983
17984 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17985 (w32font_draw): Use options.
17986 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17987 Fix detection of truetype fonts.
17988 (registry_to_w32_charset): Handle charsets other than iso8859-1
17989 expressed as lisp symbols.
17990 (w32_registry): Express charset as lisp symbol.
17991 (fill_in_logfont): Reverse pixel and point height logic.
17992 Don't set width here. Set quality to default.
17993
17994 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17995 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17996
17997 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17998 Remove redundant loop and allocation.
17999
18000 * makefile.w32-in (font.o, w32font.o): New objects.
18001 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
18002 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
18003
18004 * xdisp.c (fill_composite_glyph_string): Make the first arg to
18005 STORE_XCHARB a valid l-value.
18006
18007 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18008 calculations for non-Truetype fonts.
18009 (x_draw_glyph_string): Sync with xterm.c.
18010 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18011 Remove redundant code.
18012 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18013
18014 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18015 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18016
18017 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18018 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18019
18020 * w32font.c: New file for w32 font backend.
18021
180222008-02-01 Kenichi Handa <handa@m17n.org>
18023
18024 * term.c: Don't include "buffer.h" twice.
18025
180262008-02-01 Kenichi Handa <handa@m17n.org>
18027
18028 * character.c (Funibyte_string): New function.
18029 (syms_of_character): Defsubr it.
18030
180312008-02-01 Jason Rumney <jasonr@gnu.org>
18032
18033 * w32term.c [USE_FONT_BACKEND]:
18034 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18035 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18036 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18037 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18038 (x_free_frame_resources): Sync with xterm.c.
18039
180402008-02-01 Andreas Schwab <schwab@suse.de>
18041
18042 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18043 char-table size.
18044
180452008-02-01 Kenichi Handa <handa@m17n.org>
18046
18047 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18048
180492008-02-01 Kenichi Handa <handa@m17n.org>
18050
18051 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18052 font_otf_gpos, add font_drive_otf.
18053
18054 * fontset.c (fontset_find_font): Pay attention to font size
18055 specified for a font.
18056 (reorder_font_vector): Check contents of font_def.
18057
18058 * font.c (struct otf_list): Delete it.
18059 (otf_list): Make it a lisp variable.
18060 (otf_open): Use lispy otf_list.
18061 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18062 (check_otf_features): New function.
18063 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18064 New functions.
18065 (font_drive_otf): New function merging font_otf_gsub and
18066 font_otf_gpos.
18067 (font_open_for_lface): New arg spec. Change argument order.
18068 (font_load_for_face): Adjust for the change of font_open_for_lface.
18069 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18070 Ffont_otf_gpos.
18071 (syms_of_font): Staticpro otf_list. Delete defsubr of
18072 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18073
18074 * xfaces.c (set_font_frame_param): Adjust for the change of
18075 font_open_for_lface.
18076
18077 * font.h (font_open_for_lface): Adjust prototype.
18078 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18079 member otf_drive.
18080 (font_otf_gsub, font_otf_gpos): Delete externs.
18081 (font_drive_otf): Extern it.
18082
180832008-02-01 Kenichi Handa <handa@m17n.org>
18084
18085 * font.c (font_at): If the window W is not on a window system,
18086 return Qnil.
18087
18088 * coding.c (produce_chars, encode_coding): Don't call
18089 insert_from_gap if no characters to produce.
18090
180912008-02-01 Kenichi Handa <handa@m17n.org>
18092
18093 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18094 Fclear_face_cache.
18095
18096 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18097
180982008-02-01 Miles Bader <miles@gnu.org>
18099
18100 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18101 Parse "--disable-font-backend" option.
18102 (standard_args): Add "--disable-font-backend" option.
18103
181042008-02-01 Kenichi Handa <handa@m17n.org>
18105
18106 * fontset.c (fontset_find_font): New function.
18107 (fontset_font): Use fontset_find_font.
18108 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18109 Register the specified font for all Latin characters.
18110 (new_fontset_from_font): Register the specified font for all Latin
18111 characters.
18112 (dump_fontset): For a realized fontset, include the base fontset
18113 name in the returned vector.
18114
181152008-02-01 Kenichi Handa <handa@m17n.org>
18116
18117 * character.h (CHAR_STRING): Cast C to unsigned on calling
18118 char_string.
18119
18120 * character.c (char_string): Type of arg C changed to unsigned.
18121 Signal an error if C is an invalid character code.
18122
18123 * editfns.c (general_insert_function, Fchar_to_string):
18124 Use CHARACTERP, not INTEGERP.
18125
181262008-02-01 Kenichi Handa <handa@m17n.org>
18127
18128 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18129 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18130
18131 * regex.c (analyse_first): Fix for multibyte characters in "case
18132 charset:" and "case categoryspec:".
18133
181342008-02-01 Andreas Schwab <schwab@suse.de>
18135
18136 * Makefile.in (LIBES): Move standard libraries to the end.
18137
181382008-02-01 Kenichi Handa <handa@m17n.org>
18139
18140 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18141 nonzero, don't shrink the buffer nextb.
18142
18143 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18144
18145 * coding.c (coding_alloc_by_making_gap): New arg offset.
18146 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18147 offset.
18148 (decode_coding_iso_2022): Update coding->safe_charsets.
18149 (decode_coding_gap): Temporarily set
18150 current_buffer->text->inhibit_shrinking to 1.
18151
181522008-02-01 Kenichi Handa <handa@m17n.org>
18153
18154 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18155 indexing into elements of s->cmp and s->char2b.
18156
181572008-02-01 Juanma Barranquero <lekktu@gmail.com>
18158
18159 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18160
181612008-02-01 Kenichi Handa <handa@m17n.org>
18162
18163 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18164 target_multibyte instead of multibyte.
18165 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18166 (bcmp_translate): Change the argument name from multibyte to
18167 target_multibyte.
18168
181692008-02-01 Kenichi Handa <handa@m17n.org>
18170
18171 These changes are to compile a regexp into a pattern that can be
18172 used both for multibyte and unibyte targets.
18173
18174 * Makefile.in (search.o): Depend on charset.h.
18175
18176 * character.c (multibyte_char_to_unibyte_safe): New function.
18177
18178 * search.c: Include "charset.h".
18179 (compile_pattern_1): Delete argument multibyte. Don't set
18180 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18181 (compile_pattern): Don't compare cp->buf.target_multibyte.
18182 Compare cp->buf.charset_unibyte.
18183 (compile_pattern): Set cp->buf.target_multibyte.
18184
18185 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18186
18187 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18188
18189 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18190 multibyte. Change callers.
18191 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18192 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18193 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18194 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18195 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18196 (regex_compile): Make the compiled pattern usable both for
18197 multibyte and unibyte targets.
18198 (analyse_first): Make the fastmap usable both for multibyte and
18199 unibyte targets.
18200 (TRANSLATE_VIA_MULTIBYTE): Delete.
18201 (re_match_2_internal): Pay attention to the case that the
18202 multibyteness of bufp and target may be different.
18203
182042008-02-01 Kenichi Handa <handa@m17n.org>
18205
18206 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18207 empty box occupy at least one column width.
18208
182092008-02-01 Miles Bader <miles@gnu.org>
18210
18211 * Makefile.in: Remove redundant HAVE_XFT clause.
18212
182132008-02-01 Kenichi Handa <handa@m17n.org>
18214
18215 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18216
182172008-02-01 Kenichi Handa <handa@m17n.org>
18218
18219 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18220 being nil.
18221
182222008-02-01 Kenichi Handa <handa@m17n.org>
18223
18224 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18225
182262008-02-01 Kenichi Handa <handa@m17n.org>
18227
18228 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18229
182302008-02-01 Kenichi Handa <handa@m17n.org>
18231
18232 * search.c (simple_search): Fix previous change.
18233
182342008-02-01 Kenichi Handa <handa@m17n.org>
18235
18236 * xftfont.c (ftfont_font_format): Extern declaration.
18237
18238 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18239
18240 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18241 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18242
18243 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18244 (ftfont_font_format): Fix previous change.
18245
18246 * font.h (Ffont_xlfd_name): EXFUN it.
18247
18248 * font.c (font_parse_xlfd): Fix the array size of `f'.
18249 (register_font_driver): Use EQ to compare driver->type.
18250
18251 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18252 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18253 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18254
182552008-02-01 Kenichi Handa <handa@m17n.org>
18256
18257 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18258 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18259
182602008-02-01 Kenichi Handa <handa@m17n.org>
18261
18262 * xfont.c (xfont_open): Set font->format.
18263
18264 * xftfont.c (xftfont_open): Set font->format.
18265
18266 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18267 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18268 (ftfont_open): Set font->format.
18269 (ftfont_font_format): New function.
18270
18271 * font.h (struct font): New member format.
18272
18273 * font.c (Qopentype): New variable.
18274 (syms_of_font): Defsym it.
18275 (Fquery_font): Change the format of the last element of the return
18276 value.
18277
182782008-02-01 Kenichi Handa <handa@m17n.org>
18279
18280 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18281 last resort.
18282
182832008-02-01 Kenichi Handa <handa@m17n.org>
18284
18285 * coding.c (detect_coding_charset): Fix detection of multi-byte
18286 charset.
18287
182882008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18289
18290 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18291
182922008-02-01 Kenichi Handa <handa@m17n.org>
18293
18294 * xdisp.c (get_next_display_element): Set it->face_id for the
18295 first component of a composition.
18296 (x_produce_glyphs): Check if the font is changed or not for composition.
18297
182982008-02-01 Kenichi Handa <handa@m17n.org>
18299
18300 * fontset.c (Qlatin): New variable.
18301 (syms_of_fontset): Define it as a lisp symbol.
18302 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18303
183042008-02-01 Kenichi Handa <handa@m17n.org>
18305
18306 * font.c (font_unparse_fcname): Pay attention to the case that
18307 some of font property is a null string.
18308
183092008-02-01 Kenichi Handa <handa@m17n.org>
18310
18311 * term.c: Include "composite.h".
18312 (encode_terminal_code): Output all components of composition.
18313 Check the size of encode_terminal_src.
18314 (produce_glyphs): For composition, call produce_composite_glyph.
18315 (append_composite_glyph, produce_composite_glyph): New functions.
18316
18317 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18318 is not found, get font_info from the current ascii face.
18319
183202008-02-01 Kenichi Handa <handa@m17n.org>
18321
18322 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18323 buffer-file-name to Qnil before calling insert_from_buffer.
18324
18325 * font.c (font_unparse_fcname): Pay attention to the case that
18326 foundry is a null string.
18327
183282008-02-01 Kenichi Handa <handa@m17n.org>
18329
18330 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18331
18332 * font.c (Qunicode_sip): New variable.
18333 (syms_of_font): Declare it as a Lisp symbol.
18334
18335 * font.h (Qunicode_sip): Extern it.
18336
183372008-02-01 Kenichi Handa <handa@m17n.org>
18338
18339 * composite.c (get_composition_id): Pay attention to TAB component.
18340
18341 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18342 TAB. Adjust for the change of s->char2b which always points to
18343 the first element of allocated memory.
18344
18345 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18346
18347 * xdisp.c (handle_composition_prop): Set it->c to the first
18348 non-TAB component.
18349 (fill_composite_glyph_string): Change argument.
18350 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18351 (x_produce_glyphs): Fix handling of left/right padding.
18352
183532008-02-01 Kenichi Handa <handa@m17n.org>
18354
18355 * coding.c (detect_coding_system): Fix for handling off
18356 inhibit_iso_escape_detection. Fix for the case that no coding
18357 system is defined for a specific coding category.
18358
183592008-02-01 Kenichi Handa <handa@m17n.org>
18360
18361 * font.c (font_matching_entity): Delete unused local var.
18362
18363 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18364 opening a font.
18365
18366 * fileio.c (Finsert_file_contents): On recovering a file, assume
18367 Unix-like eol.
18368 (choose_write_coding_system): On auto-saving a file, force
18369 Unix-like eol.
18370
18371 * coding.c (setup_coding_system): Fix setting of
18372 coding->common_flags based on eol_type.
18373 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18374 inherit from it.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * alloc.c (NSTATICS): Increas to 0x600.
18379
183802008-02-01 Kenichi Handa <handa@m17n.org>
18381
18382 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18383 (ftfont_list): Don't check :name property.
18384 (ftfont_match): New function.
18385 (ftfont_pattern_entity): If the pattern doesn't contain
18386 FC_SPACING, don't assume FC_MONO.
18387
18388 * font.h (struct font_driver): New member `match'.
18389 (font_update_drivers): Adjust prototype.
18390
18391 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18392 property of FONT.
18393 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18394 them unconditionally.
18395 (font_matching_entity): New function.
18396 (font_open_by_name): Try font_matching_entity if exact match is
18397 not found.
18398 (font_update_drivers): Delete the arg FONT. Return a list of
18399 actually used backends. Don't free faces, font caches here.
18400 Don't store data in frame parameters. Don't call x_set_font.
18401 (Ffont_spec): Store :name property as is.
18402 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18403 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18404 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18405 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18406 Call font->driver->otf_gsub instead of font_otf_gsub.
18407
18408 * frame.c (x_set_font_backend): Do more works that were done in
18409 font_update_drivers before.
18410
18411 * xfont.c (xfont_match): New function.
18412 (xfont_driver): Set xfont_driver.match to xfont_match.
18413 (xfont_draw): Set font in GC if necessary.
18414
18415 * ftxfont.c (ftxfont_match): New function.
18416 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18417
18418 * xftfont.c (xftfont_match): New function.
18419 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * font.h (struct font): New member scalable.
18424 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18425 (font_otf_gsub): Adjust prototype.
18426
18427 * font.c (font_otf_capability): Fix handling of the default langsys.
18428 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18429 Check the contents of SPEC.
18430 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18431 (check_gstring): New function.
18432 (REPLACEMENT_CHARACTER): New macro.
18433 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18434 glyph codes of GSTRING.
18435 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18436 (font_prepare_composition): Set cmp->glyph_len.
18437 (font_open_entity): Set font->scalable.
18438 (Ffont_get): Handle :otf property.
18439 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18440 functions.
18441 (Fquery_font): Use font->font.full_name.
18442 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18443 Sfont_otf_alternates.
18444
18445 * ftfont.c (ftfont_open): Set font->font.full_name and
18446 font->font.name properly. Fix calculation of font->font.height
18447 and font->min_width.
18448
18449 * ftxfont.c (ftxfont_create_gcs): New function.
18450 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18451 (ftxfont_draw_backgrond): Fix filling region.
18452 (ftxfont_default_fid): New function.
18453 (ftxfont_open): Set xfont->fid to the return value of
18454 ftxfont_default_fid.
18455 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18456 (ftxfont_done_face): Free only GCs that are created by
18457 ftxfont_create_gcs.
18458 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18459
18460 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18461 Clip to src->width, etc (not src->clip_XXX).
18462
18463 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18464 FontBackend frame parameter.
18465
184662008-02-01 Kenichi Handa <handa@m17n.org>
18467
18468 * font.h (struct font_driver_list): New member `on'.
18469 (Fclear_font_cache): EXFUN it.
18470 (font_update_drivers): Extern it.
18471
18472 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18473 (font_list_entities): Check driver_list->on.
18474 (register_font_driver): Initalize `on' member to 0.
18475 (font_update_drivers): New function.
18476 (Fclear_font_cache): Check driver_list->on.
18477
18478 * frame.h (Qfont_backend): Extern it.
18479 (x_set_font_backend): Extern it.
18480
18481 * frame.c (Qfont_backend): New variable.
18482 (frame_parms): New element for font-backend.
18483 (x_set_font_backend): New function.
18484
18485 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18486 FontBackend frame parameter.
18487 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18488 x_set_font_backend.
18489
18490 * xfont.c (xfont_list): Don't try listing by :name property if the
18491 name is not for XLFD.
18492
184932008-02-01 Kenichi Handa <handa@m17n.org>
18494
18495 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18496 (LGLYPH_SET_TO): New macros.
18497 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18498 element of G is vector or not.
18499 (font_at): Extern it.
18500
18501 * font.c: Include window.h.
18502 (font_lispy_object): New function.
18503 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18504 end of valid glyph.
18505 (font_close_object): Fix getting (struct font *).
18506 (font_at): New function.
18507 (Ffont_get): If FONT is a font-object, get entity from it.
18508 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18509 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18510 range check.
18511 (Ffont_at): New function.
18512 (syms_of_font): Defsubr Sfont_at.
18513
18514 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18515 before the entry for Qcomposition.
18516 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18517 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18518 the font in gstring.
18519 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18520 LGLYPH_FORM (g) to detect the end of valid glyph.
18521 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18522 we are composing with gstring.
18523
18524 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18525 Check if adjustment is vector or not.
18526
18527 * Makefile.in (font.o): Make it depends on window.h.
18528
185292008-02-01 Kenichi Handa <handa@m17n.org>
18530
18531 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18532 adjustment is vector or not.
18533
185342008-02-01 Miles Bader <miles@gnu.org>
18535
18536 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18537
185382008-02-01 Kenichi Handa <handa@m17n.org>
18539
18540 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18541 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18542 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18543
18544 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18545 (DEVICE_DELTA): Fix typo.
18546 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18547 LGLYPH format.
18548
18549 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18550 the change of LGLYPH format.
18551
185522008-02-01 Kenichi Handa <handa@m17n.org>
18553
18554 * ftfont.c (ftfont_list): Fix typo.
18555 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18556
185572008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18558
18559 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18560
18561 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18562 xftface_info is non-NULL.
18563
185642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18565
18566 * ftfont.c (ftfont_list): Move misplaced #endif.
18567
185682008-02-01 Kenichi Handa <handa@m17n.org>
18569
18570 * ftfont.c (ftfont_list): Pay attention to the case that
18571 FC_CAPABILITY is not defined.
18572
185732008-02-01 Kenichi Handa <handa@m17n.org>
18574
18575 * xftfont.c (xftfont_open): Set charset related members to -1.
18576
18577 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18578 QCname.
18579 (ftfont_open): Set charset related members to -1.
18580
18581 * fontset.c (Votf_script_alist): New variable.
18582 (syms_of_fontset): Initialize it.
18583 (fontset_font): Delete unused variable.
18584
18585 * fontset.h (Votf_script_alist): Extern it.
18586
18587 * font.c (font_find_for_lface): Optimize code.
18588
18589 * font.h (font_close_object, font_merge_old_spec): Extern them.
18590
185912008-02-01 Kenichi Handa <handa@m17n.org>
18592
18593 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18594 (syms_of_font): Initialize them.
18595 (font_pixel_size): Allow float value in dpi.
18596 (font_prop_validate_type): Delete.
18597 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18598 Change caller.
18599 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18600 (font_prop_validate_extra): Delete.
18601 (font_prop_validate_spacing): New function.
18602 (font_property_table): Add elements for all known properties.
18603 (get_font_prop_index): Rename from check_font_prop_name. New
18604 argument FROM. Change caller.
18605 (font_prop_validate): Validate all known properties.
18606 (font_put_extra): Delete argument force. Change caller.
18607 (font_expand_wildcards): Make it static. Fix the way of shrinking
18608 the possible range.
18609 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18610 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18611 Change caller.
18612 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18613 (font_parse_fcname): Delete argument merge. Fix parsing of point
18614 size. Don't validate properties values here. Change caller.
18615 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18616 (font_open_by_name): Delete unused variable.
18617 (Ffont_spec): Likewise. Validate property values.
18618 (Ffont_match_p): New function.
18619
18620 * font.h (QCscalable): Extern it.
18621 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18622
18623 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18624
18625 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18626 (xfont_list_pattern): New function.
18627 (xfont_list): Use xfont_list_pattern.
18628
186292008-02-01 Kenichi Handa <handa@m17n.org>
18630
18631 * font.h (Flist_fonts): EXFUN it.
18632
186332008-02-01 Jason Rumney <jasonr@gnu.org>
18634
18635 * w32term.c (w32_initialize): Add back smoothing_type and
18636 smoothing_enabled definitions.
18637
186382008-02-01 Kenichi Handa <handa@m17n.org>
18639
18640 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18641 s->face->font on determining underline position.
18642
186432008-02-01 Kenichi Handa <handa@m17n.org>
18644
18645 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18646 (font_has_char): Accept font-object too.
18647 (font_find_for_lface): Try at first with a size specified in face.
18648
186492008-02-01 Kenichi Handa <handa@m17n.org>
18650
18651 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18652 font_open_by_name.
18653
186542008-02-01 Kenichi Handa <handa@m17n.org>
18655
18656 * font.h (QCspacing, QCdpi): Extern them.
18657 (enum font_spacing): New enum.
18658 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18659
18660 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18661 (QCspacing, QCdpi): New variables.
18662 (syms_of_font): Initialize them.
18663 (font_pixel_size): New function.
18664 (font_put_extra): New function.
18665 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18666 in FONT_EXTRA.
18667 (font_parse_fcname): Handle enumerated values (e.g. bold).
18668 Fix handling font size. Add QCname property that contains only
18669 unknown properties.
18670 (font_score): Change argument. Change caller. Pay attention to
18671 FONT_PIXEL_SIZE_QUANTUM.
18672 (font_sort_entites, font_list_entities, font_find_for_lface)
18673 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18674 (Ffont_spec): Add QCname property that contains only unknown properties.
18675
18676 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18677 include weight in listing pattern, instead check weight of each
18678 listed font. Don't include scalable in pattern. Pay attention to
18679 FONT_PIXEL_SIZE_QUANTUM.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * font.c (font_parse_fcname): Fix parsing of point-size.
18684 (font_unparse_fcname): Produce symbolic names for style properties.
18685 (font_list_entities): Handle float size correctly.
18686 (font_open_by_name): Prefer `normal' property values if the name
18687 doesn't specify them.
18688
18689 * fontset.c (Finternal_char_font): Use font_get_name, not
18690 Ffont_xlfd_name.
18691
18692 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18693 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18694 pattern. Don't force scalable.
18695
18696 * xftfont.c (xftfont_open): For generating a name, start from
18697 96-byte buffer.
18698
186992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18700
18701 * frame.h (x_new_fontset2): Fix prototype.
18702
187032008-02-01 Kenichi Handa <handa@m17n.org>
18704
18705 * font.h (struct font_driver): Delete member parse_name.
18706 (font_match_p, font_get_spec, font_parse_fcname)
18707 (font_unparse_fcname): Extern them.
18708 (font_get_name): Adjust prototype.
18709
18710 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18711 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18712 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18713 unnecessary checks for weight, slant, and swidth.
18714 (font_parse_fcname): New function.
18715 (font_unparse_fcname): New function.
18716 (font_parse_name): New function.
18717 (font_match_p): New function.
18718 (font_get_name): Change return value to Lisp string.
18719 (font_get_spec): New function.
18720 (Qunspecified, Qignore_defface): Don't extern them.
18721 (font_find_for_lface): Assume that LFACE is fully specified.
18722 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18723 object, use it for FACE.
18724 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18725 driver->parse_name.
18726 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18727
18728 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18729 prototype.
18730
18731 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18732 argument F. Don't call Fnew_fontset. Instead, directly call
18733 make_fontset.
18734
18735 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18736
18737 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18738 of x_new_fontset2.
18739
18740 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18741 (Qsans__serif): New variables.
18742 (ftfont_generic_family_list): New variable.
18743 (syms_of_ftfont): Initialize the above variables.
18744 (ftfont_pattern_entity): Delete argument NAME.
18745 (ftfont_list_generic_family): New function.
18746 (ftfont_parse_name): Delete this function.
18747 (ftfont_list): Try generic family only when FcFontList found no font.
18748 (ftfont_list_family): Fix args to FcObjectSetBuild.
18749
18750 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18751 object in attrs[LFACE_FONT_INDEX].
18752 (set_lface_from_font_name): Cancel all changes for font-backend.
18753 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18754 function.
18755 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18756 font object in QCfont attribute.
18757 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18758 (realize_default_face) [USE_FONT_BACKEND]: Call
18759 set_lface_from_font_and_fontset.
18760
18761 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18762 "fixed", and signal error here if no suitable font was found.
18763
18764 * xfont.c (xfont_parse_name): Delete this function.
18765
18766 * xftfont.c (xftfont_open): Change coding style of error
18767 handling. Generate fontconfig's fontname pattern.
18768
18769 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18770 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18771
18772 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18773 Both args FONTSET and FONT_OBJECT must be existing ones.
18774
187752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18776
18777 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18778
187792008-02-01 Kenichi Handa <handa@m17n.org>
18780
18781 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18782
18783 * font.h (struct font): Fix typo.
18784
18785 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18786 XLFD_XXX_INDEX.
18787 (enum xlfd_field_mask): New enum.
18788 (intern_font_field): Changed argument. Change caller. If digits
18789 are followed by non-digits, return a symbol.
18790 (font_expand_wildcards): New function.
18791 (font_parse_xlfd): Fix wildcard handling.
18792 (Ffont_spec): If :name is specified, reflect the info in the other
18793 properties.
18794
18795 * ftfont.c (ftfont_pattern_entity): Fix typo.
18796 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18797 locale.
18798
187992008-02-01 Kenichi Handa <handa@m17n.org>
18800
18801 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18802
18803 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18804 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18805 registry doesn't specify encoding part.
18806 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18807 (font_open_by_name): At first try parsing the name.
18808 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18809 as Lisp symbols.
18810
18811 * fontset.c (reorder_font_vector): Pay attention to the case that
18812 the 3rd element of font_def is nil.
18813 (fontset_font): For the default fontset, append one more fontset
18814 elements for a script-based font specification. Don't add script
18815 attribute on finding a font.
18816 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18817 font name.
18818 (fontset_ascii_font): If a font can't be opened, return nil.
18819
18820 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18821 (ftfont_pattern_entity): New function.
18822 (ftfont_get_cache): Assume that freetype_font_cache is already
18823 initialized.
18824 (ftfont_list): Handle the case that a file is specified in font
18825 name. Use ftfont_pattern_entity to generate entities.
18826 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18827 (syms_of_ftfont): Initialize freetype_font_cache.
18828
18829 * xftfont.c (xftfont_open): Make the font name fontconfig's
18830 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18831 (xftfont_close): Free font->font.name if not NULL.
18832
18833 * xfont.c (xfont_list): If script is specified for a font, return
18834 null_vector.
18835 (xfont_list_family): Declare argument type.
18836
18837 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18838 name, set LFACE_FONT (lface) to nil.
18839
18840 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18841 return Qnil.
18842
188432008-02-01 Kenichi Handa <handa@m17n.org>
18844
18845 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18846 (standard_args): Add "-enable-font-backend".
18847
188482008-02-01 Kenichi Handa <handa@m17n.org>
18849
18850 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18851 (struct xftdraw_list, xftdraw_list): Delete them.
18852 (register_xftdraw, check_xftdraw): Delete them.
18853 (xftfont_prepare_face): Don't call register_xftdraw.
18854 (xftfont_done_face): Don't call check_xftdraw.
18855 (xftfont_draw): Get background color only when with_background is
18856 nonzero.
18857
18858 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18859
188602008-02-01 Kenichi Handa <handa@m17n.org>
18861
18862 These changes are for the new font handling codes.
18863
18864 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18865 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18866 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18867 (FONTSRC, FONTOBJ): New variables.
18868 (obj): Add $(FONTOBJ).
18869 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18870 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18871 @LIBOTF_LIBS@.
18872 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18873 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18874
18875 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18876
18877 * character.h (Vscript_representative_chars): Extern it.
18878
18879 * character.c (Vscript_representative_chars): New variable.
18880 (syms_of_character): Declare it as a Lisp variable.
18881
18882 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18883 enable_font_backend is nonzero, accept the composition method
18884 COMPOSITION_WITH_GLYPH_STRING.
18885
18886 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18887 enumeration COMPOSITION_WITH_GLYPH_STRING.
18888
18889 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18890 members clip_x, clip_y, clip_width, and clip_height.
18891 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18892
18893 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18894 --enable-font-backend. Call syms_of_font.
18895
18896 * fns.c (assoc_no_quit): New function.
18897
18898 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18899 (face_for_font, new_fontset_from_font)
18900 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18901
18902 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18903 (fontset_font, fontset_ascii, face_for_char)
18904 (make_fontset_for_ascii_face, Ffont_info)
18905 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18906 is nonzero, use font-backend mechanism.
18907 (find_font_encoding): Make it non-static.
18908 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18909 New functions.
18910
18911 * frame.h (struct frame): New members resx and resy.
18912 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18913 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18914
18915 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18916 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18917
18918 * lisp.h (assoc_no_quit): Extern it.
18919
18920 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18921 Through out the file, use FONT_INFO_FROM_FACE instead of
18922 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18923 rif->per_char_metric.
18924 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18925 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18926 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18927 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18928 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18929 nonzero, use font-backend mechanism.
18930 (get_per_char_metric): New function.
18931
18932 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18933 (set_lface_from_font_name)
18934 (set_font_frame_param, free_realized_face)
18935 (prepare_face_for_display, clear_face_gcs)
18936 (Finternal_set_font_selection_order, realize_x_face)
18937 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18938 font-backend mechanism.
18939 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18940 (load_face_font) [USE_FONT_BACKEND]: Abort.
18941 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18942 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18943
18944 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18945 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18946 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18947 nonzero, register all available font drivers. Call
18948 x_default_font_parameter for deciding a font.
18949 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18950
18951 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18952 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18953 (x_set_glyph_string_clipping_exactly)
18954 (x_compute_glyph_string_overhangs)
18955 (x_draw_glyph_string_foreground)
18956 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18957 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18958 enable_font_backend is nonzero, use font-backend mechanism.
18959 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18960
189612008-02-01 Kenichi Handa <handa@m17n.org>
18962
18963 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18964 system_eol_type.
18965 (syms_of_coding): Initialize system_eol_type.
18966
18967 * process.c (Fset_process_coding_system): Inherit system's eol
18968 format if necessary.
18969
189702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18971
18972 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18973
189742008-02-01 Kenichi Handa <handa@m17n.org>
18975
18976 * coding.c (decode_eol): Pay attention to buffer relocation in
18977 del_range_2.
18978 (decode_coding): Call decode_eol before restoring undo_list.
18979
189802008-02-01 Kenichi Handa <handa@m17n.org>
18981
18982 * charset.c (Fdefine_charset_internal): Fix setting of
18983 emacs_mule_bytes.
18984
189852008-02-01 Kenichi Handa <handa@m17n.org>
18986
18987 * keyboard.c (read_char): Check if C is a character or not before
18988 looking up Vkeyboard_translate_table.
18989
189902008-02-01 Kenichi Handa <handa@m17n.org>
18991
18992 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18993 condition to terminate the loop.
18994
189952008-02-01 Kenichi Handa <handa@m17n.org>
18996
18997 * coding.c (produce_composition): Compare charbuf[i] instead of
18998 args[i] against 0.
18999 (Fterminal_coding_system): Use EQ to compare Lisp objects.
19000
190012008-02-01 Kenichi Handa <handa@m17n.org>
19002
19003 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
19004 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
19005 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
19006 detect_coding.
19007 (emacs_mule_char): Handle old style (Emacs 20) component character
19008 of a composition.
19009 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19010 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19011 composition rule.
19012 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19013
190142008-02-01 Kenichi Handa <handa@m17n.org>
19015
19016 * coding.c (encode_coding_ccl): Allocate destination dynamically
19017 when necessary.
19018
190192008-02-01 Kenichi Handa <handa@m17n.org>
19020
19021 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19022 the loop. When quitted, show a proper error message.
19023
190242008-02-01 Kenichi Handa <handa@m17n.org>
19025
19026 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19027 src->clip_head and src->clip_tail temporarily instead of src->hl.
19028
19029 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19030 character sequence.
19031 (Fccl_execute_on_string): Use ASET, not XSET.
19032
190332008-02-01 Kenichi Handa <handa@m17n.org>
19034
19035 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19036
190372008-02-01 Kenichi Handa <handa@m17n.org>
19038
19039 * coding.c (decode_coding): Fix the condition of terminating the
19040 decoding loop.
19041
190422008-02-01 Kenichi Handa <handa@m17n.org>
19043
19044 * data.c (Faset): On setting a character bigger than 255 in a
19045 unibyte string, signal an error instead of make the string multibyte.
19046
190472008-02-01 Kenichi Handa <handa@m17n.org>
19048
19049 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19050 made by a mapping table.
19051
190522008-02-01 Kenichi Handa <handa@m17n.org>
19053
19054 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19055 not.
19056 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19057 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19058
19059 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19060 s->face is NULL or not.
19061
190622008-02-01 Kenichi Handa <handa@m17n.org>
19063
19064 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19065 (x_draw_glyph_string): Fix drawing of right_overhang and
19066 left_overhang around/on cursor.
19067
19068 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19069
190702008-02-01 Kenichi Handa <handa@m17n.org>
19071
19072 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19073
190742008-02-01 Kenichi Handa <handa@m17n.org>
19075
19076 * coding.c (Fdefine_coding_system_internal)
19077 (Fdefine_coding_system_alias): Avoid a duplicated element in
19078 Vcoding_system_alist.
19079
190802008-02-01 Kenichi Handa <handa@m17n.org>
19081
19082 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19083
19084 * coding.c (Qcoding_system_define_form): New variable.
19085 (syms_of_coding): Intern and staticpro it.
19086 (Fcoding_system_p): Check Qcoding_system_define_form.
19087 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19088
19089 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19090 Fcoding_system_p.
19091 (CHECK_CODING_SYSTEM): If ID is not available, call
19092 Fcheck_coding_system.
19093 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19094 Try also Fcheck_coding_system.
19095
190962008-02-01 Kenichi Handa <handa@m17n.org>
19097
19098 * coding.c (code_conversion_restore): GCPRO arg.
19099
191002008-02-01 Kenichi Handa <handa@m17n.org>
19101
19102 * character.c (lisp_string_width): Check multibyteness of STRING.
19103
191042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19105
19106 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19107 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19108 (decode_mac_font_name): Use decode_coding_c_string instead of
19109 decode_coding.
19110 (x_load_font): Initialize fontp->fontset to -1. Set
19111 fontp->encoding_type.
19112
191132008-02-01 Kenichi Handa <handa@m17n.org>
19114
19115 * search.c (search_buffer): Give up BM search on case-fold-search
19116 if one of a target character has a case-equivalence of different
19117 byte length even if that target charcter is an ASCII.
19118 (simple_search): Fix calculation of byte length of matched text.
19119 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19120
191212008-02-01 Kenichi Handa <handa@m17n.org>
19122
19123 * coding.c (decode_coding): Fix handling of invalid bytes.
19124
191252008-02-01 Kenichi Handa <handa@m17n.org>
19126
19127 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19128 Unicode characters.
19129
191302008-02-01 Kenichi Handa <handa@m17n.org>
19131
19132 * coding.c (encode_coding_object): If a pre-write-conversion
19133 function makes a new buffer, kill it.
19134
191352008-02-01 Kenichi Handa <handa@m17n.org>
19136
19137 * coding.c (QCascii_compatible_p): New variable.
19138 (syms_of_coding): Initialize it.
19139 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19140 calling string_char.
19141 (record_conversion_result): Add `default:' case.
19142 (coding_charset_list): Delete unused variable `coding_type'.
19143 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19144 property in the plist of the coding system.
19145 (Fcoding_system_put): Check QCascii_compatible_p.
19146
191472008-02-01 Miles Bader <miles@gnu.org>
19148
19149 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19150 removed calculation of frame `f', as it's now used.
19151
191522008-02-01 Kenichi Handa <handa@m17n.org>
19153
19154 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19155 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19156 (UNIDATA): New variable.
19157 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19158 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19159 $(RUN_TEMACS) unconditionally.
19160
191612008-02-01 Kenichi Handa <handa@m17n.org>
19162
19163 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19164 (admindir): New variable.
19165 ($(lispsource)international/charprop.el): New target.
19166
191672008-02-01 Miles Bader <miles@gnu.org>
19168
19169 * character.c (chars-in-region): Remove obsolete function.
19170 (syms_of_character): Remove its initialization.
19171
191722008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19173
19174 * w32select.c (validate_coding_system)
19175 (setup_windows_coding_system): New functions.
19176 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19177 setup_windows_coding_system.
19178 (setup_config, Fw32_get_clipboard_data): Use
19179 validate_coding_system.
19180 (Fx_selection_exists): Move call to setup_config to a place
19181 where signals are allowed.
19182
19183 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19184 (Fcheck_coding_system): Add declarations.
19185
191862008-02-01 Kenichi Handa <handa@m17n.org>
19187
19188 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19189
191902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19191
19192 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19193 string as the second argument for x_new_fontset.
19194
191952008-02-01 Kenichi Handa <handa@m17n.org>
19196
19197 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19198 (encode_coding_object): Use safe_call instead of call2.
19199
192002008-02-01 Kenichi Handa <handa@m17n.org>
19201
19202 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19203
19204 * Makefile.in (lisp): Include charprop.el.
19205
192062008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19207
19208 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19209 Not sure if it's unnecessary.
19210
192112008-02-01 Steven Tamm <steventamm@mac.com>
19212
19213 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19214 some possibly unnecessary fontset checking code that crashed
19215 when creating a new frame.
19216
192172008-02-01 Kenichi Handa <handa@m17n.org>
19218
19219 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19220 lookup_face.
19221
19222 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19223
19224 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19229 (coding_charset_list): New function.
19230
19231 * coding.h (coding_charset_list): Extern it.
19232
192332008-02-01 Kenichi Handa <handa@m17n.org>
19234
19235 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19236 concatenation of family and registry.
19237
192382008-02-01 Kenichi Handa <handa@m17n.org>
19239
19240 * character.h (BYTE8_STRING): Fix typo.
19241
19242 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19243 string to multibyte (sync to HEAD).
19244
19245 * casefiddle.c (casify_region): Handle changes in byte-length
19246 using replace_range_2 (sync to HEAD).
19247
192482008-02-01 Andreas Schwab <schwab@suse.de>
19249
19250 * chartab.c (map_char_table): GCPRO table and arg.
19251
192522008-02-01 Kenichi Handa <handa@m17n.org>
19253
19254 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19255 already at limit.
19256
192572008-02-01 Kenichi Handa <handa@m17n.org>
19258
19259 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19260 instead of fast_c_string_match_ignore_case.
19261 (find_font_encoding): Change argument to Lisp_Object. Use
19262 fast_string_match_ignore_case instead of
19263 fast_c_string_match_ignore_case. Change caller.
19264
192652008-02-01 Kenichi Handa <handa@m17n.org>
19266
19267 * xdisp.c (get_next_display_element): In unibyte case, decide to
19268 display in octal form by checking a character by
19269 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19270
19271 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19272
19273 * character.c (unibyte_has_multibyte_table): New variable.
19274
19275 * character.h (unibyte_has_multibyte_table): Extern it.
19276 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19277
192782008-02-01 Kenichi Handa <handa@m17n.org>
19279
19280 * coding.c (encode_coding_iso_2022): Fix handling of charset
19281 annotation.
19282
192832008-02-01 Kenichi Handa <handa@m17n.org>
19284
19285 * coding.c (setup_coding_system): If coding_system is nil, use
19286 Qundecided.
19287 (Fterminal_coding_system): Return nil if terminal coding system is
19288 `undecided'.
19289 (syms_of_coding): Define coding-system `undecided' here. Setup
19290 terminal_coding as `undecided'.
19291
192922008-02-01 Kenichi Handa <handa@m17n.org>
19293
19294 * xdisp.c (message_dolog, set_message_1): Call
19295 unibyte_char_to_multibyte with arg type int.
19296
19297 * lread.c (read1): Fix reading of a char-table.
19298
19299 * print.c (print_object): Include sub char-table in circularities
19300 detection.
19301
193022008-02-01 Kenichi Handa <handa@m17n.org>
19303
19304 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19305 Append the found sequences in car of ARGS instead of prepending.
19306
193072008-02-01 Kenichi Handa <handa@m17n.org>
19308
19309 * fileio.c (report_file_error): Make a unibyte string from
19310 strerror (errorno).
19311 (Fsubstitute_in_file_name): Fix the arg to
19312 unibyte_char_to_multibyte. It is evaluated twice.
19313
193142008-02-01 Kenichi Handa <handa@m17n.org>
19315
19316 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19317
193182008-02-01 Kenichi Handa <handa@m17n.org>
19319
19320 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19321 BOM is not found.
19322 (detect_coding, detect_coding_system): Optimization for ISO-2022
19323 when no 8-bit data is found.
19324
193252008-02-01 Jason Rumney <jasonr@gnu.org>
19326
19327 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19328
193292008-02-01 Kenichi Handa <handa@m17n.org>
19330
19331 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19332 CHARS.
19333
193342008-02-01 Steven Tamm <steventamm@mac.com>
19335
19336 * macterm.c (mac_encode_char): Add charset argument and update
19337 to use encoding_type.
19338 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19339 switch to pure fontset.
19340 (decode_mac_font_name): Temporarily remove decoding.
19341 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19342 (x_load_font): Temporarily remove encoding.
19343
193442008-02-01 Kenichi Handa <handa@m17n.org>
19345
19346 * xfaces.c (Fface_font): If frame is not on a window system,
19347 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19348 refer to face->font.
19349 (split_font_name_into_vector, build_font_name_from_vector)
19350 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19351 when HAVE_WINDOW_SYSTEM is defined.
19352
193532008-02-01 Kenichi Handa <handa@m17n.org>
19354
19355 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19356 (x_produce_glyphs): Fix setting of members of cmp in case
19357 cmp->glyph_len is zero.
19358
19359 * fontset.c (Fset_fontset_font): Fix docstring.
19360 (Ffontset_info): Make it backward compatible. New arg ALL.
19361
193622008-02-01 Kim F. Storm <storm@cua.dk>
19363
19364 * process.c (read_process_output): Grow decoding_buf when needed;
19365 this could cause a crash in allocate_string and compact_small_strings.
19366
193672008-02-01 Kenichi Handa <handa@m17n.org>
19368
19369 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19370
193712008-02-01 Kenichi Handa <handa@m17n.org>
19372
19373 * coding.c (setup_coding_system): Set coding->common_flags
19374 correctly for raw-text.
19375 (consume_chars): On encoding unibyte text by raw-text, don't check
19376 multibyte form.
19377 (encode_coding): On encoding by raw-text, never use translation tables.
19378
19379 * fileio.c (e_write): Short cut for the case of no encoding.
19380
193812008-02-01 Kenichi Handa <handa@m17n.org>
19382
19383 * coding.c (detect_coding, detect_coding_system): Delete unused
19384 variables.
19385
193862008-02-01 Kenichi Handa <handa@m17n.org>
19387
19388 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19389 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19390
193912008-02-01 Kenichi Handa <handa@m17n.org>
19392
19393 * coding.c (Ffind_coding_systems_region_internal): Include
19394 raw-text and no-conversion in the result.
19395
193962008-02-01 Kenichi Handa <handa@m17n.org>
19397
19398 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19399 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19400 FONT_DEF.
19401 (font_def_arg, add_arg, from_arg, to_arg): New args.
19402 (set_fontset_font): Change argument.
19403 (Fset_fontset_font): Fix for the case that TARGET is a script
19404 name and charset name.
19405 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19406
194072008-02-01 Kenichi Handa <handa@m17n.org>
19408
19409 * fontset.c (fontset_font): Rename from fontset_face. Change return
19410 value.
19411 (face_suitable_for_char_p, face_for_char): Adjust for the change
19412 of fontset_font.
19413 (make_fontset_for_ascii_face): Fix setting of the fontset element
19414 for ASCII.
19415 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19416 to get a font name.
19417 (Ffontset_info): Adjust for the change of fontset_font.
19418
19419 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19420
19421 * character.h (LEADING_CODE_LATIN_1_MIN)
19422 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * editfns.c (check_translation): New function.
19427 (Ftranslate_region_internal): Handle M:N mapping.
19428
194292008-02-01 Kenichi Handa <handa@m17n.org>
19430
19431 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19432
194332008-02-01 Kenichi Handa <handa@m17n.org>
19434
19435 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19436 goto invalid_code.
19437 (decode_coding_iso_2022): Fix handling of invalid designation.
19438
19439 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19440 after calling code_conversion_save.
19441
194422008-02-01 Kenichi Handa <handa@m17n.org>
19443
19444 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19445
19446 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19447
19448 * fontset.c: Include "intervals.h".
19449 (fontset_face): Fix comparing of Lisp_Objects.
19450 (free_face_fontset, new_fontset_from_font_name): Fix
19451 Lisp_Object/int mixup.
19452
19453 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19454
19455 * coding.c: Add many prototypes for static functions.
19456 (get_translation_table): Allow max_lookup to be NULL.
19457 (decode_coding, Ffind_coding_systems_region_internal)
19458 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19459 get_translation_table with max_lookup NULL.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * coding.c (get_translation_table): Declare it as Lisp_Object.
19464 (LOOKUP_TRANSLATION_TABLE): New macro.
19465 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19466 instead of CHAR_TABLE_REF.
19467
194682008-02-01 Kenichi Handa <handa@m17n.org>
19469
19470 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19471 annotation data format.
19472 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19473 Change arguments FROM and TO to single argument NCHARS. Change caller.
19474 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19475 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19476 (decode_coding_ccl, decode_coding_charset): Pay attention to
19477 coding->charbuf_used.
19478 (get_translation): New function.
19479 (produce_chars): New arguments translation_table and last_block.
19480 Translate characters here. Return number of carryover chars.
19481 Change caller.
19482 (produce_composition): New argument pos. Change caller.
19483 Adjust for the change of annotation data format.
19484 (produce_charset, produce_annotation): Likewise.
19485 (decode_coding, encode_coding): Don't call translate_chars.
19486 (consume_chars): New arg translation_table. Change caller.
19487 (translate_chars): Delete.
19488 (syms_of_coding): Make translation-table's number of extra slots 2.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * search.c (simple_search): Fix setting this_pos_byte in backward
19493 search.
19494
19495 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19496 byte sequence.
19497 (detect_coding_ccl): Fix setting of the variable valids.
19498
194992008-02-01 Kenichi Handa <handa@m17n.org>
19500
19501 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19502
19503 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19504
19505 * editfns.c (Ftranslate_region_internal): Rename from
19506 Ftranslate_region. Accept a char-table in TABLE.
19507 (syms_of_editfns): Defsubr Stranslate_region_internal.
19508
19509 * xfaces.c (set_lface_from_font_name): If a font is specified for
19510 a frame, generate a fontset from the font.
19511 (build_scalable_font_name): If the scalable font is requested for
19512 a specific size, don't change that size.
19513 (try_font_list): Try a scalable font also in the case that a
19514 pattern string is specified.
19515
195162008-02-01 Kenichi Handa <handa@m17n.org>
19517
19518 * xfaces.c (Fface_font): New optional arg CHARACTER.
19519
195202008-02-01 Kenichi Handa <handa@m17n.org>
19521
19522 * charset.h (CHARSET_OFFSET): New macro.
19523
195242008-02-01 Kenichi Handa <handa@m17n.org>
19525
19526 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19527
19528 * fontset.c (fontset_face): Handle the case that repertory is a
19529 char-table.
19530 (find_font_encoding): Return nil for unknown encoding.
19531 (Fset_fontset_font): Ignore a font of unknown encoding.
19532
195332008-02-01 Kenichi Handa <handa@m17n.org>
19534
19535 * keymap.c (describe_vector): Handle default value of a char table.
19536
19537 * fontset.c (fontset_face): Handle fallback fonts correctly.
19538 (Ffontset_info): Return infomation about fallback fonts.
19539
195402008-02-01 Kenichi Handa <handa@m17n.org>
19541
19542 * fontset.c (FONTSET_DEFAULT): New macro.
19543 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19544 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19545 the case that it is nil.
19546 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19547 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19548
19549 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19550 subset or superset.
19551
195522008-02-01 Kenichi Handa <handa@m17n.org>
19553
19554 * emacs.c (main): Call init_charset after syms_of_XXX.
19555
19556 * charset.c (Vcharset_map_directory): Delete.
19557 (Vcharset_map_path): New variable.
19558 (load_charset_map_from_file): Use Vcharset_map_path instead.
19559 (init_charset): Initialize Vcharset_map_path.
19560 (syms_of_charset): Delete declaration of "charset-map-directory",
19561 add declaration of "charset-map-path".
19562
195632008-02-01 Kenichi Handa <handa@m17n.org>
19564
19565 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19566 ASCII only string.
19567
19568 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19569
19570 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19571 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19572
195732008-02-01 Kenichi Handa <handa@m17n.org>
19574
19575 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19576
19577 * coding.c (QCmnemonic, QCdefalut_char)
19578 (QCdecode_translation_table, QCencode_translation_table)
19579 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19580 (get_translation_table): Return a list of translation tables if
19581 necessary.
19582 (decode_coding): Call get_translation_table with ENCODEP 0.
19583 (char_encodable_p): If translation_table is non-nil, always call
19584 translate_char.
19585 (Fdefine_coding_system_internal): Accept list of translation
19586 tables as :encode-translation-table and :decode-translation-table.
19587 (Fcoding_system_put): New function.
19588 (syms_of_coding): Declare new symbols. Defsubr
19589 Scoding_system_put.
19590 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19591 typically JISX0212.
19592
19593 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19594 when the charset is superset type.
19595
19596 * character.c (translate_char): Accept list of translation tables.
19597
195982008-02-01 Kenichi Handa <handa@m17n.org>
19599
19600 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19601 (CODING_ATTR_TRANS_TBL): New macro.
19602
19603 * coding.c (get_translation_table): New function.
19604 (translate_chars): Fix the bug of skipping annotation data.
19605 (decode_coding, encode_coding): Utilize get_translation_table.
19606 (char_encodable_p, Funencodable_char_position): Translate char if
19607 necessary.
19608 (Ffind_coding_systems_region_internal)
19609 (Fcheck_coding_systems_region): Setup translation table for encode
19610 in a coding system attribute vector in advance.
19611 (Fdefine_coding_system_internal): Allow a symbol as translation
19612 table. For shift-jis type coding system, allow 4th charset.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19617
19618 * xdisp.c (get_next_display_element): Pass -1 as POS to
19619 FACE_FOR_CHAR if displaying a C-string.
19620
196212008-02-01 Kenichi Handa <handa@m17n.org>
19622
19623 * composite.c (get_composition_id): Handle xoff and yoff in a
19624 composition rule.
19625
19626 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19627 (struct composition): New member lbearing and rbearing.
19628
19629 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19630 (x_get_glyph_overhangs): Handle a composition glyph.
19631 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19632
19633 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19634 composition glyph.
19635
196362008-02-01 Kenichi Handa <handa@m17n.org>
19637
19638 * print.c: Include charset.h.
19639 (Vprint_charset_text_property): New variable.
19640 (Qdefault): Extern it.
19641 (PRINT_STRING_NON_CHARSET_FOUND)
19642 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19643 (print_check_string_result): New variable.
19644 (print_check_string_charset_prop): New function.
19645 (print_prune_charset_plist): New variable.
19646 (print_prune_string_charset): New function.
19647 (print_object): Call print_prune_string_charset if
19648 Vprint_charset_text_property is not t.
19649 (print_interval): Print nothing if interval->plist is nil.
19650 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19651 variable. Init and staticpro print_prune_charset_plist.
19652
196532008-02-01 Kenichi Handa <handa@m17n.org>
19654
19655 * fontset.c (new_fontset_from_font_name): Use the specified font
19656 for all characters in the new fontset.
19657
19658 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19659 OBJECT args.
19660
19661 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19662 OBJECT args for composition too.
19663
19664 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19665 OBJECT args.
19666
196672008-02-01 Kenichi Handa <handa@m17n.org>
19668
19669 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19670
19671 * fontset.c (reorder_font_vector): Adjust for the change of
19672 FONT_DEF format.
19673 (fontset_face): New arg id. Change caller.
19674 (face_for_char): New args pos and object.
19675 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19676 (fs_query_fontset): Check NAME by Fassoc too.
19677 (Fset_fontset_font): Allow non-XLFD font name.
19678 (Ffontset_info): Adjust for the change of FONT_DEF format.
19679
19680 * fontset.h (face_for_char): Adjust prototype.
19681
19682 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19683 (append_space, extend_face_to_end_of_line)
19684 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19685 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19686
19687 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19688 POS and OBJECT args.
19689
19690 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19691 POS and OBJECT args.
19692
196932008-02-01 Jason Rumney <jasonr@gnu.org>
19694
19695 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19696 of GlobalAlloc'ed memory.
19697
196982008-02-01 Kenichi Handa <handa@m17n.org>
19699
19700 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19701
19702 * charset.h (charset_table_used): Delete extern.
19703
19704 * charset.c (charset_table_used): Make it static.
19705 (map_charset_chars): Fix args to c_function with.
19706
19707 * chartab.c (map_sub_char_table_for_charset): Fix args to
19708 c_function with.
19709
19710 * coding.h (enum coding_result_code): Delete
19711 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19712
19713 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19714 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19715 (Vlast_code_conversion_error): New variables.
19716 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19717 (ONE_MORE_BYTE): Record error if any instead of signaling an
19718 error. If non-ASCII multibyte char is found, return the negative
19719 value of the code. All callers changed to check it.
19720 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19721 (record_conversion_result): New function. Change all codes setting
19722 coding->result to call this function.
19723 (detect_coding_utf_8, decode_coding_utf_8)
19724 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19725 Don't use the local variable incomplete.
19726 (emacs_mule_char): Change the second arg to `const'.
19727 (decode_coding): Fix of flushing out unprocessed data.
19728 (make_conversion_work_buffer): Fix making of a work buffer.
19729 (decode_coding_object): Return coding->dst_object.
19730
19731 * fontset.c (set_fontset_font): Fix args.
19732
19733 * lisp.h (CHARACTERBITS): Define as 22.
19734
19735 * process.c (send_process): Be sure to set coding->src_multibyte.
19736
19737 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19738
197392008-02-01 Kenichi Handa <handa@m17n.org>
19740
19741 * xdisp.c (handle_auto_composed_prop): Give limit to
19742 Fnext_single_char_property_change.
19743
197442008-02-01 Kenichi Handa <handa@m17n.org>
19745
19746 * composite.c (syms_of_composite): Don't make the composition hash
19747 table weak.
19748
19749 * fontset.c (Fset_fontset_font): Fix docstring.
19750
19751 * lisp.h (detect_coding_system): Adjust prototype.
19752
19753 * fileio.c (kill_workbuf_unwind): Delete this function.
19754 (Finsert_file_contents): Adjust the call of detect_coding_system.
19755 Get conversion_buffer by code_conversion_save. Use the macro
19756 CODING_MAY_REQUIRE_DECODING. After decoding, update
19757 coding_system.
19758
19759 * coding.h (make_conversion_work_buffer): Delete extern.
19760 (code_conversion_save): Extern it.
19761
19762 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19763 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19764 (decode_coding_utf_8): Don't do eol converion.
19765 (detect_coding_utf_16): Check coding->src_chars, not
19766 coding->src_bytes. Add heuristics for those that have no signature.
19767 (decode_coding_emacs_mule, decode_coding_iso_2022)
19768 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19769 Don't do eol converion.
19770 (adjust_coding_eol_type): Return a new coding system.
19771 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19772 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19773 each change.
19774 (decode_coding): Pay attention to undo_list. Do eol conversion for
19775 all types of coding-systems (if necessary).
19776 (Vcode_conversion_work_buf_list): Delete it.
19777 (Vcode_conversion_reused_workbuf): Rename from
19778 Vcode_conversion_reused_work_buf.
19779 (Vcode_conversion_workbuf_name): New variable.
19780 (reused_workbuf_in_use): New variable.
19781 (make_conversion_work_buffer): Delete the arg DEPTH.
19782 (code_conversion_restore): Change argument to cons.
19783 (code_conversion_save): Delete the argument BUFFER. Change callers.
19784 (detect_coding_system): New argument src_chars. Change callers.
19785 Fix for utf-16 detection.
19786 (init_coding_once): Don't use ISO_carriage_return.
19787 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19788 reused_workbuf_in_use.
19789
197902008-02-01 Kenichi Handa <handa@m17n.org>
19791
19792 * keymap.c (store_in_keymap): Pay attention to the case that idx
19793 is a cons specifying a character range.
19794
197952008-02-01 Kenichi Handa <handa@m17n.org>
19796
19797 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19798 HANDLED_RECOMPUTE_PROPS.
19799
19800 * coding.c (Fdefine_coding_system_internal): Fix checking of
19801 ascii compatibility.
19802
198032008-02-01 Kenichi Handa <handa@m17n.org>
19804
19805 * charset.c (find_charsets_in_text): Delete unused locale variable.
19806 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19807
19808 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19809 Resync charset_list to Vemacs_mule_charset_list.
19810
19811 * keymap.c (store_in_keymap): Pay attention to the case that idx
19812 is a cons specifying a character range.
19813
198142008-02-01 Kenichi Handa <handa@m17n.org>
19815
19816 * composite.c (update_compositions): Bind inhibit-read-only, etc
19817 to t before calling remove-list-of-text-properties.
19818
19819 * print.c (print_object): Always print ASCII chars as is.
19820
198212008-02-01 Kenichi Handa <handa@m17n.org>
19822
19823 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19824
19825 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19826 is a char table.
19827
198282008-02-01 Kenichi Handa <handa@m17n.org>
19829
19830 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19831
198322008-02-01 Kenichi Handa <handa@m17n.org>
19833
19834 * xfaces.c (set_lface_from_font_name): Fix for the case that
19835 FONTNAME is not fontset name.
19836
198372008-02-01 Kenichi Handa <handa@m17n.org>
19838
19839 * fns.c (base64_encode_1): Fix previous change.
19840
198412008-02-01 Kenichi Handa <handa@m17n.org>
19842
19843 * fontset.c (set_fontset_font): New function.
19844 (Fset_fontset_font): If a font is specified for a charset, use
19845 map_charset_chars to store the font spec in a fontset.
19846
198472008-02-01 Kenichi Handa <handa@m17n.org>
19848
19849 * fontset.c (fontset_face): Create a fallback fontset on demand.
19850 (make_fontset): Don't create a fallback fontset here.
19851 (free_face_fontset): Free a fallback fontset (if any) too.
19852 (n_auto_fontsets): Delete this variable.
19853 (auto_fontset_alist): New variable.
19854 (new_fontset_from_font_name): Check auto_fontset_alist.
19855 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19856 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19857 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19858 Defsubr Sfontset_list_all.
19859
198602008-02-01 Kenichi Handa <handa@m17n.org>
19861
19862 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19863
198642008-02-01 Kenichi Handa <handa@m17n.org>
19865
19866 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19867
198682008-02-01 Kenichi Handa <handa@m17n.org>
19869
19870 * editfns.c (Fgoto_char): Fix docstring.
19871
198722008-02-01 Kenichi Handa <handa@m17n.org>
19873
19874 * insdel.c (insert_from_gap): Adjust intervals correctly.
19875
198762008-02-01 Jason Rumney <jasonr@gnu.org>
19877
19878 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19879 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19880 (w32_initialize): Try to load it.
19881 (x_get_font_repertory): Use it if available.
19882 (w32_encode_char): Add shortcut for unicode output.
19883
19884 * w32fns.c (w32_load_system_font): Default charset to -1.
19885 (x_to_w32_charset): Match all fonts for unicode.
19886 (w32_to_x_charset): New parameter matching. Don't return partial
19887 or wildcard charsets.
19888 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19889 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19890 (w32_to_x_font): Match charset to real charset.
19891 (enum_font_cb2): Always list unicode versions.
19892
19893 * makefile.w32-in (temacs): Increase EMHEAP.
19894
198952008-02-01 Jason Rumney <jasonr@gnu.org>
19896
19897 * w32term.c (w32_encode_char): New charset parameter.
19898 font_info.encoding becomes encoding_type.
19899 (x_get_font_repertory): New function. Warning: stub only!
19900 (x_new_font): Return quickly if font already set.
19901 (x_new_fontset): fontsetname parameter is Lisp_Object.
19902 Use new fs_query_fontset. Try new_fontset_from_font_name.
19903 Use fontset_name for return value.
19904
19905 * w32term.h: Declare x_get_font_repertory.
19906
19907 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19908 place of find_charset_in_text. Use encode_coding_object in place
19909 of encode_coding.
19910 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19911 decode_coding.
19912
19913 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19914 of x_new_fontset.
19915 (w32_load_system_font): Initialize charset as unicode.
19916 font_info.encoding becomes encoding_type.
19917 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19918 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19919 (syms_of_w32fns): Set get_font_repertory_func.
19920
19921 * w32console.c: Include character.h. Use terminal_encode_buffer
19922 from term.c.
19923 (write_glyphs): Use new version of encode_terminal_code. Use
19924 encode_coding_object in place of encode_coding.
19925
19926 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19927 encoding becomes encoding_type.
19928
19929 * term.c (terminal_encode_buffer): Make externally visible.
19930
19931 * makefile.w32-in: Add character.h dependancies.
19932 (character.o, chartab.o): New targets.
19933
199342008-02-01 Kenichi Handa <handa@m17n.org>
19935
19936 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19937 CODING_ID_EOL_TYPE.
19938
199392008-02-01 Andreas Schwab <schwab@suse.de>
19940
19941 * coding.c (produce_chars): Revert last change.
19942
199432008-02-01 Kenichi Handa <handa@m17n.org>
19944
19945 * charset.h (charset_unicode): Extern it.
19946
19947 * charset.c (string_xstring_p): Check by (C >= 0x100).
19948 (find_charsets_in_text): Change format of the arc CHARSETS. New
19949 arg MULTIBYTE.
19950 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19951 change of find_charsets_in_text.
19952 (Fsplit_char): Fix doc. Never return unknown.
19953
19954 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19955
19956 * coding.c (Fdefine_coding_system_alias): Update
19957 Vcoding_system_list.
19958
19959 * fontset.c (load_font_get_repertory): Pay attention to the case
19960 that ENCODING of a font is specified by a char-table.
19961
19962 * xterm.c (x_get_font_repertory): Handle the case that the
19963 encoding of font is other than Unicode.
19964
199652008-02-01 Kenichi Handa <handa@m17n.org>
19966
19967 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19968 if a character is encodable by the terminal coding system. If
19969 not, produces proper number of `?'s. Update
19970 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19971 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19972
199732008-02-01 Kenichi Handa <handa@m17n.org>
19974
19975 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19976 variables.
19977 (encode_terminal_code): Change argument. Encode multiple
19978 characters at once. Store the result of encoding in
19979 terminal_encode_buffer.
19980 (write_glyphs, insert_glyphs): Adjust for the change of
19981 encode_terminal_code.
19982 (term_init): Initialize terminal_encode_buffer and
19983 terminal_encode_buf_size.
19984
19985 * coding.c (consume_chars): If coding->src_object is nil, don't
19986 check annotation.
19987
199882008-02-01 Kenichi Handa <handa@m17n.org>
19989
19990 * character.c (char_string): Use ASCII_CHAR_P instead of
19991 SINGLE_BYTE_CHAR_P.
19992
199932008-02-01 Kenichi Handa <handa@m17n.org>
19994
19995 * xdisp.c (handle_auto_composed_prop): Check if the last
19996 characters of auto-composed region is newly composed with the
19997 following characters.
19998 (handle_composition_prop): Fix checking of point being inside
19999 composition.
20000
200012008-02-01 Kenichi Handa <handa@m17n.org>
20002
20003 * fns.c (concat): Don't change multibyteness of the result by
20004 concatenating an 8-bit character.
20005
20006 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20007 multibyteness of the result when newelt is an 8-bit character.
20008
200092008-02-01 Dave Love <fx@gnu.org>
20010
20011 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20012 EMACS_INT.
20013
20014 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20015
20016 * xfaces.c (face_numeric_value): Declare dim size_t.
20017 (Finternal_lisp_face_equal_p): Remove unused f.
20018
20019 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20020 (MATRIX_ROW): Remove unused vars.
20021 (draw_glyphs, x_insert_glyphs, fast_find_position)
20022 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20023 byte/char counts.
20024
20025 * regex.c (regex_compile): Remove unused var.
20026
20027 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20028
20029 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20030 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20031
20032 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20033
20034 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20035
20036 * fileio.c (Fwrite_region): Remove unused var.
20037
20038 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20039 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20040
20041 * composite.c (Fremove_list_of_text_properties): Declare.
20042
20043 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20044 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20045 (coding_inherit_eol_type): Remove unused attrs.
20046 (detect_coding): Cast arg of detect_eol.
20047
20048 * charset.c (syms_of_charset): Remove unused var p.
20049 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20050 byte/char counts.
20051
20052 * casetab.c (set_case_table): Remove unused var.
20053
20054 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20055 unused vars.
20056
200572008-02-01 Dave Love <fx@gnu.org>
20058
20059 * xterm.c (x_bitmap_mask): Declare.
20060
200612008-02-01 Dave Love <fx@gnu.org>
20062
20063 * xterm.c (x_term_init): Fix type error.
20064
20065 * lisp.h: Add Funibyte_char_to_multibyte.
20066
20067 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20068 (Fset_coding_system_priority): Doc fix.
20069
20070 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20071
20072 * indent.c (check_composition): Make start and end EMACS_INT.
20073
20074 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20075
20076 * xdisp.c (handle_composition_prop, check_point_in_composition):
20077 Make buffer positions EMACS_INT.
20078
20079 * composite.c (find_composition, run_composition_function)
20080 (update_compositions, Ffind_composition_internal): Make buffer
20081 positions EMACS_INT.
20082
20083 * composite.h (find_composition, update_compositions): Make
20084 position args EMACS_INT.
20085
20086 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20087
20088 * intervals.c (get_property_and_range):
20089 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20090
20091 * unexalpha.c: Don't include varargs.h.
20092
200932008-02-01 Dave Love <fx@gnu.org>
20094
20095 * coding.h (ENCODE_UTF_8): New.
20096
20097 * Makefile.in (gtkutil.o): Depend on coding.h.
20098
20099 * coding.c (Fset_coding_system_priority): Doc fix.
20100
201012008-02-01 Kenichi Handa <handa@m17n.org>
20102
20103 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20104 the case of auto saving.
20105
201062008-02-01 Andreas Schwab <schwab@suse.de>
20107
20108 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20109 `range' from GC.
20110
201112008-02-01 Kenichi Handa <handa@m17n.org>
20112
20113 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20114
201152008-02-01 Kenichi Handa <handa@m17n.org>
20116
20117 * fileio.c (choose_write_coding_system): Return a decided coding system.
20118 (Fwrite_region): Set Vlast_coding_system_used to the return value
20119 of choose_write_coding_system.
20120
201212008-02-01 Kenichi Handa <handa@m17n.org>
20122
20123 * charset.c (Fset_charset_priority): Pay attention to duplicated
20124 arguments.
20125
20126 * coding.c (QCcategory): New variable.
20127 (syms_of_coding): Defsym it. Set all elements of
20128 Vcoding_category_table and their symbol values.
20129 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20130 coding-category-XXX, and coding-category-list.
20131 (Fdefine_coding_system_internal): Add category in the plist.
20132
201332008-02-01 Kenichi Handa <handa@m17n.org>
20134
20135 * callproc.c (Fcall_process): Handle carryover correctly.
20136
20137 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20138 (raw_text_coding_system): Check NILP (coding_system).
20139 (coding_inherit_eol_type): Check NILP (coding_system) and
20140 NILP (parent).
20141 (consume_chars): Fix for the case of raw-text.
20142
20143 * process.c (read_process_output): Handle carryover correctly.
20144
201452008-02-01 Dave Love <fx@gnu.org>
20146
20147 * regex.c (re_search_2): Fix last change.
20148
201492008-02-01 Kenichi Handa <handa@m17n.org>
20150
20151 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20152 target_multibyte. Even in a unibyte case, return a converted
20153 multibyte char.
20154 (GET_CHAR_AFTER): New macro.
20155 (PATFETCH): Translate via multibyte char.
20156 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20157 (SETUP_MULTIBYTE_RANGE): New macro.
20158 (regex_compile): Setup compiled code so that its multibyteness
20159 matches that of a target. Fix the handling of "[X-YZ]" using
20160 SETUP_MULTIBYTE_RANGE.
20161 (analyse_first) <charset>: For filling fastmap for all multibyte
20162 characters, don't check by BASE_LEADING_CODE_P.
20163 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20164 the same as RE_MULTIBYTE_P (bufp) now.
20165 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20166 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20167 (TRANSLATE_VIA_MULTIBYTE): New macro.
20168 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20169 It is the same as RE_MULTIBYTE_P (bufp) now.
20170 <exactn>: Translate via multibyte.
20171 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20172 translate it.
20173 <charset, charset_not>: Fetch a character by
20174 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20175 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20176 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20177 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20178 by GET_CHAR_AFTER.
20179 (bcmp_translate): Likewise.
20180
20181 * search.c (compile_pattern): Check the member target_multibyte,
20182 not the member multibyte of buf.
20183
20184 * lread.c (read1): While reading a string, set force_singlebyte
20185 and force_multibyte correctly.
20186
20187 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20188 up of unibyte_to_multibyte_table.
20189
201902008-02-01 Kenichi Handa <handa@m17n.org>
20191
20192 * coding.c (setup_coding_system): If coding has
20193 post-read-conversion or pre-write-conversion, set
20194 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20195 respectively.
20196 (decode_coding_gap): Run post-read-conversion if any.
20197
20198 * fileio.c (Finsert_file_contents): Even if we read into a
20199 unibyte buffer, check if we must decode the result or not.
20200
202012008-02-01 Kenichi Handa <handa@m17n.org>
20202
20203 * coding.c (make_conversion_work_buffer): Change the work buffer
20204 name to the same one as that of Emacs 21.
20205
202062008-02-01 Kenichi Handa <handa@m17n.org>
20207
20208 * coding.h (make_conversion_work_buffer): Adjust prototype.
20209 (code_conversion_restore): Don't extern it.
20210
20211 * coding.c (detected_mask): Delete unused variable.
20212 (decode_coding_iso_2022): Pay attention to the byte sequence of
20213 CTEXT extended segment, and retain those bytes as is.
20214 (decode_coding_ccl): Delete unused variable `valids'.
20215 (setup_coding_system): Delete unused variable `category'.
20216 (consume_chars): Delete unused variable `category'. Make it work
20217 for non-multibyte case.
20218 (make_conversion_work_buffer): Change argument.
20219 (saved_coding): Delete unused variable.
20220 (code_conversion_restore): Don't check saved_coding->destination.
20221 (code_conversion_save): New function.
20222 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20223 instead of record_unwind_protect.
20224 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20225 (detect_coding_system): Delete unused variable `mask'.
20226 (Fdefine_coding_system_internal): Delete unused variable id.
20227
20228 * fileio.c (kill_workbuf_unwind): New function.
20229 (Finsert_file_contents): On replacing, call
20230 make_conversion_work_buffer with correct args, and call
20231 record_unwind_protect with the first arg kill_workbuf_unwind.
20232
20233 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20234
202352008-02-01 Kenichi Handa <handa@m17n.org>
20236
20237 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20238 (fontset_add): Fix for the case that TO is less than TO1.
20239 (Ffontset_info): Don't use fallback fontset on checking the
20240 default fontset.
20241 (dump_fontset): New function for debugging.
20242
20243 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20244 coding_type is Qcharset.
20245
202462008-02-01 Kenichi Handa <handa@m17n.org>
20247
20248 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20249 (map_char_table): Don't inherit the value from the parent on
20250 initializing VAL. Adjust for the above change.
20251
202522008-02-01 Kenichi Handa <handa@m17n.org>
20253
20254 * coding.c (Qsignature, Qendian): Delete these variables.
20255 (syms_of_coding): Don't initialize them.
20256 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20257 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20258 detect_info->found.
20259 (decode_coding_utf_16): Don't detect BOM here.
20260 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20261 is NOT utf_16_without_bom.
20262 (setup_coding_system): For a coding system of type utf-16, check
20263 if the attribute :endian is Qbig or not (not nil or not), and set
20264 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20265 (detect_coding): If coding type is utf-16 and BOM detection is
20266 required, detect it.
20267 (Fdefine_coding_system_internal): For a coding system of type
20268 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20269
202702008-02-01 Kenichi Handa <handa@m17n.org>
20271
20272 * coding.c (coding_set_source): Fix for the case that the current
20273 buffer is different from coding->src_object.
20274 (decode_coding_object): Don't use the conversion work buffer if
20275 DST_OBJECT is a buffer.
20276
202772008-02-01 Dave Love <fx@gnu.org>
20278
20279 * lread.c (read_emacs_mule_char) [len==2]: Index
20280 emacs_mule_charset correctly.
20281
202822008-02-01 Dave Love <fx@gnu.org>
20283
20284 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20285 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20286 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20287 treated specially.)
20288 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20289 (detected_mask): Remove Big5 bits.
20290
202912008-02-01 Kenichi Handa <handa@m17n.org>
20292
20293 The following changes are to make the font rescaling facility
20294 compatible with Emacs 21.
20295
20296 * xfaces.c (Vface_font_rescale_alist): Rename from
20297 Vface_resizing_fonts.
20298 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20299 (font_rescale_ratio): Rename from font_resizing_ratio.
20300 (split_font_name): Set font->rescale_ratio.
20301 (better_font_p): Pay attention to font->rescale_ratio.
20302 (build_scalable_font_name): Likewise. Change RESX, and RESY
20303 fields.
20304 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20305
203062008-02-01 Kenichi Handa <handa@m17n.org>
20307
20308 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20309 (Qutf_16_le): Remove these variables.
20310 (syms_of_coding): Don't DEFSYM them.
20311 (decode_coding_utf_16): Fix handling of BOM.
20312 (encode_coding_utf_16): Fix handling of BOM.
20313
203142008-02-01 Kenichi Handa <handa@m17n.org>
20315
20316 * fileio.c (Finsert_file_contents): On replacing, before decoding
20317 the file into the work buffer, set point of the work buffer to the end.
20318
203192008-02-01 Dave Love <fx@gnu.org>
20320
20321 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20322
203232008-02-01 Dave Love <fx@gnu.org>
20324
20325 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20326 and fix C types.
20327
203282008-02-01 Kenichi Handa <handa@m17n.org>
20329
20330 * xdisp.c (SKIP_GLYPHS): New macro.
20331 (set_cursor_from_row): Pay attention to string display properties.
20332
20333 * category.c (copy_category_entry): Fix for the case that RANGE
20334 is an integer.
20335
20336 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20337
20338 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20339
203402008-02-01 Kenichi Handa <handa@m17n.org>
20341
20342 * charset.c (Fcharset_id_internal): New function.
20343 (syms_of_charset): Defsubr it.
20344
20345 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20346 with the last arg charset_list acquired from coding.
20347 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20348 the attribute coding_attr_ccl_valids.
20349
20350 * coding.h (enum define_coding_ccl_arg_index): Set the first
20351 member coding_arg_ccl_decoder to coding_arg_max.
20352
20353 * ccl.h (ccl_driver): Adjust prototype.
20354
20355 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20356 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20357 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20358 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20359 last arg Qnil.
20360
203612008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20364 call encode_char.
20365
20366 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20367
203682008-02-01 Dave Love <fx@gnu.org>
20369
20370 * composite.c (syms_of_composite): Make composition_hash_table weak.
20371
203722008-02-01 Kenichi Handa <handa@m17n.org>
20373
20374 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20375 (font_name_registry): Don't extern them.
20376 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20377
20378 * fontset.h (Qfontset): Don't extern it.
20379 (new_fontset_from_font_name): Extern it.
20380
20381 * fontset.c: Give 8 extra slots to fontset objects.
20382 (Qfontset_info): New variable.
20383 (syms_of_fontset): Defsym it.
20384 (FONTSET_FALLBACK): New macro.
20385 (fontset_face): Try also the default fontset.
20386 (make_fontset): Realize a fallback fontset from the default fontset.
20387 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20388 using split_font_name_into_vector and build_font_name_from_vector.
20389 (Fset_fontset_font): Access the elements of font_spec by enum
20390 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20391 name by using split_font_name_into_vector.
20392 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20393 generate a proper font name from the fontset name. Update
20394 Vfontset_alias_alist.
20395 (n_auto_fontsets): New variable.
20396 (new_fontset_from_font_name): New function.
20397 (Ffont_info): Store the information about fonts generated from the
20398 default fontset in the first extra slot of the returned char-table.
20399
20400 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20401 (font_name_registry): Delete function.
20402 (split_font_name_into_vector): New function.
20403 (build_font_name_from_vector): New function.
20404 (font_list): The argument REGISTRY is now a list of registry names.
20405 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20406 specifies an explicit font name, return the name as is. Make a
20407 list of registy names.
20408
20409 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20410 of x_new_fontset.
20411 (Fx_create_frame): Don't call x_new_fontset here. Just use
20412 x_list_fonts to check the existence of fonts.
20413
20414 * xterm.h (x_new_fontset): Adjust prototype.
20415
20416 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20417 string. Use new_fontset_from_font_name to create a fontset from a
20418 font name.
20419
204202008-02-01 Kenichi Handa <handa@m17n.org>
20421
20422 * syntax.c (Vfind_word_boundary_function_table): New name for
20423 Vnext_word_boundary_function_table.
20424 (find-word-boundary-function-table): New name for
20425 next-word-boundary-function-table.
20426
204272008-02-01 Dave Love <fx@gnu.org>
20428
20429 * Makefile.in: Fix some dependencies.
20430
20431 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20432 set it to nil before returning.
20433
20434 * composite.c (update_compositions): Fix type error.
20435
20436 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20437
204382008-02-01 Kenichi Handa <handa@m17n.org>
20439
20440 * xterm.c (x_new_font): Optimize for the case that the font is
20441 already set for the frame.
20442
204432008-02-01 Kenichi Handa <handa@m17n.org>
20444
20445 * chartab.c (char_table_ascii): Check if the char table contents
20446 is sub-char-table or not.
20447 (char_table_set, char_table_set_range): Fix argument to
20448 char_table_ascii.
20449
20450 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20451 (detect_coding_utf_8, detect_coding_utf_16)
20452 (detect_coding_emacs_mule, detect_coding_iso_2022)
20453 (detect_coding_sjis, detect_coding_big5)
20454 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20455 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20456 sequence is valid in this coding system. Change callers.
20457 (MAX_ANNOTATION_LENGTH): New macro.
20458 (ADD_ANNOTATION_DATA): New macro.
20459 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20460 ADD_ANNOTATION_DATA. Change the format of annotation data.
20461 (ADD_CHARSET_DATA): New macro.
20462 (emacs_mule_char): New argument ID. Change callers.
20463 (decode_coding_emacs_mule, decode_coding_iso_2022)
20464 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20465 Produce charset annotation data in coding->charbuf.
20466 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20467 to charset annotation data in coding->charbuf.
20468 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20469 coding->common_flags if the coding system is iso-2022 based and
20470 uses designation.
20471 (produce_composition): Adjust for the new annotation data format.
20472 (produce_charset): New function.
20473 (produce_annotation): Handle charset annotation.
20474 (handle_composition_annotation, handle_charset_annotation): New
20475 functions.
20476 (consume_chars): Handle charset annotation. Utilize the above two
20477 functions.
20478 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20479 buffer, get the deleted text as a string and set
20480 coding->src_object to that string.
20481 (detect_coding, detect_coding_system): Use the new struct
20482 coding_detection_info.
20483
20484 * coding.h (struct coding_detection_info): New structure.
20485 (struct coding_system): Adjust prototype of the member `detector'.
20486 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20487
204882008-02-01 Kenichi Handa <handa@m17n.org>
20489
20490 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20491
204922008-02-01 Dave Love <fx@gnu.org>
20493
20494 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20495 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20496 to new local and nullify apropos_accumulate before returning.
20497 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20498
204992008-02-01 Kenichi Handa <handa@m17n.org>
20500
20501 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20502 correctly.
e3eea1fc 20503
aac0c6e3
MR
205042008-02-01 Dave Love <fx@gnu.org>
20505
20506 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20507
205082008-02-01 Kenichi Handa <handa@m17n.org>
20509
20510 The following changes are to make character composition happen
20511 automatically on displaying.
20512
20513 * Makefile.in (lisp, shortlisp): Add composite.elc.
20514
20515 * composite.h (Qauto_composed, Vauto_composition_function)
20516 (Qauto_composition_function): Extern them.
20517
20518 * composite.c (Vcomposition_function_table)
20519 (Qcomposition_function_table): Delete variables.
20520 (Qauto_composed, Vauto_composition_function)
20521 (Qauto_composition_function): New variables.
20522 (run_composition_function): Don't call
20523 compose-chars-after-function.
20524 (update_compositions): Clear `auto-composed' text property.
20525 (compose_chars_in_text): Delete this function.
20526 (syms_of_composite): Staticpro Qauto_composed and
20527 Qauto_composition_function. Declare Vauto_composition_function as
20528 a Lisp variable.
20529
20530 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20531
20532 * xdisp.c (it_props): Add an entry for Qauto_composed.
20533 (handle_auto_composed_prop): New function.
20534
20535 * xselect.c (selection_data_to_lisp_data): Don't call
20536 compose_chars_in_text.
20537
205382008-02-01 Dave Love <fx@gnu.org>
20539
20540 * keyboard.c (read_char): Modify checking around use of
20541 Vkeyboard_translate_table.
20542
20543 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20544 and fix C types.
20545
205462008-02-01 Kenichi Handa <handa@m17n.org>
20547
20548 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20549 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20550 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20551 the case that the last byte is '\r' correctly.
20552 (decode_coding): Flush out the unprocessed data correctly.
20553 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20554
205552008-02-01 Dave Love <fx@gnu.org>
20556
20557 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20558 Add XK_ISO... case.
20559 (xaw_scroll_callback): Revert last change.
20560
205612008-02-01 Kenichi Handa <handa@m17n.org>
20562
20563 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20564
205652008-02-01 Kenichi Handa <handa@m17n.org>
20566
20567 * xfaces.c (Vface_resizing_fonts): New variable.
20568 (struct font_name): New member `resizing_ratio'.
20569 (font_resizing_ratio): New function.
20570 (split_font_name): Set font->resizing_ratio.
20571 (better_font_p): Pay attention to font->resizing_ratio.
20572 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20573 RESX, and RESY fields.
20574 (try_alternative_families): Try scalable fonts if
20575 Vscalable_fonts_allowed is not Qt.
20576 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20577
205782008-02-01 Dave Love <fx@gnu.org>
20579
20580 * xterm.c (xaw_scroll_callback): Cast correctly.
20581
205822008-02-01 Dave Love <fx@gnu.org>
20583
20584 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20585 (lispy_kana_keys): Comment out.
20586 (make_lispy_event) [XK_kana_A]: Comment out.
20587
20588 * xterm.c (xaw_scroll_callback): Cast call_data.
20589 (XTread_socket): Deal with ASCII keysyms.
20590 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20591
205922008-02-01 Dave Love <fx@gnu.org>
20593
20594 * xterm.c (Vx_keysym_table): New.
20595 (syms_of_xterm): Initialize it.
20596 (XTread_socket): Use it.
20597 From head: Eliminate incorrect optimization that tried to avoid
20598 decoding the output of X*LookupString.
20599 (x_get_font_repertory): Delete charset declaration.
20600
206012008-02-01 Kenichi Handa <handa@m17n.org>
20602
20603 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20604 return 0.
20605 (Fdefine_coding_system_internal): Setup
20606 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20607
206082008-02-01 Dave Love <fx@gnu.org>
20609
20610 * coding.c (Fcheck_coding_system): Doc fix.
20611
20612 * editfns.c (Finsert_byte): Return a proper value.
20613
206142008-02-01 Kenichi Handa <handa@m17n.org>
20615
20616 * coding.c (decode_coding): Fix args to translate_chars. Pay
20617 attention to Vstandard_translation_table_for_decode.
20618 (encode_coding): Fix args to translate_chars. Pay attention to
20619 Vstandard_translation_table_for_encode.
20620
20621 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20622 SINGLE_BYTE_CHAR_P.
20623
20624 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20625 not by SINGLE_BYTE_CHAR_P.
20626
20627 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20628 SINGLE_BYTE_CHAR_P.
20629
20630 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20631 SINGLE_BYTE_CHAR_P.
20632
20633 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20634 by SINGLE_BYTE_CHAR_P.
20635
20636 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20637 SINGLE_BYTE_CHAR_P.
20638
206392008-02-01 Dave Love <fx@gnu.org>
20640
20641 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20642
206432008-02-01 Dave Love <fx@gnu.org>
20644
20645 * fns.c (Flanginfo): Fix typo.
20646
20647 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20648
206492008-02-01 Kenichi Handa <handa@m17n.org>
20650
20651 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20652 (detect_coding_emacs_mule, detect_coding_iso_2022)
20653 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20654 incomplete byte sequence. Don't update *mask when correctly detected.
20655 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20656 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20657 (detect_coding, detect_coding_system): Adjust for the changes above.
20658
206592008-02-01 Kenichi Handa <handa@m17n.org>
20660
20661 * character.c (char_string): Rename from
20662 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20663 (string_char): Rename from string_char.
20664
20665 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20666 if C is greater than MAX_3_BYTE_CHAR.
20667 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20668 string_char instead of string_char_with_unification.
20669
206702008-02-01 Dave Love <fx@gnu.org>
20671
20672 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20673
206742008-02-01 Kenichi Handa <handa@m17n.org>
20675
20676 * keymap.c (push_key_description): Pay attention to force_multibyte.
20677
20678 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20679
206802008-02-01 Dave Love <fx@gnu.org>
20681
20682 * charset.c (define_charset_internal): Rename `supprementary'.
20683
20684 * Makefile.in (lisp, shortlisp): Remove latin-N.
20685
206862008-02-01 Dave Love <fx@gnu.org>
20687
20688 * xfns.c (x_window, x_window): Use use_xim.
20689
20690 * xterm.c (use_xim): Initialize.
20691 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20692 (x_term_init): Maybe set use_xim.
20693
20694 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20695
206962008-02-01 Kenichi Handa <handa@m17n.org>
20697
20698 * search.c (search_buffer): Fix case-fold-search of multibyte
20699 characters.
20700 (boyer_moore): Rename the last argument to char_high_bits.
20701
207022008-02-01 Kenichi Handa <handa@m17n.org>
20703
20704 * xdisp.c (display_string): Fix for the case of zero width glyph.
20705
20706 * xfns.c (x_set_font): Change the error message of the case that
20707 x_new_fontset returns Qt.
20708
20709 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20710 (Finternal_set_lisp_face_attribute): Use signal_error for the
20711 error of invalid fontset.
20712
20713 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20714 fontset, return Qt.
20715
207162008-02-01 Dave Love <fx@gnu.org>
20717
20718 * unexelf.c (unexec): Make .got handling not SGI-specific.
20719
20720 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20721
20722 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20723
20724 * keyboard.c (read_key_sequence): Fix type error.
20725
20726 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20727 type error.
20728
20729 * fontset.c (fontset_add): Return Lisp_Object.
20730
207312008-02-01 Dave Love <fx@gnu.org>
20732
20733 * charset.h (charset_ordered_list_tick): Declare extern.
20734
207352008-02-01 Kenichi Handa <handa@m17n.org>
20736
20737 The following changes (and some of 2008-02-01 changes of mine) are
20738 for handling syntax, category, and case conversion for unibyte
20739 characters by converting them to multibyte on the fly. With these
20740 changes, we don't have to setup syntax and case tables for unibyte
20741 characters in each language environment.
20742
20743 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20744 multibyte if necessary.
20745
20746 * bytecode.c (Fbyte_code): Likewise.
20747
20748 * character.h (LEADING_CODE_LATIN_1_MIN)
20749 (LEADING_CODE_LATIN_1_MAX): New macros.
20750 (unibyte_to_multibyte_table): Extern it.
20751 (unibyte_char_to_multibyte): New macro.
20752 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20753 (CHAR_LEADING_CODE): New macro.
20754 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20755
20756 * character.c (unibyte_to_multibyte_table): New variable.
20757 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20758 (multibyte_char_to_unibyte): If C is an eight-bit character,
20759 convert it to the corresponding byte value.
20760
20761 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20762 not 1, signals an error. Update the elements of
20763 unibyte_to_multibyte_table.
20764 (init_charset_once): Initialize unibyte_to_multibyte_table.
20765 (syms_of_charset): Define the charset `iso-8859-1'.
20766
20767 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20768 as is without converting it to unibyte. In a unibyte buffer,
20769 convert C to multibyte before checking the syntax.
20770
20771 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20772
20773 * minibuf.c (Fminibuffer_complete_word): Use the macro
20774 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20775
20776 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20777
20778 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20779 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20780 that is zero, convert an eight-bit char to multibyte.
20781 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20782 non-emacs case.
20783 (PATFETCH): Convert an eight-bit char to multibyte.
20784 (HANDLE_UNIBYTE_RANGE): New macro.
20785 (regex_compile): Setup the compiled pattern for multibyte chars
20786 even if the given regex string is unibyte. Use PATFETCH_RAW
20787 instead of PATFETCH in many places. To handle `charset'
20788 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20789 only for ASCII chars.
20790 (analyse_first) <exactn>: Simplify because the compiled pattern
20791 is multibyte.
20792 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20793 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20794 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20795 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20796 multibyte always 1.
20797 (re_search_2): In emacs, set the locale variable multibyte to 1,
20798 otherwise to 0. New local variable target_multibyte. Check it
20799 to decide the multibyteness of STR1 and STR2. If
20800 target_multibyte is zero, convert unibyte chars to multibyte
20801 before translating and checking fastmap.
20802 (TARGET_CHAR_AND_LENGTH): New macro.
20803 (re_match_2_internal): In emacs, set the locale variable multibyte
20804 to 1, otherwise to 0. New local variable target_multibyte. Check
20805 it to decide the multibyteness of STR1 and STR2. Use
20806 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20807 <charset, charset_not>: If multibyte is nonzero, check fastmap
20808 only for ASCII chars. Call bcmp_translate with
20809 target_multibyte, not with multibyte.
20810 <begline>: Declare the local variable C as `unsigned'.
20811 (bcmp_translate): Change the last arg name to target_multibyte.
20812
20813 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20814 the regexp pattern and the matching target. Set cp->buf.multibyte
20815 to the multibyteness of the regexp pattern. Set
20816 cp->but.target_multibyte to the multibyteness of the matching target.
20817 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20818 FETCH_STRING_CHAR_ADVANCE.
20819 (Freplace_match): Convert unibyte chars to multibyte.
20820
20821 * syntax.c (char_quoted, back_comment, scan_words)
20822 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20823 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20824 unibyte chars to multibyte.
20825 (skip_chars): Delete the arg syntaxp, and move the code for
20826 handling syntaxes to skip_syntaxes. Change callers.
20827 Fix the case that the multibyteness of STRING and the current
20828 buffer doesn't match.
20829 (skip_syntaxes): New function.
20830 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20831 SINGLE_BYTE_CHAR_P.
20832
208332008-02-01 Kenichi Handa <handa@m17n.org>
20834
20835 * xfaces.c (QCfontset): New variable.
20836 (LFACE_FONTSET): New macro.
20837 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20838 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20839 (Finternal_set_lisp_face_attribute)
20840 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20841 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20842 check also LFACE_FONTSET_INDEX.
20843 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20844 attrs[LFACE_FONT_INDEX].
20845 (syms_of_xfaces): Intern and staticpro QCfontset.
20846
20847 * dispextern.h (enum lface_attribute_index): New member
20848 LFACE_FONTSET_INDEX.
20849
20850 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20851
208522008-02-01 Kenichi Handa <handa@m17n.org>
20853
20854 * coding.c (coding_set_destination): Fix coding->destination for
20855 the case converting a region.
20856 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20857 (encode_coding_object): Fix coding->dst_pos and
20858 coding->dst_pos_byte for the case converting a region.
20859
20860 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20861
20862 * character.h (BYTE8_STRING): New macro.
20863
20864 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20865
208662008-02-01 Kenichi Handa <handa@m17n.org>
20867
20868 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20869 characters by octal form.
20870
20871 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20872
20873 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20874 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20875 _fetch_multibyte_char_len.
20876 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20877
20878 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20879
20880 * casefiddle.c (casify_object): Simplify. Handle the case that
20881 the case conversion change the byte length.
20882 (casify_region): Likewise.
20883
20884 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20885
20886 * character.c (_fetch_multibyte_char_len): Delete this variable.
20887 (syms_of_character): Setup Vprintable_chars.
20888
20889 * editfns.c (Fchar_equal): Fix for the unibyte case.
20890 (Finsert_byte): New function.
20891 (syms_of_editfns): Defsubr it.
20892
20893 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20894 of direct code 0x3ffff.
20895
20896 * search.c (Freplace_match): Fix for the unibyte case.
20897
208982008-02-01 Kenichi Handa <handa@m17n.org>
20899
20900 * lread.c (safe_to_load_p): Fix the logic.
20901
20902 * syntax.c (scan_words): Don't treat characters belonging to
20903 different scripts as constituting a word.
20904
20905 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20906
20907 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20908
20909 * emacs.c (main): In the case of --unibyte, instead of aborting on
20910 finding non-empty buffer, make it unibyte.
20911
209122008-02-01 Kenichi Handa <handa@m17n.org>
20913
20914 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20915 to create a fontset.
20916
209172008-02-01 Dave Love <fx@gnu.org>
20918
20919 * character.c (Funibyte_char_to_multibyte): Doc fix.
20920
20921 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20922
209232008-02-01 Kenichi Handa <handa@m17n.org>
20924
20925 * fontset.c (fontset_add): Make the type `int'.
20926 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20927
20928 * character.c (unibyte_char_to_multibyte)
20929 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20930 charset_unibyte, not charset_primary.
20931
20932 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20933
20934 * charset.c (charset_unibyte): Rename from charset_primary.
20935 (Funibyte_charset): Rename from Fprimary_charset.
20936 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20937 (syms_of_charset): Adjust for the above changes.
20938
20939 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20940 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20941 it->multibyte_p is zero.
20942
20943 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20944 Delete extern.
20945
209462008-02-01 Kenichi Handa <handa@m17n.org>
20947
20948 * coding.c (Fdefine_coding_system_internal): Fix category setting
20949 for a coding system of type iso-2022.
20950
209512008-02-01 Kenichi Handa <handa@m17n.org>
20952
20953 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20954
209552008-02-01 Kenichi Handa <handa@m17n.org>
20956
20957 * syntax.c (Vnext_word_boundary_function_table): New variable.
20958 (next-word-boundary-function-table): Declare it as a Lisp variable
20959 in syms_of_syntax.
20960 (scan_words): Call functions in Vnext_word_boundary_function_table
20961 if any.
20962
20963 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20964
20965 * fontset.c (fs_load_font): If fontp->charset is not negative,
20966 return fontp without setting its members.
20967
209682008-02-01 Dave Love <fx@gnu.org>
20969
20970 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20971
20972 * m/sparc.h (HAVE_ALLOCA): Delete.
20973
20974 * s/irix6-5.h: Don't include strings.h.
20975 (bcopy, bzero, bcmp): Don't undef.
20976
20977 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20978
20979 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20980 (TIOCSIGSEND): Don't test IRIX6.
20981 (bcopy, bzero, bcmp): Define conditionally.
20982
209832008-02-01 Kenichi Handa <handa@m17n.org>
20984
20985 * buffer.c (Qas, Qmake, Qto): New variables.
20986 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20987 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20988
20989 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20990 we are inserting a process output into a multibyte buffer.
20991
20992 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20993 multibyte_char_to_unibyte.
20994
20995 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20996 by the primary charset, make it eight-bit char.
20997 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20998
20999 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
21000 (charset_8_bit__control, charset_8_bit_graphic)
21001 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
21002 (define_charset_internal): New function.
21003 (syms_of_charset): Call define_charset_internal for pre-defined
21004 charsets.
21005
21006 * charset.h (charset_8_bit): Extern it.
21007
21008 * coding.c (make_conversion_work_buffer): Adjust for the change
21009 of Fset_buffer_multibyte.
21010 (encode_coding_raw_text): Increment p0 in the loop.
21011
21012 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21013
21014 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21015 for the change of Fset_buffer_multibyte.
21016
21017 * fns.c (Fstring_to_multibyte): New function.
21018 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21019
210202008-02-01 Dave Love <fx@gnu.org>
21021
21022 * xfns.c (x_put_x_image): Declare args.
21023
21024 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21025 (try_font_list): Declare an arg.
21026
21027 * xdisp.c (message2_nolog, set_message): Declare an arg.
21028
21029 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21030
21031 * syntax.c (scan_sexps_forward): Declare an arg.
21032
21033 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21034 Declare an arg.
21035
21036 * lisp.h (Fnew_fontset): Declare.
21037
21038 * keymap.c (push_key_description): Call CHARACTERP correctly.
21039
21040 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21041 (face_for_char): Delete unused vars.
21042 (Fset_fontset_font): Doc fix. Delete unused vars.
21043
21044 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21045
21046 * composite.c (update_compositions): Declare arg.
21047
21048 * cm.c (calccost, cmgoto): Declare args.
21049
21050 * charset.c: Remove `emacs' conditional. Doc fixes.
21051 (map_char_table_for_charset): Declare.
21052
21053 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21054
21055 * ccl.c: Remove `emacs' conditional.
21056
210572008-02-01 Kenichi Handa <handa@m17n.org>
21058
21059 The following changes are to allow specifying multiple font
21060 patterns for a character range (specified by script or charset).
21061
21062 * Makefile.in (abbrev.o): Depend on syntax.h.
21063 (xfaces.o): Depend on charset.h.
21064
21065 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21066 SINGLE_BYTE_CHAR_P.
21067
21068 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21069
21070 * character.h (Vchar_script_table): Extern it.
21071
21072 * character.c (Vscript_alist): Delete.
21073 (Vchar_script_table, Qchar_script_table): New variable.
21074 (syms_of_character): Declare Vchar_script_table as a lisp variable
21075 and initialize it.
21076
21077 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21078 have property char-table-extra-slots, make no extra slot.
21079
21080 * dispextern.h (struct face): Delete member `charset'.
21081 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21082 SINGLE_BYTE_CHAR_P.
21083 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21084 Add prototypes.
21085 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21086 (generate_ascii_font_name): Rename from generate_ascii_font.
21087
21088 * fontset.h (get_font_repertory_func): New prototype.
21089 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21090 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21091
21092 * fontset.c (Qprepend, Qappend): New variables.
21093 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21094 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21095 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21096 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21097 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21098 (load_font_get_repertory): New functions.
21099 (fontset_set): Delete.
21100 (fontset_face): New arg FACE. Return face ID, not face.
21101 Complete re-write to handle new fontset structure. Change caller.
21102 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21103 (face_for_char): Don't call lookup_face.
21104 (make_fontset_for_ascii_face): New arg FACE.
21105 (fs_load_font): New arg CHARSET_ID. Don't check
21106 Vfont_encoding_alist here.
21107 (find_font_encoding): New function.
21108 (list_fontsets): Use STRINGP, not ! NILP.
21109 (accumulate_script_ranges): New function.
21110 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21111 re-written to handle new fontset structure.
21112 (Ffontset_font): Return a copy of element.
21113 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21114 docstring of font-encoding-alist.
21115
21116 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21117 (Fset_fotset_font): Fix arguments to 5.
21118
21119 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21120
21121 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21122 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21123 (highlight_trailing_whitespace): Adjust for the change of
21124 lookup_named_face.
21125
21126 * xfaces.c: Include charset.h.
21127 (load_face_font): Delete argument C. Change caller.
21128 (generate_ascii_font_name): Rename from generate_ascii_font.
21129 (font_name_registry): New function.
21130 (cache_face): Store ascii faces before non-ascii faces in buckets.
21131 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21132 Lookup only ascii faces.
21133 (lookup_non_ascii_face): New function.
21134 (lookup_named_face): Delete argument C. Change caller.
21135 (lookup_derived_face): Delete argument C. Change caller.
21136 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21137 a string, just call font_list with it.
21138 (choose_face_font): Delete arguments FACE and C. New arg
21139 FONT_SPEC. Change caller.
21140 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21141 Change caller.
21142 (realize_non_ascii_face): New function.
21143 (realize_x_face): Call load_face_font here.
21144 (realize_tty_face): Delete argument C. Change caller.
21145 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21146 get a face ID.
21147 (dump_realized_face): Don't print charset of FACE.
21148
21149 * xfns.c (x_set_font): Always call x_new_fontset and
21150 store_frame_parameter.
21151 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21152 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21153
21154 * xterm.h (x_get_font_repertory): Extern it.
21155
21156 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21157 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21158 it->multibyte_p is zero.
21159 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21160 (x_new_fontset): If FONTSETNAME doesn't match any existing
21161 fontsets, create a new one.
21162 (x_get_font_repertory): New function.
21163
211642008-02-01 Kenichi Handa <handa@m17n.org>
21165
21166 * coding.c (Ffind_coding_systems_region_internal): Detect an
21167 ASCII only string correctly.
21168
21169 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21170 version is 0.
21171
211722008-02-01 Kenichi Handa <handa@m17n.org>
21173
21174 * lread.c: Include "coding.h".
21175 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21176 (load_each_byte, unread_char): New variables.
21177 (readchar_backlog): Delete.
21178 (readchar): Return a character unless load_each_byte is nonzero.
21179 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21180 cons. If unread_char is not -1, simply return it.
21181 (unreadchar): Handle the case that readcharfun is
21182 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21183 (read_multibyte): Delete.
21184 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21185 (read_emacs_mule_char): New functions.
21186 (Fload): Even if the file doesn't have the extension ".elc", if
21187 safe_to_load_p returns a positive version number, assume that the
21188 file contains bytecompiled code. If the version is less than 22,
21189 load the file while decoding multibyte sequences by emacs-mule.
21190 (readevalloop): Don't use readchar_backlog.
21191 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21192 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21193 (read_escape): Delete the arg BYTEREP.
21194 (read1): Set load_each_byte to 1 temporarily while handling
21195 #@NUMBER. Don't call read_multibyte.
21196 (read_vector): Call Fread with a cons. If readcharfun is
21197 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21198 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21199 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21200 and Qload_force_doc_strings.
21201
212022008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * xdisp.c (face_before_or_after_it_pos): Call
21205 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21206
212072008-02-01 Kenichi Handa <handa@m17n.org>
21208
21209 * character.h (TRAILING_CODE_P): New macro.
21210 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21211 (string_char_with_unification): Fix prototype.
21212 (Vscript_alist): Extern it.
21213
21214 * character.c (Vscript_alist): New variable.
21215 (string_char_with_unification, str_as_unibyte)
21216 (string_escape_byte8): Add `const' to local variables.
21217 (syms_of_character): Declare script-alist as a Lisp variable.
21218
21219 * charset.h (Vcharset_ordered_list): Extern it.
21220 (charset_ordered_list_tick): Extern it.
21221 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21222 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21223 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21224 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21225 (Funify_charset): Adjust for the change of Funify_charset.
21226
21227 * charset.c (charset_ordered_list_tick): New variable.
21228 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21229 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21230 deunify intead of unify a charset.
21231 (string_xstring_p): Add `const' to local variables.
21232 (find_charsets_in_text): Add `const' to arguments and local variables.
21233 (encode_char): Adjust for the change of Funify_charset. Fix
21234 detecting of invalid code.
21235 (Fset_charset_priority): Increment charset_ordered_list_tick.
21236 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21237 and TO_CODE.
21238
21239 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21240 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21241 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21242 (decode_coding_ccl, consume_chars)
21243 (Ffind_coding_systems_region_internal)
21244 (Fcheck_coding_systems_region): Add `const' to local variables.
21245
21246 * print.c (print_object): Use octal form for printing the
21247 contents of a bool vector.
21248
212492008-02-01 Dave Love <fx@gnu.org>
21250
21251 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21252 <version == 20>: Refuse to load.
21253
212542008-02-01 Dave Love <fx@gnu.org>
21255
21256 * fns.c: Move coding.h.
21257 (Qcodeset, Qdays, Qmonths): New.
21258 (concat): Use CHARACTERP instead of INTEGERP.
21259 (Flocale_codeset): Delete.
21260 (Flanginfo): New function.
21261 (syms_of_fns): Change accordingly.
21262
21263 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21264
212652008-02-01 Dave Love <fx@gnu.org>
21266
21267 * casetab.c (init_casetab_once, init_casetab_once): Fix
21268 CHAR_TABLE_SET call.
21269
21270 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21271
21272 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21273
21274 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21275 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21276 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21277
21278 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21279
21280 * coding.c (ENCODE_DESIGNATION, decode_eol)
21281 (make_conversion_work_buffer, code_conversion_restore)
21282 (Fdefine_coding_system_internal): Convert Lisp types.
21283 (code_conversion_restore): Use EQ, not ==.
21284 (Fencode_coding_string): Fix code_convert_string call.
21285
21286 * coding.h (code_convert_region): Fix prototype.
21287
21288 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21289
21290 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21291 (Ffontset_info): Convert Lisp types.
21292
21293 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21294
21295 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21296
21297 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21298
21299 * chartab.c: Include "...h", not <...h> in some cases.
21300
21301 * callproc.c (Fcall_process): Remove unused variables.
21302
213032008-02-01 Dave Love <fx@gnu.org>
21304
21305 * coding.c (Fset_coding_system_priority): Allow null arg list.
21306
213072008-02-01 Dave Love <fx@gnu.org>
21308
21309 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21310 (Fself_insert_and_exit): Use CHARACTERP.
21311
21312 * callproc.c (Fcall_process): Remove unused vars.
21313
21314 * xterm.c (XTread_socket): Add extra dead keysyms.
21315
21316 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21317
21318 * dispextern.h: Remove prototypes for redraw_frame,
21319 redraw_garbaged_frames.
21320
21321 * cmds.c (Fself_insert_command): Use CHARACTERP.
21322
21323 * chartab.c (make_sub_char_table): Remove unused var.
21324 (Fset_char_table_default, Fmap_char_table): Doc fix.
21325
21326 * keymap.c (access_keymap): Remove generic char code.
21327 (push_key_description): Use CHARACTERP.
21328
213292008-02-01 Dave Love <fx@gnu.org>
21330
21331 * charset.c: Doc fixes.
21332 (Funify_charset): Extra checking.
21333
213342008-02-01 Dave Love <fx@gnu.org>
21335
21336 * lread.c: Remove some unused variables.
21337 (safe_to_load_p): If safe, return the magic number version byte.
21338 (Fload): Maybe use load-with-code-conversion.
21339
213402008-02-01 Kenichi Handa <handa@m17n.org>
21341
21342 * category.c (Fmodify_category_entry): Don't modify the contents
21343 of category_set for characters out of the range. Avoid
21344 unnecessary modification.
21345
21346 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21347 Vchar_unify_table. The default value of the table is now nil.
21348
21349 * character.c (syms_of_character): Setup Vchar_width_table for
21350 eight-bit-control and raw-byte chars.
21351
21352 * charset.h (enum define_charset_arg_index): Delete
21353 charset_arg_parents and add charset_arg_subset and
21354 charset_arg_superset.
21355 (enum charset_attr_index): Delete charset_parents and add
21356 charset_subset and charset_superset.
21357 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21358 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21359 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21360 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21361 (CHARSET_SUPERSET): New macros.
21362 (charset_work): Extern it.
21363 (ENCODE_CHAR): Use charset_work.
21364 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21365 (map_charset_chars): Extern it.
21366
21367 * charset.c (load_charset_map): Set the default value of encoder
21368 and deunifier char-tables to nil.
21369 (map_charset_chars): Change argument. Change callers. Use
21370 map_char_table_for_charset instead of map_char_table.
21371 (Fmap_charset_chars): New optional args from_code and to_code.
21372 (Fdefine_charset_internal): Adjust for the change of
21373 `define-charset' (:parents -> :subset or :superset).
21374 (charset_work): New variable.
21375 (encode_char, syms_of_charset): Adjust for the change of
21376 Fdefine_charset_internal.
21377 (Ffind_charset_string): Setup the vector `charsets' correctly.
21378
21379 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21380 the previous change.
21381 (char_table_ref_and_range): Adjust for the above change.
21382 (map_sub_char_table_for_charset): New function.
21383 (map_char_table_for_charset): New function.
21384
21385 * keymap.c (describe_vector): Handle a char-table directly here.
21386 (describe_char_table): Delete.
21387
21388 * lisp.h (map_charset_chars): Delete.
21389
213902008-02-01 Dave Love <fx@gnu.org>
21391
21392 * fns.c (count_combining): Comment out (unused).
21393 (Flocale_codeset): New.
21394 (syms_of_fns): Defsubr it.
21395
21396 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21397 (size_t): Remove.
21398
213992008-02-01 Dave Love <fx@gnu.org>
21400
21401 * Makefile.in (chartab.o): Depend on charset.h.
21402
214032008-02-01 Kenichi Handa <handa@m17n.org>
21404
21405 * character.c (syms_of_character): Set the default value of
21406 Vprintable_chars to Qnil.
21407
214082008-02-01 Dave Love <fx@gnu.org>
21409
21410 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21411
214122008-02-01 Kenichi Handa <handa@m17n.org>
21413
21414 * charset.c (load_charset_map): Handle the case that from < to
21415 correctly.
21416
21417 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21418 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21419 Pay attention to raw-8-bit chars.
21420
214212008-02-01 Kenichi Handa <handa@m17n.org>
21422
21423 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21424 It is not bytecompiled now.
21425
21426 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21427 (charset_jisx0208): New variables.
21428 (Fdefine_charset_internal): Setup them if appropriate.
21429 (init_charset_once): Initialize them to -1.
21430
21431 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21432 (charset_jisx0208): Extern them.
21433
21434 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21435 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21436 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21437 (setup_iso_safe_charsets): Fix arguments to Fassq.
21438 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21439 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21440 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21441 (encode_coding_iso_2022): Change the 1st arg to
21442 ENCODE_ISO_CHARACTER to a variable.
21443
214442008-02-01 Kenichi Handa <handa@m17n.org>
21445
21446 * charset.h (enum define_charset_arg_index): New enums
21447 charset_arg_min_code and charset_arg_max_code.
21448 (struct charset): New member char_index_offset.
21449
21450 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21451 Take charset->char_index_offset into account.
21452 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21453 args[charset_arg_max_code]. Setup charset.char_index_offset.
21454 (syms_of_charset): Fix args to Fdefine_charset_internal.
21455
214562008-02-01 Dave Love <fx@gnu.org>
21457
21458 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21459
214602008-02-01 Dave Love <fx@gnu.org>
21461
21462 * coding.c: Doc fixes.
21463 (Fcoding_system_aliases): Fix return value.
21464 (Qmac): Remove (duplicated) definition.
21465
214662008-02-01 Dave Love <fx@gnu.org>
21467
362654a6
JB
21468 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21469 New functions.
aac0c6e3
MR
21470
21471 * character.c (Fstring): Doc fix.
21472
21473 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21474
362654a6 21475 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21476 (font-encoding-alist): Doc fix.
21477
214782008-02-01 Dave Love <fx@gnu.org>
21479
21480 * term.c (costs_set): Declare static, non-initialized for pcc.
21481 (encode_terminal_code): Remove unused var.
21482
21483 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21484 for K&R.
21485
21486 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21487
21488 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21489 (suffixes): Move out of make_subsidiaries for K&R.
21490
21491 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21492
21493 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21494
214952008-02-01 Dave Love <fx@gnu.org>
21496
21497 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21498
21499 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21500
215012008-02-01 Yong Lu <lyongu@asia-infonet.com>
21502
21503 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21504
21505 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21506
215072008-02-01 Kenichi Handa <handa@m17n.org>
21508
21509 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21510 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21511
215122008-02-01 Kenichi Handa <handa@m17n.org>
21513
21514 * coding.c (decode_coding_charset): Adjust for the change of
21515 Fdefine_coding_system_internal.
21516 (Fdefine_coding_system_internal): For a coding system of
21517 `charset' type, store a list of charset IDs in
21518 `charset_attr_charset_valids' element of coding attributes.
21519
215202008-02-01 Kenichi Handa <handa@m17n.org>
21521
21522 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21523 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21524 caller. Handle 2-byte and 3-byte charsets correctly.
21525 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21526 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21527 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21528 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21529 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21530 sequence.
21531 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21532 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21533 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21534 and alt&rule composition.
21535 (decode_coding_iso_2022): Handle composition correctly.
21536 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21537
21538 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21539 re-defining a charset. If the charset has :emacs-mule-id, setup
21540 emacs_mule_bytes.
21541 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21542
215432008-02-01 Kenichi Handa <handa@m17n.org>
21544
21545 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21546 (encode_coding_big5, encode_coding_charset): If coding requires safe
21547 encoding, produce a character specified by
21548 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21549
215502008-02-01 Dave Love <fx@gnu.org>
21551
21552 * xterm.c (XSetIMValues): Declare.
21553
21554 * process.c: Conditionally include sys/wait.h, pty.h.
21555
21556 * print.c (print_object): Fix print format for 64-bit systems.
21557
21558 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21559
21560 * buffer.c (emacs_strerror): Declare.
21561
21562 * fontset.c (Fclear_face_cache): Declare.
21563 (accumulate_font_info): Comment-out (unused).
21564 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21565 variables.
21566
21567 * character.h (string_escape_byte8): Declare.
21568
21569 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21570 unused vars.
21571 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21572 (Fmap_charset_chars): Doc fix.
21573
21574 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21575 (Fset_coding_system_priority, Fset_coding_system_priority)
21576 (Fdefine_coding_system_internal): Doc fix.
21577
215782008-02-01 Dave Love <fx@gnu.org>
21579
21580 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21581
215822008-02-01 Kenichi Handa <handa@m17n.org>
21583
21584 * character.c (string_escape_byte8): Make multibyte string with
21585 correct size.
21586
21587 * charset.c (Fmake_char): Delete unnecessary code.
21588
215892008-02-01 Kenichi Handa <handa@m17n.org>
21590
21591 * xfns.c (x_encode_text): Allocate coding.destination here, and
21592 call encode_coding_object with dst_object Qnil.
21593
21594 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21595 multibyte form correctly.
21596
21597 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21598 against Vfont_encoding_alist.
21599
21600 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21601 handling of charset list.
21602 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21603 (decode_coding_object): Move point to coding->dst_pos before
21604 calling post-read-conversion function.
21605 (encode_coding_object): Give correct arguments to
21606 pre-write-conversion. Ignore the return value of
21607 pre-write-conversion function. Pay attention to the case that
21608 pre-write-conversion changes the current buffer. If dst_object is
21609 Qt, even if coding->src_bytes is zero, allocate at least one byte
21610 to coding->destination.
21611
21612 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21613
21614 * charset.c (Fmake_char): Make it more backward compatible.
21615 (Fmap_charset_chars): Fix docstring.
21616
216172008-02-01 Dave Love <fx@gnu.org>
21618
21619 * coding.c: Doc fixes.
21620 (Fdefine_coding_system_alias): Use names, not symbols, in
21621 coding-system-alist.
21622
216232008-02-01 Kenichi Handa <handa@m17n.org>
21624
21625 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21626 of calling free_realized_face.
21627
216282008-02-01 Yong Lu <lyongu@asia-infonet.com>
21629
21630 * charset.c (read_hex): Don't treat SPC as a comment starter.
21631 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21632 (Fdecode_char): Fix typo.
21633
216342008-02-01 Kenichi Handa <handa@m17n.org>
21635
21636 * charset.h (struct charset): New member `code_space_mask'.
21637
21638 * coding.c (coding_set_source): Delete the local variable beg_byte.
21639 (encode_coding_charset, Fdefine_coding_system_internal):
21640 Delete the local variable charset.
21641 (Fdefine_coding_system_internal): Setup
21642 attrs[coding_attr_charset_valids] correctly.
21643
21644 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21645 member to check if CODE is valid or not.
21646 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21647 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21648 is within the range of charset->min_code and carset->max_code.
21649
216502008-02-01 Dave Love <fx@gnu.org>
21651
21652 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21653
21654 * dispextern.h (generate_ascii_font): Fix return type.
21655
21656 * xfaces.c (generate_ascii_font): Fix arg declaration.
21657
21658 * coding.c (coding_inherit_eol_type)
21659 (Fset_terminal_coding_system_internal)
21660 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21661
216622008-02-01 Kenichi Handa <handa@m17n.org>
21663
21664 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21665 multiple charsets correctly.
21666
216672008-02-01 Kenichi Handa <handa@m17n.org>
21668
21669 * search.c (boyer_moore): Fix handling of multibyte character
21670 translation.
21671
21672 * xdisp.c (display_mode_element): When the variable `elt' is
21673 changed, update `this' and `lisp_string'.
21674
216752008-02-01 Kenichi Handa <handa@m17n.org>
21676
21677 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21678
21679 * callproc.c (Fcall_process): Be sure to give the current buffer
21680 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21681
21682 * charset.c (struct charset_map_entries): New struct.
21683 (load_charset_map): Rename from parse_charset_map. New args
21684 entries and n_entries. Change caller.
21685 (load_charset_map_from_file): Rename from load_charset_map.
21686 Change caller. New arg control_flag. Call load_charset_map at
21687 the tail.
21688 (load_charset_map_from_vector): New function.
21689 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21690 (encode_char): If the charset is compact, change a character index
21691 to a code point.
21692
21693 * coding.c (coding_alloc_by_making_gap): Check the case that the
21694 source and destination are the same correctly.
21695 (decode_coding_raw_text): Set coding->consumed_char and
21696 coding->consumed to 0.
21697 (produce_chars): If coding->chars_at_source is nonzero, update
21698 coding->consumed_char and coding->consumed before calling
21699 alloc_destination.
21700 (Fdefine_coding_system_alias): Register ALIAS in
21701 Vcoding_system_alist.
21702 (syms_of_coding): Define `no-conversion' coding system at the tail.
21703
21704 * fileio.c (Finsert_file_contents): Set coding_system instead of
21705 val. If the current buffer is multibyte, always call
21706 decode_coding_gap.
21707
21708 * xfaces.c (try_font_list): Give higher priority to fontset's
21709 family than face's family.
21710
217112008-02-01 Kenichi Handa <handa@m17n.org>
21712
21713 * callproc.c (Fcall_process): Be sure to give the current buffer
21714 to decode_coding_c_string.
21715
21716 * xfaces.c (try_font_list): Give a family specified in a fontset
21717 higher priority than a family specified in a face.
21718
217192008-02-01 Kenichi Handa <handa@m17n.org>
21720
21721 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21722 Fix arguments to insert_from_buffer.
21723
21724 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21725
217262008-02-01 Kenichi Handa <handa@m17n.org>
21727
21728 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21729 (decode_coding_gap): Set coding->dst_multibyte correctly.
21730
217312008-02-01 Kenichi Handa <handa@m17n.org>
21732
21733 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21734 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21735 (encode_coding_utf_16): Substitute coding->default_char for
21736 non-Unicode characters.
21737 (decode_coding): Don't call record_insert here.
21738 (setup_coding_system): Initialize `surrogate' of
21739 coding->spec.utf_16 to 0.
21740 (EMIT_ONE_BYTE): Fix for multibyte case.
21741
21742 * insdel.c (insert_from_gap): Call record_insert.
21743
217442008-02-01 Kenichi Handa <handa@m17n.org>
21745
21746 * casefiddle.c (casify_region): Fix multibyte case.
21747
21748 * character.c (c_string_width): Add return type `int'.
21749 (char_string_with_unification): Delete arg ADVANCED.
21750
21751 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21752 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21753 (CHAR_STRING_ADVANCE): Make it do-while statement.
21754
21755 * chartab.c (sub_char_table_set_range): Optimize for the case
21756 DEPTH == 3. Add workaround code for a GCC optimization bug.
21757
21758 * charset.c (parse_charset_map): Remove an unused variable.
21759
21760 * coding.c: Delete unused variables.
21761
21762 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21763 earlier. If inserted is zero and the coding system doesn't
21764 require flushing, don't call decode_coding_gap.
21765
21766 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21767
217682008-02-01 Kenichi Handa <handa@m17n.org>
21769
21770 The following changes are for using Unicode as an internal
21771 character model, and use UTF-8 format for buffer/string
21772 representation.
21773
21774 * .gdbinit (xchartable): Adjust for the change of char table structure.
21775 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21776
21777 * Makefile.in (obj): Add character.o and chartab.o.
21778 (lisp, shortlisp): Remove utf-8.elc.
21779 (*.o): For many files, change dependency on charset.h to
21780 character.h, and add dependency on character.h.
21781 (character.o, chartab.o): New targets.
21782
21783 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21784 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21785 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21786 of "charset.h".
21787
21788 * dired.c, filelock.c: Include "character.h".
21789
21790 * alloc.c: Include "character.h" instead of "charset.h".
21791 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21792 (syms_of_alloc): Remove defsubr for Smake_char_table.
21793
21794 * buffer.c: Include "character.h" instead of "charset.h", don't
21795 include "coding.h".
21796 (Fset_buffer_multibyte): Adjust for UTF-8.
21797
21798 * buffer.h: EXFUN Fbuffer_live_p.
21799
21800 * callproc.c: Include "character.h" instead of "charset.h".
21801 (Fcall_process): Big change for the new code-conversion APIs.
21802
21803 * casetab.c: Include "character.h" instead of "charset.h".
21804 (set_canon, set_identity, shuffle): Adjust for the new
21805 map_char_table spec.
21806 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21807 accessing the char table structure.
21808
21809 * chartab.c: New file that implements char table.
21810
21811 * category.c: Include "character.h".
21812 (copy_category_entry): New function.
21813 (copy_category_table): Call map_char_table and copy_category_entry.
21814 (Fmake_category_table): Initialize all top-level slots.
21815 (char_category_set): New function.
21816 (modify_lower_category_set): Delete.
21817 (Fmodify_category_entry): Call char_table_ref_and_range.
21818
21819 * category.h (CATEGORY_SET): Just call char_category_set.
21820
21821 * ccl.c: Include "character.h".
21822 (Qccl, Qcclp): New variables.
21823 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21824 it's less than 256.
21825 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21826 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21827 and DST type.
21828 (ccl_driver): Change types of argument, adjust code accordingly.
21829 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21830 ccl_driver.
21831 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21832
21833 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21834 New members src_multibyte, dst_multibyte, consumed, and produced.
21835 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21836 (CODING_SPEC_CCL_PROGRAM): New macro.
21837 (ccl_driver): Update prototype.
21838 (Qccl, Qcclp, Fccl_program_p): Extern them.
21839 (CHECK_CCL_PROGRAM): New macro.
21840
21841 * character.c, character.h, chartab.c: New files.
21842
21843 * charset.c: Mostly re-written. Move character and multibyte sequence
21844 handling codes to character.c.
21845
21846 * charset.h: Mostly re-written. Move character and multibyte sequence
21847 handling codes to character.h.
21848
21849 * coding.c, coding.h: Mostly re-written.
21850
21851 * composite.c: Include "character.h" instead of "charset.h".
21852 (CHAR_WIDTH): Move to character.h.
21853 (HASH_KEY, HASH_VALUE): Delete.
21854
21855 * composite.h (enum composition_method): Change order of enumeration
21856 symbols.
21857
21858 * data.c: Include "character.h" instead of "charset.h".
21859 (Faref): Call CHAR_TABLE_REF for a char table.
21860 (Faset): Call CHAR_TABLE_SET for a char table.
21861
21862 * dispextern.h (free_realized_face, check_face_attribytes)
21863 (generate_ascii_font): Extern them.
21864 (free_realized_multibyte_face): Delete extern.
21865
21866 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21867 table structure.
21868
21869 * editfns.c: Include "character.h" instead of "charset.h".
21870 (Fchar_to_string): Always call CHAR_STRING.
21871
21872 * emacs.c (main): Call init_charset_once, init_charset,
21873 syms_of_chartab, and syms_of_character.
21874
21875 * fileio.c: Include "character.h" instead of "charset.h".
21876 (Finsert_file_contents): Big change for the new code-conversion API.
21877 (choose_write_coding_system, Fwrite_region): Likewise.
21878 (build_annotations_2): Delete.
21879 (e_write): Big change for the new code-conversion API.
21880
21881 * fns.c: Include "character.h" instead of "charset.h".
21882 (copy_sub_char_table): Move to chartab.c.
21883 (Fcopy_sequence): Call copy_char_table for a char table.
21884 (concat): Delete codes calling count_multibyte.
21885 (string_char_to_byte, string_byte_to_char): Adjust for the new
21886 multibyte form.
21887 (internal_equal): Adjust for the change of char table structure.
21888 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21889 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21890 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21891 (char_table_translate, optimize_sub_char_table)
21892 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21893 chartab.c.
21894 (char_table_ref_and_index): Delete.
21895 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21896 (Fmd5): Call preferred_coding_system instead of accessing
21897 Vcoding_category_list. Adjust for the new code-conversion API.
21898 (syms_of_fns): Move defsubr for char table related functions to
21899 chartab.c.
21900
21901 * fontset.c: Mostly re-written.
21902
21903 * fontset.h (struct font_info): Change type of the member encoding_type.
21904 (enum FONT_SPEC_INDEX): New enum.
21905 (fontset_font_pattern, fs_load_font): Update prototype.
21906 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21907
21908 * indent.c: Include "character.h" instead of "charset.h".
21909 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21910
21911 * insdel.c: Include "character.h" instead of "charset.h".
21912 (copy_text): Don't refer to Vnonascii_translation_table.
21913 (insert_from_gap): New function.
21914
21915 * keyboard.c: Include "character.h" instead of "charset.h".
21916 (command_loop_1): Never call direct_output_forward_char before
21917 a non-ASCII character.
21918 (read_char): If Vkeyboard_translate_table is a char table, always
21919 translate a character.
21920
21921 * keymap.c: Include "character.h".
21922 (store_in_keymap): Handle the case that IDX is a cons.
21923 (Fdefine_key): Handle the case that KEY is a cons and the car part
21924 is also a cons (range).
21925 (push_key_description): Adjust for the new character code.
21926 (describe_vector): Call describe_char_table for a char table.
21927 (describe_char_table): New function.
21928
21929 * keymap.h (describe_char_table): Extern it.
21930
21931 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21932 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21933 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21934 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21935 Delete.
21936 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21937 structure.
21938 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21939 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21940 (CHARTAB_SIZE_BITS_3): New macros.
21941 (chartab_size): Extern it.
21942 (struct Lisp_Char_Table): Re-design.
21943 (struct Lisp_Sub_Char_Table): New structure.
21944 (HASH_KEY, HASH_VALUE): Move from fns.c.
21945 (CHARACTERBITS): Define as 22.
21946 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21947 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21948 (GC_SUB_CHAR_TABLE_P): New macro.
21949 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21950 (code_convert_string_norecord): Deleted extern.
21951 (init_character_once, syms_of_character, init_charset)
21952 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21953
21954 * lread.c: Include "character.h".
21955 (read_multibyte): New arg NBYTES.
21956 (read_escape): Change the meaning of returned *BYTEREP.
21957 (to_multibyte): Delete.
21958 (read1): Adjust the handling of char table and string.
21959
21960 * print.c: Include "character.h" instead of "charset.h".
21961 (print_string): Convert 8-bit raw bytes to octal form by
21962 string_escape_byte8.
21963 (print_object): Adjust for the new multibyte form. Print 8-bit
21964 raw bytes always in octal form. Handle sub char table correctly.
21965
21966 * process.c: Include "character.h" instead of "charset.h".
21967 (read_process_output, send_process): Adjust for the new
21968 code-conversion API.
21969
21970 * puresize.h (BASE_PURESIZE): Increase.
21971
21972 * regex.c: Include "character.h" instead of "charset.h".
21973 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21974 (regex_compile): Accept a range whose starting and ending
21975 character have different leading bytes.
21976 (analyse_first): Adjust for the above change.
21977
21978 * search.c: Include "character.h" instead of "charset.h".
21979 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21980 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21981
21982 * syntax.c: Include "character.h" instead of "charset.h".
21983 (syntax_parent_lookup): Delete.
21984 (Fmodify_syntax_entry): Accept a cons as CHAR.
21985 (skip_chars): Adjust for the new multibyte form.
21986 (init_syntax_once): Call char_table_set_range instead of directly
21987 accessing the structure of a char table.
21988
21989 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21990 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21991 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21992 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21993
21994 * term.c: Include "buffer.h" and "character.h".
21995 (encode_terminal_code, write_glyphs): Adjust for the new
21996 code-conversion API.
21997 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21998
21999 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
22000
22001 * xdisp.c: Include "character.h".
22002 (get_next_display_element): Adjust for the new multibyte form.
22003 (disp_char_vector): Adjust for the new char table structure.
22004 (decode_mode_spec_coding): Adjust for the new structure of
22005 coding system.
22006 (decode_mode_spec): Adjust for the new code-conversion API.
22007
22008 * xfaces.c: Include "character.h" instead of "charset.h".
22009 (load_face_font): Adjust for the change of choose_face_font and
22010 FS_LOAD_FONT.
22011 (generate_ascii_font): New function.
22012 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22013 (set_font_frame_param): Adjust for the change of choose_face_font.
22014 (free_realized_face): Make it public.
22015 (free_realized_faces_for_fontset): Rename from
22016 free_realized_multibyte_face. Free also faces realized for ASCII.
22017 (choose_face_font): Change arguments. Adjust for the change of
22018 fontset_font_pattern and FS_LOAD_FONT.
22019
22020 * xfns.c: Include "character.h".
22021 (x_encode_text): Adjust for the new code-conversion API.
22022
22023 * xselect.c: Don't include "charset.h".
22024 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22025
22026 * xterm.c: Include "character.h".
22027 (x_encode_char): New argument CHARSET. Change caller.
22028 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22029 Call ENCODE_CHAR instead of SPLIT_CHAR.
22030 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22031 CHAR_WIDTH instead of CHARSET_WIDTH.
22032 (XTread_socket): Adjust for the new code-conversion API.
22033 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22034 (x_load_font): Adjust for the change of struct font.
22035
220362008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22037
22038 * xfaces.c (face_at_buffer_position): Remove unused vars.
22039
220402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22041
22042 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22043 Fix overflow checking.
22044
220452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22046
22047 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22048 Cancel previous change.
22049
220502008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22051
22052 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22053 ccl->eight_bit_control. Fix check for buffer overflow.
22054 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22055 (ccl_driver): Initialize extra_bytes to 0.
22056
220572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22058
22059 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22060 return it ORed with ctrl_modifier.
22061
220622008-01-29 Miles Bader <miles@gnu.org>
22063
22064 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22065
220662008-01-28 Jason Rumney <jasonr@gnu.org>
22067
22068 * w32.c (stat): Don't double check for networked drive.
22069
220702008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22071
22072 * window.c (run_window_configuration_change_hook): New function.
22073 Code extracted from set_window_buffer. Set the selected frame.
22074 (set_window_buffer): Use it.
22075 * window.h (run_window_configuration_change_hook): Declare.
22076 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22077
22078 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22079
220802008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22081
22082 * Makefile.in: Remove references to unused macros.
22083
220842008-01-26 Eli Zaretskii <eliz@gnu.org>
22085
22086 * w32.c (g_b_init_get_sid_sub_authority)
22087 (g_b_init_get_sid_sub_authority_count): New static variables.
22088 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22089 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22090 (init_user_info): Use them to retrieve uid and gid.
22091 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22092 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22093 st_uid and st_gid of the file.
22094
220952008-01-26 Jason Rumney <jasonr@gnu.org>
22096
22097 * w32.c (logon_network_drive): New function.
22098 (stat): Use it.
22099
221002008-01-26 Chong Yidong <cyd@stupidchicken.com>
22101
22102 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22103 invisible text covered with an ellipsis.
22104
221052008-01-25 Richard Stallman <rms@gnu.org>
22106
22107 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22108 jump back to beginning. Move some other initializations after that.
22109 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22110 New variables.
22111 (syms_of_xdisp): Init them.
22112
22113 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22114
22115 * buffer.c (reset_buffer_local_variables):
22116 Implement `permanent-local-hook'.
22117 (Qpermanent_local_hook): New variable.
22118 (syms_of_buffer): Init and staticpro it.
22119
221202008-01-25 Michael Albinus <michael.albinus@gmx.de>
22121
22122 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22123
221242008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22125
22126 * fns.c (Fclrhash): Return TABLE.
22127
221282008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22129
22130 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22131 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22132 is set even without positional changes.
22133 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22134
22135 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22136
221372008-01-23 Jason Rumney <jasonr@gnu.org>
22138
22139 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22140
22141 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22142 the unicode range available in MULE by locale-coding-system.
22143 Improve dbcs lead byte detection. Set event timestamp and modifiers
22144 earlier.
22145
221462008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22147
22148 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22149 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22150 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22151 when used on child processes.
22152
221532008-01-21 Michael Albinus <michael.albinus@gmx.de>
22154
22155 * dbusbind.c (Fdbus_method_return_internal): Rename from
22156 Fdbus_method_return.
22157 (Fdbus_unregister_object): Move to dbus.el.
22158 (Fdbus_call_method, Fdbus_method_return_internal)
22159 (Fdbus_send_signal): Improve debug messages.
22160
221612008-01-20 Martin Rudalics <rudalics@gmx.at>
22162
22163 * undo.c (undo_inhibit_record_point): New variable.
22164 (syms_of_undo): Initialize it.
22165 (record_point): Don't record point when undo_inhibit_record_point
22166 is set.
22167
221682008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22169
22170 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22171
22172 * xdisp.c (Qauto_hscroll_mode): New var.
22173 (syms_of_xdisp): Initialize it.
22174 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22175 window's buffer.
22176 (hscroll_windows): Don't check automatic_hscrolling_p here.
22177
22178 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22179 vscroll if we're setting window-buffer to the value it already has.
22180
221812008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22182
22183 * m/intel386.h: Remove references to XENIX.
22184
221852008-01-17 Andreas Schwab <schwab@suse.de>
22186
22187 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22188 instead of HAVE_X86_64_LIB64_DIR.
22189 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22190
221912008-01-17 Glenn Morris <rgm@gnu.org>
22192
22193 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22194 to HAVE_X86_64_LIB64_DIR.
22195
221962008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22197
22198 * s/irix3-3.h:
22199 * s/irix4-0.h:
22200 * s/386-ix.h:
22201 * s/domain.h:
22202 * s/hpux9-x11r4.h:
22203 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22204
22205 * sysdep.c: Remove code containing references to symbols defined
22206 by unsupported systems.
22207
222082008-01-16 Glenn Morris <rgm@gnu.org>
22209
22210 * coding.c (select-safe-coding-system-function): Doc fix.
22211
222122008-01-15 Glenn Morris <rgm@gnu.org>
22213
22214 * config.in: Revert 2008-01-13 change: this is a generated file.
22215
222162008-01-13 Tom Tromey <tromey@redhat.com>
22217
22218 * lisp.h: Fix typo.
22219
222202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22221
22222 * m/sequent-ptx.h:
22223 * m/sequent.h:
22224 * s/ptx.h:
22225 * s/ptx4-2.h:
22226 * s/ptx4.h: Remove files for systems no longer supported.
22227
22228 * callproc.c (Fcall_process): Fix previous change.
22229
222302008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22231
22232 * unexsunos4.c: Remove file, system not supported anymore.
22233
22234 * m/mips.h:
22235 * m/intel386.h:
22236 * callproc.c:
22237 * config.in:
22238 * ecrt0.c:
22239 * emacs.c:
22240 * fileio.c:
22241 * frame.c:
22242 * getpagesize.h:
22243 * keyboard.c:
22244 * lread.c:
22245 * process.c:
22246 * puresize.h:
22247 * sysdep.c:
22248 * systty.h:
22249 * syswait.h:
22250 * unexec.c:
22251 * xdisp.c:
22252 * alloc.c: Remove code containing references to symbols defined by
22253 unsupported systems.
22254
222552008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22256
22257 * coding.c (detect_coding_mask): Fix previous change.
22258
222592008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22260
22261 * coding.c (detect_coding_iso2022): New arg
22262 latin_extra_code_state. Allow Latin extra codes only
22263 when *latin_extra_code_state is nonzero.
22264 (detect_coding_mask): If there is a NULL byte, detect the encoding
22265 as UTF-16 or binary. If Latin extra codes exist, detect the
22266 encoding as ISO-2022 only when there's no other proper encoding is
22267 found.
22268
222692008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22270
22271 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22272 #ifdef MAC_OS.
22273
222742008-01-08 Richard Stallman <rms@gnu.org>
22275
22276 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22277
222782008-01-06 Nick Roberts <nickrob@snap.net.nz>
22279
22280 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22281 menu bar in parentheses.
22282
222832008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22284
22285 * m/7300.h:
22286 * m/acorn.h:
22287 * m/alliant-2800.h:
22288 * m/alliant.h:
22289 * m/alliant1.h:
22290 * m/alliant4.h:
22291 * m/altos.h:
22292 * m/amdahl.h:
22293 * m/apollo.h:
22294 * m/att3b.h:
22295 * m/aviion-intel.h:
22296 * m/aviion.h:
22297 * m/celerity.h:
22298 * m/clipper.h:
22299 * m/cnvrgnt.h:
22300 * m/convex.h:
22301 * m/cydra5.h:
22302 * m/delta88k.h:
22303 * m/dpx2.h:
22304 * m/dual.h:
22305 * m/elxsi.h:
22306 * m/f301.h:
22307 * m/gould-np1.h:
22308 * m/gould.h:
22309 * m/i860.h:
22310 * m/ibmps2-aix.h:
22311 * m/ibmrt-aix.h:
22312 * m/ibmrt.h:
22313 * m/irist.h:
22314 * m/is386.h:
22315 * m/isi-ov.h:
22316 * m/mega68.h:
22317 * m/mg1.h:
22318 * m/news-r6.h:
22319 * m/news-risc.h:
22320 * m/news.h:
22321 * m/nh3000.h:
22322 * m/nh4000.h:
22323 * m/ns16000.h:
22324 * m/ns32000.h:
22325 * m/nu.h:
22326 * m/orion.h:
22327 * m/orion105.h:
22328 * m/paragon.h:
22329 * m/pfa50.h:
22330 * m/plexus.h:
22331 * m/pyramid.h:
22332 * m/pyrmips.h:
22333 * m/sh3el.h:
22334 * m/sps7.h:
22335 * m/sr2k.h:
22336 * m/stride.h:
22337 * m/sun1.h:
22338 * m/sun2.h:
22339 * m/sun3-68881.h:
22340 * m/sun3-fpa.h:
22341 * m/sun3-soft.h:
22342 * m/sun3.h:
22343 * m/sun386.h:
22344 * m/symmetry.h:
22345 * m/tad68k.h:
22346 * m/tahoe.h:
22347 * m/targon31.h:
22348 * m/tek4300.h:
22349 * m/tekxd88.h:
22350 * m/tower32.h:
22351 * m/tower32v3.h:
22352 * m/ustation.h:
22353 * m/wicat.h:
22354 * m/xps100.h:
22355 * s/cxux.h:
22356 * s/cxux7.h:
22357 * s/dgux.h:
22358 * s/dgux4.h:
22359 * s/dgux5-4-3.h:
22360 * s/dgux5-4r2.h:
22361 * s/esix.h:
22362 * s/esix5r4.h:
22363 * s/hiuxmpp.h:
22364 * s/hiuxwe2.h:
22365 * s/iris3-5.h:
22366 * s/iris3-6.h:
22367 * s/isc2-2.h:
22368 * s/isc3-0.h:
22369 * s/isc4-0.h:
22370 * s/isc4-1.h:
22371 * s/newsos5.h:
22372 * s/newsos6.h:
22373 * s/osf1.h:
22374 * s/osf5-0.h:
22375 * s/riscix1-1.h:
22376 * s/riscix12.h:
22377 * s/sco4.h:
22378 * s/sco5.h:
22379 * s/sunos4-0.h:
22380 * s/sunos4-1.h:
22381 * s/sunos413.h:
22382 * s/sunos4shr.h:
22383 * s/umax.h:
22384 * s/unipl5-2.h:
22385 * s/xenix.h:
22386 * cxux-crt0.s:
22387 * unexapollo.c:
22388 * unexconvex.c:
22389 * unexenix.c:
22390 * unexsni.c: Remove files for systems no longer supported.
22391
22392 * m/intel386.h: Remove references to unsupported systems.
22393
22394 * w32.c (get_emacs_configuration): Remove reference to i860.
22395
22396 * sysdep.c: Remove dead code.
22397
223982008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22399
22400 * s/rtu.h:
22401 * m/masscomp.h: Remove files. Platform is obsolete.
22402
224032008-01-04 Michael Albinus <michael.albinus@gmx.de>
22404
22405 * dbusbind.c (Fdbus_method_return): New function.
22406 (xd_read_message): Add the serial number to the event.
22407 (Fdbus_register_method): Activate the function.
22408
224092008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22410
22411 * keyboard.c (read_key_sequence): Fix typo.
22412
224132008-01-03 Michael Albinus <michael.albinus@gmx.de>
22414
22415 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22416 (xd_signature, xd_append_arg): Handle element type detection for
22417 empty arrays.
22418 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22419 SDATA () calls; this must be solved more general.
22420 (Fdbus_register_signal): Use SBYTES instead of strlen.
22421
224222008-01-03 Magnus Henoch <magnus@zemdatav>
22423
22424 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22425 unsigned int for byte values (necessary for big-endian platform).
22426 (Fdbus_call_method): Handle the case of no returned arguments.
22427
224282007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22429
22430 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22431
224322007-12-31 Magnus Henoch <mange@freemail.hu>
22433
22434 * dbusbind.c (xd_signature): Signature of variant is just "v".
22435
224362007-12-30 Michael Albinus <michael.albinus@gmx.de>
22437
22438 * dbusbind.c: Fix several errors and compiler warnings.
22439 Reported by Tom Tromey <tromey@redhat.com>.
22440 (XD_ERROR, XD_DEBUG_MESSAGE)
22441 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22442 (xd_append_arg): Part for basic D-Bus types rewritten.
22443 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22444 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22445 appropriate.
22446 (xd_read_message): Return Qnil. Don't signal an error; it is not
22447 useful during event reading.
22448 (Fdbus_register_signal): Signal an error if the check for
22449 FUNCTIONP fails.
22450 (Fdbus_register_method): New function. The implementation is not
22451 complete, the call of the function signals an error therefore.
22452 (Fdbus_unregister_object): New function, renamed from
22453 Fdbus_unregister_signal. The initial check signals an error, if
22454 the object is not well formed.
22455
224562007-12-30 Richard Stallman <rms@gnu.org>
22457
22458 * textprop.c (get_char_property_and_overlay):
22459 Signal error if POSITION is out of range in a buffer.
22460
224612007-12-29 Martin Rudalics <rudalics@gmx.at>
22462
22463 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22464 because the original parameters are in pure storage now.
22465
224662007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22467
22468 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22469
224702007-12-22 Eli Zaretskii <eliz@gnu.org>
22471
22472 * callint.c (syms_of_callint) <command-history>: Add reference to
22473 history-length in the doc string.
22474
224752007-12-17 Jason Rumney <jasonr@gnu.org>
22476
22477 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22478 before passing as wParam.
22479
224802007-12-22 Michael Albinus <michael.albinus@gmx.de>
22481
22482 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22483 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22484 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22485 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22486 as number.
22487 (Fdbus_call_method): Fix docstring.
22488
224892007-12-21 Michael Albinus <michael.albinus@gmx.de>
22490
22491 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22492 New macros.
22493 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22494 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22495 Simplify.
22496 (xd_signature): New function.
22497 (xd_append_arg): Compute also signatures. Major rewrite.
22498 (xd_retrieve_arg): Make debug messages friendly.
22499 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22500 Check for signatures of arguments.
22501
225022007-12-19 Michael Albinus <michael.albinus@gmx.de>
22503
22504 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22505 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22506 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22507 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22508 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22509 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22510 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22511 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22512 (xd_retrieve_value): Remove. Functionality included in ...
22513 (xd_append_arg): New function.
22514 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22515
225162007-12-16 Michael Albinus <michael.albinus@gmx.de>
22517
22518 * dbusbind.c (top): Include <stdio.h>.
22519 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22520 dbus_message_new_method_call and dbus_message_new_signal.
22521 (Fdbus_register_signal): Rename unique_name to uname.
22522 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22523 non-existing unique name. Fix typos in matching rule. Return an
22524 object which is useful in Fdbus_unregister_signal.
22525 (Fdbus_unregister_signal): Reimplementation, in order to remove
22526 only the corresponding entry.
22527 (Vdbus_registered_functions_table): Change the order of entries.
22528 Apply these changes in xd_read_message and Fdbus_register_signal.
22529
225302007-12-16 Andreas Schwab <schwab@suse.de>
22531
22532 * fileio.c (Finsert_file_contents): Fix overflow check to not
22533 depend on undefined integer overflow.
22534
225352007-12-14 Jason Rumney <jasonr@gnu.org>
22536
22537 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22538 for characters above 127.
22539
225402007-12-13 Jason Rumney <jasonr@gnu.org>
22541
22542 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22543 before dereferencing array.
22544 (lookup_vk_code): Remove zero comparison.
22545
225462007-12-14 Michael Albinus <michael.albinus@gmx.de>
22547
22548 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22549 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22550 Use `unsigned int' instead of `uint'.
22551 (xd_read_message, Fdbus_register_signal): Split expressions into
22552 multiple lines before operators "&&" and "||", according to the
22553 GNU Coding Standards.
22554
225552007-12-14 Eli Zaretskii <eliz@gnu.org>
22556
22557 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22558
225592007-12-12 Juri Linkov <juri@jurta.org>
22560
22561 * buffer.c (Frename_buffer): In interactive spec replace
22562 `read-buffer' with `read-string' that uses `buffer-name-history'
22563 as history, and the current buffer's name as default.
22564
225652007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22566
22567 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22568 manipulating the backtrace manually.
22569 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22570 (struct backtrace, backtrace_list): Remove.
22571 (command_loop_1): Remove dead var `no_direct'.
22572
22573 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22574 preserve non-built-in buffer-local variables.
22575 (Fkill_all_local_variables): Don't re-create&re-set permanent
22576 buffer-local variables.
22577
225782007-12-09 Juri Linkov <juri@jurta.org>
22579
22580 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22581 Lisp code that uses `read-buffer' with current buffer as default.
22582
225832007-12-08 Michael Albinus <michael.albinus@gmx.de>
22584
22585 * dbusbind.c (xd_read_message): Generate an event for every
22586 registered handler. There might be several handlers registered
22587 for the same signal.
22588 (Fdbus_register_signal): Don't overwrite a registration for the
22589 same signal. Add a new registration if handlers are different.
22590 (Vdbus_registered_functions_table): Rework doc string.
22591
225922007-12-07 Michael Albinus <michael.albinus@gmx.de>
22593
22594 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22595 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22596 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22597 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22598 Unify argument lists.
22599 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22600 arguments and hash table keys. Use unique name for service.
22601 (Fdbus_unregister_signal): Remove checks.
22602 (Vdbus_registered_functions_table): Fix doc string.
22603
226042007-12-05 Magnus Henoch <mange@freemail.hu>
22605
22606 * process.c (make_process): Initialize pty_flag to 0.
22607
226082007-12-05 Jason Rumney <jasonr@gnu.org>
22609
22610 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22611 specified XBMs.
22612
226132007-12-05 Richard Stallman <rms@gnu.org>
22614
22615 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22616
226172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22618
22619 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22620 New variable.
22621 (mac_try_close_socket) [MAC_OSX]: New function.
22622 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22623 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22624
22625 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22626 Use mac_try_close_socket.
22627
226282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22629
22630 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22631 reloc_base.
22632 (copy_dysymtab): Compute relocation base here.
22633 (rebase_reloc_address) [__ppc64__]: New function.
22634 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22635 changed.
22636
226372007-12-05 Jason Rumney <jasonr@gnu.org>
22638
22639 * w32proc.c (sys_spawnve): Quote args with wildcards.
22640
226412007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22642
22643 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22644 __objc_* sections.
22645 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22646
226472007-12-05 Michael Albinus <michael.albinus@gmx.de>
22648
22649 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22650 Move check for Vdbus_registered_functions_table to
22651 xd_read_queued_messages.
22652 (xd_read_queued_messages): Protect xd_read_message calls by
22653 internal_condition_case_1.
22654
226552007-12-04 Michael Albinus <michael.albinus@gmx.de>
22656
22657 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22658 Qdbus_system_bus and Qdbus_session_bus, respectively.
22659 (Vdbus_intern_symbols): Remove.
22660 (Vdbus_registered_functions_table): New hash table.
22661 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22662 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22663 Rewrite in order to manage registered functions by hash table
22664 Vdbus_registered_functions_table.
22665
226662007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22667
22668 * xterm.c: Update URL to Window Manager Specification in comment.
22669
226702007-12-02 Michael Albinus <michael.albinus@gmx.de>
22671
22672 * config.in (HAVE_DBUS): Add.
22673
22674 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22675 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22676 (obj): Add $(DBUS_OBJ).
22677 (LIBES): Add $(DBUS_LIBS).
22678 (dbusbind.o): New target.
22679
22680 * dbusbind.c: New file.
22681
22682 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22683
22684 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22685 (Qdbus_event): New Lisp symbol.
22686 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22687 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22688 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22689
22690 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22691
226922007-12-01 Richard Stallman <rms@gnu.org>
22693
22694 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22695
226962007-11-30 Jason Rumney <jasonr@gnu.org>
22697
22698 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22699 (w32con_reset_terminal_modes): Clear screen buffer.
22700 (w32_face_attributes): Don't use color indexes that are out of range.
22701 Only reverse the default colors.
22702
22703 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22704 WINDOWSNT.
22705
22706 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22707
227082007-11-29 Jason Rumney <jasonr@gnu.org>
22709
22710 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22711 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22712 if the terminal colors are initialized.
22713 (unspecified_fg, unspecified_bg): Remove unused declarations.
22714
227152007-11-29 Andreas Schwab <schwab@suse.de>
22716
22717 * keyboard.c (apply_modifiers): Fix typo.
22718
227192007-11-29 Richard Stallman <rms@gnu.org>
22720
22721 * keymap.c (Fcurrent_local_map): Doc fix.
22722
227232007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22724
22725 * s/gnu-kfreebsd.h: New file.
22726
227272007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22728
22729 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22730 Don't cast redundantly.
22731
22732 * keyboard.c (KEY_TO_CHAR): New macro.
22733 (parse_modifiers, apply_modifiers): Accept integer arguments.
22734 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22735 for chars and symbol keys.
22736 After doing such remapping, apply function-key-map again.
22737
227382007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22739
22740 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22741 compiled anymore.
22742
227432007-11-26 Andreas Schwab <schwab@suse.de>
22744
22745 * process.c (list_processes_1): Fix indentation level of the
22746 command column.
22747
227482007-11-23 Andreas Schwab <schwab@suse.de>
22749
22750 * editfns.c (Fformat): Handle %c specially since it requires the
22751 argument to be of type int.
22752
227532007-11-23 Markus Triska <markus.triska@gmx.at>
22754
22755 * emacs.c (main): Call init_editfns before init_process, since
22756 init_process sets Vprocess_connection_type depending on OS release.
22757
227582007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22759
22760 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22761 (find_symbol_value): Use do_symval_forwarding.
22762
22763 * data.c (set_internal): Set the value in the `cons-cell' (for
22764 Buffer_Local_values) not only for frame-local variables.
22765
227662007-11-22 Andreas Schwab <schwab@suse.de>
22767
22768 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22769 values to sprintf.
22770 * keymap.c (Fsingle_key_description): Likewise.
22771 * print.c (print_object): Likewise.
22772
227732007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22774
22775 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22776 file for image is nil.
22777
227782007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22779
22780 * term.c: Include stdarg.h.
22781 (fatal): Implement using varargs.
22782 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22783
227842007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22785
22786 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22787 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22788 Update call to buffer_slot_type_mismatch.
22789 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22790 (buffer_slot_type_mismatch): Update.
22791 * buffer.c (buffer_local_types): Remove.
22792 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22793 (defvar_per_buffer): Set the type in the buffer_objfwd.
22794
227952007-11-21 Jason Rumney <jasonr@gnu.org>
22796
22797 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22798 CreateFileMapping returns NULL on failure.
22799
228002007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22801
22802 * search.c (Fset_match_data): Remove the `evaporate' feature.
22803 (unwind_set_match_data): Don't use the `evaporate' feature.
22804
228052007-11-21 Jason Rumney <jasonr@gnu.org>
22806
22807 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22808
22809 * w32console.c (w32con_write_glyphs): Remove unused variables.
22810
228112007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22812
22813 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22814
22815 * s/darwin.h (MULTI_KBOARD): Remove.
22816
22817 * macfns.c (x_create_tip_frame, Fx_create_frame)
22818 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22819
228202007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22821
22822 * buffer.c (Fbuffer_local_value): Remove redundant test.
22823 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22824 than in `current-buffer' to match the comment.
22825 Do the swap using swap_in_global_binding.
22826
22827 * data.c (store_symval_forwarding, set_internal):
22828 * eval.c (specbind): Remove dead code.
22829
22830 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22831 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22832 Since we do not want to see internal Lisp_*fwd objects here.
22833
228342007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22835
22836 * sysdep.c (init_system_name): Use getaddrinfo if available.
22837
22838 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22839 (x_scroll_bar_note_movement): start, end, with, height in struct
22840 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22841
228422007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22843
22844 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22845
228462007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22847
22848 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22849 This undoes Richard's change of 14-Oct-2002.
22850
22851 * alloc.c (allocate_other_vector):
22852 * lisp.h (allocate_other_vector): Remove.
22853
22854 * window.c (struct save_window_data): Move non-lisp data to the end
22855 and make it `int' rather than Lisp_Object.
22856 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22857 Done wrap/unwrap integer values.
22858 (Fset_window_configuration, compare_window_configurations):
22859 Update use of fields to their new types.
22860
22861 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22862 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22863 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22864 (SET_SCROLL_BAR_X_WINDOW): Remove.
22865 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22866 Access the new x_window field directly.
22867 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22868 Don't wrap/unwrap integers into Lisp_Objects.
22869 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22870 (x_scroll_bar_report_motion):
22871 Don't wrap/unwrap integers into Lisp_Objects.
22872 (x_term_init): Use SDATA.
22873 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22874 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22875 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22876 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22877 * xfns.c (x_set_background_color):
22878 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22879 Access the new x_window field directly.
22880
22881 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22882 (allocate_pseudovector): Make non-static.
22883
22884 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22885 (allocate_pseudovector): Declare.
22886 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22887
228882007-11-15 Andreas Schwab <schwab@suse.de>
22889
22890 * editfns.c (Fformat): Correctly format EMACS_INT values.
22891 Also take precision into account when formatting an integer.
22892
22893 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22894
228952007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22896
22897 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22898 (syms_of_keyboard): Defsubr it.
22899
22900 * data.c (swap_in_global_binding): Fix longstanding bug where
22901 store_symval_forwarding was not called with the right second argument,
22902 thus causing objfwd-ing from being dropped.
22903
229042007-11-14 Juanma Barranquero <lekktu@gmail.com>
22905
22906 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22907 (Fx_display_pixel_height, Fx_display_planes)
22908 (Fx_display_color_cells, Fx_server_max_request_size)
22909 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22910 (Fx_display_visual_class, Fx_display_save_under):
22911 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22912 (Fx_display_pixel_height, Fx_display_planes)
22913 (Fx_display_color_cells, Fx_server_max_request_size)
22914 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22915 (Fx_display_mm_height, Fx_display_mm_width)
22916 (Fx_display_backing_store, Fx_display_visual_class)
22917 (Fw32_select_font, Fx_display_save_under):
22918 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
22919 (Fx_display_pixel_height, Fx_display_planes)
22920 (Fx_display_color_cells, Fx_server_max_request_size)
22921 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22922 (Fx_display_save_under): Fix typos in docstrings.
22923
229242007-11-14 Juanma Barranquero <lekktu@gmail.com>
22925
22926 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22927 corresponding to deleted entries; they are an implementation detail.
22928 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22929 Remove variables.
22930 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22931 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22932 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22933 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22934 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22935 (Fw32_define_rgb_color, Fw32_load_color_file)
22936 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22937 Fix typos in docstrings.
22938 (Fx_server_version): Reflow docstring.
22939 (Fw32_shell_execute): Doc fixes.
22940
229412007-11-13 Juanma Barranquero <lekktu@gmail.com>
22942
22943 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22944 if w32_parse_hot_key returned nil.
22945
229462007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22947
22948 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22949
229502007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22951
aac0c6e3
MR
22952 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22953
22954 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22955
22956 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22957 Remove W32_SCROLL_BAR_CLICK_EVENT.
22958
22959 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22960 Add MULTIMEDIA_KEY_EVENT.
22961
22962 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22963 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22964 (make_lispy_event) [WINDOWSNT]: Use it to translate
22965 MULTIMEDIA_KEY_EVENT.
22966
22967 * w32term.h (WM_APPCOMMAND): Define if not already.
22968 (GET_APPCOMMAND_LPARAM): Likewise.
22969
22970 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22971 WM_APPCOMMAND.
22972
22973 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22974 (syms_of_w32fns): Export and initialize it.
22975 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22976
229772007-11-09 Chong Yidong <cyd@stupidchicken.com>
22978
22979 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22980 twice.
22981
22982 * xdisp.c (handle_face_prop): Fix last change.
22983
229842007-11-09 Richard Stallman <rms@gnu.org>
22985
22986 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22987 not just for after-strings and before-strings.
22988 Call face_for_overlay_string and pass the overlay to it.
22989 (handle_display_prop): Determine whether property came from an overlay.
22990 Pass OVERLAY arg to handle_single_display_spec.
22991 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22992 (load_overlay_strings): Fill in it->string_overlays.
22993 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22994
22995 * xfaces.c (face_for_overlay_string): Function renamed from
22996 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22997
22998 * dispextern.h (struct it): New elt string_overlays.
22999 New elt from_overlay, also in stack.
23000 Rearrange a few elements.
23001 (face_for_overlay_string): Decl renamed from
23002 face_at_buffer_position_no_overlays, and add argument.
23003
230042007-11-09 Richard Stallman <rms@gnu.org>
23005
23006 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23007 to get the base face for an overlay string.
23008
23009 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23010
23011 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23012
23013 * xdisp.c (handle_stop): Move some code out of loop.
23014
230152007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23016
23017 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23018 Fix conversion from Lisp object to ATSUFontID.
23019
230202007-11-09 Jason Rumney <jasonr@gnu.org>
23021
23022 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23023
230242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23025
23026 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23027 Don't assume regions are aligned to page boundary.
23028 (print_load_command_name): Add LC_UUID if defined.
23029
230302007-11-09 Richard Stallman <rms@gnu.org>
23031
23032 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23033
230342007-11-07 Jason Rumney <jasonr@gnu.org>
23035
23036 * s/windows95.h: Remove.
23037
230382007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23039
23040 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23041 abort with a message on unhandled store_type values.
23042
230432007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23044
23045 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23046 Remove HAVE_X11R5 and HAVE_X11R4.
23047
230482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23049
23050 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23051
230522007-11-01 Johan Bockgård <bojohan@gnu.org>
23053
23054 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23055 Don't set s->stippled_p here, since it has already been set by
23056 x_set_glyph_string_gc from x_draw_glyph_string.
23057
230582007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23059
23060 * sunfns.c: Remove file.
23061
23062 * m/sun386.h:
23063 * m/sun2.h:
23064 * m/sparc.h: Remove Sun windows code.
23065
230662007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23067
23068 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23069 (init_keyboard): Set current_kboard's window-system to nil.
23070 (tty_read_avail_input): Typo.
23071 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23072
230732007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23074
23075 * s/usg5-4.h:
23076 * s/usg5-3.h:
23077 * s/ptx.h:
23078 * m/is386.h:
23079 * m/ibmps2-aix.h:
23080 * Makefile.in: Remove all mentions of X10.
23081
23082 * dispnew.c (syms_of_display): Don't mention version 10.
23083
230842007-10-28 Juanma Barranquero <lekktu@gmail.com>
23085
23086 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23087 ($(BLD)/abbrev.$(O)): Remove.
23088
230892007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23090
23091 Rewrite abbrev.c in Elisp.
23092 * image.c (Qcount): Don't declare as extern.
23093 (syms_of_image): Initialize and staticpro `Qcount'.
23094 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23095 * emacs.c (main): Don't call syms_of_abbrev.
23096 * Makefile.in (obj): Remove abbrev.o.
23097 (abbrev.o): Remove.
23098 * abbrev.c: Remove.
23099
231002007-10-26 Martin Rudalics <rudalics@gmx.at>
23101
23102 * window.c (window_min_size_2): Don't count header-line.
23103
231042007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23105
23106 * frame.h (struct frame): Move all bit fields after the first bit
23107 field to take advantage of the available space. Group all the
23108 chars together to reduce wasted space due to padding.
23109
231102007-10-26 Juanma Barranquero <lekktu@gmail.com>
23111
23112 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23113
23114 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23115 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23116 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23117 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23118 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23119 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23120 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23121 (last_marked, mark_object_loop_halt): Make static.
23122
23123 * frame.c (syms_of_frame) <delete-frame-functions>:
23124 Fix typo in docstring.
23125
231262007-10-25 Juanma Barranquero <lekktu@gmail.com>
23127
23128 * w32.c (init_environment): Fix tiny memory leak.
23129 (w32_get_resource): Remove unused variable `ok'.
23130
231312007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23132
23133 Make `window-system' into a keyboard-local variable (rather than
23134 frame-local as done originally by multi-tty).
23135
23136 * keyboard.h (struct kboard): Add Vwindow_system.
23137 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23138 (mark_kboards): Mark Vwindow_system.
23139
23140 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23141 (init_display): Don't set the obsolete `window-system' frame-param.
23142
23143 * xterm.c (x_term_init):
23144 * w32term.c (w32_create_terminal):
23145 * term.c (init_tty): Set Vwindow_system.
23146 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23147 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23148
23149 * xfns.c (Fx_create_frame, x_create_tip_frame):
23150 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23151 * macfns.c (Fx_create_frame):
23152 Don't set the obsolete `window-system' frame-param.
23153
23154 * frame.h (Qwindow_system): Remove.
23155 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23156 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23157
231582007-10-24 Richard Stallman <rms@gnu.org>
23159
23160 * frame.c (x_figure_window_size): For fullscreen case,
23161 set USPosition | PPosition without clobbering rest of window_prompting.
23162
23163 * keyboard.c (Fcurrent_idle_time): Doc fix.
23164
23165 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23166
231672007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23168
23169 * process.c (unwind_request_sigio): Only define if __ultrix__.
23170
23171 * callproc.c (child_setup): Remove spurious *.
23172
23173 * lisp.h (Fget_text_property): Declare.
23174 (have_menus_p): Declare it here rather than in sys-dep header files.
23175 * macterm.h (have_menus_p):
23176 * msdos.h (have_menus_p):
23177 * xterm.h (have_menus_p): Remove.
23178
23179 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23180 (Fmake_variable_frame_local): Just check the variable's const-ness
23181 rather than checking nil or t.
23182
231832007-10-22 Jason Rumney <jasonr@gnu.org>
23184
23185 * w32fns.c: Include math.h.
23186 (w32_abort): Declaration moved to nt/config.nt.
23187
23188 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23189 (abort): Redefinition moved to nt/config.nt.
23190
23191 * m/windowsnt.h: Remove.
23192
231932007-10-22 Juanma Barranquero <lekktu@gmail.com>
23194
23195 * emacs.c (Fdump_emacs): Fix typo in message.
23196 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23197 <installation-directory>: Reflow docstring.
23198
231992007-10-22 Juri Linkov <juri@jurta.org>
23200
23201 * minibuf.c: Allow minibuffer default to be a list of default values.
23202 With empty input use the first element of this list as returned default.
23203 (string_to_object)
23204 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23205 (read_minibuf): If defalt is cons, set histstring to its car.
23206 (Fread_string): If default_value is cons, set val to its car.
23207 (Fread_buffer): If def is cons, use its car.
23208 (Fcompleting_read): If defalt is cons, set val to its car.
23209
232102007-10-21 Michael Albinus <michael.albinus@gmx.de>
23211
23212 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23213
232142007-10-20 Juanma Barranquero <lekktu@gmail.com>
23215
23216 * doc.c (Fdocumentation): Check for advice in all cases.
23217
232182007-10-19 Chong Yidong <cyd@stupidchicken.com>
23219
23220 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23221
232222007-10-19 Richard Stallman <rms@gnu.org>
23223
23224 * doc.c (Fdocumentation): Check for and handle an advised function.
23225
232262007-10-19 Juanma Barranquero <lekktu@gmail.com>
23227
23228 * process.c (Fset_process_filter): Doc fix.
23229
232302007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23231
23232 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23233 which caused key-translation-map to applied repeatedly (thus breaking
23234 double-mode).
23235
232362007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23237
23238 * xselect.c (x_own_selection, x_handle_selection_clear)
23239 (x_clear_frame_selections):
23240 * w32menu.c (list_of_panes, list_of_items):
23241 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23242 * textprop.c (validate_plist, interval_has_all_properties)
23243 (interval_has_some_properties, interval_has_some_properties_list)
23244 (add_properties, text_property_list):
23245 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23246 * minibuf.c (Fassoc_string):
23247 * macselect.c (x_own_selection, x_clear_frame_selections)
23248 (Fx_disown_selection_internal):
23249 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23250 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23251
232522007-10-17 Chong Yidong <cyd@stupidchicken.com>
23253
23254 * process.c: Link to libs for calling res_init() if available.
23255 (Fmake_network_process): Call res_init() before getaddrinfo or
23256 gethostbyname, if possible.
23257
232582007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23259
23260 * lread.c (read1): Set pvectype for char_tables.
23261
23262 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23263 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23264 Add type checks.
23265 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23266
23267 * alloc.c (free_misc): Use XMISCTYPE.
23268 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23269
232702007-10-17 Glenn Morris <rgm@gnu.org>
23271
23272 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23273 (syms_of_minibuf): Add Qcompletion_ignore_case.
23274 * dired.c (Qcompletion_ignore_case): Change to external.
23275 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23276 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23277 (Fread_file_name): Use it rather than intern'ing.
23278
23279 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23280 (Fread_coding_system): Ignore case of user input.
23281
232822007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23283
23284 * xdisp.c (handle_display_prop): Ignore display specs after
23285 replacing one when string text is being replaced.
23286 (handle_single_display_spec): Pretend as if characters with display
23287 property haven't been consumed only when buffer text is being replaced.
23288
232892007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23290
23291 * xfns.c (Fx_create_frame, Fx_display_list):
23292 * window.c (window_fixed_size_p, enlarge_window)
23293 (shrink_window_lowest_first):
23294 * macterm.c (init_font_name_table):
23295 * macfns.c (Fx_create_frame, Fx_display_list):
23296 * lread.c (close_load_descs):
23297 * keyboard.c (read_char_x_menu_prompt):
23298 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23299 * coding.c (code_convert_region_unwind): Test the type of an object
23300 rather than just !NILP before extracting data from it.
23301
23302 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23303
23304 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23305 (XMISCANY): New macro.
23306 (XMISCTYPE): Use it.
23307 (struct Lisp_Misc_Any): New type.
23308 (union Lisp_Misc): Use it.
23309 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23310 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23311 (find_symbol_value, set_internal, default_value, Fset_default)
23312 (Fmake_variable_buffer_local, Fmake_local_variable)
23313 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23314 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23315 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23316 * alloc.c (allocate_buffer): Set the size and tag.
23317 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23318 Use XMISCANY.
23319 (die): Follow the GNU convention for error messages.
23320 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23321 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23322 tag any more.
23323 (set_buffer_internal_1):
23324 * frame.c (store_frame_param):
23325 * eval.c (specbind):
23326 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23327
23328 * doc.c (Fsnarf_documentation): Simplify.
23329
233302007-10-14 Juanma Barranquero <lekktu@gmail.com>
23331
23332 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23333 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23334
233352007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23338
233392007-10-14 Juanma Barranquero <lekktu@gmail.com>
23340
23341 * eval.c (do_autoload): Don't save autoloads.
23342
23343 * data.c (Ffset): Save autoload of the function being set.
23344
233452007-10-07 John Paul Wallington <jpw@pobox.com>
23346
23347 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23348 parameter before setting up faces.
23349
233502007-10-13 Eli Zaretskii <eliz@gnu.org>
23351
23352 * ccl.c (Fregister_code_conversion_map):
23353 * keyboard.c (append_tool_bar_item): Reformat last change.
23354
23355 * lisp.h (eabs): Rename from `abs'. All callers changed.
23356
233572007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23358
23359 * buffer.c (add_overlay_mod_hooklist):
23360 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23361 * fontset.c (make_fontset):
23362 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23363 (append_tool_bar_item):
23364 * macmenu.c (grow_menu_items):
23365 * w32menu.c (grow_menu_items):
23366 * xmenu.c (grow_menu_items): Use larger_vector.
23367
233682007-10-13 Eli Zaretskii <eliz@gnu.org>
23369
23370 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23371 selected frame'' on MSDOS).
23372
233732007-10-12 Martin Rudalics <rudalics@gmx.at>
23374
23375 * frame.c (Qexplicit_name): New variable.
23376 (x_report_frame_params): Report it in parameter alist.
23377 (syms_of_frame): Intern and staticpro it.
23378
233792007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23380
23381 * macfns.c (x_create_tip_frame): Set terminal for frame.
23382
233832007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23384
23385 * frame.c (Qenvironment): Remove.
23386 (syms_of_frame) <Qenvironment>: Don't initialize.
23387 (Fdelete_frame): Don't treat the `environment' param specially.
23388 * frame.h (Qenvironment): Don't declare.
23389 * callproc.c (set_initial_environment): Don't set unused frame param.
23390
23391 * frame.c (Fframe_with_environment): Remove.
23392 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23393
23394 * lisp.h (Fframe_with_environment): Don't declare.
23395
233962007-10-10 Juanma Barranquero <lekktu@gmail.com>
23397
23398 * indent.c (indent_tabs_mode, last_known_column)
23399 (last_known_column_modified): Make static.
23400 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23401
234022007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23403
23404 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23405
234062007-10-09 Jason Rumney <jasonr@gnu.org>
23407
23408 * w32term.c (x_set_window_size): Disable code that attempts to tell
23409 Lisp code about a size change before it actually happens.
23410
234112007-10-09 Richard Stallman <rms@gnu.org>
23412
23413 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23414 return HANDLED_RETURN.
23415
234162007-10-08 Martin Rudalics <rudalics@gmx.at>
23417
23418 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23419 when there's an unread command event.
23420
23421 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23422 window autoselection act appropriately when leaving selected frame.
23423 (syms_of_frame): Initialize focus_follows_mouse.
23424 * frame.h (focus_follows_mouse): Extern it.
23425 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23426 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23427 * msdos.c (dos_rawgetc): Likewise.
23428 * w32term.c (w32_read_socket): Likewise.
23429 * xterm.c (handle_one_xevent): Likewise.
23430 * xdisp.c (syms_of_xdisp): In doc-string of
23431 mouse-autoselect-window mention focus-follows-mouse.
23432
234332007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23434
23435 * macterm.c (mac_load_query_font): Fix missing return value.
23436 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23437 Add BLOCK_INPUT.
23438
234392007-10-08 Richard Stallman <rms@gnu.org>
23440
23441 * xdisp.c (get_window_cursor_type): Implement documented behavior
23442 for cursor-in-non-selected-windows = t.
23443
234442007-10-08 Jason Rumney <jasonr@gnu.org>
23445
23446 * w32.c (w32_get_resource): Always close registry keys.
23447
234482007-10-08 Jason Rumney <jasonr@gnu.org>
23449
23450 * makefile.w32-in (LIBS): Add COMCTL32.
23451
23452 * w32fns.c (globals_of_w32fns): Init common controls.
23453
234542007-10-08 Richard Stallman <rms@gnu.org>
23455
23456 * image.c (our_memory_buffer): Rename from omfib_buffer.
23457
234582007-10-08 Richard Stallman <rms@gnu.org>
23459
23460 * buffer.c (Foverlays_at): Doc fix.
23461
234622007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23463
23464 * fns.c (Fplist_put): Preserve uneven tail data.
23465
234662007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23467
23468 * termhooks.h (enum event_kind): Remove trailing comma.
23469
23470 * frame.h (enum): Remove trailing comma.
23471
234722007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23473
23474 * w32proc.c (delete_child): Don't terminate threads of zombies.
23475
234762007-10-08 Martin Rudalics <rudalics@gmx.at>
23477
23478 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23479
23480 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23481 last-repeatable-command.
23482 (init_kboard): Initialize Vlast_repeatable_command.
23483 (command_loop_1): Set it to real_this_command unless that was
23484 bound to an input event.
23485 (mark_kboards): Mark it.
23486
234872007-10-08 Richard Stallman <rms@gnu.org>
23488
23489 * eval.c (condition-case): Doc fix.
23490
234912007-10-08 Masatake YAMATO <jet@gyve.org>
23492
23493 * xfaces.c (tty_supports_face_attributes_p): Fix code
23494 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23495 was copied and not edited.
23496
234972007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23498
23499 Add new `input-decode-map' keymap and use it for terminal
23500 escape sequences.
23501 * keyboard.h (struct kboard): Add Vinput_decode_map.
23502 Remove Vlocal_key_translation_map.
23503 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23504 (init_kboard): Init input-decode-map.
23505 Replace local-key-translation-map back with key-translation-map.
23506 (syms_of_keyboard): Declare input-decode-map.
23507 Remove local-key-translation-map. Update docstrings.
23508 (mark_kboards): Mark Vinput_decode_map.
23509 Don't mark Vlocal_key_translation_map.
23510 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23511 Replace local-key-translation-map back with key-translation-map.
23512 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23513 Bind in input-decode-map rather than function-key-map.
23514
23515 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23516 This was made redundant by the previous introduction of XSETPVECTYPE.
23517
235182007-10-09 Richard Stallman <rms@gnu.org>
23519
23520 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23521
235222007-09-29 Richard Stallman <rms@gnu.org>
23523
23524 * eval.c (internal_condition_case_2, internal_condition_case_1)
23525 (internal_condition_case): Reenable abort if x_catching_errors ()
23526 to see if that really happens and why.
23527
235282007-10-06 Andreas Schwab <schwab@suse.de>
23529
23530 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23531
235322007-10-04 Juanma Barranquero <lekktu@gmail.com>
23533
23534 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23535
235362007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23537
23538 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23539
235402007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23541
23542 * window.h (struct window):
23543 * window.c (struct save_window_data, struct saved_window):
23544 * termhooks.h (struct terminal):
23545 * process.h (struct Lisp_Process):
23546 * frame.h (struct frame):
23547 * buffer.h (struct buffer):
23548 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23549 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23550 The size field of (pseudo)vectors is now unsigned.
23551 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23552
23553 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23554 Turn `count' into an integer.
23555
23556 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23557 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23558 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23559 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23560 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23561
23562 * alloc.c (allocate_pseudovector): New fun.
23563 (ALLOCATE_PSEUDOVECTOR): New macro.
23564 (allocate_window, allocate_terminal, allocate_frame)
23565 (allocate_process): Use it.
23566 (mark_vectorlike): New function.
23567 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23568 (mark_terminals): Use it.
23569 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23570 (Fmake_byte_code): Use XSETPVECTYPE.
23571
23572 * frame.c (Fframe_parameters): Minor simplification.
23573
23574 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23575
23576 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23577
23578 * buffer.c (Fget_buffer_create, init_buffer_once):
23579 * lread.c (defsubr):
23580 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23581
23582 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23583 defined differently in the m/*.h files.
23584 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23585 (XSETPVECTYPE): New macro.
23586 (XSETPSEUDOVECTOR): Use it.
23587
23588 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23589 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23590
23591 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23592 * lread.c (defvar_per_buffer):
23593 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23594
23595 * window.c (candidate_window_p): Only consider as visible frames that
23596 are on the same terminal.
23597
23598 * m/ibms390x.h (MARKBIT): Remove unused macro.
23599
236002007-10-01 Juanma Barranquero <lekktu@gmail.com>
23601
23602 * lread.c (Fload): Fix typo in docstring.
23603
236042007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23605
23606 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23607 of a non-zero value can't yield zero.
23608
236092007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23610
23611 * term.c (term_clear_mouse_face, term_mouse_highlight)
23612 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23613
23614 * print.c (safe_debug_print): Use XHASH.
23615
23616 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23617 Lisp elements such as tags.
23618 (XHASH): New macro.
23619 (EQ): Use it.
23620 (SREF, SSET, STRING_COPYIN): Use SDATA.
23621 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23622
23623 * alloc.c (mark_terminal): Remove left-over declaration.
23624 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23625 (allocate_vectorlike): Remove type argument. Adjust callers.
23626 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23627 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23628
23629 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23630 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23631 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23632 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23633 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23634 Use them.
23635
23636 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23637 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23638 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23639
236402007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23641
23642 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23643 loaded by default.
23644
236452007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23646
23647 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23648 on this tty.
23649 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23650
23651 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23652 Update all users.
23653 (handle_one_term_event): Use Gpm_DrawPointer.
23654 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23655 Signal errors instead of returning nil. Always return nil.
23656 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23657 Make it a noop if gpm-mouse was not activated.
23658 (syms_of_term): Update names.
23659
236602007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23661
23662 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23663 (init_sys_modes): Check that gpm_tty is the current tty.
23664
23665 * alloc.c (allocate_terminal): Set the vector size to only count the
23666 lisp fields. Initialize those to nil.
23667 (mark_object): Don't treat terminals specially.
23668 (mark_terminal): Remove.
23669 (mark_terminals): Use mark_object instead.
23670
23671 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23672 the GC to the beginning.
23673
23674 * indent.h:
23675 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23676
23677 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23678
236792007-09-25 Jason Rumney <jasonr@gnu.org>
23680
23681 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23682
23683 * w32console.c (create_w32cons_output): Remove.
23684
23685 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23686
23687 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23688 (reset_sys_modes): Use reset_terminal_modes_hook.
23689
236902007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23691
23692 * eval.c (do_autoload): Don't output any message.
23693
236942007-09-24 Juri Linkov <juri@jurta.org>
23695
23696 * emacs.c (standard_args): Change priority of "--no-splash"
23697 from 40 to 3. Add "--no-desktop" with the same priority.
23698
236992007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23700
23701 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23702 and optimize the case where they are all 1.
23703
237042007-09-23 Johannes Weiner <hannes@saeurebad.de>
23705
23706 * lisp.h (abs): Define if not defined.
23707 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23708 Don't define `abs', since it's defined in lisp.h.
23709
237102007-09-22 Eli Zaretskii <eliz@gnu.org>
23711
23712 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23713 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23714 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23715 (init_tty): Use DEV_TTY instead of "/dev/tty".
23716 [WINDOWSNT]: No need to protect from NAME arg being null.
23717
237182007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23719
23720 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23721 up the tty state.
23722
237232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23724
23725 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23726 (gpm_tty): Change its type.
23727 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23728 (gpm_tty): Change its type and initialize it.
23729 (Fterm_open_connection): Check the frame is indeed a tty.
23730 Use the new gpm_tty.
23731 (Fterm_close_connection): Use the new gpm_tty.
23732 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23733 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23734
237352007-09-21 Juanma Barranquero <lekktu@gmail.com>
23736
23737 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23738 underline_color, to draw strike-through.
23739
237402007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23741
23742 * lisp.h (allocate_terminal): Declare.
23743
23744 * window.c (candidate_window_p): Consider frames that are being placed
23745 by the user as somewhere between visible and iconified.
23746 (window_loop): Prefer windows on the current frame.
23747 (Fselect_window): Move the use of select-frame to the beginning so we
23748 can just delegate all the work (it'll call us back anyway).
23749
23750 * frame.c (Qdisplay_environment_variable):
23751 * frame.h (Qdisplay_environment_variable): Delete.
23752
23753 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23754 of the first arg, since that value may be a union.
23755
23756 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23757 parameter rather than Qdisplay_environment_variable. If all else
23758 fails, look for DISPLAY in initial-environment.
23759
237602007-09-21 Glenn Morris <rgm@gnu.org>
23761
23762 * Makefile.in (emacstool): Remove target.
23763 (lisp, shortlisp): Remove termdev.elc.
23764
237652007-09-21 Markus Triska <markus.triska@gmx.at>
23766
23767 * xterm.c (x_delete_display): Compile session management conditionally.
23768
237692007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23770
23771 * callproc.c (getenv_internal_1): New function.
23772 (getenv_internal): Use it.
23773 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23774
23775 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23776 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23777 (Fset_terminal_parameter): Work with dead terminals as well.
23778 (Fmodify_terminal_parameters): Remove.
23779
23780 * terminal.c (get_terminal): Handle terminals.
23781 Make sure the terminal returned is live.
23782 (create_terminal): Use allocate_terminal.
23783 (mark_terminals): Move to alloc.c.
23784 (delete_terminal): Use terminal->name as liveness status.
23785 NULL out fields after freeing their contents.
23786 Don't deallocate the object.
23787 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23788 rather than an int.
23789 (Fterminal_live_p): Accept non-integer arguments.
23790 (Fterminal_list): Return terminal objects rather than an ints.
23791
23792 * alloc.c (enum mem_type): New member for `terminal' objects.
23793 (allocate_terminal): New function.
23794 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23795 Handle terminals.
23796 (mark_terminal): New fun.
23797 (mark_terminals): Move from terminal.c.
23798
23799 * term.c (get_tty_terminal): Don't treat output_initial specially.
23800 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23801 (delete_tty): Use terminal->name as liveness status.
23802
23803 * termhooks.h (struct terminal): Make it into a pseudovector.
23804 Remove `deleted' replaced by checking `name's nullness.
23805
23806 * print.c (print_object): Handle terminals.
23807
23808 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23809 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23810
23811 * frame.c (make_terminal_frame):
23812 * keyboard.c (tty_read_avail_input):
23813 * w32term.c (x_delete_terminal):
23814 * xfns.c (Fx_create_frame, x_create_tip_frame):
23815 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23816
238172007-09-20 Glenn Morris <rgm@gnu.org>
23818
23819 * process.c (Fmake_network_process): Doc fix.
23820
238212007-09-19 Jason Rumney <jasonr@gnu.org>
23822
23823 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23824
238252007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23826
23827 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23828 Fix a C warning regarding variable constness.
23829
23830 * xterm.c (handle_one_xevent): Fix a C warning.
23831
238322007-09-18 Jason Rumney <jasonr@gnu.org>
23833
23834 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23835
238362007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23837
23838 * gtkutil.c (gdpy_def): New variable.
23839 (xg_initialize): Initialize gdpy_def.
23840 (xg_display_close): If no other display exists, set gdpy_def to a
23841 new connection.
23842
238432007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23844
23845 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23846 when we have no file name for the icon.
23847 (xg_tool_bar_expose_callback): Remove.
23848 (xg_create_tool_bar): Don't connect expose signal to
23849 xg_tool_bar_expose_callback.
23850 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23851
238522007-09-16 Andreas Schwab <schwab@suse.de>
23853
23854 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23855 values instead of zapping them.
23856
238572007-09-14 Glenn Morris <rgm@gnu.org>
23858
23859 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23860 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23861 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23862 scope and rename to omfib_buffer for clarity.
23863 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23864
238652007-09-14 Kenichi Handa <handa@m17n.org>
23866
23867 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23868
238692007-09-13 Jason Rumney <jasonr@gnu.org>
23870
23871 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23872
23873 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23874
23875 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23876 (mac_term_init): Call here instead, passing rif.
23877
238782007-09-13 Glenn Morris <rgm@gnu.org>
23879
23880 * s/hpux.h: No longer define `static' as nothing.
23881
238822007-09-13 Johan Bockgård <bojohan@gnu.org>
23883
23884 * callint.c (Fcall_interactively): Remove unused var `fun'.
23885
238862007-09-12 Romain Francoise <romain@orebokech.com>
23887
23888 * window.c (prefer_window_split_horizontally, display_buffer):
23889 Revert 2007-09-08 change.
23890
238912007-09-12 Glenn Morris <rgm@gnu.org>
23892
23893 * alloca.c: Remove file.
23894 * Makefile.in (alloca): Do not undef.
23895 (allocaobj, alloca.o): Remove.
23896 (otherobj): Remove allocaobj.
23897 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23898 * regex.c (C_ALLOCA): Remove all references and code that was only
23899 used when this was defined.
23900 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23901 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23902 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23903
23904 * Makefile.in (SOURCES, unlock, relock): Delete.
23905
23906 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23907 (menu_grab_callback): All uses changed.
23908
23909 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23910 (x_reply_selection_request): All uses changed.
23911
239122007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23913
23914 * lread.c (load_warn_old_style_backquotes): Change message to look
23915 better when it appears in the middle of byte-compiler messages.
23916
239172007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23918
23919 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23920
23921 * xterm.c (x_create_terminal): Add comment.
23922
23923 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23924
239252007-09-10 Richard Stallman <rms@gnu.org>
23926
23927 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23928
239292007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23930
23931 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23932 (DEFUN): Document `intspec', use it instead of `prompt'.
23933
23934 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23935
23936 * data.c (Finteractive_form): If the interactive specification starts
23937 with a `(', use it as a Lisp form.
23938
23939 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23940 name and file modes.
23941
23942 * callint.c (Fcall_interactively): Comment fixes.
23943
239442007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23945
23946 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23947 and compiled functions.
23948
239492007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23950
23951 * window.c (prefer_window_split_horizontally): New variable.
23952 (display_buffer): Consider splitting window horizontally depending
23953 on prefer_window_split_horizontally.
23954
239552007-09-08 Eli Zaretskii <eliz@gnu.org>
23956
23957 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23958
239592007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23960
23961 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23962
23963 * frame.c (x_set_frame_parameters): Check number is positive before
23964 using XFASTINT.
23965
23966 * window.c (freeze_window_start): Don't presume selected_window holds
23967 a window object.
23968 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23969
239702007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23971
23972 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23973
239742007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23975
23976 * window.c (Vsplit_window_preferred_function): New var.
23977 (Fdisplay_buffer): Use it.
23978 (syms_of_window): Export, and initialize it.
23979
239802007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23981
23982 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23983
239842007-09-06 Glenn Morris <rgm@gnu.org>
23985
23986 * gtkutil.c (menu_grab_callback) <cnt>:
23987 * xselect.c (x_reply_selection_request) <cnt>: Move static
23988 variable to file scope.
23989
239902007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23991
23992 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23993 consistent values of selected_frame and selected_window.
23994
239952007-09-04 Jason Rumney <jasonr@gnu.org>
23996
23997 * w32console.c (initialize_w32_display): Zero unused hooks.
23998
239992007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24000
24001 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
24002 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
24003
240042007-09-04 Jason Rumney <jasonr@gnu.org>
24005
24006 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24007 in w32console.c. Set up input. Remove XXX comments that have been
24008 confirmed as correct.
24009
24010 * s/ms-w32.h (MULTI_KBOARD): Define.
24011
24012 * w32console.c (one_and_only_w32cons): Remove.
24013 (initialize_w32_display): Take terminal argument.
24014
24015 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24016 initialize_w32_display.
24017 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24018
24019 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24020
24021 * keyboard.c (discard_mouse_events): Discard it.
24022 (make_lispy_event): Translate it to a lisp event.
24023 (lispy_wheel_names): Add wheel-left and right events.
24024 (syms_of_keyboard): Enlarge wheel_syms.
24025
24026 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24027 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24028
24029 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24030
24031 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24032 from WM_MOUSEHWHEEL.
24033 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24034
24035 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24036 terminal.
24037
24038 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24039 keyboard for the terminal.
24040
240412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24042
24043 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24044 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24045 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24046 and resume-tty-function to resume-tty-hook.
24047 (Fsuspend_tty, Fresume_tty): Use new names.
24048
240492007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24050
24051 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24052 if it starts with "n:".
24053
240542007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24055
24056 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24057
240582007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24059
24060 * frame.h:
24061 * frame.c (Qterm_environment_variable): Remove.
24062 (syms_of_frame): Don't init and staticpro it.
24063
24064 * callproc.c (getenv_internal): Remove special case for $TERM.
24065
24066 * callproc.c (Vinitial_environment): New variable.
24067 (set_initial_environment): Initialize it.
24068 (syms_of_callproc): Declare it.
24069 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24070 TERM under which a process runs is never related to the TERM in which
24071 Emacs is running.
24072
240732007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24074
24075 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24076 * s/darwin.h: ... do it here.
24077
240782007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24079
24080 * lisp.h (set_initial_environment): Rename from set_global_environment.
24081
24082 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24083 removed by mistake on the multi-tty branch.
24084
24085 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24086 (Fmodify_frame_parameters): Return a value.
24087
24088 * image.c (png_load): Comment-out var only used in commented-out code.
24089
24090 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24091 before passing it to mark_object.
24092
24093 * xfaces.c (internal_resolve_face_name): Return a value.
24094 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24095
24096 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24097 (x_icon): Comment-out var only used in commented-out code.
24098
240992007-08-29 Romain Francoise <romain@orebokech.com>
24100
24101 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24102 QUIT hasn't been provided.
24103
241042007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24105
24106 * callproc.c (child_setup, getenv_internal): Use the
24107 display-environment-variable and term-environment-variable frame params.
24108 (set_initial_environment): Initialise Vprocess_environment.
24109
24110 * config.in: Disable multi-keyboard support on a mac.
24111
24112 * frame.c (Qterm_environment_variable)
24113 (Qdisplay_environment_variable): New variables.
24114 (syms_of_frame): Intern and staticpro them.
24115 (Fmake_terminal_frame): Disable output method test.
24116
24117 * frame.h: Declare them here.
24118
24119 * macfns.c (x_set_mouse_color): Get rif from the frame.
24120 (x_set_tool_bar_lines): Don't use updating_frame.
24121 (mac_window): Add 2 new parameters for consistency with other systems.
24122 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24123 frame parameters following what is done in X11 and w32. Don't use
24124 FRAME_MAC_DISPLAY_INFO.
24125 (Fx_open_connection, start_hourglass): Remove window-system check.
24126 (x_create_tip_frame): Get the keyboard from the terminal.
24127
24128 * macmenu.c: Reorder includes.
24129 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24130
24131 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24132 terminal parameter.
24133 (x_clear_frame): Add a frame parameter.
24134 (note_mouse_movement): Get rif from the frame.
24135 (mac_term_init): Initialize the terminal.
24136 (mac_initialize): Make static and move terminal initialization ...
24137 (mac_create_terminal): ... to this new function.
24138
24139 * macterm.h (struct mac_display_info): Add terminal.
24140 (mac_initialize): Delete declaration.
24141
24142 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24143
24144 * sysdep.c: Comment out text after #endif.
24145
24146 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24147 is defined. Better initialize ttys in windows. Use terminal
24148 specific mouse_position_hook.
24149
24150 * termhooks.h (union display_info): Add mac_display_info.
24151
24152 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24153 Set the default minibuffer frame, window_system and the rest of the
24154 frame parameters following what is done in X11.
24155
24156 * w32term.c (w32_initialize): Make static.
24157
24158 * xselect.c (x_handle_selection_clear): Only access
24159 terminal->kboard when MULTI_KBOARD is defined.
24160
24161 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24162 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24163
241642007-08-29 Jason Rumney <jasonr@gnu.org>
24165
24166 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24167 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24168
24169 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24170 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24171
24172 * keyboard.c (restore_kboard_configuration): Only define when
24173 MULTI_KBOARD defined.
24174
24175 * makefile.w32-in: Update dependancies from Makefile.in.
24176 (OBJ1): Add terminal.$(O)
24177
24178 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24179 Don't define function body.
24180 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24181
24182 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24183
24184 * w32.c (request_sigio, unrequest_sigio): Remove.
24185
24186 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24187 (w32con_clear_frame, w32con_clear_end_of_line)
24188 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24189 (w32con_delete_glyphs, w32con_set_terminal_window)
24190 (scroll_line, w32_sys_ring_bell): Add frame arg.
24191 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24192 Add terminal arg.
24193 (PICK_FRAME): Remove.
24194 (w32con_write_glyphs): Use frame specific terminal coding.
24195 (one_and_only_w32cons): New global variable.
24196 (initialize_w32_display): Use it for storing hooks.
24197 (create_w32cons_output): New function.
24198
24199 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24200 arg a frame.
24201
24202 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24203 Set window_system.
24204 (x_set_tool_bar_lines): Don't use updating_frame.
24205 (Fx_create_frame): Set terminal and ref count.
24206 (Fx_open_connection): Remove window-system check.
24207
24208 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24209
24210 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24211 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24212 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24213 Add frame arg.
24214 (x_delete_terminal, w32_create_terminal): New functions.
24215 (w32_term_init): Create a terminal.
24216 (w32_initialize): Move terminal specific initialization to
24217 w32_create_terminal.
24218
24219 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24220 (w32_clear_rect, w32_clear_area): Use background from frame.
24221 (w32_display_info): Add terminal.
24222 (w32_sys_ring_bell, x_delete_display): Declare here.
24223
24224 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24225
24226 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24227
242282007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24229
24230 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24231 Fix get_named_tty calls for the controlling tty.
24232
242332007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24234
194d44e7 24235 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24236
242372007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24238
24239 * term.c (tty_insert_glyphs): Add missing first parameter.
24240
242412007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24242
24243 * buffer.c (Fbuffer_list, Fbury_buffer):
24244 Take frame->buried_buffer_list into account.
24245
24246 * cm.c (current_tty): New variable, for cmputc().
24247 (cmputc): Use it.
24248 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24249 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24250 (cmgoto): Add tty parameter. Pass it on to calccost().
24251 Use emacs_tputs() instead of tputs().
24252
24253 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24254 tputs().
24255 (current_tty): New variable, for cmputc().
24256 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24257
24258 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24259 (internal_condition_case, internal_condition_case_1)
24260 (internal_condition_case_2): Don't abort when x_catching_errors.
24261
24262 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24263 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24264 prevent crashes caused by bogus longjmps in read_char.
24265
24266 * keymap.h (Fset_keymap_parent): Add EXFUN.
24267
24268 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24269 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24270 Remove redundant definition.
24271
24272 * macfns.c (x_set_mouse_color, x_make_gc):
24273 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24274
24275 * w32term.c (x_free_frame_resources):
24276 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24277 (w32_initialize): Use the accessor macros for terminal characteristics.
24278
24279 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24280 Use the accessor macros for terminal characteristics.
24281 * msdos.c (internal_terminal_init): Use the accessor macros for
24282 terminal characteristics.
24283 (ScreenVisualBell, internal_terminal_init):
24284 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24285
24286 * termopts.h (no_redraw_on_reenter): Declare.
24287
24288 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24289 (mark_terminals, mark_ttys): Declare.
24290 (Fgarbage_collect): Call them.
24291 (mark_object): Mark buried_buffer_list.
24292
24293 * prefix-args.c: Include stdlib.h for exit.
24294
24295 * syssignal.h: Add comment.
24296
24297 * indent.c: Include stdio.h.
24298
24299 * window.h (Vinitial_window_system): Declare.
24300 (Vwindow_system): Delete declaration.
24301
24302 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24303
24304 * image.c (lookup_image): Don't initialize `c' until the xasserts
24305 have been run.
24306
24307 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24308 FRAME_FOREGROUND_PIXEL.
24309
24310 * print.c (print_preprocess): Don't lose print_depth levels while
24311 iterating.
24312
24313 * widget.c (update_from_various_frame_slots):
24314 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24315
24316 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24317 frames.
24318 (window_internal_height): Remove bogus make_number call.
24319 (init_window_once): Call make_terminal_frame with two zero parameters.
24320
24321 * fileio.c (Fread_file_name): Update comment.
24322
24323 * callint.c (Fcall_interactively):
24324 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24325 Make sure it is correctly unwound.
24326
24327 * xsmfns.c (x_session_close): New function.
24328
24329 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24330 Delete declarations.
24331
24332 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24333 (x_output): Remove background_pixel and foreground_pixel fields.
24334 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24335 (x_delete_device, x_session_close): Declare.
24336
24337 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24338 (read_filtered_event): Call `read_char' with a local
24339 `wrong_kboard_jmpbuf'.
24340
24341 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24342 Don't call single_kboard_state. Use FRAME_RIF.
24343
24344 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24345 systems.
24346
24347 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24348 (Fframe_with_environment, Fset_input_meta_mode)
24349 (Fset_quit_char): EXFUN.
24350 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24351 (init_sys_modes, reset_sys_modes): Update prototypes.
24352 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24353
24354 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24355 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24356 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24357 Delete declarations.
24358 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24359 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24360 New declarations.
24361
24362 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24363 already does that during init_display(). Call syms_of_keymap
24364 before syms_of_keyboard. Call `syms_of_terminal'.
24365 Call set_initial_environment, not set_process_environment.
24366 (shut_down_emacs): Call reset_all_sys_modes() instead of
24367 reset_sys_modes().
24368
24369 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24370 (internal_resolve_face_name, resolve_face_name_error): New functions.
24371 (resolve_face_name): Protect against loops and errors thrown by Fget.
24372 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24373 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24374
24375 * scroll.c: Replace CURTTY() with local variables throughout the
24376 file (where applicable).
24377 (calculate_scrolling, calculate_direct_scrolling)
24378 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24379 characteristics.
24380
24381 * keymap.c (Vfunction_key_map): Remove.
24382 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24383 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24384 (Vkey_translation_map): Remove.
24385 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24386 (Fdescribe_buffer_bindings)
24387 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24388 Update for terminal-local key-translation-map.
24389
24390 * Makefile.in (callproc.o): Update dependencies.
24391 (lisp, shortlisp): Add termdev.elc.
24392 (obj): Add terminal.o.
24393 (terminal.o): Add dependencies.
24394 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24395 (data.o, fns.o): Add termhooks.h dependency.
24396 (SOME_MACHINE_LISP): Add dnd.elc.
24397 (minibuf.o): Fix typo.
24398 Update dependencies.
24399
24400 * data.c (do_symval_forwarding, store_symval_forwarding)
24401 (find_symbol_value): Use the selected frame's keyboard, not
24402 current_kboard.
24403
24404 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24405 Vwindow_system.
24406
24407 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24408 Fmenu_bar_open.
24409 (syms_of_xmenu): Update defsubr.
24410 (mouse_position_for_popup, Fx_popup_menu)
24411 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24412 (set_frame_menubar, free_frame_menubar)
b97439ce 24413 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24414 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24415 an X frame.
24416
24417 * xselect.c (x_own_selection): Abort if not an X frame.
24418 (some_frame_on_display): Check if it is an X frame.
24419 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24420
24421 * coding.c: Include frame.h and termhooks.h.
24422 (terminal_coding, keyboard_coding): Delete.
24423 (Fset_terminal_coding_system_internal)
24424 (Fset_keyboard_coding_system_internal)
24425 (Fkeyboard_coding_system)
24426 (Fterminal_coding_system): Add a terminal parameter.
24427 Get terminal_coding from the terminal.
24428 (init_coding_once): Don't call setup_coding_system here.
24429
24430 * dispextern.h (set_scroll_region, turn_off_insert)
24431 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24432 (tty_clear_end_of_line, tty_setup_colors)
24433 (delete_tty, updating_frame)
24434 (produce_special_glyphs, produce_glyphs, write_glyphs)
24435 (insert_glyphs): Remove.
24436 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24437 (tty_turn_off_highlight, get_tty_size): Add declaration.
24438 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24439
24440 * frame.h (enum output_method): Add output_initial.
24441 (struct x_output): Delete.
24442 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24443 Access foreground_pixel and background_pixel directly from the frame.
24444 (tty_display): Delete.
24445 (struct frame): Add buried_buffer_list, foreground_pixel,
24446 background_pixel and terminal. Delete kboard.
24447 (union output_data): Add tty.
24448 (FRAME_KBOARD): Get the kboard from the terminal.
24449 (FRAME_INITIAL_P): New macro.
24450 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24451 (Qterm_environment_variable, Qdisplay_environment_variable)
24452 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24453 New declarations.
24454
24455 * termchar.h (tty_output, tty_display_info): New structures.
24456 (tty_list): Declare.
24457 (FRAME_TTY, CURTTY): New macros.
24458 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24459 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24460 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24461 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24462
24463 * callproc.c: Include frame.h and termhooks.h, for terminal
24464 parameters.
24465 (add_env): New function.
24466 (child_setup): Use it.
24467 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24468 (getenv_internal): Fix get_terminal_param call.
24469 (Fgetenv_internal, egetenv): Update doc.
24470 (syms_of_callproc): Initialize Vprocess_environment to nil.
24471 Register and initialize them. Remove obsolete defvars. Update doc
24472 strings.
24473 (child_setup): Handle Vlocal_environment_variables.
24474 (getenv_internal): Add terminal parameter.
24475 Handle Vlocal_environment_variables.
24476 (Fgetenv_internal): Add terminal parameter.
24477 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24478 environment in a frame (not terminal) parameter. Update doc strings.
24479 (set_initial_environment): Rename from set_global_environment.
24480 Store Emacs environment in initial frame parameter.
24481
24482 * xdisp.c (redisplay_internal): Update references to
24483 `previous_terminal_frame'.
24484 (display_mode_line, Fformat_mode_line): Replace calls to
24485 `push_frame_kboard' with `push_kboard'.
24486 (get_glyph_string_clip_rects): Add extra parentheses and
24487 braces to prevent compiler warnings.
24488 (calc_pixel_width_or_height): Add xassert to check that the
24489 frame is alive. Don't call `lookup_image' on a termcap frame.
24490 (message2_nolog, message3_nolog, redisplay_internal)
24491 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24492 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24493 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24494 (Fx_display_pixel_width, Fx_display_pixel_height)
24495 (Fx_display_planes, Fx_display_color_cells)
24496 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24497 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24498 (Fx_display_backing_store, Fx_display_visual_class)
24499 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24500 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24501
24502 * xfns.c (x_set_foreground_color x_set_background_color)
24503 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24504 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24505 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24506 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24507 terminal that is being deleted.
24508 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24509 frame parameter, and make sure it overrides any user-supplied setting.
24510 (Fx_close_connection, Fx_synchronize): Unify argument names with
24511 the rest of the DEFUNs.
24512
24513 * dispnew.c (Fsend_string_to_terminal): Update call to
24514 `get_tty_terminal'.
24515 (Fredraw_frame, Fsend_string_to_terminal)
24516 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24517 FRAME_TERMCAP_P and FRAME_TTY.
24518 (window_change_signal): Don't believe width/height values that are
24519 impossibly small.
24520 (Vinitial_window_system): Rename from Vwindow_system.
24521 (termscript, Wcm, rif): Delete.
24522
24523 * termhooks.h (struct terminal): New struct containing the
24524 previously global text display hooks and new members NAME,
24525 DELETED and PARAM_ALIST.
24526 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24527 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24528 (FRAME_RIF): New macros.
24529 (get_terminal_param, get_device): New declarations.
24530 (termscript): Delete declaration.
24531
24532 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24533 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24534 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24535 FRAME_FOREGROUND_PIXEL.
24536 (x_fully_uncatch_errors): Disable definition.
24537 (x_scroll_bar_expose): Fix reference to foreground pixel.
24538 (XTread_socket): Disable loop on all X displays.
24539 (x_delete_terminal): Don't set terminal->deleted and let
24540 delete_terminal delete the frames on the terminal.
24541 (x_delete_display): Doc update to reflect changes in
24542 delete_terminal.
24543 (x_display_info) <terminal>: Move member earlier in the struct.
24544 (deleting_tty): Remove old variable.
24545 (Fsuspend_tty): Call clear_tty_hooks.
24546 (Fresume_tty, init_tty): Call set_tty_hooks.
24547 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24548 errors on X frames.
24549 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24550 (handle_one_xevent): Initialize `f' to NULL.
24551 (x_delete_terminal, x_create_terminal): New functions.
24552 (XTset_terminal_modes, XTreset_terminal_modes)
24553 (XTread_socket, x_connection_closed, x_term_init)
24554 (x_term_init, x_delete_display): Add terminal parameter.
24555 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24556 X connections.
24557
24558 * frame.c: Include termchar.h.
24559 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24560 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24561 (Qdisplay_environment_variable): New vars.
24562 (Fframep): Deal with output_initial.
24563 (Fframe-live-p): Doc fix.
24564 (Fwindow-system): New function.
24565 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24566 (make_terminal_frame): Don't create frames on a terminal that is
24567 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24568 (store_frame_param): Check for found_for_frame before calling XFRAME.
24569 (Fmake_terminal_frame): Handle NULL tty names correctly.
24570 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24571 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24572 frames to refer to a deleted frame in their 'environment parameter.
24573 (Fframe_with_environment): New function.
24574 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24575 (get_future_frame_param): New function.
24576 (Fmake_terminal_frame): Use it.
24577 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24578
24579 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24580 * sysdep.c (reset_sys_modes): Update for renames.
24581
24582 * keyboard.c (tty_read_avail_input): New function.
24583 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24584 (syms_of_keyboard): Defsubr them.
24585 (Fset_input_meta_mode, Fset_quit_char): New functions.
24586 (Fset_input_mode): Split to above functions.
24587 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24588 parameter. Use it in call to `read_char'.
24589 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24590 Set wrong_kboard_jmpbuf correctly in recursive calls.
24591 Use current_kboard to access Vkeyboard_translate_table.
24592 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24593 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24594 Update longjmp invocations. Remember the original current_kboard,
24595 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24596 changes it. Comment out unnecessary calls to
24597 `record_single_kboard_state' and `any_kboard_state'.
24598 Update recursive calls.
24599 (wrong_kboard_jmpbuf): Remove global variable.
24600 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24601 Handle deleted interrupted_kboards correctly; that is a legal
24602 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24603 and read_char calls. Abort if interrupted_kboard died in read_char.
24604 (any_kboard_state, single_kboard_state)
24605 (push_frame_kboard): Remove function.
24606 (pop_kboard): Switch out of single_kboard mode if the kboard has
24607 been deleted. Remove unused variable. Help debugging by not
24608 changing current_kboard unnecessarily. Set current_kboard to the
24609 kboard of the selected frame when the stored kboard object has
24610 been deleted before pop_kboard.
24611 (temporarily_switch_to_single_kboard): Change first parameter to a
24612 frame pointer. Throw an error when caller wants to change kboards
24613 while in single_kboard mode. Don't push_kboard if we weren't in
24614 single kboard state. Don't pop_kboard if we popped into any
24615 kboard state.
24616 (restore_kboard_configuration): Abort if pop_kboard changed the
24617 kboard in single_kboard mode. Call pop_kboard only after setting
24618 up single_kboard mode.
24619 (Frecursive_edit): Switch to single_kboard mode only in nested
24620 command loops.
24621 (cmd_error, command_loop, command_loop_1, timer_check):
24622 Comment out unnecessary call to `any_kboard_state' and
24623 `record_single_kboard_state'.
24624 (delete_kboard): Exit single_kboard mode if we have just deleted
24625 that kboard. Use FRAME_KBOARD.
24626 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24627 `fatal_error_signal'.
24628 (record_single_kboard_state): Don't push_kboard if we weren't in
24629 single kboard state. Don't pop_kboard if we popped into any
24630 kboard state.
24631 (push_frame_kboard): Rename to push_kboard.
24632 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24633 (read_avail_input): Read input from all terminals.
24634 (mark_kboards): Also mark Vkeyboard_translate_table.
24635 (kbd_buffer_store_event_hold): Simplify condition.
24636 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24637 (Vkeyboard_translate_table): Move to struct kboard.
24638 (init_kboard): Initialize Vkeyboard_translate_table.
24639 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24640 Vkeyboard_translate_table. Update doc strings. Update docs of
24641 local-function-key-map and function-key-map.
24642
24643 * terminal.c: New file.
24644
24645 * term.c: Include errno.h.
24646 (Vring_bell_function, device_list, initial_device)
24647 (next_device_id, ring_bell, update_begin, update_end)
24648 (set_terminal_window, cursor_to, raw_cursor_to)
24649 (clear_to_end, clear_frame, clear_end_of_line)
24650 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24651 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24652 (syms_of_term): Move their initialization to terminal.c.
24653 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24654 (Ftty_display_color_cells)
24655 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24656 (clear_tty_hooks, set_tty_hooks)
24657 (init_tty, maybe_fatal): New functions.
24658 (Ftty_type): Return nil if terminal is not on a tty instead of
24659 throwing an error. Doc update.
24660 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24661 Doc update. Initialize new subrs and variables.
24662 (delete_tty): Use terminal->deleted.
24663 (tty_set_terminal_modes): Rename from set_terminal_modes.
24664 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24665 (set_scroll_region): Rename to `tty_set_scroll_region'.
24666 (turn_on_insert): Rename to `tty_turn_on_insert'.
24667 (turn_off_insert): Rename to `tty_turn_off_insert'.
24668 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24669 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24670 (toggle_highligh): Rename to `tty_toggle_highlight'.
24671 (background_highlight): Rename to `tty_background_highlight'.
24672 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24673 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24674 (tty_set_scroll_region, tty_background_highlight)
24675 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24676 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24677 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24678 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24679 Add static modifier.
24680 (tty_reset_terminal_modes, tty_set_terminal_window)
24681 (tty_set_scroll_region, tty_background_highlight)
24682 (tty_highlight_if_desired, tty_cursor_to)
24683 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24684 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24685 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24686 renames.
24687
246882007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24689
24690 * keyboard.c: Qrtl is new.
24691 (parse_tool_bar_item): Handle :rtl keyword.
24692 (syms_of_keyboard): Intern :rtl keyword.
24693
24694 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24695
24696 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24697 so no Lisp code is executed.
24698 (file_for_image, find_rtl_image): New functions.
24699 (xg_get_image_for_pixmap): Use file_for_image.
24700 (update_frame_tool_bar): If direction is RTL, use RTL image if
24701 defined. Use Gtk stock images if defined.
24702
247032007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24704
24705 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24706 for nonexistent or zero-width glyph in composition glyph.
24707
247082007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24709
24710 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24711
24712 * xdisp.c (Finvisible_p): New function.
24713 (syms_of_xdisp): defsubr it.
24714
247152007-08-24 Juanma Barranquero <lekktu@gmail.com>
24716
24717 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24718 Doc fixes.
24719
247202007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24721
24722 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24723
247242007-08-24 Martin Rudalics <rudalics@gmx.at>
24725
24726 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24727 whether decoding has modified buffer contents.
24728
247292007-08-24 Jason Rumney <jasonr@gnu.org>
24730
24731 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24732 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24733 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24734 (init_svg_functions) [HAVE_NTGUI]: New function.
24735 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24736 (svg_load_image): Use them.
24737 (svg_load_image) [HAVE_NTGUI]: Implement background.
24738
247392007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24740
24741 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24742 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24743 (LIBX): Remove @RSVG_LIBS@.
24744 (LIBES): Add $(RSVG_LIBS).
24745
24746 * image.c (svg_load_image): Blend with specified background if exists.
24747 Use IMAGE_BACKGROUND. Add Mac OS Support.
24748
24749 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24750 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24751 Remove macros.
24752 [MAC_OSX] (socket_callback): Do nothing.
24753 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24754 ReceiveNextEvent.
24755 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24756 socket_callback.
24757 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24758
247592007-08-22 Glenn Morris <rgm@gnu.org>
24760
24761 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24762
247632007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24764
24765 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24766
24767 * image.c: Add support for SVG images. Some additional comments
24768 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24769 (svg_image_p): New function to test for SVG image.
24770 (svg_load): New function to load SVG image.
24771 (svg_load_image): New function, helper for svg_load.
24772 (Qsvg): New Lisp_object.
24773 (svg_keyword_index): New enum.
24774 (svg_format): New static `image_keyword' struct.
24775 (svg_type): New static `image_type' struct.
24776 (librsvg/rsvg.h): Include it.
24777
247782007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24779
24780 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24781
247822007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24783
24784 * lread.c (Qold_style_backquotes): New var.
24785 (syms_of_lread): Init and staticpro it.
24786 (load_warn_old_style_backquotes): New fun.
24787 (Fload): Use them to warn about old style backquotes.
24788 (end_of_file_error, Fload): Remove unused vars.
24789
24790 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24791
24792 * lread.c (Vold_style_backquotes): New var.
24793 (syms_of_lread): Init and export it to Elisp.
24794 (read1): Set it when we find an old-style (back)quote.
24795
247962007-08-22 Jason Rumney <jasonr@gnu.org>
24797
24798 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24799
248002007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24801
24802 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24803
248042007-08-19 Richard Stallman <rms@gnu.org>
24805
24806 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24807
248082007-08-19 Andreas Schwab <schwab@suse.de>
24809
24810 * alloc.c (pure): Round PURESIZE up.
24811
248122007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24813
24814 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24815 active frame.
24816
248172007-08-16 Richard Stallman <rms@gnu.org>
24818
24819 * eval.c (Fcommandp): Add parens to clarify.
24820
24821 * minibuf.c (Fall_completions): Use enum for type of table.
24822
24823 * emacs.c (USAGE2): Improve text.
24824
248252007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24826
24827 * term.c (tty_default_color_capabilities): Declare static
24828 variables in file scope, to avoid HPUX compiler problem.
24829
248302007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24831
24832 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24833 to gtk_toolbar_insert.
24834
248352007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24836
24837 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24838
24839 * insdel.c (reset_var_on_error): New fun.
24840 (signal_before_change, signal_after_change):
24841 Use it to reset (after|before)-change-functions to nil in case of error.
24842 Bind inhibit-modification-hooks to t.
24843 Don't bind (after|before)-change-functions to nil while they run.
24844
248452007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24846
24847 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24848 filling pixmap with stippled background.
24849
248502007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24851
24852 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24853 Don't use invisible frame as parent window for repositioning.
24854
248552007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24856
24857 * print.c (new_backquote_output): Rename from old_backquote_output.
24858 (print): Inverse its logic (according to its name) so as to match the
24859 behavior of new_backquote_flag in lread.c.
24860
248612007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24862
24863 * gmalloc.c (posix_memalign): New function.
24864
24865 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24866 ActivateControl/DeactivateControl here.
24867 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24868 frame-notice-user-settings is non-nil.
24869 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24870 for kEventParamFMFontStyle.
24871 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24872 mac_pass_command_to_system and mac_pass_control_to_system here.
24873 (XTread_socket): Call ActivateControl/DeactivateControl here.
24874 (XTread_socket) [TARGET_API_MAC_CARBON]:
24875 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24876 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24877 for window repositioning.
24878
248792007-08-08 Glenn Morris <rgm@gnu.org>
24880
24881 * Replace `iff' in doc-strings and comments.
24882
248832007-08-07 Chong Yidong <cyd@stupidchicken.com>
24884
24885 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24886
248872007-08-07 Martin Rudalics <rudalics@gmx.at>
24888
24889 * fileio.c (Finsert_file_contents): Run format-decode and
24890 after_insert_file_functions on entire buffer when REPLACE is
24891 non-nil and inhibit modification_hooks and point_motion_hooks.
24892 For consistency, run after_insert_file_functions iff something
24893 got inserted. Move signal_after_change and update_compositions
24894 after code running after_insert_file_functions. Make sure that
24895 undo_list doesn't record intermediate steps of the decoding process.
24896
248972007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24898
24899 * emacs.c (main)
24900 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24901 Call malloc_enable_thread on interactive startup.
24902
24903 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24904 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24905 [USE_PTHREAD]: Conditionalize with it.
24906 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24907 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24908 New functions.
24909
249102007-08-06 Chong Yidong <cyd@stupidchicken.com>
24911
24912 * xdisp.c (redisplay_window): When restoring original buffer
24913 position, make sure it is still valid.
24914
24915 * image.c (png_load): Ignore png-supplied background color.
24916
249172007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24918
24919 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24920 Use kCFAbsoluteTimeIntervalSince1970.
24921
24922 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24923 New variable.
24924 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24925 event loop should be quit.
24926 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24927 Quit dialog event loop if quit_dialog_event_loop is set.
24928
24929 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24930 (Selection): New typedef. Use instead of ScrapRef.
24931 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24932 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24933 (mac_clear_selection): Rename from clear_scrap.
24934 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24935 scrap_has_target_type. All uses changed.
24936 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24937 (mac_selection_has_target_p): New functions.
24938 (mac_put_selection_value): Rename from put_scrap_string.
24939 (mac_get_selection_value): Rename from get_scrap_string.
24940 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24941 (put_scrap_private_timestamp, scrap_has_target_type)
24942 (get_scrap_private_timestamp): Remove functions.
24943 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24944 (x_own_selection, x_get_local_selection):
24945 Use mac_valid_selection_value_p.
24946 (x_own_selection): Don't use put_scrap_private_timestamp.
24947 Record OWNERSHIP-INFO into Vselection_alist instead.
24948 (x_get_local_selection): Don't check type if request is local.
24949 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24950 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24951
249522007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24953
24954 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24955 add comment explaining why.
24956
249572007-08-03 Richard Stallman <rms@gnu.org>
24958
24959 * fileio.c (Fvisited_file_modtime): Use make_time.
24960
249612007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24962
24963 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24964 build.
24965
249662007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24967
24968 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24969
249702007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24971
24972 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24973
249742007-07-30 Richard Stallman <rms@gnu.org>
24975
24976 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24977
249782007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24979
24980 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24981
249822007-07-28 Nick Roberts <nickrob@snap.net.nz>
24983
24984 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24985 remote default-directory.
24986
24987 * buffer.c (mode-line-format): Update doc string.
24988
249892007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24990
24991 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24992 scroll bar gap.
24993 (x_scroll_bar_create): Set bar->fringe_extended_p.
24994 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24995 on frame edge. Check fringe background extension. Don't clear
24996 extended fringe background area.
24997
24998 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24999 (w32_fill_area): Enclose multiple statements with do ... while (0).
25000
25001 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
25002 Extend fringe background to scroll bar gap.
25003 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
25004 Set bar->fringe_extended_p.
25005 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25006 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25007 background extension. Don't clear extended fringe background area.
25008
25009 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25010 New member fringe_extended_p.
25011
250122007-07-25 Glenn Morris <rgm@gnu.org>
25013
25014 * Relicense all FSF files to GPLv3 or later.
25015
25016 * COPYING: Switch to GPLv3.
25017
250182007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25019
25020 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25021
25022 * data.c (Finteractive_form): Check for the presence of an
25023 `interactive-form' symbol property more thoroughly.
25024
25025 * data.c (Finteractive_form): Use an `interactive-form' property if
25026 present, analogous to the function-documentation property.
25027
250282007-07-24 Jason Rumney <jasonr@gnu.org>
25029
25030 * w32fns.c (x_real_positions): Get real position from OS instead of
25031 calculating it.
25032
250332007-07-23 Jason Rumney <jasonr@gnu.org>
25034
25035 * filelock.c (current_lock_owner): Allow for @ sign in username.
25036
250372007-07-22 Nick Roberts <nickrob@snap.net.nz>
25038
25039 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25040 remote default-directory.
25041
25042 * buffer.c (mode-line-format): Describe above case in doc string.
25043
250442007-07-20 Eli Zaretskii <eliz@gnu.org>
25045
25046 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25047 Define if not defined.
25048
250492007-07-18 Jason Rumney <jasonr@gnu.org>
25050
25051 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25052
250532007-07-18 Richard Stallman <rms@gnu.org>
25054
25055 * data.c (Fsetq_default): Doc fix.
25056
25057 * eval.c (Fsetq): Doc fix.
25058
250592007-07-18 Juanma Barranquero <lekktu@gmail.com>
25060
25061 * coding.c (Ffind_operation_coding_system):
25062 * eval.c (For, Fand): Doc fixes.
25063 Reported by Johan Bockgård.
25064
250652007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25066
25067 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25068
25069 * xterm.h: Declare x_ewmh_activate_frame.
25070
25071 * xterm.c (x_ewmh_activate_frame): New function.
25072 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25073
250742007-07-17 Martin Rudalics <rudalics@gmx.at>
25075
25076 * window.c (Fdisplay_buffer): If largest or LRU window is the
25077 only window, split it even if it is not eligible for splitting.
25078 This restores the original behavior broken by the 2007-07-15
25079 change.
25080
250812007-07-17 Glenn Morris <rgm@gnu.org>
25082
25083 * abbrev.c (abbrev_check_chars): New function.
25084 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25085 Call abbrev_check_chars to check abbrev characters are word
25086 constituents. Doc fix.
25087
250882007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25089
25090 * process.c (Fstart_process, Fmake_network_process)
25091 (read_process_output): Fix up last changes.
25092
250932007-07-16 Eli Zaretskii <eliz@gnu.org>
25094
25095 * makefile.w32-in (clean): Don't delete *~.
25096
250972007-07-16 Andreas Schwab <schwab@suse.de>
25098
25099 * window.c (Fdisplay_buffer): Use NILP.
25100 (Fset_window_scroll_bars): Likewise.
25101
251022007-07-15 Martin Rudalics <rudalics@gmx.at>
25103
25104 * window.c (window_min_size_2): New function.
25105 (window_min_size_1, size_window, Fdisplay_buffer)
25106 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25107 windows without mode- or header-lines when window-min-height is
25108 too small.
25109 (size_window): Reset nodelete_p after testing it, following an
25110 earlier note by Kim F. Storm.
25111 (display_buffer): Do not set split_height_threshold to twice the
25112 value of window_min_height to avoid changing the value of a
25113 customizable variable. Rather explicitly check whether the
25114 height of the window that shall be splitted is at least as large
25115 as split_height_threshold.
25116 (Fwindow_full_width_p): New defun.
25117 (syms_of_window): Defsubr it.
25118
25119 * window.h: Add EXFUN for Fwindow_full_width_p.
25120
251212007-07-14 Jason Rumney <jasonr@gnu.org>
25122
25123 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25124
251252007-07-14 Richard Stallman <rms@gnu.org>
25126
25127 * eval.c (maybe_call_debugger): New function.
25128 (find_handler_clause): Use maybe_call_debugger.
25129 Call it when the handler says `debug'.
25130 Eliminate DEBUGGER_VALUE_PTR.
25131 (Fsignal): Eliminate debugger_value.
25132 (Qdebug): New variable.
25133 (syms_of_eval): Initialize it.
25134
251352007-07-14 Juanma Barranquero <lekktu@gmail.com>
25136
25137 * eval.c (Fprogn):
25138 * keyboard.c (Ftrack_mouse):
25139 * print.c (Fwith_output_to_temp_buffer):
25140 * window.c (Fsave_window_excursion): Doc fix.
25141
251422007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25143
25144 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25145
251462007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25147
25148 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25149 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25150 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25151 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25152 Remove unused encoding_carryover.
25153 * process.c: Adjust all functions accordingly.
25154
251552007-07-12 Richard Stallman <rms@gnu.org>
25156
25157 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25158
251592007-07-11 Jason Rumney <jasonr@gnu.org>
25160
25161 * makefile.w32-in (LIBS): Include OLE32.
25162
25163 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25164 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25165
251662007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25167
25168 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25169 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25170 from a Lisp_Object into a bare pointer.
25171 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25172 Adjust the code correspondingly.
25173
25174 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25175
25176 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25177 (term_show_mouse_face): Remove unused var `j'.
25178 (handle_one_term_event): Remove unused vars `i' and `j'.
25179 Don't cast return value of ttyname since it's not necessary.
25180
251812007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25182
25183 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25184 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25185
25186 * fns.c (map_char_table): Use an array of int for `indices' rather than
25187 an array of Lisp_Objects (which are only ever integers anyway).
25188 (Fmap_char_table): Update caller.
25189 * lisp.h: Update prototype.
25190 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25191 * fontset.c (Ffontset_info):
25192 * casetab.c (set_case_table): Update callers.
25193
25194 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25195
25196 * keymap.c (struct accessible_keymaps_data)
25197 (struct where_is_internal_data): New structures.
25198 (accessible_keymaps_1, where_is_internal_1): Use them to change
25199 interface to adhere to the one used by map_keymap.
25200 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25201 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25202
25203 * keymap.h (map_keymap_function_t): More informative prototype.
25204
252052007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25206
25207 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25208 (looking_at_1): Don't change search_regs and last_thing_searched
25209 if `inhibit-changing-match-data' is non-nil.
25210 (string_match_1, search_buffer, set_search_regs): Likewise.
25211 (syms_of_search): Add Lisp level definition for
25212 `inhibit-changing-match-data' and set it to nil.
25213 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25214 start and end of the match, instead of using values in search_regs.
25215
252162007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25217
25218 * minibuf.c (Fcompleting_read): New value `confirm-only'
25219 for `require-match'.
25220
252212007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25222
25223 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25224 part of the 2007-06-27 change to syms_of_fileio.
25225
252262007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25227
25228 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25229 Check WINDOWP before using XWINDOW. Consolidate return statements.
25230
252312007-06-27 Richard Stallman <rms@gnu.org>
25232
25233 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25234
252352007-06-27 Juanma Barranquero <lekktu@gmail.com>
25236
25237 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25238
252392007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25240
25241 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25242 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25243 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25244 (_free_internal, memalign): Use them.
25245 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25246 Initialize to PTHREAD_MUTEX_INITIALIZER.
25247 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25248 (morecore_nolock): Rename from morecore. All uses changed.
25249 Use only nolock versions of internal allocation functions.
25250 (_malloc_internal_nolock, _realloc_internal_nolock)
25251 (_free_internal_nolock): New functions created from
25252 _malloc_internal, _realloc_internal, and _free_internal.
25253 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25254 Copy hook value to automatic variable before its use.
25255 (memalign): Copy hook value to automatic variable before its use.
25256
252572007-06-26 Kenichi Handa <handa@m17n.org>
25258
25259 * coding.c (Ffind_operation_coding_system): Docstring improved.
25260 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25261
252622007-06-25 David Kastrup <dak@gnu.org>
25263
25264 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25265 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25266 cater for additional parameter.
25267
25268 * keymap.h: Adjust number of parameters to `current-active-maps'.
25269
25270 * doc.c (Fsubstitute_command_keys): Adjust call of
25271 `current-active-maps'.
25272
252732007-06-25 David Kastrup <dak@gnu.org>
25274
25275 * callint.c (Fcall_interactively): Make the parsing of interactive
25276 specs somewhat more readable.
25277
252782007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25279
25280 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25281 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25282 if extended background has already been filled.
25283
252842007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25285
25286 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25287 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25288
25289 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25290 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25291 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25292 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25293 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25294 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25295 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25296 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25297 Run timers during dialog popup.
25298 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25299
253002007-06-21 Jason Rumney <jasonr@gnu.org>
25301
25302 * image.c (convert_mono_to_color_image): Swap fore and background.
25303
253042007-06-20 Jason Rumney <jasonr@gnu.org>
25305
25306 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25307 (w32_free_bdf_font): Unmap memory not handle.
25308
253092007-06-20 Sam Steingold <sds@gnu.org>
25310
25311 * gmalloc.c (__morecore): Fix the declaration to comply with the
25312 definition.
25313
253142007-06-20 Juanma Barranquero <lekktu@gmail.com>
25315
25316 * w32term.c (w32_delete_display): Remove leftover declaration.
25317 (w32_define_cursor, w32_initialize): Make static.
25318
25319 * w32.c (_wsa_errlist): Fix typo in error message.
25320 (init_environment): Ignore any environment variable from the
25321 registry having a null value.
25322
253232007-06-20 Glenn Morris <rgm@gnu.org>
25324
25325 * Makefile.in (LIBGIF): Default to -lgif.
25326
253272007-06-17 Jason Rumney <jasonr@gnu.org>
25328
25329 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25330 unicode strings.
25331
253322007-06-16 Juanma Barranquero <lekktu@gmail.com>
25333
25334 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25335 Fix typo in docstring.
25336
253372007-06-16 Eli Zaretskii <eliz@gnu.org>
25338
25339 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25340 and their keybindings.
25341
253422007-06-15 Chong Yidong <cyd@stupidchicken.com>
25343
25344 * composite.c (update_compositions): Fix last fix.
25345
253462007-06-14 Jason Rumney <jasonr@gnu.org>
25347
25348 * w32.c (get_process_times_fn): New function pointer.
25349 (globals_of_w32): Intialize it if present in kernel32.dll.
25350 (w32_get_internal_run_time): New function.
25351
25352 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25353
253542007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25355
25356 * composite.c (update_compositions): Check the validness of
25357 compositions.
25358
253592007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25360
25361 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25362 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25363
25364 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25365 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25366
25367 * macgui.h (USE_MAC_TOOLBAR): New define.
25368
25369 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25370 Return immediately unless popup is activated.
25371
25372 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25373 background to scroll bar gap.
25374 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25375 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25376 scroll bars on frame edge. Check fringe background extension.
25377 Don't clear extended fringe background area.
25378 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25379 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25380 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25381 [USE_MAC_TOOLBAR]: New macros.
25382 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25383 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25384 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25385 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25386 [USE_MAC_TOOLBAR]: New functions.
25387 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25388 manually if previous repositioning has failed.
25389 (mac_handle_keyboard_event): Use precomputed event kind.
25390 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25391 as tool bar item click. Handle mouse movement over tool bar items.
25392
25393 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25394 toolbar_win_gravity.
25395 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25396 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25397 Add externs.
25398
25399 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25400 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25401
254022007-06-14 Chong Yidong <cyd@stupidchicken.com>
25403
25404 * image.c (search_image_cache): Remove unused variable.
25405
254062007-06-13 Chong Yidong <cyd@stupidchicken.com>
25407
25408 * xfns.c, xmenu.c: Link to xaw3d if available.
25409
254102007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25411
25412 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25413 frame_foreground and frame_background.
25414
25415 * image.c (lookup_image): Save frame foreground and background colors.
25416 (search_image_cache): Check if saved and current frame colors match.
25417
254182007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25419
25420 * regex.c (regex_compile): Remove the `regnum' counter.
25421 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25422
254232007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25424
25425 * term.c: Include intervals.h to declare Fget_text_property.
25426
254272007-06-10 Jason Rumney <jasonr@gnu.org>
25428
25429 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25430
254312007-06-08 Juanma Barranquero <lekktu@gmail.com>
25432
25433 * callint.c (Fcall_interactively):
25434 * editfns.c (Fdelete_and_extract_region):
25435 * fileio.c (Fread_file_name):
25436 * fns.c (Fmapconcat):
25437 * keyboard.c (cmd_error_internal):
25438 * keymap.c (Fkey_description):
25439 * lread.c (openp):
25440 * minibuf.c (read_minibuf):
25441 * search.c (wordify):
25442 * sunfns.c (sel_read):
25443 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25444 * xfns.c (x_default_scroll_bar_color_parameter):
25445 * xmenu.c (menu_help_callback):
25446 * xselect.c (Fx_get_atom_name):
25447 * xterm.c (x_term_init): Use empty_unibyte_string.
25448
254492007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25450
25451 * alloc.c (init_strings): Initialize canonical empty strings.
25452 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25453 canonical empty string when the requested size is 0.
25454
25455 * emacs.c (empty_unibyte_string): Rename from empty_string.
25456 (empty_multibyte_string): New canonical empty string.
25457 (syms_of_emacs): Don't initialize empty_string.
25458
25459 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25460 string, if appropriate.
25461 (empty_unibyte_string, empty_multibyte_string): New externs.
25462 (empty_string): Remove extern.
25463
25464 * lread.c (syms_of_lread): Use empty_unibyte_string.
25465
254662007-06-07 Jason Rumney <jasonr@gnu.org>
25467
25468 * s/ms-w32.h: Don't define HAVE_TZNAME.
25469
25470 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25471
254722007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25473
25474 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25475
25476 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25477 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25478
25479 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25480 Don't call next handler.
25481 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25482 Remove argument. Install handler to application.
25483 (set_frame_menubar): Don't change deep_p.
25484 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25485 FRAME_OUTER_TO_INNER_DIFF_Y.
25486 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25487 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25488 [HAVE_DIALOGS]: New macros.
25489 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25490 Use them.
25491 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25492
25493 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25494 init_service_handler. All callers changed. Return OSStatus value.
25495
25496 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25497 All callers changed so as not to call SetPortWindowPort.
25498 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25499 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25500 mac_draw_string_common.
25501 (mac_draw_image_string_qd): Likewise.
25502 (mac_draw_string_common): Use them. Add INLINE.
25503 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25504 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25505 GetGlobalMouse.
25506 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25507 and FRAME_OUTER_TO_INNER_DIFF_Y.
25508 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25509 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25510 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25511 repositioning window to mac_handle_window_event.
25512 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25513 saving window location to mac_handle_window_event
25514 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25515 (install_menu_target_item_handler): Remove argument in extern.
25516 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25517 Also accept command events.
25518 (do_keystroke): New function created from XTread_socket.
25519 (init_command_handler): Remove functions.
25520 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25521 and save window location by kEventWindowShowing and kEventWindowHiding
25522 handlers here. Don't call next handler for window state change and
25523 focus events.
25524 (mac_handle_application_event, mac_handle_keyboard_event)
25525 [TARGET_API_MAC_CARBON]: New functions.
25526 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25527 kEventWindowShowing and kEventWindowHiding events. Move installation
25528 of mouse, font, text input and menu target item handlers to
25529 install_application_handler.
25530 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25531 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25532 New function.
25533 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25534 Register it.
25535 (XTread_socket) [TARGET_API_MAC_CARBON]:
25536 Consolidate SendEventToEventTarget calls.
25537 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25538 Move application activation handler to mac_handle_application_event.
25539 Move keyboard handler to mac_handle_keyboard_event.
25540 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25541 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25542 init_command_handler. Call install_application_handler.
25543
25544 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25545 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25546
255472007-06-07 Glenn Morris <rgm@gnu.org>
25548
25549 * emacs.c (main): Use `emacs-copyright' in --version output.
25550
255512007-06-06 Chong Yidong <cyd@stupidchicken.com>
25552
25553 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25554
255552007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25556
25557 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25558
25559 * macgui.h: Replace WindowPtr with WindowRef.
25560
25561 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25562 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25563 Replace ControlHandle with ControlRef.
25564 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25565
25566 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25567 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25568 Replace ControlHandle with ControlRef.
25569 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25570 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25571
25572 * macterm.h (struct scroll_bar): Rename member control_handle_low
25573 and control_handle_high to control_ref_low and control_ref_high.
25574 All uses changed.
25575 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25576 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25577 respectively. All uses changed.
25578 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25579 (install_window_handler, remove_window_handler): Replace WindowPtr
25580 with WindowRef in externs.
25581
255822007-06-05 Juanma Barranquero <lekktu@gmail.com>
25583
25584 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25585
255862007-06-03 Nick Roberts <nickrob@snap.net.nz>
25587
25588 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25589
25590 * frame.c (Fmouse_position, Fmouse_pixel_position):
25591 Condition on HAVE_GPM too.
25592
25593 * term.c (term_mouse_highlight): Remove unused variables.
25594 (Fterm_open_connection): Set gpm_zerobased to 1.
25595 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25596 Use zero based co-ordinates.
25597 (handle_one_term_event): Report a drag as mouse movement too.
25598
25599 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25600
256012007-06-03 Chong Yidong <cyd@stupidchicken.com>
25602
25603 * image.c (search_image_cache): New function. Require background
25604 color match if background color is unspecified in the image spec.
25605 (uncache_image, lookup_image): Use it.
25606
256072007-06-01 Juanma Barranquero <lekktu@gmail.com>
25608
25609 * window.c (Fshrink_window): Reflow docstring.
25610
256112007-06-02 Chong Yidong <cyd@stupidchicken.com>
25612
25613 * Version 22.1 released.
25614
256152007-06-01 Richard Stallman <rms@gnu.org>
25616
25617 * xfns.c (x_encode_text): Add GCPRO.
25618
256192007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25620
25621 * xfns.c (x_set_name_internal): Save encoded name before
25622 x_encode_text in case string data is relocated.
25623
256242007-05-31 Richard Stallman <rms@gnu.org>
25625
25626 * buffer.c (syms_of_buffer): Doc fix.
25627
256282007-05-30 Nick Roberts <nickrob@snap.net.nz>
25629
25630 * sysdep.c (init_sys_modes): Add rather than replace with
25631 O_NONBLOCK.
25632
25633 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25634 term_mouse_moveto.
25635
25636 * termhooks.h (term_mouse_moveto): New extern.
25637
25638 * term.c (mouse_face_window): Rename...
25639 (Qmouse_face_window): ...to this.
25640 (term_show_mouse_face, term_clear_mouse_face)
25641 (term_mouse_highlight): Use Qmouse_face_window.
25642 (term_mouse_moveto): New function.
25643 (term_mouse_position): Make it work.
25644 (syms_of_term): Uncomment assignment to mouse_position_hook.
25645 Staticpro Qmouse_face_window.
25646
256472007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25648
25649 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25650 around current_column call.
25651
256522007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25653
25654 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25655 * xdisp.c (next_element_from_buffer):
25656 * window.c (delete_window):
25657 * term.c (term_mouse_highlight):
25658 * msdos.c (getdefdir):
25659 * macterm.c (mac_create_bitmap_from_bitmap_data)
25660 (init_font_name_table):
25661 * fns.c (Fsxhash):
25662 * data.c (Fmake_local_variable):
25663 * ccl.c (ccl_driver): Likewise.
25664
256652007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25666
25667 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25668 Call mac_wakeup_from_rne on window size change.
25669
256702007-05-25 Chong Yidong <cyd@stupidchicken.com>
25671
25672 * image.c (uncache_image): Fix typo.
25673
256742007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25675
25676 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25677
256782007-05-22 Richard Stallman <rms@gnu.org>
25679
25680 * xterm.c (x_connection_closed): Remove NO_RETURN.
25681
256822007-05-22 Martin Rudalics <rudalics@gmx.at>
25683
25684 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25685
256862007-05-21 Chong Yidong <cyd@stupidchicken.com>
25687
25688 * image.c (uncache_image): New function.
25689 (Fimage_refresh): New function.
25690
256912007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25692
25693 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25694
256952007-05-20 Nick Roberts <nickrob@snap.net.nz>
25696
25697 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25698 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25699
257002007-05-20 Nick Roberts <nickrob@snap.net.nz>
25701
25702 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25703 conditional on [HAVE_GPM_H].
25704
257052007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25706
25707 * syntax.c (skip_chars): Update syntax-table only after we checked that
25708 the new location is valid.
25709
257102007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25711
25712 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25713 mac_get_window_bounds.
25714
257152007-05-20 Nick Roberts <nickrob@snap.net.nz>
25716
25717 * Makefile.in (LIBGPM): Allow it to be set from configure.
25718 If set then link Emacs with it.
25719
25720 * config.in: Regenerate.
25721
25722 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25723 New externs.
25724
25725 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25726 Include gpm.h.
25727 (handle_one_term_event, term_gpm): New externs.
25728
25729 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25730 and allow it to be interrupted by SIGIO.
25731
25732 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25733 (wait_reading_process_output): Wait on gpm_fd too.
25734 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25735 (add_gpm_wait_descriptor_called_flag): New variable.
25736 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25737
25738 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25739 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25740 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25741 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25742 (make_lispy_event): Add case GPM_CLICK_EVENT.
25743 (read_avail_input): Handle mouse input.
25744
25745 * term.c (write_glyphs_with_face): New function.
25746 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25747 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25748 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25749 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25750 (last_mouse_x, last_mouse_y): New variables.
25751 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25752 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25753 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25754 (Fterm_close_connection): New functions.
25755 (term_init): Initialise mouse_face_window.
25756
257572007-05-19 Chong Yidong <cyd@stupidchicken.com>
25758
25759 * xdisp.c (redisplay_window): If first window line is a
25760 continuation line, recompute the new window start instead of
25761 recentering.
25762
257632007-05-18 Glenn Morris <rgm@gnu.org>
25764
25765 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25766 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25767
257682007-05-17 Glenn Morris <rgm@gnu.org>
25769
25770 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25771
257722007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25773
25774 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25775 dead key repeat and up events.
25776
257772007-05-14 Chong Yidong <cyd@stupidchicken.com>
25778
25779 * image.c (pbm_load): Check image size for monochrome pbm.
25780
257812007-05-13 Chong Yidong <cyd@stupidchicken.com>
25782
25783 * xterm.c (XTread_socket): Revert last change.
25784
257852007-05-12 Chong Yidong <cyd@stupidchicken.com>
25786
25787 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25788
25789 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25790
257912007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25792
25793 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25794 mixup (YAILOM).
25795
257962007-05-07 Andreas Schwab <schwab@suse.de>
25797
25798 * keymap.c (Flookup_key): Fix typo in last change.
25799
258002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25801
25802 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25803 mapping for unibyte strings.
25804
258052007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25806
25807 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25808 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25809
258102007-04-29 Richard Stallman <rms@gnu.org>
25811
25812 * insdel.c (replace_range): For undo, record insertion first.
25813
258142007-04-29 Andreas Schwab <schwab@suse.de>
25815
25816 * lisp.h (VECSIZE): Use OFFSETOF.
25817
258182007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25819
25820 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25821 disabled lines.
25822
258232007-04-28 Richard Stallman <rms@gnu.org>
25824
25825 * lread.c (read_escape): In a string, \s is always space.
25826
258272007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25828
25829 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25830
25831 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25832 submenu for menu bar items.
25833
25834See ChangeLog.10 for earlier changes.
25835
25836;; Local Variables:
25837;; coding: utf-8
25838;; add-log-time-zone-rule: t
aac0c6e3
MR
25839;; End:
25840
e3eb1dae 25841 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25842
25843 This file is part of GNU Emacs.
25844
25845 GNU Emacs is free software: you can redistribute it and/or modify
25846 it under the terms of the GNU General Public License as published by
25847 the Free Software Foundation, either version 3 of the License, or
25848 (at your option) any later version.
25849
25850 GNU Emacs is distributed in the hope that it will be useful,
25851 but WITHOUT ANY WARRANTY; without even the implied warranty of
25852 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25853 GNU General Public License for more details.
25854
25855 You should have received a copy of the GNU General Public License
25856 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25857
25858;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40