* processes.texi (Process Information): Explain process property
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8848b728
JD
12010-07-29 Jan Djärv <jan.h.d@swipnet.se>
2
3 * vm-limit.c (POINTER): Add typedef for it.
4 (start_of_data): Change return type from POINTER to char *.
5
6 * frame.h (Qtty_color_mode): Move declaration out of ifdef
7 HAVE_WINDOW_SYSTEM.
8
76fd1ee9
DN
92010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
10
0441987e
DN
11 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
12 Remove reference to __osf__, unused.
13
56a000c7
DN
14 * mem-limits.h: Remove duplicated includes.
15 (NULL): Remove definition, unused.
16 (POINTER): Remove definition.
17 (start_of_data): Use char* in prototype, as the function
18 definition does.
19
e6cba650
DN
20 Remove extern declarations from .c files, and them to .h files.
21 * keyboard.h (Qhelp_echo, waiting_for_input)
22 (input_available_clear_time, ignore_mouse_drag_p)
23 (Vdouble_click_time, real_this_command, Vthis_original_command):
24 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
25 (Voverriding_local_map_menu_flag):
26 * lisp.h (Qinteractive_form, use_file_dialog)
27 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
28 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
29 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
30 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
31 (Qfunction, debug_on_next_call, Qfield)
32 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
33 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
34 (Qfile_directory_p, Qinsert_file_contents)
35 (Qcompletion_ignore_case, Qcompletion_ignore_case)
36 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
37 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
38 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
39 (Qminibuffer_prompt)
40 (Vtemporary_file_directory,char_ins_del_vector, Qface):
41 * xterm.h (gray_bitmap_width, gray_bitmap_height)
42 (gray_bitmap_bits, xic_create_fontsetname):
43 * coding.h (Vtranslation_table_for_input): Add extern declarations.
44
45 * xsmfns.c (Vuser_login_name):
46 * xrdb.c (Vdouble_click_time):
47 * xfaces.c (xic_create_fontsetname):
48 * w32select.c (waiting_for_input):
49 * print.c (minibuffer_auto_raise):
50 * msdos.c (Qhelp_echo):
51 * macros.c (real_this_command):
52 * keymap.c (Voverriding_local_map):
53 * xterm.c (poll_for_input_1, gray_bitmap_width)
54 (gray_bitmap_height, gray_bitmap_bits;
55 * xmenu.c ( Voverriding_local_map)
56 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
57 (use_file_dialog, Xt_app_con):
58 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
59 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
60 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
61 (Qtool_bar_lines, ignore_mouse_drag_p):
62 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
63 (Qrear_nonsticky, nconc2):
64 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
65 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
66 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
67 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
68 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
69 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
70 (gc_in_progress):
71 * doc.c (Voverriding_local_map, Qremap):
72 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
73 (Vcompletion_regexp_list):
74 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
75 (Qcompletion_ignore_case):
76 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
77 (Vhistory_length, Vthis_original_command, real_this_command)
78 (Qface, Qminibuffer_prompt, history_delete_duplicates):
79 * image.c (Qrisky_local_variable):
80 * fontset.c (QCname):
81 * fns.c (minibuffer_auto_raise, QCname):
82 * dispnew.c (char_ins_del_cost):
83 * composite.c (font_fill_lglyph_metrics):
84 * cmds.c (Qface, Vtranslation_table_for_input):
85 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
86 * ccl.c (charset_unicode):
87 * callproc.c (Vtemporary_file_directory):
88 * buffer.c (emacs_strerror): Remove extern declarations.
89
90 * data.c (Qwindow): Make non-static, used from other files too.
91 * frame.c (validate_x_resource_name): Remove shadow definition for i.
92
76fd1ee9
DN
93 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
94 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
95 * s/usg5-4.h (COFF):
96 * s/template.h:
97 * s/msdos.h (COFF, NO_REMAP):
98 * s/ms-w32.h (NO_REMAP):
99 * s/hpux10-20.h (NO_REMAP):
100 * m/sparc.h (SEGMENT_MASK):
101 * m/m68k.h (NO_REMAP):
102 * m/intel386.h (SEGMENT_MASK):
103 * m/arm.h (NO_REMAP):
104 * m/alpha.h (COFF):
105 * m/template.h: Remove references to unused defines.
106
8a52f00a
JD
1072010-07-28 Jan Djärv <jan.h.d@swipnet.se>
108
109 * xsettings.c (Ftool_bar_get_system_style): Also check for
110 Qtext_image_horiz.
111
112 * xdisp.c (Qtext_image_horiz): Define.
113 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 114 to documentation of tool-bar-style.
8a52f00a
JD
115
116 * lisp.h (Qtext_image_horiz): Declare.
117
118 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
119 style text_image_horiz.
120
89dc303e
DN
1212010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
122
60799703
DN
123 * emacs.c (Fkill_emacs): Remove return statement.
124
37254dc1
DN
125 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
126 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
127 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
128 local extern declarations.
129
71c7345a
DN
130 * xmenu.c: Do not included lwlib.h, not needed.
131
6ba577cb
DN
132 * m/iris4d.h (XUINT, XSET): Remove, not needed.
133
fdb183d6
DN
134 * process.c: Move definitions earlier to minimize #ifdefs.
135
136 * xterm.h (x_get_customization_string, x_load_resources)
137 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
138 (x_check_errors, x_property_data_to_lisp, defined_color)
139 (xic_set_xfontset, x_defined_color): Use const.
140
141 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
142 (x_text_icon, x_check_errors, x_connection_closed): Use const.
143
144 * xselect.c (selection_data_to_lisp_data)
145 (x_property_data_to_lisp):
146 * xrdb.c (x_get_string_resource, file_p)
147 (x_get_customization_string, magic_file_p, search_magic_path)
148 (get_system_app, get_user_app, x_load_resources, x_get_resource)
149 (x_get_string_resource): Use const.
150
151 * xfns.c: Include xlwmenu.h when USE_LUCID.
152 (x_defined_color, xic_set_xfontset): Use const.
153 (Fx_hide_tip): Remove local extern declaration.
154
155 * xfaces.c (Qmouse_face): Remove declaration.
156 (face_color_gray_p, tty_defined_color, defined_color)
157 (face_color_gray_p, face_color_supported_p). Add const.
158
159 * xdisp.c (do_mouse_tracking): Remove declaration.
160 (add_to_log): Use const.
161
162 * minibuf.c (Qmouse_face): Remove declaration.
163
164 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
165
166 * keyboard.h (do_mouse_tracking): Add declaration.
167
168 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
169 (QCdata, QCtype, Qcenter): Remove declarations.
170
171 * frame.c (x_get_resource_string, x_get_string_resource)
172 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
173 (x_default_parameter): Use const.
174
175 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
176 (QCheight, QCsize, QCname): Remove declarations.
177
178 * emacs.c (main): Remove local extern declaration.
179
180 * editfns.c (region_limit, syms_of_editfns): Remove local extern
181 declarations.
182
183 * dispnew.c: Remove duplicate #include <unistd.h>.
184 (update_window, update_frame_1, init_display): Remove local extern
185 declarations.
186
187 * dispextern.h (add_to_log): Remove declaration.
188 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
189 (x_frame_get_and_record_arg, x_default_parameter): Add const.
190
191 * dired.c (scmp): Add const.
192 (directory_files_internal): Remove local extern declaration.
193
194 * data.c (Finteractive_form): Use const.
195
196 * composite.c (syms_of_composite): Remove local extern declarations.
197
198 * charset.c (add_to_log): Remove declaration.
199
200 * character.c (strwidth, parse_str_to_multibyte): Add const.
201
202 * character.h (strwidth, parse_str_to_multibyte): Likewise.
203
204 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
205
89dc303e 206 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
207 (Lisp_Subr): Make doc and intspec constant.
208 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
209 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
210 (QCheight, QCsize, QCname, QCwidth, QCforeground)
211 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
212 (display_arg): Add declarations.
89dc303e 213
0ed082fe 2142010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
215
216 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
217
0ed082fe
JB
218 * window.c (Fwindow_height): Doc fix (bug#6518).
219
2202010-07-27 Juanma Barranquero <lekktu@gmail.com>
221
222 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
223
ccaf0336
DN
2242010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
225
977105dc
DN
226 * keyboard.c (Ftop_level, Fexit_recursive_edit)
227 (Fabort_recursive_edit): Remove return statements in NO_RETURN
228 functions.
229
f5ada890
DN
230 * frame.h (Qtty_color_mode): Add declaration.
231
ccaf0336
DN
232 * lisp.h (Ftop_level, Fexit_recursive_edit)
233 (Fabort_recursive_edit): Mark as NO_RETURN.
234
dfe3c90f
KH
2352010-07-26 Kenichi Handa <handa@m17n.org>
236
237 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 238 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 239
7d383292
JB
2402010-07-26 Juanma Barranquero <lekktu@gmail.com>
241
242 * lread.c (unreadpure, mapatoms_1): Make static.
243
da31e629
JB
2442010-07-25 Juanma Barranquero <lekktu@gmail.com>
245
246 * terminfo.c (tparam): Fix prototype of tparm.
247
7bfa6d77
AS
2482010-07-25 Andreas Schwab <schwab@linux-m68k.org>
249
dcc19aac
AS
250 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
251 find start of text segment.
252 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
253 is defined.
254
7bfa6d77
AS
255 * callproc.c (set_initial_environment): Avoid unbalanced braces.
256
63f9a672
KB
2572010-07-25 Ken Brown <kbrown@cornell.edu>
258
259 * vm-limit.c (check_memory_limits): Fix previous change;
260 accidentally reverted an earlier change.
261
24933075
KB
2622010-07-25 Ken Brown <kbrown@cornell.edu>
263
264 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
265 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
266
361358ea
JB
2672010-07-25 Juanma Barranquero <lekktu@gmail.com>
268
269 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
270 * dired.c (opendir, readdir): Fix prototypes.
271 * editfns.c (w32_get_internal_run_time): Fix prototypes.
272 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
273 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
274 (telldir): Remove declaration.
275 * ralloc.c (real_morecore, __morecore): Fix prototypes.
276 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
277 * syssignal.h (strsignal): Fix prototype.
278 * term.c (tparam): Fix prototype.
279 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
280 (term_get_fkeys): Set inside "#ifndef DOS_NT".
281 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
282 and __morecore.
283 * w32gui.h (XParseGeometry): Fix prototype.
284 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
285 * w32term.c (my_set_focus): Declare inside #if 0.
286 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
287 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
288 (drain_message_queue, get_next_msg, post_msg, parse_button)
289 (ClipboardSequence_Proc): Fix prototypes.
290 (wait_for_sync): Remove declaration.
291
630b9592
JB
2922010-07-24 Juanma Barranquero <lekktu@gmail.com>
293
294 * w32fns.c (w32_to_x_color): Remove, unused.
295
6a0d6611
AS
2962010-07-24 Andreas Schwab <schwab@linux-m68k.org>
297
298 * lisp.h: Remove leftover P_.
299
4e8608ff
DN
3002010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
301
302 * ecrt0.c, unexalpha.c: Remove files, unused.
303
c8197983
AS
3042010-07-24 Andreas Schwab <schwab@linux-m68k.org>
305
306 * cmds.c (internal_self_insert): Make static.
307 * lisp.h (internal_self_insert): Remove declaration.
308
97b372d7
JB
3092010-07-23 Juanma Barranquero <lekktu@gmail.com>
310
33ac0414
JB
311 * alloc.c (free_float):
312 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
313 * frame.c (delete_frame_handler):
314 * ralloc.c (reorder_bloc):
315 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
316 Remove unused static functions.
317
94da8397
JB
318 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
319 it is called only from NS code.
320
2e6c8532
JB
321 * w32term.c (my_set_focus): #ifdef away; it is called only from
322 "#ifdef 0" code.
323
97b372d7
JB
324 * w32fns.c (x_edge_detection):
325 * xfaces.c (may_use_scalable_font_p):
326 Remove obsolete static declarations.
327
7c3320d8
JB
3282010-07-20 Juanma Barranquero <lekktu@gmail.com>
329
330 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
331 (emacs_blocked_realloc, uninterrupt_malloc):
332 * fringe.c (w32_reset_fringes):
333 * image.c (convert_mono_to_color_image, lookup_rgb_color)
334 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
335 * sound.c (be2hs, do_play_sound):
336 * vm-limit.c (get_lim_data, ret_lim_data):
337 * w32term.c (x_free_frame_resources):
338 * xfaces.c (x_create_gc, x_free_gc):
339 Convert definitions to standard C.
340
d5273788
SM
3412010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
342
343 * eval.c (Feval, Ffuncall): Use the new names.
344
345 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
346 (DEFUN): Add braces around the union initialisation and use ## to
347 specify the right union alternative and avoid a cast.
348
8d16a259
JB
3492010-07-18 Juanma Barranquero <lekktu@gmail.com>
350
351 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
352
3b8eff32
CY
3532010-07-17 Chong Yidong <cyd@stupidchicken.com>
354
355 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
356
499322ce
J
3572010-07-17 Jan Djärv <jan.h.d@swipnet.se>
358
359 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
360 is related to the menu bar (Bug#6499).
a628ad9d 361 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 362
f6003da5 3632010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
364
365 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
366
367 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
368
369 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
370 i.e. don't put back ButtonRelease (Bug#6608).
371
372 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
373 instead of Window. Call xg_event_is_for_menubar when
374 USE_GTK (Bug#6499).
375
376 * gtkutil.h (xg_event_is_for_menubar): Declare.
377
378 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
379
f6003da5 3802010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
381
382 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
383 when it's the same as the old foreground. (Bug#6609)
384
23243f29
J
3852010-07-16 Jan Djärv <jan.h.d@swipnet.se>
386
387 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
388 widget is non-null (Bug#6645).
389
2b23d2a6
AS
3902010-07-15 Andreas Schwab <schwab@linux-m68k.org>
391
01b564ff
AS
392 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
393 Convert old-style definition.
394
2b23d2a6
AS
395 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
396 timestamp argument.
397
c4affd2c
EZ
3982010-07-15 Eli Zaretskii <eliz@gnu.org>
399
400 * fringe.c (update_window_fringes): Restore mistakenly reverted
401 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
402
cf28cebc
J
4032010-07-14 Jan Djärv <jan.h.d@swipnet.se>
404
405 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
406 (SET_SAVED_KEY_EVENT): Remove (not used).
407 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
408 remove size parameter.
409 (handle_one_xevent): Check popup_activated () for menu for Xt also.
410 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
411 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
412 ButtonRelease.
6b2c4bd9
J
413 (x_set_window_size_1): scroll_bar_actual_width is always
414 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
415
416 * xdisp.c (pending_menu_activation): Remove extern declaration.
417 (prepare_menu_bars): Remove setting of pending_menu_activation.
418
419 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
420 (x_activate_menubar): Set popup_activated_flag for Xt also.
421 Remove setting of pending_menu_activation.
cf28cebc
J
422 (set_frame_menubar): Remove check of pending_menu_activation.
423 Declare menubar_size before code. Correct spelling in comment.
424
f6c1c771
KH
4252010-07-14 Kenichi Handa <handa@m17n.org>
426
427 * font.c (font_open_entity): Cancel previous change.
428 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
429
20477505
EZ
4302010-07-13 Eli Zaretskii <eliz@gnu.org>
431
77defa9a
EZ
432 Remove subprocesses #ifdefs.
433 * process.c <inhibit_sentinels>: Move to the common part.
434 (Fwaiting_for_user_input_p): Move to the common part; return nil
435 if async subprocesses aren't supported.
436 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
437 MS-DOS. Remove "#ifdef subprocesses".
438 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
439 (gettimeofday): Remove "#ifdef subprocesses".
440 (wait_without_blocking): Remove function.
441 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
442 Remove "#ifdef subprocesses".
443 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
444 compiled on MS-DOS.
445 * callproc.c (Fcall_process) [!MSDOS]: Don't call
446 wait_for_termination on MS-DOS.
447 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
448 initialization of inhibit_sentinels.
449 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
450 subprocesses" conditional.
451 * callproc.c (Fcall_process) [!subprocesses]: Don't call
452 wait_for_termination, since `buffer' cannot be an integer when
453 async subprocesses are not supported
454 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
455 for ifdefing away the call to Fprocess_status.
456
20477505
EZ
457 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
458 away the entire body of the function.
459
b3ffc17c
DN
4602010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
461
01faa934
DN
462 Remove subprocesses #ifdefs from term.c.
463 * process.c (add_keyboard_wait_descriptor)
464 (delete_keyboard_wait_descriptor): Move to common section, do
465 nothing when subprocesses is not defined.
a628ad9d
JB
466 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
467 Remove subprocesses #ifdefs.
01faa934 468
b3ffc17c
DN
469 Convert maybe_fatal to standard C.
470 * lisp.h (verror): Declare.
471 * eval.c (verror): New function containing the code from ...
472 (error): ... this. Call verror.
473 * term.c (vfatal): New function containing the code from ...
474 (fatal): ... this. Call vfatal.
475 (maybe_fatal): Convert to standard C, use variable number of
476 arguments. Declare as non-return.
477 (init_tty): Fix maybe_fatal call.
478
0521f580
DN
4792010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
480
481 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
482 (_scroll_bar_note_movement): Convert definitions to standard C.
483 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
484 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
485
ebd15611
DN
4862010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
487
488 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
489 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
490 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
491 (xaw_jump_callback, xaw_scroll_callback)
492 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
493 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
494 definitions to standard C.
495 * xmenu.c (menubar_id_to_frame, popup_get_selection)
496 (popup_activate_callback, popup_deactivate_callback)
497 (menu_highlight_callback, menubar_selection_callback)
498 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
499 (free_frame_menubar, popup_selection_callback, as)
500 (create_and_show_popup_menu, dialog_selection_callback)
501 (create_and_show_dialog):
502 * xfns.c (hack_wm_protocols, x_window):
503 * xfaces.c (x_update_menu_appearance):
504 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
505 (char_to_pixel_size, round_size_to_char, get_wm_shell)
506 (set_frame_size, update_wm_hints, setup_frame_gcs)
507 (update_various_frame_slots, update_from_various_frame_slots)
508 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
509 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
510 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
511
de06a2dd
AS
5122010-07-12 Andreas Schwab <schwab@linux-m68k.org>
513
a628ad9d 514 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 515
fc549af9
EZ
5162010-07-12 Eli Zaretskii <eliz@gnu.org>
517
518 * process.c (setup_process_coding_systems): Move to the part
519 shared by non-subprocesses systems, and make its body empty when
520 subprocesses is not defined.
521 (close_process_descs): Move to the part shared by non-subprocesses
522 systems.
1408902e
EZ
523 (wait_reading_process_output) [!subprocesses]: Convert arg list to
524 ANSI C.
fc549af9 525
d5a3eaaf
AS
5262010-07-12 Andreas Schwab <schwab@linux-m68k.org>
527
528 * editfns.c (transpose_markers): Convert old-style definition.
529 * emacs.c (abort, shut_down_emacs, fixup_locale)
530 (synchronize_system_time_locale)
531 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
532 * floatfns.c (extract_float, matherr, init_floatfns)
533 (syms_of_floatfns): Likewise.
534 * fns.c (make_hash_table): Likewise.
535 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
536 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
537 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
538 (ftfont_variation_glyphs): Likewise.
539 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
540 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
541 * lread.c (read_filtered_event): Likewise.
542 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
543 * process.c (wait_reading_process_output): Likewise.
544 * scroll.c (do_line_insertion_deletion_costs): Likewise.
545 * search.c (search_buffer, boyer_moore): Likewise.
546 * syntax.c (scan_sexps_forward): Likewise.
547 * xdisp.c (try_scrolling): Likewise.
548 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
549 (face_at_string_position): Likewise.
550 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
551 * xselect.c (x_get_window_property, receive_incremental_selection)
552 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
553 Likewise.
554 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
555
6f704c76
DN
5562010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
557
ded80a25
DN
558 * callproc.c (child_setup): Remove subprocesses conditional.
559 Remove code dealing with SET_EMACS_PRIORITY, unused.
560
49d937f4 561 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
562 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
563
564 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
565 (__do_global_dtors, __main): Use void in definition.
566 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
567 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
568 the only users from ...
569 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
570 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
571 (HAVE_VOLATILE): Remove, unused.
572
6f704c76
DN
573 Convert more function definitions to standard C.
574 * xdisp.c (window_box_edges, handle_single_display_spec)
575 (display_string): Convert definition to standard C.
576 * scroll.c (do_direct_scrolling, scrolling_1):
577 * dispnew.c (allocate_matrices_for_frame_redisplay)
578 (mirrored_line_dance):
579 * coding.c (code_convert_string):
580 * charset.c (map_charset_chars):
581 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
582 (Fregister_ccl_program, Fregister_code_conversion_map):
583 * keyboard.c (kbd_buffer_nr_stored): Likewise.
584 (head_table): Make static and const.
585
e6cfa7c3
AS
5862010-07-12 Andreas Schwab <schwab@linux-m68k.org>
587
588 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
589 (PROFILING_LDFLAGS): Set from substitution.
590 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
591 CFLAGS last.
592
892dd565
KH
5932010-07-12 Kenichi Handa <handa@m17n.org>
594
6f2cdcd1
KH
595 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
596 (shortlisp): Likewise.
597
892dd565
KH
598 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
599
600 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
601 of FONT_ENTITY_INDEX.
602 (Ffont_get): If KEY is :otf and the font-object doesn't have the
603 property, get the property value dynamically.
604 (Ffont_put): Accept font-entity and font-object too.
605 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
606 return value changed.
607 (syms_of_font): Adjusted for the above change.
608
ae96d47a
AS
6092010-07-11 Andreas Schwab <schwab@linux-m68k.org>
610
c8fc18ee
AS
611 * blockinput.h: Remove obsolete comment.
612
89887d67
AS
613 * lisp.h: Include <stddef.h>.
614 (OFFSETOF): Don't define.
615 (VECSIZE): Use offsetof instead of OFFSETOF.
616 (PSEUDOVECSIZE): Likewise.
617 * process.c (conv_sockaddr_to_lisp): Likewise.
618 * alloc.c: Don't include <stddef.h>.
619 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
620
ae96d47a
AS
621 * process.c: Remove obsolete comment.
622
635c0aa1
CY
6232010-07-11 Chong Yidong <cyd@stupidchicken.com>
624
625 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
626
a64df650
AS
6272010-07-11 Andreas Schwab <schwab@linux-m68k.org>
628
8966b757
AS
629 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
630 index, rindex.
631 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
632 * editfns.c (Fuser_full_name, Fformat): Likewise.
633 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
634 * fileio.c (Ffile_symlink_p): Likewise.
635 * filelock.c (current_lock_owner): Likewise.
636 * font.c (font_parse_name, font_parse_family_registry): Likewise.
637 * fontset.c (fontset_pattern_regexp): Likewise.
638 * lread.c (read1): Likewise.
639 * sysdep.c (init_system_name): Likewise.
640 * xfns.c (select_visual): Likewise.
641 * s/hpux10-20.h (index, rindex): Don't define.
642 * s/ms-w32.h (index): Likewise.
643 * s/usg5-4.h: Likewise.
644
cf237e27
AS
645 * callproc.c (relocate_fd): Use F_DUPFD if defined.
646
a8fe7202
AS
647 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
648 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
649 (egetenv): Likewise.
650 * doprnt.c (doprnt): Likewise.
651 * editfns.c (set_time_zone_rule, format2): Likewise.
652 * emacs.c (decode_env_path): Likewise.
653 * eval.c (signal_error, error): Likewise.
654 * insdel.c (replace_range_2): Likewise.
655 * keyboard.c (cmd_error_internal): Likewise.
656 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
657 * print.c (write_string, write_string_1, print_error_message):
658 Likewise.
659 * vm-limit.c (warn_function, memory_warnings): Likewise.
660 * xdisp.c (message1, message1_nolog, message_with_string)
661 (vmessage, message, message_nolog): Likewise.
662 * emacs.c: Remove duplicate declaration.
663 * keyboard.h: Likewise.
664 * lisp.h: Update prototypes.
665
bb8e180f
AS
666 * eval.c: Fix indentation problem.
667
83380e65
AS
668 * keyboard.c: Include "process.h"
669
a64df650
AS
670 * eval.c: Remove obsolete noinline declaration.
671 * fns.c: Likewise.
672
6a8033e1
KR
6732010-07-11 Ken Raeburn <raeburn@raeburn.org>
674
675 * doprnt.c (doprnt): Take a va_list argument instead of count and
676 pointer.
677 * eval.c (error): Change to a standard-C variadic function.
678 * xdisp.c (vmessage): Renamed from message, made static, and
679 changed to take a va_list argument.
680 (message): New variadic wrapper.
681 (message_nolog): Now a variadic function, calling vmessage.
682 * lisp.h: Include stdarg.h for va_list.
683 (doprnt, error, message, message_nolog): Decls updated.
684
462aa963
EZ
6852010-07-11 Eli Zaretskii <eliz@gnu.org>
686
687 * process.c (syms_of_process) <delete-exited-processes>: Define
688 even if !subprocesses.
689 (delete_exited_processes): Ditto.
690
691 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
692 (delete_exited_processes): Don't define.
693
48104462
CY
6942010-07-10 Chong Yidong <cyd@stupidchicken.com>
695
696 * frame.c (make_frame): Initialize menu_bar_lines and
697 tool_bar_lines members.
698 (make_initial_frame, make_terminal_frame): Initialize
699 menu_bar_lines using value of menu-bar-mode.
700
701 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
702
f388c88a
EZ
7032010-07-10 Eli Zaretskii <eliz@gnu.org>
704
705 * process.c: Reshuffle #include's. Condition some of the global
706 and static variables on `subprocesses'.
707 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
708 Leave only one implementation.
709 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
710 (kill_buffer_processes, Flist_system_processes)
711 (Fprocess_attributes, init_process, syms_of_process): Unify the
712 implementations for with subprocesses and without them.
713
723f5a07
J
7142010-07-09 Jan Djärv <jan.h.d@swipnet.se>
715
716 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
717 correct size for Motif.
718 (free_frame_menubar): Call x_set_window_size to update frame size.
719
720 * xfns.c (x_window): Set borderWidth to 0 for pane and
721 EmacsFrame. Frame size calculation is wrong otherwise.
722
2536a4b7
MA
7232010-07-09 Michael Albinus <michael.albinus@gmx.de>
724
725 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
726 allows to suppress errors when polling in Emacs' main loop.
727 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
728 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
729 (Fdbus_method_error_internal, Fdbus_send_signal)
730 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
731 (Fdbus_register_method): Use it. (Bug#6579)
732
5842a27b
DN
7332010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
734
735 * alloc.c: Convert DEFUNs to standard C.
736 * buffer.c:
737 * bytecode.c:
738 * callint.c:
739 * callproc.c:
740 * casefiddle.c:
741 * casetab.c:
742 * category.c:
743 * character.c:
744 * charset.c:
745 * chartab.c:
746 * cmds.c:
747 * coding.c:
748 * composite.c:
749 * data.c:
750 * dbusbind.c:
751 * dired.c:
752 * dispnew.c:
753 * doc.c:
754 * dosfns.c:
755 * editfns.c:
756 * emacs.c:
757 * eval.c:
758 * fileio.c:
759 * filelock.c:
760 * floatfns.c:
761 * fns.c:
762 * font.c:
763 * fontset.c:
764 * frame.c:
765 * fringe.c:
766 * image.c:
767 * indent.c:
768 * insdel.c:
769 * keyboard.c:
770 * keymap.c:
771 * lread.c:
772 * macros.c:
773 * marker.c:
774 * menu.c:
775 * minibuf.c:
776 * msdos.c:
777 * nsfns.m:
778 * nsmenu.m:
779 * nsselect.m:
780 * print.c:
781 * process.c:
782 * search.c:
783 * sound.c:
784 * syntax.c:
785 * term.c:
786 * terminal.c:
787 * textprop.c:
788 * undo.c:
789 * w16select.c:
790 * w32console.c:
791 * w32fns.c:
792 * w32font.c:
793 * w32menu.c:
794 * w32proc.c:
795 * w32select.c:
796 * window.c:
797 * xdisp.c:
798 * xfaces.c:
799 * xfns.c:
800 * xmenu.c:
801 * xselect.c:
802 * xsettings.c:
803 * xsmfns.c: Likewise.
804
d568829b
EZ
8052010-07-08 Eli Zaretskii <eliz@gnu.org>
806
807 * process.c (kbd_is_on_hold, hold_keyboard_input)
808 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
809
52214050
J
8102010-07-08 Jan Djärv <jan.h.d@swipnet.se>
811
812 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
813 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
814 unless USE_LUCID.
815
313d9eb2
DN
8162010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
817
a628ad9d
JB
818 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
819 declaration.
d8825aa3 820
295d0d8f
DN
821 Clean up include guards.
822 * tparam.c: Remove include guards for config.h, string.h and code
823 that assumes #ifndef emacs.
824 * termcap.c:
825 * unexalpha.c:
826 * sysdep.c:
827 * filemode.c:
828 * filelock.c:
829 * bidi.c: Likewise.
830
49d9e6b0
DN
831 Remove prefix-args.c
832 * prefix-args.c: Remove file.
833 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
834 * Makefile.in (temacs${EXEEXT}): Remove references to
835 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
836 (mostlyclean): Remove reference to prefix-args.
837 (prefix-args): Remove.
838
313d9eb2
DN
839 Simplify cstart_of_data, start_of_code and related code.
840 * mem-limits.h: Remove !emacs and _LIBC conditional code.
841 (start_of_data): Merge into start_of_data function.
842 * sysdep.c (start_of_text): Remove. Move simplified versions of
843 it in the only users: unexaix.c and unexec.c.
844 (read_input_waiting): Remove local declaration of quit_char.
845 (start, etext): Remove declarations.
846 (start_of_data): Merge with the version in mem-limits.h and move
847 to vm-limits.c.
848 * vm-limit.c (start_of_data): Merged and simplified version of the
849 code formerly in mem-limits.h and sysdep.c.
850 * unexec.c (start): New declaration, moved from sysdep.c.
851 (start_of_text): Simplified version of the code formerly in sysdep.c.
852 * unexaix.c (start_of_text): Simplified version of the code
853 formerly in sysdep.c.
854 * m/alpha.h (HAVE_TEXT_START): Remove.
855 (TEXT_START): Move ...
856 * unexalpha.c (TEXT_START): ... here.
857 * s/hpux10-20.h (TEXT_START): Remove.
858 * s/darwin.h (TEXT_START):
859 * m/mips.h (TEXT_START):
860 * m/macppc.h (HAVE_TEXT_START):
861 * m/m68k.h (TEXT_START):
862 * m/iris4d.h (TEXT_START):
863 * m/intel386.h (TEXT_START):
864 * m/ibmrs6000.h (TEXT_START):
865 * m/ia64.h (HAVE_TEXT_START):
866 * s/msdos.h (TEXT_START): Likewise.
867
72af86bd
AS
8682010-07-07 Andreas Schwab <schwab@linux-m68k.org>
869
870 * alloc.c (overrun_check_malloc, overrun_check_realloc)
871 (overrun_check_free, xstrdup, allocate_string)
872 (allocate_string_data, compact_small_strings, Fmake_string)
873 (make_unibyte_string, make_multibyte_string)
874 (make_string_from_bytes, make_specified_string, make_float)
875 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
876 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
877 memcpy, memmove, memset, memcmp.
878 * atimer.c (start_atimer, set_alarm): Likewise.
879 * buffer.c (clone_per_buffer_values, report_overlay_modification)
880 (mmap_realloc, init_buffer_once): Likewise.
881 * callint.c (Fcall_interactively): Likewise.
882 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
883 (getenv_internal_1): Likewise.
884 * casefiddle.c (casify_object): Likewise.
885 * ccl.c (ccl_driver): Likewise.
886 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
887 * charset.c (load_charset_map_from_file)
888 (load_charset_map_from_file, load_charset_map_from_vector)
889 (Fdefine_charset_internal): Likewise.
890 * cm.c (Wcm_clear): Likewise.
891 * coding.c (decode_eol, decode_coding_object)
892 (Fset_coding_system_priority, make_subsidiaries): Likewise.
893 * data.c (Faset): Likewise.
894 * dired.c (directory_files_internal, file_name_completion_stat):
895 Likewise.
896 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
897 (clear_glyph_row, copy_row_except_pointers)
898 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
899 (save_current_matrix, restore_current_matrix)
900 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
901 (mirror_line_dance, scrolling_window): Likewise.
902 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
903 Likewise.
904 * doprnt.c (doprnt): Likewise.
905 * editfns.c (Fuser_full_name, make_buffer_string_both)
906 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
907 * emacs.c (sort_args): Likewise.
908 * eval.c (Fapply, Ffuncall): Likewise.
909 * fileio.c (Ffile_name_directory, make_temp_name)
910 (Fexpand_file_name, search_embedded_absfilename)
911 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
912 (auto_save_error): Likewise.
913 * fns.c (Fstring_equal, Fcopy_sequence, concat)
914 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
915 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
916 (Fmake_hash_table): Likewise.
917 * fringe.c (Fdefine_fringe_bitmap): Likewise.
918 * ftfont.c (ftfont_text_extents): Likewise.
919 * getloadavg.c (getloadavg): Likewise.
920 * image.c (define_image_type, make_image, make_image_cache)
921 (x_create_x_image_and_pixmap, xbm_image_p)
922 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
923 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
924 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
925 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
926 (tiff_image_p, tiff_read_from_memory, gif_image_p)
927 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
928 Likewise.
929 * indent.c (scan_for_column, compute_motion): Likewise.
930 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
931 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
932 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
933 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
934 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
935 (store_user_signal_events, menu_bar_items, tool_bar_items)
936 (process_tool_bar_item, append_tool_bar_item)
937 (read_char_minibuf_menu_prompt, read_key_sequence)
938 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
939 Likewise.
940 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
941 Likewise.
942 * lisp.h (STRING_COPYIN): Likewise.
943 * lread.c (Fload, read1, oblookup): Likewise.
944 * msdos.c (Frecent_doskeys): Likewise.
945 * nsfns.m (Fx_create_frame): Likewise.
946 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
947 Likewise.
948 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
949 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
950 Likewise.
951 * nsmenu.m (ns_update_menubar): Likewise.
952 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
953 * print.c (print_unwind, printchar, strout, print_string)
954 (print_error_message): Likewise.
955 * process.c (conv_lisp_to_sockaddr, set_socket_option)
956 (Fmake_network_process, Fnetwork_interface_list)
957 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
958 (init_process): Likewise.
959 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
960 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
961 Likewise.
962 * scroll.c (do_scrolling, do_direct_scrolling)
963 (scrolling_max_lines_saved): Likewise.
964 * search.c (search_buffer, wordify, Freplace_match): Likewise.
965 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
966 * syntax.c (skip_chars, skip_syntaxes): Likewise.
967 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
968 (emacs_set_tty): Likewise.
969 * term.c (encode_terminal_code, calculate_costs)
970 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
971 Likewise.
972 * termcap.c (tgetst1, gobble_line): Likewise.
973 * termhooks.h (EVENT_INIT): Likewise.
974 * tparam.c (tparam1): Likewise.
975 * unexalpha.c (unexec): Likewise.
976 * unexec.c (write_segment): Likewise.
977 * unexmacosx.c (unexec_write_zero): Likewise.
978 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
979 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
980 * w32font.c (w32font_list_family, w32font_text_extents)
981 (w32font_list_internal, w32font_match_internal)
982 (w32font_open_internal, compute_metrics, Fx_select_font):
983 Likewise.
984 * w32menu.c (set_frame_menubar, add_menu_item)
985 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
986 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
987 * w32uniscribe.c (uniscribe_list_family): Likewise.
988 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
989 * window.c (make_window, replace_window, set_window_buffer)
990 (Fsplit_window): Likewise.
991 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
992 (add_to_log, message3, x_consider_frame_title)
993 (append_space_for_newline, extend_face_to_end_of_line)
994 (decode_mode_spec_coding, init_glyph_string): Likewise.
995 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
996 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
997 (face_attr_equal_p, make_realized_face, make_face_cache)
998 (free_realized_faces, lookup_named_face, smaller_face)
999 (face_with_height, lookup_derived_face)
1000 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
1001 (Finternal_set_font_selection_order, realize_default_face)
1002 (compute_char_face, face_at_buffer_position)
1003 (face_for_overlay_string, face_at_string_position, merge_faces):
1004 Likewise.
1005 * xfns.c (xic_create_fontsetname, Fx_create_frame)
1006 (Fx_window_property, x_create_tip_frame)
1007 (Fx_backspace_delete_keys_p): Likewise.
1008 * xfont.c (xfont_list, xfont_match, xfont_list_family)
1009 (xfont_text_extents): Likewise.
1010 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
1011 * xrdb.c (magic_file_p, x_get_resource): Likewise.
1012 * xselect.c (x_queue_event, x_get_window_property)
1013 (receive_incremental_selection): Likewise.
1014 * xsmfns.c (x_session_check_input): Likewise.
1015 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
1016 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
1017 Likewise.
1018 * character.h (BCOPY_SHORT): Removed.
1019 * config.in: Regenerate.
1020 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
1021 * emacs.c (main) [PROFILING]: Don't declare
1022 dump_opcode_frequencies.
1023 * lisp.h (safe_bcopy): Remove declaration.
1024 (memset) [!HAVE_MEMSET]: Declare.
1025 (memcpy) [!HAVE_MEMCPY]: Likewise.
1026 (memmove) [!HAVE_MEMMOVE]: Likewise.
1027 (memcmp) [!HAVE_MEMCMP]: Likewise.
1028 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
1029 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
1030 Don't define.
1031 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
1032 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
1033 (BCOPY_DOWNWARD_SAFE): Don't define.
1034 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
1035 (memcpy) [!HAVE_MEMCPY]: Define.
1036 (memmove) [!HAVE_MEMMOVE]: Define.
1037 (memcmp) [!HAVE_MEMCMP]: Define.
1038
cb768704
J
10392010-07-07 Jan Djärv <jan.h.d@swipnet.se>
1040
1041 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
1042 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
1043 New functions.
cb768704
J
1044 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
1045 select on empty input mask.
1046 (init_process): Initialize kbd_is_on_hold to 0.
1047
1048 * process.h (hold_keyboard_input, unhold_keyboard_input)
1049 (kbd_on_hold_p): Declare.
1050
1051 * keyboard.c (input_available_signal): Declare.
1052 (kbd_buffer_nr_stored): New function.
1053 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
1054 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
1055 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
1056 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
1057 (tty_read_avail_input): If input is on hold, return.
1058 Don't read more that free slots in kbd_buffer (Bug#6571).
1059
3a8ce822
EZ
10602010-07-07 Eli Zaretskii <eliz@gnu.org>
1061
1062 * msdos.h:
1063 * msdos.c:
1064 * dosfns.c:
1065 * w16select.c: Convert function definitions to ANSI C.
1066
a628ad9d
JB
1067 * msdos.h (ctrl_break_func, install_ctrl_break_check):
1068 Remove unused prototypes.
3a8ce822 1069
cf84bb53
JB
10702010-07-07 Juanma Barranquero <lekktu@gmail.com>
1071
1072 * coding.c, sysdep.c: Convert some more functions to standard C.
1073
1a4990fb
JB
10742010-07-07 Juanma Barranquero <lekktu@gmail.com>
1075
1076 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
1077 (encode_coding_object): Use SPECPDL_INDEX.
1078 (syms_of_coding): Use DOS_NT.
1079
c0f2f16b
DN
10802010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
1081
48fb6855
DN
1082 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
1083
c0f2f16b
DN
1084 Make the function member of Lisp_Subr use standard C prototypes.
1085 * lisp.h (struct Lisp_Subr): Use a union for the function member.
1086 (DECL_ALIGN): Add a cast for the function.
1087 * eval.c (Feval, Ffuncall): Use the proper type for each type
1088 function call.
1089
67aecef9
CY
10902010-07-06 Chong Yidong <cyd@stupidchicken.com>
1091
1092 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
1093 fringe face id, so face-remapping-alist works (Bug#6091).
1094
b56ceb92
JB
10952010-07-06 Juanma Barranquero <lekktu@gmail.com>
1096
1097 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
1098 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
1099 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
1100
7af07b96
AS
11012010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1102
1103 * xterm.c (x_get_keysym_name): Change type of parameter to int.
1104 * lisp.h: Declare x_get_keysym_name.
1105 * keyboard.c (modify_event_symbol): Don't declare
1106 x_get_keysym_name here.
1107
69e24e34
DN
11082010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
1109
1110 * ecrt0.c: Revert conversion to standard C.
1111
d3da34e0 11122010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
1113
1114 * vm-limit.c (memory_warnings):
1115 * keyboard.c (modify_event_symbol):
1116 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
1117 (round2, emacs_rint):
1118 * process.c (send_process, old_sigpipe): Convert function
1119 definitions and declarations to standard C.
1120
11212010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
1122
1123 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
1124 * xdisp.c: Convert function definitions to standard C.
1125
1126 * cm.c (cmputc): Arg C is now int, not char.
1127 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
1128
00be444c
J
11292010-07-05 James Cloos <cloos@jhcloos.com>
1130
1131 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
1132
1133 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
1134 _NET_WM_ICON_NAME atoms.
1135
1136 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
1137 and _NET_WM_ICON_NAME properties, too, matching what is
1138 done in the Gtk+ case.
1139
e4c8d29a
J
11402010-07-05 Jan Djärv <jan.h.d@swipnet.se>
1141
ff919460
J
1142 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
1143
e4c8d29a
J
1144 * xsmfns.c (SSDATA): New macro.
1145 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
1146 passed to strlen/strcpy/strcat.
1147 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
1148 7:th arg to XChangeProperty to (unsigned char *)
1149
1150 * xsettings.c (something_changedCB, parse_settings)
1151 (apply_xft_settings): Reformat prototype.
1152 (something_changedCB, init_gconf): Remove unused variable i.
1153 (read_settings): Remove unused variable long_len.
1154
1155 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
1156 (xg_get_image_for_pixmap, create_dialog)
1157 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
1158 (menuitem_highlight_callback, make_menu_item)
1159 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
1160 (xg_create_scroll_bar, xg_update_scrollbar_pos)
1161 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
1162 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
1163 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
1164 (xg_tool_bar_item_expose_callback): Reformat prototype.
1165 (xg_update_menubar): GList *group => GSList *group.
1166 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
1167 before use.
1168 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
1169 to GTK_IMAGE (wimage).
1170
dd4c5104
DN
11712010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
1172
898b4c5c
DN
1173 * atimer.c: Use "" instead of <> for local includes for
1174 consistency with the rest of the code.
1175
dd4c5104
DN
1176 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
1177 * xrdb.c (get_system_name):
1178 * window.c (shrink_windows):
1179 * syntax.c (forw_comment):
1180 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
1181 (ins_del_costs):
1182 * mem-limits.h (start_of_data):
1183 * lread.c (readevalloop):
1184 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
1185 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
1186 * frame.c (x_get_focus_frame):
1187 * floatfns.c (fmod_float):
1188 * fileio.c (choose_write_coding_system):
1189 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
1190 (malloc_initialize_hook, sort_args, synchronize_locale):
1191 * doprnt.c (doprnt):
1192 * dired.c (compile_pattern):
1193 * data.c (fmod_float):
1194 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
1195 (map_char_table_for_charset):
1196 * charset.c (define_charset_internal):
1197 * alloc.c (Fgarbage_collect): Convert declarations or definitions
1198 to standard C.
1199
9a39b306 12002010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 1201 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
1202
1203 * lread.c (read1): Fix up last change to not mess up `c'.
1204
e6cb2cbb
JB
12052010-07-04 Juanma Barranquero <lekktu@gmail.com>
1206
1207 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
1208
438105ed
JB
12092010-07-04 Juanma Barranquero <lekktu@gmail.com>
1210
1211 Fix prototypes.
1212
e5447b22 1213 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 1214 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
1215 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
1216 arg, as required by internal_condition_case_1.
dcc7404b 1217 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
1218 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
1219 (analyse_first): Fix "const const".
e5447b22 1220 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 1221 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 1222 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 1223
971de7fb
DN
12242010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
1225
1226 * alloc.c: Convert function definitions to standard C.
1227 * atimer.c:
1228 * bidi.c:
1229 * bytecode.c:
1230 * callint.c:
1231 * callproc.c:
1232 * casefiddle.c:
1233 * casetab.c:
1234 * category.c:
1235 * ccl.c:
1236 * character.c:
1237 * charset.c:
1238 * chartab.c:
1239 * cmds.c:
1240 * coding.c:
1241 * composite.c:
1242 * data.c:
1243 * dbusbind.c:
1244 * dired.c:
1245 * dispnew.c:
1246 * doc.c:
1247 * doprnt.c:
1248 * ecrt0.c:
1249 * editfns.c:
1250 * fileio.c:
1251 * filelock.c:
1252 * filemode.c:
1253 * fns.c:
1254 * font.c:
1255 * fontset.c:
1256 * frame.c:
1257 * fringe.c:
1258 * ftfont.c:
1259 * ftxfont.c:
1260 * gtkutil.c:
1261 * indent.c:
1262 * insdel.c:
1263 * intervals.c:
1264 * keymap.c:
1265 * lread.c:
1266 * macros.c:
1267 * marker.c:
1268 * md5.c:
1269 * menu.c:
1270 * minibuf.c:
1271 * prefix-args.c:
1272 * print.c:
1273 * ralloc.c:
1274 * regex.c:
1275 * region-cache.c:
1276 * scroll.c:
1277 * search.c:
1278 * sound.c:
1279 * strftime.c:
1280 * syntax.c:
1281 * sysdep.c:
1282 * termcap.c:
1283 * terminal.c:
1284 * terminfo.c:
1285 * textprop.c:
1286 * tparam.c:
1287 * undo.c:
1288 * unexelf.c:
1289 * window.c:
1290 * xfaces.c:
1291 * xfns.c:
1292 * xfont.c:
1293 * xftfont.c:
1294 * xgselect.c:
1295 * xmenu.c:
1296 * xrdb.c:
1297 * xselect.c:
1298 * xsettings.c:
1299 * xsmfns.c:
1300 * xterm.c: Likewise.
1301
ae492bec
EZ
13022010-07-03 Eli Zaretskii <eliz@gnu.org>
1303
76ea4cc9
EZ
1304 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
1305 frames other than the initial one. Fix reversal of colors when
1306 `reverse' is specified in the frame parameters. Call
1307 update_face_from_frame_parameter instead of
1308 internal-set-lisp-face-attribute. Initialize screen colors from
1309 initial_screen_colors[] when f->default_face_done_p is zero,
1310 instead of depending on being called with default-frame-alist as
1311 the alist argument.
1312
1313 * xfaces.c (update_face_from_frame_parameter): Move out of
1314 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
1315 with HAVE_WINDOW_SYSTEM.
1316
1e6255ae
EZ
1317 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
1318 to menu-bar-mode, if not set in the frame parameters or in
1319 default-frame-alist.
1320
ae492bec
EZ
1321 * w32console.c (sys_tputs): Adjust argument list to prototype in
1322 term.c.
1323
3a35a84c
JB
13242010-07-03 Juanma Barranquero <lekktu@gmail.com>
1325
1326 * lisp.h (memory_warnings): Fix prototype.
1327
1328 * cm.h (evalcost): Fix prototype.
1329
1330 * cm.c (evalcost): Fix arg type.
1331
c532d349
DN
13322010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1333
1334 * term.c (term_clear_mouse_face, Fidentity):
1335 * syssignal.h (signal_handler_t):
1336 * lisp.h (memory_warnings):
1337 * coding.h (preferred_coding_system):
1338 * cm.h (evalcost):
1339 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
1340
c0b36d46
EZ
13412010-07-02 Eli Zaretskii <eliz@gnu.org>
1342
1343 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
1344 from prototypes.
1345
1346 * msdos.h (load_pixmap): Don't define away.
1347
383e0970
J
13482010-07-02 Jan Djärv <jan.h.d@swipnet.se>
1349
f57e2426
J
1350 * lisp.h:
1351 * atimer.h: Remove define for P_.
1352
1353 * alloc.c: Remove __P and P_ from .c and .m files.
1354 * atimer.c:
1355 * buffer.c:
1356 * callint.c:
1357 * category.c:
1358 * charset.c:
1359 * chartab.c:
1360 * cm.c:
1361 * coding.c:
1362 * composite.c:
1363 * data.c:
1364 * dired.c:
1365 * dispnew.c:
1366 * doc.c:
1367 * editfns.c:
1368 * emacs.c:
1369 * eval.c:
1370 * fileio.c:
1371 * filelock.c:
1372 * fns.c:
1373 * font.c:
1374 * fontset.c:
1375 * frame.c:
1376 * ftfont.c:
1377 * ftxfont.c:
1378 * gmalloc.c:
1379 * gtkutil.c:
1380 * image.c:
1381 * indent.c:
1382 * intervals.c:
1383 * keyboard.c:
1384 * keymap.c:
1385 * lread.c:
1386 * marker.c:
1387 * menu.c:
1388 * minibuf.c:
1389 * print.c:
1390 * process.c:
1391 * scroll.c:
1392 * search.c:
1393 * sound.c:
1394 * strftime.c:
1395 * syntax.c:
1396 * sysdep.c:
1397 * term.c:
1398 * terminal.c:
1399 * textprop.c:
1400 * unexalpha.c:
1401 * w32console.c:
1402 * w32fns.c:
1403 * w32font.c:
1404 * w32menu.c:
1405 * w32term.c:
1406 * w32uniscribe.c:
1407 * window.c:
1408 * xdisp.c:
1409 * xfaces.c:
1410 * xfns.c:
1411 * xfont.c:
1412 * xftfont.c:
1413 * xmenu.c:
1414 * xselect.c:
1415 * xterm.c: Likewise.
1416
383e0970 1417 Remove P_ and __P macros.
f57e2426
J
1418 * atimer.h: Remove P_ and __P macros.
1419 * buffer.h:
383e0970
J
1420 * category.h:
1421 * ccl.h:
1422 * character.h:
1423 * charset.h:
1424 * cm.h:
1425 * coding.h:
1426 * composite.h:
1427 * dispextern.h:
1428 * disptab.h:
9e892c8d 1429 * dosfns.h:
383e0970
J
1430 * font.h:
1431 * fontset.h:
1432 * frame.h:
1433 * gtkutil.h:
1434 * indent.h:
1435 * intervals.h:
1436 * keyboard.h:
1437 * keymap.h:
1438 * lisp.h:
1439 * macros.h:
1440 * md5.h:
1441 * menu.h:
1442 * msdos.h:
1443 * nsterm.h:
1444 * puresize.h:
1445 * region-cache.h:
1446 * syntax.h:
1447 * syssignal.h:
1448 * systime.h:
1449 * termhooks.h:
9e892c8d 1450 * w32font.h:
383e0970
J
1451 * w32term.h:
1452 * widget.h:
1453 * window.h:
1454 * xgselect.h:
1455 * xsettings.h:
1456 * xterm.h: Likewise.
1457
98601119
DN
14582010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
1459
d9170db5
DN
1460 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
1461
98601119
DN
1462 Cleanup old code.
1463 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
1464 * syssignal.h: Remove code for Lynx, not supported anymore.
1465 * vm-limit.c: Remove unused code the depends on emacs not being
1466 defined and NO_LIM_DATA being defined.
1467 * mem-limits.h: Remove dead code.
1468
1f984e12
J
14692010-07-01 Jan Djärv <jan.h.d@swipnet.se>
1470
c49d071a
J
1471 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
1472
9d5405ec
J
1473 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
1474 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
1475
7a18115b
J
1476 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
1477 parameters, they are already absolute.
1478
a628ad9d
JB
1479 * nsterm.m (x_set_window_size, initFrameFromEmacs):
1480 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 1481
a628ad9d 1482 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 1483
a628ad9d
JB
1484 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
1485 Update FRAME_TOOLBAR_HEIGHT.
581a8100 1486
a628ad9d
JB
1487 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
1488 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 1489
c1ef4455
CY
14902010-06-30 Chong Yidong <cyd@stupidchicken.com>
1491
1492 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
1493 check default-frame-alist.
1494
ce8f5a9a
AS
14952010-06-30 Andreas Schwab <schwab@linux-m68k.org>
1496
1497 * process.c (create_process): Avoid using invalid file descriptors.
1498
1499 * callproc.c (child_setup): Avoid closing a file descriptor twice.
1500
bf935339
J
15012010-06-30 Jan Djärv <jan.h.d@swipnet.se>
1502
1503 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
1504 Improve documentation. Return font regardless of use_system_font.
1505 (syms_of_xsettings): Improve documentation for font-use-system-font.
1506
7c33a057
CY
15072010-07-10 Chong Yidong <cyd@stupidchicken.com>
1508
2ec1b5ee
CY
1509 * xfaces.c (realize_face): Garbage the frame if a face is removed
1510 (Bug#6593).
1511
15122010-07-05 Andreas Schwab <schwab@linux-m68k.org>
1513
1514 * keyboard.c: Remove duplicate <setjmp.h>.
1515 (read_key_sequence): Remove volatile qualifiers.
1516
15172010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1518
1519 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
1520 (struct glyph_row): New members left_fringe_offset and
1521 right_fringe_offset.
1522
1523 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
1524 specially.
1525 * w32term.c (w32_draw_fringe_bitmap): Likewise.
1526 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
1527
1528 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 1529 Take account of bitmap offset.
2ec1b5ee
CY
1530 (draw_window_fringes): Take account of window vscroll.
1531 (update_window_fringes): Likewise. Extend top-aligned top indicator
1532 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
1533 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
1534 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
1535
15362010-07-04 Juanma Barranquero <lekktu@gmail.com>
1537
1538 * w32fns.c (Qtooltip): Declare.
1539 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
1540
15412010-07-03 Jan Djärv <jan.h.d@swipnet.se>
1542
1543 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
1544 grab on just Press (Bug#6499).
1545
15462010-07-02 Chong Yidong <cyd@stupidchicken.com>
1547
1548 * frame.c (Qtooltip): New var.
1549 (delete_frame): Use it. Fix faulty if statement. Don't update
1550 mode line for tooltip frames. Suggested by Martin Rudalics.
1551
1552 * xfns.c (x_create_tip_frame):
1553 * w32fns.c (x_create_tip_frame): Use it.
1554
15552010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
1556
1557 * xftfont.c (xftfont_open): Check font width one by one also when
1558 spacing is dual.
1559
1560 * ftfont.c (ftfont_open): Ditto.
1561
6259c2ec
GM
15622010-06-30 Glenn Morris <rgm@gnu.org>
1563
a46007e9
GM
1564 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
1565
6259c2ec
GM
1566 * Makefile.in (CANNOT_DUMP): Update for configure name change.
1567
1568 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
1569 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
1570 * s/darwin.h (SYSTEM_MALLOC):
1571 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
1572
5d1d3d04
J
15732010-06-29 Jan Djärv <jan.h.d@swipnet.se>
1574
1575 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
1576 (ns_get_screen): Don't assign integer to f.
1577 (Fx_display_color_cells): Declarations before statements.
1578
e547b051
J
15792010-06-28 Jan Djärv <jan.h.d@swipnet.se>
1580
5fc8e5bc
J
1581 * xfns.c (x_default_font_parameter): Remove got_from_system
1582 (Bug#6526).
1583
e547b051
J
1584 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
1585 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
1586 defines based on what configure finds.
1587
1588 * xterm.c (XTflash): Use gtk_widget_get_window.
1589 (xg_scroll_callback): Use gtk_adjustment_get_upper and
1590 gtk_adjustment_get_page_size.
1591 (handle_one_xevent): Use gtk_widget_get_mapped.
1592 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
1593 messages.
1594
1595 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
1596
1597 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
1598 HAVE_GTK_FILE_SELECTION_NEW.
1599
1600 * gtkutil.c (xg_display_open, xg_display_close): Remove
1601 HAVE_GTK_MULTIDISPLAY, it is always defined.
1602 (xg_display_open): Return type is void.
1603 (gtk_widget_set_has_window)
1604 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
1605 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
1606 (gtk_adjustment_set_page_increment)
1607 (gtk_adjustment_get_step_increment): #define these if not found
1608 by configure.
1609 (remove_submenu): New define based on Gtk+ version.
1610 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
1611 gtk_widget_get_window.
1612 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
1613 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
1614 (create_dialog): Use gtk_dialog_get_action_area and
1615 gtk_dialog_get_content_area.
1616 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
1617 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
1618 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
1619 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
1620 g_object_ref and g_object_unref.
1621 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
1622 gtk_widget_get_sensitive.
1623 (xg_update_submenu): Use remove_submenu.
1624 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
1625 properties instead to get old x and y position.
1626 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
1627 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 1628 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
1629 (xg_get_tool_bar_widgets): New function.
1630 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
1631 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
1632 (toolbar_set_orientation): New #define based on if configure
1633 finds gtk_orientable_set_orientation.
1634 (xg_create_tool_bar): Call toolbar_set_orientation.
1635 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
1636 instead of gtk_box_pack_start_defaults.
1637
b9229673
CY
16382010-06-28 Chong Yidong <cyd@stupidchicken.com>
1639
1640 * cmds.c (Fdelete_backward_char): Move into Lisp.
1641
bbc803b0
DN
16422010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1643
1644 * s/freebsd.h (BSD4_2): Remove redundant definition.
1645 bsd-common.h defines it already.
1646
6431f2e6
CY
16472010-06-27 Chong Yidong <cyd@stupidchicken.com>
1648
1649 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
1650 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
1651 tool-bar-mode, which are now set using these X resources at
1652 startup, to determine the defaults (Bug#2249).
1653
1654 * w32fns.c (Fx_create_frame):
1655 * nsfns.m (Fx_create_frame): Likewise.
1656
1657 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
1658
8c079ebb
JB
16592010-06-24 Juanma Barranquero <lekktu@gmail.com>
1660
1661 * gtkutil.c (xg_update_scrollbar_pos):
1662 Avoid C99 mid-block variable declaration.
1663
e9b7ab96
JD
16642010-06-22 Jan Djärv <jan.h.d@swipnet.se>
1665
bc869eca
JD
1666 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
1667
2b7e356a 1668 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
1669
1670 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
1671 if height is less than scroll bar min size.
1672 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
1673
e9b7ab96
JD
1674 * xfns.c (x_default_font_parameter): Try to open font from system
1675 before using it (bug#6478). Rename got_from_gconf to got_from_system.
1676
a628ad9d 16772010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
1678
1679 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
1680
70c4cfbb
EZ
16812010-06-20 Eli Zaretskii <eliz@gnu.org>
1682
1683 * xdisp.c (try_scrolling): When scroll-conservatively is set to
1684 most-positive-fixnum, be extra accurate when scrolling window
1685 start, to avoid missing the cursor line.
1686
ad5a12b5
EZ
16872010-06-19 Eli Zaretskii <eliz@gnu.org>
1688
1689 * xdisp.c (try_scrolling): Compute the limit for searching point
1690 in forward scroll from scroll_max, instead of an arbitrary limit
1691 of 10 screen lines. See
1692 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
1693 and
1694 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
1695 for details.
1696
2a64315a 16972010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
1698
1699 * editfns.c (Fbyte_to_string): Pacify compiler.
1700
288cf4e9
SM
17012010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
1702
1703 * lread.c (read1): Phase out old-style backquotes a bit more.
1704
6e6e5760
EZ
17052010-06-12 Eli Zaretskii <eliz@gnu.org>
1706
cbc4fd20
EZ
1707 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
1708 bidimirror.h.
1709
1710 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
1711
317fbf33
EZ
1712 * bidi.c (bidi_initialize): Remove explicit initialization of
1713 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 1714 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 1715 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
1716
1717 * biditype.h: New file.
1718
cbc4fd20
EZ
1719 * bidimirror.h: New file.
1720
6e6e5760
EZ
1721 * window.c (syms_of_window): Doc fix (bug#6409).
1722
4176cba2
RF
17232010-06-12 Romain Francoise <romain@orebokech.com>
1724
1725 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
1726 ediff-hook.
1727
cb4bfcb5
GM
17282010-06-10 Glenn Morris <rgm@gnu.org>
1729
64c60c2f
GM
1730 * editfns.c (Fbyte_to_string): Pacify compiler.
1731
cb4bfcb5
GM
1732 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
1733
2ec1b5ee
CY
17342010-06-26 Andreas Schwab <schwab@linux-m68k.org>
1735
1736 * alloc.c (Fmake_byte_code): Don't access undefined argument
1737 (Bug#6517).
1738
17392010-06-25 Chong Yidong <cyd@stupidchicken.com>
1740
1741 * xdisp.c (next_element_from_image): Ensure that after-strings are
1742 read the next time we hit handle_stop (Bug#1336).
1743
17442010-06-23 Andreas Schwab <schwab@linux-m68k.org>
1745
1746 * lread.c (read1): Signal error if #s is not followed by paren.
1747
17482010-06-19 Chong Yidong <cyd@stupidchicken.com>
1749
1750 * image.c (free_image): Mark frame as garbaged (Bug#6426).
1751
1752 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
1753
17542010-06-15 Glenn Morris <rgm@gnu.org>
1755
1756 * editfns.c (Fbyte_to_string): Pacify compiler.
1757
e454a4a3
SM
17582010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
1759
1760 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
1761 Check `object's type before accessing its guts.
1762
c1b1acc2
DN
17632010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
1764
1765 * s/usg5-4.h: Fix previous change.
1766 Suggested by Lawrence Mitchell <wence@gmx.li>
1767
657d4c0b
AS
17682010-06-08 Andreas Schwab <schwab@linux-m68k.org>
1769
1770 * minibuf.c (Fall_completions): Add more checks.
1771
9b27fd9f
JB
17722010-06-08 Juanma Barranquero <lekktu@gmail.com>
1773
1774 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
1775
a99ebb40
DN
17762010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
1777
d7c5d87d
DN
1778 * lread.c (X_OK): Remove, unused.
1779
0263a941
DN
1780 * dispnew.c: Remove obsolete comment.
1781
a99ebb40
DN
1782 Remove INCLUDED_FCNTL.
1783 * xterm.c (INCLUDED_FCNTL):
1784 * callproc.c (INCLUDED_FCNTL):
1785 * alloc.c (INCLUDED_FCNTL):
1786 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
1787 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
1788
13b5221f
MR
17892010-06-07 Martin Rudalics <rudalics@gmx.at>
1790
1791 * window.c (Fselect_window): Move `record_buffer' up to the
1792 beginning of this function, so the buffer gets recorded
1793 even if the selected window does not change.
1794 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
1795
5220357f
JB
17962010-06-07 Juanma Barranquero <lekktu@gmail.com>
1797
1798 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
1799 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
1800
3085237c
DN
18012010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
1802
1803 Remove BSTRING related code, all platforms define it.
1804 * s/usg5-4.h (BSTRING): Remove definition.
1805 * s/template.h (BSTRING):
1806 * s/msdos.h (BSTRING):
1807 * s/ms-w32.h (BSTRING):
1808 * s/hpux10-20.h (BSTRING):
1809 * s/gnu-linux.h (BSTRING):
1810 * s/darwin.h (BSTRING):
1811 * s/cygwin.h (BSTRING):
1812 * s/bsd-common.h (BSTRING):
1813 * s/aix4-2.h (BSTRING): Likewise.
1814 * sysdep.c: Remove code depending on BSTRING not being defined.
1815
409f2919
JB
18162010-06-05 Juanma Barranquero <lekktu@gmail.com>
1817
1818 Remove obsolete macro BASE_LEADING_CODE_P.
1819 * character.h (BASE_LEADING_CODE_P): Remove.
1820 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
1821 * buffer.c (Fset_buffer_multibyte):
1822 * indent.c (scan_for_column, compute_motion):
1823 * insdel.c (count_combining_before, count_combining_after):
1824 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
1825
087fc47a
JB
18262010-06-04 Juanma Barranquero <lekktu@gmail.com>
1827
1828 Turn `directory-sep-char' into a noop.
1829
1830 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
1831 (DIRECTORY_SEP): Define unconditionally.
1832
1833 * s/ms-w32.h (DIRECTORY_SEP): Remove.
1834
1835 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
1836 call dostounix_filename directly.
1837
1838 * fileio.c (CORRECT_DIR_SEPS): Remove.
1839 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
1840 (Fsubstitute_in_file_name): Use dostounix_filename instead.
1841 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
1842 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
1843
1844 * w32proc.c (CORRECT_DIR_SEPS): Remove.
1845 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
1846
0eb7675e
AS
18472010-06-03 Andreas Schwab <schwab@linux-m68k.org>
1848
a628ad9d
JB
1849 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
1850 (Bug#6346)
0eb7675e 1851
78edd3b7
JB
18522010-06-03 Juanma Barranquero <lekktu@gmail.com>
1853
1854 * ccl.c (Fccl_program_p): Fix typo in docstring.
1855
eb697db5
DN
18562010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
1857
1858 Move UNEXEC definition to autoconf.
1859 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
1860 * s/sol2-10.h (UNEXEC):
1861 * s/irix6-5.h (UNEXEC):
1862 * s/hpux10-20.h (UNEXEC):
1863 * s/gnu-linux.h (UNEXEC):
1864 * s/darwin.h (UNEXEC):
1865 * s/cygwin.h (UNEXEC):
1866 * s/bsd-common.h (UNEXEC):
1867 * s/aix4-2.h (UNEXEC):
1868 * m/alpha.h (UNEXEC): Likewise.
1869 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
1870
aa3830c4
JB
18712010-06-03 Juanma Barranquero <lekktu@gmail.com>
1872
1873 Remove obsolete pre-unicode2 macros.
1874 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
1875 * composite.c (composition_reseat_it):
1876 * data.c (Faset):
1877 * fns.c (Ffillarray):
1878 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
1879 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
1880
d234d13e
JL
18812010-06-03 Juri Linkov <juri@jurta.org>
1882
1883 * buffer.c (Fother_buffer): Add CHECK_FRAME.
1884 (Fswitch_to_buffer): Remove unused variable `err'.
1885
0d4bcf4d
GM
18862010-06-03 Glenn Morris <rgm@gnu.org>
1887
e23dc1e2
GM
1888 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
1889
05b09564
GM
1890 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
1891 now that AH_BOTTOM does it.
1892
824e2978
GM
1893 * m/hp800.h (HAVE_ALLOCA):
1894 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
1895
0d4bcf4d
GM
1896 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
1897 Remove NOT_C_CODE tests, it is always true now.
1898
c55d2abf
DN
18992010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
1900
08a494a3
DN
1901 Fix config.h includes.
1902 * xsettings.c:
1903 * xgselect.c:
1904 * nsterm.m:
1905 * nsselect.m:
1906 * nsimage.m:
1907 * nsfont.m:
1908 * nsfns.m:
1909 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
1910 other files do.
1911
75934b1d
DN
1912 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
1913
9f32a766
DN
1914 * s/sol2-6.h: Remove obsolete comments.
1915
c55d2abf
DN
1916 Remove unnecessary alloca.h includes.
1917 * keymap.c: Do not include alloca.h, config.h does that.
1918 * sysdep.c: Likewise. Do not define fwrite, not used.
1919
06ac62b4
SM
19202010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
1921
1922 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
1923 the HAVE_TERMIO where it belongs (bug#6149).
1924
1ab8293c
SM
19252010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
1926
1927 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
1928 of bug#6305).
1929
6dcfd253
EZ
19302010-05-30 Eli Zaretskii <eliz@gnu.org>
1931
1932 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
1933 state is always cached (bug#6306).
1934
6d26bbb2
EZ
19352010-05-29 Eli Zaretskii <eliz@gnu.org>
1936
06fa4a23
EZ
1937 Fix cursor motion in bidi-reordered continued lines.
1938 * xdisp.c (try_cursor_movement): Backup to non-continuation line
1939 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
1940 over continuation lines in bidi-reordered buffers. Return
1941 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
1942 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
1943
f5783df3
MA
19442010-05-28 Michael Albinus <michael.albinus@gmx.de>
1945
1946 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
1947
7d56b2dd
KH
19482010-05-28 Kenichi Handa <handa@m17n.org>
1949
1950 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
1951 Don't sheck SPEC if it is nil.
1952 (font_list_entities): Call font_delete_unmatched if
b925d231 1953 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 1954
e58d4ff7
GM
19552010-05-28 Glenn Morris <rgm@gnu.org>
1956
1957 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
1958
f1a5d776
CY
19592010-05-27 Chong Yidong <cyd@stupidchicken.com>
1960
1961 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
1962 whether to trash.
1963 (internal_delete_file, Frename_file): Callers changed.
1964 (delete_by_moving_to_trash): Doc fix.
1965 (Fdelete_directory_internal): Don't move to trash.
1966
1967 * callproc.c (delete_temp_file):
1968 * buffer.c (Fkill_buffer): Callers changed.
1969
1970 * lisp.h: Update prototype.
1971
f44a59e6
CY
19722010-05-27 Chong Yidong <cyd@stupidchicken.com>
1973
1974 * xdisp.c (redisplay_window): After redisplay, check if point is
1975 still valid before setting it (Bug#6177).
1976
81ac4f35
GM
19772010-05-27 Glenn Morris <rgm@gnu.org>
1978
1979 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
1980 Convert comments to Makefile format.
1981
1982 * Makefile.in (bootstrap-clean): No more Makefile.c.
1983
ccd89fb3
GM
19842010-05-26 Glenn Morris <rgm@gnu.org>
1985
90278cb6
GM
1986 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
1987 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
1988
ccd89fb3
GM
1989 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
1990 Remove.
1991 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
1992
b7050583
KH
19932010-05-26 Kenichi Handa <handa@m17n.org>
1994
1995 * composite.c (composition_compute_stop_pos): Fix condition for
1996 backward scanning.
1997
e5458003
GM
19982010-05-25 Glenn Morris <rgm@gnu.org>
1999
c345fe90
GM
2000 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
2001 Move before TEMACS_LDFLAGS.
2002 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2003 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
2004
2e0689ab
GM
2005 * Makefile.in (NOT_C_CODE): No longer define.
2006 (config.h): No longer include.
2007
8009a5e8
GM
2008 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
2009 variables it may reference.
2010
e5458003
GM
2011 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
2012 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
2013
10f72a37
KH
20142010-05-25 Kenichi Handa <handa@m17n.org>
2015
2016 * dispextern.h (struct composition_it): New members rule_idx and
2017 charpos.
2018
2019 * xdisp.c (set_iterator_to_next): While scanning backward, assume
2020 that the character positions of IT point the last character of the
2021 current grapheme cluster.
2022 (next_element_from_composition): Don't change character positions
2023 of IT.
2024 (append_composite_glyph): Set glyph->charpos to
2025 it->cmp_it.charpos.
2026
2027 * composite.c (autocmp_chars): Change the first argument to RULE,
2028 and try composition with RULE only.
2029 (composition_compute_stop_pos): Record the index number of the
2030 composition rule in CMP_IT->rule_idx.
2031 (composition_reseat_it): Call autocmp_chars repeatedly until the
2032 correct rule of the composition is found.
2033 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
2034 is at the last character of the current grapheme cluster when
2035 CMP_IT->reversed_p is nonzero.
2036
171eda53 20372010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 2038
171eda53
SM
2039 * editfns.c (Fbyte_to_string): New function.
2040
66a9f7f4
SM
20412010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
2042
2043 * process.c (Fmake_network_process): Set :host to nil if it's not used.
2044 Suggested by Masatake YAMATO <yamato@redhat.com>.
2045
d8c315d1
EZ
20462010-05-23 Eli Zaretskii <eliz@gnu.org>
2047
171eda53 2048 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 2049
f5b416d2 20502010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
2051
2052 * s/netbsd.h: If terminfo is found, use it in preference to
2053 termcap. (Bug#6190) [Backport from trunk]
2054
0416466c
EZ
20552010-05-19 Eli Zaretskii <eliz@gnu.org>
2056
11117830 2057 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
2058
2059 * dispextern.h (struct glyph_row): New members minpos and maxpos.
2060 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
2061 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
2062 and maxpos members instead of start.pos and end.pos, respectively.
2063
2064 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
2065 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
2066 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
2067 (try_window_reusing_current_matrix, try_window_id):
2068 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
2069 (init_from_display_pos, init_iterator): Use EMACS_INT for
2070 character and byte positions.
66a9f7f4 2071 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
2072 arguments for minimum and maximum buffer positions seen by
2073 display_line for this row. Don't use iterator to find the
2074 position following the maximum one; instead, increment the
11117830
EZ
2075 position found by display_line directly. Fix logic; eol_pos
2076 should be tested before the rest. Handle the case of characters
2077 delivered from display vector (bug#6036). Fix tests related to
2078 it->method. Handle the truncated_on_right_p rows.
2079 (RECORD_MAX_MIN_POS): New macro.
2080 (display_line): Use it to record the minimum and maximum buffer
2081 positions for glyphs in the row being assembled. Record the
2082 position of the newline that terminates the line. If word wrap is
2083 in effect, restore minimum and maximum positions seen up to the
2084 wrap point, when iterator returns to it.
2085 (try_window_reusing_current_matrix): Give up if in bidi-reordered
2086 row and cursor not already at point. Restore original pre-bidi
2087 code for unidirectional buffers.
d36fe237
EZ
2088
2089 * dispnew.c (increment_row_positions, check_matrix_invariants):
2090 Increment and check row->start.pos and row->end.pos, in addition
2091 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
2092
11117830
EZ
2093 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
2094 Display truncated_on_left_p and truncated_on_right_p flags.
2095 Formatting fixes.
2096 (pmtxrows): Display the ordinal number of each row. Don't display
2097 rows beyond the last one.
2098
2099 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
2100 it is not copied by bidi_copy_it.
2101
6e83d800
EZ
21022010-05-22 Eli Zaretskii <eliz@gnu.org>
2103
2104 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
2105 (Bug#6237)
2106
110683ad
CY
21072010-05-22 Chong Yidong <cyd@stupidchicken.com>
2108
2109 * image.c (Fimage_flush): Rename from image-refresh.
2110
98fe5161
CY
21112010-05-21 Chong Yidong <cyd@stupidchicken.com>
2112
2113 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
2114 just one window.
2115
2116 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
2117 (clear_image_cache): If the number of cached images is unusually
2118 large, decrease the cache eviction delay (Bug#6230).
2119
e8752c66
GM
21202010-05-21 Glenn Morris <rgm@gnu.org>
2121
66dbf213
GM
2122 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
2123 Move these rules to ns.mk.
2124 * ns.mk: New file.
2125
04384b2d
GM
2126 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
2127
e8752c66
GM
2128 * Makefile.in (CANNOT_DUMP): New, set by configure.
2129 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
2130
2e2bbddb
JL
21312010-05-20 Juri Linkov <juri@jurta.org>
2132
2133 * fileio.c (Fdelete_file): Change interative spec to use
2134 `read-file-name' like in `find-file-read-args' where the default
2135 value is `default-directory' instead of `buffer-file-name'.
2136 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
2137
31c4aaf6
KR
21382010-05-20 Kevin Ryde <user42@zip.com.au>
2139
2140 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
2141 (Voverriding_terminal_local_map, Vsystem_key_alist)
2142 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
2143
9d5cf9b6
GM
21442010-05-20 Glenn Morris <rgm@gnu.org>
2145
2146 * Makefile.in (DEPDIR): New constant.
2147 (DEPFLAGS): Set with configure, not cpp.
2148 (MKDEPDIR): New, set by configure.
2149 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
2150 (clean): Use $DEPDIR.
2151 (deps_frag): Include from configure.
2152 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
2153 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
2154
ead6f8f5
EZ
2155 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
2156 reallocation of the cache. (Bug#6210)
2157
7f34aec3
GM
21582010-05-19 Glenn Morris <rgm@gnu.org>
2159
d494e8f2
GM
2160 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
2161
c1d0dcfd
GM
2162 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
2163 (GNULIB_VAR): Remove.
2164 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
2165
2166 * m/ibms390x.h (LINKER):
2167 * m/macppc.h (LINKER) [GNU_LINUX]:
2168 * s/aix4-2.h (ORDINARY_LINK):
2169 * s/cygwin.h (LINKER):
2170 * s/darwin.h (ORDINARY_LINK):
2171 * s/gnu.h (ORDINARY_LINK):
2172 * s/netbsd.h (LINKER):
2173 * s/usg5-4.h (ORDINARY_LINK):
2174 Move to configure.
2175
7f34aec3
GM
2176 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
2177
754790b6
CY
21782010-05-18 Chong Yidong <cyd@stupidchicken.com>
2179
2180 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
2181 prevent stack overflow if number of arguments is too large
2182 (Bug#6214).
2183
161e44d1
JB
21842010-05-18 Juanma Barranquero <lekktu@gmail.com>
2185
2186 * charset.c (load_charset_map_from_file): Don't call close after fclose.
2187
be4ff9da
GM
21882010-05-18 Glenn Morris <rgm@gnu.org>
2189
9539dc5d
GM
2190 * s/gnu-linux.h: Combine two conditionals.
2191
2192 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
2193 $(POST_ALLOC_OBJ).
2194
40dc6bf4
GM
2195 * Makefile.in (RALLOC_OBJ): New, set by configure.
2196 (rallocobj): Replace with the previous variable.
2197 (otherobj): Use $RALLOC_OBJ.
2198
2199 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
2200 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
2201
be4ff9da
GM
2202 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
2203 (gmallocobj, vmlimitobj): Replace with previous two variables.
2204 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
2205
16455a85
GM
22062010-05-17 Glenn Morris <rgm@gnu.org>
2207
2208 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
2209 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
2210
5fdb7468
GM
22112010-05-16 Glenn Morris <rgm@gnu.org>
2212
7ca1f3f9
GM
2213 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
2214
7541dad5
GM
2215 * Makefile.in (clean): Get rid of HAVE_NS conditional.
2216
da53fab9
GM
2217 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
2218 trailing "/".
2219
b02a6645
GM
2220 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
2221 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
2222
8877ca0f
GM
2223 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
2224 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
2225 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
2226 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
2227 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
2228
5fdb7468
GM
2229 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
2230 Remove ${STARTFLAGS}, nothing ever sets it.
2231
95adb4b1
DN
22322010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
2233
2234 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
2235
676b6304
GM
22362010-05-16 Glenn Morris <rgm@gnu.org>
2237
9beab9ce
GM
2238 * Makefile.in (LIBX_BASE): Always define.
2239
8a95f0e7
GM
2240 * Makefile.in (LIBX_OTHER): Move out of cpp section.
2241
676b6304
GM
2242 * Makefile.in (LIBXT): Always define.
2243
6e546d18
GM
22442010-05-15 Glenn Morris <rgm@gnu.org>
2245
4235ca47 2246 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 2247
6e546d18
GM
2248 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
2249 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
2250
8c5ff6dd
KR
22512010-05-15 Ken Raeburn <raeburn@raeburn.org>
2252
560bb7ae 2253 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
2254 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
2255
8b4eb796
KR
2256 * emacs.c (main): Initialize initial-environment and
2257 process-environment before generating from env, not after.
2258
8c5ff6dd
KR
2259 Handle --version reasonably in CANNOT_DUMP configuration.
2260 * emacs.c (emacs_version, emacs_copyright): New string variables.
2261 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
2262 (syms_of_emacs): Defvar them, and initialize them from the C
2263 string variables.
2264 (main): If initialization hasn't been done, print initial version
2265 info from the C strings, instead of starting an interactive session.
2266
dbd3f723
EZ
22672010-05-15 Eli Zaretskii <eliz@gnu.org>
2268
d20e1419
EZ
2269 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
2270 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
2271 (bidi_paragraph_init): Remove redundant assertion that we are at
2272 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
2273
2274 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
2275 (syms_of_xdisp): Defsubr it.
2276
d36fe237
EZ
2277 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
2278
dbd3f723
EZ
2279 * Makefile.in: Fix MSDOS-related comments.
2280
02be533b
GM
22812010-05-15 Glenn Morris <rgm@gnu.org>
2282
1a82cca9
GM
2283 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
2284 (really-lwlib, really-oldXMenu): Always define.
2285 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
2286
3df7b338
GM
2287 * Makefile.in: Simplify cpp conditional.
2288
2b5f541b
GM
2289 * Makefile.in (${ns_appdir}): Simplify using umask.
2290
02be533b
GM
2291 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
2292
4e2db1fe
SM
22932010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
2294
2295 * eval.c (specbind): Remove left-over duplicate test.
2296 Disallow let-binding frame-local vars. Add comment.
2297
4b292a22
EZ
22982010-05-14 Eli Zaretskii <eliz@gnu.org>
2299
2fe72643 2300 Make the cache of bidi iterator states dynamically allocated.
1edbd309 2301 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
2302 (bidi_init_it): Call it.
2303 (bidi_cache_iterator_state): Enlarge the cache if needed.
2304
4e2db1fe 2305 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
2306 bidi_get_next_char_visually. All callers changed.
2307
82ebc97b
KH
23082010-05-14 Kenichi Handa <handa@m17n.org>
2309
2310 * dispextern.h (struct composition_it): New member reversed_p.
2311
2312 * composite.c (composition_compute_stop_pos): Search backward if
2313 ENDPOS < CHARPOS.
2314 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
2315 Set CMP_IT->reversed_p.
b4b6e17e 2316 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 2317
4e2db1fe
SM
2318 * xdisp.c (set_iterator_to_next):
2319 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
2320 scanning backward. Call composition_compute_stop_pos if scan
2321 direction is changed.
2322 (next_element_from_buffer): Call composition_compute_stop_pos with
2323 negative ENDPOS if we are scanning backward.
2324 (next_element_from_composition): Pay attention to
2325 IT->cmp_it.reversed_p.
2326
0e5d7800
KH
23272010-05-14 Kenichi Handa <handa@m17n.org>
2328
560bb7ae 2329 * font.c (font_range): Return the range for the font found at first.
0e5d7800 2330
cb027b32
GM
23312010-05-14 Glenn Morris <rgm@gnu.org>
2332
177b0288
GM
2333 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
2334
fbc00890
GM
2335 * Makefile.in (mktime, X11, register): Move undefs to configure.
2336
f14d1dfd
GM
2337 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
2338 (MSDOS_X_OBJ): New variable.
2339 (MSDOS_SUPPORT_REAL): New constant.
2340 (MSDOS_SUPPORT): Set as a variable, not with cpp.
2341 (obj): Use MSDOS_X_OBJ.
2342 (lisp): Use MSDOS_SUPPORT as a variable.
2343
11842bd8
GM
2344 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
2345 (GPM_MOUSE_SUPPORT): Now it's a constant.
2346 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
2347 not cpp.
2348
489d31a4 2349 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 2350 (ns_appresdir): Remove, unused.
e20f1f07 2351
489d31a4
GM
2352 * Makefile.in (SHELL): Move outside cpp section.
2353
cb027b32
GM
2354 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
2355
5a903aa9
GM
23562010-05-13 Glenn Morris <rgm@gnu.org>
2357
3369c79f
GM
2358 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
2359 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
2360
d5e982a6
GM
2361 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
2362 HAVE_WINDOW_SYSTEM must be too.
2363
6192e163
GM
2364 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
2365 (lisp): Remove WINNT_SUPPORT.
2366
472c5d6b
GM
2367 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
2368 Let configure set these variables (to empty) in this case as well.
2369
0116466b
GM
2370 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
2371 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
2372
5a903aa9
GM
2373 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
2374 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
2375 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
2376 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
2377 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 2378 the values output by configure.
5a903aa9
GM
2379 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
2380
1a0d7c06
GM
23812010-05-12 Glenn Morris <rgm@gnu.org>
2382
b5457f14
GM
2383 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
2384 (LINKER_WAS_SPECIFIED): Remove.
2385
1a0d7c06
GM
2386 * Makefile.in (LIB_GCC): Set using configure, not cpp.
2387 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
2388 * m/arm.h (LIB_GCC) [GNU_LINUX]:
2389 * s/cygwin.h (LIB_GCC):
2390 * s/freebsd.h (LIB_GCC):
2391 * s/gnu-linux.h (LIB_GCC):
2392 * s/msdos.h (LIB_GCC):
2393 * s/netbsd.h (LIB_GCC):
2394 Move to configure.
2395
3ffd4615 23962010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
2397
2398 * ftfont.c: Fix incorrect parentheses of #if condition for
2399 definining M17N_FLT_USE_NEW_FEATURE.
2400
acddf8ae
GM
24012010-05-11 Glenn Morris <rgm@gnu.org>
2402
2403 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
2404 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
2405
ae5e04fa
EZ
24062010-05-10 Eli Zaretskii <eliz@gnu.org>
2407
2408 * xdisp.c (init_iterator): Don't turn on bidi reordering in
2409 unibyte buffers. See
2410 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
2411
7490175b
GM
24122010-05-10 Glenn Morris <rgm@gnu.org>
2413
97efb629
GM
2414 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
2415 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
2416 (LIBES): Use LIBS_SYSTEM as a variable.
2417 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
2418 * s/aix4-2.h (LIBS_SYSTEM):
2419 * s/freebsd.h (LIBS_SYSTEM):
2420 * s/hpux10-20.h (LIBS_SYSTEM):
2421 * s/sol2-6.h (LIBS_SYSTEM):
2422 * s/unixware.h (LIBS_SYSTEM):
2423 Move to configure.
2424
7490175b
GM
2425 * s/aix4-2.h (MAIL_USE_LOCKF):
2426 * s/bsd-common.h (MAIL_USE_FLOCK):
2427 * s/darwin.h (MAIL_USE_FLOCK):
2428 * s/gnu-linux.h (MAIL_USE_FLOCK):
2429 * s/irix6-5.h (MAIL_USE_FLOCK):
2430 * s/template.h (MAIL_USE_FLOCK):
2431 Move to configure.
2432
0235128c 24332010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
2434
2435 * Version 23.2 released.
2436
0235128c 24372010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
2438
2439 * composite.c (autocmp_chars): Save point as marker before calling
2440 auto-composition-function (Bug#5984).
2441
2442 * lisp.h (restore_point_unwind): Add prototype.
2443
2444 * fileio.c (restore_point_unwind): Remove static attribute.
2445
0235128c 24462010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
2447
2448 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
2449 new feature of libotf and m17n-flt.
0235128c
SM
2450 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
2451 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
2452 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
2453 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
2454 that OUT is NULL. Use OTF_drive_gsub_with_log and
2455 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
2456 OTF_drive_gpos.
2457 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
2458 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
2459 Setup mflt_enable_new_feature and mflt_try_otf.
2460
4721152c
J
24612010-05-08 Jan Djärv <jan.h.d@swipnet.se>
2462
2463 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
2464
2465 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
2466 box and toolbar (Bug #6139).
2467 (xg_create_tool_bar): Remove comment (Bug #6139).
2468 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
2469 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
2470
ee0a16cf
JB
24712010-05-08 Juanma Barranquero <lekktu@gmail.com>
2472
2473 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
2474 Update dependencies.
2475
96d79611
EZ
24762010-05-08 Eli Zaretskii <eliz@gnu.org>
2477
2478 * fringe.c (update_window_fringes): Set up truncation bitmaps for
2479 R2L lines.
2480
40c17879
GM
24812010-05-08 Glenn Morris <rgm@gnu.org>
2482
7b42b29f
GM
2483 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
2484
40c17879
GM
2485 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
2486 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
2487 (termcapobj): Replace with TERMCAP_OBJ.
2488 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
2489 (LIBES): Use LIBS_TERMCAP as a variable.
2490
2491 * s/freebsd.h (osreldate.h): No longer include, since this file
2492 does not use __FreeBSD_version any more.
2493
2494 * s/aix4-2.h (TERMINFO):
2495 * s/cygwin.h (TERMINFO):
2496 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2497 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
2498 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2499 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
2500 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
2501 * s/irix6-5.h (TERMINFO):
2502 * s/netbsd.h (LIBS_TERMCAP):
2503 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
2504 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
2505 * s/usg5-4.h (TERMINFO):
2506 Move to configure.
2507
94b612ad
SM
25082010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2509
2510 * eval.c (unbind_to): Don't unbind a local binding into the global
2511 binding when the local binding disappeared. Inversely, don't unbind
2512 a global binding into a newly created local binding.
2513 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
2514 can specify the frame to use, when applicable. Adjust callers.
2515
15e12598 25162010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 2517 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
2518
2519 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
2520
f724825e
EZ
25212010-05-07 Eli Zaretskii <eliz@gnu.org>
2522
5cba3209
EZ
2523 * w32fns.c: Include w32.h.
2524 (Fw32_shell_execute): Decode the error message before passing it
2525 to `error'. (Bug#6126)
2526
d16bdfc3
EZ
2527 * msdos.c (dos_set_window_size):
2528 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
2529 instead of `XSYMBOL (foo)->value'.
2530
59d93e87
EZ
25312010-05-07 Eli Zaretskii <eliz@gnu.org>
2532
9fdec8bc
EZ
2533 Fix the MS-DOS build, broken by autoconfiscation.
2534
2535 * Makefile.in: Don't use Make-style comments past the "start of
2536 cpp stuff" line.
2537 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
2538
2539 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
2540 edited directly by msdos/sed1v2.inp).
f724825e 2541
2f86b22b
GM
25422010-05-07 Glenn Morris <rgm@gnu.org>
2543
2544 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
2545 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
2546 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
2547 move out of cpp section.
2548 * s/freebsd.h (LD_SWITCH_SYSTEM):
2549 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
2550 * s/netbsd.h (LD_SWITCH_SYSTEM):
2551 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
2552
49ebbd65
DN
25532010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
2554
2555 Define LIB_STANDARD and START_FILES using autoconf.
2556 * s/usg5-4.h (LIB_STANDARD):
2557 * s/netbsd.h (START_FILES):
2558 * s/irix6-5.h (LIB_STANDARD):
2559 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
2560 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2561 * s/freebsd.h (START_FILES):
2562 * s/darwin.h (START_FILES):
2563 * s/cygwin.h (START_FILES):
2564 * s/aix4-2.h (LIB_STANDARD):
2565 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
2566 * Makefile.in (STARTFILES): Rename to START_FILES, define using
2567 autoconf, not cpp.
2568
d43c06d6
DN
25692010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
2570
28823648
DN
2571 Remove NEED_BSDTTY and NEED_UNISTD_H.
2572 * s/hpux10-20.h (NEED_BSDTTY): Remove.
2573 * s/aix4-2.h (NEED_UNISTD_H): Remove.
2574 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
2575 <sys/ptyio.h> and <unistd.h>.
2576
aca00430
DN
2577 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
2578
d43c06d6
DN
2579 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
2580 * s/gnu.h (START_FILES): Remove empty definition.
2581
3e56b11d
JD
25822010-05-06 Jan Djärv <jan.h.d@swipnet.se>
2583
2584 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
2585
e3cf0cde
GM
25862010-05-06 Glenn Morris <rgm@gnu.org>
2587
2588 * Makefile.in (CPP, LN_S): Remove unused variables.
2589
774b9a60
SM
25902010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2591
2592 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
2593
4ab92842
LM
25942010-05-05 Lawrence Mitchell <wence@gmx.li>
2595
2596 * m/sparc.h: Fix typo in earlier change.
2597
178f2507
SM
25982010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2599
2600 Misc tweaks.
2601 * eval.c (Fdefvaralias): Remove unintended nested if.
2602 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
2603
80f00217 26042010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
2605
2606 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
2607
ef03a4e6
DN
26082010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2609
58eb6cf0
DN
2610 Remove BSD_PGRPS.
2611 * s/bsd-common.h (BSD_PGRPS): Remove undef.
2612 * s/gnu-linux.h (BSD_PGRPS): Remove.
2613 * term.c (dissociate_if_controlling_tty):
2614 * sysdep.c (narrow_foreground_group, widen_foreground_group)
2615 (init_sys_modes, reset_sys_modes):
2616 * emacs.c (main):
2617 * callproc.c (Fcall_process, child_setup): Remove code depending
2618 on BSD_PGRPS.
2619
ef03a4e6
DN
2620 Remove POSIX_SIGNALS.
2621 * s/usg5-4.h (POSIX_SIGNALS):
2622 * s/netbsd.h (POSIX_SIGNALS):
2623 * s/msdos.h (POSIX_SIGNALS):
2624 * s/ms-w32.h (POSIX_SIGNALS):
2625 * s/hpux11.h (POSIX_SIGNALS):
2626 * s/gnu.h (POSIX_SIGNALS):
2627 * s/gnu-linux.h (POSIX_SIGNALS):
2628 * s/freebsd.h (POSIX_SIGNALS):
2629 * s/darwin.h (POSIX_SIGNALS):
2630 * s/cygwin.h (POSIX_SIGNALS):
2631 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
2632 * s/unixware.h:
2633 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
2634 * process.c (create_process):
2635 * syssignal.h:
2636 * sysdep.c (wait_for_termination, init_signals):
2637 * process.c (create_process):
2638 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
2639 remove all code that assumes the contrary.
2640
49628785
GM
26412010-05-04 Glenn Morris <rgm@gnu.org>
2642
27a2cdfc
GM
2643 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
2644 variable.
2645 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2646 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
2647 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
2648 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
2649 LD_SWITCH_SYSTEM_tmp.
2650 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
2651 New variables, set by configure.
2652
eb21eab5
GM
2653 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2654 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
2655 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
2656 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
2657 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
2658
49628785
GM
2659 * s/aix4-2.h (C_SWITCH_SYSTEM):
2660 * m/alpha.h (C_SWITCH_MACHINE):
2661 Move to configure.in.
2662 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
2663 New variables, set by configure.
2664 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
2665 $c_switch_machine and $c_switch_system.
2666
7dff330b
DN
26672010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
2668
2669 * s/hpux10-20.h (LIB_STANDARD): New definition.
2670 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
2671 on it, not used anymore.
2672
53967e09
CY
26732010-05-03 Chong Yidong <cyd@stupidchicken.com>
2674
2675 * eval.c (internal_condition_case_n): Rename from
2676 internal_condition_case_2.
2677 (internal_condition_case_2): New function.
2678
2679 * xdisp.c (safe_call): Use internal_condition_case_n.
2680
2681 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
2682 (internal_delete_file, Frename_file): Callers changed.
2683
2684 * buffer.c (Fkill_buffer):
2685 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
2686
2687 * lisp.h: Update prototypes.
2688
3dee6fdb
GM
26892010-05-03 Glenn Morris <rgm@gnu.org>
2690
2691 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
2692 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
2693 (LIBXT): Set with configure, not cpp.
2694 (LIBX): Remove.
2695 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
2696
a101e0fb
DN
26972010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2698
2699 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
2700 The FreeBSD is not needed, the default works, Solaris version is
2701 not needed, and the remaining case is not supported by configure.
2702
f63d0028
JD
27032010-05-02 Jan Djärv <jan.h.d@swipnet.se>
2704
2705 * xsmfns.c (CHDIR_OPT): New define.
2706 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
2707 restarting emacs.
2708
2709 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
2710 shut_down_emacs.
2711
2712 * emacs.c (USAGE1): Mention --chdir.
2713 (main): Handle --chdir.
2714 (standard_args): Add --chdir.
2715 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
2716 #5552).
2717
e4814a9f
DN
27182010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
2719
cd03c74a
DN
2720 Remove LD_SWITCH_MACHINE.
2721 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
2722 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
2723
c3a398a1
DN
2724 Clean up IRIX code.
2725 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
2726 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
2727
87e7285c
DN
2728 Clean up AIX code.
2729 * m/ibmrs6000.inp: Remove file, unused.
2730 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
2731 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
2732 definition ...
2733 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
2734
80f00217
JB
2735 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
2736 unused.
e4814a9f 2737
59ca28de
EZ
27382010-05-01 Eli Zaretskii <eliz@gnu.org>
2739
197daef4
EZ
2740 Emulate POSIX_SIGNALS on MS-Windows.
2741
2742 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
2743 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
2744
2745 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
2746 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
2747 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
2748
80f00217
JB
2749 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
2750 New stubs.
197daef4 2751
af7c7572
EZ
2752 Miscellaneous fixes of bidi display.
2753
59ca28de
EZ
2754 * xdisp.c (find_row_end): New function, refactored from display_line.
2755 (display_line): Use it.
017ea819
EZ
2756 (extend_face_to_end_of_line): In almost-filled rows, extend only
2757 if the row is R2L and not continued.
166e930d 2758 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 2759 Preserve overlay and string info in row->end.
166e930d
EZ
2760 (insert_left_trunc_glyphs): Support addition of left truncation
2761 glyphs to R2L rows.
b47e0dcf 2762 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
2763 glyph between adjacent windows. Fix a crash when a display string
2764 is continued to the next line. Don't return zero if cursor was
2765 found by `cursor' property of a display string.
b47e0dcf
EZ
2766 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
2767 test for that explicitly.
59ca28de 2768
7acac9f4
GM
27692010-05-01 Glenn Morris <rgm@gnu.org>
2770
2771 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
2772 for clarity.
2773 (OTHER_OBJ): Remove.
2774 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
2775 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
2776
45841e65
KK
27772010-05-01 Karel Klíč <kklic@redhat.com>
2778
2779 * fileio.c (Ffile_selinux_context): Context functions may return null.
2780
afc61943
DN
27812010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
2782
80f00217 2783 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 2784
5a1bb006
GM
27852010-04-30 Glenn Morris <rgm@gnu.org>
2786
2787 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
2788 (OTHER_OBJ): Define as a separate variable, for clarity.
2789
210af043
J
27902010-04-30 Jan Djärv <jan.h.d@swipnet.se>
2791
2792 * xsettings.c: include limits.h and update file comment.
2793
0a7df391
GM
27942010-04-30 Glenn Morris <rgm@gnu.org>
2795
d5096f16
GM
2796 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
2797 Set with configure, not cpp.
2798 (LIBW): Remove, replace with $TOOLKIT_LIBW.
2799
7eb1ac33
GM
2800 * Makefile.in (mallocobj): Remove.
2801 (otherobj): Simplify using @OTHER_OBJ@.
2802
517d086b
GM
2803 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
2804 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
2805 Don't bother making nsgui.h dependency platform-specific.
2806
0a7df391
GM
2807 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
2808
d6d23852
SM
28092010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2810
d2630aef
SM
2811 * process.c (read_process_output, exec_sentinel): Don't burp if the
2812 sentinel/filter kills the current buffer (bug#6060).
2813
f9dddf52 2814 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
2815 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
2816 Remove unused var `args'.
2817 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
2818 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
2819 * doc.c (store_function_docstring): Use XSETCAR.
2820
f1e3642a
GM
28212010-04-28 Glenn Morris <rgm@gnu.org>
2822
faf535f8
GM
2823 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
2824 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
2825
c40f9449
GM
2826 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
2827
658f86ca
GM
2828 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
2829 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
2830
bc0b5f61
GM
2831 * Makefile.in (FONT_OBJ): New, set by configure.
2832 (FONT_DRIVERS): Use $FONT_OBJ.
2833
294c50a0
GM
2834 * Makefile.in (LIBXMU): Set with configure, not cpp.
2835 * s/aix4-2.h (LIBXMU):
2836 * s/hpux10-20.h (LIBXMU):
2837 Remove definition, now set in configure.
2838
e6ec4e99
GM
2839 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
2840
f1e3642a
GM
2841 * m/amdx86-64.h [i386]: Move this test to configure.in.
2842
c6ea2936
GM
28432010-04-27 Glenn Morris <rgm@gnu.org>
2844
8fdac2c3
GM
2845 * Makefile.in (LIBXTR6): Set with configure, not cpp.
2846 * s/unixware.h (NEED_LIBW): Remove definition.
2847
986fb647
GM
2848 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
2849 (TOOLKIT_LIBW): New, set by configure.
2850 (@X_TOOLKIT_TYPE@): No longer define it.
2851
c6ea2936
GM
2852 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
2853 (MOTIF_LIBW): Set with configure, not cpp.
2854 * s/aix4-2.h (LIB_MOTIF):
2855 * s/gnu-linux.h (LIB_MOTIF):
2856 * s/unixware.h (LIB_MOTIF): Move to configure.in.
2857
aaa36002
DN
28582010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
2859
2860 Reduce CPP usage.
2861 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
2862 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
2863 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
2864 definitions and undefs. Inline definitions in the only user.
2865 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 2866
b678dd8b
GM
28672010-04-27 Glenn Morris <rgm@gnu.org>
2868
76cda504
GM
2869 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
2870 since the defaults (set by the system file) are fine in most cases.
2871 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
2872 * m/ibms390x.h (START_FILES, LIB_STANDARD):
2873 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
2874 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
2875 Remove definitions, since they are set correctly in s/gnu-linux.h.
2876 * s/freebsd.h (START_FILES, LIB_STANDARD):
2877 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
2878 * s/hpux10-20.h (START_FILES):
2879 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
2880 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
2881
b678dd8b
GM
2882 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
2883 (MOTIF_LIBW): Use $LIBXP.
2884 (otherobj): Use $WIDGET_OBJ.
2885
9452ded1
DN
28862010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
2887
7e10844c
DN
2888 * Makefile.in (LIBS_MACHINE): Remove, unused.
2889
9452ded1
DN
2890 Use autoconf instead of cpp for LIB_MATH.
2891 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
2892 * s/cygwin.h (LIB_MATH): Likewise.
2893 * Makefile.in (LIB_MATH): Do not define with cpp.
2894 (LIBES): Use autoconf for LIB_MATH.
2895
fcebfc6a
KH
28962010-04-26 Kenichi Handa <handa@m17n.org>
2897
2898 * composite.c (Ffind_composition_internal): Fix the return value
2899 for an automatic composition.
2900
39e2ad1b
DN
29012010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
2902
2903 Remove all NO_ARG_ARRAY uses.
2904 * fns.c (concat2, concat3, nconc2):
2905 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
2906 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
2907 * m/xtensa.h (NO_ARG_ARRAY):
2908 * m/template.h (NO_ARG_ARRAY):
2909 * m/sparc.h (NO_ARG_ARRAY):
2910 * m/sh3.h (NO_ARG_ARRAY):
2911 * m/mips.h (NO_ARG_ARRAY):
2912 * m/macppc.h (NO_ARG_ARRAY):
2913 * m/iris4d.h (NO_ARG_ARRAY):
2914 * m/intel386.h (NO_ARG_ARRAY):
2915 * m/ibms390x.h (NO_ARG_ARRAY):
2916 * m/ibms390.h (NO_ARG_ARRAY):
2917 * m/ibmrs6000.h (NO_ARG_ARRAY):
2918 * m/ia64.h (NO_ARG_ARRAY):
2919 * m/hp800.h (NO_ARG_ARRAY):
2920 * m/arm.h (NO_ARG_ARRAY):
2921 * m/amdx86-64.h (NO_ARG_ARRAY):
2922 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
2923
adf4f59c
EZ
29242010-04-25 Eli Zaretskii <eliz@gnu.org>
2925
6bdf5d65
EZ
2926 * xdisp.c (display_line): Don't assume 2nd call to
2927 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
2928 (iterate_out_of_display_property): New function, body from pop_it.
2929 (pop_it): Use it.
adf4f59c 2930
dfbbda83
GM
29312010-04-24 Glenn Morris <rgm@gnu.org>
2932
2933 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
2934 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
2935 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
2936 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
2937
2d4018aa
EZ
29382010-04-24 Eli Zaretskii <eliz@gnu.org>
2939
a49884a6
EZ
2940 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
2941 use `get_next_display_element' and `set_iterator_to_next' to
2942 advance to the next character, when looking for the character that
2943 begins the next row.
2944
76db6fcc 2945 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
2946 definition of "struct Lisp_Symbol".
2947
70eab5c1
GM
29482010-04-24 Glenn Morris <rgm@gnu.org>
2949
2950 * Makefile.in (CRT_DIR): New variable, set by configure.
2951 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
2952 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
2953
1ad4cc3d
DN
29542010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2955
e769f484
DN
2956 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
2957
4196ff33
DN
2958 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
2959
879b0ee4
DN
2960 Remove redundant flags.
2961 * s/freebsd.h (C_SWITCH_SYSTEM):
2962 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
2963 * s/netbsd.h (C_SWITCH_SYSTEM):
2964 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
2965 of these.
2966
03cbbcb8
DN
2967 Simplify m/intel386.h.
2968 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
2969 user: ecrt0.c.
2970 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
2971 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
2972 the only user: s/unixware.h.
2973 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
2974 from m/intel386.h.
2975 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
2976 moved here from m/intel386.h.
2977
1ad4cc3d
DN
2978 * m/mips.h: Remove #if 0 code.
2979
8785b888
EZ
29802010-04-23 Eli Zaretskii <eliz@gnu.org>
2981
728588cc
EZ
2982 Fix display of composed characters from L2R scripts in bidi buffers.
2983 * xdisp.c (set_iterator_to_next, next_element_from_composition):
2984 After advancing IT past the composition, resync the bidi iterator
2985 with IT's position. (Bug#5977)
2986
a63f80b4
DN
29872010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
2988
2989 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
2990 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
2991
ff5dec5c
SM
29922010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
2993
2994 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
2995
8785b888
EZ
29962010-04-23 Eli Zaretskii <eliz@gnu.org>
2997
58ccf243 2998 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
2999 * xdisp.c (pop_it): When the stack is popped after displaying
3000 from a string, bidi-iterate to exit from the text portion covered
3001 by the `display' property or overlay. (Bug#5988, bug#5920)
3002
feeb1604
DN
30032010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
3004
8e324eb6
DN
3005 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
3006 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
3007
809fcaba
DN
3008 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
3009 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
3010
ed710380
DN
3011 Simplify STARTFILES definition.
3012 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
3013 relying on Makefile.in to define it.
3014 * s/cygwin.h (START_FILES): Likewise.
3015 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
3016
feeb1604
DN
3017 Clean up Solaris code.
3018 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
3019 (LIB_MOTIF): Remove, configure takes care of this.
3020 (NOT_USING_MOTIF): Remove, unused.
3021 * xrdb.c: Remove #if 0-ed #include.
3022 (SYSV): Remove conditional for old SysV.
3023 * sysdep.c (closedir): Remove conditional code for Solaris,
3024 Solaris has closedir.
3025
a0d0b563
JD
30262010-04-22 Jan Djärv <jan.h.d@swipnet.se>
3027
3028 * xsettings.c (read_and_apply_settings): Check if current_font is
3029 NULL before strcmp (Bug#6001).
3030
56bae7c7
DN
30312010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
3032
3033 Clean up HP-UX files.
3034 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
3035 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
3036 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
3037 * s/hpux10-20.h: ... to the only user, here.
3038
372b7a95
EZ
30392010-04-21 Eli Zaretskii <eliz@gnu.org>
3040
3041 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
3042 use buffer-local values of paragraph-start and paragraph-separate.
3043 <paragraph_start_re, paragraph_separate_re>: Rename from
3044 fallback_paragraph_start_re and fallback_paragraph_separate_re.
3045 (Bug#5992)
3046
f904c0f9
JD
30472010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3048
3049 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
3050 current_tool_bar_style are new.
3051 (store_config_changed_event): Rename from store_font_changed_event.
3052 (XSETTINGS_TOOL_BAR_STYLE): New define.
3053 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
3054 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
3055 HAVE_XFT.
3056 (something_changedCB): store_font_changed_event is now
c4cc8b9a 3057 store_config_changed_event.
f904c0f9
JD
3058 (parse_settings): Rename from parse_xft_settings. Read
3059 non-xft xsettings outside #ifdef HAVE_XFT.
3060 (read_settings): Renamed from read_xft_settings.
3061 (apply_xft_settings): Take current settings as parameter. Do not
3062 call read_(xft)_settings.
3063 (read_and_apply_settings): New function.
3064 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
3065 read_and_apply_settings if there are settings to be read.
3066 (init_xsettings): Renamed from init_xfd_settings.
3067 Call read_and_apply_settings unconditionally.
3068 (xsettings_initialize): Call init_xsettings.
3069 (Ftool_bar_get_system_style): New function.
3070 (syms_of_xsettings): Define Qmonospace_font_name and
3071 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 3072 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 3073 dynamic-setting.
31a01b90 3074 Move misplaced HAVE_GCONF
f904c0f9
JD
3075
3076 * xsettings.h (Ftool_bar_get_system_style): Declare.
3077
3078 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
3079 Qtext, Qboth, Qboth_horiz are new.
3080 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
3081 Vtool_bar_style, tool_bar_max_label_size.
3082
3083 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
3084
3085 * keyboard.c: QClabel is new.
3086 (parse_tool_bar_item): Take out QClabel from tool bar items.
3087 Try to construct a label if ther is no QClabel.
3088 (syms_of_keyboard): Intern :label as QClabel.
3089
3090 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
3091 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
3092 New.
3093
3094 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
3095 dynamic-setting.el.
3096
3097 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
3098 (xg_make_tool_item, xg_show_toolbar_item): New function.
3099 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
3100 Call xg_make_tool_item to make a tool bar item.
3101 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
3102
3103 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
3104 into account for toolbars.
3105
c632dfda
JD
31062010-04-21 Jan Djärv <jan.h.d@swipnet.se>
3107
3108 * data.c (make_blv): Declarations before code (Bug#5993).
3109
10efe302
GM
31102010-04-21 Glenn Morris <rgm@gnu.org>
3111
3112 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
3113 Define using autoconf, not cpp.
3114 (LIBXSM): New variable, set by autoconf.
3115 (LIBXT): Use $LIBXSM.
3116
4285ac5a
DN
31172010-04-21 Dan Nicolaescu <local_user@dannlt>
3118
3ec759e7
DN
3119 Remove NOMULTIPLEJOBS, unused.
3120 * s/template.h (NOMULTIPLEJOBS):
3121 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
3122
4285ac5a
DN
3123 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
3124 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
3125 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
3126 detects -znocombreloc and passes it to the linker
3127 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
3128
2807228d
GM
31292010-04-21 Glenn Morris <rgm@gnu.org>
3130
3131 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
3132
574c05e2
KK
31332010-04-21 Karel Klíč <kklic@redhat.com>
3134
3135 * Makefile.in (LIBSELINUX_LIBS): New.
3136 (LIBES): Add $LIBSELINUX_LIBS.
3137 * eval.c, lisp.h (call7): New function.
3138 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
3139 (Ffile_selinux_context, Fset_file_selinux_context):
3140 New functions.
3141 (Fcopy_file): New parameter preserve-selinux-context.
3142 (Frename_file): Preserve selinux context when renaming by copy-file.
3143
91eac4bb 31442010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 3145 Eli Zaretskii <eliz@gnu.org>
91eac4bb 3146
50426a04
JB
3147 Don't depend on cm.c or termcap.c on Windows, use stubs.
3148 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
3149 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
3150 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
3151 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
3152 (sys_tputs, sys_tgetstr): New stubs.
3153 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
3154 (tputs, tgetstr): New; define to sys_*.
91eac4bb 3155
938efb77
JB
31562010-04-20 Juanma Barranquero <lekktu@gmail.com>
3157
3158 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
3159
b4bf28b7
SM
31602010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3161
8b1e1112
SM
3162 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
3163 Just signal a warning rather than an error when inside a let.
3164 (Fmake_variable_frame_local): Add the same test.
3165
933ac235
SM
3166 * font.c (syms_of_font): Make the style table vars read-only.
3167
b4bf28b7
SM
3168 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
3169 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
3170
3171 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
3172
93d68d0c
EZ
31732010-04-20 Eli Zaretskii <eliz@gnu.org>
3174
3175 Fix R2L paragraph display on TTY.
3176
3177 * xdisp.c (unproduce_glyphs): New function.
3178 (display_line): Use it when produced glyphs are discarded from R2L
3179 glyph rows.
3180 (append_composite_glyph): In R2L rows, prepend the glyph rather
3181 than appending it.
3182
3183 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
3184 rather than append it. Set up the resolved_level and bidi_type
3185 attributes of the appended glyph.
283ccc18
EZ
3186 (produce_special_glyphs): Mirror the backslash continuation
3187 character in R2L lines.
93d68d0c 3188
283ccc18 3189 Implement display of R2L paragraphs in GUI sessions.
26cdf528 3190
283ccc18
EZ
3191 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
3192 append_stretch_glyph.
3193 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
3194 off-by-one error in computing x at end of text in the row.
3195 (append_stretch_glyph): In reversed row, prepend the glyph rather
3196 than append it. Set resolved_level and bidi_type of the glyph.
3197 (extend_face_to_end_of_line): If the row is reversed, prepend a
3198 stretch glyph whose width is such that the rightmost glyph will be
3199 drawn at the right margin of the window. Fix off-by-one error on
3200 TTY frames in testing whether a line needs face extension. Fix
3201 face extension at ZV. If this is the last glyph row, use
3202 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
3203 region face.
3204 (set_cursor_from_row, display_line): Use
26cdf528
EZ
3205 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
3206 row->continuation_lines_width.
283ccc18
EZ
3207 (next_element_from_buffer): Don't call bidi_paragraph_init if we
3208 are at ZV. Fixes a crash when reseated to ZV by
3209 try_window_reusing_current_matrix.
45903529
EZ
3210 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
3211 which happens with R2L glyph rows. Fixes a crash when inserting a
3212 character at end of an R2L line.
283ccc18
EZ
3213 (set_cursor_from_row): Don't be fooled by truncated rows: don't
3214 treat them as having zero-width characters. Improve comments.
3215 Don't reverse pos_before and pos_after for reversed glyph rows.
3216 Set cursor.x to negative value when the cursor might be on the
3217 left fringe.
3218 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
3219 left fringe, not the right one.
f951a506
EZ
3220 (notice_overwritten_cursor, draw_phys_cursor_glyph)
3221 (erase_phys_cursor): For reversed cursor_row, support cursor on
3222 the left fringe.
3223
283ccc18
EZ
3224 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
3225 of continuation indicators on the fringes.
3226 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
3227 left fringe.
3228
f951a506
EZ
3229 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
3230 draw cursor on the left fringe.
3231
3232 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
3233 cursor on the left fringe.
3234
f951a506
EZ
3235 * dispnew.c (update_text_area): Handle reversed desired rows when
3236 the cursor is on the left fringe.
3237 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
3238 below, not by 0, for when the cursor is on the left fringe.
3239
3bb49aaf
JD
32402010-04-20 Jan Djärv <jan.h.d@swipnet.se>
3241
3242 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
3243 widget is a scrollbar.
3244
c0be27fd
KH
32452010-04-20 Kenichi Handa <handa@m17n.org>
3246
3247 * charset.c (char_charset): Consider Vcharset_non_preferred_head
3248 only when the arg CHARSET_LIST is nil.
3249
ce5b453a
SM
32502010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
3251
3252 Make variable forwarding explicit rather the using special values.
3253 Basically, this makes the structure of buffer-local values and object
3254 forwarding explicit in the type of Lisp_Symbols rather than use
3255 special Lisp_Objects for that. This tends to lead to slightly more
3256 verbose code, but is more C-like, simpler, and makes it easier to make
3257 sure we handled all cases, among other things by letting the compiler
3258 help us check it.
3259 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
3260 Removing forwarding objects.
3261 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
3262 (struct Lisp_Symbol): Make the various forms of variable-forwarding
3263 explicit rather than hiding them inside Lisp_Object "values".
3264 (XFWDTYPE): New macro.
3265 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
3266 (XBUFFER_LOCAL_VALUE): Remove.
3267 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
3268 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
3269 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
3270 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
3271 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
3272 Remove the Lisp_Misc_* header.
3273 (struct Lisp_Buffer_Local_Value): Redefine.
3274 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
3275 (struct Lisp_Misc_Any): Add filler to get the right size.
3276 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
3277 Lisp_Intfwd.
3278 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
3279 (DEFVAR_KBOARD): Allocate a forwarding object.
3280 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
3281 (let_shadows_global_binding_p): New function.
3282 (union Lisp_Val_Fwd): New type.
3283 (make_blv): New function.
3284 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
3285 (store_symval_forwarding, swap_in_global_binding, Fboundp)
3286 (swap_in_symval_forwarding, find_symbol_value, Fset)
3287 (let_shadows_buffer_binding_p, set_internal, default_value)
3288 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
3289 (Fkill_local_variable, Fmake_variable_frame_local)
3290 (Flocal_variable_p, Flocal_variable_if_set_p)
3291 (Fvariable_binding_locus):
3292 * xdisp.c (select_frame_for_redisplay):
3293 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
3294 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
3295 * frame.c (store_frame_param):
3296 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
3297 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
3298 value structure.
3299 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
3300 (clone_per_buffer_values): Only adjust markers into the current buffer.
3301 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
3302 (Fbuffer_local_value, set_buffer_internal_1)
3303 (swap_out_buffer_local_variables):
3304 Adapt to the new symbol value structure.
3305 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
3306 (defvar_per_buffer): Take a new arg for the fwd object.
3307 (buffer_lisp_local_variables): Return a proper alist (different fix
3308 for bug#4138).
3309 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
3310 (Fgarbage_collect): Don't handle buffer_defaults specially.
3311 (mark_object): Handle new symbol value structure rather than the old
3312 special Lisp_Misc_* objects.
3313 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
3314 * term.c (set_tty_color_mode):
3315 * bidi.c (bidi_initialize): Don't access the ->value field directly.
3316 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
3317 a buffer_local_flags.
3318 * print.c (print_object): Get rid of impossible forwarding objects.
3319
fd3998ff
EZ
33202010-04-19 Eli Zaretskii <eliz@gnu.org>
3321
3322 * bidi.c (bidi_get_type, bidi_get_category)
3323 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
3324 (bidi_type_of_next_char, bidi_level_of_next_char):
3325 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 3326
e42cd1a7
JB
33272010-04-19 Juanma Barranquero <lekktu@gmail.com>
3328
3329 * dired.c (Ffile_attributes): Fix typo in docstring.
3330
6e104790 33312010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
3332
3333 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
3334 NSInteger (Bug#5811).
3335
6e104790 33362010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
3337
3338 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
3339 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
3340
6e104790 33412010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
3342
3343 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
3344
6e104790
SM
33452010-04-19 Chong Yidong <cyd@stupidchicken.com>
3346
3347 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
3348 terminal frames (Bug#5837).
3349
37dcfea0
EZ
33502010-04-19 Eli Zaretskii <eliz@gnu.org>
3351
d1da276f
EZ
3352 * .gdbinit (xsubchartable): New command.
3353
37dcfea0
EZ
33542010-04-19 Eli Zaretskii <eliz@gnu.org>
3355
3356 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 3357 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
3358 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
3359 and
3360 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
3361
e9515805
SM
33622010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
3363
3364 * alloc.c (Fpurecopy): Hash-cons if requested.
3365 (syms_of_alloc): Update purify-flag docstring.
3366
22aa44a8
JD
33672010-04-18 Jan Djärv <jan.h.d@swipnet.se>
3368
3369 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
3370 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
3371
ebb5722e
EZ
33722010-04-17 Eli Zaretskii <eliz@gnu.org>
3373
3374 Fix a crash when an NSM character is inserted at BEGV.
3375
3376 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
3377 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
3378 NEUTRAL_B or UNKNOWN_BT.
3379
0f4442ef
EZ
33802010-04-16 Eli Zaretskii <eliz@gnu.org>
3381
3382 * xdisp.c (set_cursor_from_row): Don't consider possibility of
3383 other rows with cursor unless they are different from this row and
3384 this row is part of a continued line. (Bug#5943)
3385
7d4e45f8
DN
33862010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3387
3388 * s/freebsd.h: Restore osreldate.h include.
3389 Suggested by Naohiro Aota.
3390
5ba5ec85
J
33912010-04-16 Jan Djärv <jan.h.d@swipnet.se>
3392
3393 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
3394
20af301d
CY
33952010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
3396
3397 * s/cygwin.h: Avoid linking against static libgcc.
3398
a4b000fb
JL
33992010-04-15 Juri Linkov <juri@jurta.org>
3400
3401 * window.c: Add Qscroll_command.
3402 Remove Vscroll_preserve_screen_position_commands.
3403 (window_scroll_pixel_based, window_scroll_line_based): Check the
3404 `scroll-command' property on the last command instead of searching
3405 the last command in Vscroll_preserve_screen_position_commands.
3406 (syms_of_window): Initialize and staticpro `Qscroll_command'.
3407 Put Qscroll_command property on Qscroll_up and Qscroll_down.
3408 (scroll-preserve-screen-position): Doc fix.
3409 (Vscroll_preserve_screen_position_commands): Remove variable.
3410
bc319ba4
DN
34112010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
3412
6bb24457
DN
3413 * xdisp.c (message): Do not use NO_ARG_ARRAY.
3414
19d4c244
DN
34152010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
3416
3417 Reduce cpp use in Makefile.in.
3418 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
3419 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
3420 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
3421 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
3422 (CRT0_COMPILE): Remove, inline it in the only user.
3423
32129746
JL
34242010-04-14 Juri Linkov <juri@jurta.org>
3425
3426 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
3427 `scroll-up-command' and `M-v' from `scroll-down' to
3428 `scroll-down-command'.
3429
9013a7f8
JL
34302010-04-14 Juri Linkov <juri@jurta.org>
3431
3432 * window.c (Vscroll_preserve_screen_position_commands): New variable
3433 with the default value as the list of Qscroll_down and Qscroll_up.
3434 (window_scroll_pixel_based, window_scroll_line_based): Search the
3435 last command in the list Vscroll_preserve_screen_position_commands
3436 instead of comparing with Qscroll_up and Qscroll_down.
3437
4bef8d26
JD
34382010-04-13 Jan Djärv <jan.h.d@swipnet.se>
3439
92848133
JD
3440 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
3441 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
3442 does that.
3443
4bef8d26
JD
3444 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
3445 to zero.
3446
58b963f7
SM
34472010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
3448
84164a0d
SM
3449 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
3450
2b0a91e7
SM
3451 Try to solve the problem of spurious EOF chars in long lines of text
3452 sent to interactive subprocesses.
3453 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
3454 (system_process_attributes): Remove unused var `ttotal'.
3455 * process.c (send_process): Don't bother breaking long line with EOF
3456 chars when talking to ttys any more.
3457 (wait_reading_process_output): Output a warning when called in such
3458 a way that it could block without being interruptible.
3459
58b963f7
SM
3460 Try to detect file modification within the same second.
3461 * buffer.h (struct buffer): New field modtime_size.
3462 * buffer.c (reset_buffer): Initialize it.
3463 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
3464 (Fverify_visited_file_modtime): Check it.
3465 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
3466 (Fset_visited_file_modtime): Set (or clear) it.
3467
01f5787b
SM
34682010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3469
3470 * process.c (status_notify): Remove unused var `ro'.
3471
83725342
JD
34722010-04-12 Jan Djärv <jan.h.d@swipnet.se>
3473
3474 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
3475 more than one visual (Bug#5938).
3476
b9465836
DN
34772010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
3478
50426a04
JB
3479 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
3480 Undefine.
b9465836 3481
8d9c8ece
DN
34822010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
3483
b1f52161
DN
3484 Remove C_SWITCH_SYSTEM_TEMACS.
3485 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
3486 (malloc, realloc, free): Use emacs, not temacs for conditional
3487 definition.
3488
3489 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
3490 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
3491
8d9c8ece
DN
3492 Use autoconf, not cpp for some variables.
3493 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
3494 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
3495 (ALL_CFLAGS): Use them as make variables.
3496 (really-lwlib, really-oldXMenu): Do not pass them.
3497
1ecb2d3f
JD
34982010-04-11 Jan Djärv <jan.h.d@swipnet.se>
3499
3500 * xmenu.c (apply_systemfont_to_dialog): New.
3501 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
3502
3a4fa2f2
SM
35032010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
3504
97e53006
SM
3505 * process.c (exec_sentinel): Preserve current-buffer.
3506
3a4fa2f2
SM
3507 * process.c (read_process_output): Move the save-current-buffer to
3508 apply to both the filter and the non-filter branches.
3509
88df7221
DN
35102010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
3511
3512 * s/msdos.h (UNEXEC): New definition.
3513
5634ff85
YM
35142010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3515
6eff5c3d
YM
3516 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
3517 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
3518
3519 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
3520 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
3521 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
3522 TRY_WINDOW_CHECK_MARGINS.
3523
3524 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
3525 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
3526 width only when it is for padding.
5634ff85 3527
b13aef54
J
35282010-04-09 Jan Djärv <jan.h.d@swipnet.se>
3529
3530 * xfns.c (Fx_show_tip): Call try_window in a loop until
3531 fonts_changed_p is zero (Bug#2423).
3532
21d28484
EZ
35332010-04-08 Eli Zaretskii <eliz@gnu.org>
3534
3535 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
3536 the end of TEXT_AREA. (Bug#5856)
3537
0269ef77
JD
35382010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3539
3540 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
3541 HAVE_GCONF.
3542
5930fe97
EZ
35432010-04-08 Eli Zaretskii <eliz@gnu.org>
3544
3545 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
3546 prev.orig_type, for resolving type of NSM. (Bug#5858)
3547
99852628
JD
35482010-04-08 Jan Djärv <jan.h.d@swipnet.se>
3549
3550 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
3551 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
3552 in current_font.
3553 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
3554 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
3555 New functions.
3556 (syms_of_xsettings): Initialize current_font.
3557 defsubr Sfont_get_system_normal_font.
99852628
JD
3558
3559 * xsettings.h (Ffont_get_system_normal_font,
3560 xsettings_get_system_normal_font): Declare.
3561
3562 * xfns.c (extern xlwmenu_default_font): Remove.
3563 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
3564 to xlwmenu.c.
3565
3566 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
3567 menu items in UTF-8.
3568
3569 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
3570 (apply_systemfont_to_menu): New function.
3571 (set_frame_menubar, create_and_show_popup_menu): Call
3572 apply_systemfont_to_menu.
3573
7fc874c4
J
35742010-04-07 Jan Djärv <jan.h.d@swipnet.se>
3575
3576 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
3577 FRAME_LINE_TO_PIXEL_Y.
3578
3579 * xterm.c (x_set_window_size_1): Don't add border_width/height to
3580 pixelwidth/height.
3581
863bf481
DN
35822010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
3583
5e5a3b92
DN
3584 Simplify code for HP machines.
3585 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
3586 for GNU_LINUX, not needed.
3587 (UNEXEC, NEED_BSDTTY): Move definitions...
3588 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
3589
863bf481
DN
3590 * m/iris4d.h (UNEXEC): Move definition ...
3591 * s/irix6-5.h (UNEXEC): ... here.
3592
3e6bec3b
JD
35932010-04-04 Jan Djärv <jan.h.d@swipnet.se>
3594
3595 * xfns.c (set_machine_and_pid_properties): New function.
3596 (Fx_create_frame): Call set_machine_and_pid_properties.
3597
2912322b
SM
35982010-04-03 Eli Zaretskii <eliz@gnu.org>
3599
1502b819
EZ
3600 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
3601 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
3602 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
3603
2912322b
SM
3604 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
3605 in this function. (Bug#5703)
3606
36072010-04-03 Chong Yidong <cyd@stupidchicken.com>
3608
3609 * nsterm.h: Fix last change.
3610
c435b432
DN
36112010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
3612
a568f507
DN
3613 * m/intel386.h (NO_REMAP): Move definition ...
3614 * s/msdos.h (NO_REMAP): ... here.
3615
4cd9f6c2
DN
3616 * m/vax.h (CRT0_DUMMIES): Remove, unused.
3617
c435b432
DN
3618 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
3619 used on those platforms.
3620
42a2c622
DN
36212010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
3622
3623 Remove extern errno declarations.
3624 * xterm.c:
3625 * xrdb.c:
3626 * w32term.c:
3627 * unexec.c:
3628 * unexaix.c:
3629 * sysdep.c:
3630 * process.c:
3631 * lread.c:
3632 * keyboard.c:
3633 * floatfns.c:
3634 * filelock.c:
3635 * fileio.c:
3636 * emacs.c (main):
3637 * ecrt0.c:
3638 * dispnew.c:
3639 * callproc.c:
3640 * buffer.c: Remove errno extern declarations.
3641 * s/netbsd.h (NEED_ERRNO): Remove.
3642
8224f93d
DN
36432010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
3644
3645 Remove all uses of LIBX11_SYSTEM.
3646 * Makefile.in (LIBX11_SYSTEM): Remove.
3647 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
3648 instead.
3649
814062c7
EZ
36502010-04-01 Eli Zaretskii <eliz@gnu.org>
3651
ed68db4d
EZ
3652 Remove support for DJGPP v1.x (bug#5813).
3653
3654 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
3655 * s/msdos.h:
3656 * unexec.c (make_hdr, copy_text_and_data):
3657 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 3658 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
3659 (IT_set_terminal_modes, __write, _rename, gethostname)
3660 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
3661 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
3662 the value of __DJGPP__.
ed68db4d
EZ
3663 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
3664 compatibility code.
8224f93d
DN
3665 * lread.c:
3666 * gmalloc.c (memalign):
3667 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
3668 * emacs.c (main):
3669 * dosfns.c (init_dosfns):
ed68db4d
EZ
3670 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
3671
52f4d8d5
EZ
36722010-04-01 Eli Zaretskii <eliz@gnu.org>
3673
814062c7
EZ
3674 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
3675 string with `cursor' property comes from an `after-string'
3676 overlay. (Bug#5816)
3677
0dc2e11d
GM
36782010-04-01 Glenn Morris <rgm@gnu.org>
3679
3680 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
3681 Define as Makefile variables.
3682 (LIBX): Use above variables rather than directly using autoconf.
3683
1d29df59
DN
36842010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
3685
3686 Clean up BSD_SYSTEM use.
3687 * xterm.c:
3688 * process.c:
3689 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
3690 for including <sys/ioctl.h>.
3691 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
3692 code is only used for MSDOS.
3693
1546c559
JL
36942010-03-31 Juri Linkov <juri@jurta.org>
3695
3696 * image.c: Add `Qextension_data'.
3697 (syms_of_image): Initialize and staticpro `Qextension_data'.
3698 (Fimage_metadata): Rename from `Fimage_extension_data'.
3699 (gif_load): Put GIF extension data to the property
3700 `Qextension_data'.
3701
6521c534
CY
37022010-03-31 Chong Yidong <cyd@stupidchicken.com>
3703
3704 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
3705 * nsterm.h: Fix prototype.
3706
52c30783
EZ
37072010-03-31 Eli Zaretskii <eliz@gnu.org>
3708
3709 * xdisp.c (highlight_trailing_whitespace): Support highlight of
3710 trailing whitespace in right-to-left rows.
3711
855a0da7
SM
37122010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3713
3714 Get rid of the direct_output optimizations.
3715 * keyboard.c (nonundocount): Remove extern declaration.
3716 (command_loop_1): Remove brittle optimisation for cheap and
3717 common operations.
3718 * xdisp.c (redisplay_internal): Don't bother checking
3719 redisplay_performed_directly_p any more.
3720 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
3721 any more.
3722 * dispnew.c (redisplay_performed_directly_p)
3723 (direct_output_for_insert, direct_output_forward_char):
3724 * dispextern.h (redisplay_performed_directly_p)
3725 (direct_output_for_insert, direct_output_forward_char): Remove.
3726 * cmds.c (nonundocount): Make it static.
3727
85738751 37282010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
3729
3730 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
3731
85738751 37322010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
3733
3734 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
3735 invisible (Bug#5766).
3736
85738751 37372010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 3738
855a0da7
SM
3739 * xdisp.c (x_consider_frame_title, update_window_cursor):
3740 Remove HAVE_NS conditionals.
194d44e7 3741 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
3742
3743 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
3744 filename for the title.
3745 (ns_set_doc_edited): Do nothing if the selected window is a
3746 minibuffer window.
3747
3748 * nsterm.h: Add prototypes for ns_set_name_as_filename and
3749 ns_set_doc_edited.
3750
3751 * nsterm.m: Remove unneeded prototype.
3752
85738751 37532010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
3754
3755 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
3756 in the DOC file. (Bug#5336)
3757
85738751 37582010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
3759
3760 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
3761
75d1428c
SM
37622010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
3763
3764 * window.c (keys_of_window): Remove redundant/overridden bindings.
3765
82043cfb
EZ
37662010-03-30 Eli Zaretskii <eliz@gnu.org>
3767
3768 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
3769 Restore original behavior when the iterator is not bidi_p.
3770
b5dd0ae7
DN
37712010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3772
3773 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
3774
bd924a5d
EZ
37752010-03-30 Eli Zaretskii <eliz@gnu.org>
3776
3777 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
3778 are outside the range of cached character positions.
3779
3580374b
JB
37802010-03-30 Juanma Barranquero <lekktu@gmail.com>
3781
3782 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
3783
a7b02820
EZ
37842010-03-30 Eli Zaretskii <eliz@gnu.org>
3785
3786 Initial support for bidirectional editing.
3787
3788 * Makefile.in (obj): Include bidi.o.
3789 (bidi.o): New target.
3790
3791 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
3792 ($(BLD)/bidi.$(O)): New target.
3793
3794 * bidi.c: New file.
3795
3796 * buffer.h (struct buffer): New members bidi_display_reordering
3797 and bidi_paragraph_direction.
3798
3799 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
3800 and bidi_paragraph_direction.
3801 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
3802 and bidi-paragraph-direction.
3803 (Fbuffer_swap_text): Swap the values of
3804 bidi_display_reordering and bidi_paragraph_direction.
3805
3806 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
3807 (bidi_type_t, bidi_dir_t): New types.
3808 (bidi_saved_info, bidi_stack, bidi_it): New structures.
3809 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
3810 prev_stop, base_level_stop, and eol_pos.
3811 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
3812 (IT_STACK_SIZE): Enlarge to 5.
3813 (struct glyph_row): New member reversed_p.
3814 <string_buffer_position>: Update prototype.
3815 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
3816 glyph_row if bidi_it.paragraph_dir == R2L.
3817 (struct glyph): New members resolved_level and bidi_type.
3818
3819 * dispnew.c (direct_output_forward_char): Give up if we need bidi
3820 processing or buffer's direction is right-to-left.
3821 (prepare_desired_row): Preserve the reversed_p flag.
3822 (row_equal_p): Compare the reversed_p attributes as well.
3823
3824 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
3825 bidi_init_it and set it->paragraph_embedding from the current
3826 buffer's value of bidi_paragraph_direction.
3827 (reseat_1): Initialize bidi_it.first_elt.
3828 (set_iterator_to_next, next_element_from_buffer): Use the value of
3829 paragraph_embedding to determine the paragraph direction.
3830 (set_iterator_to_next): Under bidi reordering, call
3831 bidi_get_next_char_visually. Call bidi_paragraph_init if the
3832 new_paragraph flag is set in the bidi iterator.
3833 (next_element_from_buffer): If bidi_it.first_elt is set,
3834 initialize paragraph direction and find the first character to
3835 display in the visual order. If reseated to a middle of a line,
3836 prime the bidi iterator starting at the line's beginning. Handle
3837 the situation where we overstepped stop_charpos due to
3838 non-linearity of the bidi iteration. Likewise for when we back up
3839 beyond the previous stop_charpos. When moving across stop_charpos,
3840 record it in prev_stop.
3841 (display_line): Set row->end and it->start for the next row to the
3842 next character in logical order. Always extend reversed_p rows to
3843 the end of line, even if they end at ZV. Copy the reversed_p flag
3844 to the next glyph row. Keep calling set_cursor_from_row for
3845 bidi-reordered rows even if we already have a possible candidate
3846 for cursor position. Set row_end after all the row's glyphs have
3847 been produced, by looping over the glyphs. Record the position
3848 after EOL in it->eol_pos, and use it to set end_pos of the last
3849 row produced for a continued line.
3850 <Qright_to_left, Qleft_to_right>: New variables.
3851 (syms_of_xdisp): Initialize and staticpro them.
3852 (string_buffer_position_lim): New function.
3853 (string_buffer_position): Most of code moved to
3854 string_buffer_position_lim. Last argument and return value are
3855 now EMACS_INT; all callers changed.
3856 (set_cursor_from_row): Rewritten to support bidirectional text and
3857 reversed glyph rows.
3858 (text_outside_line_unchanged_p, try_window_id): Disable
3859 optimizations if we are reordering bidirectional text and the
3860 paragraph direction can be affected by the change.
3861 (append_glyph, append_composite_glyph)
3862 (produce_image_glyph, append_stretch_glyph): Set the
3863 resolved_level and bidi_type members of each glyph.
3864 (append_glyph): If the glyph row is reversed, prepend the glyph
3865 rather than appending it.
3866 (handle_stop_backwards): New function.
3867 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
3868 (reseat): call handle_stop_backwards to recompute prev_stop and
3869 base_level_stop for the new position.
3870 (handle_invisible_prop): Under bidi iteration, skip invisible text
3871 using bidi_get_next_char_visually. If we are `reseat'ed, init the
3872 paragraph direction. Update IT->prev_stop after skipping
3873 invisible text.
3874 (move_it_in_display_line_to): New variables prev_method
3875 and prev_pos. Compare for strict equality in
3876 BUFFER_POS_REACHED_P.
3877 (try_cursor_movement): Examine all the candidate rows that occlude
3878 point, to return the best match. If rows are bidi-reordered
3879 and point moved backwards, back up to the row that is not a
3880 continuation line, and start looking for a suitable row from
3881 there.
3882
3883 * term.c (append_glyph): Reverse glyphs by pre-pending them,
3884 rather than appending, if the glyph_row's reversed_p flag is set.
3885 Set the resolved_level and bidi_type members of each glyph.
3886
3887 * .gdbinit (pbiditype): New command.
3888 (pgx): Use it to display bidi level and type of the glyph.
3889 (pitx): Display some bidi information about the iterator.
3890 (prowlims, pmtxrows): New commands.
3891
32a8894e
DN
38922010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
3893
3894 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
3895 * s/usg5-4.h (LIBS_DEBUG):
3896 * s/irix6-5.h (C_DEBUG_SWITCH):
3897 * s/gnu-linux.h (LIBS_DEBUG):
3898 * s/darwin.h (LIBS_DEBUG):
3899 * s/bsd-common.h (LIBS_DEBUG):
3900 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
3901 * m/iris4d.h (LIBS_DEBUG):
3902 * m/hp800.h (LIBS_DEBUG): Remove definitions.
3903
3904 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
3905 (LIBS_DEBUG): Remove definition.
3906
649dbf36
CY
39072010-03-27 Chong Yidong <cyd@stupidchicken.com>
3908
3909 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
3910 Windows.
3911
cad4261f
YM
39122010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3913
3914 * process.c (Fmake_network_process): Don't call turn_on_atimers around
3915 `connect' (Bug#5723).
3916
cd591dbc
HE
39172010-03-25 Helmut Eller <eller.helmut@gmail.com>
3918
3919 * process.c (Fmake_network_process): Call `select' for interrupted
3920 `connect' rather than creating new socket (Bug#5173).
3921
e867cb5d 39222010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
3923
3924 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
3925
3926 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
3927
3928 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
3929
e867cb5d 39302010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
3931
3932 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
3933 XLoadQueryFont.
3934
e867cb5d 39352010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
3936
3937 * coding.c (decode_coding_ccl): Fix previous change for the
3938 multibyte case.
fb608df3
KH
3939 (encode_coding_ccl): Don't setup ccl program here. Fix for the
3940 case that the output buffer is fullfilled.
3941 (encode_coding): Setup ccl program here.
fbdc1721 3942
5845f0ed
DN
39432010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
3944
814fb708
DN
3945 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
3946
5845f0ed
DN
3947 Simplify LIBS_MACHINE definitions.
3948 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
3949 * m/iris4d.h (LIBS_MACHINE): Likewise.
3950 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
3951 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 3952 * s/netbsd.h: Remove commented out code.
5845f0ed 3953
b7064064
DN
39542010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
3955
df7734b2
DN
3956 Remove dead code dealing with POSIX_SIGNALS.
3957 * atimer.c (set_alarm): Remove dead code, all USG systems define
3958 POSIX_SIGNALS.
3959 * data.c (arith_error): Likewise.
3960 * keyboard.c (input_available_signal, handle_user_signal)
3961 (interrupt_signal): Likewise.
3962 * process.c (sigchld_handler): Likewise.
3963 (create_process): Remove if 0 code. Remove HPUX conditional when
3964 !defined (POSIX_SIGNALS), it cannot be true.
3965 * syssignal.h: Remove USG5_4 and USG conditionals when
3966 !POSIX_SIGNALS, they cannot be true.
3967
b7064064
DN
3968 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
3969 NO_SOCK_SIGIO, not used anymore.
3970
55da5ee3
DN
39712010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
3972
0be96e3a
DN
3973 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
3974 support vax on BSDs.
3975
55da5ee3
DN
3976 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
3977 * s/aix4-2.h (ORDINARY_LINK): ... here.
3978
c0282183
AS
39792010-03-21 Andreas Schwab <schwab@linux-m68k.org>
3980
82c3d67a
AS
3981 * Makefile.in (abs_builddir): Define.
3982 (bootstrap_exe): Use it.
3983 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 3984
3613edce
SM
39852010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
3986
3987 * Makefile.in (bootstrap_exe): Use an absolute name.
3988
7f110ddc
DN
39892010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
3990
22e87574
DN
3991 Remove support for old GNU/Linux using libc version 5.
3992 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
3993 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
3994
05a670e6
DN
3995 Consolidate redundant definitions in s/bsd-common.h.
3996 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
3997 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
3998 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
3999 doing it in all files that include this one.
4000 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4001 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4002 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4003 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4004 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4005 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4006 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
4007 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
4008 (LDAV_SYMBOL, KERNEL_FILE): Remove.
4009
2968f561
DN
4010 Consolidate redundant definitions.
4011 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
4012 it's undefined in all files that include this one.
4013 (POSIX_SIGNALS): Define here instead of doing it in all files that
4014 include this one.
4015 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4016 (POSIX_SIGNALS): Do not define.
4017 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4018 (POSIX_SIGNALS): Do not define.
4019 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
4020 (POSIX_SIGNALS): Do not define.
4021
15d25dc0
DN
4022 Remove support for old UNIX System V systems.
4023 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
4024 * s/usg-5-4-2.h: Remove.
4025
07e339e4
DN
4026 Remove support for Solaris on PPC and for old versions.
4027 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
4028 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
4029 that cancel each other.
4030 * s/sol2-3.h:
4031 * s/sol2-4.h:
4032 * s/sol2-5.h: Remove.
4033 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
4034 (NO_REMAP): Remove, unused.
4035 (UNEXEC): Move definition ...
4036 * s/aix4-2.h (UNEXEC): ... here.
4037
7f110ddc
DN
4038 * s/openbsd.h: Remove support for non-ELF and for systems that do
4039 not support shared libraries.
4040 * s/netbsd.h:
4041 * s/freebsd.h: Likewise.
4042
605f35cd
DN
40432010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4044
4045 Remove non-working support for lynxos 3.0.
4046 * s/lynxos.h: Remove file.
4047
4048 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
4049 COFF_BSD_SYMBOLS, nothing defines it anymore.
4050
aed71cf4
DN
40512010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
4052
4053 Remove obsolete uses of HAVE_SHM.
4054 * emacs.c (standard_args):
4055 (Fdump_emacs):
4056 (syms_of_emacs): Remove code depending on HAVE_SHM.
4057
4058 * alloc.c: Remove HAVE_SHM dependent definition.
4059
4060 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
4061
aded53ff
GM
40622010-03-18 Glenn Morris <rgm@gnu.org>
4063
17284745
GM
4064 * emacs.c (USAGE4): Hard-code bug address.
4065 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
4066 (bug_reporting_address): Remove.
4067 (main): Don't call bug_reporting_address.
4068
aded53ff
GM
4069 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4070 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
4071
303500aa
CY
40722010-03-15 Chong Yidong <cyd@stupidchicken.com>
4073
4074 * xfns.c (Fx_create_frame):
4075 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
4076 on left.
4077
cef3058f
CY
40782010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
4079
4080 * editfns.c (Fformat): Account for string precision when computing
4081 field width (Bug#5710).
4082
a647d59d
CY
40832010-03-12 Chong Yidong <cyd@stupidchicken.com>
4084
4fa42018
CY
4085 * xfns.c (Fx_create_frame): Set default to Qright.
4086
a647d59d
CY
4087 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
4088 all window systems.
4089
6da23aaa
EZ
40902010-03-12 Eli Zaretskii <eliz@gnu.org>
4091
a96f6398 4092 These changes remove termcap.c from the build on Posix platforms.
83d02def 4093 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
4094 (MSDOS_OBJ): ...to here.
4095 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
4096 now identical to when LIBS_TERMCAP is defined.
4097
4098 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
4099
4100 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
4101
a96f6398 4102 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 4103
288f9fc0
CY
41042010-03-10 Chong Yidong <cyd@stupidchicken.com>
4105
4106 * Branch for 23.2.
4107
d48cd3f4
SM
41082010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4109
4110 Cleanup setup of gl_state in various parts of the code.
4111 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
4112 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
4113 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
4114 (skip_chars):
4115 * regex.c (regex_compile): Use it.
4116 (re_compile_pattern): Don't set gl_state.current_syntax_table since
4117 it's now set in regex_compile when/if we need it.
4118
618db430
SM
41192010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
4120
c0335e02
SM
4121 Make it possible to C-g in a tight bytecode loop again (bug#5680).
4122 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
4123 (QUIT): Use it to consolidate code and remove redundancy.
4124 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
4125
254c06a8
SM
4126 * regex.c (regex_compile): Setup gl_state as well.
4127
618db430
SM
4128 * syntax.c (skip_chars): Setup gl_state (bug#3823).
4129 (in_classes): Use CONSP before XCAR/XCDR.
4130
233f0c9f
CY
41312010-03-03 Chong Yidong <cyd@stupidchicken.com>
4132
4133 * keymap.c (Fwhere_is_internal): Use Fequal to compare
4134 definitions, so that keyboard macros are correctly handled
4135 (Bug#5481).
4136
75f80e63
EZ
41372010-03-02 Eli Zaretskii <eliz@gnu.org>
4138
4139 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
4140 text that could be relocated inside the call to emacs_mule_char.
4141 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
4142 (CODING_DECODE_CHAR): Add a comment describing its purpose.
4143
dcfb9bc4
KH
41442010-03-02 Kenichi Handa <handa@m17n.org>
4145
fc9a17bc
KH
4146 * character.c (parse_str_as_multibyte): Fix handling of the
4147 multibyte form of raw-bytes.
4148 (str_as_multibyte): Likewise.
4149
dcfb9bc4
KH
4150 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
4151 form of raw-bytes.
4152
412c01b6
CY
41532010-02-28 Chong Yidong <cyd@stupidchicken.com>
4154
4155 * charset.c (load_charset_map_from_file)
4156 (load_charset_map_from_vector): Zero out allocated
4157 charset_map_entries before using them.
4158
df7e1ea0
AS
41592010-02-27 Andreas Schwab <schwab@linux-m68k.org>
4160
4161 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
4162
fe69a722
CY
41632010-02-27 Chong Yidong <cyd@stupidchicken.com>
4164
4ed28cf4
CY
4165 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
4166 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 4167
7379cfce
KH
41682010-02-26 Kenichi Handa <handa@m17n.org>
4169
f88cc4d6
KH
4170 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
4171
7379cfce
KH
4172 * xdisp.c (reseat_to_string): Fix previous change.
4173
cf2fdcfb
CY
41742010-02-26 David Reitter <david.reitter@gmail.com>
4175
4176 * nsfont.m (nsfont_draw): ns_antialias_text should be a
4177 Lisp_Object (Bug#4736).
4178
cc6c7c75
KH
41792010-02-25 Kenichi Handa <handa@m17n.org>
4180
4181 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
4182
32e737d7
JD
41832010-02-24 Jan Djärv <jan.h.d@swipnet.se>
4184
4185 * xterm.c (XTflash): Move declarations before statements.
4186
4187 * gtkutil.c (xg_get_gdk_display): Remove (unused).
4188 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
4189 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
4190 (xg_create_tool_bar): Remove unused variables.
4191 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 4192 (xg_create_frame_widgets): Remove variable grav.
32e737d7 4193
676cae9f
CY
41942010-02-21 Chong Yidong <cyd@stupidchicken.com>
4195
4196 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
4197
886cc2b8
SM
41982010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4199
4200 * term.c (fatal): Add a final \n if needed (bug#5596).
4201
ddb2d8e2
CY
42022010-02-18 Chong Yidong <cyd@stupidchicken.com>
4203
4204 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
4205
2a4f8d3d
GM
42062010-02-18 Glenn Morris <rgm@gnu.org>
4207
4208 * callint.c (Finteractive): Doc fix.
4209
ebaf11b6
KH
42102010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
4211
886cc2b8
SM
4212 * coding.c (record_conversion_result):
4213 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
4214 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
4215 memory allocation error.
4216
d0396581
KH
42172010-02-17 Kenichi Handa <handa@m17n.org>
4218
886cc2b8
SM
4219 * coding.c (decode_coding_ccl): Don't setup ccl program here.
4220 Fix for the case that the output buffer is fullfilled.
d0396581
KH
4221 (decode_coding): Setup ccl program here. Keep looping when the
4222 decoder stopped because the output buffer is
4223 fullfilled (bug#5534).
4224
4225 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
4226
98599f74
JD
42272010-02-13 Jan Djärv <jan.h.d@swipnet.se>
4228
471e4f04 4229 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 4230 bug #5571.
886cc2b8 4231 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 4232 overdrawn.
98599f74 4233
182659ae
JD
42342010-02-10 Jan Djärv <jan.h.d@swipnet.se>
4235
4236 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
4237 doing_interact here.
4238 (ice_connection_closed): New function.
4239 (x_session_check_input, smc_die_CB, ice_io_error_handler)
4240 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
4241 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
4242 returns I/O error.
4243 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
4244 bug #5512.
4245
9be32c4e 42462010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
4247
4248 * nsfont.m (nsfont_open): The system's value for the font descent
4249 is negative, so round it down to avoid clipping.
4250
a2f3eb19
CY
42512010-02-06 Chong Yidong <cyd@stupidchicken.com>
4252
4253 * charset.c (load_charset_map_from_file)
4254 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 4255 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 4256
3088147c
CY
42572010-02-05 Chong Yidong <cyd@stupidchicken.com>
4258
4259 * charset.c (load_charset_map_from_file): Allocate large
4260 charset_map_entries structure on the heap rather than the stack.
4261 (Bug#5526).
4262
b57d9029
KH
42632010-01-31 Kenichi Handa <handa@m17n.org>
4264
4265 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 4266 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 4267
c67d885b
CY
42682010-01-31 Chong Yidong <cyd@stupidchicken.com>
4269
4270 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
4271 <deactivated@gmail.com> (Bug#3605).
4272
8fab2362
CY
42732010-01-31 David De La Harpe Golden <david@harpegolden.net>
4274
4275 * fileio.c (Frename_file): Correctly rename symlinks to
4276 directories (Bug#5496).
4277
cb2a62f2
CY
42782010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
4279
4280 * nsterm.m (ns_ring_bell): Handle visible bell like X.
4281
944c7a26
AS
42822010-01-30 Andreas Schwab <schwab@linux-m68k.org>
4283
4284 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
4285
c024ac08
CY
42862010-01-29 Chong Yidong <cyd@stupidchicken.com>
4287
4288 * frame.c (DEFAULT_ROWS): Change default to 35.
4289
4290 * xfns.c (x_default_font_parameter): Change default XFT font to
4291 monospace-10 (Bug#3643).
4292
af93af83
EZ
42932010-01-29 Eli Zaretskii <eliz@gnu.org>
4294
4295 * w32inevt.c (key_event): Remove unnecessary comparison of
4296 event->uChar.AsciiChar with 128.
4297
ca0eb708
CY
42982010-01-28 Chong Yidong <cyd@stupidchicken.com>
4299
b242dbfc
CY
4300 * fileio.c (Frename_file): Fix last change (Bug#5487).
4301
ca0eb708
CY
4302 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
4303
4304 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
4305
45d45af5
JD
43062010-01-28 Jan Djärv <jan.h.d@swipnet.se>
4307
4308 * xfns.c (Fx_create_frame): Remove window size matching code from
4309 2010-01-15.
a73f9c9d 4310 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 4311
7e233730
JR
43122010-01-27 Jason Rumney <jasonr@gnu.org>
4313
4314 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 4315 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 4316
86e893e3
KH
43172010-01-27 Kenichi Handa <handa@m17n.org>
4318
4319 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 4320 pattern string (Bug#4209).
86e893e3 4321
8719abec
CY
43222010-01-27 David De La Harpe Golden <david@harpegolden.net>
4323
4324 * fileio.c (Frename_file): Call copy-directory and
4325 delete-directory for directories, in order to handle cross-device
4326 renaming (Bug#3353).
4327
844794c8
JD
43282010-01-25 Jan Djärv <jan.h.d@swipnet.se>
4329
aa3e13b5 4330 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 4331 sizes 24 and 10. Bug #3643.
844794c8 4332
bd4b5750
SM
43332010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
4334
8dc1adf6 4335 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
4336 * keymap.c (shadow_lookup): Add `remap' arg.
4337 (describe_map, describe_vector): Update calls to shadow_lookup.
4338 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
4339 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
4340 perform remapping during shadow_lookup check of remapped_sequences.
4341
285d07e2
CY
43422010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
4343
4344 * image.c (png_load): Use png_sig_cmp instead of the obsolete
4345 png_check_sig, which has been removed in libpng 1.4.
4346
c6d09b8d
CY
43472010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
4348
4349 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
4350 lacks this header file).
4351
3d782998
YM
43522010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4353
4354 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
4355 as in Emacs 22.
4356
2aff7c53
YM
43572010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4358
4359 * lisp.h (make_pure_string): String pointer arg now points to const.
4360
4361 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
4362 args now point to const.
4363
74327f7a
EZ
43642010-01-22 Eli Zaretskii <eliz@gnu.org>
4365
4366 * lread.c (Fload): Don't treat files without .elc extension as
4367 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
4368 them. (bug#5303)
4369
4d1e6632
KH
43702010-01-20 Kenichi Handa <handa@m17n.org>
4371
4372 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
4373 treat the source as actual byte sequence.
4374
1fdede8f
AM
43752010-01-19 Alan Mackenzie <acm@muc.de>
4376
4377 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 4378 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
4379 `signal_after_change_p' to `coherent_change_p', and make the
4380 invocation of `modify_region' conditional on it.
4381
67477f30
JD
43822010-01-19 Jan Djärv <jan.h.d@swipnet.se>
4383
4384 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
4385 for debug purpose.
4386 (syms_of_xsettings): Declare xft-settings.
4387
244b023e
CY
43882010-01-18 Chong Yidong <cyd@stupidchicken.com>
4389
4390 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
4391
617364fe
CY
43922010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4393
4394 * xterm.c (event_handler_gdk): Block input (Bug#5037).
4395
4fe22cdf
CY
43962010-01-16 Chong Yidong <cyd@stupidchicken.com>
4397
4398 * emacs.c (standard_args): Adjust arg priorities to reflect how
4399 they are processed in startup.el.
4400
e118d2be
AS
44012010-01-16 Andreas Schwab <schwab@linux-m68k.org>
4402
4403 * Makefile.in (lisp, shortlisp): Update.
4404
523ae620
SM
44052010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
4406
4407 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
4408 code, link the new kboard into all_kboard before running Lisp code,
4409 and protect the new terminal with GCPRO (Bug#5365).
4410 (x_term_init): Remove unused var `atom'.
4411 (x_delete_display, x_delete_terminal): Remove unused var `i'.
4412
f0d13888
JD
44132010-01-15 Jan Djärv <jan.h.d@swipnet.se>
4414
4415 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
4416 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
4417 to find out usable size of the desktop. Don't make frames larger than
ac146f82 4418 this. Bug #3643.
f0d13888 4419
cc320f07
KH
44202010-01-15 Kenichi Handa <handa@m17n.org>
4421
4422 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
4423
7ffdf101
CY
44242010-01-15 Chong Yidong <cyd@stupidchicken.com>
4425
4426 * nsterm.m (Qnone): Define.
4427
4428 * nsfns.m (Qnone): Move definition to nsterm.m.
4429
d12bd917
KH
44302010-01-14 Kenichi Handa <handa@m17n.org>
4431
4432 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
4433 systems.
4434
d9a7c140
KH
44352010-01-14 Kenichi Handa <handa@m17n.org>
4436
4437 Make auto-composition work on all buffers even if they are
4438 fundamental mode.
4439
4440 * composite.c (Vauto_composition_mode): New variable.
4441 (composition_compute_stop_pos): Check Vauto_composition_mode
4442 instead of Vauto_composition_function.
4443 (composition_adjust_point, Ffind_composition_internal): Likewise.
4444 (syms_of_composite): Declare Lisp variable
4445 "auto-composition-mode" here.
4446
63286bb2
CY
44472010-01-13 Chong Yidong <cyd@stupidchicken.com>
4448
4449 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
4450 during call to vendor-specific-keysyms (Bug#5365).
4451
c2623ee7
YM
44522010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4453
4454 * keyboard.c (input_available_signal) [SYNC_INPUT]:
4455 Call SIGNAL_THREAD_CHECK (Bug#5333).
4456
4457 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
4458 Call SIGNAL_THREAD_CHECK.
4459
0b5397c2
SM
44602010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
4461
4462 Try to fix bug#5314. This is probably not the final word, tho.
4463 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
4464 recent-auto-save-p as a side-effect.
4465 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
4466 * buffer.c (Fkill_buffer, reset_buffer):
4467 * editfns.c (Fsubst_char_in_region):
4468 * fileio.c (Finsert_file_contents, Fdo_auto_save)
4469 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
4470
dc954cb2
KH
44712010-01-13 Kenichi Handa <handa@m17n.org>
4472
4473 Display buffer name, etc. in mode line by composing correctly.
4474
4475 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
4476 STRING is not nil.
0b5397c2 4477 (display_mode_element): Adjust for the change of
dc954cb2
KH
4478 decode_mode_spec and display_line.
4479 (decode_mode_spec): Change arg MULTIBYTE to STRING.
4480 (display_string): Handle the case that STRING is non-null and
4481 LISP_STRING is not nil.
4482
0b5397c2
SM
4483 * xterm.c (x_draw_composite_glyph_string_foreground):
4484 Pay attention to s->face->overstrike.
dc954cb2
KH
4485
4486 * composite.c (composition_reseat_it): Don't check PT if STRING is
4487 non nil.
4488
4a00eaca
YM
44892010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4490
4491 * keyboard.c (read_char): Don't apply previous change when current
4492 buffer is unchanged by command execution.
4493
60abb287
JD
44942010-01-12 Jan Djärv <jan.h.d@swipnet.se>
4495
4496 * keyboard.c (read_char): Return after executing from special map.
4497
893db5bc
GM
44982010-01-12 Glenn Morris <rgm@gnu.org>
4499
4500 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
4501 bug-gnu-emacs rather than emacs-pretest-bug.
4502
4d03ece0
CY
45032010-01-11 Chong Yidong <cyd@stupidchicken.com>
4504
4505 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
4506 initializing the Lisp variables that depend on them.
4507
1df47e38
YM
45082010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4509
4510 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
4511 Clear areas that will not be updated after change of menu bar lines.
4512 Clear the menu bar window's current matrix when the window gets empty.
4513
2f1c6384
CY
45142010-01-09 Chong Yidong <cyd@stupidchicken.com>
4515
e398c61c
CY
4516 * intervals.h, textprop.c (extend_property_ranges): Return value
4517 and args changed. Discard properties that begin at or after the
4518 new end (Bug#5306).
4519
4520 * editfns.c (Fformat): Caller changed.
4521
e5a29a10
CY
4522 * nsterm.m (ns_set_default_prefs): Delete function.
4523 (syms_of_nsterm): Initialize ns_command_modifier,
4524 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
4525 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
4526
2f1c6384
CY
4527 * xdisp.c (pos_visible_p): Check for invisible text at the correct
4528 position (Bug#4040).
4529
d427a9fa
EZ
45302010-01-09 Eli Zaretskii <eliz@gnu.org>
4531
4532 * editfns.c (Ffloat_time): Doc fix.
4533
21b9df2f
JD
45342010-01-09 Jan Djärv <jan.h.d@swipnet.se>
4535
4536 * xfns.c (Fx_create_frame): Don't create frame larger than display
4537 by default bug#3643.
4538
4b00d3b1
YM
45392010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4540
4541 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
4542 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
4543 windows above internal border.
4544
4545 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
4546 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
4547 windows above internal border.
4548
4549 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
4550 tool bar windows specially.
4551
4552 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
4553
4554 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
4555 specially.
4556 (XTflash): Take account of menu bar height.
4557
4558 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
4559 specially.
4560
5075d853
JD
45612010-01-08 Jan Djärv <jan.h.d@swipnet.se>
4562
ac146f82 4563 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
4564 also be true before we can return early (bug #5339).
4565
474217c8
CY
45662010-01-06 David Reitter <david.reitter@gmail.com>
4567
4568 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
4569 (Fns_display_usable_bounds): Rewrite, computing bounds properly
4570 (Bug#3233).
4571
c0e6d47d
JD
45722010-01-06 Jan Djärv <jan.h.d@swipnet.se>
4573
d0cf45b7
JD
4574 * font.c (font_open_entity): Enable chache and call cached_font_ok
4575 for the driver if defined.
4576 (QCuser_spec): New symbol.
4577 (font_spec_from_name): Save name as user-spec.
4578 (font_load_for_lface): Keep user-spec instead of name.
4579 (font_open_by_name): Save name as user-spec.
4580 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 4581 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
4582
4583 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
4584 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
4585 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
4586
4587 * font.h (struct font_driver): Add cached_font_ok.
4588
c0e6d47d
JD
4589 * xterm.c (x_clear_frame): Queue draw for scroll bars.
4590
7c583cd8
JD
45912010-01-05 Jan Djärv <jan.h.d@swipnet.se>
4592
4593 * xterm.c (x_new_font): Move code for setting rows/cols before
4594 resizing ...
ac146f82 4595 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
4596
4597 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
4598 (xg_frame_resized, xg_frame_set_char_size):
4599 Call xg_clear_under_internal_border.
7c583cd8 4600 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 4601
03f77f0a
CY
46022010-01-05 Chong Yidong <cyd@stupidchicken.com>
4603
4604 * keyboard.c (read_key_sequence): Catch keyboard switch after
4605 making a new tty frame (Bug#5095).
4606
2a1ef5be
KH
46072010-01-05 Kenichi Handa <handa@m17n.org>
4608
4609 * fontset.c (fontset_find_font): Fix getting the frame pointer.
4610
e3eb1dae
SM
46112010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
4612
4613 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
4614 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
4615 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
4616
777013f2
MA
46172010-01-03 Michael Albinus <michael.albinus@gmx.de>
4618
4619 * dbusbind.c (xd_add_watch): Improve debug message.
4620 (xd_remove_watch): Improve debug message. If DATA is the session
4621 bus, unset D-Bus session environment.
4622 (Fdbus_init_bus): Pass the bus as argument to
4623 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 4624
8932b1c2
CY
46252010-01-01 Chong Yidong <cyd@stupidchicken.com>
4626
87231e2c
CY
4627 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
4628
4801c5fa
CY
4629 * lread.c (syms_of_lread): Make it clearer that these are the
4630 names of loaded files (Bug#5068).
4631
8932b1c2
CY
4632 * eval.c (run_hook_with_args): Handle the case where the global
4633 value has the obsolete single-function form (Bug#5026).
4634
11e3c684
CY
46352009-12-27 Chong Yidong <cyd@stupidchicken.com>
4636
4637 * minibuf.c (Fall_completions): Minor optimization.
4638
5b28ce35
EZ
46392009-12-26 Eli Zaretskii <eliz@gnu.org>
4640
5ce6e4f4
JB
4641 * .gdbinit (pgx): Fix display of composite glyphs.
4642 Display cmp.from and cmp.to as well.
4643 (pitx): Fix last change.
5b28ce35 4644
bcffff46
KH
46452009-12-25 Kenichi Handa <handa@m17n.org>
4646
4647 * composite.h (composition_adjust_point): Update prototype.
4648
4649 * composite.c (composition_reseat_it): Don't make a composition
4650 spanning over point.
4651 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
4652 composable characters.
4653 (composition_adjust_point): New arg NEW_PT. Callers changed.
4654
4655 * keyboard.c (command_loop_1): Force redisplay if the last point
4656 was within a composition.
4657 (adjust_point_for_property): Don't adjust point for automatic
4658 composition when called after buffer modification.
4659
3f670e9a
EZ
46602009-12-19 Eli Zaretskii <eliz@gnu.org>
4661
5ce6e4f4
JB
4662 * .gdbinit (pitx): Don't use enum names, use their values.
4663 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
4664 (pgx): Don't use enum names, use their values.
4665 (pitmethod): New helper command.
4666 (pitx): Use it to display iteration method.
4667 (pgrowit): New command.
4668
ad903955
EZ
4669 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
4670
3f670e9a
EZ
4671 Update dependencies in Makefile.in.
4672
4673 * Makefile.in (alloc.o): Depend on termhooks.h.
4674 (atimer.o): Depend on blockinput.h.
4675 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
4676 and frame.h.
4677 (callint.o): Depend on systime.h, coding.h, and composite.h.
4678 (callproc.o): Depend on buffer.h.
4679 (casefiddle.o): Don't depend on charset.h.
4680 (casetab.o): Depend on character.h.
4681 (ccl.o): Depend on composite.h.
4682 (chartab.o): Depend on ccl.h.
4683 (cm.o): Depend on dispextern.h.
4684 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
4685 (coding.o): Don't depend on $(INTERVALS_H).
4686 (composite.o): Don't depend on dispextern.h explicitly (it's in
4687 $(INTERVALS_H)). Depend on ccl.h.
4688 (data.o): Depend on systime.h, coding.h, composite.h,
4689 dispextern.h, font.h, and ccl.h.
4690 (dired.o): Depend on composite.h.
4691 (dispnew.o): Depend on coding.h. Don't depend explicitly on
4692 composite.h (it's in $(INTERVALS_H)).
4693 (doc.o): Depend on systime.h, coding.h, and composite.h.
4694 (editfns.o): Don't depend explicitly on dispextern.h.
4695 (emacs.o): Depend on frame.h and coding.h.
4696 (eval.o): Depend on coding.h, composite.h, and xterm.h.
4697 (fileio.o): Depend on frame.h and commands.h. Don't depend
4698 explicitly on dispextern.h.
4699 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
4700 composite.h.
4701 (fns.o): Don't depend on termhooks.h.
4702 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
4703 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
4704 coding.h, $(INTERVALS_H), window.h, xterm.h.
4705 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
4706 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
4707 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
4708 fontset.h, ccl.h, and ftfont.h.
4709 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4710 (gtkutil.o): Depend on dispextern.h and composite.h.
4711 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
4712 termhooks.h, and ccl.h.
4713 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
4714 (intervals.o): Depend on systime.h and coding.h.
4715 (keyboard.o): Depend on composite.h and coding.h.
4716 (keymap.o): Depend on coding.h and frame.h.
4717 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
4718 (macros.o): Depend on systime.h, coding.h, and composite.h.
4719 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
4720 and atimer.h.
4721 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
4722 dispextern.h explicitly.
0b5397c2
SM
4723 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
4724 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
4725 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
4726 (regex.o): Don't depend on charset.h.
4727 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
4728 (search.o): Don't depend explicitly on composite.h.
4729 (sound.o): Depend on atimer.h and systime.h.
4730 (syntax.o): Don't depend explicitly on composite.h.
4731 (sysdep.o): Depend on coding.h and composite.h.
4732 (term.o): Depend on xterm.h and buffer.h.
4733 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
4734 (textprop.o): Don't depend on dispextern.h explicitly.
4735 (undo.o): Depend on dispextern.h.
4736 (window.o): Depend on coding.h and termhooks.h. Don't depend on
4737 dispextern.h and composite.h explicitly.
4738 (xdisp.o): Depend on ccl.h.
4739 (xfaces.o): Depend on coding.h and ccl.h.
4740 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
4741 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
4742 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
4743 ftfont.h.
4744 (xgselect.o): New dependency.
4745 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
4746 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
4747 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
4748 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
4749 (xsmfns.o): Depend on frame.h and dispextern.h.
4750 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
4751 sysselect.h.
4752
7a6f7fea
AS
47532009-12-19 Andreas Schwab <schwab@linux-m68k.org>
4754
4755 * font.c (Fclear_font_cache): Pass correct cache argument to
4756 font_clear_cache.
4757
f4c21026
AS
47582009-12-16 Andreas Schwab <schwab@linux-m68k.org>
4759
4760 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
4761 twice.
4762
f7ab0997
CY
47632009-12-15 Chong Yidong <cyd@stupidchicken.com>
4764
4765 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4766 calling file-remote-p. Reported by Jim Meyering.
4767
fa8e045a
MA
47682009-12-15 Michael Albinus <michael.albinus@gmx.de>
4769
4770 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 4771 avoid compiler warnings. (Bug #5217)
fa8e045a 4772
a63dba42
KH
47732009-12-14 Kenichi Handa <handa@m17n.org>
4774
4775 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
4776 in 8-bit encoding.
4777
5ce6e4f4 47782009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
4779
4780 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
4781 tooltip windows.
4782
223e5fc6
JD
47832009-12-13 Jan Djärv <jan.h.d@swipnet.se>
4784
36acb2a7
JD
4785 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
4786 Xatom_net_window_type.
4787
4788 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
4789 Xatom_net_window_type.
4790
b8f00677
JD
4791 * xterm.c (my_log_handler): New function.
4792 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 4793 so we can filter out buggy messages. (Bug #5120).
b8f00677 4794
e5f0bc9a
JD
4795 * xterm.c (xg_scroll_callback): Parameter list changed,
4796 use parameter GtkScrollType to determine scroll/line/page.
4797 Only allow dragging if a button < 4 is grabbed (bug #5177).
4798 (xg_end_scroll_callback): New function.
4799 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
4800 xg_create_scroll_bar.
4801
4802 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
4803 (scroll_end_callback): Remove.
4804 (xg_create_scroll_bar): Add parameter end_callback, bind it to
4805 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 4806 bug #5177.
e5f0bc9a
JD
4807 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
4808 bug #5177.
4809
4810 * gtkutil.h (XG_LAST_SB_DATA): Remove.
4811 (xg_create_scroll_bar): Add GCallback end_callback.
4812
223e5fc6
JD
4813 * xftfont.c (QClcdfilter): New variable.
4814 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
4815 (syms_of_xftfont): Initialize QClcdfilter.
4816
3c055b77
JD
48172009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4818
4819 * xsettings.c (struct xsettings): Add member seen.
4820 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 4821 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
4822 (apply_xft_settings): Only update Xft settings with what member seen
4823 indicates as new.
4824
05fe33ff
EZ
48252009-12-12 Eli Zaretskii <eliz@gnu.org>
4826
c4cc8b9a 4827 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
4828 (struct glyph): Use EMACS_INT for charpos.
4829 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
4830 region_beg_charpos, region_end_charpos,
4831 redisplay_end_trigger_charpos, and also for
4832 iterator_stack_entry.end_charpos and
4833 iterator_stack_entry.stop_charpos.
4834
e8d7886a
JD
48352009-12-12 Jan Djärv <jan.h.d@swipnet.se>
4836
5ce6e4f4 4837 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
4838 (xg_create_scroll_bar): Call scroll_end_callback on button release
4839 event (bug #5177).
4840 (xg_event_is_for_scrollbar): != replaced with ==.
4841
d0db2ec8
KH
48422009-12-12 Kenichi Handa <handa@m17n.org>
4843
4844 * ftfont.c (struct ftfont_info): New member matrix.
4845 (ftfont_open): Setup xftfont_info->matrix.
4846 (MFLTFontFT): New member matrix.
4847 (FLOOR, CEIL, ROUND): New macros.
4848 (ftfont_get_metrics): Handle matrix transformation.
4849 (ftfont_shape_by_flt): New arg matrix. Callers changed.
4850
4851 * xftfont.c (struct xftfont_info): New member matrix.
4852 (xftfont_open): Setup xftfont_info->matrix.
4853
48542009-12-10 Kenichi Handa <handa@m17n.org>
4855
4856 * xdisp.c (append_space_for_newline): Consider face-remapping.
4857
2cc7b62f
AS
48582009-12-09 Andreas Schwab <schwab@linux-m68k.org>
4859
b87dd913
AS
4860 * xsettings.c: Include "keyboard.h".
4861
eba5eb94
AS
4862 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
4863
2cc7b62f
AS
4864 Fix implicit function declarations.
4865 * cmds.c: Include "frame.h".
4866 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
4867 * frame.h: Move declaration of delete_frame outside of
4868 HAVE_WINDOW_SYSTEM.
4869
a4ef73c8
CY
48702009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
4871
4872 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
4873
4874 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
4875 GTK builds.
4876
944a300c
AS
48772009-12-07 Andreas Schwab <schwab@linux-m68k.org>
4878
4879 * unexelf.c (unexec): Don't search for .data twice.
4880
022eef62
CY
48812009-12-05 Chong Yidong <cyd@stupidchicken.com>
4882
426ac949
CY
4883 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
4884 if push failed.
4885 (handle_line_prefix): Set avoid_cursor_p here. Check return value
4886 of push_display_prop (Bug#5000).
4887
022eef62
CY
4888 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
4889 value of font_list_entities (Bug#5085).
4890
be95bee9
JB
48912009-12-04 Juanma Barranquero <lekktu@gmail.com>
4892
4893 Fix `string-to-number' to deal consistently with integers and floats.
4894 * lread.c (isfloat_string): New argument ignore_trailing to accept all
4895 trailing characters, not just whitespace.
4896 (read1): Pass new arg 0 to keep old behavior.
4897 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
4898 trailing chars, as it is already done for integers. Doc fixes.
4899 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
4900
24c2d7ce
EZ
49012009-12-04 Eli Zaretskii <eliz@gnu.org>
4902
0b5397c2
SM
4903 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
4904 Delete unused enumeration value.
24c2d7ce 4905
7e694795
EZ
49062009-12-03 Eli Zaretskii <eliz@gnu.org>
4907
4908 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
4909
84b31826
SM
49102009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
4911
4912 * process.c (Fmake_network_process): Fix up the tests for
4913 "connectionless socket", so they DTRT for seqpacket sockets as well.
4914
f00c449b
SM
49152009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
4916
4917 * process.c (Qseqpacket): New symbol.
4918 (HAVE_SEQPACKET): New macro.
4919 (Fmake_network_process): Accept new :type `seqpacket'.
4920 (init_process): Add `seqpacket' feature when applicable.
4921 (syms_of_process): Initialize Qseqpacket.
4922
8096a0ff
YM
49232009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4924
4925 * font.c (font_load_for_lface, font_open_by_name): Don't store name
4926 if entity is Qnil.
4927
3e0de07f
SM
49282009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
4929
4930 * print.c (print_preprocess): Preprocess the key_and_value table of
4931 hashtables, even tho they're "hidden" (bug#5082).
4932
abeafb2a
JD
49332009-11-29 Jan Djärv <jan.h.d@swipnet.se>
4934
4935 * frame.c (frame_make_pointer_invisible)
4936 (frame_make_pointer_visible): Declare f before statements.
4937
4bf47195
EZ
49382009-11-28 Eli Zaretskii <eliz@gnu.org>
4939
4940 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
4941 omitted dependencies on lisp.h.
4942
c525b3f2
JD
49432009-11-27 Jan Djärv <jan.h.d@swipnet.se>
4944
ece2d4ed
JD
4945 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
4946 is NULL.
4947
4948 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
4949
4950 * frame.c (frame_make_pointer_invisible)
3e0de07f 4951 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
4952 frame.
4953
c525b3f2
JD
4954 * search.c (simple_search): Remove warning by making *p const.
4955
2f00e299
DN
49562009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
4957
4958 * xdisp.c (power_letter): Remove duplicate const.
4959
084b049b
JD
49602009-11-25 Jan Djärv <jan.h.d@swipnet.se>
4961
a1fadc6f
JD
4962 * term.c (delete_tty): Remove check for last terminal (bug#4970).
4963
5ce6e4f4 4964 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
4965 defaults (bug #5025).
4966
28259cac
SM
49672009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
4968
4969 * insdel.c (adjust_markers_for_delete): Move it in the
4970 right direction! (bug#4803)
4971
e8e14166
YM
49722009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4973
4974 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
4975
4976 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
4977
86677b58
GM
49782009-11-24 Glenn Morris <rgm@gnu.org>
4979
4980 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
4981
581e51e8
JD
49822009-11-23 Jan Djärv <jan.h.d@swipnet.se>
4983
cfc86c7a
JD
4984 * Makefile.in: Must create deps for ecrt0.o in its rule.
4985
581e51e8
JD
4986 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
4987 because that is what Gtk+ font dialog understands.
4988
4989 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
4990 of Fcopy_sequence.
4991 (font_open_by_name): Put name given into QCname for font-object returned.
4992
4993 * frame.c (x_set_font): Save original font name as frame parameter
4994 font-parameter.
4995
4996 * xsettings.c (set_default_xft_settings): New function.
4997 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
4998 is found.
4999
8b264ecb
AS
50002009-11-22 Andreas Schwab <schwab@linux-m68k.org>
5001
5002 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
5003 searching backwards through multibyte buffer.
5004
872870b2
JD
50052009-11-21 Jan Djärv <jan.h.d@swipnet.se>
5006
5007 * xterm.c: #include xgselect.h.
5008 (x_initialize): Call xgselect_initialize.
5009
5010 * xsettings.c (something_changedCB): C++ comments => C comments.
5011 (init_gconf): Do not deal with any GLib file descriptors, xg_select
5012 does that now.
5013
5014 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
5015 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
5016 (scroll_bar_button_cb): Remove.
5ce6e4f4 5017 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
5018 event.
5019 (xg_create_scroll_bar): Don't bind button-press-event and
5020 button-release-event.
5021
5022 * process.c: Include xgselect.h if defined (USE_GTK) ||
5023 defined (HAVE_GCONF).
5024 (wait_reading_process_output): Call xg_select for the same condition.
5025
5026 * xgselect.c (xg_select): New function to better integrate with
5027 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
5028
5029 * xgselect.h: New file, declare xg_select, xgselect_initialize.
5030
5031 * Makefile.in (XOBJ): Add xgselect.o.
5032
62a6e103
AS
50332009-11-21 Andreas Schwab <schwab@linux-m68k.org>
5034
0b5397c2
SM
5035 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
5036 Remove ignored second argument. All callers changed.
62a6e103
AS
5037 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
5038 (RE_STRING_CHAR_AND_LENGTH): Likewise.
5039 * xdisp.c (string_char_and_length): Likewise.
5040
b0ca0f33
DN
50412009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
5042
5043 * xterm.c (x_new_font):
5044 * print.c (print_object):
5045 * cmds.c (Fself_insert_command): Move declarations before statements.
5046
dd5a6279
CY
50472009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
5048
5049 * s/cygwin.h: Remove unneeded linker flags.
5050
4a8e097d
JD
50512009-11-20 Jan Djärv <jan.h.d@swipnet.se>
5052
0d1d0d26
JD
5053 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
5054
5055 * xsettings.h: Declare xsettings_get_system_font.
5056
5057 * xsettings.c (xsettings_get_system_font): New function.
5058 (init_gconf): No use initiating gconf unless we have Xft also.
5059 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
5060 HAVE_GCONF.
5061
4a8e097d
JD
5062 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
5063 add a blank entry so it doesn't collapse into nothing.
5064
8ab1650e
SM
50652009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5066
5067 * lread.c (Funintern): Comment out last change.
5068
82c602f0
RS
50692009-11-19 Richard Stallman <rms@gnu.org>
5070
5071 * lread.c (Funintern): Error if symbol is t or nil.
5072
87e32266
SM
50732009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
5074
5075 * insdel.c (make_gap_larger): Don't make as many assumptions about the
5076 representation of Lisp integers.
5077 Reported by MJ Chan <mjchan.inbox@gmail.com>.
5078
1b9ac145
AS
50792009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5080
5081 * lisp.h: Remove declaration of Ffont_get_system_font.
5082 * xfns.c: Move include of "xsettings.h".
5083 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
5084
dfb3c4c6
JD
50852009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5086
87e32266
SM
5087 * xsettings.c (something_changedCB, Ffont_get_system_font):
5088 Check use_system_font.
dfb3c4c6
JD
5089 (syms_of_xsettings): DEFVAR font-use-system-font.
5090
9370c1d8
AS
50912009-11-17 Andreas Schwab <schwab@linux-m68k.org>
5092
25fe851a
AS
5093 * xfns.c (x_default_font_parameter): Remove dead assignment.
5094
9370c1d8
AS
5095 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
5096
637fa988
JD
50972009-11-17 Jan Djärv <jan.h.d@swipnet.se>
5098
87e32266 5099 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 5100 not have FC_LCD_*. #define them if not there.
a6eb20d8 5101
87e32266 5102 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 5103
637fa988
JD
5104 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
5105
5106 * xterm.c (handle_one_xevent): Call xft_settings_event for
5107 ClientMessage, PropertyNotify and DestroyNotify.
5108 (x_term_init): If we have XFT, get DPI from Xft.dpi.
5109 Call xsettings_initialize.
5110
5111 * xftfont.c (xftfont_fix_match): New function.
5112 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
5113 Call xftfont_fix_match after XftFontMatch.
5114
5115 * xfont.c (xfont_driver): Initialize all members.
5116
87e32266
SM
5117 * xfns.c (x_default_font_parameter):
5118 Try font from Ffont_get_system_font.
637fa988
JD
5119 Do not get font from x_default_parameter if we got one from
5120 Ffont_get_system_font.
87e32266 5121 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
5122
5123 * w32font.c (w32font_driver): Initialize all members.
5124
5125 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
5126
5127 * lisp.h: Declare syms_of_xsettings.
5128
87e32266
SM
5129 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
5130 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
5131
5132 * ftfont.c (ftfont_filter_properties): New function.
5133
5134 * frame.c (x_set_font): Remove unused variable lval.
5135
87e32266 5136 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
5137
5138 * font.c (font_put_extra): Don't return if val is nil, it means
5139 boolean option is off.
5140 (font_parse_fcname): Collect all extra properties in extra_props
5141 and call filter_properties for all drivers with extra_props and
5142 font as parameter.
87e32266
SM
5143 (font_open_entity): Do not use cache, it does not pick up new
5144 fontconfig settings like hinting.
637fa988
JD
5145 (font_load_for_lface): If spec had a name in it, store it in entity.
5146
a73f9c9d 5147 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
5148
5149 * config.in: HAVE_GCONF is new.
5150
5151 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
5152 xsettings.o is new.
5153
5a942932
KH
51542009-11-17 Kenichi Handa <handa@m17n.org>
5155
5156 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
5157 back to the default font in case that no suitable font is found.
5158
b7c7a4d1
SM
51592009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
5160
5161 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
5162 Suggested by Chad Brown <yandros@mit.edu>.
5163 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
5164
072f1e39
JD
51652009-11-16 Jan Djärv <jan.h.d@swipnet.se>
5166
5167 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
5168
5d1e70a2
AS
51692009-11-14 Andreas Schwab <schwab@linux-m68k.org>
5170
87e32266 5171 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 5172
a53cfbe5
JD
51732009-11-14 Jan Djärv <jan.h.d@swipnet.se>
5174
473a99b7
JD
5175 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
5176 has a parent.
5177
a53cfbe5 5178 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 5179 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
5180
5181 * config.in: Generated (AUTO_DEPEND).
5182
f04bb9b2
MA
51832009-11-13 Michael Albinus <michael.albinus@gmx.de>
5184
b7c7a4d1 5185 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
5186 Vdbus_registered_functions_table, because it contains also
5187 properties. Fix docstring.
b7c7a4d1 5188 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 5189
8f11f7ec
SM
51902009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
5191
5192 * alloc.c (mark_object): Don't reprocess marked strings.
5193 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
5194 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
5195
8a605fe8
KH
51962009-11-13 Kenichi Handa <handa@m17n.org>
5197
8f11f7ec 5198 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
5199 semantics of Vword_combining_categories.
5200 (Vword_combining_categories): Describe the slight change of the
5201 semantics.
5202
241c4680
EZ
52032009-11-13 Eli Zaretskii <eliz@gnu.org>
5204
5205 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
5206
5207 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
5208
5d58e44c
SM
52092009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
5210
5211 * xdisp.c (syms_of_xdisp): Fix typo in last change.
5212
5e13f9d3
JB
52132009-11-12 Juanma Barranquero <lekktu@gmail.com>
5214
5215 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
5216
cf54c754
DR
52172009-11-11 David Reitter <david.reitter@gmail.com>
5218
5219 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
5220 variables to fix 2009-11-09 change.
5221
a4ada374
DN
52222009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
5223
91433552
DN
5224 * process.c (ifflag_def): Make flag_sym constant.
5225 (Fnetwork_interface_info): Use a constant pointer.
5226 (ifflag_table):
5227 * xfns.c (cursor_bits):
5228 * xdisp.c (power_letter):
5229 * termcap.c (speeds, esctab):
5230 * sysdep.c (baud_convert):
5231 * keyboard.c (lispy_accent_codes, modifier_names):
5232 * image.c (xbm_format, xpm_format, pbm_format, png_format)
5233 (jpeg_format, tiff_format, gif_format, svg_format)
5234 (interlace_start, interlace_increment, gs_format):
5235 * gtkutil.c (separator_names):
5236 * fringe.c (swap_nibble):
5237 * fns.c (base64_value_to_char, base64_char_to_value):
5238 * fileio.c (make_temp_name_tbl):
5239 * coding.c (suffixes): Make constant.
5240
f4265f6c
DN
5241 * frame.c (make_initial_frame):
5242 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
5243 build_string.
5244 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
5245
04420943
DN
5246 * s/freebsd.h:
5247 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
5248
0a5d24ae
DN
5249 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
5250 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
5251
a4ada374
DN
5252 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
5253 * xterm.c (syms_of_xterm):
5254 * xfaces.c (syms_of_xfaces):
5255 * xdisp.c (syms_of_xdisp):
5256 * lread.c (syms_of_lread):
5257 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
5258 build_string.
91433552 5259
a4ada374
DN
5260 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
5261
af98fc7f
SM
52622009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5263
8ab1650e 5264 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 5265
e90292a9
JD
52662009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5267
5268 * keyboard.h: Declare timer_check.
5269
5270 * keyboard.c (timer_check_2): New function that does what the old
5271 timer_check did.
5272 (timer_check): Call timer_check_2 until -1 or a non-zero time is
5273 returned, i.e. don't return -1 with timers pending.
5274
5275 * process.c: Remove extern declaration of timer_check.
5276
5277 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
5278 even if timer_check returned -1.
5279
af98fc7f
SM
5280 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
5281 xg_dialog_data.
e90292a9
JD
5282 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
5283 the event loop.
5284 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
5285 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
5286 Destroy the dialog after xg_dialog_run.
5287
045b83c0
SM
52882009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
5289
5290 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
5291
1fb99a3a
JD
52922009-11-10 Jan Djärv <jan.h.d@swipnet.se>
5293
5294 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
5295
04e452cb
JB
52962009-11-09 Juanma Barranquero <lekktu@gmail.com>
5297
5298 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
5299
ef7417fd
SM
53002009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
5301
5302 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
5303 w32menu.c, and nsmenu.m.
5304 Simplify the obsolete case where position is nil.
5305 (cleanup_popup_menu): New function, moved from nsmenu.m.
5306 (struct skp): Remove slot `notreal'.
5307 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
5308 adjust callers.
5309 (single_menu_item): Adjust call to parse_menu_item.
5310 (syms_of_menu): Defsubr x-popup-menu.
5311 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
5312 (keymap_panes): Don't export any more.
5313 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
5314 (xmenu_show): Declare.
5315 * keyboard.c (parse_menu_item): Remove arg `notreal'.
5316 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
5317 * keyboard.h (parse_menu_item): Update declaration.
5318 * xmenu.c (Fx_popup_menu): Remove.
5319 (syms_of_xmenu): Don't defsubr x-popup-menu.
5320 * w32menu.c (Fx_popup_menu): Remove.
5321 (syms_of_w32menu): Don't defsubr x-popup-menu.
5322 * nsmenu.m (cleanup_popup_menu): Remove.
5323 (ns_menu_show): Rename from ns_popup_menu and remove all the code
5324 moved to menu.c's Fx_popup_menu.
5325 (Fx_popup_menu): Remove.
5326 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
5327 menu_items (it's done in menu.c already).
5328
424d6179
SM
53292009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
5330
5331 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
5332 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
5333
c0df13a6 53342009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
5335
5336 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 5337 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
5338 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
5339 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
5340
2de9f71c
SM
53412009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5342
5343 Let integers use up 2 tags to give them one extra bit and thus double
5344 their range.
5345 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
5346 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
5347 New macros.
5348 (enum Lisp_Type): Use them. Give explicit values.
5349 (Lisp_Type_Limit): Remove.
5350 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
5351 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
5352 Pay attention to USE_2_TAGS_FOR_INTS.
5353 (INTEGERP): Use LISP_INT_TAG_P.
5354 * fns.c (internal_equal): Simplify the default case.
5355 (sxhash): Use case_Lisp_Int.
5356 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
5357 any more.
5358 (Ftype_of): Use case_Lisp_Int.
5359 (store_symval_forwarding): Take into account the fact that Ints can
5360 now have more than one tag.
5361 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
5362 buffer_slot_type_mismatch):
5363 * xfaces.c (face_attr_equal_p):
5364 * print.c (print_object):
5365 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
5366 Use case_Lisp_Int.
5367
323637a2
EZ
53682009-11-06 Eli Zaretskii <eliz@gnu.org>
5369
7ac65b38
EZ
5370 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
5371
323637a2
EZ
5372 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
5373 warning.
5374
e511451f
JD
53752009-11-06 Jan Djärv <jan.h.d@swipnet.se>
5376
5377 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
5378
5379 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
5380
5381 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
5382 ButtonPressRelease and MotionNotify (bug#4870).
5383
5e2327cf
DN
53842009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
5385
5adc433e
DN
5386 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
5387
d67b4f80
DN
5388 * xterm.c (syms_of_xterm):
5389 * xselect.c (syms_of_xselect):
5390 * xmenu.c (syms_of_xmenu):
5391 * xfns.c (syms_of_xfns):
5392 * xfaces.c (syms_of_xfaces):
5393 * xdisp.c (syms_of_xdisp):
5394 * window.c (syms_of_window):
5395 * w32fns.c (syms_of_w32fns):
5396 * undo.c (syms_of_undo):
5397 * textprop.c (syms_of_textprop):
5398 * terminal.c (syms_of_terminal):
5399 * syntax.c (syms_of_syntax):
5400 * sound.c (syms_of_sound):
5401 * search.c (syms_of_search):
5402 * print.c (syms_of_print):
5403 * minibuf.c (syms_of_minibuf):
5404 * macros.c (syms_of_macros):
5405 * keymap.c (syms_of_keymap, initial_define_key)
5406 (initial_define_lispy_key):
5407 * keyboard.c (syms_of_keyboard):
5408 * insdel.c (syms_of_insdel):
5409 * image.c (syms_of_image):
5410 * fringe.c (syms_of_fringe):
5411 * frame.c (syms_of_frame):
5412 * fontset.c (syms_of_fontset):
5413 * fns.c (syms_of_fns):
5414 * fns.c (syms_of_fns):
5415 * fileio.c (syms_of_fileio):
5416 * fileio.c (syms_of_fileio):
5417 * eval.c (syms_of_eval):
5418 * doc.c (syms_of_doc):
5419 * dispnew.c (syms_of_display):
5420 * dired.c (syms_of_dired):
5421 * dbusbind.c (syms_of_dbusbind):
5422 * data.c (syms_of_data):
5423 * composite.c (syms_of_composite):
5424 * coding.c (syms_of_coding):
5425 * cmds.c (syms_of_cmds):
5426 * charset.c (define_charset_internal, syms_of_character):
5427 * ccl.c (syms_of_ccl):
5428 * category.c (syms_of_category, init_category_once):
5429 * casetab.c (syms_of_casetab):
5430 * casefiddle.c (syms_of_casefiddle):
5431 * callint.c (syms_of_callint):
5432 * bytecode.c (syms_of_bytecode):
5433 * buffer.c (keys_of_buffer, syms_of_buffer):
5434 * alloc.c (syms_of_alloc):
5435 * process.c (syms_of_process, init_process):
5436 * lread.c (syms_of_lread, init_obarray):
5437 * font.c (build_style_table):
5438 * emacs.c (syms_of_emacs, main): Replace calls to intern with
5439 intern_c_string, calls to make_pure_string with
5440 make_pure_c_string. Use pure_cons instead of Fcons.
5441
5e2327cf
DN
5442 * process.c (socket_options): Make it const.
5443 (set_socket_option, init_process): Use a const pointer.
5444
5445 * lread.c (intern_c_string): New function.
5446 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5447 (defvar_int): Uset it. Make the name const char*.
5448
5449 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
5450 (defvar_int): Update prototypes.
5451 (DEFUN, EXFUN): Support for prototypes is now required.
5452 (intern_c_string): New prototype.
5453 (struct Lisp_Subr): Make symbol_name constant.
5454
5455 * font.c (struct table_entry): Remove unused member. Make NAMES
5456 constant.
5457 (weight_table, slant_table, width_table): Make constant.
5458
5459 * emacs.c (struct standard_args): Make name and longname constant.
5460
5461 * character.h (DEFSYM): Use intern_c_string.
5462
a56eaaef
DN
54632009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
5464
5465 * alloc.c (make_pure_c_string): New function.
5466
5467 * eval.c (Fautoload): Purecopy all arguments.
5468
f6a07420
KH
54692009-11-05 Kenichi Handa <handa@m17n.org>
5470
5471 * fileio.c (Finsert_file_contents): Be sure set coding-system of
5472 the buffer in case of replace.
5473
5d28d4b1
DN
54742009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
5475
5476 * puresize.h (BASE_PURESIZE): Increase to 1620000.
5477
b349d111
SM
54782009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
5479
d528b1ce
SM
5480 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
5481 when applicable (bug#4851).
5482
b349d111
SM
5483 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
5484 (P_): Support for prototypes is now required.
5485
c38eb027
CY
54862009-10-31 Chong Yidong <cyd@stupidchicken.com>
5487
5488 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
5489 (Bug#4827).
5490
0405f8d9
EZ
54912009-10-30 Eli Zaretskii <eliz@gnu.org>
5492
d528b1ce 5493 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 5494
ca0a881a
DN
54952009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
5496
5497 * puresize.h (BASE_PURESIZE): Increase to 1470000.
5498
d528b1ce
SM
5499 * lread.c (Fload): Purecopy the file name when building
5500 Vpreloaded_file_list.
ca0a881a 5501
47e0e0e4
JR
55022009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
5503
5504 * w32fns.c (syms_of_w32fns): Change default value of
5505 w32-scroll-lock-modifier to nil. (Bug#2827)
5506
057bce6f
JB
55072009-10-26 Juanma Barranquero <lekktu@gmail.com>
5508
782a943e 5509 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 5510
242bc74c
AS
55112009-10-26 Andreas Schwab <schwab@redhat.com>
5512
5513 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
5514
522d013a
JB
55152009-10-26 Juanma Barranquero <lekktu@gmail.com>
5516
5517 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
5518 For delta < 0, skip check that only makes sense when the mini-window
5519 is going to be enlarged. (Bug#4534)
5520
18060980
CY
55212009-10-25 Chong Yidong <cyd@stupidchicken.com>
5522
5523 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
5524 string in menu maps (Bug#4471).
5525
fec8f0fe
CY
55262009-10-24 Chong Yidong <cyd@stupidchicken.com>
5527
5528 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
5529 FRAME_NS_VIEW on terminal frames (Bug#4765).
5530
10d66ec0
AS
55312009-10-24 Andreas Schwab <schwab@linux-m68k.org>
5532
1cae01f7
AS
5533 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
5534 DBUS_TYPE_UINTnn separately to get proper sign extension.
5535
58a12889
AS
5536 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
5537 can properly handle unsigned types.
d528b1ce 5538 (make_uid, make_gid): Remove.
58a12889 5539
987c9327
AS
5540 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
5541 types again.
5542
522d013a 5543 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
5544 (system_process_attributes): Likewise.
5545
905a9ed3
DN
55462009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
5547
5548 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
5549
5550 * eval.c (Fautoload): Purecopy the filename. Simplify.
5551
5552 * category.c (Fdefine_category): Purecopy docstring.
5553
a599b3e8
AS
55542009-10-23 Andreas Schwab <schwab@linux-m68k.org>
5555
7b792fc9
AS
5556 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
5557
a599b3e8
AS
5558 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
5559
b35ac83e
CY
55602009-10-23 Chong Yidong <cyd@stupidchicken.com>
5561
5562 * window.c (Fwindow_edges, Fwindow_pixel_edges)
5563 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
5564 (Bug#4775).
5565
e8903e00
SM
55662009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
5567
5568 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
5569 (init_fileio_once):
5570 * lisp.h (init_fileio_once): Remove.
5571 * emacs.c (main): Don't call init_fileio_once.
5572
8f43cbf3
DN
55732009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
5574
5575 * puresize.h (BASE_PURESIZE): Increase to 1430000.
5576
26898943
AS
55772009-10-21 Andreas Schwab <schwab@linux-m68k.org>
5578
5579 * doprnt.c (doprnt): Fix overflow check.
5580
5c646d5a
JD
55812009-10-21 Jan Djärv <jan.h.d@swipnet.se>
5582
3132a7ea
JD
5583 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
5584
5c646d5a
JD
5585 * xterm.h (x_wait_for_event): Declare it.
5586
5587 * xterm.c (pending_event_wait): New variable.
5588 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
5589 see pending_event_wait.eventtype.
5590 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
5591 (x_new_font): Call change_frame_size with new rows/columns before we
5592 try to resize the frame.
5c646d5a 5593 (x_wait_for_event): New function.
d528b1ce
SM
5594 (x_set_window_size_1): Don't change gravity unless change_gravity
5595 is set.
5c646d5a
JD
5596 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
5597 don't change frame size, instead wait for the ConfigureNotify.
5598 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
5599 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
5600 (x_initialize): Initialize pending_event_wait.
5601
5602 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
5603 size.
5604
5605 * widget.c (EmacsFrameSetValues): Add comment.
5606 (EmacsFrameSetCharSize): Just call x_set_window_size.
5607
5608 * gtkutil.c (xg_frame_set_char_size): Flush events and call
5609 x_wait_for_event.
d528b1ce 5610 (flush_and_sync): Remove again.
5c646d5a
JD
5611 (xg_get_font_name): Suggest monospace if no previous font is known.
5612
e9c1637d
SM
56132009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
5614
5615 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 5616 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 5617
5a72cccb
YM
56182009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5619
5620 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
5621 processing pending events when event is filtered for input method.
ab04798f 5622 (Bug#3681)
5a72cccb 5623
2629aa37
JB
56242009-10-20 Juanma Barranquero <lekktu@gmail.com>
5625
5626 * fns.c: Add #endif accidentally removed in previous change.
5627
c3417a74
DN
56282009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5629
5630 * fns.c: Remove code for unsupported system: MAC_OS.
5631 * image.c: Likewise. Include setjmp.h.
5632
9685cef2
JD
56332009-10-19 Jan Djärv <jan.h.d@swipnet.se>
5634
5635 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
5636 pixel -1 (bug #4742).
5637
d7306fe6
DN
56382009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
5639
019d2c4c
DN
5640 * process.c (create_pty): Remove conditionals for no longer
5641 supported systems: UNIPLUS and RTU.
5642
ee6bacd4
DN
5643 * xterm.c:
5644 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
5645
d7306fe6
DN
5646 * alloc.c: Do not define struct catchtag.
5647 * eval.c: Move struct catchtag definition ...
5648 * lisp.h: ... here.
5649
5650 * image.c: Move png.h #include earlier to avoid warnings.
5651
5652 * xterm.c:
5653 * xsmfns.c:
5654 * xselect.c:
5655 * xrdb.c:
5656 * xmenu.c:
5657 * xftfont.c:
5658 * xfont.c:
5659 * xfns.c:
5660 * xfaces.c:
5661 * xdisp.c:
5662 * window.c:
5663 * widget.c:
5664 * w32xfns.c:
5665 * w32uniscribe.c:
5666 * w32term.c:
5667 * w32select.c:
5668 * w32reg.c:
5669 * w32proc.c:
5670 * w32menu.c:
5671 * w32inevt.c:
5672 * w32heap.c:
5673 * w32font.c:
5674 * w32fns.c:
5675 * w32console.c:
5676 * w32.c:
5677 * w16select.c:
5678 * vm-limit.c:
5679 * unexsol.c:
5680 * unexec.c:
5681 * unexcw.c:
5682 * unexaix.c:
5683 * undo.c:
5684 * tparam.c:
5685 * textprop.c:
5686 * terminfo.c:
5687 * terminal.c:
5688 * termcap.c:
5689 * term.c:
5690 * syntax.c:
5691 * sound.c:
5692 * sheap.c:
5693 * search.c:
5694 * scroll.c:
5695 * region-cache.c:
5696 * regex.c:
5697 * ralloc.c:
5698 * process.c:
5699 * print.c:
b024548b
DN
5700 * nsterm.m:
5701 * nsselect.m:
5702 * nsmenu.m:
5703 * nsimage.m:
5704 * nsfont.m:
5705 * nsfns.m:
d7306fe6
DN
5706 * msdos.c:
5707 * minibuf.c:
5708 * menu.c:
5709 * marker.c:
5710 * macros.c:
5711 * keymap.c:
5712 * keyboard.c:
5713 * intervals.c:
5714 * insdel.c:
5715 * indent.c:
5716 * gtkutil.c:
5717 * ftxfont.c:
5718 * ftfont.c:
5719 * fringe.c:
5720 * frame.c:
5721 * fontset.c:
5722 * font.c:
5723 * fns.c:
5724 * floatfns.c:
5725 * filelock.c:
5726 * fileio.c:
5727 * emacs.c:
5728 * editfns.c:
5729 * dosfns.c:
5730 * doprnt.c:
5731 * doc.c:
5732 * dispnew.c:
5733 * dired.c:
5734 * dbusbind.c:
5735 * data.c:
5736 * composite.c:
5737 * coding.c:
5738 * cmds.c:
5739 * cm.c:
5740 * chartab.c:
5741 * charset.c:
5742 * character.c:
5743 * ccl.c:
5744 * category.c:
5745 * casetab.c:
5746 * casefiddle.c:
5747 * callproc.c:
5748 * callint.c:
5749 * bytecode.c:
5750 * buffer.c:
5751 * atimer.c: Include setjmp.h. (Bug#4643)
5752
fd5f21e6
SM
57532009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
5754
4c0354d7
SM
5755 Remove leftover table unibyte_to_multibyte_table.
5756 * character.c (unibyte_to_multibyte_table): Remove.
5757 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
5758 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
5759 * character.h (UNIBYTE_TO_CHAR): New macro.
5760 (MAKE_CHAR_MULTIBYTE): Use it.
5761 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
5762 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
5763 (message_dolog, set_message_1):
5764 * search.c (Freplace_match):
5765 * editfns.c (Fcompare_buffer_substrings):
5766 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
5767 (concat):
5768 * insdel.c (copy_text, count_size_as_multibyte):
5769 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
5770 * term.c (produce_glyphs):
5771 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
5772 * regex.c (RE_CHAR_TO_MULTIBYTE):
5773 * cmds.c (internal_self_insert):
5774 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
5775
fd5f21e6
SM
5776 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
5777
4418646e
DN
57782009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
5779
5780 * puresize.h (BASE_PURESIZE): Increase to 1310000.
5781
35f5c1d2
JB
57822009-10-16 Juanma Barranquero <lekktu@gmail.com>
5783
5784 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
5785
a0cd8f6b
AR
57862009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
5787
5788 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
5789 still needed under Tiger.
5790
5791 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
5792
5793 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
5794 __Apple__.
5795
5796 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
5797
01a8d3fa
KH
57982009-10-15 Kenichi Handa <handa@m17n.org>
5799
5800 * print.c (print_object): Escape a symbol like "2E10" too.
5801
bf6c75c9 58022009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
5803
5804 Cleanups and changes for 64-bit compile under Snow Leopard.
5805 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
5806
5807 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
5808
c5959062 5809 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
5810 (ns_findfonts, nsfont_list_family): Use long format in printf, and
5811 cast argument.
5812 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 5813 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
5814
5815 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
5816
5817 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
5818 where appropriate.
5819
5820 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
5821 where appropriate.
6e4780c5
JB
5822 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
5823 Use stringWithUTF8String.
bf6c75c9
AR
5824 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
5825
6e4780c5
JB
5826 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
5827 Add formal protocol mention to inheritance.
bf6c75c9
AR
5828 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
5829
6e4780c5
JB
5830 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
5831 Fix printf format.
bf6c75c9
AR
5832 (ns_query_color): Use CGFloat where appropriate.
5833 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 5834 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
5835 argument.
5836
3d87f118
AR
5837 * config.in (NS_HAVE_NSINTEGER): Drop.
5838
a95c8102
AR
5839 * dbusbind.c (dbus-method-return-internal)
5840 (dbus-method-error-internal): Use long format in printf, and cast
5841 argument.
5842
5843 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
5844 in printf, and cast argument.
5845
6873acca 5846 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
5847 cast argument.
5848
9ec6f100
GM
58492009-10-11 Glenn Morris <rgm@gnu.org>
5850
5851 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
5852
5be883cd
JD
58532009-10-08 Jan Djärv <jan.h.d@swipnet.se>
5854
5855 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
5856 menu bar with a small width so it doesn't enlarge the frame.
5857
d7a39b51
JB
58582009-10-08 Juanma Barranquero <lekktu@gmail.com>
5859
5860 * fontset.c (Fset_fontset_font): Fix typos in error messages.
5861
0c2b6f8e
GM
58622009-10-06 Glenn Morris <rgm@gnu.org>
5863
5864 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
5865 SOME_MACHINE_LISP (this enters indirectly via DOC).
5866
e02131a2
EZ
58672009-10-05 Eli Zaretskii <eliz@gnu.org>
5868
5869 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
5870
b4744254
EZ
58712009-10-04 Eli Zaretskii <eliz@gnu.org>
5872
5873 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
5874 Doc fix.
5875
dbf64827
JB
58762009-10-03 Martin Rudalics <rudalics@gmx.at>
5877
5878 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
5879
e9a0aef8
MA
58802009-10-02 Michael Albinus <michael.albinus@gmx.de>
5881
d528b1ce 5882 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
5883 used anymore outside fileio.c.
5884
5885 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
5886
64eb2b56
JB
58872009-10-01 Juanma Barranquero <lekktu@gmail.com>
5888
5889 * lisp.h (Qdelete_directory_internal):
5890 Declare, instead of Qdelete_directory.
5891
5892 * w32fns.c (Fsystem_move_file_to_trash): Use it.
5893
9d28c33e
SM
58942009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
5895
5896 * eval.c (Fcalled_interactively_p): Add `kind' argument.
5897
9d8f3bd9
MA
58982009-10-01 Michael Albinus <michael.albinus@gmx.de>
5899
9d28c33e 5900 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
5901 Fdelete_directory. It is not a command anymore. It has no file
5902 name handler.
5903
9694740b
SM
59042009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
5905
5906 * xdisp.c (get_next_display_element): Use an enum in last change.
5907
748e162f
KH
59082009-09-28 Kenichi Handa <handa@m17n.org>
5909
9694740b 5910 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
5911 unibyte_display_via_language_environment in handling
5912 Vnobreak_char_display.
5913
17efd58d
AR
59142009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5915
5916 * nsterm.h (ns_app_name): New extern variable.
5917
5918 * nsterm.m (ns_app_name): New variable.
5919 (ns_term_init): Set and use it.
5920 (ns_term_shutdown): Use it.
5921
5922 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
5923 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
5924
5925 * nsfns.m (ns_set_name_iconic, ns_set_name)
5926 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
5927 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
5928
9694740b
SM
5929 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
5930 Remove double-casting in client_data comparison.
31c2d412 5931
3208cb35
YM
59322009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5933
5934 * keyboard.c (make_lispy_event): Remember last wheel direction.
5935 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
5936
b7d552d6
GM
59372009-09-26 Glenn Morris <rgm@gnu.org>
5938
5939 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
5940 internal.elc. Add term/pc-win.elc.
5941 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
5942 term/x-win.elc.
5943 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
5944 term/w32-win.elc.
5945 (NS_SUPPORT): New.
5946 (lisp): Add NS_SUPPORT.
5947 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
5948
4ff670a8
DR
59492009-09-25 David Reitter <david.reitter@gmail.com>
5950
5951 * nsmenu.m (EmacsMenu-clear): Recognize application menu
5952 on Mac OS X 10.6+ (bug#4513).
5953
feabfb6c
JB
59542009-09-24 Juanma Barranquero <lekktu@gmail.com>
5955
5956 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
5957 some parts of Emacs code (like font selection) don't grok them.
5958 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 5959
de59072a
AS
59602009-09-24 Andreas Schwab <schwab@redhat.com>
5961
5962 * coding.c (decode_coding_iso_2022): Fix operator precedence.
5963
a489517b
JB
59642009-09-24 Juanma Barranquero <lekktu@gmail.com>
5965
5966 * dired.c (Fdirectory_files): Fix typo in docstring.
5967
0592970c
AR
59682009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5969
5970 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
5971 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
5972 (EmacsScroller-setPosition:portion:whole:): Remove -display call
5973 under GNUstep.
5974 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
5975
5976 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
5977 glyph advancement.
5978
48e8a88b
AR
59792009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5980
5981 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 5982 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
5983
5984 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
5985 deleted (bug #4492).
5986
e14f0a78
AR
5987 * nsfont.m (Vns_reg_to_script): New lisp variable.
5988 (syms_of_nsfont): Declare it.
5989 (ns_registry_to_script): New function.
5990 (ns_get_req_script): Call it.
5991 (ns_findfonts): Don't give up on non-unicode registry.
5992
5993 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
5994
5b650faa
SM
59952009-09-20 Tom Tromey <tromey@redhat.com>
5996
5997 * eval.c (find_handler_clause): Make stack-trace-on-error work in
5998 batch mode (bug#4228).
5999
a489517b 60002009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
6001
6002 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 6003 carefully. (Bug #4339)
0bae4e09 6004
fcfe06f3
CY
60052009-09-18 Chong Yidong <cyd@stupidchicken.com>
6006
d798ba87 6007 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 6008
31642728
AR
60092009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6010
6011 * emacs.c (inhibit_x_resources): Update doc string for NS.
6012 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 6013 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
6014
6015 * nsterm.h (ns_no_defaults): Remove.
6016
6017 * nsterm.m (ns_no_defaults): Remove.
6018 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
6019 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
6020 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
6021 don't update the NSWindow itself.
6022 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 6023 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
6024
6025 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
6026 ns_use_qd_smoothing.
6027
6028 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
6029 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 6030 (x-close-connection): Drop PSFlush() under OS X.
a489517b 6031 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 6032
8686ac71
JB
60332009-09-17 Juanma Barranquero <lekktu@gmail.com>
6034
6035 * emacs.c (inhibit_x_resources): New variable.
6036 (main) [HAVE_NS]: Don't process --quick command line option.
6037 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
6038
6039 * lisp.h (inhibit_x_resources): Declare it extern.
6040
6041 * w32reg.c (x_get_string_resource):
6042 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
6043
e227ba05
EZ
60442009-09-17 Eli Zaretskii <eliz@gnu.org>
6045
362654a6
JB
6046 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
6047 Add lisp/term/internal.elc.
e227ba05 6048
742d40e8
SM
60492009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6050
6051 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
6052 (bug#4461).
6053
005bd5a2
DN
60542009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
6055
6056 * puresize.h (BASE_PURESIZE): Increase to 1290000.
6057
6058 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
6059 (OBJECTS_MACHINE): Remove, unused.
6060
f9af9719
SM
60612009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
6062
6063 * frame.c (x_get_resource_string): Remove unused.
6064
0307c7d2
JD
60652009-09-15 Jan Djärv <jan.h.d@swipnet.se>
6066
6067 * xterm.c (x_new_font): Call change_frame_size before calling
6068 x_set_window_size, in case frame size won't change.
6069
6070 * frame.c (x_set_font): Remove dead code.
6071
428b13d6
SM
60722009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
6073
6074 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
6075
5766c380
SM
60762009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6077
6078 * lread.c (Fload): Don't output a message after loading an obsolete
6079 package any more (done in Lisp now).
6080
2fd0161b
CY
60812009-09-12 Chong Yidong <cyd@stupidchicken.com>
6082
6083 * fns.c (syms_of_fns): Doc fix (Bug#4227).
6084
bc5e75b6
SM
60852009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6086
6087 * keymap.c (Fwhere_is_internal): Use nconc2.
6088
c31c985e
AM
60892009-09-11 Alan Mackenzie <acm@muc.de>
6090
6091 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
6092 batch mode.
6093
78012bd2
AS
60942009-09-11 Andreas Schwab <schwab@linux-m68k.org>
6095
6096 * xdisp.c (display_mode_element): Detect cycles.
6097
9d889332
SM
60982009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6099
6100 * keymap.c (where_is_internal): Don't erroneously return nil right after
6101 filling the cache.
6102 (where_is_internal_1): Fix up typo.
6103
7ab5d780
GM
61042009-09-11 Glenn Morris <rgm@gnu.org>
6105
6106 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
6107 share a common doc-string.
6108
5238a749
SM
61092009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
6110
66d77eda
SM
6111 * keymap.c (get_keymap): Return the actual keymap symbol rather than
6112 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
6113
5238a749
SM
6114 * keymap.c (QCadvertised_binding): New constant.
6115 (syms_of_keymap): Initialize it.
6116 (Fwhere_is_internal): Try and use bindings from :advertised-binding
6117 if applicable.
6118
19f48442
SM
61192009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
6120
50d4ba39
SM
6121 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
6122 (parse_menu_item): Streamline since bindings are recomputed all the
6123 time anyway. Don't bother checking Vdefine_key_rebound_commands any
6124 more and don't support lmenu's menu-alias any more either.
6125
a88a5372
SM
6126 * keymap.c (where_is_internal_data): Make noindirect a boolean.
6127 (where_is_internal): Strip it down to only traverse the keymaps.
6128 Move the cache handling from Fwhere_is_internal to here.
6129 (Fwhere_is_internal): Move the handling of remapping and the choice of
6130 the best binding from where_is_internal to here.
6131 Unify the cached/noncached paths, so remapping is also handled
6132 correctly when the cache is used, and so the cache can be used to
6133 speed up remap-handling when applicable.
6134 Give preference to non-remapped bindings.
6135 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
6136 non-remapped bindings.
6137 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
6138 command remapping.
6139
19f48442
SM
6140 * xdisp.c (display_mode_element): Move list length limit from 50 to
6141 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
6142
599498c3 61432009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
6144
6145 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
6146
f9b7b5ac
SM
61472009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
6148
a53af587
JB
6149 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
6150 (Bug#4334)
6151
f9b7b5ac
SM
6152 * keymap.c (where_is_internal): Filter out shadowed remappings.
6153 Assume that where_is_internal returns unshadowed bindings to simplify
6154 the code and get rid of the gotos. Use ASIZE.
6155
04f4b72d
JD
61562009-09-04 Jan Djärv <jan.h.d@swipnet.se>
6157
4da146f2
JD
6158 * xterm.c (x_focus_changed): If we get a focusout and pointer
6159 is invisible, make it visible.
6160
04f4b72d
JD
6161 * xterm.h: Remove condition for declaration of
6162 x_*_window_to_frame.
6163
7cef7ce3
SM
61642009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
6165
6166 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
6167 initial terminal as well.
6168
a54fa5b7
JD
61692009-09-02 Jan Djärv <jan.h.d@swipnet.se>
6170
6171 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 6172 x_menubar_window_to_frame.
a54fa5b7 6173
50426a04 6174 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
6175 (XTmouse_position): Do not return valid positions
6176 for clicks in the menubar and the toolbar for Gtk+.
6177
6178 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
6179 if the widget for the event has the same top level as a frame,
6180 return the frame.
6181 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
6182 internal windows, bug #4122.
6183 (x_non_menubar_window_to_frame): Remove.
6184
5a021dd0
GM
61852009-09-02 Glenn Morris <rgm@gnu.org>
6186
6187 * buffer.c (default-major-mode): Move most of the doc from here...
6188 (major-mode): ... to here.
6189
548fe2f3
NR
61902009-08-30 Nick Roberts <nickrob@snap.net.nz>
6191
6192 * process.c (wait_reading_process_output): Keep the descriptor
6193 when pty is used by a non-child process, e.g., in I/O buffer of
6194 GDB this allows inferior to be restarted.
6195
e0840eef
EZ
61962009-08-29 Eli Zaretskii <eliz@gnu.org>
6197
6198 * xdisp.c (redisplay_internal): Remove redundant test and collapse
6199 both branches into one.
6200
82e98df4
SM
62012009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
6202
6203 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
6204 (main): Use enable-multibyte-characters rather than
6205 default-enable-multibyte-characters. Output a warning message when
6206 running a unibyte session.
6207
890617cb
YM
62082009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6209
6210 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
6211 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
6212 (copy_data_segment): Also copy __program_vars section.
6213 (copy_dyld_info) [LC_DYLD_INFO]: New function.
6214 (dump_it) [LC_DYLD_INFO]: Use it.
6215
6216 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
6217
e7adeadc
EZ
62182009-08-28 Eli Zaretskii <eliz@gnu.org>
6219
6220 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
6221 $(SRC)/buildobj.h.
6222 (buildobj.h): Renamed from $(SRC)/buildobj.h.
6223 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
6224 $(SRC)/buildobj.h.
6225 (clean): Add buildobj.h.
6226
3ed8bbdc
TZ
62272009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
6228
6229 * print.c (print_object): Set escapeflag to 1 when printing
6230 hashtable keys and values.
6231
155a6764
SM
62322009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
6233
6234 * lread.c (read_integer): Use doubles (and potentially return a float
6235 number) as we do in string-to-number.
6236 (read1): Use strtol to read integers, signal errors on strtol's
6237 overflow and use floats if strtol's output is too large for
6238 Elisp integers.
6239
877610de
EZ
62402009-08-27 Eli Zaretskii <eliz@gnu.org>
6241
6242 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
6243 (make-buildobj-SH): Fix last change.
6244 (SRC): Move to before where it's first used.
6245
ef73e7be
KH
62462009-08-27 Kenichi Handa <handa@m17n.org>
6247
550c8289
KH
6248 * process.c (send_process): Use encode_coding_object instead of
6249 encode_coding_string to perform eol-conversion even if the string
6250 is unibyte.
6251
60afa08d
KH
6252 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
6253 character.
6254
ef73e7be 6255 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 6256 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 6257
7b3a82d7
DN
62582009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
6259
5654bf63
DN
6260 * callproc.c (Fcall_process): Remove always true #if.
6261
7b3a82d7
DN
6262 * lisp.h: Replace #if 0 code for checking with text pointing to
6263 the --enable-checking configure flag.
6264
6265 * emacs.c (main): Mention the --enable-profiling configure flag
6266 instead of using CFLAGS.
6267
878bde49
KR
62682009-08-26 Ken Raeburn <raeburn@raeburn.org>
6269
6270 * Makefile.in (buildobj.h): New target.
6271 (doc.o): Depend on it.
6272 (temacs${EXEEXT}): Don't generate buildobj.lst.
6273 (mostlyclean): Delete buildobj.h, not buildobj.lst.
6274 * makefile.w32-in ($(SRC)/buildobj.h): New target.
6275 ($(BLD)/doc.$(O)): Depend on it.
6276 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
6277 provided by Eli Zaretskii.)
6278 ($(TEMACS)): Don't generate buildobj.lst.
6279 * doc.c: Include buildobj.h.
6280 (buildobj): New static variable.
6281 (Fsnarf_documentation): Use it, instead of opening and reading
6282 buildobj.lst.
6283
1574224c
MA
62842009-08-25 Michael Albinus <michael.albinus@gmx.de>
6285
6286 * dbusbind.c (Fdbus_call_method)
6287 (Fdbus_call_method_asynchronously): Use English numeric format for
6288 timeout values in doc string.
6289
d9da2f45
KH
62902009-08-25 Kenichi Handa <handa@m17n.org>
6291
ef73e7be
KH
6292 * alloc.c (mark_char_table): New function.
6293 (mark_object): Use mark_char_table for a char-table.
6294
d9da2f45
KH
6295 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
6296 (CHAR_TABLE_REF): Use it.
6297
c8edcc01
KR
62982009-08-23 Ken Raeburn <raeburn@raeburn.org>
6299
6300 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
6301 before invoking the newly build emacs to check for load-path
6302 shadowing.
6303
7763401b
GM
63042009-08-22 Glenn Morris <rgm@gnu.org>
6305
6306 * Makefile.in (bootstrap_exe): New variable.
6307 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
6308 Use ${bootstrap_exe}.
6309
729eadda
EZ
63102009-08-22 Eli Zaretskii <eliz@gnu.org>
6311
6312 * coding.h (encode_coding_string): Don't encode unibyte strings.
6313 (Bug#4047)
6314
eb4c6ace
MA
63152009-08-22 Michael Albinus <michael.albinus@gmx.de>
6316
6317 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
6318
6319 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
6320 intended as hotfix only.
6321 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
6322
36e34d1b
AR
63232009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6324
6325 * nsterm.m (ns_get_color): Update documentation properly for last
6326 change, and clean up loose ends in the code left by it. Fix
6327 longstanding bug with 16-bit hex parsing, and add support for
6328 yet another X11 format (rgb:r/g/b) for compatibility.
6329 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
6330 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
6331
f983eb8a
SM
63322009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
6333
6334 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
6335
3f56d3c6
MA
63362009-08-20 Michael Albinus <michael.albinus@gmx.de>
6337
6338 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
6339 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
6340 (xd_initialize, xd_pending_messages): Check, whether
6341 $DBUS_SESSION_BUS_ADDRESS is set.
6342
fb641d68
YM
63432009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6344
6345 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
6346
6347 * nsterm.m (ns_get_color): Remove incompatible color formats again.
6348
cf59a374
GM
63492009-08-20 Glenn Morris <rgm@gnu.org>
6350
6351 * emacs.c (system-type): Doc fix.
6352
1373f3be
SM
63532009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
6354
6355 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
6356 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
6357
058ed861
MA
63582009-08-18 Michael Albinus <michael.albinus@gmx.de>
6359
1373f3be
SM
6360 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
6361 New functions.
058ed861
MA
6362 (xd_initialize): Revert change from 2009-08-16.
6363
563a866e 63642009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
6365
6366 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 6367 font-group vector, return nil.
5fc05db0 6368
e42bdf01
CY
63692009-08-17 Chong Yidong <cyd@stupidchicken.com>
6370
6371 * process.c (status_notify): Don't perform redisplay.
6372 (Fdelete_process, list_processes_1, process_send_signal):
6373 Expliticly perform redisplay.
6374 (wait_reading_process_output): Always check process status, but
6375 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
6376
4230ab74
KR
63772009-08-17 Ken Raeburn <raeburn@raeburn.org>
6378
1373f3be 6379 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
6380 (XFLOAT_INIT): New macro for storing a float value.
6381 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
6382 * fns.c (sxhash): Copy out the value of a float in order to
6383 examine its bytes.
6384 * dbusbind.c (xd_append_arg): Likewise.
6385
4230ab74
KR
6386 * emacs.c (main): Don't call syms_of_data twice.
6387
a0645cdd
MA
63882009-08-16 Michael Albinus <michael.albinus@gmx.de>
6389
6390 * dbusbind.c (xd_initialize): Add connection file descriptor to
6391 input_wait_mask, in order to let select() detect, whether a new
6392 message has been arrived.
ca4f31ea 6393 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 6394
485db0ba
MA
63952009-08-15 Michael Albinus <michael.albinus@gmx.de>
6396
1373f3be
SM
6397 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
6398 New functions.
485db0ba
MA
6399
6400 * lisp.h (xd_pending_messages): Declare.
6401
6402 * keyboard.c (readable_events): Call xd_pending_messages.
6403
b5b98ff4
CY
64042009-08-15 Chong Yidong <cyd@stupidchicken.com>
6405
1373f3be 6406 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 6407
f8354c6e
CY
6408 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
6409
b5b98ff4
CY
6410 * buffer.c (set_buffer_internal_1)
6411 (swap_out_buffer_local_variables): Check for unbound local
6412 variables (Bug#4138).
6413
8b9fc636
EZ
64142009-08-14 Eli Zaretskii <eliz@gnu.org>
6415
6416 * process.c (create_pty): Fix last change.
6417
ce959360
CY
64182009-08-13 Chong Yidong <cyd@stupidchicken.com>
6419
6420 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
6421 (xbm_load_image): Caller changed.
64b807c9 6422 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 6423
c7baf7e9
NR
64242009-08-13 Nick Roberts <nickrob@snap.net.nz>
6425
6426 * process.c (create_pty): New function.
6427 (Fstart_process): Use it to allow Emacs to just associate a pty
6428 with the buffer. See associated change in gdb-mi.el.
6429 (list_processes_1): Deal with no program name.
6430 (start_process_unwind): Use pid == -2 to mean no process.
6431
1ac9108a
SM
64322009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
6433
6434 * cmds.c (nonundocount): New global variable.
6435 (keys_of_cmds): Initialize it.
6436 (Fself_insert_command): Use it to combine upto 20 sequential chars
6437 into a single undo entry, just like the Qself_insert_command code in
6438 keyboard.c does.
6439 Call frame_make_pointer_invisible, also like the Qself_insert_command
6440 code in keyboard.c does.
6441 * keyboard.c (command_loop_1): Use the new global nonundocount rather
6442 than its own local replacement for it.
6443
e267324c
KR
64442009-08-10 Ken Raeburn <raeburn@raeburn.org>
6445
1ac9108a 6446 * fns.c (concat): Don't re-set string length to its current value.
77437343 6447
1ac9108a
SM
6448 * coding.h (decode_coding_string, encode_coding_string):
6449 Use SBYTES macro.
f0bed503 6450
1ac9108a 6451 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
6452 (doprnt): Merge with doprnt1, discarding lispstrings code.
6453 * lisp.h (doprnt_lisp): Don't declare.
6454
416e006d
JL
64552009-08-07 Juri Linkov <juri@jurta.org>
6456
6457 * puresize.h (BASE_PURESIZE): Increase to 1270000.
6458
6f7d5780
DN
64592009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6460
6461 * print.c (syms_of_print): Undo previous change.
6462
f19a0f5b
TZ
64632009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
6464
6465 * lread.c (read1, syms_of_lread): Read hashtables back from the
6466 readable format.
6467
6468 * print.c (print_preprocess, print_object): Print hashtables fully
6469 and readably.
6470 (syms_of_print): Provide 'hashtable-print-readable.
6471
b9173dc2
AR
64722009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6473
6474 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
6475 no family set.
6476 (nsfont_open): Handle case when entity has no family.
6477
1586503c
AR
64782009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6479
6480 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
6481 element, not a list, for match case.
6482
087048cd
KH
64832009-07-28 Kenichi Handa <handa@m17n.org>
6484
6485 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
6486 rigidly.
6487
6488 * xfont.c (xfont_list_pattern): Don't ignore the return value of
6489 font_parse_xlfd. Check font properties more rigidly.
6490
780c2506
DN
64912009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6492
31fd7c5c
JB
6493 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
6494 bsd-common.h.
780c2506 6495
a8c0cc18
KH
64962009-07-27 Kenichi Handa <handa@m17n.org>
6497
6498 * xfaces.c (face_with_height): Call font_clear_prop.
6499
4fbe2306
CY
65002009-07-26 Chong Yidong <cyd@stupidchicken.com>
6501
111d9af3
CY
6502 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
6503
6504 * xterm.c (x_term_init): Use Qx.
6505
4fbe2306
CY
6506 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
6507
1ac9108a 6508 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
6509 (ns_get_color): Revert 2009-07-16 change.
6510
beb0b7f9
EZ
65112009-07-25 Eli Zaretskii <eliz@gnu.org>
6512
6513 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 6514 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 6515
2baf5e76
KR
65162009-07-25 Ken Raeburn <raeburn@raeburn.org>
6517
1ac9108a
SM
6518 * coding.h (decode_coding_string, encode_coding_string):
6519 Use SCHARS macro.
8890e5f5 6520
2baf5e76 6521 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 6522 (load_depth): Delete.
2baf5e76
KR
6523 (Qload_in_progress): New variable.
6524 (load_unwind): Don't reference load_depth or load_in_progress.
6525 (Fload): Likewise; specbind Qload_in_progress instead.
6526 (init_lread): Don't initialize load_depth.
6527 (syms_of_lread): Initialize and protect Qload_in_progress.
6528
1395c6f5
AR
65292009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6530
6531 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
6532
4e2f36cf
AR
65332009-07-23 Yavor Doganov <yavor@gnu.org>
6534
6535 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
6536
5dd9a6f7
AR
65372009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
6538
6539 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
6540 Bugs 3792, 3720, 2402.
6541 (ns_lookup_indexed_color): Check for bad index.
6542 (ns_index_color): Init unused slot to 0.
6543 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
6544 Bug 3714, possibly 3082.
5dd9a6f7 6545
c902b920
JR
65462009-07-22 Jason Rumney <jasonr@gnu.org>
6547
1ac9108a
SM
6548 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
6549 Position IME window at cursor (Bug#2570).
c902b920
JR
6550 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
6551 (globals_of_w32fns): Dynamically load functions required above.
6552
6553 * w32term.c (w32_draw_window_cursor): Send message to reposition
6554 any IME window.
6555
090101cf
CY
65562009-07-21 Chong Yidong <cyd@stupidchicken.com>
6557
6558 * fileio.c: Revert 2009-07-16 changes.
6559 (Vauto_save_include_big_deletions): New variable.
6560 (Fdo_auto_save): Disable auto-save only if
6561 auto-save-include-big-deletions is nil.
6562
e6583e3d
CY
65632009-07-21 Chong Yidong <cyd@stupidchicken.com>
6564
6565 * xdisp.c (move_it_to): For continued lines ending in a tab, take
6566 the overflowed pixels into account (Bug#3879).
6567
ece435a5
KR
65682009-07-21 Ken Raeburn <raeburn@raeburn.org>
6569
6570 * lread.c (load_depth): New variable.
6571 (Fload, load_unwind, init_lread): Set it to the load recursion
6572 depth; set load_in_progress as a simple boolean based on the
6573 current load_depth. (Bug#3892)
6574
40b2d973
AR
65752009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6576
6577 * nsfont.m (ns_has_attribute): Remove.
6578 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
6579
10be7e0d
JL
65802009-07-18 Juri Linkov <juri@jurta.org>
6581
6582 * process.c (Fset_process_query_on_exit_flag): Mention killing
6583 a buffer in docstring.
6584
fa055055
KH
65852009-07-17 Kenichi Handa <handa@m17n.org>
6586
6587 * casetab.c (shuffle): Fix the logic of setting up the cycle.
6588
042f7b69
YM
65892009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6590
6591 * nsfns.m (Fns_set_alpha): Remove function.
6592 (syms_of_nsfns): Don't defsubr it.
6593
6594 * nsterm.m (ns_get_color): Remove incompatible color formats.
6595 (ns_color_to_lisp): Generate #rrggbb color format string.
6596
4be941e3
RS
65972009-07-16 Richard Stallman <rms@gnu.org>
6598
6599 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
6600 (Fset_buffer_auto_saved): Handle save_length = -2.
6601
4e6b227d
CY
66022009-07-16 Chong Yidong <cyd@stupidchicken.com>
6603
6604 * xterm.c (Qx_gtk_map_stock): New var.
6605
6606 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
6607 of calling intern each time.
6608
a1856973
YM
66092009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6610
6611 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
6612 does tiling.
6613
6614 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
6615
497e54d8
KH
66162009-07-14 Kenichi Handa <handa@m17n.org>
6617
72d36834
KH
6618 * font.c (font_vconcat_entity_vectors): New function.
6619 (struct font_sort_data): New member font_driver_preference.
6620 (font_compare): Check font_driver_preference.
6621 (font_sort_entities): The format of the first argument changed.
6622 (font_delete_unmatched): Likewise.
6623 (font_list_entities): The return type changed.
6624 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
6625 (font_find_for_lface): Adjuste for the above changes.
6626 Don't suppress the checking of C even if the repertory supports it.
6627 (Flist_fonts): Adjust for the above changes.
72d36834 6628
1ac9108a
SM
6629 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
6630 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
6631 Reject a font who has adstyle property that is different from a
6632 langname derived from registry property.
1ac9108a 6633 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 6634
b6046155
EZ
66352009-07-13 Eli Zaretskii <eliz@gnu.org>
6636
6637 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
6638 local copy of dirfilename.
6639
fb6b6049
KH
66402009-07-13 Kenichi Handa <handa@m17n.org>
6641
e2402a5e
KH
6642 * chartab.c (sub_char_table_ref_and_range): Fix the range check
6643 against max_char.
6644
fb6b6049
KH
6645 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
6646 calling XSYMBOL (sym).
6647
65156807
EZ
66482009-07-11 Eli Zaretskii <eliz@gnu.org>
6649
1ac9108a
SM
6650 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
6651 New function.
6652 (directory_files_internal) [WINDOWSNT]:
6653 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
6654 the filesystem of the directory is fast or slow.
6655
6656 * w32.c (logon_network_drive): Don't assume PATH is an absolute
6657 file name.
6658 (is_slow_fs): New function.
6659 (stat): Use it to determine whether to issue more system calls to
6660 get accurate file attributes, when w32-get-true-file-attributes is
6661 `local'.
6662
e0ab5fcf
JD
66632009-07-10 Jan Djärv <jan.h.d@swipnet.se>
6664
6665 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 6666 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
6667 parameter font-parameter as default to the font dialog.
6668
784ceded
KH
66692009-07-10 Kenichi Handa <handa@m17n.org>
6670
6671 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
6672
fb8edc0b
EZ
66732009-07-09 Eli Zaretskii <eliz@gnu.org>
6674
1ac9108a 6675 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 6676
fb8edc0b
EZ
6677 * w32.c (stat): Treat UNC file names as residing on remote
6678 drives. (Bug#3542)
6679
635c75b1
KH
66802009-07-09 Kenichi Handa <handa@m17n.org>
6681
6682 * fontset.c (fontset_find_font): Fix previous change.
6683
c1d5ce94
MA
66842009-07-08 Michael Albinus <michael.albinus@gmx.de>
6685
6686 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
6687 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
6688 error flag.
6689
edb61b39
KH
66902009-07-08 Kenichi Handa <handa@m17n.org>
6691
374bf7e4
KH
6692 * fontset.c (fontset_find_font): Fix the logic of handling
6693 charset_matched.
6694 (font_for_char): Delete unused var.
6695 (generate_ascii_font_name): Delete it.
6696
edb61b39
KH
6697 * coding.h (JIS_TO_SJIS2): Fix the code range check.
6698
6699 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
6700 (encode_coding_sjis): Fix the code range check.
6701
0f3f018c
CY
67022009-07-07 Chong Yidong <cyd@stupidchicken.com>
6703
6704 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
6705 (Fexpand_file_name): Copy string data properly (Bug#3772).
6706
fcaf6f3a
JD
67072009-07-07 Jan Djärv <jan.h.d@swipnet.se>
6708
6709 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
6710 first MapNotify.
6711
6809ca75
KH
67122009-07-07 Kenichi Handa <handa@m17n.org>
6713
6714 * character.h (unibyte_has_multibyte_table): Delete extern.
6715 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
6716
6717 * charset.c (Fset_charset_priority): Update charset_unibyte.
6718 (syms_of_charset): Initialize charset_unibyte.
6719
6720 * character.c (unibyte_has_multibyte_table): Delete it.
6721 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
6722 charset_unibyte.
6723 (multibyte_char_to_unibyte_safe): Likewise.
6724 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
6725
1ac9108a 6726 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
6727 (x_produce_glyphs): Likewise.
6728
6729 * .gdbinit (xcharset): Fix the treating $arg0.
6730
ad9e2d54
EZ
67312009-07-04 Eli Zaretskii <eliz@gnu.org>
6732
6733 Emulation of `getloadavg' on MS-Windows.
50426a04 6734 * w32.c: Include float.h.
ad9e2d54
EZ
6735 (g_b_init_get_native_system_info, g_b_init_get_system_times)
6736 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
6737 (get_native_system_info, get_system_times): New functions.
6738 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
6739 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
6740 (globals_of_w32): Initialize g_b_init_get_native_system_info,
6741 g_b_init_get_system_times, and num_of_processors.
6742
0a3472c7
JR
67432009-07-03 Jason Rumney <jasonr@gnu.org>
6744
6745 * w32term.c (w32_initialize): Use standard types.
6746
80904120
EZ
67472009-07-03 Eli Zaretskii <eliz@gnu.org>
6748
6749 * dired.c (Ffile_attributes): Decode user and group names by the
6750 locale's encoding. (Bug#3443)
6751
6978862d
DN
67522009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
6753
f8d23104
DN
6754 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
6755 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
6756
6757 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
6758
6759 * term.c (init_tty): Remove spurious #ifdef.
6760
6978862d
DN
6761 * m/mips.h: Mention this file is also used for netbsd.
6762 * m/pmax.h: Remove file.
6763
e044e4fc
JD
67642009-07-03 Jan Djärv <jan.h.d@swipnet.se>
6765
6766 * xterm.h (struct x_display_info): Add invisible_cursor.
6767 (struct x_output): Add current_cursor.
6768
6769 * xterm.c (XTtoggle_invisible_pointer): New function.
6770 (x_define_frame_cursor): Don't define cursor if invisible or the
6771 same as before. Set current_cursor.
6772 (x_create_terminal): Set toggle_invisible_pointer_hook.
6773
6774 * xfns.c (make_invisible_cursor): New function.
6775 (x_set_mouse_color): Call make_invisible_cursor.
6776 Set current_cursor.
6777 (x_window): Set current_cursor.
6778
6779 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
6780
6781 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
6782 inserting a character.
6783 (read_avail_input): Call frame_make_pointer_visible.
6784
6785 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
6786 (frame_make_pointer_invisible, frame_make_pointer_visible):
6787 New functions.
e044e4fc
JD
6788 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
6789
6790 * frame.h: Declare frame_make_pointer_invisible and
6791 frame_make_pointer_visible.
6792 (struct frame): Add pointer_invisible.
6793
574c8efa
JD
67942009-07-02 Jan Djärv <jan.h.d@swipnet.se>
6795
7b507248
JD
6796 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
6797 frame isn't visible.
6798 (xg_frame_resized): If width/height is -1, get size of window
6799 from X server.
6800
6801 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
6802 for MapNotify.
6803
835bdaa7 6804 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 6805 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 6806 (flush_and_sync): Reintroduce.
574c8efa 6807
3f1c6666 68082009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 6809
31fd7c5c 6810 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
6811
6812 * xterm.c (x_handle_net_wm_state): Also look for sticky.
6813 (x_term_init): Initialize Xatom_net_wm_state_sticky.
6814
6815 * frame.h: Declare Qsticky.
6816
cad9ef74
JD
6817 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
6818
6819 * nsfns.m (ns_frame_parm_handlers): Ditto.
6820
6821 * frame.c: Declare Qsticky.
6822 (frame_parms): Add sticky.
6823
6824 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
6825
6826 * xterm.h: Declare x_set_sticky.
6827
6828 * xterm.c (x_set_sticky): New function.
6829
69b16610
JD
6830 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
6831 (xg_tool_bar_menu_proxy): Attach enter/leave events to
6832 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
6833
6834 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
6835
6836 * frame.c: Qmaximized is new.
6837 (x_set_frame_parameters): Do not handle fullscreen specially.
6838 Only set width and height if explicitly set.
6839 (x_set_fullscreen): Handle Qmaximized.
6840 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
6841 (syms_of_frame): Initialize Qmaximized.
6842
1ac9108a
SM
6843 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
6844 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
6845
6846 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
6847 for Expose event. Add call to x_check_fullscreen for MapNotify event.
6848 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
6849 set gravity to NorthWestGravity when USE_GTK.
6850 (set_wm_state): New function.
31fd7c5c 6851 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
6852 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
6853 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 6854 or the case when no window manager is running. That means remove calls
3f1c6666
JD
6855 to x_real_positions and x_fullscreen_adjust.
6856
6857 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
6858 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
6859 flush_and_sync.
6860 (xg_height_changed): New function.
6861 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
6862 and gtk_window_set_policy. Set frame gravity after parsing the
6863 geometry string.
3f1c6666
JD
6864 (xg_update_frame_menubar, free_frame_menubar)
6865 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
6866 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
6867 Remove calls to xg_frame_set_char_size.
6868
fd503d99
KH
68692009-07-01 Kenichi Handa <handa@m17n.org>
6870
6871 * keyboard.c (decode_keyboard_code): New function.
6872 (tty_read_avail_input): Decode the input bytes if necessary.
6873
1ac9108a
SM
6874 * coding.c (setup_coding_system):
6875 Initialize coding->carryover_bytes to 0.
fd503d99
KH
6876 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
6877 use Qno_conversion.
6878
24ed93fb
YM
68792009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6880
6881 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
6882
99061dfc
CY
68832009-06-30 Chong Yidong <cyd@stupidchicken.com>
6884
1ac9108a 6885 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 6886
ff90fbde
JR
68872009-06-30 Jason Rumney <jasonr@gnu.org>
6888
6889 * w32term.c (w32_initialize): Use GetModuleHandle for library that
6890 is already loaded.
6891 Set user model ID if supported (bug#1849).
6892
5f445726
JM
68932009-06-29 Jim Meyering <meyering@redhat.com>
6894
6895 Remove useless if-before-xfree test.
6896 * nsfont.m (nsfont_close): Remove useless test.
6897 * term.c (delete_tty): Likewise.
6898 * w32.c (system_process_attributes): Likewise.
6899 * w32font.c (w32font_close): Likewise.
6900 * xfaces.c (x_free_gc): Likewise.
6901 * xselect.c (buffer): Likewise.
6902
b9607587
AS
69032009-06-28 Andreas Schwab <schwab@linux-m68k.org>
6904
6905 * process.c (send_process): Keep decoded string in a local
6906 variable and protect it from GC. (Bug#3521)
6907
89ba96f4
EZ
69082009-06-28 Eli Zaretskii <eliz@gnu.org>
6909
6910 * term.c (create_tty_output) [MSDOS]: #ifdef away.
6911 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
6912
098a1589
CY
69132009-06-28 Chong Yidong <cyd@stupidchicken.com>
6914
485422be
CY
6915 * xdisp.c (start_display, handle_face_prop)
6916 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
6917 (redisplay_window, try_window_id, produce_image_glyph):
6918 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 6919
098a1589
CY
6920 * xterm.c (x_update_window_begin, x_new_focus_frame)
6921 (x_scroll_bar_handle_click, handle_one_xevent)
6922 (handle_one_xevent, XTread_socket, x_focus_on_frame)
6923 (x_make_frame_visible, x_make_frame_invisible)
6924 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
6925 code chunks that are now obsolete.
6926
78c38319
MA
69272009-06-28 Michael Albinus <michael.albinus@gmx.de>
6928
6929 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
6930 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
6931 for hours, when optimzation is enabled.
6932 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
6933 (xd_read_message): Make them static.
6934
4189ed40
CY
69352009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
6936
6937 * term.c (turn_on_face): Allow simultaneously bold and dim
6938 terminal faces (Bug#3530).
6939
cd9b5e16
CY
69402009-06-27 Chong Yidong <cyd@stupidchicken.com>
6941
4e23bedb
CY
6942 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
6943
cd9b5e16
CY
6944 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
6945 truncation glyphs (Bug#3686).
6946
07cc3c35
GM
69472009-06-27 Glenn Morris <rgm@gnu.org>
6948
6949 * m/pmax.h: Restore file, with only netbsd portions.
6950
31fd7c5c 69512009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 6952
cd9b5e16 6953 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 6954
42d4a64f
KH
69552009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
6956
6957 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
6958 the arg FORCE_SYMBOL.
6959
930fe55b 69602009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
6961
6962 * fontset.c (fontset_find_font): When a usable rfont_def is found
6963 in a fallback font-group, make it the first element of the group.
6964
57ebc3fd
CY
69652009-06-24 Chong Yidong <cyd@stupidchicken.com>
6966
6967 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
6968
f084f942
KH
69692009-06-24 Kenichi Handa <handa@m17n.org>
6970
6971 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
6972 set for C.
6973 (fontset_font): Record the availability of a font for C both in
6974 the realized fontsets of the current one and the default one.
6975
2f686c87
DN
69762009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
6977
6978 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
6979 conditional, it is always defined on AIX.
6980
666e158e
MB
69812009-06-23 Miles Bader <miles@gnu.org>
6982
6983 * window.c (Vrecenter_redisplay): New variable.
6984 (syms_of_window): Initialize it.
6985 (Qtty): New extern declaration.
6986 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
6987
c6da7cd2
JM
69882009-06-23 Jim Meyering <meyering@redhat.com>
6989
1ac9108a
SM
6990 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
6991 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 6992 pointer dereferences are guaranteed to be valid.
c6da7cd2 6993
678dca3d
KH
69942009-06-23 Kenichi Handa <handa@m17n.org>
6995
74d75424
KH
6996 * emacs.c (main): Call init_font ().
6997
6998 * font.h (Vfont_log): Extern it.
6999 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
7000
7001 * font.c (font_sort_entities, font_list_entities)
7002 (font_matching_entity, font_open_entity)
7003 (font_close_object): Change font_add_log to FONT_ADD_LOG.
7004 (Vfont_log): Delete static.
7005 (font_log_env_checked): Delete this variable.
7006 (font_add_log): Don't check font_log_env_checked.
7007 (font_deferred_log): Check Vfont_log.
7008 (init_font): New function.
7009
678dca3d
KH
7010 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
7011
7012 * w32font.c: Change font_add_log to FONT_ADD_LOG.
7013
7014 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
7015
7016 * xfont.c: Change font_add_log to FONT_ADD_LOG.
7017
7018 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
7019 (face_for_char): Don't call font_deferred_log here.
7020 (font_for_char): Likewise.
7021
8a668709
CY
70222009-06-22 Chong Yidong <cyd@stupidchicken.com>
7023
9a01ee33
CY
7024 * w32term.c (x_draw_glyph_string): Use the glyph string's width
7025 rather than its background_width for drawing the overline and
7026 underline (Bug#489).
7027
7028 * xterm.c (x_draw_glyph_string): Use the glyph string's width
7029 rather than its background_width for drawing the overline and
7030 underline (Bug#489).
ec7c9926
CY
7031 (xg_default_icon_file): New variable.
7032 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
7033 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 7034
8a668709
CY
7035 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
7036 (load_overlay_strings): Remove externs.
7037 (fast_find_position): Function deleted.
7038 (mouse_face_from_buffer_pos): New function, based on
7039 fast_find_position. Correctly handle before-strings,
7040 display-strings, and after-strings (Bug#1220).
7041 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
7042
4d4c02d8
CY
70432009-06-21 Chong Yidong <cyd@stupidchicken.com>
7044
1ac9108a 7045 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
7046 (move_it_in_display_line_to, move_it_in_display_line_to)
7047 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
7048
70243478
CY
70492009-06-21 Chong Yidong <cyd@stupidchicken.com>
7050
7051 * Branch for 23.1.
7052
13087e59
JR
70532009-06-21 Jason Rumney <jasonr@gnu.org>
7054
7055 * w32term.c (keyboard_codepage): New static variable.
7056 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
7057 (w32_read_socket) [WM_CHAR]: Use it to decode character
7058 input (bug#3237).
7059 (w32_initialize): Initialize it.
7060 (codepage_for_locale): New function.
7061
4735b74e
KR
70622009-06-20 Ken Raeburn <raeburn@raeburn.org>
7063
7064 * process.c (status_message): Pass Faset index argument as a lisp
7065 object, so as to work with USE_LISP_UNION_TYPE.
7066
0e727afa
YM
70672009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7068
7069 * coding.c (Ffind_coding_systems_region_internal):
7070 Cache checked characters.
7071
cf299835
KH
70722009-06-18 Kenichi Handa <handa@m17n.org>
7073
1ac9108a 7074 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 7075
90f20d94
AS
70762009-06-18 Andreas Schwab <aschwab@redhat.com>
7077
7078 * xdisp.c (redisplay_internal): Check that the frame is still
7079 live after redisplay of its windows.
7080 (redisplay_windows): Check that the window is still live.
7081
7f1faf1c
KH
70822009-06-17 Andreas Schwab <schwab@linux-m68k.org>
7083
7084 * coding.c (detect_coding_utf_16): Fix previous change.
7085
cc13543e
KH
70862009-06-16 Kenichi Handa <handa@m17n.org>
7087
7088 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
7089 UTF-16 by checking the dispersion of Eth and Oth bytes.
7090
977b85f4
AS
70912009-06-15 Andreas Schwab <schwab@linux-m68k.org>
7092
7093 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
7094
66bd43d1
KH
70952009-06-15 Kenichi Handa <handa@m17n.org>
7096
7097 * process.c (status_message): Fix previous change. Be sure to
7098 decode a localized string.
7099
cb5ca9c5
YM
71002009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7101
7102 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
7103 add comment explaining why.
7104
ec7709ba 71052009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 7106
ec7709ba 7107 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 7108
4b7f335c
AR
71092009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
7110
7111 * nsfont.m (ns_attribute_value): Remove.
7112 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
7113 (ns_has_attribute): Shrink the normal range.
7114 (ns_findfonts): Don't worry about requested spec in determining
7115 need for synthItal.
e41820ee 7116 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 7117
73b26103
SZ
71182009-06-14 Seiji Zenitani <zenitani@mac.com>
7119
7120 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
7121
5753e4da
KH
71222009-06-11 Kenichi Handa <handa@m17n.org>
7123
7124 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7125 overhang for the static composition case.
7126
3561b671
KH
71272009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7128
5753e4da
KH
7129 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
7130 overhang for the automatic composition case.
7131
3561b671
KH
7132 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
7133 composition case.
7134
852bbd41
CY
71352009-06-10 Chong Yidong <cyd@stupidchicken.com>
7136
7137 * xdisp.c (get_next_display_element): When handling wrap-prefix
7138 and line-prefix, treat \n as a control character (bug#3502).
7139
9903d1e6
KH
71402009-06-10 Kenichi Handa <handa@m17n.org>
7141
7142 * font.c (font_parse_family_registry): Fix for one-char foundry.
7143 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
7144
0bcbaaaa
CY
71452009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
7146
7147 * process.c (status_message): Fix handling of multibyte signal
7148 string (Bug#3499).
7149
40aa3f13
JM
71502009-06-09 Jim Meyering <meyering@redhat.com>
7151
1f80c7e2
CY
7152 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
7153 color name is missing.
40aa3f13 7154
72d51285
KH
71552009-06-09 Kenichi Handa <handa@m17n.org>
7156
7157 * charset.c (Fmap_charset_chars): In docstring, state clearly that
7158 FROM-CODE and TO-CODE are codepoints of CHARSET.
7159
c1d04d84
AR
71602009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7161
7162 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
7163
71642009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
7165
7166 Changes to support :script/:lang/:otf in NS font driver.
7167 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
7168 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
7169 indicate not part of font driver interface, and change callers.
7170 (ns_get_family): Remove pointless null check.
7171 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
7172 ns_spec_to_descriptor, ns_descriptor_to_entity.
7173 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
7174 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
7175 (ns_spec_to_descriptor, ns_descriptor_to_entity)
7176 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
7177 (ns_get_req_script, ns_accumulate_script_ranges)
7178 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
7179 New functions.
7180 (nsfont_list, nsfont_match): Use ns_findfonts.
7181 (nsfont_open): Use font descriptor instead of traits.
7182 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
7183 (dump_glyphstring): Rename to ns_dump_glyphstring.
7184
c7eb9816
AR
7185 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
7186
c1d04d84
AR
7187 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
7188
7189 * fontset.c (fontset_from_font): Remove NS-specific code.
7190
ec7709ba 71912009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
7192
7193 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
7194 nonactive windows.
7195
31fd7c5c 71962009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 7197
1ac9108a 7198 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 7199
68852c13 72002009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
7201
7202 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
7203
6756cd1d
CY
72042009-06-07 Chong Yidong <cyd@stupidchicken.com>
7205
7206 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
7207 account for the overflowing of newlines into the last glyph on the
7208 display line (Bug#3482).
7209
28bf482a
DR
72102009-06-05 David Reitter <david.reitter@gmail.com>
7211
ec7709ba
JB
7212 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
7213 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
7214 Fns_selection_exists_p, Fns_selection_owner_p.
7215
fdb55376
JR
72162009-06-03 Jason Rumney <jasonr@gnu.org>
7217
7218 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
7219 available. (Bug#3379)
7220
05129fbe
KH
72212009-05-29 Kenichi Handa <handa@m17n.org>
7222
1ac9108a
SM
7223 * coding.c (get_translation_table):
7224 Check Venable_character_translation.
05129fbe 7225
ec7709ba 72262009-05-26 David Reitter <david.reitter@gmail.com>
15891144 7227
ec7709ba
JB
7228 * nsterm.m (ns_raise_frame): Only raise frame if visible.
7229 (x_make_frame_visible): Move frame to front rather than calling
15891144 7230 ns_raise_frame().
ec7709ba 7231 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 7232 isn't key window.
ec7709ba 7233 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
7234 drawRect may be called by NSView even if the frame is hidden.
7235
ec7709ba
JB
7236 * nsfns.m (Fx_create_frame): Follow other ports in
7237 determining visibility; default to t. Ensure async_visible is set.
15891144 7238
21f73755
EZ
72392009-05-23 Eli Zaretskii <eliz@gnu.org>
7240
7241 * dired.c (Ffile_attributes): Doc fix.
7242
34001e41
CY
72432009-05-22 Chong Yidong <cyd@stupidchicken.com>
7244
7245 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
7246
46306a17
SM
72472009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
7248
7249 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
7250 and xfont_scratch_props.
7251 (syms_of_xfont): Do it here instead.
7252 (xfont_find_ccl_program): Delete, unused.
7253 (xfont_open): Delete unused var `i'.
7254
ef6e0694
KH
72552009-05-21 Kenichi Handa <handa@m17n.org>
7256
7257 * fontset.c (Qlatin): Don't make it static.
7258
46306a17
SM
7259 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
7260 New functions.
ef6e0694
KH
7261 (xfont_scripts_cache, xfont_scratch_props): New variables.
7262 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
7263 (xfont_list_pattern): Argument changed. Callers changed.
7264 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
7265 (xfont_list): Don't reject a font spec with :script property.
7266 (xfont_has_char): Fix setting of encoding.
7267 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
7268 xfont_scratch_props.
7269
72702009-05-19 Kenichi Handa <handa@m17n.org>
7271
46306a17 7272 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
7273 Callers changed.
7274
72752009-05-18 Kenichi Handa <handa@m17n.org>
7276
7277 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
7278
ac71ced7
SM
72792009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
7280
7281 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
7282 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
7283
1c6d1051
YM
72842009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7285
7286 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
7287 (x_delete_terminal): Dissociate resource database from display and
7288 then call XrmDestroyDatabase before closing display.
7289
9b9b779c
AR
72902009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7291
7292 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
7293 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
7294 whether selected frame is viable before raising it (based on patch
7295 by David Reitter), and improve commentary.
7296 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 7297
cccd42d5
KH
72982009-05-15 Kenichi Handa <handa@m17n.org>
7299
7300 * font.c (Ffont_spec): Check arguments.
7301
337fbd17
CY
73022009-05-14 Chong Yidong <cyd@stupidchicken.com>
7303
7304 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
7305 weight when testing attributes (Bug#3282).
7306
47a6002f
JD
73072009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7308
7309 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
7310 what we expect to get in the next ConfigureNotify event.
7311
9cb363db
YM
7312 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
7313 before Xft one (Bug#1696).
7314
b9126609
CY
73152009-05-07 David Reitter <david.reitter@gmail.com>
7316
7317 * nsfns.m (Fx_display_planes): Compute bitplanes using
7318 NSBitsPerPixelFromDepth (Bug#3207).
7319
27a69fd9
CY
73202009-05-10 Chong Yidong <cyd@stupidchicken.com>
7321
7322 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
7323
00f37552
TTN
73242009-05-10 Ulrich Mueller <ulm@gentoo.org>
7325
7326 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
7327
2d82a920
DR
73282009-05-07 David Reitter <david.reitter@gmail.com>
7329
ec7709ba
JB
7330 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
7331 Respect mouse face background.
2d82a920 7332
46b0d52d
DR
73332009-05-07 David Reitter <david.reitter@gmail.com>
7334
ec7709ba
JB
7335 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
7336 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
7337 in ns_update_begin and ns_update_end.
7338
ce1b23bb
SM
73392009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7340
5996e1b7
SM
7341 * nsfns.m (ns_get_screen): Rewrite.
7342 Don't presume selected-frame is of type `ns'.
7343
ba98e3a0
SM
7344 * font.c (font_update_drivers): Sanity fallback to avoid disabling
7345 all drivers.
7346
ce1b23bb
SM
7347 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
7348
bcda200f
YM
73492009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7350
7351 * keyboard.h (add_user_signal): Fix typo in extern.
7352
7353 * lisp.h (add_user_signal): Remove extern.
7354
7355 * unexelf.c (unexec): Consider a section to precede the .bss section
7356 if its addresses overlap that of .bss.
7357 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
7358 instead of dumping process.
7359
864660a2
SM
73602009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
7361
7362 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
7363
50da4e56
SM
73642009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
7365
7366 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
7367
51520a1a
DN
73682009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
7369
7370 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
7371 any statements.
7372
409ea3a1
AS
73732009-05-02 Andreas Schwab <schwab@linux-m68k.org>
7374
59c4c60f
AS
7375 * process.c (read_process_output): Make sure the current buffer is
7376 always restored.
7377
409ea3a1
AS
7378 * coding.c (record_conversion_result): Don't modify
7379 Vlast_code_conversion_error for successful result.
7380 (alloc_destination): Don't clobber conversion result. (Bug#1650)
7381
56f00ed2
KH
73822009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7383
7384 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 7385 (load_charset_map): Remove unnecessary code.
56f00ed2 7386
4491c9d2
DR
73872009-04-30 David Reitter <david.reitter@gmail.com>
7388
35f5b128 7389 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
7390 through f24.
7391
6970f632
CY
73922009-04-30 Chong Yidong <cyd@stupidchicken.com>
7393
7394 * xfaces.c (face_at_buffer_position): New arg base_face_id.
7395
7396 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
7397 face_at_buffer_position.
7398 (face_before_or_after_it_pos, get_next_display_element)
7399 (note_mouse_highlight): Update face_at_buffer_position call.
7400
7401 * term.c (term_mouse_highlight):
7402 * msdos.c (IT_note_mouse_highlight):
7403 * fontset.c (Finternal_char_font):
35f5b128 7404 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
7405
7406 * dispextern.h (face_at_buffer_position): Update prototype.
7407
0c616f63
KH
74082009-04-30 Kenichi Handa <handa@m17n.org>
7409
35f5b128 7410 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 7411
ad3aaf33
AS
74122009-04-29 Andreas Schwab <schwab@linux-m68k.org>
7413
7414 * callproc.c (Fcall_process): Fix GC protection. Make sure
7415 current buffer is always restored.
7416
c3c963a0
YM
74172009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7418
7419 * atimer.c (init_atimer): Also clear stopped_atimers.
7420
7421 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
7422
7e3386cb
YM
7423 * process.c (create_process): Clean up merger residues of
7424 2008-07-17 change.
7425
91f68422
CY
74262009-04-29 Ulrich Mueller <ulm@gentoo.org>
7427
7428 * lread.c (Vread_circle): New variable.
7429 (read1): Disable recursive read if Vread_circle is nil.
7430
24b34550
KH
74312009-04-29 Kenichi Handa <handa@m17n.org>
7432
7433 * fontset.h (set_default_ascii_font): Delete extern.
7434
7435 * fontset.c (set_default_ascii_font): Delete this unused function.
7436
7437 * frame.c (x_set_font): When ARG is a font-object, check if the
7438 font-object matches with the ASCII font-spec of the frame's
9c358bda 7439 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 7440
77bf07e1
AS
74412009-04-28 Andreas Schwab <schwab@linux-m68k.org>
7442
7443 * fns.c (Flocale_info): Protect vector from GC during decoding.
7444
7445 * process.c (Fstart_process): Protect argv strings from GC during
7446 encoding.
7447
2c55aacf
AS
74482009-04-27 Andreas Schwab <schwab@linux-m68k.org>
7449
7450 * sysdep.c: Include <ctype.h>.
7451
b892d3c9
DR
74522009-04-27 David Reitter <david.reitter@gmail.com>
7453
35f5b128 7454 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
7455 Remove commented-out code.
7456
9d0644c4
JB
74572009-04-26 Johan Bockgård <bojohan@gnu.org>
7458
7459 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7460
b7053016
JR
74612009-04-25 Jason Rumney <jasonr@gnu.org>
7462
7463 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
7464
4e8231f3
YM
74652009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7466
7467 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
7468 Swap bytes in short integer if fringe bitmap width > 8.
7469
493dcf2c
KH
74702009-04-23 Kenichi Handa <handa@m17n.org>
7471
7472 * xfaces.c (Fx_list_fonts): If a font size is specified in
7473 PATTERN, set it in returned scalable fonts.
7474
401e9e57
CY
74752009-04-22 Chong Yidong <cyd@stupidchicken.com>
7476
708e05dc
CY
7477 * keyboard.c (Fset_input_meta_mode): Doc fix.
7478
7479 * dispnew.c (Fsend_string_to_terminal): Doc fix.
7480
1ac9108a 7481 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
7482
7483 * coding.c (Fterminal_coding_system): Doc fix.
7484
7485 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
7486 (Fx_display_pixel_height, Fx_display_planes)
7487 (Fx_display_color_cells, Fx_server_max_request_size)
7488 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7489 (Fx_display_mm_height, Fx_display_mm_width)
7490 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
7491 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
7492 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
7493 (check_x_display_info): Handle terminal objects instead of
7494 terminal ids.
7495
401e9e57
CY
7496 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
7497 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
7498 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
7499 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 7500
df80c7f0
KH
75012009-04-21 Kenichi Handa <handa@m17n.org>
7502
5a8f12af 7503 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 7504 (font_score): Check AVGWIDTH too.
908567ef 7505
df80c7f0
KH
7506 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
7507 worst case.
1ac9108a
SM
7508 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
7509 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 7510
705af33f
JR
75112009-04-19 Jason Rumney <jasonr@gnu.org>
7512
7513 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 7514 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
7515
7516 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
7517 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
7518 get_phys_cursor_geometry.
7519
b71ac3dd 7520 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
7521 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
7522 using get_phys_cursor_geometry.
7523
7524 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
7525 correctly calculated.
7526
dc2933eb
JD
75272009-04-19 Jan Djärv <jan.h.d@swipnet.se>
7528
1ac9108a
SM
7529 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
7530 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
7531 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
7532 is deprecated.
7533
973e7849
AS
75342009-04-18 Andreas Schwab <schwab@linux-m68k.org>
7535
7536 * font.c (font_put_frame_data): Use xfree instead of free.
7537
314d66f4
JB
75382009-04-17 Juanma Barranquero <lekktu@gmail.com>
7539
7540 * w32font.c (Qja, Qko): Remove declarations.
7541 (syms_of_w32font): Don't DEFSYM them.
7542
cf702558
CY
75432009-04-17 Chong Yidong <cyd@stupidchicken.com>
7544
7545 * font.c (Qja, Qko): Move definitions here from ftfont.c.
7546
7547 * font.h (Qja, Qko): Extern them.
7548
7549 * ftfont.c (Qja, Qko): Remove declarations.
7550
7551 * xfont.c (Qja, Qko): Remove declarations.
7552
b50504f5
KH
75532009-04-17 Kenichi Handa <handa@m17n.org>
7554
bde25748
KH
7555 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
7556 string from a vector to handle Latin-1 characters correctly.
7557
b50504f5
KH
7558 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
7559 entity even if the cache hits.
7560
f4646fff
AS
75612009-04-16 Andreas Schwab <schwab@linux-m68k.org>
7562
7563 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 7564 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 7565
e7deaab0
AS
7566 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
7567 * lisp.h: Adjust prototypes.
7568
0a0e7d49
CY
75692009-04-16 Chong Yidong <cyd@stupidchicken.com>
7570
7571 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
7572 change (Bug#3003).
7573
3c908a57
KH
75742009-04-16 Kenichi Handa <handa@m17n.org>
7575
1ac9108a 7576 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
7577
7578 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
7579 adstyle.
7580
7581 * ftfont.c (Qja, Qko): Don't make them static.
7582 (enum ftfont_cache_for): New enum.
7583 (fc_charset_table): Undo the previous change.
7584 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
7585 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
7586 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
7587 non-scarable font, try to get AVERAGE_WIDTH.
7588 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
7589 Change ft_face_cache from a list of a hash-table. Don't check
7590 `ja' and `ko' adstyle here.
7591 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
7592 FTFONT_CACHE_FOR_CHARET.
7593 (ftfont_get_charset): Undo the previous change.
1ac9108a 7594 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
7595 (ftfont_close): Likewise.
7596 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
7597
7598 * font.c (font_sort_entites): Change the meaning of the arg
7599 BEST-ONLY. Don't optimize for VEC of lenght 1.
7600 (font_select_entity): Just return the value of font_sort_entites.
7601
7602 * xfaces.c (merge_face_vectors): Reflect font properties in
7603 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
7604 font_clear_prop if a face attribute doesn't change.
7605
3c908a57
KH
7606 * charset.h (charset_ksc5601): Extern it.
7607
7608 * charset.c (charset_ksc5601): New variable.
7609 (Fdefine_charset_internal): Set charset_ksc5601.
7610 (init_charset_once): Initialize charset_ksc5601 to -1.
7611
d65859c3
DN
76122009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
7613
7614 * fileio.c (history_delete_duplicates): Remove unused declaration.
7615
7616 * callint.c (history_delete_duplicates): New declaration.
7617 (Fcall_interactively): Remove command history duplicates when
7618 history_delete_duplicates is true.
7619
3ba010e5
EZ
76202009-04-14 Eli Zaretskii <eliz@gnu.org>
7621
7622 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
7623
06f19b91
KH
76242009-04-14 Kenichi Handa <handa@m17n.org>
7625
7626 * font.c (Ffont_info): Fix docstring. Fix the second element of
7627 the returned value (bug#2949).
7628
2cce8bfc
CY
76292009-04-14 Chong Yidong <cyd@stupidchicken.com>
7630
7631 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
7632
d156542d
KH
76332009-04-14 Kenichi Handa <handa@m17n.org>
7634
7635 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
7636 encoding charset is ascii_compatible.
7637
7638 * charset.c (Fdefine_charset_internal): Make charset
7639 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
7640 code_offset is 0, and covers all ASCII characters.
7641
86fa089e
SM
76422009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
7643
7644 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
7645 (ns_string_to_pasteboard_internal):
7646 * nsmenu.m (process_dialog):
7647 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
7648 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
7649 * lisp.h (Fx_load_color_file): Declare.
7650
a8a3728b
KH
76512009-04-13 Kenichi Handa <handa@m17n.org>
7652
1ac9108a 7653 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
7654 (font_select_entity): Suppress the code to optimize for the same
7655 kind of fonts.
7656 (font_load_for_lface): Get a font that supports at least ASCII
7657 characters.
7658
7659 * ftfont.c (Qja, Qko): New variables.
7660 (fc_charset_table): Delete uniquifier data for iso8859-1.
7661 (ftfont_get_latin1_charset): New function.
7662 (get_adstyle_property): New function.
7663 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
7664 bitmap fonts.
7665 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
7666 Delete iso-8859-1 range from the charset of fonts whose adstyle is
7667 `ko' or `ja'.
7668 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 7669 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
7670 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
7671 property.
7672 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
7673 (syms_of_ftfont): DEFSYM Qja and Qko.
7674
483670b5
KH
76752009-04-09 Kenichi Handa <handa@m17n.org>
7676
12b55765
KH
7677 * charset.c (map_charset_chars): For a charset of `superset'
7678 method, fix calculation of code range.
7679
483670b5
KH
7680 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
7681 from the list of extra properties.
7682 (font_clear_prop): Be sure to delete `:name' font property.
7683
57d3b93b
KH
76842009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7685
b4b2c2ca
YM
7686 * dispnew.c (redraw_overlapping_rows): Fix detection of
7687 overlapping for topmost and bottommost rows.
7688
1ac9108a 7689 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 7690
472c3609
JR
76912009-04-06 Jason Rumney <jasonr@gnu.org>
7692
7693 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
7694
ab193662
KH
76952009-04-06 Kenichi Handa <handa@m17n.org>
7696
7697 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
7698
7699 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
7700
0c26f026
KH
77012009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7702
7703 * ftfont.c (ftfont_open): Fix checking of the return value of
7704 FT_Load_Char. Fix setting font->underline_thickness.
7705
e173bbce
CY
77062009-04-04 Chong Yidong <cyd@stupidchicken.com>
7707
7708 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
7709 (Fterminal_parameters, Fterminal_parameter)
7710 (Fset_terminal_parameter): In doc string, refer to terminal
7711 objects rather than terminal ids.
7712
693a2698
EZ
77132009-04-04 Eli Zaretskii <eliz@gnu.org>
7714
7715 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
7716 ret_lim_data. (Bug#2867)
7717
d5221487
CY
77182009-04-03 Chong Yidong <cyd@stupidchicken.com>
7719
7720 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
7721 so they don't get wider than the window, matching 2006-01-23
7722 change to the partner function in xdisp.c (Bug#2800).
7723
223509a3
KH
77242009-04-03 Kenichi Handa <handa@m17n.org>
7725
7726 * print.c (print_object): Make each lowest sub_char_table start a
7727 new line (Bug#2866).
7728
74fcd0b1
KH
77292009-04-02 Kenichi Handa <handa@m17n.org>
7730
7731 * fontset.c (fontset_font): Record no-font when a fontset
7732 explicitly tells not to try another font-specs.
7733
c542407d
SM
77342009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
7735
7736 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
7737
e3869731
KH
77382009-03-30 Kenichi Handa <handa@m17n.org>
7739
d8d2f142
KH
7740 * fontset.c (fontset_from_font): Specify only registry in a
7741 font-spec for all characters supported by that registry.
7742
e3869731
KH
7743 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
7744 even if HAVE_M17N_FLT is not defined.
7745
5da5f805
CY
77462009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
7747
7748 * ftfont.c: Conditionalize prototyping and use of
7749 ftfont_variation_glyphs.
7750
ab226c50
SM
77512009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
7752
9628fed7
SM
7753 * frame.c (delete_frame): Work around compiler bug.
7754
7755 * editfns.c (general_insert_function): Adjust to insdel.c changes.
7756 * insdel.c (prepare_to_modify_buffer, signal_before_change):
7757 Some more EMACS_INT.
7758 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
7759
7760 * xdisp.c (dump_glyph): Fix typo.
7761
ae19ba7c
SM
7762 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
7763 (adjust_markers_gap_motion, adjust_markers_for_delete)
7764 (adjust_markers_for_insert, adjust_point)
7765 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
7766 (make_gap, copy_text, count_size_as_multibyte, insert)
7767 (insert_and_inherit, insert_before_markers)
7768 (insert_before_markers_and_inherit, insert_1)
7769 (count_combining_before, count_combining_after, insert_1_both)
7770 (insert_from_string, insert_from_string_before_markers)
7771 (insert_from_string_1, insert_from_gap, insert_from_buffer)
7772 (insert_from_buffer_1, adjust_after_replace)
7773 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
7774 (replace_range_2, del_range, del_range_1, del_range_byte)
7775 (del_range_both, del_range_2, modify_region)
7776 (prepare_to_modify_buffer, signal_before_change)
7777 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
7778 for buffer positions and sizes.
7779 * lisp.h: Adjust prototypes accordingly.
7780
7781 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
7782 (non_regular_inserted, non_regular_nbytes, read_non_regular)
7783 (Finsert_file_contents): Use EMACS_INT for buffer positions.
7784
ab226c50
SM
7785 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
7786
46dfb8fb
JD
77872009-03-27 Jan Djärv <jan.h.d@swipnet.se>
7788
7789 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
7790 lines and columns so we keep the same pixel height and width.
7791
7792 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
7793 the property _NET_WM_STATE has changed.
46dfb8fb
JD
7794 (x_handle_net_wm_state): New function to update frame parameter
7795 fullscreen.
7796 (x_term_init): Initialize atoms for _NET_WM_STATE.
7797
7798 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
7799
d347e494
SM
78002009-03-27 Kevin Ryde <user42@zip.com.au>
7801
7802 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
7803 Gpm_GetEvent as an error that justifies closing the filedescriptor.
7804 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
7805 (Fgpm_mouse_stop): Pass that new parameter.
7806 * termhooks.h (close_gpm): Adjust prototype.
7807
84db11d6
SM
78082009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7809
c95a5008
SM
7810 * lisp.h (Fx_focus_frame): Declare.
7811
84db11d6
SM
7812 * callint.c (Fcall_interactively): For '^' just delegate the work to
7813 handle-shift-selection.
7814 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
7815
0a1958d6
CY
78162009-03-24 Chong Yidong <cyd@stupidchicken.com>
7817
0bfdff23
CY
7818 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
7819
0a1958d6
CY
7820 * data.c (Qinteractive_form): New variable.
7821 (Finteractive_form): Use it.
7822
7823 * eval.c (Fcommandp): Use Qinteractive_form.
7824
58aec0d6
JR
78252009-03-24 Jason Rumney <jasonr@gnu.org>
7826
7827 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
7828 Calculate total size precisely. Decode environment variables
7829 before substituting. (Bug#38)
7830
553dd618
KH
78312009-03-24 Kenichi Handa <handa@m17n.org>
7832
7833 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 7834 encoding (Bug#2722).
553dd618 7835
c39ea606
JD
78362009-03-23 Jan Djärv <jan.h.d@swipnet.se>
7837
7838 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
7839 that gdpy is set.
7840
bc9b2b5e
AM
78412009-03-22 Alan Mackenzie <acm@muc.de>
7842
7843 * callint.c (Finteractive): Clarify the doc string - even
7844 promptless elements need \n separators.
7845
9f995a76
JR
78462009-03-22 Jason Rumney <jasonr@gnu.org>
7847
7848 * w32term.c (syms_of_w32term): Doc fix for
7849 x-use-underline-position-properties.
7850
22749e9a
EZ
78512009-03-21 Eli Zaretskii <eliz@gnu.org>
7852
7853 * w32.c (getpwuid): Change argument type to unsigned.
7854 (struct w32_id): Change type of `rid' member to unsigned.
7855 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
7856 argument ID to unsigned. All callers changed.
7857 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
7858
e00553bf
EZ
78592009-03-20 Eli Zaretskii <eliz@gnu.org>
7860
7861 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
7862 negative, produce a float value.
7863
7864 * dired.c (make_uid, make_gid): New functions.
7865 (Ffile_attributes): Use them to avoid negative UID and GID.
7866
f761d6b6
JB
78672009-03-20 Juanma Barranquero <lekktu@gmail.com>
7868
7869 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
7870 (syms_of_keyboard) <command-hook-internal, input-method-function>:
7871 Fix typos in docstrings.
7872
d507f8d7
KH
78732009-03-19 Kenichi Handa <handa@m17n.org>
7874
7875 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
7876 changed, use font_load_for_lface to get a new font object.
7877 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
7878
7879 * frame.c (x_set_font): Handle the case that ARG is a cons.
7880
c68845e0
GM
78812009-03-19 Glenn Morris <rgm@gnu.org>
7882
7883 * fileio.c (Fsubstitute_in_file_name): Doc fix.
7884
bfa49dd1
CY
78852009-03-19 Chong Yidong <cyd@stupidchicken.com>
7886
7887 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
7888
8458d4c1
KH
78892009-03-19 Kenichi Handa <handa@m17n.org>
7890
7891 * charset.c (load_charset_map_from_file): When a mapfile can't be
7892 loaded, signal an error.
7893
78e7d1fe
EZ
78942009-03-18 Eli Zaretskii <eliz@gnu.org>
7895
7896 * dired.c (Ffile_attributes): Make sure UID and GID are always
7897 positive, even if the value is too large for a positive EMACS_INT.
7898 Doc fix.
7899
7900 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
7901
5da9fdfa
YM
79022009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7903
7904 * xmenu.c (xdialog_show): Move Fredisplay call ...
7905 (Fx_popup_dialog): ... here.
7906
7519c40d
SM
79072009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
7908
7909 * dired.c (file_name_completion): Disable the first optimization just
7910 installed, since it is not implemented correctly.
7911
2cd298e2
SM
79122009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7913
7914 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 7915 only if the entry can affect bestmatch.
2cd298e2
SM
7916 Stop the search early, as Ftry_completion already does.
7917
48d37adf
CY
79182009-03-17 Chong Yidong <cyd@stupidchicken.com>
7919
e10c9c93 7920 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 7921
9286b16a
CY
79222009-03-15 Chong Yidong <cyd@stupidchicken.com>
7923
7924 * keyboard.c (parse_menu_item): Don't display remappings as menu
7925 equivalent bindings (Bug#788).
7926
f7b146dc
JR
79272009-03-15 Jason Rumney <jasonr@gnu.org>
7928
7929 * w32term.h (WM_EMACS_PAINT): New message.
7930 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
7931 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
7932 before passing to lisp thread. (Bug#950)
7933
f761d6b6 79342009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 7935
d93f9575
CY
7936 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
7937 variable as it was never reset.
7938 (ns_term_init): Remove initialization of Lisp-settable defaults
7939 and ns_expand_space.
7940 (-setPanelFromDefaultValues): Remove ns_expand_space.
7941 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
7942 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
7943 i.e. no additional spacing, similar to Carbon port.
7944
d93f9575
CY
7945 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
7946 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 7947
305018ec
JD
79482009-03-14 Jan Djärv <jan.h.d@swipnet.se>
7949
7950 * sound.c (alsa_configure): Remove call to deprecated
7951 snd_pcm_sw_params_set_xfer_align.
7952
f761d6b6 79532009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
7954
7955 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
7956 after clicking in a detached tool bar.
7957 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
7958
46e722a9
SM
79592009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
7960
348db3dd
SM
7961 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
7962 int/Lisp_Object mixup).
46e722a9 7963
a3d16f39
KH
79642009-03-13 Kenichi Handa <handa@m17n.org>
7965
7966 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 7967 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
7968 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
7969 (set_fontset_font): Change ARG to a vector. Handle range_list in
7970 ARG correctly.
7971 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 7972 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
7973 the above change.
7974 (fontset_from_font): Fix previous change.
fe24f56a 7975 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
7976 entry. If FONTSET is the default fontset, don't set the extra
7977 slot of the returning char-table.
7978
b066e6b6
JB
79792009-03-12 Juanma Barranquero <lekktu@gmail.com>
7980
7981 * nsfns.m (Fx_close_connection): Doc fix.
7982 (Fns_do_applescript): Reflow docstring.
7983 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
7984 (Fx_display_pixel_width, Fx_display_pixel_height)
7985 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
7986 Fix typos in docstrings.
7987 (Fns_set_alpha): Fix typos in error messages.
7988
d472514e 79892009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 7990
d472514e 7991 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
7992 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
7993 were used for such events.
7994
d472514e
JB
7995 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
7996 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 7997
d472514e 7998 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
7999 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
8000
fb930676
KH
80012009-03-11 Kenichi Handa <handa@m17n.org>
8002
ff85581a
KH
8003 * font.h (font_open_by_spec): Extern it.
8004
c50b7e98
KH
8005 * font.c (font_open_by_spec): New function.
8006 (font_open_by_name): Use font_open_by_spec.
8007
fb930676
KH
8008 * frame.c (x_set_font): When ARG is a font-object, don't alter the
8009 fontset of the frame.
8010
8011 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
8012 modify the default font of frames that use this fontset.
8013 (num_auto_fontsets): New variable.
8014 (fontset_from_font): Use num_auto_fontsets to decide a fontset
8015 name. Be sure to set FONTSET_ASCII to the correct font name.
8016 (update_auto_fontset_alist): New function.
8017
df4e8455
JB
80182009-03-11 Juanma Barranquero <lekktu@gmail.com>
8019
8020 * makefile.w32-in: Update dependencies.
8021
0a375797
AR
80222009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8023
8024 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
8025
61313fa3
SM
80262009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8027
8028 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
8029
b55103fb
CY
80302009-03-10 Chong Yidong <cyd@stupidchicken.com>
8031
8032 * lread.c (Feval_buffer): Doc fix.
8033
dde2559c
KH
80342009-03-09 Kenichi Handa <handa@m17n.org>
8035
8036 * charset.c (Qfile_name_handler_alist): Extern it.
8037 (load_charset_map_from_file): Temporarily bind
8038 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
8039
df4e8455 80402009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 8041
47f588bb
GM
8042 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
8043 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 8044
4ddf94bd
AR
80452009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8046
4c9bdfc2
AR
8047 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
8048 (x_set_window_size): Change back to calculated method of setting
8049 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
8050 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
8051 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
8052
fe41ae9e
AR
8053 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
8054
4c9bdfc2
AR
8055 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
8056 accelerator in parens under GNUstep.
8057
825d0875
KH
80582009-03-06 Kenichi Handa <handa@m17n.org>
8059
8060 These changes are to detect incorrect composition sequence without
f3b3be74 8061 looking ahead the source. (Bug#2370)
825d0875
KH
8062
8063 * coding.h: Include "composite.h".
8064 (enum compisition_state): New enum.
8065 (struct compisition_status): New struct.
8066 (struct iso_2022_spec): New member cmp_status.
8067 (struct emacs_mule_spec): New struct.
8068 (struct coding_system): New members ctext_extended_segment_len and
8069 embedded_utf_8. Change the union member
8070 spec.emacs_mule_full_support to spec.emacs_mule.
8071
8072 * coding.c (CODING_ISO_CMP_STATUS): New macro.
8073 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 8074 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
8075 (ADD_COMPOSITION_DATA): New arg nbytes.
8076 (emacs_mule_char): New arg cmp_status.
8077 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
8078 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
8079 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
8080 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
8081 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
8082 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
8083 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
8084 (EMACS_MULE_COMPOSITION_END): New macro.
8085 (emacs_mule_finish_composition): New function.
8086 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
8087 (decode_coding_emacs_mule): Avoid long looking ahead while
8088 handling composition.
8089 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
8090 (ENCODE_COMPOSITION_RULE): New macro.
8091 (finish_composition): New function.
8092 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
8093 (DECODE_COMPOSITION_START): New implementation.
8094 (DECODE_COMPOSITION_END): Likewise.
8095 (STORE_COMPOSITION_RULE): New macro.
8096 (decode_coding_iso_2022): Avoid long looking ahead while handling
8097 composition, CTEXT extended segment, and embedded UTF-8.
8098 (setup_coding_system): For a coding of type iso-2022, reset
8099 CODING_ISO_EXTSEGMENT_LEN (coding) and
8100 CODING_ISO_EMBEDDED_UTF_8 (coding).
8101 (get_translation): Delete arguments last_block, from_nchars,
8102 to_nchars. Callers changed.
8103 (produce_chars): Don't modify charbuf. Adjusted for the change of
8104 get_translation.
98a326f7 8105 (produce_composition): Adjust for the new annotation sequence.
825d0875 8106 (handle_composition_annotation): Likewise.
98a326f7 8107 (consume_chars): Adjust for the change of get_translation.
825d0875 8108
ccbc4452
AR
81092009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
8110
4ddf94bd 8111 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 8112
988a7ddb
KH
81132009-03-05 Kenichi Handa <handa@m17n.org>
8114
8115 * font.c (font_select_entity): New function.
8116 (font_find_for_lface): Use font_select_entity to select a font.
8117
8118 * fontset.c (fontset_find_font): If a font found without
a8a3728b 8119 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
8120 font with C restriction.
8121
98a326f7 81222009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 8123
be1bce46 8124 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 8125
10ea2b82
JR
81262009-03-04 Jason Rumney <jasonr@gnu.org>
8127
2c93b248 8128 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 8129 characters that have already been read. (Bug#2569)
2c93b248 8130
10ea2b82
JR
8131 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
8132 Log an error message if check_image_size failed.
8133 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 8134 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 8135
71a0c011
EZ
81362009-03-02 Eli Zaretskii <eliz@gnu.org>
8137
8138 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
8139 when decoding process output.
8140
2f63bba8
RS
81412009-03-01 Richard M Stallman <rms@gnu.org>
8142
8143 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
8144
8145 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
8146
0a9564cb
EZ
81472009-02-28 Eli Zaretskii <eliz@gnu.org>
8148
8149 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
8150 (decode_coding_emacs_mule, decode_coding_iso_2022)
8151 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8152 (decode_coding_raw_text, decode_coding_charset)
8153 (setup_coding_system, decode_eol, decode_coding, consume_chars):
8154 Honor inhibit-eol-conversion. (Bug #2186)
8155
449148b3
JR
81562009-02-28 Jason Rumney <jasonr@gnu.org>
8157
8158 * coding.c (detect_coding_charset): If not checking latin extra,
8159 fail on characters between 0x80 and 0xA0. (Bug#2354)
8160
a4aee864
EZ
81612009-02-28 Eli Zaretskii <eliz@gnu.org>
8162
8163 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 8164 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 8165
d88bee5a
GM
81662009-02-27 Glenn Morris <rgm@gnu.org>
8167
8168 * callint.c (Finteractive): Doc fix.
8169
a808f22d
KH
81702009-02-27 Kenichi Handa <handa@m17n.org>
8171
8172 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
8173
caf8d60c
CY
81742009-02-27 Chong Yidong <cyd@stupidchicken.com>
8175
8176 * font.c (font_style_to_value): Set value for unknown symbols to
8177 100 instead of 255.
b61137ea
CY
8178 (weight_table, slant_table, width_table): Treat "unspecified" as
8179 the default value.
caf8d60c 8180
1a0de25c
JB
81812009-02-26 Juanma Barranquero <lekktu@gmail.com>
8182
8183 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
8184
8fc45744
JB
81852009-02-25 Juanma Barranquero <lekktu@gmail.com>
8186
107bd7d1
JB
8187 * lread.c (Fload): Stop checking Vloads_in_progress and signal
8188 error as soon as a recursive load is detected.
8fc45744 8189
f097e223
AR
81902009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
8191
8192 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
8193 before caching.
8194
8810a12f
KH
81952009-02-24 Kenichi Handa <handa@m17n.org>
8196
8197 * fontset.c (fontset_find_font): Fix the condition for checking
8198 unavailable font.
8199
2c7d1565
GM
82002009-02-24 Glenn Morris <rgm@gnu.org>
8201
8202 * xfaces.c (Finternal_set_font_selection_order): Remove leading
8203 whitespace that confuses documentation.
8204
a20878b6
MB
82052009-02-23 Miles Bader <miles@gnu.org>
8206
8207 * process.c (Flist_system_processes, Fprocess_attributes)
8208 (syms_of_process): Rename `system-process-attributes' to
8209 `process-attributes'.
8210
b3b58c01
AS
82112009-02-22 Andreas Schwab <schwab@linux-m68k.org>
8212
1b3b981b
AS
8213 * coding.h (struct coding_system): Make safe_charsets a pointer to
8214 unsigned char.
8215 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
8216 being 255.
8217 (SAFE_CHARSET_P): Likewise.
8218 (setup_iso_safe_charsets): Properly setup safe_charsets.
8219 (Fdefine_coding_system_internal): Likewise.
8220 (setup_coding_system): Likewise. Remove unneeded casts.
8221 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
8222 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
8223 unneeded casts.
8224
b3b58c01
AS
8225 * insdel.c (del_range_2): Don't modify gap contents when called
8226 from decode_coding_object. (Bug#1809)
8227
0b6f228c
CY
82282009-02-21 Chong Yidong <cyd@stupidchicken.com>
8229
8230 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
8231 Qfont_object.
8232 (Ftype_of): Recognize font objects.
8233
8234 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8235
8236 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
8237 moved to data.c.
8238
52f8870b
AR
82392009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8240
8241 * nsterm.m (x_make_frame_invisible): Unset async_visible,
8242 async_iconified. Based on a patch by Christian Lynbech
8243 <christian.lynbech@tieto.com>.
8244 (EmacsView-windowDidMiniaturize:): Unset async_visible.
8245
7087d5e9
GM
82462009-02-20 Glenn Morris <rgm@gnu.org>
8247
8248 * syntax.c (Fskip_chars_forward): Fix doc typo.
8249
41d2ceef
CY
82502009-02-20 Chong Yidong <cyd@stupidchicken.com>
8251
8252 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
8253
1a3b7ca6
CY
82542009-02-19 Chong Yidong <cyd@stupidchicken.com>
8255
8256 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
8257
73cce38d
KH
82582009-02-19 Kenichi Handa <handa@m17n.org>
8259
8260 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 8261 Don't overflow coding->carryover. (Bug#2370)
73cce38d 8262
a51092ee
DN
82632009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
8264
8265 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
8266
c423ecca
KH
82672009-02-18 Kenichi Handa <handa@m17n.org>
8268
8269 * font.c (font_check_otf_features): Fix handling of `nil' element.
8270 (Ffont_spec): Describe :lang and :otf in the docstring.
8271
4c1958f4
AS
82722009-02-16 Andreas Schwab <schwab@suse.de>
8273
8274 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
8275 string.
8276
5704f39a
KH
82772009-02-16 Kenichi Handa <handa@m17n.org>
8278
8279 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 8280 (Bug#1723)
5704f39a 8281
8f0085aa
CY
82822009-02-14 Chong Yidong <cyd@stupidchicken.com>
8283
a057d86a 8284 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
8285
8286 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
8287 (handle_line_prefix): Suppress wrapping of wrap prefixes.
8288
aff01dd9
EZ
82892009-02-14 Eli Zaretskii <eliz@gnu.org>
8290
8291 * msdos.c (MAX_SCREEN_BUF): New macro.
8292 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
8293 Encode the entire run of glyphs sharing the same face, instead of
8294 doing that one glyph at a time (fixes a bug with displaying
8295 double-size characters).
8296
ba301db3
AR
82972009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
8298
8299 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
8300
8301 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
8302 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 8303 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
8304
8305 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 8306 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 8307
51d861de
SM
83082009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8309
ac146f82 8310 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
8311 invisible areas.
8312
7fed8996
JR
83132009-02-12 Jason Rumney <jasonr@gnu.org>
8314
631ea4fb
JR
8315 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
8316 (add_font_entity_to_list): Call check_face_name even when family
8317 is unspecified.
8318
cb4a3e42
JR
8319 * w32term.c (x_display_pixel_height, x_display_pixel_width):
8320 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 8321 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 8322
7fed8996 8323 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 8324 raster fonts. (Bug#2219)
7fed8996 8325
895416e3
KH
83262009-02-12 Kenichi Handa <handa@m17n.org>
8327
8328 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
8329 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
8330 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 8331 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8332 (find_automatic_composition): While looking forward and backward,
8333 check static composition. Fix where to stop looking forward.
8334 (composition_adjust_point): Fix checking of static composition.
8335 (Fcomposition_get_gstring): Pay attention to
1dacf998 8336 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
8337
8338 * lisp.h (fast_looking_at): Extern it.
8339
8340 * search.c (fast_looking_at): New function.
8341
51d861de 8342 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
8343 <struct glyph>.u.cmp.to.
8344 (append_composite_glyph): Likewise.
8345
51d861de 8346 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
8347 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
8348 composition.
51d861de 8349 (append_composite_glyph): Adjust for the change of
895416e3
KH
8350 <strcut glyph>.u.cmp.to.
8351
8510724d
JB
83522009-02-11 Juanma Barranquero <lekktu@gmail.com>
8353
8354 * casetab.c (init_casetab_once):
8355 * coding.c (ALLOC_CONVERSION_WORK_AREA):
8356 * font.c (font_update_lface):
8357 * fontset.c (Fnew_fontset):
8358 * ftfont.c (ftfont_drive_otf):
8359 * xfont.c (xfont_open):
8360 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
8361
294fa707
SM
83622009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8363
8364 * fileio.c (Fwrite_region): !NILP -> CONSP.
8365
b5bfebec
AS
83662009-02-10 Andreas Schwab <schwab@suse.de>
8367
8368 * process.c (send_process): Properly relocate pointer into data
adab88bd 8369 when using encoded data. (Bug#2272)
b5bfebec 8370
cb84a2be
KH
83712009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
8372
8373 * coding.c (detect_coding_charset): Fix previous change.
8374
89e09428
JR
83752009-02-08 Jason Rumney <jasonr@gnu.org>
8376
8377 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 8378 disappeared while hourglass was displayed. (Bug #2193)
89e09428 8379
4470a277
AS
83802009-02-07 Andreas Schwab <schwab@suse.de>
8381
8382 * unexelf.c (unexec): Fix error message.
8383
3175b12a
AR
83842009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
8385
8386 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 8387 when modal window is active. (Bug #2152)
3175b12a
AR
8388 (applicationShouldTerminate:): Remove now-unneeded while loop
8389 around NSRunAlertPanel.
8390
8391 * nsmenu.m (popupSession): New file-global variable.
8392 (pop_down_menu): End the popupSession before closing dialog.
8393 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
8394 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
8395 don't query NSApp for events (just sleep instead).
8396
8434d0b8
EZ
83972009-02-07 Eli Zaretskii <eliz@gnu.org>
8398
51d861de
SM
8399 * coding.c (syms_of_coding) <translation-table-for-input>:
8400 Modify doc string to discourage use for character code unification.
8434d0b8 8401
aa82edfd
CY
84022009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8403
8404 * atimer.c (run_timers): Update pending_atimers.
8405
2d283c7c
CY
84062009-02-06 Chong Yidong <cyd@stupidchicken.com>
8407
eb306cab
CY
8408 * image.c (svg_load_image): Fix last change.
8409
2d283c7c
CY
8410 * xfns.c (Fx_create_frame): Signal an error if no font is
8411 found (Bug#2147).
8412
4d8e170e
JB
84132009-02-05 Juanma Barranquero <lekktu@gmail.com>
8414
8415 * character.c (syms_of_character) <script-representative-chars>:
8416 Fix typo in docstring.
8417
c96169a0
AR
84182009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8419
8420 * nsmenu.m (pop_down_menu): New function.
8421 (ns_popup_dialog): Call it on unwind.
8422 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
8423 call timer_check() (Bug#2154).
8424 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
8425 handling_signal is set.
8426 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
8427
31fd7c5c 8428 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
8429
8430 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
8431
8432 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
8433
51d861de
SM
8434 * keyboard.c (poll_for_input_1, handle_async_input):
8435 Set handling_signal under HAVE_NS.
c96169a0 8436
aacd8ba1
GM
84372009-02-04 Glenn Morris <rgm@gnu.org>
8438
8439 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
8440
4cb75c4b
KH
84412009-02-04 Kenichi Handa <handa@m17n.org>
8442
8443 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
8444
8445 * charset.c (Fchar_charset): New optional arg restriction.
8446
8447 * coding.h (coding_system_charset_list): Extern it.
8448
8449 * coding.c (coding_system_charset_list): New function.
8450
8451 * composite.c: Include coding.h and termhooks.h.
8452 (composition_gstring_p): Fix for the terminal case.
8453 (composition_gstring_width): Likewise.
8454 (fill_gstring_body): Likewise.
8455 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
8456 the frame.
8457 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
8458 is within a composition.
867d4bb3 8459 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
8460
8461 * term.c (encode_terminal_code): Fix handling of composition.
8462 (produce_composite_glyph): For static composition, get pixel_width
8463 from struct composition.
8464
826ba17e
AS
84652009-02-02 Andreas Schwab <schwab@suse.de>
8466
8467 * unexelf.c (unexec): Handle unaligned bss offset.
8468
8ad093db
AR
84692009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8470
8471 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
8472 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 8473
8ad093db
AR
8474 * keyboard.c (handle_interrupt): Don't call
8475 quit_throw_to_read_char() under NS.
d0a76a6e 8476
8ad093db
AR
8477 * blockinput.h: Remove NS-specific code.
8478
4d18a7a2
DN
84792009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
8480
db878925
DN
8481 * dispnew.c (window_change_signal): Don't try to get the size of a
8482 suspended tty frame.
8483 * term.c (Fresume_tty): Resize if the size has changed while the
8484 tty was suspended.
8485
4d18a7a2
DN
8486 * alloc.c (mark_stack): Properly conditionalize previous change.
8487
8984df7c
JB
84882009-01-30 Juanma Barranquero <lekktu@gmail.com>
8489
8490 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
8491 * w32term.c (w32_read_socket) [SYNC_INPUT]:
8492 Remove; this code is not used on Windows.
8493
75f4f1ac
EZ
84942009-01-30 Eli Zaretskii <eliz@gnu.org>
8495
8496 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
8497 EOLs that also has stray ^M characters.
8498
07a1e794
JB
84992009-01-30 Juanma Barranquero <lekktu@gmail.com>
8500
8501 * atimer.c (run_timers, alarm_signal_handler):
8502 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
8503 * w32inevt.c (w32_console_read_socket):
8504 * w32term.c (w32_read_socket):
8505 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
8506
a8b11cc9
CY
85072009-01-30 Chong Yidong <cyd@stupidchicken.com>
8508
8509 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
8510 Initialize it as a relative filename pattern.
8511 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
8512 (Fcall_process_region): Simplify temp file creation using
8513 temporary-file-directory.
8514
c279587b
EZ
85152009-01-29 Eli Zaretskii <eliz@gnu.org>
8516
8517 * msdos.c: Rename pending_signals to msdos_pending_signals.
8518 (sig_suspender, sigprocmask): Adjust.
8519
a8fe3242
CY
85202009-01-29 Chong Yidong <cyd@stupidchicken.com>
8521
8522 * keyboard.c (pending_signals): New var.
8523 (poll_for_input, input_available_signal, init_keyboard): Set it.
8524 (process_pending_signals): New function.
8525
8526 * lisp.h (QUIT): Check pending_signals instead of
8527 interrupt_input_pending. Use process_pending_signals.
8528
51d861de 8529 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 8530
51d861de 8531 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
8532
8533 * sysdep.c (emacs_write): Use process_pending_signals.
8534
8535 * xterm.c (XTread_socket): Update pending_signals.
8536
8537 * w32term.c (w32_read_socket): Update pending_signals.
8538
8539 * w32inevt.c (w32_console_read_socket): Update pending_signals.
8540
6570a1c4
KH
85412009-01-29 Kenichi Handa <handa@m17n.org>
8542
8543 * xftfont.c (xftfont_has_char): New function.
8544 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
8545
d72a4afa
AR
85462009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
8547
8548 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
8549 under GNUstep.
8550 (ns_query_color): New declaration.
8551
8552 * nsterm.m (ns_confirm_quit): New variable.
8553 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
8554 (EmacsApp-applicationShouldTerminate:): Use it.
8555 (EmacsPrefsController): Let user set it.
8556 (ns_query_color): New function.
8557 (ns_defined_color): Use it.
8558 (ns_initialize): Drop.
8559 (ns_term_init): Add two lines from ns_initialize(), and set
8560 input_interrupt_mode to nil.
8561
8562 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 8563 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 8564
9fe78804
KH
85652009-01-28 Kenichi Handa <handa@m17n.org>
8566
8567 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
8568 (fontset_get_font_group): Remember that no font-group is specified
8569 for C.
9fe78804 8570
fa57de36
CY
85712009-01-27 Chong Yidong <cyd@stupidchicken.com>
8572
930600e9
CY
8573 * fns.c (concat): Check for string overflow (bug#1787).
8574
fa57de36
CY
8575 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
8576 Quadruple undo limits (bug#1501).
8577
7179ce7b
KH
85782009-01-27 Kenichi Handa <handa@m17n.org>
8579
8580 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
8581 directly use GT_Get_Char_index.
8582
8583 * xftfont.c (struct xftfont_info): New member `index'.
8584
8585 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 8586 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 8587
5be8fcc0
CY
85882009-01-26 Kenichi Handa <handa@m17n.org>
8589
8590 * fontset.c (fontset_find_font): Fix handling of non-cons return
8591 value of fontset_get_font_group.
8592 (fontset_font): Revert last change.
8593
19ae3e61
JR
85942009-01-26 Jason Rumney <jasonr@gnu.org>
8595
8596 * w32font.c (w32font_list_internal): Return quickly if registry is
8597 unknown. Simplify final return.
8598 (add_font_entity_to_list): Break complex logic down into more
8599 manageable chunks. Move unknown registry check to
8600 w32font_list_internal.
8601
8612b71a
AR
86022009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
8603
8604 Changes to remove Feval calls from GUI under NS.
8605
d8038940
JB
8606 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
8607 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
8608 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
8609
8610 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
8611 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
8612 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
8613 instead of NON_ASCII_KEYSTROKE_EVENT.
8614 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
8615 (EmacsApp-applicationShouldTerminate:): Query user.
8616 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
8617 instead of Feval.
8618
8619 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
8620
8621 * keyboard.c (kbd_buffer_get_event): Check for it.
8622 (keys_of_keyboard): Define lispy keys for
8623 ns-put/unput-working-text.
8624
8625 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
8626 versions.
8627 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
8628
6288ae55
CY
86292009-01-25 Chong Yidong <cyd@stupidchicken.com>
8630
8631 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 8632 setting current_buffer directly. (Bug#2044)
6288ae55 8633
289e7f8f
CY
86342009-01-24 Chong Yidong <cyd@stupidchicken.com>
8635
5ce87308 8636 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 8637 any work. (Bug#1952, bug#1990).
5ce87308 8638
64cc3cf6 8639 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 8640
b3243e6f
AR
86412009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
8642
8643 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
8644 (ns_no_defaults): New declaration.
8645 (main): Use it.
e0d2e69a 8646
d900b2af 8647 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 8648
d900b2af 8649 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 8650
d900b2af
AR
8651 * nsterm.m (ns_no_defaults): New variable.
8652 (ns_initialize): Don't read defaults when ns_no_defaults.
8653 (EmacsView-readSelectionFromPasteboard:)
8654 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 8655 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
8656 (ns_dumpglyphs_stretch): New function.
8657 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 8658 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 8659
e0d2e69a
AR
8660 * nsimage.m (setPixmapData:): Set to ignore image DPI.
8661
3ac71f5d
CY
86622009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
8663
8664 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
8665 call for Sparc64.
8666
3fe53a83
AR
86672009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8668
8669 * nsfns.m:
8670 * nsgui.h:
8671 * nsmenu.m:
8672 * nsselect.m:
8673 * nsterm.h:
8674 * nsterm.m: Remove '23' comments that indicated code added during
8675 update from emacs-20 -> emacs-23.
8676
10f87c6f 86772009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
8678
8679 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 8680 ns_alternate_modifier. (Bug#1217)
a3b53a85 8681
c7cef62d
AR
8682 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
8683 Display all shortcuts, including those w/o super modifier.
8684
575fb8bd
AR
8685 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
8686
918b848b
CY
86872009-01-22 Chong Yidong <cyd@stupidchicken.com>
8688
8689 * fileio.c (Vwrite_region_post_annotation_function)
8690 (Vwrite_region_annotation_buffers): New vars.
8691 (build_annotations_unwind): Just reset
8692 Vwrite_region_annotation_buffers.
8693 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
8694 Call write-region-post-annotation-function.
8695 (build_annotations): Add to Vwrite_region_annotation_buffers if
8696 buffer changes.
8697
a39e2539
AR
86982009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8699
8700 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
8701 Tiger.
51d861de
SM
8702 * nsfns.m (ns_do_applescript):
8703 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 8704
35ed44db
AR
87052009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
8706
8707 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
8708
cbe0b5bf
AR
87092009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8710
8711 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 8712
6049d3a0
AR
8713 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
8714
8715 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
8716 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
8717 handle Ctrl-tab. (Bug#1841)
8718 (ns_get_color): Use unsigned long long for scanned hex string value.
8719 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 8720 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 8721 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 8722 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 8723 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 8724 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 8725 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 8726
d3810c21 8727 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 8728 DPI. (Bug#1316)
d3810c21
AR
8729 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
8730 values in onTiger section.
4c7077c3 8731
e301e634
CY
87322009-01-19 Chong Yidong <cyd@stupidchicken.com>
8733
7f82490b
CY
8734 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
8735 Check return value of font_spec_from_name.
64cc3cf6 8736 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
8737
8738 * font.c (font_spec_from_name): Return Qnil if font name could not
8739 be parsed.
8740 (font_parse_name): Treat a `?' character as part of an XLFD.
8741
e301e634
CY
8742 * fns.c (Fsubstring): Doc fix.
8743
1c0db158
KH
87442009-01-19 Kenichi Handa <handa@m17n.org>
8745
51d861de 8746 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
8747 (ftfont_list): Likewise.
8748
acf20901
JB
87492009-01-18 Juanma Barranquero <lekktu@gmail.com>
8750
fff4e459
JB
8751 * dbusbind.c (Fdbus_register_signal):
8752 * process.c (conv_sockaddr_to_lisp):
8753 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
8754
acf20901
JB
8755 * callproc.c (Fgetenv_internal): Doc fix.
8756
e7abcdfb
CY
87572009-01-16 Chong Yidong <cyd@stupidchicken.com>
8758
8759 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
8760 it is not even used.
8761
b60861e6
GM
87622009-01-16 Glenn Morris <rgm@gnu.org>
8763
8764 * font.c (Ffont_variation_glyphs): Silence compiler.
8765
8db52afe
JB
87662009-01-15 Juanma Barranquero <lekktu@gmail.com>
8767
8768 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
8769 Reported by David Robinow <drobinow@gmail.com>.
8770
4cddb209
KH
87712009-01-15 Kenichi Handa <handa@m17n.org>
8772
51d861de 8773 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 8774
f247f67b
JR
87752009-01-14 Jason Rumney <jasonr@gnu.org>
8776
8777 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 8778 never a fontset. (Bug#1562)
f247f67b 8779
f56a4450
KH
87802009-01-14 Kenichi Handa <handa@m17n.org>
8781
8782 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 8783 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 8784
4e99855e
CY
87852009-01-13 Chong Yidong <cyd@stupidchicken.com>
8786
8787 * font.c (font_clear_prop): If clearing the family, clear the font
8788 width index too.
8789
fff4e459 8790 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 8791
24f01470
JB
87922009-01-12 Juanma Barranquero <lekktu@gmail.com>
8793
8794 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
8795 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
8796 functions, use sizeof.
8797
a41240a3
MR
87982009-01-12 Martin Rudalics <rudalics@gmx.at>
8799
8800 * keyboard.c (read_char): Fix case where last_nonmenu_event
8801 returned a bad value with submenus. (Bug#447)
8802
944636b8
CY
88032009-01-12 Chong Yidong <cyd@stupidchicken.com>
8804
8805 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
8806 family, clear the font width index too.
8807
0dad7c6f
JR
88082009-01-11 Jason Rumney <jasonr@gnu.org>
8809
8810 * keyboard.c (cmd_error_internal): Exit when errors occur before
8811 frame creation and not in daemon mode. (Bug#1836)
8812
7c2363af
CY
88132009-01-10 Chong Yidong <cyd@stupidchicken.com>
8814
8815 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
8816 of a display vector, backtrack.
8817 (try_window_reusing_current_matrix): Check glyph type before
8818 referencing charpos member.
8819
97b1b294
EZ
88202009-01-10 Eli Zaretskii <eliz@gnu.org>
8821
8822 Fix Bug #876:
8823
8824 * coding.c (inhibit_null_byte_detection): New variable.
8825 (detect_coding, detect_coding_system): Don't pay attention to null
8826 bytes if inhibit_null_byte_detection is non-zero.
51d861de 8827 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
8828 <inhibit-iso-escape-detection>: Doc fix.
8829
4624b6e3
JR
88302009-01-09 Jason Rumney <jasonr@gnu.org>
8831
8832 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 8833 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
8834 Only report Unicode Plane 2 fonts as unicode-sip.
8835
323b840c
CY
88362009-01-09 Chong Yidong <cyd@stupidchicken.com>
8837
51d861de
SM
8838 * xfaces.c (Fx_font_family_list): Delete function.
8839 Move compatibility version to faces.el.
323b840c 8840
51d861de 8841 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 8842
eba7400d
MR
88432009-01-09 Martin Rudalics <rudalics@gmx.at>
8844
8845 * frame.c (x_set_frame_parameters): Remember requested value for
8846 fullscreen before it's reset by the parameter handler.
8847
4b09796d
GM
88482009-01-09 Glenn Morris <rgm@gnu.org>
8849
8850 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 8851 (last_command_event): ... and update all users.
4b09796d
GM
8852 (last_input_char): For clarity, rename to...
8853 (last_input_event): ... and update all users.
8854 (last-command-char, last-input-char): Move to subr.el as aliases.
8855 * cmds.c, commands.h: Update for last_command_char rename.
8856
14ccea62
CY
88572009-01-08 Chong Yidong <cyd@stupidchicken.com>
8858
51d861de 8859 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 8860
5f004711
JR
88612009-01-08 Jason Rumney <jasonr@gnu.org>
8862
8863 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
8864 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
8865 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
8866 Don't declare.
fff4e459 8867 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
8868 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
8869
b71f6f73
KH
88702009-01-07 Kenichi Handa <handa@m17n.org>
8871
50b06221 8872 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 8873 remember the coding system used for decoding in
50b06221
KH
8874 coding_system (Bug#1039).
8875
b71f6f73 8876 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 8877 breaking the loop. (Bug#870)
b71f6f73
KH
8878 (decode_coding_utf_16, decode_coding_emacs_mule)
8879 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8880 (decode_coding_charset): Likewise.
8881
56f668f7
MR
88822009-01-05 Martin Rudalics <rudalics@gmx.at>
8883
8884 * frame.c (x_set_frame_parameters): Make sure height (width) get
8885 applied when fullwidth (fullheight) is set. (Bug#1522)
8886
5da9424d
JB
88872009-01-04 Juanma Barranquero <lekktu@gmail.com>
8888
8889 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
8890 (utc_base): Declare as ULONGLONG, not long double.
8891 (convert_time_raw): Delete.
8892 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
8893 (initialize_utc_base): New function.
8894 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
8895 (convert_from_time_t): Use initialize_utc_base; compute result with
8896 64-bit arithmetic.
8897 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
8898
c4605e09
EZ
88992009-01-03 Eli Zaretskii <eliz@gnu.org>
8900
9acef61c 8901 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
8902 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
8903 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
8904 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
8905 [!subprocesses]: Define.
8906 (syms_of_process) [!subprocesses]: Intern and staticpro them.
8907 (Flist_system_processes, Fsystem_process_attributes)
8908 [!subprocesses]: Call list_system_processes and
8909 system_process_attributes instead of returning Qnil.
8910
9acef61c
JB
8911 * dosfns.c (system_process_attributes, list_system_processes):
8912 New functions.
c4605e09
EZ
8913
8914 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
8915
8916 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
8917 Don't use the default (no-op) implementation.
8918
8b7d0a16
JR
89192009-01-03 Jason Rumney <jasonr@gnu.org>
8920
a6d46bc1
JR
8921 * keyboard.c (parse_modifiers_uncached): Wheel events are
8922 clicks (bug#687).
8923
8b7d0a16
JR
8924 * w32term.c (x_query_colors, x_query_color): New functions.
8925
8926 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
8927 (svg_load_image): Cast returned pointers from dynamically loaded
8928 functions. Eliminate W32 specific code.
8929
bfe11752
DN
89302009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
8931
89e2438a
DN
8932 * nsfns.m (x_set_foreground_color, x_set_background_color)
8933 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
8934 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
8935 x_ prefix instead of ns_. Update references.
8936 (syms_of_nsfns): Add a FIXME comment.
8937
8938 * nsterm.m (x_set_cursor_type): New prototype.
8939 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
8940
bfe11752
DN
8941 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
8942 for Solaris instead of incorrectly providing Qutime and Qcutime.
8943
031da700
EZ
89442009-01-02 Eli Zaretskii <eliz@gnu.org>
8945
8946 * w32.c (process_times): Compute sum of utime and stime.
8947 (system_process_attributes): Add Qtime to the alist.
8948
8949 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
8950 and add them to the alist.
8951
8952 * process.c (top level) <Qtime, Qctime>: New variables.
8953 (syms_of_process): staticpro them.
8954 (Fsystem_process_attributes): Add their documentation to the doc
8955 string.
8956
8957 * process.h: Declare Qtime and Qctime.
8958
df23bf08
JR
89592009-01-02 Jason Rumney <jasonr@gnu.org>
8960
9acef61c 8961 * image.c (Qgobject): New symbol.
df23bf08
JR
8962 (syms_of_image): Initialize it.
8963 (init_svg_functions): Load some functions from gobject library.
8964
5bbdf7aa
DN
89652009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
8966
8967 * frame.c (make_terminal_frame): Remove redundant code and useless
8968 block.
8969
63136da6
AS
89702009-01-01 Andreas Schwab <schwab@suse.de>
8971
8972 * process.c (conv_sockaddr_to_lisp): Add workaround for
8973 getsockname bug on BSD.
8974
9ef69046
CY
89752009-01-01 Chong Yidong <cyd@stupidchicken.com>
8976
d6fafbe0
CY
8977 * xfns.c (x_create_tip_frame): Set border width of the X window.
8978
51d861de 8979 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 8980
f9c34147
JR
89812009-01-01 Jason Rumney <jasonr@gnu.org>
8982
9acef61c 8983 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
8984 Don't block input, as per earlier xterm.c changes.
8985
f5497e45
AR
89862008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
8987
8988 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
8989 (ns_appkit_version_int): New function.
8990 (x-server-version): Use ns_appkit_version_int and follow 21+
8991 convention of returning 3 integers.
8992
c19cab20
KH
89932008-12-30 Kenichi Handa <handa@m17n.org>
8994
8995 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
8996 (CHAR_SURROGATE_PAIR_P): New macro.
8997
8998 * font.h (struct font_driver): New member get_variation_glyphs.
8999
9acef61c 9000 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
9001 (Ffont_variation_glyphs): New function.
9002 (syms_of_font): Defsubr it.
9003
9004 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
9005 ftfont_variation_glyphs.
9006 (setup_otf_gstring): New function.
9007 (ftfont_drive_otf): Use it.
9008 (ftfont_shape_by_flt): Handle variation selector.
9009 (ftfont_variation_glyphs): New function.
9010
28cd591f
MR
90112008-12-30 Martin Rudalics <rudalics@gmx.at>
9012
9013 * frame.c (Vemacs_iconified): Remove.
9014
7f714baf
JR
90152008-12-30 Jason Rumney <jasonr@gnu.org>
9016
9017 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 9018 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 9019
9d2d22ab
CY
90202008-12-30 Chong Yidong <cyd@stupidchicken.com>
9021
9022 * indent.c (Fvertical_motion): Don't advance iterator if we have
9023 reseated to the desired position.
9024
9025 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
9026 checking for pos match.
9027
545312c2
KH
90282008-12-30 Kenichi Handa <handa@m17n.org>
9029
1ede3eb6
KH
9030 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
9031 just get the low 8-bit of the code.
9032
545312c2
KH
9033 * font.c (font_intern_prop): Validate str as multibyte.
9034
bd7bbf29
DN
90352008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9036
31e0750e
DN
9037 * dispextern.h (struct face): Move lface and hash from the middle
9038 of bitfields.
9039
bd7bbf29
DN
9040 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
9041
b5672e7c
DN
90422008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
9043
9044 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
9045 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
9046 instead of intervals.h.
9047
d704470f
AS
90482008-12-26 Andreas Schwab <schwab@suse.de>
9049
9050 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
9051 cons.
9052
54b33868
MR
90532008-12-26 Martin Rudalics <rudalics@gmx.at>
9054
9055 * textprop.c (Qminibuffer_prompt): New variable.
9056 (syms_of_textprop): Initialize it.
9057 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
9058 in minibuffer-prompt face. (Bug#1662)
9059
40b615d6
JR
90602008-12-25 Jason Rumney <jasonr@gnu.org>
9061
9062 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
9063
baae5c2d
JR
90642008-12-24 Jason Rumney <jasonr@gnu.org>
9065
9066 * ralloc.c (r_alloc_reset_variable): New function.
9067
9068 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 9069 record of what points where. (Bug#716)
baae5c2d 9070
a9051c88
DN
90712008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
9072
9073 * minibuf.c (read_minibuf): Follow the non-interactive case when
9074 running as a daemon, before detaching.
9075
8b146312
AS
90762008-12-22 Andreas Schwab <schwab@suse.de>
9077
9078 * buffer.c (init_buffer): Use realloc instead of xrealloc.
9079 * gtkutil.c (free_widget_value): Use xfree instead of free.
9080
56f2de10
MR
90812008-12-22 Martin Rudalics <rudalics@gmx.at>
9082
9083 * frame.c (delete_frame): New function derived from
9084 Fdelete_frame to handle Qnoelisp value for FORCE argument.
9085 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
9086 (Fdelete_frame): Call delete_frame. Remove line from doc-string
9087 saying that FORCE non-nil doesn't run `delete-frame-functions'.
9088 * frame.h: Extern delete_frame.
9089 * window.c (window_loop):
9090 * terminal.c (delete_terminal):
9091 * xterm.c (x_connection_closed):
9092 * xfns.c (Fx_hide_tip):
9acef61c 9093 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 9094
1fc200d6
JR
90952008-12-21 Jason Rumney <jasonr@gnu.org>
9096
9097 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
9098 when character maps to .notdef character.
9099
5e252df2
SM
91002008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
9101
9102 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
9103
99b72cc4
JR
91042008-12-20 Jason Rumney <jasonr@gnu.org>
9105
9106 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 9107 a graphical frame on Windows. (Bug#1325)
99b72cc4 9108
acc49a52
JD
91092008-12-20 Jan Djärv <jan.h.d@swipnet.se>
9110
9111 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
9112
6ea15123
CY
91132008-12-20 Chong Yidong <cyd@stupidchicken.com>
9114
9115 * minibuf.c (Fread_buffer): Doc fix.
9116
b2dab6c8
JR
91172008-12-20 Jason Rumney <jasonr@gnu.org>
9118
54ea0c87 9119 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 9120 server name in UNC paths. (Bug#719)
54ea0c87 9121
b2dab6c8 9122 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 9123 charbuf. (Bug#1035)
b2dab6c8 9124
6d1921be
DN
91252008-12-19 Daniel Engeler <engeler@gmail.com>
9126
9127 * sysdep.c (serial_configure): Fix typo.
9128
53934c98
DN
91292008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9130
9131 * sysdep.c: Include alloca.h.
f4f634e8
DN
9132 (system_process_attributes): Add implementation for Solaris.
9133
9134 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 9135
06e111a6
DN
91362008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
9137
9138 Reorganize implementation of Flist_system_processes and
9139 Fsystem_process_attributes. No functional changes.
9140 * process.c: Don't #include pwd.h, grp.h and limits.h.
9141 (Flist_system_processes): Just call list_system_processes.
9142 (Fsystem_process_attributes): Just call system_process_attributes.
9143 (procfs_list_system_processes, time_from_jiffies)
9144 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9145 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
9146
9147 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
9148 (list_system_processes): Rename from
9149 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
9150 Provide a do nothing implementation.
9151 (system_process_attributes): Rename from
9152 procfs_list_system_processes.
9153 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 9154 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
9155
9156 * w32.c (list_system_processes): Rename from
9157 w32_list_system_processes.
9158 (system_process_attributes): Rename from
9159 w32_system_process_attributes.
9160
9161 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
9162
9163 * process.h (w32_list_system_processes)
9164 (w32_system_process_attributes): Remove.
362654a6
JB
9165 (list_system_processes, system_process_attributes):
9166 New prototypes.
06e111a6 9167
6a705b23
KH
91682008-12-19 Kenichi Handa <handa@m17n.org>
9169
9170 * xfont.c (xfont_decode_coding_xlfd): New function.
9171 (xfont_encode_coding_xlfd): New function.
9172 (xfont_list_pattern): Decode XLFD by iso-8859-1.
9173 (xfont_list): Decode and encode XLFD by iso-8859-1.
9174 (xfont_match): Likewise.
9175 (xfont_list_family): Likewise.
9176 (xfont_open): Likewise.
9177
d66c0241 9178 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
9179 names are utf-8.
9180
d66c0241 9181 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
9182 names are utf-8.
9183
5a130941
JD
91842008-12-18 Jan Djärv <jan.h.d@swipnet.se>
9185
9186 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
9187 changed.
bfd20325
JD
9188 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
9189 clicked on a detached tool bar button.
5a130941 9190
fd95644b
DN
91912008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
9192
9193 * emacs.c (main): Print and error and exit when no data is read
9194 from the pipe.
9195
e6eee6ae
JR
91962008-12-17 Jason Rumney <jasonr@gnu.org>
9197
9198 * w32font.c (w32font_has_char): Always return -1.
9199
a35dd56b
KH
92002008-12-16 Kenichi Handa <handa@m17n.org>
9201
9202 * font.c (font_open_entity): Fix previous change.
9203
0e3635c2
DN
92042008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
9205
9206 * process.c: Include <limits.h>.
9207
d4835507 92082008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
9209
9210 * font.c (font_update_drivers): Fix mistake in reconstructing the
9211 driver list.
9212
92132008-12-16 Chong Yidong <cyd@stupidchicken.com>
9214
9215 * font.c (font_clear_cache): Fix format of font cache data.
9216
e2cbc401
CY
92172008-12-15 Chong Yidong <cyd@stupidchicken.com>
9218
9219 * xftfont.c (xftfont_open): Free Xft font pattern if
9220 XftFontOpenPattern fails.
9221
9222 * xterm.c (x_free_frame_resources): Remove extraneous call to
9223 free_frame_faces.
9224
b131d535
CY
92252008-12-13 Chong Yidong <cyd@stupidchicken.com>
9226
9227 * xterm.c (x_delete_display): Move xim_close_dpy call to
9228 x_delete_terminal.
9229 (x_delete_terminal): Call xim_close_dpy.
9230
e6df5336
JR
92312008-12-13 Jason Rumney <jasonr@gnu.org>
9232
9233 * w32font.c (intern_font_name): New function.
9234 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
9235 (w32font_open_internal, Fx_select_font): Decode font name.
9236 (fill_in_logfont, list_all_matching_fonts): Encode font name.
9237
9238 * w32font.h (intern_font_name): Declare new function.
9239
9240 * w32uniscribe.c (add_opentype_font_name_to_list):
9241 Use intern_font_name.
9242
20d68145
CY
92432008-12-13 Chong Yidong <cyd@stupidchicken.com>
9244
9f2554de
CY
9245 * frame.c (Fdelete_frame): Call free_font_driver_list.
9246
3d9bec9a
CY
9247 * font.c (free_font_driver_list): Implement missing function.
9248
20d68145
CY
9249 * w32term.c (w32_term_init): Don't initialize the image cache
9250 here; it will be done in init_frame_faces.
9251
9252 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
9253 (struct x_display_info): Remove unused member null_pixel. New
9254 member xim_callback_data.
9255
9256 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
9257 (xim_initialize): Save pointer to callback function data.
9258 (xim_close_dpy): Free callback function data. Call XCloseIM,
9259 reverting 2008-11-04 change by David Smith.
9260 (x_term_init): Don't initialize the image cache here; it will be
9261 done in init_frame_faces. Remove ancient "null_pixel" cruft.
9262 (x_delete_display): Free x_dnd_atoms member.
9263
96f9306b
KH
92642008-12-13 Kenichi Handa <handa@m17n.org>
9265
6dec9044
JB
9266 * font.c (font_rescale_ratio): Moved from xfaces.c.
9267 Argument type changed. Handle a font-spec too.
96f9306b 9268 (font_score): Check Vface_font_rescale_alist.
6dec9044 9269 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
9270
9271 * xfaces.c (font_rescale_ratio): Moved to font.c.
9272
8d5b4964
CY
92732008-12-13 Chong Yidong <cyd@stupidchicken.com>
9274
9275 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
9276
e6df5336
JR
92772008-12-12 Jason Rumney <jasonr@gnu.org>
9278
9279 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
9280 Vwindow_system_version to the real w32 major version.
9281
97c6058a
DN
92822008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
9283
9284 * term.c (init_tty): Move setting the terminal name before the
9285 potential user: maybe_fatal.
9286
ec4e88d7
CY
92872008-12-11 Chong Yidong <cyd@stupidchicken.com>
9288
d4835507
JB
9289 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
9290 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 9291
b4233ec9
JR
92922008-12-11 Jason Rumney <jasonr@gnu.org>
9293
8ec71e23 9294 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 9295 SYMBOL_CHARSET. (Bug#547)
8ec71e23 9296
b4233ec9 9297 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 9298 size for surrogates. (Bug#1096, bug#872)
b4233ec9 9299
011a0143
JB
93002008-12-11 Juanma Barranquero <lekktu@gmail.com>
9301
9302 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
9303
3c309f34
JB
93042008-12-11 Juanma Barranquero <lekktu@gmail.com>
9305
9306 * process.c (Fsystem_process_attributes, syms_of_process):
9307 Fix typo in name of Ssystem_process_attributes.
9308 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
9309
fedc6ab5
JB
93102008-12-11 Juanma Barranquero <lekktu@gmail.com>
9311
9312 * syntax.c (Fmodify_syntax_entry): Doc fix.
9313
ba3de0e8
JB
93142008-12-10 Juanma Barranquero <lekktu@gmail.com>
9315
9316 * font.c (Ffont_spec): Move usage to end of docstring.
9317
174f1c74
JR
93182008-12-10 Jason Rumney <jasonr@gnu.org>
9319
9320 * w32font.c (Qcham): New symbol.
9321 (font_supported_scripts): Add cham, and comments for other new
9322 scripts in bitfield from OpenType spec.
9d32f818
JR
9323 (add_font_entity_to_list): Limit unicode-sip fonts to those that
9324 contain characters beyond the bmp.
174f1c74 9325
7b649478
KH
93262008-12-10 Kenichi Handa <handa@m17n.org>
9327
9328 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 9329 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
9330 Qunicode_sip.
9331
2133e2d1
JB
93322008-12-10 Juanma Barranquero <lekktu@gmail.com>
9333
9334 * coding.c (QCdefault_char): Rename from QCdefalut_char.
9335 (Fcoding_system_put): Use QCdefault_char.
9336 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
9337
9af886ee
CY
93382008-12-09 Chong Yidong <cyd@stupidchicken.com>
9339
74d819eb
CY
9340 * xftfont.c (syms_of_xftfont): Fix typo.
9341
4ccfa1c0 9342 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 9343
7c19d3ae
DN
93442008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
9345
9346 * emacs.c (main): Close daemon_pipe on exec.
9347
567826bb
CY
93482008-12-08 Chong Yidong <cyd@stupidchicken.com>
9349
9350 * termchar.h (struct tty): New members termcap_term_buffer and
9351 termcap_strings_buffer.
9352
9353 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 9354 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
9355 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
9356 All callers changed.
9357 (init_tty): Store termcap data and string buffers in new struct
9358 tty members termcap_term_buffer and termcap_strings_buffer.
9359 (delete_tty): Free them.
4ccfa1c0 9360 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 9361
aa96c42b
SZ
93622008-12-07 Seiji Zenitani <zenitani@mac.com>
9363
9364 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 9365 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 9366
b7e1d896
CY
93672008-12-06 Chong Yidong <cyd@stupidchicken.com>
9368
9369 * coding.c (make_conversion_work_buffer): Disable buffer
9370 modification hooks in the work buffer.
9371
b5ec91a5
EZ
93722008-12-05 Eli Zaretskii <eliz@gnu.org>
9373
9374 * process.c (procfs_system_process_attributes): If `nread' has a
9375 negative value, assign zero to it.
9376
a5d2a52b
CY
93772008-12-05 Chong Yidong <cyd@stupidchicken.com>
9378
68c5540b 9379 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 9380
7bf1bb21
KH
93812008-12-05 Kenichi Handa <handa@m17n.org>
9382
9383 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
9384 second character is a combining character.
9385
2fdc7d00
EZ
93862008-12-05 Eli Zaretskii <eliz@gnu.org>
9387
9388 * process.c (procfs_system_process_attributes): Don't use cmd,
9389 cmdsize, and q without initializing them first.
9390
bf6bfba8
JR
93912008-12-04 Jason Rumney <jasonr@gnu.org>
9392
9393 * w32font.c (w32font_draw): Initialize orig_clip before getting
9394 it, and delete it when finished.
9395
a3b1a468
DN
93962008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
9397
9398 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
9399 case when running as a daemon before detaching.
9400
8b8be8eb
JB
94012008-12-03 Juanma Barranquero <lekktu@gmail.com>
9402
805f2638 9403 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 9404
b1bde622
KH
94052008-12-03 Kenichi Handa <handa@m17n.org>
9406
e500c47d
KH
9407 * font.c (font_at): Set `multibyte' at first.
9408
ca516334
KH
9409 * coding.c (decode_coding_charset): Check type of an element of
9410 vector VALIDS.
7bf1bb21 9411 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 9412
4ccfa1c0 9413 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
9414 (font_for_char): Likewise.
9415
1e5ecd37
CY
94162008-12-03 Chong Yidong <cyd@stupidchicken.com>
9417
d5b01609 9418 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
9419 (font_update_lface): Handle fonts with corrupted size specs,
9420 i.e. non-int and non-float.
d5b01609 9421
11e3a6e4 9422 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 9423 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 9424 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 9425
ab06788b
CY
9426 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
9427
1e5ecd37 9428 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 9429 underline_minimum_offset for underline position.
1e5ecd37 9430
63c125ab
DN
94312008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
9434
9435 * character.c (c_string_width): Specify the type for LEN.
9436
3a8406e1
KH
94372008-12-03 Kenichi Handa <handa@m17n.org>
9438
4ccfa1c0 9439 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 9440 (decode_coding_utf_8): Likewise.
4ccfa1c0 9441 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 9442 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 9443
651df7d9
CY
94442008-12-02 Chong Yidong <cyd@stupidchicken.com>
9445
9446 * keyboard.c (make_lispy_position): Only use PT if the selected
9447 window is current.
9448
1f625c6c
AS
94492008-12-02 Andreas Schwab <schwab@suse.de>
9450
f7741ce9
AS
9451 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
9452
1f625c6c
AS
9453 * doprnt.c (doprnt1): Fix size of charbuf.
9454
92bc2678
CY
94552008-12-02 Chong Yidong <cyd@stupidchicken.com>
9456
9457 * keyboard.c (timer_check): Revert last change.
9458
93b9e8cc
JB
94592008-12-02 Juanma Barranquero <lekktu@gmail.com>
9460
9461 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
9462
fd7a37d5
JB
94632008-12-01 Juanma Barranquero <lekktu@gmail.com>
9464
9465 * makefile.w32-in: Update dependencies.
9466 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
9467
c115043b
AS
94682008-12-01 Andreas Schwab <schwab@suse.de>
9469
9470 * font.c (register_font_driver): Use xmalloc.
9471 (font_put_frame_data): Likewise.
9472
f5668d2a
CY
94732008-12-01 Chong Yidong <cyd@stupidchicken.com>
9474
860d96be
CY
9475 * xfaces.c (realize_x_face): Make abort condition clearer.
9476
f5668d2a
CY
9477 * gtkutil.c (update_frame_tool_bar): Initialize variable.
9478
379c17e7
CY
94792008-11-30 Chong Yidong <cyd@stupidchicken.com>
9480
9481 * keyboard.c (timer_check): After a timer runs, ensure that the
9482 selected window's buffer is current.
9483
35f36d65
JB
94842008-11-30 Juanma Barranquero <lekktu@gmail.com>
9485
f952c61c
JB
9486 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
9487 It was accidentally restored by the Unicode merge.
9488
35f36d65
JB
9489 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
9490
b23077df
JB
94912008-11-29 Juanma Barranquero <lekktu@gmail.com>
9492
9493 * w32proc.c: Include "coding.h".
9494 (Fw32_short_file_name): Encode filename passed to Windows API.
9495 (Fw32_long_file_name): Encode filename passed to Windows API and
9496 decode back the result. (Bug#1433)
9497
b8ebe9dd
KH
94982008-11-29 Kenichi Handa <handa@m17n.org>
9499
8cc53f96
KH
9500 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
9501 not before accessing it.
9502
b8ebe9dd
KH
9503 * charset.c (Fdefine_charset_internal): After calculating
9504 min_char, max_char, and fastmap, copy the charset structure again.
9505 (encode_char): Fix the previous change.
9506
59bc82c0
SZ
95072008-11-28 Seiji Zenitani <zenitani@mac.com>
9508
9509 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
9510
9511 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
9512
9513 * nsterm.m (x_set_frame_alpha): New function.
9514
32247e3d
EZ
95152008-11-27 Eli Zaretskii <eliz@gnu.org>
9516
9517 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
9518
b003e5ff
JB
95192008-11-27 Juanma Barranquero <lekktu@gmail.com>
9520
9521 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
9522 pointer to check_face_name.
9523
708550f5
KH
95242008-11-27 Kenichi Handa <handa@m17n.org>
9525
9526 * category.h (SET_CATEGORY_SET): Call set_category_set.
9527 (set_category_set): Extern it.
9528
9529 * category.c (hash_get_category_set): New function.
9530 (Fmodify_category_entry): Adjusted for the change of
9531 char_table_ref_and_range. Call hash_get_category_set to get a
9532 category set to store in the table.
9533
9534 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
9535 Funify_charset.
9536
2ae37cf0 9537 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
9538 (DECODE_CHAR): Check if the decoder vector is ready.
9539 (ENCODE_CHAR): Check if the encoder char-table is ready.
9540 (maybe_unify_char): Extern it.
9541
9542 * charset.c (Vchar_unified_charset_table): Delete it.
9543 (inhibit_load_charset_map): New variable.
9544 (temp_charset_work): New variable.
9545 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
9546 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
9547 New macros.
9548 (load_charset_map): Meaning of control_flag changed. If
9549 inhibit_load_charset_map is nonzero, setup a table in
9550 temp_charset_work.
9551 (load_charset): New argument control_flag.
9552 (map_charset_for_dump): New function.
9553 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
9554 map_charset_for_dump.
9555 (Fdefine_charset_internal): If the charset method is MAP, load
9556 mapping tables by calling load_charset.
9557 (Funify_charset): Don't load a mapping table but directly set
9558 Vchar_unify_table.
9559 (maybe_unify_char): New function.
9560 (decode_char): Don't handle the deleted method MAP_DEFERRED.
9561 Handle the case of inhibit_load_charset_map being nonzero.
9562 (encode_char): Don't handle the deleted method MAP_DEFERRED.
9563 Handle the case of inhibit_load_charset_map being nonzero.
9564 (Fclear_charset_maps): Just free temp_charset_work.
9565 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
9566 variable.
9567
9568 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
9569 change of char_table_ref_and_range.
9570 (char_table_ref_and_range): Change the meaning of argument FROM
9571 and TO. Now the caller must provide initial values for *FROM
9572 and *TO.
9573
9574 * fontset.c (fontset_add): Adjusted for the change of
9575 char_table_ref_and_range.
9576 (fontset_get_font_group): Likewise.
9577 (Ffontset_info): Likewise.
9578
9579 * keymap.c (describe_vector): Adjusted for the change of
9580 char_table_ref_and_range. For char-table, put boundary between
9581 non-ASCII and 8-bit characters.
9582
9583 * print.c (print_object): For bool-vector, delete unnecessary
9584 check of ASCII_BYTE_P.
9585
9196133b
JR
95862008-11-26 Jason Rumney <jasonr@gnu.org>
9587
9588 * w32font.c (w32font_open_internal): Don't include external
9acef61c 9589 leading in font height. (Bug#879)
9196133b 9590
9f688acf
GM
95912008-11-26 Glenn Morris <rgm@gnu.org>
9592
9593 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
9594 redefinition with ifdef. (Bug#1383)
9595
90d19aff
AR
95962008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9597
9598 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
9599
4ccfa1c0 96002008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
9601
9602 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
9603 New EmacsView methods.
9604 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
9605 Fixes bug #1048,1357,1414.
9606
96072008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9608
9609 Fix bug #1362.
9610 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
9611 is not an indexed color.
9612 * nsterm.m (free_indexed_color): Add argument checking.
9613 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
9614
e7d5ecb3
CY
96152008-11-24 Chong Yidong <cyd@stupidchicken.com>
9616
9617 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
9618 Document confirm-after-completion value for
9619 minibuffer-completion-confirm.
9620
c285743c
JR
96212008-11-24 Jason Rumney <jasonr@gnu.org>
9622
9623 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
9624 warning.
9625
b0857706
JR
96262008-11-23 Jason Rumney <jasonr@gnu.org>
9627
9628 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
9629 restored before returning.
9630
9631 * w32font.c (check_face_name): New function.
9632 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 9633 fonts. (Bug#642)
b0857706 9634
ee50ff07
MR
96352008-11-22 Martin Rudalics <rudalics@gmx.at>
9636
9637 * buffer.c (Fswitch_to_buffer): Reword and mention new option
9638 confirm-nonexistent-file-or-buffer in doc-string.
9639
b8ff72fa
SM
96402008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
9641
9642 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
9643 Fix copy/paste typo. Add checks.
9644
cee53ed4
KH
96452008-11-21 Kenichi Handa <handa@m17n.org>
9646
9647 * coding.c (detect_coding_iso_2022): Reject invalid composition
9648 sequence.
9649 (DECODE_COMPOSITION_START): If the current source is the last
9650 block, and the current composition doesn't end, regard this
9651 sequence as invalid.
9652 (decode_coding_iso_2022): Handle invalid composition sequence.
9653
f6ef1e65
MR
96542008-11-20 Martin Rudalics <rudalics@gmx.at>
9655
9656 * window.c (coordinates_in_window): Don't return
9657 ON_VERTICAL_BORDER for the rightmost position of a mode/header
9658 line when the window is not the rightmost one. (Bug#1372)
9659
e08b1705
MR
96602008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
9661
9662 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
9663
ad98e89f
EZ
96642008-11-15 Eli Zaretskii <eliz@gnu.org>
9665
9666 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
9667 and bright_bg if noninteractive is non-zero.
9668
fb098a4b
CY
96692008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9670
9671 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
9672 x_draw_glyph_string_background.
9673
9674 * w32term.c (x_draw_glyph_string): Likewise.
9675
ce952b6e
CY
96762008-11-15 Chong Yidong <cyd@stupidchicken.com>
9677
9678 * xterm.c (x_draw_glyph_string): Stop drawing the background of
9679 the next glyph string once past the overhang width.
9680
9681 * nsterm.m (ns_draw_glyph_string): Likewise.
9682
9683 * w32term.c (x_draw_glyph_string): Likewise.
9684
26ea7079
CY
96852008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
9686
9687 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
9688 double file close.
9689
1c33c906
MR
96902008-11-14 Martin Rudalics <rudalics@gmx.at>
9691
9692 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
9693 dedicated status of window before attempting to display another
9694 buffer in it.
9695
8fc29035
JB
96962008-11-14 Juanma Barranquero <lekktu@gmail.com>
9697
9698 * msdos.c (Fmsdos_long_file_names):
9699 (syms_of_msdos) <dos-unsupported-char-glyph>:
9700 * dosfns.c (Fint86): Fix typos in docstrings.
9701
55fb4286
EZ
97022008-11-14 Eli Zaretskii <eliz@gnu.org>
9703
9704 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
9705
3fda0315
KY
97062008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
9707
9708 * puresize.h (BASE_PURESIZE): Increase to 1260000.
9709
7e849c17
CY
97102008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
9711
9712 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
9713
9714 * frame.h: Negative alpha means "don't touch".
9715
9716 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
9717
9718 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
9719
b9fd67bd
DN
97202008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
9721
9722 * hftctl.c:
9723 * chpdef.h:
9724 * acldef.h: Remove files used only for systems no longer supported.
9725
9726 * Makefile.in: Fix .o alphabetical ordering.
9727 (hftctl.o): Remove dependency, file removed.
9728 (keymap.o, print.o): Depend on charset.h.
9729
d5998e03
KH
97302008-11-10 Kenichi Handa <handa@m17n.org>
9731
2ae37cf0 9732 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 9733
be70e183
CY
97342008-11-08 Chong Yidong <cyd@stupidchicken.com>
9735
9736 * dired.c (file_name_completion): If completion_ignore_case is
9737 enabled, ignore case when checking completion-regexp-list.
9738
7cf94eac
EZ
97392008-11-08 Eli Zaretskii <eliz@gnu.org>
9740
9741 * vm-limit.c (get_lim_data): Fix last change.
9742
ee107a89
KH
97432008-11-08 Kenichi Handa <handa@m17n.org>
9744
9745 * character.c (Fget_byte): New function.
9746 (syms_of_character): Defsubr Fget_byte.
9747
5fd15622
CY
97482008-11-07 Chong Yidong <cyd@stupidchicken.com>
9749
9750 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
9751 cursor position is valid after scrolling.
9752
13d62fad
JB
97532008-11-06 Juanma Barranquero <lekktu@gmail.com>
9754
9755 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
9756
a1dd2936
GM
97572008-11-06 Glenn Morris <rgm@gnu.org>
9758
9759 * xterm.c (handle_one_xevent): Don't let popup menus cause
9760 mouse-autoselect-window related window switching. (Bug#1261)
9761
860cd236
CY
97622008-11-04 David Smith <davidsmith@acm.org> (tiny change)
9763
9764 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
9765
653a3150
AS
97662008-11-04 Andreas Schwab <schwab@suse.de>
9767
9768 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
9769
870f5cac
CY
97702008-11-03 Chong Yidong <cyd@stupidchicken.com>
9771
9772 * xfns.c (Fx_wm_set_size_hint): New function.
9773
1e02f3cb
MR
97742008-11-03 Martin Rudalics <rudalics@gmx.at>
9775
9776 * textprop.c (Fprevious_single_char_property_change): Return 0
9777 when there's no change in a string. (Bug#1301)
9778
e630dfc6
MR
97792008-11-02 Martin Rudalics <rudalics@gmx.at>
9780
9781 * frame.c (do_switch_frame): New argument NORECORD passed to
9782 Fselect_window.
9783 (Fselect_frame): New argument NORECORD passed to
9784 do_switch_frame.
9785 (Fset_frame_selected_window): New argument NORECORD passed to
9786 Fselect_frame.
9787 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
9788 in call of do_switch_frame.
9789 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
9790 Handle NORECORD argument in call of Fselect_frame.
9791 * lisp.h (do_switch_frame, Fselect_frame)
9792 (Fset_frame_selected_window): Adjust declarations.
9793 * window.c (select_frame_norecord): New function.
9794 (run_window_configuration_change_hook): Use it and call
9795 Fselect_frame with NORECORD set.
9796 (Fselect_window): Pass NORECORD to Fselect_frame.
9797 (Fset_window_configuration): Handle NORECORD argument in call of
9798 do_switch_frame.
9799 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
9800 Fset_frame_selected_window.
9801 * keyboard.c (command_loop_1): Handle NORECORD in call of
9802 Fselect_frame (currently ifdefd).
9803
9020b223
GM
98042008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
9805
9806 * emacs.c (USAGE2): Untabify.
9807
793ffee8
SM
98082008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
9809
9810 * composite.c (fill_gstring_header): Fix copy/paste typo.
9811
ab6d1131
MR
98122008-10-31 Martin Rudalics <rudalics@gmx.at>
9813
9814 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
9815 (Fother_window): Rename argument and rewrite doc-string.
9816 (select_window_norecord): Fix return value. (Bug#1276)
9817
601a9cf1
JB
98182008-10-30 Juanma Barranquero <lekktu@gmail.com>
9819
9820 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
9821 new frames overriding foreground for tooltips. Based on similar patch
9822 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
9823
813b0652
CY
98242008-10-29 Chong Yidong <cyd@stupidchicken.com>
9825
9826 * emacs.c (Fdaemon_initialized): Initialize nfd.
9827
4414f58f
MR
98282008-10-29 Martin Rudalics <rudalics@gmx.at>
9829
9830 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
9831 (Fwindow_text_height): Clarify doc-strings.
9832 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
9833 doc-string of window-scroll-functions.
9834
ecdcaa09
RS
98352008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
9836
9837 * category.c (syms_of_category): Fix typo in docstring.
9838
23fe745a
JB
98392008-10-28 Juanma Barranquero <lekktu@gmail.com>
9840
9841 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
9842 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
9843 Fix typos in docstrings.
9844
ff808935
DN
98452008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
9846
9847 * emacs.c (daemon_pipe): Make non-static.
9848 (IS_DAEMON): Move definition ...
9849 * lisp.h (IS_DAEMON): ... here.
9850 (daemon_pipe): Declare.
9851 (is_daemon): Remove.
9852 * dispnew.c (init_display): Use IS_DAEMON.
9853
fc012771
SM
98542008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
9855
9856 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
9857 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
9858
9859 * emacs.c (is_daemon): Remove.
9860 (main): Don't set is_daemon.
9861 (IS_DAEMON): New macro.
9862 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 9863 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
9864 parent exits.
9865 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
9866
d8bdbe6f
CY
98672008-10-27 Chong Yidong <cyd@stupidchicken.com>
9868
d1a072bf
CY
9869 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
9870 over-sized glyph, draw it with the default glyph width.
9871
e2e325aa
CY
9872 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9873 glyph, draw it with the default glyph width.
9874
9875 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
9876 glyph, draw it with the default glyph width.
9877
d8bdbe6f
CY
9878 * xdisp.c (try_scrolling): When computing the distance from the
9879 scroll margin to PT, try moving some distance past the window
9880 bottom before giving up.
9881
7bfac547
MR
98822008-10-27 Martin Rudalics <rudalics@gmx.at>
9883
9884 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
9885 (Fset_window_buffer): Explain in doc-string that a window can be
9886 "strongly" dedicated to its buffer.
9887
4ff029f6
DN
98882008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
9889
9890 * emacs.c (daemon_name): New variable.
9891 (main): Deal with --daemon=SERVER_NAME.
9892 (Fdaemonp): Return a name if one was passed to --daemon.
9893
5790ef40
DN
98942008-10-26 Romain Francoise <romain@orebokech.com>
9895
f9bd0df9 9896 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
9897 (main): Create a pipe before forking, make the parent exit only after
9898 the child has closed its end of the pipe. Move closing the
9899 descriptors ...
9900 (Fdaemon_initialized): ... here. New function.
9901
f5385255
SM
99022008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
9903
4d632321
SM
9904 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
9905 the previous unoptimized table.
9906
f5385255
SM
9907 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
9908 the distinction between non-nil and non-t value of `dedicated'.
9909
6c56a0f3
CY
99102008-10-25 Chong Yidong <cyd@stupidchicken.com>
9911
9912 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 9913 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 9914
fec89261
MR
99152008-10-25 Martin Rudalics <rudalics@gmx.at>
9916
9917 * window.c (Fget_buffer_window, Fdelete_windows_on)
9918 (Freplace_buffer_in_windows): Make buffer argument optional and
9919 rename to buffer_or_name.
9920
34fcddd0
CY
99212008-10-24 Chong Yidong <cyd@stupidchicken.com>
9922
f5385255
SM
9923 * xdisp.c (handle_single_display_spec, handle_display_prop):
9924 Undo 2005-05-16 change.
34fcddd0
CY
9925 (handle_stop): Pop iterator if it's loaded with an empty string.
9926 (get_overlay_strings_1): Don't save iterator if it's loaded with
9927 an empty string (bug#1201).
9928
064766f2
KH
99292008-10-24 Kenichi Handa <handa@m17n.org>
9930
9931 * ftfont.c (ftfont_otf_features): Fix previous change.
9932 (ftfont_otf_capability): Check FeatureList.FeatureCount before
9933 calling ftfont_otf_features.
9934
f9bd0df9 99352008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
9936
9937 * font.c (font_match_p): Fix for the case that a vector of
9938 characters is in script-representative-chars.
9939
1dae9197
MA
99402008-10-24 Michael Albinus <michael.albinus@gmx.de>
9941
9942 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 9943 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
9944 (xd_read_queued_messages): Catch Qdbus_error from the macros.
9945 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 9946 macro. (Bug#1186)
1dae9197 9947
f9bd0df9 99482008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
9949
9950 * s/sol2-10.h: New file.
9951
878a4584
JB
99522008-10-23 Juanma Barranquero <lekktu@gmail.com>
9953
9954 * xdisp.c (fill_glyph_string): Fix typo in source (though the
9955 poor beast has survived 9+ years and the jump from xterm.c!).
9956
cd265ca6
MR
99572008-10-23 Martin Rudalics <rudalics@gmx.at>
9958
9959 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
9960 Reword doc-string.
f5385255 9961 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 9962
472a4dc9
JB
99632008-10-23 Juanma Barranquero <lekktu@gmail.com>
9964
9965 * character.c (syms_of_character) <script-representative-chars>:
9966 <unicode-category-table>: Doc fixes.
9967
159bd5a2
NF
99682008-10-23 Noah Friedman <friedman@splode.com>
9969
9970 * coding.c (make_conversion_work_buffer): Check that
9971 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
9972 Fget_buffer_create.
9973
49f9c344
KH
99742008-10-23 Kenichi Handa <handa@m17n.org>
9975
9976 * font.c (font_add_log): Check the values of extra properties.
9977
12bb3111
MR
99782008-10-22 Martin Rudalics <rudalics@gmx.at>
9979
9980 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
9981 Reword doc-string.
9982 (Fset_window_parameter): Use NILP.
9983 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 9984 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 9985
bbeb4e99
JB
99862008-10-22 Juanma Barranquero <lekktu@gmail.com>
9987
9988 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
9989
99902008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
9991
9992 * nsfns.m (ns_appkit_version): New function.
9993 (x-server-version): Use it.
9994 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
9995 (x-server-vendor): Don't check_ns().
9996
9997 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
9998
a9b555d3
JB
99992008-10-22 Juanma Barranquero <lekktu@gmail.com>
10000
10001 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
10002 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
10003
4626499f
KH
100042008-10-22 Kenichi Handa <handa@m17n.org>
10005
e3681952
KH
10006 * syntax.c (scan_words): Call word_boundary_p instead of comparing
10007 scripts.
10008
4626499f
KH
10009 * category.c (word_boundary_p): Check scripts instead of charset.
10010 Handle nil value in word-separating-categories and
10011 word-combining-categories.
10012 (syms_of_category): Fix docstrings of word-separating-categories
10013 and word-combining-categories.
10014
1560f91a
EZ
100152008-10-21 Eli Zaretskii <eliz@gnu.org>
10016
10017 * coding.c (Fencode_coding_region, Fdecode_coding_region)
10018 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
10019
f4668441
MR
100202008-10-21 Martin Rudalics <rudalics@gmx.at>
10021
10022 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
10023 Rename arg "buffer" to "buffer_or_name".
10024 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
10025 it optional.
10026 (no_switch_window): Remove since the return value is not used.
a9b555d3 10027 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
10028 Consider window as dedicated when Fwindow_dedicated_p returns a
10029 non-nil value.
10030 * lisp.h: Remove prototype for no_switch_window.
10031
fd75ddb2
JD
100322008-10-21 Jan Djärv <jan.h.d@swipnet.se>
10033
10034 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 10035 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 10036
07295713
KH
100372008-10-21 Kenichi Handa <handa@m17n.org>
10038
10039 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
10040 check Vlatin_extra_code_table.
10041
712adc82
EZ
100422008-10-20 Eli Zaretskii <eliz@gnu.org>
10043
10044 * fileio.c (Fset_file_modes): Doc fix.
10045
f549eb0b
MA
100462008-10-19 Michael Albinus <michael.albinus@gmx.de>
10047
10048 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
10049 in arrays.
10050
aac0c6e3
MR
100512008-10-19 Martin Rudalics <rudalics@gmx.at>
10052
10053 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
10054 Mention kill-buffer in doc-string.
10055 (Fset_window_buffer): Reinsert tem check removed in last commit.
10056 (Fenlarge_window, Fshrink_window): Have argument names and
10057 doc-string follow Elisp manual more closely.
10058
100592008-10-18 Eli Zaretskii <eliz@gnu.org>
10060
10061 * fileio.c (Fset_file_modes): Doc fix.
10062
100632008-10-18 Martin Rudalics <rudalics@gmx.at>
10064
10065 * window.c (Fwindow_width, Fset_window_start)
10066 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
10067 (Fdelete_windows_on, Freplace_buffer_in_windows):
10068 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
10069 (Fwindow_dedicated_p): Make window argument optional.
10070 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
10071 (Fset_window_buffer): Respect any non-nil dedicated value for
10072 window. Rename "buffer" argument to "buffer_or_name".
10073
100742008-10-18 Ulrich Mueller <ulm@gentoo.org>
10075
10076 * m/sh3.h: New file, machine description for SuperH.
10077
100782008-10-17 Martin Rudalics <rudalics@gmx.at>
10079
10080 * window.c (Fsplit_window): Rename arg horflag to horizontal.
10081
100822008-10-17 Kenichi Handa <handa@m17n.org>
10083
10084 * ftfont.c (ftfont_otf_features): Fix indexing
10085 gsub_gpos->FeatureList.Feature. Check the validity of indices.
10086
100872008-10-16 Magnus Henoch <mange@freemail.hu>
10088
10089 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
10090 (Fdbus_call_method_asynchronously): Ditto.
10091 This change makes C-h f display the argument list.
10092
100932008-10-16 Chong Yidong <cyd@stupidchicken.com>
10094
10095 * fileio.c (Fexpand_file_name): Doc fix.
10096
10097 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
10098 of :foreground and :background equivalent to unspecified (20.x
10099 compatibility).
10100
101012008-10-15 Eli Zaretskii <eliz@gnu.org>
10102
10103 * buffer.c (syms_of_buffer): Doc fix.
10104
101052008-10-14 Kenichi Handa <handa@m17n.org>
10106
10107 * font.c (font_clear_prop): When clearing font width, clear the
10108 average width field too.
10109
101102008-10-12 Andreas Schwab <schwab@suse.de>
10111
10112 * ftfont.c (ftfont_shape_by_flt): Make static.
10113 * ftfont.h (ftfont_shape_by_flt): Don't declare.
10114
10115 * font.c: Don't include <m17n-flt.h>.
10116
101172008-10-10 Eli Zaretskii <eliz@gnu.org>
10118
10119 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
10120
101212008-10-09 Eli Zaretskii <eliz@gnu.org>
10122
10123 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
10124 away code.
10125
101262008-10-09 Chong Yidong <cyd@stupidchicken.com>
10127
10128 * dispnew.c (update_text_area): Avoid looping due to large glyph
10129 overhangs (bug#1070).
10130
101312008-10-09 Kenichi Handa <handa@m17n.org>
10132
10133 * fontset.c (face_for_char): If face->fontset is negative, just
10134 return ascii_face.
10135
f5385255
SM
10136 * font.c (font_delete_unmatched): Fix previous change.
10137 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
10138
101392008-10-09 Martin Rudalics <rudalics@gmx.at>
10140
10141 * frame.c (Fraise_frame): On text-only terminals select frame in
10142 order to make it visible. (Bug#1061)
10143
101442008-10-08 Chong Yidong <cyd@stupidchicken.com>
10145
10146 * fontset.c (fontset_find_font): Check frame validity.
10147
101482008-10-07 Chong Yidong <cyd@stupidchicken.com>
10149
a9b555d3 10150 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
10151 (xg_display_close): Allow Emacs to close all displays (bug#985).
10152
101532008-10-06 Andreas Schwab <schwab@suse.de>
10154
f5385255 10155 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
10156
101572008-10-06 Chong Yidong <cyd@stupidchicken.com>
10158
f5385255 10159 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 10160
a9b555d3 10161 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
10162
10163 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
10164 during initialization.
10165
101662008-10-04 Eli Zaretskii <eliz@gnu.org>
10167
10168 * xdisp.c (redisplay_internal): If frame switched, redisplay the
10169 whole thing on MSDOS frames as well as on a TTY.
10170
10171 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
10172 well as for TTY.
10173 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
10174 well as on a TTY.
10175
10176 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
10177 as well as for TTY.
10178
10179 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
10180
10181 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
10182 MSDOS frames as well.
10183
101842008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10185
10186 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
10187 correct arguments.
b71ac3dd 10188 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
10189
101902008-10-03 Glenn Morris <rgm@gnu.org>
10191
10192 * emacs.c (USAGE1): Add --daemon.
10193
101942008-10-02 Eli Zaretskii <eliz@gnu.org>
10195
10196 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
10197 100, so it's in percents as advertised.
10198
101992008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
10200
10201 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
10202 (ns_output.current_cursor, ns_output.desired_cursor)
10203 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
10204 (FRAME_NEW_CURSOR_COLOR): Remove.
10205
10206 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 10207 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
10208 enumeration (HOLLOW_BOX_CURSOR, etc.).
10209
10210 * nsterm.m (ns_frame_rehighlight): Remove commented code.
10211 (draw_window_cursor): Simplify code.
f5385255
SM
10212 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
10213 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 10214 updates manually.
a9b555d3
JB
10215 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
10216 Use core Emacs cursor types.
aac0c6e3 10217
b8ff72fa 10218 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
10219
102202008-10-02 Martin Rudalics <rudalics@gmx.at>
10221
10222 * process.c (Faccept_process_output): Fix doc-string.
10223
102242008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
10225
10226 * gmalloc.c (__sbrk): Also define for uClibc.
10227
10228 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
10229 for uClibc.
10230
102312008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10232
10233 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
10234 styles.
10235 (nsfont_open): Reenable the cache.
10236
102372008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
10238
10239 * font.c (font_matching_entity): Reflect ATTRS in font selection.
10240 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
10241
102422008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
10243
10244 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
10245 a suspended terminal.
10246
102472008-09-30 Michael Albinus <michael.albinus@gmx.de>
10248
10249 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
10250
102512008-09-30 Eli Zaretskii <eliz@gnu.org>
10252
10253 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
10254
102552008-09-30 Chong Yidong <cyd@stupidchicken.com>
10256
10257 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
10258 in a continued line coincides with a line beginning.
10259
102602008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
10261
10262 * nsfont.m (nsfont_trait_distance): Fix bug.
10263 (nsfont_list): Return a list rather than a vector (syncs with Handa
10264 changes of 2008-05-14).
10265 (nsfont_open): Improve logging.
10266
102672008-09-29 Andreas Schwab <schwab@suse.de>
10268
10269 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
10270
102712008-09-28 Martin Rudalics <rudalics@gmx.at>
10272
10273 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
10274 name as char-resolve-modifiers.
10275 Reported by: Markus Triska <markus.triska@gmx.at>
10276
102772008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
10278
10279 * dispnew.c (init_display): Return earlier when running as a daemon.
10280
102812008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
10282
10283 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
10284
102852008-09-27 Eli Zaretskii <eliz@gnu.org>
10286
10287 * composite.c (Fcomposition_get_gstring)
10288 (Fcompose_region_internal, Fcompose_string_internal)
10289 (Ffind_composition_internal): Doc fix.
10290 (syms_of_composite) <compose-chars-after-function>: Doc fix.
10291 (syms_of_composite) <auto-composition-function>: Doc fix.
10292 (syms_of_composite) <composition-function-table>: Doc fix.
10293
102942008-09-25 Chong Yidong <cyd@stupidchicken.com>
10295
10296 * search.c (wordify): New argument for lax word-ends.
10297 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
10298
102992008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
10300
10301 * lisp.h (is_daemon): Declare.
10302 * dispnew.c (init_display): Do not try to initialize the terminal
10303 when running as a daemon.
10304
103052008-09-22 Chong Yidong <cyd@stupidchicken.com>
10306
10307 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
10308 x_display_pixel_height.
10309
103102008-09-22 Martin Rudalics <rudalics@gmx.at>
10311
10312 * undo.c (record_point): Don't call Fundo_boundary for first
10313 change. (Bug#731)
10314
103152008-09-22 Juanma Barranquero <lekktu@gmail.com>
10316
10317 * emacs.c (Fdaemonp): Doc fix.
10318
103192008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
10320
10321 * emacs.c (main): Place #ifdef in the proper place.
10322
103232008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
10324
10325 * emacs.c (standard_args): Add --daemon.
10326 (main): Disconnect from the terminal when --daemon is passed.
10327 (is_daemon): New variable.
10328 (Fdaemonp): New function.
10329 (syms_of_emacs): Defsubr it.
10330
103312008-09-20 Chong Yidong <cyd@stupidchicken.com>
10332
10333 * xdisp.c (get_next_display_element): Handle string display
10334 correctly when checking for the end of a box run.
10335
103362008-09-20 Glenn Morris <rgm@gnu.org>
10337
10338 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
10339 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
10340 (Frename_file): Avoid copying to trash if a rename involves
10341 a delete. (Bug#964).
10342
103432008-09-20 Eli Zaretskii <eliz@gnu.org>
10344
10345 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
10346 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
10347 frames as well as termcap frames.
10348 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
10349 get_named_tty.
10350
103512008-09-19 Eli Zaretskii <eliz@gnu.org>
10352
10353 * process.c (procfs_system_process_attributes): Fix cmdline in
10354 case /proc/PID/cmdline is empty.
10355
10356 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
10357 x_display_pixel_height.
10358
103592008-09-19 Juanma Barranquero <lekktu@gmail.com>
10360
10361 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
10362
10363 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
10364 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
10365
103662008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
10367
10368 * dispextern.h (struct it): Move line_wrap away from the middle of
10369 bitfields. Move voffset in struct iterator_stack_entry after the
10370 bitfields. Move tab_width near after another short.
10371
103722008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
10373
10374 * frame.h (struct frame): Move alpha from the middle of bitfields.
10375
10376 * window.h (struct window): Move frozen_window_start_p after the
10377 rest of the bitfields to reduce padding.
10378
103792008-09-18 Chong Yidong <cyd@stupidchicken.com>
10380
10381 * xterm.h (x_display_info): Remove `height' and `width' members.
10382
10383 * nsterm.h (ns_display_info): Remove `height' and `width' members.
10384
10385 * w32term.h (w32_display_info): Remove `height', `width',
10386 `height_in', and `width_in' members.
10387
b8ff72fa
SM
10388 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10389 New functions.
aac0c6e3
MR
10390 (x_calc_absolute_position): Use them.
10391 (x_term_init): Omit removed `height' and `width' members.
10392
b8ff72fa
SM
10393 * w32term.c (x_display_pixel_height, x_display_pixel_width):
10394 New functions.
aac0c6e3
MR
10395 (w32_read_socket, x_calc_absolute_position): Use them.
10396 (w32_initialize_display_info, w32_term_init): Omit removed members
10397 of w32_display_info.
10398
b8ff72fa
SM
10399 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
10400 New functions.
10401 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 10402
b8ff72fa
SM
10403 * xterm.c (x_display_pixel_height, x_display_pixel_width):
10404 New functions.
aac0c6e3
MR
10405 (x_calc_absolute_position): Use them.
10406 (x_term_init): Omit removed `height' and `width' members.
10407
10408 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
10409 (compute_tip_xy):
10410 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
10411 * xmenu.c (menu_position_func): Use x_display_pixel_height and
10412 x_display_pixel_width.
10413
104142008-09-18 Kenichi Handa <handa@m17n.org>
10415
10416 * composite.c (fill_gstring_header): Don't check FROM and TO here.
10417 (composition_compute_stop_pos): Fix handling of static composition.
10418 (Fcomposition_get_gstring): Check FROM and TO at first.
10419
104202008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
10421
46e722a9 10422 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
10423 mixup (YAILOM).
10424
104252008-09-17 Chong Yidong <cyd@stupidchicken.com>
10426
10427 * indent.c (Fvertical_motion): Use position reported by iterator
10428 instead of PT for determining screen motion (bug#943).
10429
104302008-09-17 Romain Francoise <romain@orebokech.com>
10431
10432 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
10433
104342008-09-17 Kenichi Handa <handa@m17n.org>
10435
10436 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
10437
10438 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
10439 if necessary.
10440
104412008-09-16 Kenichi Handa <handa@m17n.org>
10442
10443 * coding.c (make_conversion_work_buffer): Avoid calling
10444 Fget_buffer_create if it is not necessary.
10445
104462008-09-15 Martin Rudalics <rudalics@gmx.at>
10447
10448 * window.c (Fselect_window): Don't update window_select_count and
10449 use_time when norecord is not nil.
10450
104512008-09-14 Kenichi Handa <handa@m17n.org>
10452
10453 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
10454 specpdl_ptr.
10455
104562008-09-12 Kenichi Handa <handa@m17n.org>
10457
10458 * indent.c (scan_for_column): Don't handle automatic composition
10459 if the current buffer is not associated with a window.
10460
10461 * composite.c (composition_reseat_it): If the current buffer is
10462 not associated with a window, ignore the automatic composition.
10463 (find_automatic_composition): Likewise.
10464
104652008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
10466
10467 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
10468 (Fgpm_mouse_stop): Use it.
10469 * termhooks.h (close_gpm): Declare.
10470 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
10471 connection if Gpm_GetEvent fails.
10472
10473 * window.c (set_window_buffer): Always preserve current-buffer.
10474
104752008-09-12 Glenn Morris <rgm@gnu.org>
10476
10477 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
10478
104792008-09-11 Glenn Morris <rgm@gnu.org>
10480
10481 * charset.c (charset-map-path): Doc fix.
10482
104832008-09-10 Kenichi Handa <handa@m17n.org>
10484
10485 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
10486
10487 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
10488 compose a grapheme cluster with the preceding base glyph.
10489
10490 * composite.c (composition_compute_stop_pos): Fix previous change.
10491 Reset cmp_it->id to -1 at first.
10492
104932008-09-10 Glenn Morris <rgm@gnu.org>
10494
10495 * Makefile.in (character.o, chartab.o): Fix config.h typo.
10496
104972008-09-09 Chong Yidong <cyd@stupidchicken.com>
10498
10499 * keyboard.c (read_key_sequence): Reapply translation maps when
10500 switching keyboards.
10501
105022008-09-09 Kenichi Handa <handa@m17n.org>
10503
10504 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
10505 characters.
10506
10507 * composite.c (FORWARD_CHAR): Fix calculation
10508 of (POSITION).pos_byte.
10509 (composition_compute_stop_pos): Limit the search of composition to
10510 at most 500 characters ahead. If we reach the limit or find a
10511 newline, set cmp_it->ch to -2 and return 0.
10512 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
10513
105142008-09-08 Kenichi Handa <handa@m17n.org>
10515
10516 * indent.c (Fvertical_motion): Be sure to set
10517 it_overshoot_expected if it.cmp_it.id is non-negative.
10518
105192008-09-07 Andreas Schwab <schwab@suse.de>
10520
10521 * callproc.c (Fcall_process): Don't hold references to string data
10522 across garbage collection. Move initialisation of new_argv down
10523 to avoid compiler bug.
10524
105252008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10526
10527 * process.c (Fsystem_process_attributes): Doc fix.
10528
105292008-09-07 Chong Yidong <cyd@stupidchicken.com>
10530
10531 * callproc.c (Fcall_process): Canonicalize current directory name.
10532
10533 * xdisp.c (move_it_to): When moving by vpos, ensure that the
10534 iterator advances to the next line if the current line ends in a
10535 continued tab.
10536
105372008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
10538
10539 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
10540 member to point to cmp_from.
10541
10542 * xdisp.c: Doc fix for references to gidx data member.
10543
105442008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
10545
10546 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
10547
105482008-09-07 Kenichi Handa <handa@m17n.org>
10549
10550 * composite.c (FORWARD_CHAR): Check STOP after
10551 incrementing (POSITION).pos.
10552
105532008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
10554
10555 * process.c (Fsystem_process_attributes): Doc fix.
10556
105572008-09-06 Chong Yidong <cyd@stupidchicken.com>
10558
10559 * keyboard.c (Ftop_level): Doc fix.
10560
105612008-09-06 Eli Zaretskii <eliz@gnu.org>
10562
10563 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
10564 minibuffer, don't let lower part of menu invade the echo area.
10565
10566 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
10567 "char *q" to access menu text and advance through it. Revert the
10568 change that displayed ">" instead of ASCII character 0x10.
10569
105702008-09-05 Eli Zaretskii <eliz@gnu.org>
10571
10572 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
10573 toggle boxes and radio buttons on MS-DOS as well.
10574
105752008-09-05 Kenichi Handa <handa@m17n.org>
10576
10577 * composite.c (autocmp_chars): Check lookback count.
10578 (composition_compute_stop_pos): Set cmp_it->lookback.
10579 (composition_reseat_it): Check lookback count.
10580 (struct position_record): New struct.
10581 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
10582 (find_automatic_composition): New function.
10583 (composition_adjust_point): Use find_automatic_composition.
10584
10585 * dispextern.h (struct composition_it): New member lookback.
10586
105872008-09-02 Chong Yidong <cyd@stupidchicken.com>
10588
10589 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
10590 if moving by a single line.
10591
105922008-09-02 Andreas Schwab <schwab@suse.de>
10593
10594 * xterm.c (x_delete_display): Fix merge error.
10595
10596 * fileio.c (Fexpand_file_name): Remove unused variables.
10597
105982008-09-02 Eli Zaretskii <eliz@gnu.org>
10599
10600 * fileio.c (Fexpand_file_name): Copy argument `name' into local
10601 storage on all platforms, not just on DOS_NT.
10602
106032008-09-02 Jason Rumney <jasonr@gnu.org>
10604
b8ff72fa
SM
10605 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
10606 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
10607
106082008-09-01 Chong Yidong <cyd@stupidchicken.com>
10609
10610 * xfaces.c (Finternal_set_alternative_font_family_alist)
10611 (Finternal_set_alternative_font_registry_alist): Properly copy
10612 entire alist structure.
10613
106142008-09-01 Kenichi Handa <handa@m17n.org>
10615
d66c0241 10616 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 10617 representative chars of the script is a vector.
d66c0241
JB
10618 (ftfont_list): Handle the case where the representative chars of
10619 the script is a vector.
aac0c6e3
MR
10620
10621 * character.c (syms_of_character): Docstring of
10622 script-representative-chars fixed.
10623
106242008-08-31 Eli Zaretskii <eliz@gnu.org>
10625
10626 * msdos.c (BUILD_CHAR_GLYPH): New macro.
10627 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
10628 the menu. Allocate larger buffer for `text', to account for
10629 possible ^C characters.
10630
106312008-08-31 Martin Rudalics <rudalics@gmx.at>
10632
10633 * xdisp.c (prepare_menu_bars): Don't call
10634 Vwindow_size_change_functions with arg Qt.
10635
106362008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
10637
10638 * font.h (font_range):
10639 * fileio.c (report_file_error):
46e722a9
SM
10640 * composite.c (composition_update_it): Yet another int/Lisp_Object
10641 mixup (YAILOM).
aac0c6e3
MR
10642
106432008-08-30 Glenn Morris <rgm@gnu.org>
10644
10645 * data.c (Fmake_variable_frame_local): Doc fix.
10646
10647 * frame.c (Fmodify_frame_parameters): Doc fix.
10648
106492008-08-30 Eli Zaretskii <eliz@gnu.org>
10650
10651 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
10652 needed by GetTokenInformation.
10653 (w32_system_process_attributes): Check return values of all system
10654 APIs.
10655
10656 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
10657 only when the state changes.
10658 (IT_update_begin, IT_update_end): Add termscript trace.
10659
10660 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
10661 clipboard is unavailable. Set dst to NULL if it doesn't point to
10662 malloc'ed data.
10663 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
10664 passing random values to xfree.
10665
10666 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 10667 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
10668
106692008-08-29 Jason Rumney <jasonr@gnu.org>
10670
10671 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
10672
106732008-08-29 Eli Zaretskii <eliz@gnu.org>
10674
10675 * composite.c (fill_gstring_body): Avoid compiler warnings.
10676
10677 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
10678 LGLYPH_SET_CODE to avoid compiler warnings.
10679
2ae37cf0 10680 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
10681
10682 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
10683
10684 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
10685 LGLYPH_SET_CODE.
10686
106872008-08-29 Kenichi Handa <handa@m17n.org>
10688
10689 * fileio.c (report_file_error): Don't downcase the first character
10690 of errstring if it is still unibyte.
10691
106922008-08-29 Kenichi Handa <handa@m17n.org>
10693
10694 These changes are to re-implement the automatic composition so
10695 that it doesn't use text properties.
10696
10697 * Makefile.in (ftfont.o): Depend on composite.h.
10698 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
10699
10700 * character.h (Vunicode_category_table): Extern it.
10701
10702 * character.c (Vunicode_category_table): New variable.
10703 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
10704
10705 * chartab.c (optimize_sub_char_table): Perform more greedy
10706 optimization.
10707
b8ff72fa
SM
10708 * composite.h (enum composition_method):
10709 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
10710 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
10711 (Vcomposition_function_table): Extern it.
10712 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
10713 (composition_gstring_put_cache, composition_gstring_from_id)
10714 (composition_gstring_p, composition_gstring_width)
10715 (composition_compute_stop_pos, composition_reseat_it)
10716 (composition_update_it, composition_adjust_point): Extern them.
10717 (Fcomposition_get_gstring): EXFUN it.
10718
d66c0241 10719 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
10720 (Vcomposition_function_table)
10721 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
10722 (gstring_hash_table, gstring_work, gstring_work_headers):
10723 New variables.
aac0c6e3
MR
10724 (gstring_lookup_cache, composition_gstring_put_cache)
10725 (composition_gstring_from_id, composition_gstring_p)
10726 (composition_gstring_width, fill_gstring_header)
10727 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
10728 (composition_reseat_it, composition_update_it)
b8ff72fa 10729 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
10730 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
10731 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 10732 Defsubr composition_get_gstring.
aac0c6e3
MR
10733
10734 * dispextern.h (struct glyph): New union u.cmp. Delete the member
10735 cmp_id.
10736 (struct glyph_string): Delete the member gidx. New members
10737 cmp_id, cmp_from, and cmp_to.
10738 (enum it_method): Delete GET_FROM_COMPOSITION.
10739 (struct composition_it): New struct.
10740 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
10741 Delete c, len, cmp_id, cmp_len in u.comp.
10742
10743 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 10744 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 10745 (enum lglyph_indices): Likewise.
b8ff72fa 10746 (font_range): Adjust extern.
aac0c6e3
MR
10747 (font_fill_lglyph_metrics): Extern it.
10748
10749 * font.c (QCf): New variable.
10750 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10751 (font_prepare_composition): Delete this function.
10752 (font_range): Type and arguments changed.
10753 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
10754 (font_fill_lglyph_metrics): New function.
b8ff72fa 10755 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 10756 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
10757 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
10758 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
10759
10760 * fontset.h (font_for_char): Extern it.
10761
10762 * fontset.c (font_for_char): New function.
10763
10764 * ftfont.c: Include composite.h.
10765 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 10766 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
10767
10768 * indent.c: Include composite.h and dispextern.h.
10769 (check_composition): Delete this function.
10770 (scan_for_column): Handle composition by
10771 composition_compute_stop_pos, composition_reseat_it, and
10772 composition_update_it.
10773 (compute_motion): Likewise.
10774 (Fvertical_motion): Fix checking of composition.
10775
10776 * keyboard.c (adjust_point_for_property): Check composition by
10777 composition_adjust_point.
10778
b8ff72fa 10779 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
10780 struct glyph_string.
10781
b8ff72fa
SM
10782 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
10783 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
10784 struct glyph.
10785 (produce_composite_glyph): Likewise.
10786
b8ff72fa
SM
10787 * w32term.c (x_draw_composite_glyph_string_foreground):
10788 Adjust for the change of struct glyph_string.
aac0c6e3
MR
10789 (x_draw_glyph_string): Likewise.
10790
10791 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
10792 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
10793
10794 * xdisp.c: Include font.h.
10795 (it_props): Delete the entry for Qauto_composed.
10796 (init_iterator): Initialize it->cmp_it.id to -1.
10797 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 10798 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
10799 (handle_auto_composed_prop): Delete it.
10800 (handle_composition_prop): Handle only static composition.
10801 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
10802 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 10803 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
10804 (pop_it): Likewise.
10805 (get_next_element): Delete next_element_from_composition.
10806 (CHAR_COMPOSED_P): New macro.
10807 (get_next_display_element): For automatic composition, get a face
10808 from the font in the glyph-string.
10809 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 10810 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
10811 (next_element_from_string): Check if the character at the current
10812 position is composed by CHAR_COMPOSED_P.
10813 (next_element_from_buffer): Likewise.
d66c0241
JB
10814 (next_element_from_composition): Adjust for the change of struct it.
10815 Update it->cmp_it.
b8ff72fa
SM
10816 (dump_glyph): Adjust for the change of struct glyph.
10817 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
10818 it and struct glyph. Don't handle automatic composition here.
10819 (fill_gstring_glyph_string): New function.
10820 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 10821 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
10822 (BUILD_GSTRING_GLYPH_STRING): New macro.
10823 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
10824 automatic composition.
b8ff72fa 10825 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 10826 struct glyph.
b8ff72fa 10827 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 10828
b8ff72fa 10829 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
10830 the change of struct glyph_string.
10831 (x_draw_glyph_string): Likewise.
10832
108332008-08-29 Glenn Morris <rgm@gnu.org>
10834
10835 * buffer.c (word-wrap): Doc fix.
10836 * xdisp.c (truncate-partial-width-windows): Doc fix.
10837 Increase default to 50.
10838
108392008-08-29 Chong Yidong <cyd@stupidchicken.com>
10840
10841 * xdisp.c (update_tool_bar_unwind): New function.
10842 (update_tool_bar): Temporarily set selected frame before building
10843 tool-bar items.
10844
108452008-08-28 Michael Albinus <michael.albinus@gmx.de>
10846
10847 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
10848 snprintf, respectively.
10849 (xd_append_arg): Convert strings with Fstring_make_unibyte.
10850
108512008-08-28 Chong Yidong <cyd@stupidchicken.com>
10852
10853 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
10854 LDFLAGS to GNUstep CC invocation.
10855
108562008-08-27 Chong Yidong <cyd@stupidchicken.com>
10857
10858 * indent.c (Fvertical_motion): Revert last change. Handle the
10859 general case where we are moving forward, and PT spans multiple
10860 screen lines.
10861
10862 * eval.c (find_handler_clause): Temporarily increase
10863 max-lisp-eval-depth while printing the backtrace buffer, to
10864 guarantee that help-mode code can run.
10865
108662008-08-27 Eli Zaretskii <eliz@gnu.org>
10867
10868 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
10869 colors under -rv.
10870 (IT_set_frame_parameters): Don't swap foreground and background
10871 colors if `(reverse . t)' is present in the frame properties.
10872 (internal_terminal_init): Call init_frame_faces only for the
10873 initial frame.
10874
108752008-08-27 Andreas Schwab <schwab@suse.de>
10876
10877 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
10878
108792008-08-27 Andreas Schwab <schwab@suse.de>
10880
10881 * search.c (search_buffer): Set char_base to zero only at the end.
10882
108832008-08-27 Kenichi Handa <handa@m17n.org>
10884
b8ff72fa 10885 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
10886
108872008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
10888
10889 * xterm.c (x_term_init): Temporarily hide the partially
10890 initialized terminal while calling vendor-specific-keysyms.
10891
108922008-08-26 Eli Zaretskii <eliz@gnu.org>
10893
10894 * msdos.c (internal_terminal_init): Most initializations done only
10895 once, especially initial_screen_colors[] and termscript open.
10896
108972008-08-26 Chong Yidong <cyd@stupidchicken.com>
10898
10899 * eval.c (Fcondition_case): Doc fix.
10900
10901 * widgetprv.h (EmacsFramePart): Change font member to the new font
10902 struct.
10903
10904 * widget.c: Include character.h and font.h for XSETFONT.
10905 (setup_frame_gcs): Compute X font id from font struct, just once.
10906
109072008-08-26 Eli Zaretskii <eliz@gnu.org>
10908
10909 * term.c (get_named_tty): Fix last change.
10910
109112008-08-26 Chong Yidong <cyd@stupidchicken.com>
10912
10913 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 10914 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
10915
109162008-08-25 Eli Zaretskii <eliz@gnu.org>
10917
10918 * frame.c (do_switch_frame): Mark previously displayed frame as
10919 obscured for FRAME_MSDOS_P frames as well.
10920
109212008-08-24 Eli Zaretskii <eliz@gnu.org>
10922
10923 * frame.c (make_terminal_frame): Initialize f->terminal,
10924 f->terminal->reference_count, and scroll bars on MS-DOS as well.
10925 Set the top frame to newly created frame.
10926 (Fmake_terminal_frame): Reuse the_only_display_info.
10927
10928 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
10929 estimating available memory.
10930
b97439ce 109312008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
10932
10933 * nsterm.m (ns_draw_window_cursor): Don't call
10934 NSDisableScreenUpdates and NSEnableScreenUpdates on
10935 non-NS_IMPL_COCOA systems.
10936
109372008-08-23 Andreas Schwab <schwab@suse.de>
10938
10939 * process.c (procfs_system_process_attributes): Fix use of
10940 uninitialized variables.
10941
109422008-08-23 Eli Zaretskii <eliz@gnu.org>
10943
10944 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
10945
10946 * dispnew.c (init_display): Remove MS-DOS specific conditions for
10947 calling tty-set-up-initial-frame-faces.
10948
b8ff72fa
SM
10949 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
10950 Allow MSDOS frames along with X frames.
aac0c6e3
MR
10951
10952 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
10953 addition to output_termcap.
10954
10955 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
10956
10957 * termchar.h (FRAME_TTY): Support output_msdos_raw.
10958 (struct tty_display_info) [MSDOS]: Add fields related to mouse
10959 highlight.
10960
10961 * process.c [!subprocesses]: Define QCname.
10962 (syms_of_process): Intern and staticpro it.
10963
10964 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
10965 Adjust for changes in encoding/decoding routines.
10966 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
10967 encode_coding and decode_coding.
10968
b8ff72fa 10969 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
10970
10971 * dosfns.c: Include frame.h before termhooks.h.
10972 (dos_cleanup): Use CURTTY ()->termscript instead of a global
10973 variable termscript.
10974
10975 * s/msdos.h (USER_FULL_NAME): Define.
10976 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
10977
10978 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
10979 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
10980 pw->pw_gecos.
10981
10982 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
10983 SELECTED_FRAME as additional (1st) argument.
10984 (tty_read_avail_input): Handle output_msdos_raw in
10985 addition to output_termcap.
10986
10987 * msdos.c: Include frame.h before termhooks.h.
10988 (mouse_on, mouse_off, mouse_moveto, mouse_init)
10989 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
10990 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
10991 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
10992 (IT_set_terminal_modes, IT_reset_terminal_modes)
10993 (IT_set_frame_parameters): Use tty->termscript instead of a global
10994 variable termscript.
10995 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
10996 global variable terminal_coding. Don't refer to
10997 Vnonascii_translation_table.
10998 (internal_terminal_init): Set Vwindow_system in current_kboard.
10999 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
11000 Announce date and time of session start, if termscript is open.
11001 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
11002 term.c:init_tty). Open termscript only of not already open.
11003 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
11004 here instead of dos_ttraw. Don't initialize display if this is an
11005 initial tty. Don't set FRAME_FONT.
11006 (Vwindow_system_version): Bump to 23.
11007 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
11008 is available, set up mouse_position_hook.
11009 (dos_ttraw, IT_set_terminal_modes): If called with initial
11010 terminal, do nothing.
11011 (IT_set_frame_parameters): Handle the Qtty_type frame
11012 parameter by calling internal_terminal_init.
11013 (dos_set_window_size, show_mouse_face)
11014 (clear_mouse_face, IT_note_mode_line_highlight)
11015 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
11016 (dos_rawgetc): Use tty_display_info instead of x_display_info.
11017 (initialize_msdos_display): New function.
11018 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
11019 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
11020 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
11021 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 11022 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
11023 (request_sigio, unrequest_sigio): Don't define, now defined on
11024 sysdep.c.
11025 (IT_write_glyphs): Rewrite to use encode_terminal_code.
11026
11027 * term.c [MSDOS]: Include msdos.h.
11028 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
11029 conditional to DOS_NT. Allow only one call to this function in a
11030 session. Don't allocate a new struct tty_display_info; instead,
11031 reuse the_only_display_info. Call get_tty_size to get screen
11032 dimensions. Call init_baud_rate to set bad_rate.
11033 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
11034 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 11035 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
11036 (get_tty_terminal, get_named_tty, Ftty_type)
11037 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
11038 output_termcap.
b8ff72fa
SM
11039 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
11040 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 11041 only when subprocesses are supported.
aac0c6e3
MR
11042
11043 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
11044 f->output_data.x.
11045 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
11046 terminal devices.
11047
5582fbc7 11048 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
11049 x_output.
11050 (FRAME_FONT): Use output_data.tty.
11051 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
11052 (struct x_display_info): Rename from display_info. Update all users in
11053 msdos.c.
aac0c6e3 11054 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 11055 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
11056 (dos_ttraw): Update prototype.
11057
11058 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
11059 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
11060
110612008-08-23 Jason Rumney <jasonr@gnu.org>
11062
11063 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
11064 (fn_TIFFSetDirectory): New library function used.
11065 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
11066 (tiff_load): Use :index to select among multiple images. Set count
11067 property when multiple images exist.
11068 (gif_format): Use :index, not :image.
11069
110702008-08-23 Chong Yidong <cyd@stupidchicken.com>
11071
11072 * xdisp.c (try_scrolling): Check INT_MAX instead of
11073 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
11074 to obtain INT_MAX.
11075
110762008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
11077
11078 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
11079
110802008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
11081
11082 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
11083 GNUstep library location.
11084
110852008-08-21 Chong Yidong <cyd@stupidchicken.com>
11086
11087 * xfaces.c (x_update_menu_appearance): Check validity of menu font
11088 before using it.
11089
11090 * puresize.h (BASE_PURESIZE): Increase to 1250000.
11091
110922008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
11093
11094 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
11095 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
11096 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
11097 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
11098 (EmacsApp-cursor_blink_handler): Remove declaration.
11099 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
11100 match 01 Feb 2008 changes in xterm.c.
11101 (ns_read_socket): Add cast to avoid warning.
11102 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
11103 GNUstep.
11104
111052008-08-20 Chong Yidong <cyd@stupidchicken.com>
11106
11107 * xselect.c (x_get_foreign_selection): Return nil if desired
11108 selection could not be obtained, instead of signalling an error.
11109
111102008-08-20 David Reitter <david.reitter@gmail.com>
11111
11112 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
11113 * nsterm.m: Remove ns-specific code for cursor blinking.
11114 (ns_draw_window_cursor): Clear cursor properly rather than
11115 redrawing the area. Respect width of bar cursors.
11116 These changes enable the use of generic blink-cursor-mode and
11117 generic cursor types in NS and support smooth cursor movements (do
11118 not blink off after command).
11119 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
11120 Nextstep, too.
11121
111222008-08-19 Kenichi Handa <handa@m17n.org>
11123
11124 * font.c (Vfont_log_deferred): New variable.
11125 (font_add_log): Check Vfont_log_deferred.
11126 (font_deferred_log): New function.
11127
11128 * font.h (font_deferred_log): Extern it.
11129
11130 * fontset.c (reorder_font_vector): Use encoding charset of fonts
11131 for sorting.
11132 (face_for_char): Use deferred log.
11133
111342008-08-18 Kenichi Handa <handa@m17n.org>
11135
11136 * fontset.c (face_for_char): Add font log.
11137
11138 * font.c (font_add_log): Add the font properties :script, :lang,
11139 and :otf in the log.
11140
111412008-08-17 Chong Yidong <cyd@stupidchicken.com>
11142
11143 * xdisp.c: Remove dead code.
11144 (handle_invisible_prop, next_overlay_string): Defer call to
11145 setup_for_ellipsis.
11146 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
11147
111482008-08-15 Chong Yidong <cyd@stupidchicken.com>
11149
11150 * xfaces.c (lookup_derived_face): Properly handle possible zero
11151 return value of get_lface_attributes.
11152 (merge_faces): Don't tell lookup_derived_face to signal an error
11153 if face is not found.
11154
11155 * dired.c (Fdirectory_files): Doc fix.
11156
11157 * process.c (make_process): Initialize kill_without_query struct
11158 member.
11159
111602008-08-15 Eli Zaretskii <eliz@gnu.org>
11161
11162 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
11163 Alternative calculation of totphys for Visual Studio 6.
11164
11165 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
11166
11167 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
11168 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
11169 All users changed.
11170 (stat): Only root directory passed to GetDriveType. Allow RAM
11171 disk as well as local fixed disk when w32-get-true-file-attributes
11172 is set to `local'.
11173 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
11174 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
11175 (w32_cached_id, w32_add_to_cache): New functions.
11176 (get_name_and_id): Look account names in the cache before calling
11177 lookup_account_sid.
11178 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
11179 New initialization flags.
11180 (globals_of_w32): Initialize them to zero.
11181 (w32_system_process_attributes): Use w32_cached_id and
11182 w32_add_to_cache.
11183
111842008-08-14 Lawrence Mitchell <wence@gmx.li>
11185
11186 * lread.c (Fread_char, Fread_char_exclusive): If no character
11187 event is read before timeout is reached, return nil, rather than
11188 converting to a number.
11189
111902008-08-14 Chong Yidong <cyd@stupidchicken.com>
11191
11192 * fns.c (use_dialog_box): Doc fix.
11193
11194 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
11195 on OS X.
11196
111972008-08-13 Chong Yidong <cyd@stupidchicken.com>
11198
11199 * frame.c (Qns_parse_geometry): New var.
11200 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
11201
112022008-08-11 Chong Yidong <cyd@stupidchicken.com>
11203
11204 * xdisp.c (x_produce_glyphs): Handle the case when font has no
11205 space character in calculating tabs.
11206
112072008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
11208
11209 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
11210
112112008-08-10 Glenn Morris <rgm@gnu.org>
11212
11213 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
11214 silence gcc "limited range of data type" warnings in some
11215 make_fixnum_or_float calls.
11216
112172008-08-09 Eli Zaretskii <eliz@gnu.org>
11218
11219 * w32.c (w32_system_process_attributes): If the process does not
11220 exist, return nil.
11221
11222 * w32.c: Include thelp32.h, psapi.h and coding.h.
11223 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
11224 declarations.
11225 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
11226 (Process32Next_Proc): New typedefs.
11227 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
11228 (g_b_init_process32_next, g_b_init_open_thread_token)
11229 (g_b_init_impersonate_self, g_b_init_revert_to_self)
11230 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
11231 (g_b_init_get_process_working_set_size)
11232 (g_b_init_global_memory_status_ex): New static variables.
11233 (globals_of_w32): Initialize them.
11234 (create_toolhelp32_snapshot, process32_first, process32_next)
11235 (open_thread_token, impersonate_self, revert_to_self)
11236 (get_process_memory_info, get_process_working_set_size)
11237 (global_memory_status, global_memory_status_ex): New wrapper
11238 functions.
11239 (w32_list_system_processes, w32_system_process_attributes)
11240 (enable_privilege, restore_privilege, ltime, process_times):
11241 New functions.
11242 (convert_time_raw): New function.
11243 (convert_time): Remove conversion of FILETIME into time in 100
11244 nsec units, call convert_time_raw instead.
11245
11246 * process.h (w32_list_system_processes, w32_system_process_attributes):
11247 Add prototypes.
11248 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
11249 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
11250 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
11251 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
11252
11253 * process.c (Fsystem_process_attributes): Doc fix.
11254
112552008-08-08 Chong Yidong <cyd@stupidchicken.com>
11256
11257 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
11258 a continued multi-char glyph; if so, advance to the actual glyph.
11259
112602008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
11261
11262 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
11263
11264 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
11265 (.m.o): Use it.
11266 * config.in: Regenerate.
11267
112682008-08-07 Chong Yidong <cyd@stupidchicken.com>
11269
11270 * xdisp.c (redisplay_window): Revert last change.
11271 (try_window): Check bottom scroll margin too.
11272
112732008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11274
11275 * config.in: Regenerate.
11276
11277 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
11278 -list-load-path-shadows'.
11279 (nsgui.h): Reduce number of things depending on it.
11280
112812008-08-06 Chong Yidong <cyd@stupidchicken.com>
11282
11283 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
11284 instead of window-end which does the wrong thing at eob.
11285 (try_cursor_movement): Minor optimization.
11286 (redisplay_window): If scroll margin is defined, don't assume
11287 window doesn't need scrolling.
11288
112892008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
11290
11291 * config.in: Regenerate.
11292
11293 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
11294 (mostlyclean): Don't delete *.d under NS.
11295
11296 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
11297
112982008-08-06 Kenichi Handa <handa@m17n.org>
11299
11300 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
11301
113022008-08-06 Andreas Schwab <schwab@suse.de>
11303
11304 * config.in: Regenerate.
11305
113062008-08-05 Chong Yidong <cyd@stupidchicken.com>
11307
11308 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
11309 forcing a window start.
11310
11311 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
11312 (auto_save_1): Update modtime when auto-save-list-file-name is on.
11313
113142008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11315
11316 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
11317 argument.
11318
113192008-08-05 Juanma Barranquero <lekktu@gmail.com>
11320
11321 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
11322 <scroll-down-aggressively, before-change-functions>:
11323 <after-change-functions>: Reflow docstrings.
11324
113252008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 11326 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
11327
11328 Dock menu customization, based on a patch by Ken Raeburn, plus some
11329 other fixes.
11330 * nsmenu.m (dockMenu): New variable.
11331 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
11332
11333 * nsterm.h (dockMenu): Declare.
11334
11335 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
11336 (ns_term_init): Initialize dockMenu.
11337 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
11338 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
11339 left.
11340
11341 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
11342
113432008-08-04 Chong Yidong <cyd@stupidchicken.com>
11344
11345 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
11346
11347 * config.in: Regenerate.
11348
113492008-08-04 Seiji Zenitani <zenitani@mac.com>
11350
11351 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
11352
113532008-08-04 Chong Yidong <cyd@stupidchicken.com>
11354
11355 * nsterm.h (find_and_call_menu_selection): Fix prototype.
11356
113572008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
11358
11359 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
11360
11361 * keyboard.h: Comment an #endif.
11362
11363 * lisp.h (have_menus_p): Adjust comment.
11364
11365 * menu.c (find_and_return_menu_selection): Fix comparison with
11366 client_data.
11367
11368 * nsmenu.m (popup_activated_flag): New variable.
11369 (popup_activated): New function.
11370 (menu-or-popup-active-p): New exported lisp definition.
11371 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
11372 when popup done.
11373 (ns_popup_dialog): Set popup_activated_flag.
11374
11375 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
11376 version for GNUstep (handled by conditional typedef in nsterm.m).
11377 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
11378 in rgb.txt).
11379
11380 * process.c (init_process): Use DARWIN_OS, not DARWIN.
11381
11382 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
11383
11384 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
11385
11386 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
11387 shortcircuit if popup_activated like GTK and X toolkit.
11388
11389 * m/inter386.h: Change DARWIN to DARWIN_OS.
11390
11391 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
11392 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
11393 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
11394 comment on NO_SOCK_SIGIO.
11395
113962008-08-03 Chong Yidong <cyd@stupidchicken.com>
11397
11398 * nsterm.m (windowDidResize): Remove stopModal call.
11399
114002008-08-03 Andreas Schwab <schwab@suse.de>
11401
11402 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
11403 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
11404
114052008-08-02 Chong Yidong <cyd@stupidchicken.com>
11406
11407 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
11408 Don't use uninitialized pointer variable when using getrlimit.
11409
114102008-08-02 Jason Rumney <jasonr@gnu.org>
11411
11412 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
11413
114142008-08-02 Eli Zaretskii <eliz@gnu.org>
11415
11416 * alloc.c (NSTATICS): Bump to 0x640.
11417
11418 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
11419
11420 * lisp.h: Add prototype for directory_files_internal.
11421
11422 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
11423 New functions.
11424 (syms_of_process): Defsubr them. Add initializations for various
11425 Q* symbols used in procfs_system_process_attributes.
11426 (procfs_list_system_processes, procfs_system_process_attributes)
11427 [HAVE_PROCFS]: New functions.
11428 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
11429 (procfs_get_total_memory): New functions.
11430
114312008-08-01 Juanma Barranquero <lekktu@gmail.com>
11432
11433 * xfaces.c (Fx_load_color_file): Fix previous change;
11434 it is #ifdef WINDOWSNT, not WINDOWS_NT.
11435
114362008-08-01 Michael Albinus <michael.albinus@gmx.de>
11437
11438 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
11439
114402008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11441
11442 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
11443
114442008-08-01 Chong Yidong <cyd@stupidchicken.com>
11445
11446 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
11447
11448 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
11449 define NSApplicationDelegateReplySuccess.
11450 (EmacsView -converstationIdentifier): Use long instead of
11451 NSInteger for GNUstep, since it doesn't have NSInteger.
11452
11453 * xmenu.c: Revert last change.
11454
11455 * keyboard.h: Fix last change.
11456
114572008-08-01 Juanma Barranquero <lekktu@gmail.com>
11458
11459 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
11460 on Windows.
11461
114622008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11463
11464 Warning clearing and clean-up in NS port.
11465 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
11466 Add prototypes.
11467 * nsgui.h (FACE_DEFAULT): Remove, unused.
11468 (XGCValues): Change colors to unsigned long.
11469 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
11470 nsterm.m.
11471 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
11472 (ns_list_fonts): Remove, unused.
11473 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
11474 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
11475 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
11476 (nsfont_draw): Compare face colors to 0, not nil.
11477 * nsmenu.m (struct widget_value): Drop unneeded declaration.
11478 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
11479 (-addSubmenuWithTitle:): Use NSMenuItem class.
11480 (ns_popup_menu): Use NO, not NULL, for enabled setting.
11481 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
11482 (ns_clip_to_row): Make gc arg a BOOL.
11483 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
11484 ns_clip_to_row() call.
11485 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
11486 used). Cast FRAME_FONT assignments.
11487 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
11488 (ns_string_to_lispmod): Change arg to const char.
11489 (ns_term_init): Use NSMenuItem class.
11490 (EmacsApp -openFile:): Move to different section of file.
11491 (EmacsApp -application:openFiles:): Don't return a value, call
11492 -replyToOpenOrPrint:.
11493 (EmacsView -keyDown:): Fix up cast.
11494 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
11495 (EmacsView -menuDown:): Cast tag in call to
11496 find_and_call_menu_selection().
11497 (ns_list_fonts): Remove, unused.
11498 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
11499 (ns_fontname_to_xlfd): Make static.
11500 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
11501 Remove prototypes (now in keyboard.h).
11502 (next_menubar_widget_id): Remove, unused.
11503 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
11504 Remove prototypes (now in keyboard.h).
11505 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
11506
115072008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
11508
11509 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
11510 (floatfns.o): Depend on syssignal.h.
11511 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
11512
11513 * systty.h: Fix previous change that removed BSD_TERMIOS.
11514 Add comments to #ifdefs.
11515
115162008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11517
11518 * w32fns.c (w32-load-color-file): Remove.
11519 (x-open-connection): Use renamed Fx_load_color_file.
11520 * xfaces.c (x-load-color-file): Add.
11521 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
11522 Emacs.clr.
11523 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
11524
115252008-07-31 Michael Albinus <michael.albinus@gmx.de>
11526
11527 * dbusbind.c (Fdbus_call_method_asynchronously)
11528 (Fdbus_method_error_internal): New defuns.
11529 (xd_read_message): Handle also reply messages.
11530 (Vdbus_registered_functions_table): Extend docstring.
11531
115322008-07-31 Juanma Barranquero <lekktu@gmail.com>
11533
11534 * keyboard.c (gobble_input): Fix previous change.
11535
115362008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11537
11538 * bitmaps/README:
11539 * xfns.c:
11540 * termcap.c:
11541 * term.c:
11542 * syswait.h:
11543 * systty.h:
11544 * systime.h:
11545 * syssignal.h:
11546 * sysdep.c:
11547 * process.h:
11548 * process.c:
11549 * print.c:
11550 * ndir.h:
11551 * lread.c:
11552 * keyboard.c:
11553 * getpagesize.h:
11554 * floatfns.c:
11555 * fileio.c:
11556 * emacs.c:
11557 * doc.c:
11558 * dispnew.c:
11559 * dired.c:
11560 * data.c:
11561 * callproc.c:
11562 * buffer.c:
11563 * README:
11564 * Makefile.in:
11565 * s/template.h:
11566 * s/msdos.h:
11567 * m/vax.h: Remove VMS support.
11568 * s/vms.h:
11569 * vlimit.h:
11570 * uaf.h:
11571 * temacs.opt:
11572 * param.h:
11573 * ioctl.h: Remove file.
11574
115752008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
11576
11577 * s/ms-w32.h (MULTI_KBOARD): Remove.
11578 * xterm.c:
11579 * xselect.c:
11580 * xfns.c:
11581 * window.c:
11582 * w32term.c:
11583 * w32fns.c:
11584 * terminal.c:
11585 * termhooks.h:
11586 * term.c:
11587 * sysdep.c:
11588 * keyboard.h:
11589 * keyboard.c:
11590 * frame.h:
11591 * frame.c:
11592 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
11593 * config.in: Regenerate.
11594
115952008-07-30 Jason Rumney <jasonr@gnu.org>
11596
11597 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
11598
11599 * w32font.c (w32font_encode_char): Leave as unicode if in range.
11600 (w32font_open_internal): Get unicode version of textmetrics.
11601 Don't enable or disable glyph indices here.
11602 (w32font_open): Disable use of glyph indices.
11603
11604 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
11605
116062008-07-30 Chong Yidong <cyd@stupidchicken.com>
11607
11608 * minibuf.c (Vread_buffer_function): Doc fix.
11609
116102008-07-30 John Paul Wallington <jpw@pobox.com>
11611
11612 * minibuf.c (read_buffer_completion_ignore_case): New var.
11613 (Fread_buffer): Use it.
11614
116152008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
11616
11617 * systty.h (sensemode): Remove empty #if. Remove reference to
11618 BSD_TERMIOS, unused.
11619
11620 * sysdep.c: Remove reference to DGUX.
11621 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
11622
11623 * config.in: Regenerate.
11624
116252008-07-30 Jason Rumney <jasonr@gnu.org>
11626
11627 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
11628
116292008-07-29 Jason Rumney <jasonr@gnu.org>
11630
11631 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
11632 is populated.
11633 (uniscribe_encode_char): Always use uniscribe.
11634 Avoid using context if cache is populated.
11635
116362008-07-29 Jan Djärv <jan.h.d@swipnet.se>
11637
11638 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
11639 open menu.
11640
11641 * gtkutil.c (menu_nav_ended): Remove.
11642 (create_menus): Remove signal connect for menu_nav_ended.
11643
116442008-07-28 Chong Yidong <cyd@stupidchicken.com>
11645
11646 * xdisp.c (redisplay_window): Check return value of
11647 compute_window_start_on_continuation_line before forcing a window
11648 start.
11649
116502008-07-28 Jason Rumney <jasonr@gnu.org>
11651
11652 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
11653
11654 * w32term.c (w32_enable_unicode_output, cleartype_active):
11655 Remove obsolete display options.
11656 (x_draw_glyph_string_background): Don't use old cleartype_active
11657 workaround.
11658 (w32_initialize): Remove cleartype_active initialization.
11659 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
11660
116612008-07-28 Andreas Schwab <schwab@suse.de>
11662
11663 * lisp.h (init_weak_hash_tables, syms_of_font)
11664 (xd_read_queued_messages, syms_of_dbusbind): Declare.
11665 (remove_hash_entry): Don't declare.
11666 * eval.c (maybe_call_debugger): Make static and move before use.
11667 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
11668 * xdisp.c: Include "gtkutil.h" if USE_GTK.
11669 * xterm.h (x_set_frame_alpha): Declare.
11670
116712008-07-28 Jan Djärv <jan.h.d@swipnet.se>
11672
11673 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
11674 (create_menus): Connect selection-done to menu_nav_ended.
11675
116762008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11677
11678 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
11679 Set Vx_resource_name to a fallback. Replace read of 'buffered'
11680 parameter with read of 'alpha' one.
11681 (Qns_frame_parameter): Remove.
5582fbc7 11682 * nsselect.m (selection-coding-system)
aac0c6e3
MR
11683 (next-selection-coding-system, Vselection_coding_system)
11684 (Vnext_selection_coding_system): Drop.
11685
116862008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11687
11688 * nsfns.m (do-applescript, do_applescript): Rename to
11689 ns-do-applescript, ns_do_applescript, and move within file.
11690
116912008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
11692
11693 Remove support for Mac Carbon.
11694 * mactoolbox.c:
11695 * macterm.h:
11696 * macterm.c:
11697 * macselect.c:
11698 * macmenu.c:
11699 * macgui.h:
11700 * macfns.c:
11701 * mac.c: Remove file.
11702 * s/darwin.h:
11703 * m/intel386.h:
11704 * xfaces.c:
11705 * xdisp.c:
11706 * window.c:
11707 * tparam.c:
11708 * termhooks.h:
11709 * termcap.c:
11710 * term.c:
11711 * syssignal.h:
11712 * sysselect.h:
11713 * sysdep.c:
11714 * process.c:
11715 * lread.c:
11716 * lisp.h:
11717 * keyboard.c:
11718 * image.c:
11719 * fringe.c:
11720 * frame.h:
11721 * frame.c:
11722 * fontset.c:
11723 * font.h:
11724 * font.c:
11725 * fns.c:
11726 * fileio.c:
11727 * emacs.c:
11728 * dispnew.c:
11729 * dispextern.h:
11730 * config.in:
11731 * atimer.c:
2ae37cf0 11732 * Makefile.in: Remove code for Carbon.
aac0c6e3 11733
f0131492 117342008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
11735
11736 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
11737
117382008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11739
11740 * macterm.h (kCGBitmapByteOrder32Host): New define for
11741 non-universal SDKs.
11742
11743 * image.c (mac_create_cg_image_from_image, image_load_image_io)
11744 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11745
11746 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
11747 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
11748
117492008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
11750
11751 * w32inevt.c: Include dispextern.h.
11752
117532008-07-26 Andreas Schwab <schwab@suse.de>
11754
11755 * print.c (print_object): Fix off-by-one in last change.
11756
117572008-07-25 Juanma Barranquero <lekktu@gmail.com>
11758
11759 * term.c (syms_of_term): Don't initialize default_orig_pair,
11760 default_set_foreground and default_set_background on Windows.
11761
117622008-07-25 Jason Rumney <jasonr@gnu.org>
11763
11764 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
11765 ScriptItemize. Clean up return value checking. Remove unused
11766 variables.
11767 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
11768 shaping engine.
11769
11770 * w32font.c (w32font_has_char): Handle the case where we can't
11771 determine the script for a character.
11772
117732008-07-25 Chong Yidong <cyd@stupidchicken.com>
11774
11775 * term.c (syms_of_term): Initialize default_orig_pair,
11776 default_set_foreground, and default_set_background.
11777
11778 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11779 clash (bug#86).
11780 (getloadavg): Callers changed.
11781
11782 * image.c (svg_load_image): Fix last change.
11783 (svg_load_image): Use rsvg_handle_get_dimensions to check that
11784 image size is valid. Use g_object_unref instead of deprecated
11785 rsvg_handle_free to free rsvg handle.
11786 (x_from_xcolors): Don't initialize pixmap (silence compiler).
11787
117882008-07-25 Jason Rumney <jasonr@gnu.org>
11789
11790 * w32font.c (w32font_encode_char): Encode characters outside BMP as
11791 surrogates before looking up glyph index.
11792 (w32font_text_extents): Encode as surrogates if falling back to
11793 functions that need UTF-16 wide chars.
11794
11795 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
11796 BMP as surrogates before looking up glyph index.
11797
117982008-07-25 Chong Yidong <cyd@stupidchicken.com>
11799
11800 * image.c (svg_load_image): Check for failure in return value of
11801 rsvg_handle_get_pixbuf. Free rsvg handle when done.
11802
118032008-07-25 Jason Rumney <jasonr@gnu.org>
11804
11805 * w32font.c (Fx_select_font): Reverse sense of second arg.
11806
118072008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
11808
11809 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
11810 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
11811
11812 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
11813 (PURESIZE): Use it.
11814
118152008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
11816
11817 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
11818 * m/alpha.h (TEXT_END):
11819 * m/ibmrs6000.h (TEXT_END):
11820 * m/macppc.h (TEXT_END):
11821 * s/darwin.h (TEXT_END):
11822 * s/msdos.h (TEXT_END): Remove, unused.
11823 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
11824 * s/cygwin.h: Remove comment.
11825
11826 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
11827 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
11828 * m/intel386.h (DOT_GLOBAL_START):
11829 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
11830 (USG): Remove, file not used on USG platforms.
11831
11832 * Makefile.in (HAVE_X11): Remove empty #else.
11833
118342008-07-24 Andreas Schwab <schwab@suse.de>
11835
11836 * fileio.c (Finsert_file_contents): Properly adjust undo list
11837 after format conversion.
11838
118392008-07-24 Jan Djärv <jan.h.d@swipnet.se>
11840
11841 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
11842 (menu_nav_ended): Remove.
11843 (create_menus): Remove signal connect for menu_nav_ended.
11844 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
11845 create_menus.
11846 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
11847
118482008-07-23 Jason Rumney <jasonr@gnu.org>
11849
11850 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
11851 with opened font.
11852 (w32font_open): Set font type to gdi.
11853
11854 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
11855
118562008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
11857
11858 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
11859 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
11860 defines it.
11861 * unexec.c (ADDR_CORRECT): Define unconditionally.
11862
11863 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
11864
11865 * unexec.c: Remove code depending on !COFF and USG, the file is
11866 not used for such systems.
11867
11868 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
11869 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
11870 (LD_SWITCH_SYSTEM_1): Remove, update users.
11871
11872 * s/darwin.h (DATA_END):
11873 * m/intel386.h (DATA_END):
11874 * m/ibmrs6000.h (DATA_END):
11875 * m/alpha.h (DATA_END): Remove, unused.
11876
11877 * config.in: Regenerate.
11878 * s/ms-w32.h (subprocesses): Define unconditionally.
11879 * s/template.h (subprocesses): Update comment.
11880 * s/vms.h (subprocesses):
11881 * s/usg5-4.h (subprocesses):
11882 * s/hpux10-20.h (subprocesses):
11883 * s/gnu-linux.h (subprocesses):
11884 * s/cygwin.h (subprocesses):
11885 * s/bsd-common.h (subprocesses):
11886 * s/aix4-2.h (subprocesses):
11887 * s/darwin.h (subprocesses): Do not define, defined by default now.
11888
11889 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
11890 Remove all references.
11891 (temacs): Add GNUstep specific ld flags.
11892
11893 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
11894 similarly to what X does.
11895
118962008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11897
11898 * nsfns.m (x-list-fonts): Remove.
11899 (syms_of_nsfns): Drop the x-list-fonts declaration.
11900 * nsterm.m: Get rid of remaining "//" comments.
11901
119022008-07-22 Chong Yidong <cyd@stupidchicken.com>
11903
11904 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
11905
11906 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
11907 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
11908 (Fns_own_selection_internal, Fx_disown_selection_internal)
11909 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
11910
11911 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
11912 ... */' style of docstrings. Doc fixes.
11913
119142008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11915
11916 * terminfo.c (UP, BC, PC): Undo previous change.
11917
11918 * nsfns.m: Rename ns prefixed functions/variables to the
11919 corresponding x versions. Update references.
11920
119212008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
11922
11923 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
11924
119252008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
11926
11927 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
11928 Remove forwarding functions.
11929 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
11930 non-static.
11931 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
11932 non-static.
11933 (ns_frame_parm_handlers): Use the new names.
11934 (syms_of_nsfns): Move to the end of file.
11935
11936 * nsterm.m (syms_of_nsterm): Move to the end of file.
11937
11938 * dispnew.c (init_display): Remove code for X10.
11939
119402008-07-22 Jason Rumney <jasonr@gnu.org>
11941
11942 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
11943 bare drive.
11944
119452008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
11946
11947 * nsterm.m (syms_of_nsterm): Remove debugging println.
11948
119492008-07-22 David Reitter <david.reitter@gmail.com>
11950
11951 * nsfns.m (do_applescript, F_do_applescript): NS version of the
11952 Carbon implementation of the same functionality: execute arbitrary
11953 AppleScript code.
11954
119552008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
11956
11957 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
11958 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
11959 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11960 (Fx_display_mm_height, Fx_display_mm_width)
11961 (Fx_display_backing_store, Fx_display_visual_class)
11962 (Fx_display_save_under, Fx_open_connection)
11963 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
11964 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
11965 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
11966 (Fx_display_pixel_width, Fx_display_pixel_height)
11967 (Fx_display_usable_bounds, Fx_display_planes)
11968 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
11969 ... */' style of docstrings.
11970
119712008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
11972
11973 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
11974 on this platform.
11975 (mips):
11976 * m/iris4d.h (mips): Do not define.
11977 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
11978
11979 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
11980
11981 * image.c:
11982 * nsfns.m:
11983 * nsselect.m:
11984 * nsterm.h:
11985 * nsterm.m: Rename ns prefixed functions/variables to the
11986 corresponding x versions. Update references.
11987
11988 * m/ibms390x.h (NO_REMAP): Do not undefine.
11989
11990 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
11991
119922008-07-21 Chong Yidong <cyd@stupidchicken.com>
11993
11994 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
11995 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
11996 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
11997 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
11998 (Fns_display_mm_height, Fns_display_mm_width)
11999 (Fns_display_backing_store, Fns_display_visual_class)
12000 (Fns_display_save_under, Fns_open_connection)
12001 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
12002 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
12003 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
12004 (Fns_display_pixel_width, Fns_display_pixel_height)
12005 (Fns_display_usable_bounds, Fx_display_planes)
12006 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
12007
120082008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
12009
12010 * print.c (print_object): Check print_depth before searching for
12011 circularities.
12012
120132008-07-21 Michael Albinus <michael.albinus@gmx.de>
12014
12015 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
12016 only sprintf.
12017
120182008-07-21 Kenichi Handa <handa@m17n.org>
12019
12020 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
12021
120222008-07-20 Andreas Schwab <schwab@suse.de>
12023
12024 * syntax.c (find_start_pos, find_start_value)
12025 (find_start_value_byte, find_start_begv, find_defun_start)
12026 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
12027
120282008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12029
12030 * s/sol2-3.h: Insert contents of s/sol2.h.
12031 (LD_SWITCH_SYSTEM): Remove redundant definition.
12032 * s/sol2.h: Remove, unused.
12033
120342008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12035
12036 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
12037
120382008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12039
12040 * Makefile.in (ns_appdir): Fix typo in find command.
12041
120422008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
12043
12044 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
12045
12046 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
12047 added not supported anymore.
12048
12049 * s/usg5-4-2.h (LIBS_SYSTEM):
12050 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
12051
12052 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12053 * s/lynxos.h (GETPGRP_NO_ARG):
12054 * s/hpux10-20.h (NO_SIOCTL_H):
12055 * s/gnu.h (GETPGRP_NO_ARG):
12056 * s/gnu-linux.h (NO_SIOCTL_H):
12057 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
12058 * s/cygwin.h (GETPGRP_NO_ARG):
12059 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
12060 (C_DEBUG_SWITCH): Remove duplicate definition.
12061
12062 * m/ibms390.h: Remove boilerplate comments.
12063
12064 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
12065
12066 * process.c (HAVE_SERIAL): Consolidate ifdefs.
12067 (wait_reading_process_output): Remove code for SunOS, platform not
12068 supported anymore. Use SOLARIS2 instead of sun.
12069
120702008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12071
12072 * font.c (font_open_by_name): Under NS, default lface height to zero.
12073 (font_open_for_lface): Under NS, set size based on frame fontsize.
12074 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
12075 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
12076
120772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12078
12079 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
12080 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
12081 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
12082 YES/NO.
12083 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
12084 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
12085 * Makefile.in (clean): Clear out build destination dir.
12086
120872008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12088
12089 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
12090 xterm, xselect.
12091 * lisp.h: Remove declaration of hash_remove.
12092 * nsgui.h: Remove redefinitions of hash_remove.
12093 * fns.c (hash_remove): Rename to hash_remove_from_table.
12094
120952008-07-19 Seiji Zenitani <zenitani@mac.com>
12096
12097 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
12098 strdup() the family UTF8String before modifying it.
12099
121002008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
12101
12102 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
12103 NS_FACE_BACKGROUND with 0 instead of nil.
12104 * nsfont.m (nsfont_draw): Same.
12105
121062008-07-19 Chong Yidong <cyd@stupidchicken.com>
12107
12108 * nsfns.m (ns_set_background_color): Fix crash.
12109
121102008-07-18 Chong Yidong <cyd@stupidchicken.com>
12111
12112 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
12113
121142008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
12115
12116 * puresize.h (BASE_PURESIZE): Increase to 1240000.
12117
121182008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12119
12120 * gtkutil.c: Include <config.h> instead of "config.h".
12121
12122 * lisp.h (Foverlay_buffer): Add EXFUN.
12123
12124 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
12125 child process to complete child_setup. Undo 2005-09-21 change.
12126
12127 * s/darwin.h: Mention setsid after vfork.
12128
121292008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12130
12131 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
12132 Depend on macgui.h.
12133
12134 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
12135 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
12136
12137 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
12138 and f19.
12139 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
12140
12141 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
12142 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
12143 Remove enumerators.
12144
12145 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
12146 Check if FACE_FROM_ID returns NULL.
12147
121482008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
12149
12150 * w32inevt.c (change_frame_size): Remove extern declaration.
12151 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
12152 change_frame_size.
12153
121542008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12155
12156 * getloadavg.c: Revert last change (2008-07-15).
12157
121582008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
12159
12160 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 12161 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
12162 from configure.
12163
121642008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
12165
12166 * s/sol2.h:
12167 * s/sol2-4.h: Reorganize conditionals.
12168
12169 * ecrt0.c: Remove code depending on m68000, not used anymore.
12170
12171 * fns.c (hash_remove): Make static.
12172 * lisp.h (hash_remove): Don't prototype.
12173
12174 * m/ibmrs6000.h:
12175 * m/ibms390x.h:
12176 * m/macppc.h: Remove boilerplate comments.
12177
12178 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
12179 Solaris, which does not need them.
12180
12181 * m/vax.h: Remove comments about unsupported systems.
12182
12183 * s/darwin.h: Reorganize ifdefs.
12184
121852008-07-17 Andreas Schwab <schwab@suse.de>
12186
12187 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
12188
121892008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
12190
12191 Use SDATA. Follow coding convention of placing operators at
12192 beginning of next line rather than end of previous line, and placing
12193 spaces around infix operators.
12194
12195 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
12196 in case it was defined already.
12197 USE @GNUSTEP_MAKEFILES@ rather than envvars.
12198 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
12199 ns_default.
12200 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
12201 Lisp_Objects.
12202 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
12203 (ns_defined_color, ns_color_to_lisp): Declare.
12204 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
12205 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
12206 it's accepted even with USE_LISP_UNION_TYPE.
12207 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
12208 (update_frame_tool_bar): Remove apparently obsolete tests for
12209 non-integerness of f->tool_bar_lines.
12210 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
12211 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
12212 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
12213 (nsfont_open): Don't confuse NULL for Qnil.
12214 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
12215 * menu.h (find_and_call_menu_selection):
12216 * menu.c (find_and_call_menu_selection): Use just int for vector size.
12217 (find_and_return_menu_selection): Always return something.
12218 * frame.h: Include dispextern.h for Display_Info.
12219 (display_x_get_resource): Declare.
12220
122212008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
12222
12223 * syntax.c: Remove stdio.h include accidentally introduced in
12224 Emacs.app commit.
12225 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
12226 NS_IMPL_COCOA.
12227 * keyboard.c (handle_async_input, input_available_signal): Remove
12228 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
12229
122302008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12231
12232 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
12233 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
12234 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
12235 Use SDATA.
12236
12237 * keymap.c: Remove all NS-specific code.
12238 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
12239 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
12240 where_is_preferred_modifier, return a different value depending on how
12241 preferred is the binding.
12242 (where_is_internal): Adjust accordingly.
12243 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
12244 Adjust to new preferred_sequence_p.
12245 (syms_of_keymap): Declare `where-is-preferred-modifier'.
12246 * keyboard.c (parse_solitary_modifier): Not static any more.
12247 * keyboard.h (parse_solitary_modifier): Declare.
12248
122492008-07-16 Andreas Schwab <schwab@suse.de>
12250
12251 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
12252 of easymenu.
12253
122542008-07-16 Chong Yidong <cyd@stupidchicken.com>
12255
12256 * xdisp.c (move_it_in_display_line): Account for word wrap, so
12257 that we don't move off the line.
12258
122592008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
12260
12261 * keyboard.c (Qsuper): Remove.
12262 (parse_menu_item): Don't call where_is_internal specially for NS.
12263
122642008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12265
12266 * s/gnu-linux.h: Remove boilerplate comments.
12267
12268 * m/alpha.h (__ELF__): Consolidate conditions.
12269
12270 * m/m68k.h (linux): Use GNU_LINUX instead.
12271 Remove boilerplate comments.
12272
12273 * m/intel386.h: Undo refactoring from previous change.
12274 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
12275 too, remove dead code.
12276 (linux): Use GNU_LINUX instead.
12277
122782008-07-16 Jason Rumney <jasonr@gnu.org>
12279
12280 * w32gui.h: Repeat 26 June changes lost by last change.
12281
122822008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
12283
12284 * systty.h: Remove code for Aix on 386, unsupported platform.
12285
12286 * s/ms-w32.h: Remove boilerplate comments.
12287 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
12288
12289 * s/gnu-linux.h (TERM): Remove support.
12290 (HAVE_SYSVIPC): Remove, unused.
12291 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
12292 for this system.
12293
12294 * process.c: Remove support for IRIS, unused.
12295 Remove support for TERM, not relevant anymore.
12296
12297 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
12298 used with the definition.
12299
12300 * s/aix4-2.h (static): Do not undef.
12301
12302 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
12303 only used on Aix.
12304 (HAVE_SYSVIPC): Remove, unused.
12305
12306 * m/hp800.h (CANNOT_DUMP): Do not undef.
12307
12308 * m/alpha.h: Fix comment.
12309
12310 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
12311 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
12312 used by this configuration.
12313 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
12314 * unexec.c: Remove code depending on HPUX and
12315 USG_SHARED_LIBRARIES, not used with this file. Remove code
12316 depending on IRIS, unused. Remove if 0-ed code.
12317
12318 * s/template.h: Remove comments about static.
12319
12320 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
12321 Remove if 0-ed code.
12322 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
12323 were the same as the default.
12324 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
12325 Remove boilerplate comments.
12326 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
12327 (HAVE_SYSVIPC): Remove, unused.
12328 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
12329
12330 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12331 Remove boilerplate comments.
12332 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12333 Remove boilerplate comments.
12334 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
12335 Remove boilerplate comments.
12336 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
12337
12338 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
12339 USG systems which do not use DATA_SEG_BITS.
12340 Refactor code. Remove boilerplate comments.
12341
12342 * m/ibms390.h:
12343 * m/m68k.h:
12344 * s/bsd-common.h:
12345 * s/cygwin.h:
12346 * s/darwin.h:
12347 * s/freebsd.h:
12348 * s/gnu.h:
12349 * s/msdos.h: Remove boilerplate comments.
12350
12351 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 12352 do not use this file.
aac0c6e3
MR
12353 (IRIS_4D): Remove, unused.
12354
12355 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 12356 do not use this file.
aac0c6e3
MR
12357 (SIGN_EXTEND_CHAR):
12358 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
12359 * unexmips.c: Remove file, unused.
12360
12361 * editfns.c (Fuser_full_name): Replace the only use of
12362 USER_FULL_NAME with its value.
12363 * config.in: Regenerate.
12364
123652008-07-16 David Reitter <david.reitter@gmail.com>
12366
12367 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
12368 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
12369
123702008-07-16 Glenn Morris <rgm@gnu.org>
12371
12372 * emacs.c (system-type): Doc fix.
12373
123742008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
12375
12376 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
12377 If the cache doesn't work, let's fix it, rather than work around it.
12378
123792008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12380
12381 * Makefile.in: Correct additions for nsfont.o in last commit.
12382 * nsfont.m: New file (forgot last commit).
12383
123842008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
12385
12386 * callproc.c (set_initial_environment): Initialize
12387 Vprocess_environment under CANNOT_DUMP (fixes crash when
12388 batch-compiling for bootstrap).
12389
123902008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 12391 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 12392
c4cc8b9a
JB
12393 * frame.c (make_initial_frame): Call init_frame_faces(f) in
12394 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
12395
123962008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12397
12398 Changes and additions for NeXTstep windowing system (Cocoa and
12399 GNUstep) support.
12400
12401 * Makefile.in:
12402 * config.in: Support defines and build commands for NS port.
12403 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
12404 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
12405 * dispextern.h: Include nsgui.h and add needed typedefs under NS
12406 windowing.
12407 (struct face): Add synth_ital field.
12408 * dispnew.c: Include nsterm.h when compiling under NS windowing.
12409 (init_display): Initialize Vinitial_window_system to "ns" when so
12410 compiled.
12411 * emacs.c: Include GSConfig.h when compiling under GNUstep.
12412 (display_arg): Use under NS.
12413 (main): Under NS, allocate autorelease pool and handle command line
12414 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
12415 (standard_args): Add NS-specific args.
12416 (shut_down_emacs): Shut down NS terminal if compiled under NS.
12417 * font.c (DEFAULT_ENCODING): New variable.
12418 (font_find_for_lface): Use it.
12419 (syms_of_font): Load syms_of_nsfont under NS.
12420 * font.h: Declare nsfont_driver when compiled under NS.
12421 * fontset.c: When compiling under NS, include nsterm.h.
12422 (fontset_from_font): Autoconstruct fontset under NS.
12423 * frame.c (various): Under NS, include nsterm.h, add Qns window system
12424 symbol, document and use it.
12425 (do_switch_frame): When for_deletion under Cocoa, add
12426 Fraise_frame(Qnil).
12427 (x_set_frame_parameters): Ensure font attribute changes are picked up.
12428 (x_get_arg): Allow "yes" and "no" as boolean values.
12429 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
12430 Qright under Cocoa.
12431 (focus-follows-mouse): Default to 0 under NS.
12432 * frame.h (enum output_method): Add output_ns.
12433 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
12434 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
12435 (FRAME_WINDOW_P): NS-specific definition.
12436 * fringe.c (max_used_fringe_bitmap): Make public.
12437 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
12438 (getloadavg): Use NeXT code under descendant OS's.
12439 * image.c (includes and header section, x_create_bitmap_from_data)
12440 (x_create_bitmap_from_file, free_bitmap_record, image_background)
12441 (image_background_transparent, x_clear_image_1)
12442 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
12443 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
12444 (x_to_xcolors, x_from_xcolors, x_disable_image)
12445 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
12446 other GUIs, including XPM support using code originally written for
12447 Carbon GUI.
12448 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
12449 using NS API.
12450 (image_ascent): Use font metrics macros instead of direct struct field
12451 access.
12452 * keyboard.c (includes): Add nsterm.h when compiling under NS.
12453 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
12454 Also, handle NS as GTK for menu bar purposes.
12455 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
12456 toolkit where they differ.
12457 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
12458 use cachelist, still needed under NS.
12459 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
12460 (struct widget_value): Define it here for menu.c.
12461 * keymap.c (includes): Include modifier internals.
12462 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
12463 NS.
12464 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
12465 support for preferring sequences using certain modifiers, specified by
12466 the FIRSTONLY argument.
12467 * lisp.h (hash_remove): Rename to avoid name clash when compiling
12468 under NS GNUstep implementation.
12469 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
12470 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
12471 * menu.c: Include nsterm.h under NS.
12472 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
12473 (free_menubar_widget_tree_value, update_submenu_strings)
12474 (find_and_call_menu_selection): Treat NS as X and NT.
12475 (find_and_return_menu_selection): New function, used for popup menus.
12476 * nsgui.h:
12477 * nsterm.h:
12478 * nsfns.m:
12479 * nsimage.m:
12480 * nsmenu.m:
12481 * nsselect.m:
12482 * nsterm.m: New files.
12483 * process.c (wait_reading_process_output): Under NS, call ns_select()
12484 instead of plain select().
12485 * syntax.c (char_quoted): Under NS, avoid a crash when called near
12486 beginning of buffer.
12487 * sysselect.h (init_process): Rename when compiling under Cocoa to
12488 avoid name conflict.
12489 * termhooks.h (display_info): Add ns_display_info to union.
12490 * terminal.c (Fterminal_live_p): Add ns to terminal types.
12491 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
12492 COCOA environment.
12493 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
12494 unexec() signature. (Note, this will dump, but the resulting file
12495 crashes; unexosx is used instead; keeping around for reference and
12496 possible aid in getting dump working under GNUstep.)
12497 * w32gui.h (button_type, widget_value): Remove definitions (now in
12498 keyboard.h).
12499 * window.c: Include nsterm.h when compiling under NS.
12500 * xdisp.c (includes): Include nsterm.h when compiling under NS.
12501 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
12502 other GUI windowing systems.
12503 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
12504 GTK.
12505 (x_consider_frame_title): Under NS, set icon type and frame
12506 modified-state indicator; use ns_set_name_as_filename() when using
12507 formatted title.
12508 (update_window_cursor): Make public when compiling under NS.
12509 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
12510 (hourglass_atimer, Vhourglass_delay
12511 * xfaces.c (header section, init_frame_faces, clear_font_table)
12512 (defined_color, unload_color, x_face_list_fonts)
12513 (prepare_face_for_display): Add NS support parallel to other GUIs.
12514 Emulate GCs like other non-X GUIs.
12515 (split_font_name): Don't lowercase font name under NS.
12516 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
12517 under NS.
12518 * s/darwin.h: Add support for compilation under NS.
12519
125202008-07-15 Jason Rumney <jasonr@gnu.org>
12521
12522 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
12523 (w32_show_hourglass): Rename from show_hourglass.
12524 (w32_hide_hourglass): Rename from hide_hourglass.
12525 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
12526 (Vhourglass_delay): Declare extern.
12527 (hourglass_started): Remove.
12528
12529 * xdisp.c (Vhourglass_delay): Remove static.
12530 (hourglass_started, start_hourglass, cancel_hourglass):
12531 Don't include these versions on WINDOWSNT.
12532
125332008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12534
12535 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
12536 variables (formerly in xfns.c).
12537 (show_hourglass, hide_hourglass): New prototypes (same).
12538 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
12539 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
12540 in xfns.c).
12541 (syms_of_xdisp): Declare/initialize display-hourglass,
12542 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
12543 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
12544 formerly in xfns.c.
12545 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
12546 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
12547 (start_hourglass, cancel_hourglass): Remove.
12548 (show_hourglass, hide_hourglass): Remove prototypes and static
12549 modifiers.
12550 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
12551 hourglass_atimer, hourglass_shown_p declaration/initialization.
12552 * macfns.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_macfns): Remove display-hourglass, hourglass-delay,
12558 hourglass_atimer, hourglass_shown_p declaration/initialization.
12559 * w32fns.c (display_hourglass_p, Vhourglass_delay)
12560 (DEFAULT_HOURGLASS_DELAY): Remove.
12561 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
12562 hourglass_shown_p declaration/initialization.
12563
125642008-07-14 Jason Rumney <jasonr@gnu.org>
12565
12566 * w32fns.c (w32_get_arg): Remove wrapper function.
12567 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
12568 directly.
12569 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
12570
125712008-07-14 Kenichi Handa <handa@m17n.org>
12572
12573 * xfont.c (xfont_open): Add workaround for X's bug.
12574
125752008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
12576
12577 * fontset.c: Include <stdio.h> unconditionally.
12578
125792008-07-13 Michael Albinus <michael.albinus@gmx.de>
12580
12581 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
12582 for filtering.
12583
125842008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
12585
12586 * s/vms.h: Use __GNUC__ instead of _GNUC_.
12587
12588 * m/macppc.h:
12589 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
12590
c4cc8b9a 12591 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
12592 (SPECIAL_EMACS_INT):
12593 * m/ia64.h (SPECIAL_EMACS_INT):
12594 * m/amdx86-64.h (SPECIAL_EMACS_INT):
12595 * s/gnu.h (NLIST_STRUCT):
12596 * s/aix4-2.h (X11R5_INHIBIT_I18N):
12597 * s/gnu-linux.h (LINUX):
12598 * s/msdos.h (HAVE_FACES):
12599 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
12600
12601 * systty.h:
12602 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
12603 anymore.
12604
126052008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
12606
12607 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
12608 always defined as int.
12609
12610 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
12611 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
12612 * s/gnu-linux.h (HAVE_WAIT_HEADER):
12613 * s/freebsd.h (HAVE_WAIT_HEADER):
12614 * s/bsd-common.h (HAVE_UNION_WAIT):
12615 * s/aix4-2.h (HAVE_WAIT_HEADER):
12616 * m/mips.h (HAVE_UNION_WAIT):
12617 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
12618 (COFF, static): Do not define, they are undefined later in the file.
12619
12620 * process.c (update_status): Don't use a union.
12621 (status_convert):
12622 (sigchld_handler): Use int instead of WAITTYPE.
12623
126242008-07-12 Chong Yidong <cyd@stupidchicken.com>
12625
12626 * indent.c (Fvertical_motion): Restore hscroll before moving to
12627 goal column.
12628
126292008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12630
12631 * lisp.h: Remove left over code.
12632
126332008-07-11 Andreas Schwab <schwab@suse.de>
12634
12635 * lisp.h: Fix logic in last change.
12636
12637 * menu.h: New file.
12638 * menu.c: Include it.
12639 * xmenu.c: Likewise.
12640 * Makefile.in: Update dependencies.
12641
126422008-07-11 Kenichi Handa <handa@m17n.org>
12643
12644 * fontset.c (fontset_from_font): Cancel the previous change.
12645
126462008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12647
12648 * lisp.h:
12649 * w32heap.c:
12650 * emacs.c:
12651 * alloc.c: Replace all references of NO_UNION_TYPE with
12652 USE_LISP_UNION_TYPE.
12653
12654 * m/xtensa.h (NO_UNION_TYPE):
12655 * m/vax.h (NO_UNION_TYPE):
12656 * m/template.h (NO_UNION_TYPE):
12657 * m/sparc.h (NO_UNION_TYPE):
12658 * m/mips.h (NO_UNION_TYPE):
12659 * m/macppc.h (NO_UNION_TYPE):
12660 * m/m68k.h (NO_UNION_TYPE):
12661 * m/iris4d.h (NO_UNION_TYPE):
12662 * m/intel386.h (NO_UNION_TYPE):
12663 * m/ibms390x.h (NO_UNION_TYPE):
12664 * m/ibms390.h (NO_UNION_TYPE):
12665 * m/ibmrs6000.h (NO_UNION_TYPE):
12666 * m/ia64.h (NO_UNION_TYPE):
12667 * m/hp800.h (NO_UNION_TYPE):
12668 * m/arm.h (NO_UNION_TYPE):
12669 * m/amdx86-64.h (NO_UNION_TYPE):
12670 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
12671 defining it the same.
12672
126732008-07-10 Chong Yidong <cyd@stupidchicken.com>
12674
12675 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
12676
126772008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12678
12679 * fileio.c:
50426a04 12680 * sysdep.c:
aac0c6e3
MR
12681 * systty.h:
12682 * m/ibmrs6000.h:
12683 * m/iris4d.h:
12684 * s/aix4-2.h:
12685 * s/freebsd.h:
12686 * s/gnu-linux.h:
12687 * s/hpux10-20.h:
12688 * s/hpux11.h:
12689 * s/netbsd.h:
12690 * s/sol2-3.h:
12691 * s/sol2-4.h:
12692 * s/sol2.h:
12693 * s/usg5-4.h:
12694 * s/vms.h: Remove references to unused variables.
12695
126962008-07-10 Andreas Schwab <schwab@suse.de>
12697
12698 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
12699 pattern before matching the generic family.
12700
127012008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
12702
12703 * unexec.c:
12704 * s/vms.h:
12705 * s/usg5-4-2.h:
12706 * s/sol2-5.h:
12707 * s/freebsd.h:
12708 * s/darwin.h: Remove dead code.
12709
12710 * m/template.h:
12711 * m/sparc.h:
12712 * m/mips.h:
12713 * m/m68k.h:
12714 * m/iris4d.h:
12715 * m/intel386.h:
12716 * m/ibms390x.h:
12717 * m/ibms390.h:
12718 * m/ia64.h:
12719 * m/hp800.h:
12720 * m/arm.h:
12721 * m/amdx86-64.h: Remove dead code and references to unused
12722 and compiler defined symbols.
12723
12724 * unexmips.c:
12725 * unexelf.c: Remove references to desupported systems.
12726
12727 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
12728
12729 * m/powermac.h: Remove boilerplate comments.
12730 (NO_REMAP): Remove unused definition.
12731
12732 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
12733 define them.
12734
127352008-07-10 Kenichi Handa <handa@m17n.org>
12736
12737 * xfont.c (xfont_open): Log the reason of failure.
12738
127392008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
12740
12741 * fontset.c (fontset_get_font_group):
12742 * font.c (font_check_otf): Specify argument types.
12743
127442008-07-09 Kenichi Handa <handa@m17n.org>
12745
12746 * coding.c (detect_coding_utf_8): Set detect_info->found only when
12747 non-ASCII char is found.
12748
12749 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
12750 (reorder_font_vector): Change the arg preferred_family to font.
12751 Prefer the spec matching with font.
12752 (fontset_get_font_group): New function.
12753 (fontset_find_font): Change the format of an element of a realized
12754 fontset. Use fontset_get_font_group.
12755 (fontset_font): Try the current fontset, the default fontset, the
12756 fallbacks of the current fontset, and the fallbacks of the default
12757 fontset in this order.
12758 (face_for_char): Delete the shortcut to use the current font.
12759 (fontset_from_font): Don't set fonts for Latin in the fontset.
12760
12761 * font.h (font_make_object, font_match_p): Adjust prototypes.
12762
12763 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
12764
12765 * font.c (font_make_object): New arg entity and pixelsize.
12766 (font_check_otf_features, font_check_otf): New functions.
12767 (font_match_p): Check :lang, :script, and :otf properties.
12768
12769 * xfont.c (xfont_open): Adjust it for the change of
12770 font_make_object.
12771 (xfont_text_extents): Fix initial setting of metrics.
12772
12773 * ftfont.c (struct ftfont_info): New member index, delete member
12774 fc_charset_idx. Make the member order compatible with struct
12775 xftfont_info.
12776 (fc_charset_table): Change charset names to registry names.
12777 (ftfont_pattern_entity): Delete the args registry and
12778 fc_charset_idx. Change the value of :font-entity property
12779 to (FONTNAME . INDEX). Always set :registry property to
12780 `iso10646-1'.
12781 (struct ftfont_cache_data): New struct.
12782 (ftfont_lookup_cache): New arg for_face.
12783 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
12784 (ftfont_driver): Set the member otf_capability.
12785 (ftfont_get_charset): Adjust it for the change of
12786 fc_charset_table.
12787 (OTF_TAG_SYM): New macro.
12788 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
12789 for the change of fc_charset_table.
12790 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
12791 ftfont_pattern_entity. Add FC_INDEX to objset.
12792 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
12793 and ftfont_pattern_entity.
12794 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
12795 font_make_object, struct ftfont_info.
12796 (ftfont_has_char): Use ftfont_get_fc_charset.
12797 (ftfont_otf_features, ftfont_otf_capability): New functions.
12798 (ftfont_shape): Use ftfont_get_otf.
12799 (ftfont_text_extents): Fix initial setting of metrics.
12800
12801 * xftfont.c (struct xftfont_info): New member ft_size. Make the
12802 member order compatible with struct ftfont_info.
12803 (xftfont_open): Add FC_CHARSET to the pattern. Set
12804 xftfont_info->ft_size. Don't unlock the face. Check BDF
12805 properties if appropriate.
12806 (xftfont_close): Unlock the face.
12807 (xftfont_anchor_point, xftfont_shape): Deleted.
12808 (syms_of_xftfont): Don't set members anchor_point and shape of
12809 xftfont_driver.
12810
12811 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
12812 font_make_object.
12813
12814 * w32font.c (w32font_open): Adjust it for the change of
12815 font_make_object.
12816 (w32font_open_internal): Don't set properties of font_object here.
12817
128182008-07-08 Chong Yidong <cyd@stupidchicken.com>
12819
12820 * macfns.c (x_create_tip_frame):
12821 * w32fns.c (x_create_tip_frame):
12822 * xfns.c (x_create_tip_frame): Pass parameter argument to
12823 face-set-after-frame-default.
12824
12825 * xfaces.c (Finternal_merge_in_global_face): Save merged
12826 attributes for the default face back into the face vector.
12827
128282008-07-08 Andreas Schwab <schwab@suse.de>
12829
12830 * fontset.h: Declare fontset_from_font. Don't declare
12831 new_fontset_from_font and fontset_from_font_name.
12832 * xterm.c: Include "fontset.h".
12833 * Makefile.in (xterm.o): Update dependencies.
12834
128352008-07-08 Glenn Morris <rgm@gnu.org>
12836
12837 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
12838 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
12839
128402008-07-07 Chong Yidong <cyd@stupidchicken.com>
12841
12842 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
12843 (x_set_frame_parameters): Don't bind it.
12844
128452008-07-07 Juanma Barranquero <lekktu@gmail.com>
12846
12847 * w32fns.c (map_w32_filename): Declare extern.
12848
128492008-07-07 Jason Rumney <jasonr@gnu.org>
12850
12851 * w32term.c (WS_EX_LAYERED): Define if not already.
12852
128532008-07-06 Chong Yidong <cyd@stupidchicken.com>
12854
12855 * xfaces.c (set_font_frame_param): Don't try to set the font
12856 parameter if it is still unspecified in the lface.
12857
128582008-07-05 Chong Yidong <cyd@stupidchicken.com>
12859
12860 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
12861 face if it didn't already exist.
12862
12863 * xdisp.c (try_window_id): Give up if word-wrapping is on.
12864
128652008-07-05 Andreas Schwab <schwab@suse.de>
12866
12867 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
12868
128692008-07-05 Chong Yidong <cyd@stupidchicken.com>
12870
12871 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
12872 word-wrapping.
12873 (IT_DISPLAYING_WHITESPACE): New macro.
12874 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
12875 when word-wrapping. Simplify word-wrapping logic. Use correct
12876 pixel positions when saving copies of the iterator.
12877 (display_line): Use proper wrap point if the last character on a
12878 line was preceded by whitespace.
12879
128802008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
12881
12882 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
12883
128842008-07-04 Kenichi Handa <handa@m17n.org>
12885
12886 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
12887
12888 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
12889
128902008-07-02 Jason Rumney <jasonr@gnu.org>
12891
12892 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 12893 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
12894
12895 * xdisp.c (next_element_from_display_vector): Move assignment out
12896 of if statement.
12897
128982008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
12899
12900 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
12901
12902 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
12903 (syms_of_fileio): Initialize and export them.
12904 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
12905
12906 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
12907 (Fsystem_move_file_to_trash): New function.
12908 (syms_of_w32fns): Export it to lisp.
12909
129102008-07-01 Jason Rumney <jasonr@gnu.org>
12911
12912 * w32font.c (w32font_text_extents): Don't count overhang as part
12913 of width.
12914
129152008-06-30 Miles Bader <miles@gnu.org>
12916
12917 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
12918 Add `avoid_cursor_p' field.
12919
12920 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
12921 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
12922 (append_glyph, append_composite_glyph, produce_image_glyph)
12923 (append_stretch_glyph): Initialize avoid_cursor_p.
12924 (get_it_property): Rename from `get_line_height_property'.
12925 (x_produce_glyphs): Use get_it_property.
12926 (handle_line_prefix, push_display_prop): New functions.
12927 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
12928 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
12929 New variables.
12930 (syms_of_xdisp): Initialize them.
12931
129322008-06-30 Kenichi Handa <handa@m17n.org>
12933
12934 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
12935 XftDefaultSubstitute (they are called in XftFontMatch).
12936 (xftfont_open): Fix args to ftfont_font_format.
12937
12938 * ftfont.c (fc_charset_table): New member lang.
12939 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 12940 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
12941 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
12942 (ftfont_open): Fix args to ftfont_font_format.
12943 (ftfont_font_format): New arg filename.
12944
129452008-06-30 Chong Yidong <cyd@stupidchicken.com>
12946
12947 * xfaces.c (Finternal_merge_in_global_face): If default face was
12948 modified, realize it again. Update the font face attribute.
12949
129502008-06-29 Jason Rumney <jasonr@gnu.org>
12951
12952 * w32term.c (x_set_frame_alpha): Fix logic.
12953
129542008-06-29 Kenichi Handa <handa@m17n.org>
12955
12956 * fontset.c (Finternal_char_font): Return font-object instead of
12957 font-name.
12958
12959 * composite.c (get_composition_id): Fix the width calculation for TAB.
12960
129612008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
12962
12963 * indent.c (Fvertical_motion): Properly handle float column arg.
12964
129652008-06-28 Jason Rumney <jasonr@gnu.org>
12966
12967 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
12968 (pfnSetLayeredWindowAttributes): New function pointer.
12969 (w32_initialize): Initialize it when supported.
12970 (x_set_frame_alpha): New function.
12971
12972 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
12973 (w32_frame_parm_handlers): Set alpha handler.
12974
12975 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
12976
129772008-06-27 Jason Rumney <jasonr@gnu.org>
12978
12979 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
12980 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
12981 (w32_to_x_charset, x_to_w32_charset)
12982 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12983 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12984 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12985 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12986 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12987 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12988 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
12989 (Qw32_charset_unicode): Remove.
12990 (syms_of_w32fns): Update for above changes.
12991
12992 * w32font.c (w32_to_x_charset, x_to_w32_charset)
12993 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
12994 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
12995 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
12996 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
12997 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
12998 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
12999 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
13000 (syms_of_w32font): Update for above changes.
13001
130022008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
13003
13004 * s/usg5-4.h: Fix previous change: keep the correct branch of a
13005 removed #if.
13006 (USG_SHARED_LIBRARIES): Remove duplicate definition.
13007
130082008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 13009 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
13010
13011 * makefile.w32-in (LOCAL_FLAGS):
13012 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
13013
13014 * sysdep.c (_spawnlp, _getpid):
13015 Declare with explicit _cdecl instead of _CRTAPI1.
13016
13017 * editfns.c (Fget_internal_run_time):
13018 Check for WINDOWSNT with #ifdef, not #if.
13019
130202008-06-26 Jason Rumney <jasonr@gnu.org>
13021
13022 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
13023
13024 * w32term.c (x_draw_glyph_string_foreground)
13025 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
13026 Use FONT_HANDLE macro.
13027 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
13028
13029 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13030 (uniscribe_encode_char): Use FONT_HANDLE macro.
13031
13032 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
13033 (w32font_text_extents): Use precast w32_font.
13034 (w32font_close): Free cached metrics.
13035 (w32font_open_internal): Allocate space for name on stack.
13036
130372008-06-26 Chong Yidong <cyd@stupidchicken.com>
13038
13039 * xdisp.c (extend_face_to_end_of_line): Fix last change.
13040
130412008-06-26 Jason Rumney <jasonr@gnu.org>
13042
13043 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
13044 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
13045
130462008-06-26 Juanma Barranquero <lekktu@gmail.com>
13047
13048 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
13049
130502008-06-26 Jason Rumney <jasonr@gnu.org>
13051
13052 * w32bdf.c, w32bdf.h: Remove obsolete files.
13053
13054 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
13055
13056 * w32gui.h: Don't include w32bdf.h.
13057 (XCharStruct, enum w32_char_font_type, W32FontStruct):
13058 Remove obsolete font support.
13059
13060 * w32font.h (struct w32font_info): Remove compat_w32_font.
13061 Add hfont member.
13062 (FONT_COMPAT): Remove obsolete macro.
13063
13064 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
13065 (w32font_encode_char, w32font_text_extents): Use new hfont member.
13066 (w32font_open_internal): Remove compat code. Set new hfont member.
13067 (Fx_select_font): Use new hfont member.
13068
13069 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
13070 (uniscribe_encode_char): Use new hfont member.
13071
13072 * w32term.c (x_draw_glyph_string_foreground)
13073 (x_draw_composite_glyph_string_foreground): Use new hfont member.
13074 (x_draw_glyph_string): Use metrics in w32font_info.
13075
130762008-06-26 Kenichi Handa <handa@m17n.org>
13077
13078 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
13079
130802008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
13081
13082 * unexnext.c:
13083 * m/ews4800.h:
13084 * m/hp9000s300.h:
13085 * m/ibm370aix.h:
13086 * m/mips-siemens.h:
13087 * m/ncr386.h:
13088 * m/next.h:
13089 * m/pmax.h:
13090 * m/powerpcle.h:
13091 * m/tandem-s2.h:
13092 * s/386bsd.h:
13093 * s/bsd386.h:
13094 * s/bsd4-1.h:
13095 * s/bsd4-2.h:
13096 * s/bsdos2-1.h:
13097 * s/bsdos2.h:
13098 * s/bsdos3.h:
13099 * s/bsdos4.h:
13100 * s/nextstep.h:
13101 * s/ultrix4-3.h:
13102 * s/usg5-0.h:
13103 * s/usg5-2-2.h:
13104 * s/usg5-2.h:
13105 * s/usg5-4-3.h:
13106 * s/ux4800.h:
13107 * s/uxpds.h:
13108 * s/uxpv.h: Remove support for obsolete systems.
13109 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 13110 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
13111 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
13112 Remove, insert contents in s/aix4-2.h.
13113 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
13114 * s/bsd4-3.h: Rename to ...
13115 * s/bsd-common.h: ... this.
13116 * data.c:
13117 * doc.c:
13118 * ecrt0.c:
13119 * emacs.c:
13120 * fileio.c:
13121 * floatfns.c:
13122 * keyboard.c:
13123 * mem-limits.h:
13124 * print.c:
13125 * process.c:
13126 * sysdep.c:
13127 * syssignal.h:
13128 * systty.h:
13129 * syswait.h:
13130 * term.c:
13131 * unexec.c:
13132 * unexelf.c:
13133 * unexhp9k800.c:
13134 * m/hp800.h:
13135 * m/ibmrs6000.h:
13136 * m/mips.h:
13137 * m/vax.h:
13138 * s/darwin.h:
13139 * s/freebsd.h:
13140 * s/gnu.h:
13141 * s/ms-w32.h:
13142 * s/msdos.h:
13143 * s/netbsd.h:
13144 * s/template.h: Remove references to obsolete variables.
13145
13146 * Makefile.in: Add dependencies for all unexec files.
13147 (admindir): Remove unused variable.
13148 (UNEXEC_SRC): Remove references.
13149
131502008-06-25 Chong Yidong <cyd@stupidchicken.com>
13151
13152 * xfns.c (x_default_font_parameter): If Xft is available, first
13153 try Monospace-12 for the default font.
13154
131552008-06-25 Jason Rumney <jasonr@gnu.org>
13156
13157 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
13158
131592008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
13160
13161 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
13162
13163 * buffer.c (syms_of_buffer): Remove default-word-wrap.
13164
131652008-06-25 Juanma Barranquero <lekktu@gmail.com>
13166
13167 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
13168 <scroll-conservatively>: Fix typo in docstring.
13169
13170 * xselect.c (Fx_send_client_event): Doc fix.
13171
131722008-06-25 Kenichi Handa <handa@m17n.org>
13173
13174 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
13175
13176 * font.c (font_parse_fcname): Remove unused variables.
13177 (font_sort_entites): Delete the arg SPEC. Caller changed.
13178 Fix for the case of ! best_only.
13179 (font_delete_unmatched): Check DPI and AVGWIDTH too.
13180
13181 * lisp.h (Fstring_to_unibyte): EXFUN it.
13182
13183 * character.h (str_to_unibyte): Extern it.
13184
13185 * character.c (str_to_unibyte): New function.
13186
13187 * fns.c (Fstring_to_unibyte): New function.
13188 (syms_of_fns): Defsubr it.
13189
131902008-06-24 Kenichi Handa <handa@m17n.org>
13191
13192 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
13193 DPI too.
13194 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
13195
131962008-06-24 Andreas Schwab <schwab@suse.de>
13197
13198 * Makefile.in (${lispsource}loaddefs.el): Rename from
13199 ../lisp/loaddefs.el.
13200 (bootstrap-clean): Do what distclean does but don't remove
13201 Makefile.
13202 (distclean): Depend on bootstrap-clean and remove Makefile.
13203
132042008-06-24 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * buffer.h (struct buffer): New member word_wrap.
13207
13208 * buffer.c (syms_of_buffer): New variables default-word-wrap and
13209 word-wrap.
13210 (init_buffer_once): Initialize them.
13211
13212 * dispextern.h (struct it): Replace bool truncate_lines_p with a
13213 line_wrap enum possessing three possible values.
13214
13215 * termopts.h: Replace truncate_partial_width_windows with
13216 Vtruncate_partial_width_windows.
13217
13218 * dispnew.c (direct_output_for_insert): Avoid direct output when
13219 inserting a space with word wrap on.
13220
13221 * indent.c (compute_motion): Obey integer values of
13222 truncate-partial-width-windows.
13223
13224 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
13225 replacing truncate_partial_width_windows.
13226 (init_iterator): If Vtruncate_partial_width_windows is an integer,
13227 truncate only if the window width is below that integer.
13228 (start_display, resize_mini_window, produce_stretch_glyph)
13229 (display_string, move_it_in_display_line_to): Use line_wrap.
13230 (back_to_previous_visible_line_start, reseat_1): Reset
13231 string_from_display_prop_p.
13232 (display_line): Extend default face to end of line when wrapping.
13233
132342008-06-24 Kim F. Storm <storm@cua.dk>
13235
13236 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
13237 to wrap continued lines at word boundaries.
13238
132392008-06-24 Jason Rumney <jasonr@gnu.org>
13240
13241 * font.c (Ffont_face_attributes): Multiply pixel size before point
13242 conversion to avoid multiplying rounding error.
13243
132442008-06-23 Jason Rumney <jasonr@gnu.org>
13245
13246 * w32term.c (x_draw_glyph_string_background)
13247 (x_draw_glyph_string): Remove old bdf font code.
13248
13249 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
13250
132512008-06-22 Kenichi Handa <handa@m17n.org>
13252
13253 * font.c (font_find_for_lface): Try the adstyle specified in
13254 the property of LFACE_FONT of LFACE (if any).
13255
132562008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 13257 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
13258
13259 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
13260
132612008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
13262
13263 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
13264 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
13265 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
13266 (witness-emacs): Remove.
13267 (lisp, shortlisp): Move loaddefs.el earlier.
13268 (mostlyclean): Forget about witness-emacs.
13269
132702008-06-22 Glenn Morris <rgm@gnu.org>
13271
13272 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
13273 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
13274
132752008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13276
13277 * Makefile.in (PRECOMP): Remove.
13278 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
13279 (witness-emacs): Run `compile-first'.
13280 (.el.elc): Use the new compile-onefile target.
13281
132822008-06-21 Kenichi Handa <handa@m17n.org>
13283
13284 * xftfont.c (xftfont_open): Handle QCembolden only when
13285 FC_EMBOLDEN is defined.
13286
132872008-06-21 Andreas Schwab <schwab@suse.de>
13288
13289 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
13290 (.el.elc): Likewise.
13291
132922008-06-21 Miles Bader <miles@gnu.org>
13293
13294 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
13295 build dir, not the lisp source dir.
13296
132972008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
13298
13299 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
13300 (bootstrapclean): Remove.
13301 (.el.elc): New rule.
13302 (PRECOMP): New var.
13303 (../lisp/subdirs.el): Remove.
13304 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
13305 (witness-emacs): New target.
13306 (mostlyclean): Remove witness-emacs as well.
13307 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
13308 Add witness-emacs dependency.
13309
133102008-06-20 Chong Yidong <cyd@stupidchicken.com>
13311
13312 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
13313 defined by the font.
13314
133152008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13316
13317 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
13318 (bootstrap-clean): New target that keeps TAGS around.
13319 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
13320 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
13321
133222008-06-20 Jason Rumney <jasonr@gnu.org>
13323
13324 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
13325 Remove obsolete font code.
13326
13327 * w32font.c (font_matches_spec): Use csb bitfield from font signature
13328 to determine language support.
13329
133302008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13331
13332 * sysdep.c (cfsetspeed): New fun extracted from the code.
13333 (cfmakeraw): Move before first use.
13334
133352008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
13336
13337 * sysdep.c (cfmakeraw): Provide fallback implementation.
13338 (serial_configure): Provide fallback implementation of cfsetspeed.
13339
133402008-06-20 Kenichi Handa <handa@m17n.org>
13341
13342 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
13343 the pattern.
13344
13345 * fontset.c (fontset_from_font): Copy font_spec before changing
13346 the elements.
13347
13348 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
13349
133502008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
13351
13352 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
13353 for explicit `font' parameters.
13354
13355 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
13356
133572008-06-19 Kenichi Handa <handa@m17n.org>
13358
13359 * frame.c: Include <ctype.h>.
13360 (x_set_font_backend): Allow spacing characters in the X resource
13361 for FontBackend.
13362
133632008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
13364
13365 * w32fns.c, xfns.c (Qfont_param): New var.
13366 (syms_of_w32fns): Initialize it.
13367 (x_default_font_parameter): Record explicit `font' into
13368 `font-parameter'.
13369
133702008-06-18 Kenichi Handa <handa@m17n.org>
13371
13372 * font.c (font_parse_xlfd): Fix previous change.
13373 (font_parse_fcname): Don't use :fc-unknown-spec.
13374 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
13375 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
13376 (font_add_log): Prepend the driver name to the resulting fonts.
13377
13378 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
13379 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
13380 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
13381
13382 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
13383 (QCembolden): New variables.
13384 (syms_of_xftfont): DEFSYM them.
13385 (xftfont_open): Call XftFontMatch. Don't trust the result of
13386 XftTextExtents8 if the pixel_size is less than 5.
13387
133882008-06-18 Andreas Schwab <schwab@suse.de>
13389
13390 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
13391 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
13392
133932008-06-18 Jason Rumney <jasonr@gnu.org>
13394
13395 * w32font.c (w32font_list, w32font_match): Add logging.
13396
13397 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
13398
133992008-06-17 Chong Yidong <cyd@stupidchicken.com>
13400
13401 * font.c (font_parse_fcname): Store divider characters for
13402 unknown-spec list. For known key symbols, intern using correct
13403 symbol name.
13404
134052008-06-17 Kenichi Handa <handa@m17n.org>
13406
13407 * xfaces.c (realize_default_face): If the frame is not on window
13408 system, set the fontset of face to nil.
13409
134102008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13411
13412 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
13413
134142008-06-16 Juanma Barranquero <lekktu@gmail.com>
13415
13416 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
13417 (build_font_name_from_vector): Delete externs.
13418
13419 * xfaces.c (struct font_name): Don't declare.
13420
134212008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
13422
13423 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
13424
134252008-06-16 Chong Yidong <cyd@stupidchicken.com>
13426
13427 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
13428
134292008-06-16 Juanma Barranquero <lekktu@gmail.com>
13430
13431 * font.c (Ffont_spec): Fix usage in docstring.
13432 (Ffont_face_attributes): Doc fix.
13433
134342008-06-16 Andreas Schwab <schwab@suse.de>
13435
13436 * font.c (Ffont_face_attributes): Fix definition.
13437
134382008-06-16 Jason Rumney <jasonr@gnu.org>
13439
13440 * font.h (font_style_symbolic_from_value): Remove.
13441
13442 * font.c (font_style_symbolic_from_value): Remove.
13443 (font_style_symbolic): Revert to pre 2008-06-13 version.
13444
13445 * w32font.c (w32_to_fc_weight): New function.
13446 (w32font_full_name, logfont_to_fcname): Use it.
13447
134482008-06-16 Kenichi Handa <handa@m17n.org>
13449
13450 * font.c (font_check_object): Delete it.
13451 (font_clear_cache): Check if a font-object is alive.
13452 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
13453 font-object to nil.
13454 (font_close_object): Don't check FONT_CLOSE_OBJECT.
13455 (font_at): Don't call font_check_object.
13456 (Ffont_get): Return a symbol for :weight, :slant, and :width.
13457
134582008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
13459
13460 * puresize.h (BASE_PURESIZE): Increase to 1230000.
13461
134622008-06-16 Chong Yidong <cyd@stupidchicken.com>
13463
13464 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
13465
134662008-06-15 Chong Yidong <cyd@stupidchicken.com>
13467
13468 * font.c (font_parse_fcname): Only one decimal point.
13469 (font_unparse_fcname): Handle data in family and foundry indices
13470 as symbols, not strings.
13471 (font_unparse_gtkname, Ffont_face_attributes): New functions.
13472
13473 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
13474
13475 * font.h (font_unparse_gtkname): Add prototype.
13476
134772008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
13478
13479 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
13480
134812008-06-15 Andreas Schwab <schwab@suse.de>
13482
13483 * font.c (font_update_drivers): Fix crash when no drivers match.
13484
134852008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
13486
13487 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
13488 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
13489
134902008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
13491
13492 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
13493
134942008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
13495
13496 * process.c (Fserial_process_configure, Fprocess_send_eof):
13497 Use EQ to compare Lisp_Objects.
13498
134992008-06-13 Jason Rumney <jasonr@gnu.org>
13500
13501 * w32fns.c (Fw32_select_font): Remove old font API function.
13502
13503 * w32font.c (logfont_to_fcname): New function.
13504 (Fx_select_font): New font dialog function compatible with
13505 GTK/fontconfig version.
13506
13507 * font.c (font_style_symbolic_from_value): New function.
13508 (font_style_symbolic): Use it.
13509
13510 * font.h (font_style_symbolic_from_value): Declare new function.
13511
135122008-06-13 Juanma Barranquero <lekktu@gmail.com>
13513
13514 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
13515 <font-width-table>: Fix typos in docstrings.
13516
135172008-06-13 Daniel Engeler <engeler@gmail.com>
13518
13519 These changes add serial port access.
13520 * process.c: Add HAVE_SERIAL.
13521 (Fdelete_process, Fprocess_status, Fset_process_buffer)
13522 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
13523 (list_processes_1, select_wrapper, Fstop_process)
13524 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
13525 (status_notify): Modify to handle serial processes.
13526 [HAVE_SERIAL] (Fserial_process_configure)
13527 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
13528 New functions.
13529 * process.h (struct Lisp_Process): Add `type'.
13530 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
13531 New functions.
13532 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
13533 serial ports.
b71ac3dd 13534 (serial_open, serial_configure): New functions.
aac0c6e3
MR
13535 * w32.h: Add FILE_SERIAL.
13536 (struct _child_process): Add ovl_read, ovl_write.
13537
135382008-06-13 Kenichi Handa <handa@m17n.org>
13539
13540 * dispextern.h (enum lface_attribute_index): New member
13541 LFACE_FOUNDRY_INDEX.
13542
13543 * font.c (font_score): Delete arg alternate_families. Check only
13544 weight, slant, width, and size. Ignore the difference of alias
13545 style symbols.
13546 (font_sort_entites): Adjust for the above change. Reflect the
13547 order of font-driver to scores.
13548 (font_list_entities): Don't check alternate_familes here.
13549 (font_clear_prop): Handle foundry.
13550 (font_update_lface): Don't parse "foundry-family" form here.
13551 Handle FONT_FOUNDRY_INDEX.
13552 (font_find_for_lface): Likewise. Handle alternate families here.
13553 If registry is nil, try iso8859-1 and ascii-0.
13554 (font_open_for_lface): Pay attention to size in ENTITY.
13555 (font_open_by_name): Simplify by calling font_load_for_lface.
13556 (free_font_driver_list): Delete it.
13557 (font_update_drivers): Preserve the order of backends.
13558 (syms_of_font): Setting of sort_shift_bits adjusted for the change
13559 of font_score and font_sort_entites.
13560 (font_update_sort_order): Likewise.
13561
13562 * xfaces.c (LFACE_FOUNDRY): New macro.
13563 (check_lface_attrs): Check foundry.
13564 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
13565 (merge_face_vectors): Check foundry.
13566 (merge_face_ref): Likewise.
13567 (Finternal_set_lisp_face_attribute): Likewise.
13568 (x_update_menu_appearance): Likewise.
13569 (Finternal_get_lisp_face_attribute): Likewise.
13570 (lface_hash): Likewise.
13571 (lface_same_font_attributes_p): Likewise.
13572 (x_supports_face_attributes_p): Likewise.
13573 (tty_supports_face_attributes_p): Likewise.
13574 (Finternal_set_alternative_font_family_alist): Intern strings.
13575 (Finternal_set_alternative_font_registry_alist): Downcase strings.
13576 (realize_default_face): Set LFACE_FOUNDRY (lface).
13577
13578 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
13579 font-driver at first.
13580
13581 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
13582
135832008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13584
13585 * lread.c (Fload): Use xfree, not free on saved_doc_string.
13586
135872008-06-12 Jim Meyering <meyering@redhat.com>
13588
13589 Make unexec_free handle NULL the same way free does.
13590 * unexmacosx.c (unexec_free): Ignore a NULL argument.
13591
135922008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
13593
13594 * character.h (CHAR_TO_BYTE_SAFE): New macro.
13595 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
13596 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
13597 (WEAK_ALIAS): Simplify.
13598 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
13599 when searching a unibyte buffer.
13600
136012008-06-12 Chong Yidong <cyd@stupidchicken.com>
13602
13603 * xfns.c (Fx_select_font): Rename from x-font-dialog.
13604
136052008-06-12 Juanma Barranquero <lekktu@gmail.com>
13606
13607 * w32font.c: Include ctype.h.
13608
136092008-06-11 Jason Rumney <jasonr@gnu.org>
13610
13611 * w32font.c (w32font_encode_char): Detect missing glyphs that are
13612 misreported as space.
13613 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
13614 as aliases for registry iso10646-1.
13615
136162008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
13617
13618 * buffer.c (clone_per_buffer_values): Skip `name'.
13619
136202008-06-11 Chong Yidong <cyd@stupidchicken.com>
13621
13622 * font.c (font_parse_fcname): Fix last change; accept decimal
13623 points in font size.
13624
136252008-06-10 Jason Rumney <jasonr@gnu.org>
13626
13627 * w32uniscribe.c (add_opentype_font_name_to_list):
13628 Skip non unicode fonts.
13629
136302008-06-10 Chong Yidong <cyd@stupidchicken.com>
13631
13632 * xfns.c (Fx_font_dialog): New function.
13633
13634 * gtkutil.c (xg_dialog_response_cb): Rename from
13635 xg_file_response_callback.
13636 (pop_down_dialog): Rename from pop_down_file_dialog.
13637 (xg_get_file_name): Callers changed.
13638 (xg_get_font_name): New function.
13639
13640 * gtkutil.h (xg_get_font_name): Insert prototype.
13641
136422008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13643
13644 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
13645 x_underline_minimum_display_offset.
13646 (syms_of_xdisp): Declare it here rather than in xterm.c.
13647 * dispextern.h (underline_minimum_offset): Declare it.
13648 * w32term.c (x_draw_glyph_string): Use it.
13649 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
13650 (syms_of_xterm): Don't declare it any more.
13651 (x_draw_glyph_string): Adjust to the new name.
13652
8719abec 136532008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
13654
13655 * xterm.c (x_underline_minimum_display_offset): New var.
13656 (x_draw_glyph_string): Use it.
13657 (syms_of_xterm): Declare it.
13658
136592008-06-10 Chong Yidong <cyd@stupidchicken.com>
13660
13661 * font.c (font_parse_fcname): Accept GTK-style font names too.
13662
136632008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
13664
13665 * dired.c (file_name_completion): Don't return t if the match is exact
13666 but with different capitalization.
13667 * minibuf.c (Ftry_completion): Simplify.
13668
13669 * window.c (Vwindow_point_insertion_type): New var.
13670 (set_window_buffer): Use it.
13671 (syms_of_window): Init and export it to Lisp.
13672
136732008-06-10 Kenichi Handa <handa@m17n.org>
13674
13675 * font.h (font_intern_prop): Prototype adjusted.
13676
13677 * font.c (font_intern_prop): New arg force_symbol.
13678 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
13679 Adjust for the change of font_intern_prop.
13680
13681 * ftfont.c (ftfont_pattern_entity):
13682 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
13683 (w32_registry):
13684 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
13685 the change of font_intern_prop.
13686
136872008-06-09 Juanma Barranquero <lekktu@gmail.com>
13688
13689 * w32menu.c (digest_single_submenu): Declare extern.
13690
136912008-06-09 Jason Rumney <jasonr@gnu.org>
13692
13693 * w32term.c (x_make_frame_visible): Use alternate restore flags.
13694
13695 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
13696 (parse_single_submenu): Remove.
13697 (digest_single_submenu): Remove.
13698 (syms_of_w32menu): Don't initialise variables that have moved
13699 to menu.c.
13700 (set_frame_menubar): Sync with version in xmenu.c.
13701 (w32_menu_show): Sync with xmenu_show in xmenu.c.
13702
13703 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
13704 Make static again.
13705
137062008-06-09 Jason Rumney <jasonr@gnu.org>
13707
13708 Changes to w32 files related to the move of common menu code
13709 to menu.c on 2008-06-08 by Chong Yidong.
13710
13711 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
13712 defs to w32gui.h.
13713 (single_keymap_panes, push_menu_item, push_menu_pane):
13714 Make globally visible.
13715
13716 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
13717 (local_free, malloc_widget_value, free_widget_value)
13718 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
13719 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
13720 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
13721 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
13722 (menu_items, menu_items_allocated, menu_items_used)
13723 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
13724 (init_menu_items, finish_menu_items, discard_menu_items)
13725 (grow_menu_items, push_submenu_start, push_submenu_end)
13726 (push_left_right_boundary, push_menu_pane, push_menu_item)
13727 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
13728 (free_menubar_widget_tree_value, parse_single_submenu)
13729 (update_submenu_strings): Remove functions.
13730 (xmalloc_widget_value): Remove and declare extern.
13731
13732 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
13733 (OBJ1): Build it.
13734
13735 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
13736 (local_heap, local_alloc, local_free, malloc_widget_value)
13737 (free_widget_value): Define here.
13738
137392008-06-09 Kenichi Handa <handa@m17n.org>
13740
13741 * font.h (Qascii_0): Extern it.
13742
13743 * font.c (Qascii_0): New variable.
13744 (syms_of_font): DEFSYM it.
13745 (font_open_by_name): If the registry "iso8859-1" fails, try also
13746 "ascii-0".
13747
13748 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
13749
137502008-06-08 Kenichi Handa <handa@m17n.org>
13751
13752 * .gdbinit (xfont): New command.
13753
137542008-06-08 Andreas Schwab <schwab@suse.de>
13755
13756 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
13757 * Makefile.in (menu.o): Update dependencies.
13758
13759 * Makefile.in (obj): Always add menu.o.
13760 * emacs.c (main): Always call syms_of_menu.
13761 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
13762
137632008-06-08 Chong Yidong <cyd@stupidchicken.com>
13764
13765 * Makefile.in: Compile menu.c.
13766
13767 * lisp.h: Declare syms_of_menu.
13768
13769 * emacs.c (main): Call syms_of_menu.
13770
13771 * keyboard.h: Relocate platform-independent menu definitions from
13772 xmenu.c.
13773
13774 * menu.c: New file. Relocate platform-independent menu
13775 definitions from xmenu.c. Suggested by Adrian Robert.
13776
13777 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 13778 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
13779 (menu_items_used, menu_items_n_panes)
13780 (menu_items_submenu_depth): Move to keyboard.h.
13781 (init_menu_items, finish_menu_items, unuse_menu_items)
13782 (discard_menu_items, restore_menu_items, save_menu_items)
13783 (grow_menu_items, push_submenu_start, push_submenu_end)
13784 (push_left_right_boundary, push_menu_pane, push_menu_item)
13785 (keymap_panes, single_keymap_panes, single_menu_item)
13786 (list_of_panes, list_of_items, find_and_call_menu_selection)
13787 (xmalloc_widget_value, free_menubar_widget_value_tree)
13788 (parse_single_submenu, digest_single_submenu)
13789 (update_submenu_strings): Move to menu.c.
13790
137912008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
13792
13793 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
13794
137952008-06-06 Miles Bader <miles@gnu.org>
13796
13797 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
13798 face, not frame default.
13799
138002008-06-05 Martin Rudalics <rudalics@gmx.at>
13801
13802 * window.c (pop_up_windows, pop_up_frames)
13803 (display_buffer_reuse_frames, Vpop_up_frame_function)
13804 (Vdisplay_buffer_function, Veven_window_heights)
13805 (Vspecial_display_buffer_names, Vspecial_display_regexps)
13806 (Vspecial_display_function, Vsame_window_buffer_names)
13807 (Vsame_window_regexps, split_height_threshold)
13808 (Vsplit_window_preferred_function): Move those vars to window.el.
13809 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
13810 (Fdisplay_buffer): Move those functions to window.el.
13811 (syms_of_window): Remove corresponding declarations.
13812 (display_buffer): New function.
13813 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
13814 * dispnew.c (Flast_nonminibuf_frame): New function.
13815 * buffer.c (Fpop_to_buffer): Move to window.el.
13816
138172008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13818
13819 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
13820
138212008-06-05 Kenichi Handa <handa@m17n.org>
13822
13823 * coding.c (detect_coding): Fix previous change.
13824 (detect_coding_system): Likewise.
13825
138262008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13827
13828 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
13829
13830 * keymap.c (Vminibuffer_local_filename_must_match_map):
13831 Rename from Vminibuffer_local_must_match_filename_map.
13832 (syms_of_keymap):
13833 * minibuf.c (Fcompleting_read): Adjust accordingly.
13834 * commands.h: Rename declaration as well.
13835
138362008-06-05 Kenichi Handa <handa@m17n.org>
13837
13838 * font.c (Ffont_spec): Don't use font_parse_family_registry for
13839 family name.
13840 (Ffont_put): Likewise.
13841
13842 * fontset.c (fontset_find_font): Call font_open_for_lface with the
13843 current font-spec.
13844
13845 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
13846 is unspecified.
13847
13848 * xfaces.c (realize_x_face): If the font-related face attributes
13849 are the same as those of default face, realize a new fontset from
13850 default->fontset.
13851 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
13852
138532008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
13854
13855 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
13856 (move_it_in_display_line): New wrapper.
13857
13858 * window.c (window_scroll_pixel_based_preserve_x)
13859 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
13860 (window_scroll_pixel_based, window_scroll_line_based):
13861 Use them to preserve column positions.
13862 (syms_of_window): Initialize them.
13863
13864 * indent.c (Fvertical_motion): Extend first arg to allow passing an
13865 (HPOS . VPOS) pair.
13866
13867 * dispextern.h (move_it_in_display_line): Declare.
13868
138692008-06-05 Juanma Barranquero <lekktu@gmail.com>
13870
13871 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
13872 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
13873 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
13874
138752008-06-04 Juanma Barranquero <lekktu@gmail.com>
13876
13877 * window.c (Fset_window_parameter): Doc fix.
13878 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
13879
138802008-06-04 Joakim Verona <joakim@verona.se>
13881
13882 * window.h (struct window): Add new member window_parameters.
13883
13884 * window.c (Fwindow_parameters, Fwindow_parameter)
13885 (Fset_window_parameter): New defuns.
13886 (syms_of_window): Defsubr the new defuns.
13887 (make_window): Initialize window_parameters to nil.
13888
138892008-06-04 John Paul Wallington <jpw@pobox.com>
13890
13891 * eval.c (Fdefmacro): Doc fix.
13892
138932008-06-04 Kenichi Handa <handa@m17n.org>
13894
13895 * coding.c (detect_coding): Fix handling of coding->head_ascii.
13896 Be sure to call setup_coding_system when we find a proper coding system.
13897 (detect_coding_system): Fix handling of coding->head_ascii.
13898
138992008-06-03 Andreas Schwab <schwab@suse.de>
13900
13901 * font.c (font_prop_validate_spacing): Fix last change.
13902
139032008-06-03 Kenichi Handa <handa@m17n.org>
13904
13905 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
13906 (font_parse_fcname): Fix handling of unknown key.
13907
13908 * xfont.c (xfont_list): Try an alias.
13909
13910 * charset.c (char_charset): Return NULL if the arg charset_list is
13911 specified and C doesn't belong to any of them.
13912
139132008-06-02 Chip Coldwell <coldwell@redhat.com>
13914
13915 * font.c (font_pixel_size): Don't take cdr of an integer.
13916
139172008-06-02 Jim Meyering <meyering@redhat.com>
13918
13919 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
13920 * alloc.c (xfree): Return right away for a NULL arg.
13921 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
13922 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
13923 * mac.c (create_apple_event_from_event_ref): Likewise.
13924 (create_apple_event_from_drag_ref, cfstring_create_normalized):
13925 Likewise.
13926 * doprnt.c (doprnt1): Likewise.
13927 * frame.c (frame): Likewise.
13928 * keyboard.c (wipe_kboard): Likewise.
13929 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
13930 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
13931 * term.c (tty_default_color_capabilities, maybe_fatal)
13932 (delete_tty): Likewise.
13933 * w16select.c (string): Likewise.
13934 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
13935 * w32bdf.c (w32_free_bdf_font): Likewise.
13936 * w32fns.c (w32_unload_font): Likewise.
13937 * w32font.c (w32font_close): Likewise.
13938 * window.c (size_window): Likewise.
13939 * xselect.c (receive_incremental_selection): Likewise.
13940 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
13941 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
13942 * w32.c (stat): Likewise.
13943
13944 Remove useless if-before-free tests.
13945 * editfns.c (Fset_time_zone_rule): Likewise.
13946 * lread.c (nosuffix): Likewise.
13947 * ralloc.c (get_bloc): Likewise.
13948 * regex.c (reg_free): Likewise.
13949 * xftfont.c (xftfont_open, xftfont_close): Likewise.
13950 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
13951 * xsmfns.c (smc_save_yourself_CB): Likewise.
13952
139532008-06-02 Kenichi Handa <handa@m17n.org>
13954
13955 * font.c (font_find_for_lface): Handle float font size.
13956 (font_open_for_lface): Likewise.
13957
13958 * xfaces.c (x_supports_face_attributes_p): Check face->font before
13959 comparing the properties.
13960
139612008-06-01 Jason Rumney <jasonr@gnu.org>
13962
13963 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
13964 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
13965 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
13966 Don't add empty script list.
13967 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
13968
139692008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
13970
13971 * Makefile.in (dot, dotdot): Remove, update users.
13972 ".." has been used elsewhere in the file for a long time.
13973 (LIBXT_STATIC): Remove conditional based on unused variable.
13974
139752008-06-01 Miles Bader <miles@gnu.org>
13976
13977 * xfaces.c (Vface_remapping_alist): New variable.
13978 (syms_of_xfaces): Initialize it.
13979 (enum named_merge_point_kind): New type.
13980 (struct named_merge_point): Add `named_merge_point_kind' field.
13981 (push_named_merge_point): Make cycle detection respect different
13982 named-merge-point kinds.
13983 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
13984 Remove face-name alias resolution.
13985 (lface_from_face_name): New definition using
13986 `lface_from_face_name_no_resolve'.
13987 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
13988 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
13989 (get_lface_attributes): New definition that layers face-remapping on
13990 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
13991 (lookup_basic_face): New function.
13992 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
13993 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
13994 `get_lface_attributes'.
13995 (face_at_buffer_position): Use `lookup_basic_face' to lookup
13996 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
13997 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
13998
13999 * xdisp.c (init_iterator): Pass base_face_id through
14000 `lookup_basic_face' when we actually use it as a face-id.
14001 (handle_single_display_prop): Use `lookup_basic_face' to lookup
14002 DEFAULT_FACE_ID.
14003
14004 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
14005 lookup the initial face-id.
14006
14007 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
14008
140092008-06-01 Juanma Barranquero <lekktu@gmail.com>
14010
14011 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
14012 (Fremove_text_properties): Fix typos in docstrings.
14013
140142008-05-31 Kenichi Handa <handa@m17n.org>
14015
14016 * font.c (font_list_entities): Fix the car part of data to be
14017 stored in the cache.
14018
14019 * ftfont.c (ftfont_font_format): Don't use strcasestr.
14020
140212008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14022
14023 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
14024 Add a `test' argument so another predicate than `equal' can be used.
14025 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
14026 (map_char_table): Remove unused vars `c' and `i'.
14027 * lisp.h (Foptimize_char_table): Adjust declaration.
14028 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
14029
140302008-05-30 Kenichi Handa <handa@m17n.org>
14031
14032 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
14033 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
14034 defined.
14035
140362008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
14037
14038 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14039 (Fmake_variable_frame_local): Disallow mixing buffer-local and
14040 frame-local settings for the same variable.
14041
140422008-05-30 Kenichi Handa <handa@m17n.org>
14043
14044 * fontset.c (Ffont_info): Move to font.c.
14045 (syms_of_fontset): Delete defsubr of Sfont_info.
14046
14047 * font.c (font_style_to_value, font_score): Delete casting of the
14048 args to xstcasecmp.
14049 (register_font_driver): Increment num_font_drivers only when
14050 registering the driver globally.
14051 (Ffont_info): Move from fontset.c. Handle a font object too.
14052 (syms_of_font): Defsubr Sfont_info.
14053
140542008-05-29 Kenichi Handa <handa@m17n.org>
14055
14056 * coding.h (enum define_coding_utf8_arg_index): New enum.
14057 (enum coding_attr_index): Change coding_attr_utf_16_bom to
14058 coding_attr_utf_bom.
14059 (enum utf_bom_type): Rename from utf_16_bom_type.
14060 (struct utf_16_spec): Adjust for the above change.
14061 (struct coding_system): Add utf_8_bom in `spec' union.
14062
14063 * coding.c (CODING_UTF_8_BOM): New macro.
14064 (enum coding_category): Delete coding_category_utf_8, add
14065 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
14066 coding_category_utf_8_sig.
14067 (CATEGORY_MASK_UTF_8): Delete it.
14068 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
14069 (CATEGORY_MASK_UTF_8_SIG): New macros.
14070 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
14071 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
14072 CATEGORY_MASK_UTF_8_SIG.
14073 (CATEGORY_MASK_UTF_8): New macro.
14074 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
14075 (detect_coding_utf_8): Check BOM.
14076 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
14077 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
14078 (encode_coding_utf_16): Likewise.
14079 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
14080 (detect_coding, detect_coding_system): Handle utf-8-auto.
14081 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
14082 (syms_of_coding): Fix setting up of Vcoding_category_table.
14083
140842008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
14085
14086 * process.c (Faccept_process_output): If `millisec' is non-nil,
14087 `seconds' default to 0.
14088 (wait_reading_process_output): Also return non-nil if we read output
14089 from a non-running process.
14090
140912008-05-29 Jason Rumney <jasonr@gnu.org>
14092
14093 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
14094 `raster' specified.
14095 (add_font_entity_to_list): Allow non-opentype truetype fonts back
14096 in the uniscribe backend, but disallow any font that has no
14097 unicode subrange support.
14098
140992008-05-29 Juanma Barranquero <lekktu@gmail.com>
14100
14101 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
14102 Fix typos in docstrings.
14103
141042008-05-29 Kenichi Handa <handa@m17n.org>
14105
14106 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
14107 (Fx_family_fonts): Set frame correctly.
14108
141092008-05-28 Jason Rumney <jasonr@gnu.org>
14110
14111 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
14112
141132008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
14114
14115 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
14116 calling build_annotations.
14117
141182008-05-28 Juanma Barranquero <lekktu@gmail.com>
14119
14120 * coding.c (Fdecode_coding_region, Fencode_coding_region)
14121 (Fencode_coding_string):
14122 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
14123 <latin-extra-code-table>: Fix typos in docstrings.
14124 (syms_of_coding) <coding-system-alist>: Doc fix.
14125 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
14126
141272008-05-28 Kenichi Handa <handa@m17n.org>
14128
14129 * fontset.c (Ffont_info): Don't call font_close_object.
14130
14131 * font.c (font_parse_family_registry): Use Ffont_put to validate
14132 foundry and family.
14133 (font_delete_unmatched): Don't check spacing.
14134 (font_list_entities): Add spacing to the spec to list fonts.
14135
14136 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
14137 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
14138
14139 * coding.c (encode_coding_raw_text): Fix previous change.
14140 (encode_coding_object): When the dst_object is a buffer and is
14141 different from src_object, move gap to PT.
14142
141432008-05-27 Chong Yidong <cyd@stupidchicken.com>
14144
14145 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
14146
141472008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14148
14149 * coding.c (encode_coding_raw_text): Set coding->produced_char for
14150 all branches. Compute it differently.
14151
14152 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
14153
141542008-05-27 Juanma Barranquero <lekktu@gmail.com>
14155
14156 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
14157 into "else if () ... else ...".
14158
141592008-05-27 Jason Rumney <jasonr@gnu.org>
14160
14161 * w32font.c (w32font_open_internal): Determine if glyph indices
14162 are likely to work here.
14163
141642008-05-27 Chong Yidong <cyd@stupidchicken.com>
14165
14166 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
14167 draw overlap glyphs with appropriate highlighting.
14168
141692008-05-27 Kenichi Handa <handa@m17n.org>
14170
14171 * xfont.c (xfont_open): Fix calculation of font->average_width.
14172
141732008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
14174
14175 * casefiddle.c (casify_object): Try to guess better whether the
14176 argument is a byte or a char.
14177
141782008-05-26 Andreas Schwab <schwab@suse.de>
14179
14180 * xselect.c (x_reply_selection_request): Properly handle format == 32.
14181 Always send multiples of format size.
14182
14183 * xterm.c (x_set_frame_alpha): Fix type mismatch.
14184
141852008-05-26 Jason Rumney <jasonr@gnu.org>
14186
14187 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
14188 (compute_metrics): Don't set failure if we just cleared the cache.
14189 (w32_weight_table): Remove unused variable.
14190 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
14191 backwards compatibility.
14192
141932008-05-25 Kenichi Handa <handa@m17n.org>
14194
14195 * w32term.c (x_draw_glyph_string):
14196 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
14197
14198 * xfaces.c: Delete unused function prototypes.
14199 (xstrlwr, font_frame): Delete them.
14200 (clear_face_cache): Delete unused variable.
14201
14202 * xftfont.c (xftfont_open): Delete unused variable.
14203 If underline_thickness is not 1, adjust underline_position.
14204
14205 * ftxfont.c (ftxfont_open): Delete unused variable.
14206
14207 * fontset.c (face_for_char): Optimize for the case of no charset
14208 property.
14209
14210 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
14211 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
14212 (otf_open, font_otf_capability, generate_otf_features)
14213 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14214 Comment out by surrounding "#if 0" and "#endif" for the moment.
14215 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
14216 (syms_of_font): Codes for accessing above commented out.
14217
142182008-05-24 Eli Zaretskii <eliz@gnu.org>
14219
14220 * w32proc.c: Include dispextern.h.
14221
14222 * w32.c: Include dispextern.h.
14223
142242008-05-23 Juanma Barranquero <lekktu@gmail.com>
14225
14226 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
14227 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
14228 Fix typos in docstrings.
14229
142302008-05-23 Jason Rumney <jasonr@gnu.org>
14231
14232 * xsmfns.c: Remove includes that are already included by config.h.
14233
142342008-05-23 Kenichi Handa <handa@m17n.org>
14235
14236 * charset.c (Qemacs, charset_emacs): New variables.
14237 (char_charset): Fix for non-Unicode characters.
14238 (syms_of_charset): Define charset_emacs.
14239
14240 * w32term.c (x_draw_glyph_string): Be sure to update
14241 s->underline_thickness and s->underline_position. Be sure to draw
14242 underline within the current line area.
14243
14244 * xterm.c (x_draw_glyph_string): Be sure to update
14245 s->underline_thickness and s->underline_position. Be sure to draw
14246 underline within the current line area.
14247
14248 * fontset.c: Delete unused variables and add casting for char *
14249 throughout the file.
14250 (fontset_font): Try the fallback fonts of the current fontset
14251 before consulting the default fontset.
14252
14253 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
14254
14255 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
14256
142572008-05-22 Jason Rumney <jasonr@gnu.org>
14258
14259 * font.c: Don't include strings.h.
14260
14261 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
14262
14263 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
14264 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
14265 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
14266 to call xstrcasecmp.
14267
14268 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
14269
14270 * fontset.c (fs_query_fontset): Use xstrcasecmp.
14271
14272 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
14273
14274 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
14275
142762008-05-22 Kenichi Handa <handa@m17n.org>
14277
14278 * puresize.h (BASE_PURESIZE): Increase to 1220000.
14279
14280 * font.c (font_prop_validate_style): Adjust for the format
14281 change of font_style_table.
14282
14283 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
14284 two args.
14285
14286 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
14287 two args.
14288
142892008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
14290
14291 * minibuf.c (keys_of_minibuf): Delete.
14292 * lisp.h (keys_of_minibuf): Delete.
14293 * emacs.c (main): Don't call keys_of_minibuf.
14294
142952008-05-22 Kenichi Handa <handa@m17n.org>
14296
14297 * ftfont.c (ftfont_resolve_generic_family): Rename from
14298 ftfont_list_generic_family. Return a single family for each
14299 generic family.
14300 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
14301 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
14302 Call font_add_log.
14303 (ftfont_match): Call font_add_log.
14304
14305 * font.h (Ffont_xlfd_name): EXFUN adjusted.
14306 (FONT_DEBUG): Define it.
14307 (font_add_log): Extern it.
14308 (font_assert): Rename from xassert.
14309
14310 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
14311 (xfont_list_family): Call font_add_log.
14312 (xfont_match): Likewise.
14313 (memq_no_quit): Delete.
14314
14315 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
14316 call of Ffont_xlfd_name.
14317
14318 * xfaces.c (struct table_entry, slant_table, weight_table)
14319 (swidth_table): Move to font.c.
14320
14321 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
14322 xassert are changed to font_assert. Delete many unused variables.
14323 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
14324 New variables.
14325 (struct table_entry): Move from xfaces.c and modified.
14326 (weight_table, slant_table, width_table): Move from xfaces.c and
14327 contents adjusted for the change of struct table_entry.
14328 (font_style_to_value, font_style_symbolic): Adjust for the
14329 format change of font_style_table.
14330 (font_parse_family_registry): Don't overwrite existing foundry and
14331 family of font_spec.
14332 (font_score): Fix calculation of diff for sizes.
14333 (font_sort_entites): Call font_add_log.
14334 (font_delete_unmatched): Return a newly created list.
14335 (font_list_entities): Fix previous change. Call font_add_log.
14336 (font_matching_entity, font_open_entity, font_close_entity):
14337 Call font_add_log.
14338 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
14339 (Finternal_set_font_style_table): Delete.
14340 (BUILD_STYLE_TABLE): New macro.
14341 (build_style_table): New function.
14342 (Vfont_log, font_log_env_checked): New variables.
14343 (font_add_log): New function.
14344 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
14345 Declare Lisp variables "font-weight-table", "font-slant-table",
14346 "font-width-table", and "font-log". Initialize font_style_table.
14347
143482008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
14349
14350 * xterm.c (x_set_frame_alpha): Move declarations before statements.
14351
143522008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14353 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14354
14355 * frame.c (Qalpha): Add a new frame parameter `alpha'.
14356 (Vframe_alpha_lower_limit): New variable.
14357 (x_set_alpha): New function.
14358
14359 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
14360
14361 * xfns.c (x-create-frame, Qalpha):
14362 Initialize the frame parameter `alpha'.
14363 * xterm.c (OPAQUE, OPACITY): New.
14364 (x_set_frame_alpha): New function.
14365 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
14366
14367 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
14368 * w32fns.c (w32_frame_parm_handlers): Likewise.
14369
143702008-05-20 Jason Rumney <jasonr@gnu.org>
14371
14372 * w32font.c (add_font_entity_to_list): Don't add non-opentype
14373 truetype fonts to opentype list.
14374
143752008-05-20 Juanma Barranquero <lekktu@gmail.com>
14376
14377 * fontset.c (Ffontset_info): Doc fix.
14378 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
14379 <ignore-relative-composition>: Fix typos in docstrings.
14380
14381 * font.c (syms-of-font) <font-encoding-alist>:
14382 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
14383 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
14384 (Ffont_otf_alternates): Doc fixes.
14385
143862008-05-20 Kenichi Handa <handa@m17n.org>
14387
14388 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
14389 font.h through out the file.
14390 (FONT_DRIVERS): Rename from FONTOBJ.
14391 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
14392 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
14393
14394 * emacs.c (main): Call syms_of_font unconditionally.
14395
14396 * font.h (find_font_encoding): Extern it.
14397
14398 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
14399 fontset.c.
194d44e7 14400 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
14401 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
14402 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
14403 only when HAVE_WINDOW_SYSTEM is defined.
14404 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
14405 when HAVE_WINDOW_SYSTEM is defined.
14406
14407 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
14408 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
14409
14410 * xfaces.c: Include font.h unconditionally.
14411 (merge_face_ref, merge_face_vectors)
14412 (Finternal_set_lisp_face_attribute): Cancel the previous change.
14413
144142008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
14415
14416 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
14417 indirect_variable.
14418 * eval.c (lisp_indirect_variable): New fun.
14419 (Fuser_variable_p): Use it.
14420
144212008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14422
14423 * lisp.h (indirect_variable):
14424 * data.c (indirect_variable, let_shadows_buffer_binding_p):
14425 Use Lisp_Symbol pointers rather than Lisp_Object.
14426 Adjust callers.
14427 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
14428 To this end, change calling-convention.
14429
14430 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
14431 if some non-hidden buffers are selected by string&pred.
14432
144332008-05-19 Chong Yidong <cyd@stupidchicken.com>
14434
14435 * process.c (wait_reading_process_output): Always check status
14436 when in batch mode.
14437
144382008-05-19 Kenichi Handa <handa@m17n.org>
14439
14440 * font.c (font_list_entities): Fix handling of cache.
14441 (font_matching_entity): Likewise.
14442
14443 * ftfont.c (cs_iso8859_1): Delete.
14444 (ft_face_cache): New variable.
14445 (struct ftfont_info): New member fc_charset_idx.
14446 (ftfont_build_basic_charsets): Delete.
14447 (fc_charset_table): New variable.
14448 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
14449 . FC_CHARSET_IDX) as :font-entity property in the font entity.
14450 Callers changed.
14451 (ftfont_lookup_cache, ftfont_get_charset): New functions.
14452 (ftfont_spec_pattern): New argument fc_charset_idx.
14453 Check registry more rigidly. Change callers.
14454 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
14455 change of :font-entity property of the font.
14456
14457 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
14458 property of the font.
14459
144602008-05-18 Juanma Barranquero <lekktu@gmail.com>
14461
14462 * coding.c (Fcoding_system_p): Rename argument to match docstring.
14463 (Funencodable_char_position, Fcheck_coding_systems_region)
14464 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
14465 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
14466 (Ffind_operation_coding_system, Fset_coding_system_priority)
14467 (Fcoding_system_eol_type): Doc fixes.
14468
144692008-05-17 Glenn Morris <rgm@gnu.org>
14470
14471 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
14472
144732008-05-16 Eli Zaretskii <eliz@gnu.org>
14474
14475 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
14476 and st_gid.
14477
14478 * frame.c (Fdelete_frame): Don't call font_update_drivers if
14479 HAVE_WINDOW_SYSTEM is not defined.
14480
14481 * xfaces.c (merge_face_ref, merge_face_vectors)
14482 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
14483 HAVE_WINDOW_SYSTEM is defined.
14484 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
14485
144862008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
14487
14488 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
14489
144902008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14491
14492 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
14493
144942008-05-15 Kenichi Handa <handa@m17n.org>
14495
14496 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
14497 preference.
14498
144992008-05-15 Glenn Morris <rgm@gnu.org>
14500
14501 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
14502
145032008-05-15 Chong Yidong <cyd@stupidchicken.com>
14504
14505 * fns.c (init_fns): Don't initialize weak_hash_tables here.
14506 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
14507
14508 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
14509
145102008-05-15 Kenichi Handa <handa@m17n.org>
14511
14512 * ftfont.c (ftfont_list): Downcase family name to check generic
14513 families.
14514
14515 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
14516 font-spec for QCfont value.
14517
14518 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
14519 buffer. Check the return value of it.
14520
145212008-05-14 Jason Rumney <jasonr@gnu.org>
14522
14523 * w32term.c (w32_get_glyph_overhangs): Remove.
14524 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
14525
145262008-05-14 Kenichi Handa <handa@m17n.org>
14527
14528 * font.c (font_prop_validate): Make nil a valid value.
14529 (font_clear_cache): Check if the cached vector of entities is nil
14530 or not.
14531
145322008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14533
14534 * emacs.c (main_thread): Conditionalize on
14535 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14536 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
14537
14538 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
14539 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
14540 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
14541
145422008-05-14 Kenichi Handa <handa@m17n.org>
14543
14544 * coding.c (detect_coding_iso_2022): Ignore a coding category that
14545 has no corresponding coding system.
14546
145472008-05-14 Jason Rumney <jasonr@gnu.org>
14548
14549 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
14550
14551 * w32font.h (w32font_open_internal): Update declaration.
14552
14553 * w32font.c (w32font_open_internal): Change last argument from
14554 w32font_info struct to font object. Fill in font object from
14555 font_entity. Get Outline metrics if possible. Use them to
14556 calculate underline position and thickness. Use xlfd name as name
14557 property. Don't set codepage.
14558 (w32font_open): Pass font_object to w32font_open_internal. Don't
14559 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
14560 (w32font_draw): Use s->font.
14561 (clear_cached_metrics): Don't clear non-existent blocks.
14562
14563 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
14564 font was not found.
14565 (x_draw_glyph_string): Use underline position and thickness from font.
14566
14567 * w32uniscribe.c (uniscribe_open): Pass font_object to
14568 w32font_open_internal.
14569
145702008-05-14 Kenichi Handa <handa@m17n.org>
14571
14572 These changes are to delete all legacy font-handling codes, and
14573 make Emacs use only font-backends.
14574
14575 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
14576 (frame.o, image.o, print.o): Depend on $(FONTSRC).
14577
14578 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
14579
14580 * charset.h (Vcharset_non_preferred_head)
14581 (Vcurrent_iso639_language): Extern them.
14582
14583 * charset.c (Vcharset_non_preferred_head): New variable.
14584 (Vcurrent_iso639_language): New variable.
14585 (syms_of_charset): Declare it as a Lisp variable.
14586 (char_charset): Don't check non preferred charsets. As a last
14587 resort, return charset_unicode.
14588 (Fset_charset_priority): Update Vcharset_non_preferred_head.
14589
14590 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
14591 conditionals. Don't check enable_font_backend. Delete all codes
14592 used only when USE_FONT_BACKEND is not defined.
14593
14594 * dispextern.h (struct glyph_string): Change type of `font' to
14595 `struct font *'.
14596 (struct glyph_string): New member underline_position and
14597 underline_thickness.
14598 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
14599 (struct face): Change type of `font' to `struct font *'. Remove
14600 members `font_name', `font_info_id'.
14601 (per_char_metric, encode_char): Delete externs.
14602 (calc_pixel_width_or_height): Adjust the prototype.
14603
14604 * emacs.c (enable_font_backend): Delete extern.
14605 (main): Don't set enable_font_backend. Don't check the command
14606 line argument "-disable-font-backend".
14607
14608 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
14609 (enum font_property_index): New members FONT_DPI_INDEX,
14610 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
14611 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
14612 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
14613 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
14614 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
14615 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
14616 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
14617 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
14618 (struct font_spec, struct font_entity): New structs.
14619 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
14620 (struct font): Many members from old "struct font_info" moved to
14621 here. Members font and entity deleted.
14622 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
14623 the new font-related objects.
14624 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
14625 (CHECK_FONT_GET_OBJECT): Likewise.
14626 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
14627 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
14628 (struct font_driver): New members case_sensitive anc check. Type
14629 of the member list and open changed.
14630 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
14631 (font_symbolic_width, font_find_object, font_get_spec)
14632 (font_set_lface_from_name): Delete extern.
14633 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
14634
14635 * font.c: Include <strings.h>.
14636 (enable_font_backend): Delete it.
14637 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
14638 (CHECK_VALIDATE_FONT_SPEC): Delete it.
14639 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
14640 (null_string): Delete it.
14641 (null_vector): Make it static.
14642 (font_family_alist): Delete it.
14643 (Qnormal): Extern it.
14644 (QCextra, QClanguage): Delete it.
14645 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
14646 (font_make_spec, font_make_entity, font_make_object)
14647 (font_intern_prop): Renamed from intern_downcase. Don't downcase
14648 the string. Callers changed.
14649 (font_pixel_size): Adjusted for the format change of font-related
14650 objects.
14651 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
14652 (font_style_to_value, font_style_symbolic): New function.
14653 (build_font_family_alist): Delete it.
14654 (font_registry_charsets): Use Fassoc_string instead of
14655 assq_no_quit.
14656 (font_prop_validate_symbol): Don't return null_string.
14657 (font_prop_validate_style): Adjusted for the change of
14658 style-related values in a font vector.
14659 (font_property_table): Delete entries for QClanguage and
14660 QCantialias, add entries for QCavgwidth.
14661 (get_font_prop_index): Delete the 2nd argument FROM.
14662 (font_prop_validate): Arguments changed.
14663 (font_put_extra): Adjusted for the change of font-related objects.
14664 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
14665 (font_parse_fcname, font_unparse_fcname)
14666 (font_prepare_composition): Likewise.
14667 (font_parse_family_registry): Renamed from font_merge_old_spec.
14668 (otf_open): Delete the 1st arg entity.
14669 (font_otf_capability): Adjusted for the above change.
14670 (font_score): New arg alternate_families. Adjusted for the change
14671 of font-related objects.
14672 (font_sort_entites): New arg best_only.
14673 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
14674 Delete them.
14675 (font_match_p): Check alternate families.
14676 (font_find_object): Delete it.
14677 (font_check_object): New function.
14678 (font_clear_cache): Adjusted for the change of font-related objects.
14679 (font_delete_unmatched): New arg.
14680 (font_list_entities): Call font_driver->list with a spec that
14681 doesn't specify style-related properties.
14682 (font_matching_entity): Arguments changed. Caller changed.
14683 (font_open_entity): Adjusted for the change of font-related objects.
14684 (font_close_object, font_has_char, font_encode_char)
14685 (font_get_name, font_get_spec): Likewise.
14686 (font_spec_from_name, font_clear_prop, font_update_lface):
14687 New functions.
14688 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
14689 (font_prepare_for_face, font_done_for_face, font_open_by_name)
14690 (font_at): Adjusted for the change of font-related objects.
14691 (font_range): New function.
14692 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
14693 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
14694 (Fcopy_font_spec, Fmerge_font_spec): New function.
14695 (Ffont_family_list): Renamed from list-families.
14696 (Finternal_set_font_style_table): Arguments changed.
14697 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
14698 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
14699 change of font-related objects.
14700 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
14701
14702 * fontset.h (struct font_info): Delete it. Most members go to
14703 struct font.
14704 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
14705 (enum FONT_SPEC_INDEX): Delete it.
14706 (font_info, list_fonts_func, load_font_func, query_font_func)
14707 (set_frame_fontset_func, find_ccl_program_func)
14708 (get_font_repertory_func, new_fontset_from_font_name): Delete
14709 externs.
14710 (fontset_from_font_name): Extern it.
14711 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
14712 (FONT_INFO_FROM_FACE): Deleted.
14713 (face_for_font): Adjust prototype.
14714
14715 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
14716 conditionals. Don't check enable_font_backend. Delete all codes
14717 used only when USE_FONT_BACKEND is not defined.
14718 (get_font_info_func, list_font_func, load_font_func)
14719 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
14720 (get_font_repertory_func): Delete them.
14721 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
14722 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
14723 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
14724 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
14725 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
14726 (fontset_compare_rfontdef): New function.
14727 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
14728 rfont-defs by qsort. Adjusted for the change of font-group vector.
14729 (load_font_get_repertory): Deleted.
14730 (fontset_find_font): Use new macros to ref/set elements of
14731 font-def and rfont-def.
14732 (fontset_font): Fix the timing of remembering that no font for C.
14733 (free_face_fontset): Do nothing if the face has no fontset.
14734 (face_suitable_for_char_p): Use new macros to ref/set elements of
14735 rfont-def.
14736 (face_for_char): Likewise. Call face_for_char with font_object.
14737 (fs_load_font): Delete. Delete #pragma surrounding it.
14738 (fs_query_fontset): Use strcasecmp instead of strcmp.
14739 (generate_ascii_font_name): Adjusted for the format change of
14740 font-spec.
14741 (Fset_fontset_font): Likewise. Use new macros to set elements of
14742 font-def.
14743 (Fnew_fontset): Use font_unparse_xlfd to generate
14744 FONTSET_ASCII (fontset).
14745 (new_fontset_from_font_name): Deleted.
14746 (fontset_from_font): Renamed from new_fontset_from_font. Check if
14747 a fontset is already created for the font. FIx updating of
14748 Vfontset_alias_alist.
14749 (fontset_ascii_font): Deleted.
14750 (Ffont_info): Adjusted for the format change of font-spec.
14751 (Finternal_char_font): Likewise.
14752 (Ffontset_info): Likewise.
14753 (syms_of_fontset): Don't check load_font_func.
14754
14755 * fns.c (internal_equal): Handle PREV_FONT.
14756
14757 * frame.h: Delete USE_FONT_BACKEND conditional.
14758
14759 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
14760 conditionals. Don't check enable_font_backend. Delete all codes
14761 used only when USE_FONT_BACKEND is not defined.
14762 (x_set_font): Call x_new_font, not x_new_fontset2.
14763 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
14764 already set for the frame.
14765
14766 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
14767 a font-entity by font_make_entity. Use font_intern_prop instead
14768 of intern_downcase. Use FONT_SET_STYLE to set a style-related
14769 font property. If a font is scalable, set avgwidth property to 0.
14770 Set font-entity property by font_put_extra.
14771 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
14772 (ffont_driver): Adjusted for the change of struct font_driver.
14773 (ftfont_spec_pattern): New function.
14774 (ftfont_list): Return a list, not vector.
14775 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
14776 (ftfont_list_family): Don't downcase names.
14777 (ftfont_free_entity): Deleted.
14778 (ftfont_open): Return a font-object. Adjusted for the change of
14779 struct font. Get underline_thickness and underline_position from
14780 font property. Don't update dpyinfo->smallest_font_height and
14781 dpyinfo->smallest_char_width.
14782 (ftfont_close): Don't free `struct font'.
14783 (ftfont_has_char): Adjusted for the format change of font-entity.
14784 (ftfont_encode_char, ftfont_text_extents): Likewise.
14785
14786 * ftxfont.c (ftxfont_list): Return a list, not vector.
14787 (ftxfont_open): Return a font-object. Adjusted for the change of
14788 struct font. Get underline_thickness and underline_position from
14789 font property. Don't update dpyinfo->smallest_font_height and
14790 dpyinfo->smallest_char_width.
14791 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
14792 (ftxfont_draw): Adjusted for the change of struct font.
14793
14794 * image.c (image_ascent): Don't include "charset.h". Include
14795 "character.h" and "font.h".
14796
14797 * lisp.h (enum pvec_type): New member PREV_FONT.
14798 (Fassoc_string): EXFUN it.
14799
14800 * print.c: Include font.h.
14801 (print_object): Handle font-related objects.
14802
14803 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
14804 conditionals. Don't check enable_font_backend. Delete all codes
14805 used only when USE_FONT_BACKEND is not defined.
14806 (handle_auto_composed_prop): Do nothing if it->f is not on a
14807 window system. Check how many following characters can be
14808 displayed by the same font.
14809 (calc_pixel_width_or_height): Type of the 4th arg is changed to
14810 'struct font *'.
14811 (get_char_face_and_encoding): Assign the whole encoding task to
14812 the `encode-char' method of a font driver.
14813 (fill_composite_glyph_string): Adjusted for the change of `struct
14814 face' and `struct glyph_string'.
14815 (fill_glyph_string): Likewise.
14816 (get_per_char_metric): Arguments changed.
14817 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
14818 and `struct glyph_string'.
14819 (produce_stretch_glyph, calc_line_height_property)
14820 (x_produce_glyphs): Likewise.
14821
14822 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
14823 conditionals. Don't check enable_font_backend. Delete all codes
14824 used only when USE_FONT_BACKEND is not defined. Use
14825 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
14826 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
14827 (Qp): Extern them.
14828 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
14829 Deleted.
14830 (struct font_name): Deleted.
14831 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
14832 (compare_fonts_by_sort_order): New function.
14833 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
14834 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
14835 Deleted.
14836 (Fx_family_fonts): Use font_list_entities, and sort fonts by
14837 compare_fonts_by_sort_order.
14838 (Fx_font_family_list): Call Ffont_family_list.
14839 (face_numeric_value, face_numeric_weight, face_numeric_slant)
14840 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
14841 (face_symbolic_slant, face_symbolic_swidth)
14842 (split_font_name_into_vector, build_font_name_from_vector)
14843 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
14844 (font_rescale_ratio, split_font_name, build_font_name)
14845 (free_font_names, sort_fonts, x_face_list_fonts)
14846 (face_font_available_p, sorted_font_list, cmp_font_names)
14847 (font_list_1, concat_font_list, font_list, remove_duplicates):
14848 Deleted.
14849 (Fx_list_fonts): Use Ffont_list.
14850 (LFACE_AVGWIDTH): Deleted.
14851 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
14852 by FONTP.
14853 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
14854 (set_lface_from_font_name): Delete it.
14855 (set_lface_from_font): Renamed from
14856 set_lface_from_font_and_fontset. Caller changed. Don't set
14857 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
14858 for face.
14859 (merge_face_vectors): Copy font-spec if necessary.
14860 Clear properties of the font-spec if necessary.
14861 (merge_face_ref): Clear properties of the font-spec if necessary.
14862 (Finternal_set_lisp_face_attribute): Likewise.
14863 (set_font_frame_param): Use font_load_for_lface to load a
14864 font-object, and call Fmodify_frame_parameters with it.
14865 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
14866 font name by Ffont_xlfd_name.
14867 (Finternal_lisp_face_attribute_values): Don't check QCweight,
14868 QCslant, and QCwidth.
14869 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
14870 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
14871 Compare fonts by EQ.
14872 (lookup_non_ascii_face): Deleted.
14873 (face_for_font): The 2nd argument changed.
14874 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
14875 Check atomic font properties by case insensitive.
14876 (realize_non_ascii_face): Set face->overstrike correctly.
14877 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
14878 (dump_realized_face): Get font name from
14879 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
14880
14881 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
14882 conditionals. Don't check enable_font_backend. Delete all codes
14883 used only when USE_FONT_BACKEND is not defined.
14884 (xic_create_xfontset): Original code deleted and renamed from
14885 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
14886 (x_make_gc): Don't set GCFont in GCs.
14887 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
14888 opened by "fixed".
14889 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
14890 find_ccl_program_func, query_font_func, set_frame_fontset_func,
14891 get_font_repertory_func.
14892
14893 * xfont.c: Include <stdlib.h> and "ccl.h".
14894 (struct xfont_info): New structure.
14895 (xfont_query_font): Deleted.
14896 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
14897 moved from xterm.c.
14898 (xfont_driver): Adjusted for the change of struct font_driver.
14899 (compare_font_names): New function.
14900 (xfont_list_pattern): Sort font names case insensitively. Make
14901 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
14902 (xfont_list): Return a list, not vector.
14903 (xfont_match): If the font doesn't have QCname property, generate
14904 a name from the other font properties.
14905 (xfont_open): Return a font-object. Adjusted for the change of
14906 struct font. Get underline_thickness and underline_position from
14907 font property. Don't update dpyinfo->smallest_font_height and
14908 dpyinfo->smallest_char_width.
14909 (xfont_close): Don't free struct font.
14910 (xfont_prepare_face): Adjusted for the change of struct font.
14911 (xfont_done_face): Deleted.
14912 (xfont_has_char): Adjusted for the change of struct font.
14913 (xfont_encode_char, xfont_draw): Likewise.
14914 (xfont_check): New function.
14915
14916 * xftfont.c (xftfont_list): Adjusted for the change of `list'
14917 callback function.
14918 (xftfont_match): Adjusted for the format change of font-entity.
14919 (xftfont_open): Adjusted for the format change of font-entity and
14920 font-object. Adjusted for the change of struct font. Return a
14921 font-object. Don't update dpyinfo->smallest_font_height and
14922 dpyinfo->smallest_char_width.
14923 (xftfont_close): Block input while calling XftFontClose.
14924 (xftfont_prepare_face): Don't block input while calling
14925 xftfont_get_colors. Adjusted for the change of struct font.
14926 (xftfont_shape): Return value of error case fixed.
14927
14928 * xrdb.c (x_load_resources): Don't setup a fontset resource.
14929
14930 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
14931 conditionals.
14932 (FONT_WIDTH): Return (f)->max_width.
14933 (struct x_display_info): Delete member `font'.
14934 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
14935 (x_find_ccl_program, x_get_font_repertory): Delete externs.
14936 (struct x_output): Change type of `font' to `struct font *'.
14937
14938 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
14939 conditionals. Don't check enable_font_backend. Delete all codes
14940 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
14941 (x_per_char_metric, x_encode_char): Deleted.
14942 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
14943 (x_compute_glyph_string_overhangs): Adjusted for the change of
14944 `struct face'.
14945 (x_draw_glyph_string_foreground)
14946 (x_draw_composite_glyph_string_foreground): Likewise.
14947 (x_draw_glyph_string): Likewise. Use font->underline_position and
14948 font->underline_thickness.
14949 (x_new_font): Renamed from x_new_fontset2.
14950 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
14951 (x_check_font): Call `check' method of a font driver.
14952 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
14953 (x_query_font, x_get_font_repertory): Deleted.
14954 (x_find_ccl_program): Renamed and moved to xfont.c.
14955 (x_redisplay_interface): Adjusted for the change of `struct
14956 redisplay_interface'.
14957
14958 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
14959 conditionals. Don't check enable_font_backend. Delete all codes
14960 used only when USE_FONT_BACKEND is not defined. Surround non-used
14961 code by "#ifdef OLD_FONT" and "endif".
14962 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
14963
14964 * w32font.h (struct w32font_info): New member.
14965 (FONT_COMPAT): New macro.
14966 (w32font_open_internal): Prototype adjusted.
14967
14968 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
14969 OLD_FONT" and "endif".
14970
14971 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
14972 conditionals. Don't check enable_font_backend. Delete all codes
14973 used only when USE_FONT_BACKEND is not defined.
14974 (w32font_open): Return a font-object. Make a font-object by
14975 font_make_object. Adjusted for the change of struct w32font_info.
14976 (w32font_close): Don't free struct font. Adjusted for the change
14977 of struct w32font_info.
14978 (w32font_encode_char, w32font_text_extents, w32font_draw):
14979 Adjusted for the change of struct w32font_info.
14980 (w32font_draw): Likewise.
14981 (w32font_list_internal): Return a list, not vector.
14982 (w32font_open_internal): Change the 4th arg to font-object.
14983 Adjusted for the change of struct w32font_info and font-object format.
14984 (add_font_name_to_list): Don't downcase names.
14985 (w32_enumfont_pattern_entity): Make a font-entity by
14986 font_make_entity. Adjusted for the format change of font-entity.
14987 Use FONT_SET_STYLE to set a style-related font property. If a
14988 font is scalable, set avgwidth property to 0. Set font-entity
14989 property by font_put_extra.
14990 (font_matches_spec): Adjusted for the format change of font-entity.
14991 (w32_weight_table, w32_decode_weight): New variables.
14992 (w32_encode_weight): New function.
14993 (fill_in_logfont): Adjusted for the format change of font-spec.
14994 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
14995 weight value.
14996 (w32font_driver): Adjusted for the change of struct font_driver.
14997
14998 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
14999 conditionals. Don't check enable_font_backend. Surround non-used
15000 code by "#ifdef OLD_FONT" and "endif".
15001 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
15002 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
15003
15004 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
15005 conditionals. Don't check enable_font_backend. Delete all codes
15006 used only when USE_FONT_BACKEND is not defined. Surround non-used
15007 code by "#ifdef OLD_FONT" and "endif".
15008
15009 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
15010 (uniscribe_open): Return value changed to font-object.
15011 Adjusted for the format change of font-object.
15012 (uniscribe_otf_capability): Adjusted for the change of struct font.
15013 (add_opentype_font_name_to_list): Don't downcase names.
15014 (uniscribe_font_driver): Adjusted for the change of struct
15015 font_driver.
15016
150172008-05-13 Chong Yidong <cyd@stupidchicken.com>
15018
15019 * dispnew.c (update_frame_1): Check if tty output is still valid
15020 before flushing it.
15021
150222008-05-13 Jan Djärv <jan.h.d@swipnet.se>
15023
15024 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
15025 to Gtk+ menus.
15026
150272008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
15028
15029 * dired.c (file_name_completion): Tweak the code so as to always do it
15030 in a single pass. Tighten the scope of some variables.
15031
15032 * dired.c (Qdefault_directory): New var.
15033 (file_name_completion): Use it instead of Fexpand_file_name.
15034 (syms_of_dired): Initialize it.
15035
150362008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
15037
15038 * fileio.c (double_dollars): Remove dead code.
15039
150402008-05-10 Eli Zaretskii <eliz@gnu.org>
15041
15042 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
15043 Mention w32-get-true-file-attributes in doc string.
15044
15045 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
15046
150472008-05-09 Glenn Morris <rgm@gnu.org>
15048
15049 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
15050 2008-04-23.
15051
150522008-05-09 Eli Zaretskii <eliz@gnu.org>
15053
15054 Support for reporting owner and group of each file on MS-Windows:
15055 * dired.c (stat_uname, stat_gname): New functions, with special
15056 implementation for w32.
15057 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
15058
15059 * w32.c: Rename the_passwd_* to dflt_passwd_*.
15060 (dflt_group_name): New static variable.
15061 (dflt_group): Rename from the_group.
15062 (init_user_info): Init dflt_group fields. Get user's group name
15063 from LookupAccountSid.
15064 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
15065 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
15066 New initialization states.
15067 (globals_of_w32): Initialize them to zero. Initialize the default
15068 group name to "None".
15069 (GetFileSecurity_Name): New global var, the name of the function
15070 to call for GetFileSecurity.
15071 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
15072 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
15073 (get_file_security, get_security_descriptor_owner)
15074 (get_security_descriptor_group, is_valid_sid)
15075 (get_file_security_desc, get_rid, get_name_and_id)
15076 (get_file_owner_and_group): New functions.
15077 (stat): Use get_file_security_desc and get_file_owner_and_group to
15078 report the owner and primary group of each file. Don't ignore the
15079 high 32 bits of file's size, now that st_size is 64-bit wide.
15080 Fix test when to get true file attributes.
15081 (init_user_info): Use get_rid instead of equivalent inline code.
15082 (fstat): Don't ignore the high 32 bits of file's size.
15083
150842008-05-09 Chong Yidong <cyd@stupidchicken.com>
15085
15086 * image.c (png_load): Use correct bit-depth for setting background
15087 color.
15088
150892008-05-08 Eli Zaretskii <eliz@gnu.org>
15090
15091 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
15092 epa-hook.elc.
15093
150942008-05-08 Juanma Barranquero <lekktu@gmail.com>
15095
15096 * font.c (Ffont_match_p): Don't use `iff' in docstring.
15097
150982008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
15099
15100 * macfns.c (Fx_create_frame): Make a copy of frame parameters
15101 because the original parameters are in pure storage now.
15102 (mac_window): Remove unused params. Update callers.
15103
151042008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
15105
15106 * lread.c (substitute_object_recurse): Use lower-level primitives.
15107 Don't signal errors when traversing sub-char-tables.
15108 Don't loop over all the possible characters when traversing char-tables.
15109
15110 * print.c (print_preprocess): Add sub-char-tables to the print-table,
15111 just like we do in print.c.
15112
151132008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
15114
15115 * minibuf.c (Ftry_completion): Remove code left over from when we used
15116 scmp instead of Fcompare_strings.
15117
151182008-05-04 Juanma Barranquero <lekktu@gmail.com>
15119
15120 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
15121
151222008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15123
15124 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
15125 Create bitmap context in native byte order.
15126
15127 * macterm.c (XDrawLine)
15128 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
15129 context in native byte order.
15130
151312008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15132
15133 * config.in: Regenerate.
15134
15135 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
15136 New definitions for Image I/O support.
15137 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
15138 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
15139 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15140 (mac_data_provider_release_data, image_load_image_io)
15141 [USE_MAC_IMAGE_IO]: New functions.
15142 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
15143 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
15144 (init_image_func_pointer) [MAC_OSX]: Remove function.
15145 (image_load_quartz2d) [MAC_OSX]: Check availability of
15146 CGImageCreateWithPNGDataProvider at compile time.
15147 Use lowercase `false' for boolean constant.
15148 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
15149 Use image_load_image_io.
15150 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
15151 Don't check MyCGImageCreateWithPNGDataProvider.
15152 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
15153 Don't call init_image_func_pointer.
15154
15155 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
15156
15157 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
15158 Make variable non-static.
15159 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
15160 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
15161
15162 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
15163 (RED_FROM_ULONG): Mask off higher bits.
15164 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
15165
15166 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
15167 Include AvailabilityMacros.h.
15168 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
15169 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
15170
151712008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
15172
15173 * chartab.c (Fset_char_table_range): If range is t, really set all
15174 chars to that value.
15175
151762008-05-03 Eli Zaretskii <eliz@gnu.org>
15177
15178 * dired.c (Ffile_attributes): Don't allow the device number become
15179 negative.
15180
151812008-05-02 Daiki Ueno <ueno@unixuser.org>
15182
15183 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
15184
151852008-05-02 Juri Linkov <juri@jurta.org>
15186
15187 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
15188 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
15189 DEFAULT argument as a list of default values in docstrings.
15190
151912008-05-01 Chong Yidong <cyd@stupidchicken.com>
15192
15193 * puresize.h (BASE_PURESIZE): Increase to 1210000.
15194
151952008-05-01 Martin Rudalics <rudalics@gmx.at>
15196
15197 * dispnew.c (change_frame_size_1): Preserve small windows when
15198 shrinking frames by calling set_window_height|width with third
15199 arg 2.
15200
15201 * window.h (struct window): Replace field too_small_ok by field
15202 resize_proportionally.
15203
15204 * window.c (make_window): Initialize resize_proportionally.
15205 (enlarge_window): Temporarily set resize_proportionally to make
15206 sure that shrink_windows does scale the window proportionally.
15207 (shrink_windows): When window has resize_proportionally set try
15208 to shrink it proportionally by stealing from other windows.
15209 (struct saved_window, Fset_window_configuration)
15210 (compare_window_configurations): Handle resize_proportionally.
15211 (WINDOW_TOTAL_SIZE): New macro.
15212 (window_min_size, shrink_windows, size_window): Use it.
15213 (check_min_window_sizes): Remove. Invalid values of
15214 window-min-height|width are handled by window_min_size_2 now.
15215 (size_window, Fsplit_window, enlarge_window)
15216 (adjust_window_trailing_edge, grow_mini_window): Don't call
15217 check_min_window_sizes.
15218 (window_min_size_2, window_min_size_1, window_min_size):
15219 New argument safe_p for retrieving "safe" minimum sizes.
15220 (Fdisplay_buffer, Fsplit_window, enlarge_window)
15221 (adjust_window_trailing_edge, grow_mini_window):
15222 Adjust arguments of window_min_size... functions.
15223 (shrink_windows): Argument min_size removed. New argument
15224 safe_p allows shrinking windows to their safe minimum sizes.
15225 Calculate minimum size and decide whether a window shall be
15226 deleted for each window individually.
15227 (size_window): When nodelete_p equals 2, tell shrink_windows to
15228 delete windows only if their new minimum size is no more safe.
15229 (shrink_window_lowest_first): Call window_min_size_1 to make
15230 sure to preserve modeline of bottom-most window when resizing
15231 the minibuffer.
15232 (Fset_window_configuration, Fcurrent_window_configuration)
15233 (compare_window_configurations): Do not handle
15234 window-min-height|width any more.
15235 (syms_of_window): Clarify window-min-height|width doc-strings.
15236
152372008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
15238
15239 * dired.c (file_name_completion): Fix up the encoding/decoding issue
15240 some more. Copy some of the code from Ftry_completions.
15241 Remove special case code that dates back to initial revision when the
15242 slash was only added when necessary and that can't trigger nowadays.
15243
152442008-04-27 Kenichi Handa <handa@m17n.org>
15245
15246 * font.c (font_prop_validate): Signal `error' instead of `font'.
15247
152482008-04-29 Jason Rumney <jasonr@gnu.org>
15249
15250 * w32fns.c (Fw32_battery_status): New defun.
15251 (syms_of_w32fns): Defsubr it.
15252
152532008-04-28 Andreas Schwab <schwab@suse.de>
15254
15255 * dired.c (file_name_completion): Fix another mixing of encoded
15256 and decoded names.
15257
152582008-04-28 Juanma Barranquero <lekktu@gmail.com>
15259
15260 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
15261
152622008-04-27 Juanma Barranquero <lekktu@gmail.com>
15263
15264 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
15265
152662008-04-27 Andreas Schwab <schwab@suse.de>
15267
15268 * dired.c (file_name_completion): Fix inappropriate mixing of
15269 encoded and decoded names.
15270
15271 * xterm.c (XTread_socket): Fix use of uninitialized variable.
15272
15273 * puresize.h (BASE_PURESIZE): Increase to 1200000.
15274
152752008-04-26 Eli Zaretskii <eliz@gnu.org>
15276
15277 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
15278 2008-03-31, it's not needed anymore with `struct stat' definition
15279 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
15280 for the same reasons.
15281
152822008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
15283
15284 * m/sparc.h: Additional redefinitions for GNU/Linux.
15285
152862008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15287
15288 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
15289 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
15290 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
15291 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
15292 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15293 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
15294 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15295 Likewise.
15296
15297 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
15298 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
15299 (mac_ax_number_of_characters): Add externs.
15300 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
15301 [USE_MAC_TSM]: Likewise.
15302 (mac_handle_text_input_event) [MAC_OSX]:
15303 Handle kEventTextInputOffsetToPos for no active input area case.
15304 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15305 (mac_handle_document_access_event)
15306 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
15307 (install_application_handler) [MAC_OSX]: Register handlers for
15308 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
15309 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
15310 Register mac_handle_document_access_event.
15311
15312 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
15313 Make functions non-static.
15314
153152008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
15316
15317 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
15318 (read_file_name_completion_ignore_case, insert_default_directory)
15319 (Qdefault_directory): Move to minibuffer.el.
15320 (Fread_file_name): Call the new `read-file-name' instead.
15321
153222008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15323
15324 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
15325 Make function non-static.
15326 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
15327 Remove function.
15328 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15329 Move to mactoolbox.c.
15330 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
15331
15332 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
15333 (mac_rect_make): New macro.
15334
15335 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
15336 instead of float.
15337 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15338 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
15339 (XSetBackground) [USE_CG_DRAWING]: Likewise.
15340 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
15341 CGRectMake.
15342 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
15343 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
15344 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
15345 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15346 instead of WindowRef in argument type.
15347 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
15348 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
15349 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
15350 instead of DISPLAY. All uses changed.
15351 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
15352 (x_calc_absolute_position): Simplify so as not to use
15353 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
15354
15355 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
15356 instead of WindowRef in argument type.
15357 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
15358 [TARGET_API_MAC_CARBON]: Remove externs.
15359 (create_apple_event, mac_event_parameters_to_lisp)
15360 [TARGET_API_MAC_CARBON]: Add externs.
15361
15362 * mactoolbox.c (Vmac_ts_script_language_on_focus)
15363 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
15364 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
15365 is clicked.
15366 (x_activate_menubar): Remove extern for saved_menu_event_location.
15367 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
15368 Move from mac.c.
15369
153702008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15371
15372 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
15373 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
15374
153752008-04-23 Jason Rumney <jasonr@gnu.org>
15376
15377 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
15378 attributes only for local files.
15379
15380 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
15381 default to Qlocal.
15382
153832008-04-22 Juri Linkov <juri@jurta.org>
15384
15385 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
15386 read-buffer-to-switch instead of using the letter "B".
15387
153882008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
15389
15390 * fileio.c (Qdefault_directory): New variable.
15391 (Fread_file_name): Use it to pass `dir' to the completion functions.
15392
153932008-04-20 Chong Yidong <cyd@stupidchicken.com>
15394
15395 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
15396
153972008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
15398
15399 * keyboard.c (Vpre_help_message): Remove.
15400 (show_help_echo): Remove default C code.
15401
15402 * dired.c (directory_files_internal, file_name_completion):
15403 Only call ENCODE_FILE if the string is indeed decoded.
15404
154052008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15406
15407 * Makefile.in (TOOLKIT_DEFINES): Remove.
15408 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
15409
154102008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15411
15412 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
15413 (mactoolbox.o): New target.
15414
15415 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
15416 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
15417
15418 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
15419 Use mac_set_frame_window_background instead of XSetWindowBackground.
15420 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
15421 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
15422 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
15423 instead of SetWindowTitleWithCFString.
15424 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
15425 Move function to mactoolbox.c.
15426 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
15427 Use mac_set_window_modified instead of SetWindowModified.
15428 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
15429 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
15430 (Fx_focus_frame): Use mac_front_non_floating_window instead of
15431 FrontNonFloatingWindow. Use mac_activate_window instead of
15432 ActivateWindow. Use mac_active_non_floating_window instead of
15433 ActiveNonFloatingWindow.
15434 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
15435 Use mac_show_hourglass and mac_hide_hourglass.
15436 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
15437 instead of GetGlobalMouse.
15438 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
15439 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
15440 Use mac_bring_window_to_front instead of BringToFront.
15441 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
15442 mactoolbox.c.
15443 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
15444 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
15445 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
15446 mactoolbox.c.
15447
15448 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
15449 (XtPointer): Move typedef from macmenu.c.
15450 (enum button_type): Move enum from macmenu.c.
15451 (widget_value): Move typedef from macmenu.c.
15452 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
15453 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15454 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15455 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15456 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15457 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15458 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15459 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
15460 (Selection): Move typedef from macselect.c.
15461 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
15462 macterm.c.
15463 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
15464 (mac_is_window_collapsed, mac_bring_window_to_front)
15465 (mac_send_window_behind, mac_hide_window, mac_show_window)
15466 (mac_collapse_window, mac_front_non_floating_window)
15467 (mac_active_non_floating_window, mac_activate_window)
15468 (mac_move_window_structure, mac_move_window, mac_size_window)
15469 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
15470
15471 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
15472 (enum mac_menu_kind): Move enum to mactoolbox.c.
15473 (min_menu_id): Move variable to mactoolbox.c.
15474 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
15475 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
15476 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
15477 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
15478 [TARGET_API_MAC_CARBON]: Likewise.
15479 (XtPointer): Move typedef to macgui.h.
15480 (enum button_type): Move enum to macgui.h.
15481 (widget_value): Move typedef to macgui.h.
15482 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
15483 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
15484 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
15485 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
15486 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
15487 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
15488 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
15489 (popup_activated_flag): Make variable non-static.
15490 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
15491 (add_menu_item, fill_menu, dispose_menus):
15492 Move functions to mactoolbox.c.
15493 (restore_show_help_function, menu_target_item_handler)
15494 (install_menu_target_item_handler, mac_handle_dialog_event)
15495 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
15496 [TARGET_API_MAC_CARBON]: Likewise.
15497 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
15498 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15499 (find_and_call_menu_selection, name_is_separator): Make function
15500 non-static.
15501 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
15502 to mactoolbox.c.
15503 (set_frame_menubar): Don't call install_menu_quit_handler.
15504 (menu_item_selection): New variable.
15505 (mac_menu_show): Use create_and_show_popup_menu.
15506 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
15507 selection but set variable menu_item_selection. All uses changed.
15508 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
15509 Call install_menu_quit_handler. Move to mactoolbox.c.
15510
15511 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
15512 (Selection): Move typedef to macgui.h.
15513 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
15514 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
15515 Make variables non-static.
15516 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15517 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
15518 Make functions non-static.
15519 (Vmac_service_selection) [MAC_OSX]: Likewise.
15520 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
15521 (mac_valid_selection_target_p, mac_clear_selection)
15522 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15523 (mac_put_selection_value, mac_selection_has_target_p)
15524 (mac_get_selection_value, mac_get_selection_target_list)
15525 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
15526 Move functions to mactoolbox.c.
15527 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
15528 Likewise.
15529 (copy_scrap_flavor_data, mac_handle_service_event)
15530 (install_service_handler) [MAC_OSX]: Likewise.
15531 (syms_of_macselect) <Vmac_dnd_known_types>:
15532 Use mac_dnd_default_known_types.
15533
15534 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
15535 Move to mactoolbox.c.
15536 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
15537 (Fx_selection_owner_p): Add EXFUN.
15538 (install_window_handler, remove_window_handler, XSetWindowBackground):
15539 Remove externs.
15540 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
15541 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
15542 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
15543 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
15544 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
15545 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
15546 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
15547 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
15548 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
15549 (create_and_show_popup_menu, mac_get_selection_from_symbol)
15550 (mac_valid_selection_target_p, mac_clear_selection)
15551 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
15552 (mac_put_selection_value, mac_selection_has_target_p)
15553 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
15554 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
15555 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
15556 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
15557 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
15558 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
15559 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
15560 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15561 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
15562
15563 * mactoolbox.c: New file.
15564
155652008-04-18 Jason Rumney <jasonr@gnu.org>
15566
15567 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
15568
155692008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
15570
15571 * character.c (Fmultibyte_char_to_unibyte):
15572 Return latin1 chars unchanged.
15573
15574 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
15575 relocated if it points to `name'.
15576
155772008-04-17 Kenichi Handa <handa@m17n.org>
15578
15579 * data.c (Faset): Allow setting a multibyte character in an
15580 ASCII-only unibyte string.
15581
15582 * lisp.h (STRING_SET_MULTIBYTE): New macro.
15583
155842008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
15585
15586 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
15587 done in config.h.
15588
155892008-04-16 Juanma Barranquero <lekktu@gmail.com>
15590
15591 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
15592 (Fchar_direction): Add usage in the docstring.
15593
155942008-04-15 Chong Yidong <cyd@stupidchicken.com>
15595
15596 * keyboard.c (read_key_sequence): Remove always-true checks.
15597
155982008-04-14 Jason Rumney <jasonr@gnu.org>
15599
15600 * w32font.c (w32font_open_internal): Set max_bounds.descent in
15601 compatibility struct, for better underline positioning.
15602
156032008-04-13 David Hansen <david.hansen@gmx.net>
15604
15605 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
15606 string.
15607
156082008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
15609
15610 * m/hp800.h (XUINT, XSET): Remove.
15611
156122008-04-12 Juanma Barranquero <lekktu@gmail.com>
15613
15614 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
15615 previous change.
15616
156172008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
15618
15619 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
15620 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
15621
156222008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15623
15624 * keymap.h (map_keymap_canonical): Declare.
15625 * xmenu.c (single_keymap_panes): Use it.
15626
156272008-04-11 Glenn Morris <rgm@gnu.org>
15628
15629 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
15630 set the target's value to that of the alias.
15631
156322008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
15633
15634 * term.c (set_tty_color_mode): Left over typo.
15635
156362008-04-10 Michael Albinus <michael.albinus@gmx.de>
15637
15638 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
15639 only after check for file name handler functions. Signal, when
15640 native functionality is not supported.
15641 (syms_of_fileio): Declare it unconditionally.
15642
156432008-04-10 Jason Rumney <jasonr@gnu.org>
15644
15645 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
15646 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
15647
15648 * w32.c (logon_network_drive): Also logon to remote drives that
15649 are mapped to drive letters.
15650
156512008-04-10 Glenn Morris <rgm@gnu.org>
15652
15653 * xdisp.c (truncate-partial-width-windows): Doc fix.
15654
156552008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
15656
15657 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
15658 Move functions to minibuffer.el.
15659 (syms_of_fileio): Don't declare them.
15660
156612008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15662
15663 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
15664 (syms_of_minibuf): Remove its initialization.
15665
15666 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
15667
156682008-04-09 Juanma Barranquero <lekktu@gmail.com>
15669
15670 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
15671
156722008-04-09 Jason Rumney <jasonr@gnu.org>
15673
15674 * makefile.w32-in (distclean): Delete makefile too.
15675 (maintainer-clean): New target.
15676
15677 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
15678
15679 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
15680 for new font backend and composite cases.
15681
156822008-04-09 Jan Djärv <jan.h.d@swipnet.se>
15683
15684 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
15685 Most of the code moved to run_timers.
15686 (do_pending_atimers): Call run_timers.
15687 (run_timers): New function.
15688
15689 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
15690 run atimers.
15691
15692 * process.c (wait_reading_process_output): The same as above.
15693
156942008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
15695
15696 * minibuf.c (last_exact_completion): Remove variable.
15697 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
15698 (complete_and_exit_1, complete_and_exit_2)
15699 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
15700 (Fdisplay_completion_list, display_completion_list_1)
15701 (Fminibuffer_completion_help, Fself_insert_and_exit)
15702 (Fexit_minibuffer, Fminibuffer_message): Move functions to
15703 minibuffer.el.
15704 (syms_of_minibuf): Remove corresponding initializations.
15705
15706 * keyboard.c (Qdeactivate_mark): New var.
15707 (command_loop_1): Use it to call `deactivate-mark'.
15708 (syms_of_keyboard): Initialize it.
15709
15710 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
15711 to another frame.
15712 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
15713 Don't call set_tty_color_mode.
15714 (store_frame_param): Reset previous_frame rather than call
15715 set_tty_color_mode.
15716 * term.c (set_tty_color_mode): Rewrite.
15717 * dispextern.h (set_tty_color_mode): New type.
15718 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
15719
157202008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
15721
15722 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
15723 for generic chars, which do not exist any more in emacs-unicode.
15724
157252008-04-08 Michael Albinus <michael.albinus@gmx.de>
15726
15727 * coding.c (detect_coding_emacs_mule)
15728 (Ffind_operation_coding_system): Fix typo.
15729
157302008-04-08 Jason Rumney <jasonr@gnu.org>
15731
15732 * w32uniscribe.c (SNAME): Extract only symbol name.
15733
15734 * w32font.h (struct w32_metric_cache): New struct.
15735 (w32font_info): Use it.
15736 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
15737 (CACHE_BLOCKSIZE): New constants.
15738
15739 * w32font.c (Qja, Qko, Qzh): New symbols.
15740 (syms_of_w32font): Initialise them.
15741 (font_matches_spec): Use them to filter by language.
15742 (recompute_cached_metrics): Remove function.
15743 (compute_metrics, clear_cached_metrics): New functions.
15744 (w32font_encode_char): Use them to manage metric cache.
15745 (w32font_text_extents): Cache metrics for all glyphs on demand.
15746 Delay converting glyph indices to WORD until needed.
15747 (w32font_open_internal): Initialize metric cache to empty.
15748 (registry_to_w32_charset): Charset should always be a symbol.
15749 (fill_in_logfont, list_all_matching_fonts): Family should
15750 always be a symbol.
15751
157522008-04-06 Jason Rumney <jasonr@gnu.org>
15753
15754 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
15755 Give up if glyph indices not supported. Use uniscribe obtained
15756 ABC widths for individual metrics. Map glyph clusters back to
15757 characters using fClusterStart flag. Return number of glyphs
15758 produced, not chars processed.
15759 (uniscribe_shape): Map char at FROM to current glyph.
15760
157612008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15762
15763 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
15764 Use SetMenuItemHierarchicalMenu.
15765
157662008-04-05 Jason Rumney <jasonr@gnu.org>
15767
15768 * image.c (pbm_load): Allow color values up to 65535.
15769 Throw an error if max_color_idx is outside the supported range.
15770 Report an error when image size is invalid.
15771 Read two bytes at a time when raw images have max_color_idx above 255.
15772
aac0c6e3
MR
157732008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
15774
15775 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
15776 append "CCL: Quitted" when the CCL program is quitted.
15777 (setup_ccl_program): Initialize ccl->quit_silently to zero.
15778
15779 * ccl.h (struct ccl_program): New member quit_silently.
15780
157812008-04-05 Chong Yidong <cyd@stupidchicken.com>
15782
15783 * search.c (compile_pattern_1): Treat non-nil and non-string of
15784 search-spaces-regexp as nil.
15785
15786 * minibuf.c (Fassoc_string): Tweak docstring.
15787
157882008-04-05 Eli Zaretskii <eliz@gnu.org>
15789
15790 * dired.c (Ffile_attributes): Support inode numbers wider than 32
15791 bits. Remove ugly WINDOWSNT-specific kludge introduced on
15792 2008-03-14 to force inode be positive.
15793
15794 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
15795 _S_* ones, since we now use our own sys/stat.h.
15796 (stat, fstat): Don't mangle the inode number.
15797 (init_user_info): Don't restrict UID and GID to 0-60000 range.
15798
157992008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
15800
15801 * frame.h (struct frame): Give one more bit to `visible' since we use
15802 values larger than 1 to indicate obscured frames on ttys.
15803
15804 * keymap.c (Qkeymap_canonicalize): New var.
15805 (Fmap_keymap_internal): New fun.
15806 (describe_map): Use keymap-canonicalize.
15807
15808 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
15809 (Fundo_boundary): Set them.
15810 (syms_of_undo): Initialize them.
15811 (record_point): Use them instead of last_point_position*.
15812 (last_undo_buffer): Change type.
15813
158142008-04-04 Jason Rumney <jasonr@gnu.org>
15815
15816 * w32font.c (w32font_text_extents): Use font's ascent and descent.
15817 (recompute_cached_metrics): Don't set ascent and descent per char.
15818
15819 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
15820 (uniscribe_check_otf): Add GC protection before consing.
15821 Rearrange loop for counting features.
15822
158232008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
15824
15825 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
15826 buffer with byte-size of source buffer.
15827
158282008-04-03 Chong Yidong <cyd@stupidchicken.com>
15829
15830 * callint.c (Fcall_interactively): Handle temporary region even
15831 when shift-select-mode is off.
15832
158332008-04-03 Jason Rumney <jasonr@gnu.org>
15834
15835 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
15836
158372008-04-03 Kenichi Handa <handa@m17n.org>
15838
15839 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
15840 (CATEGORY_MASK_UTF_16): Likewise.
15841 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
15842 binary file.
15843 (detect_coding): Add null-byte detection for a binary file.
15844 (detect_coding_system): Likewise.
15845
158462008-04-03 Jason Rumney <jasonr@gnu.org>
15847
15848 * w32uniscribe.c: New file.
15849
15850 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
15851
15852 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
15853
15854 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
15855 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
15856 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
15857 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
15858 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
15859 (Qphonetic): New symbols.
15860 (syms_of_w32font): Initialize them.
15861 (font_supported_scripts): Use them.
15862 (w32font_list_family): List all charsets.
15863 (w32font_text_extents, recompute_cached_metrics): Fix metric
15864 calculations.
15865 (w32_enumfont_pattern_entity): Make full_type a DWORD.
15866 Give opentype fonts their own format.
15867 (font_matches_spec): New arguments backend and logfont.
15868 Handle :otf spec for uniscribe backend.
15869 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
15870 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
15871
15872 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
15873 font backend.
15874 (globals_of_w32fns): Initialize uniscribe font backend.
15875
15876 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
15877 dependencies.
15878 (w32uniscribe.$(O)): New file to build.
15879 (FONT_OBJ): Include w32uniscribe.$(O).
15880 (LIBS): Add uniscribe libraries.
15881
15882 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
15883
158842008-04-02 Chong Yidong <cyd@stupidchicken.com>
15885
15886 * callint.c (Vshift_select_mode): New var.
15887 (Finteractive): Document new ^ spec.
15888 (Fcall_interactively): Call handle-shift-selection if the ^ spec
15889 is present.
15890
15891 * keyboard.c (Vthis_command_keys_shift_translated): New var.
15892 (command_loop_1): Avoid running the direct display versions of
15893 forward-char and backward-char if shift-selection may occur.
15894 (read_key_sequence): Set Vthis_command_keys_shift_translated if
15895 shift-translation takes place.
15896
15897 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
15898 avoid clobbering by define-minor-mode.
15899
15900 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
15901 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
15902
15903 * syntax.c (Fforward_word): Add ^ interactive spec.
15904
15905 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
15906 (Fscroll_right): Add ^ interactive spec.
15907
159082008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
15909
15910 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
15911
15912 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
15913
15914 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
15915
159162008-03-31 Juri Linkov <juri@jurta.org>
15917
15918 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
15919
159202008-03-30 Jan Djärv <jan.h.d@swipnet.se>
15921
15922 * gtkutil.c (xg_set_geometry): Fix indentation.
15923 (xg_resize_outer_widget): Remove.
15924 (x_wm_size_hint_off): Fix indentation.
15925 (xg_frame_set_char_size): Call flush_and_sync after
15926 gtk_window_resize.
15927 (x_wm_set_size_hint): Pass NULL as geometry window to
15928 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
15929 Add menu bar and tool bar height to base height.
15930 (xg_update_frame_menubar, free_frame_menubar)
15931 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
15932 (update_frame_tool_bar, free_frame_tool_bar):
15933 Change xg_resize_outer_widget to xg_frame_set_char_size.
15934
159352008-03-30 Michael Albinus <michael.albinus@gmx.de>
15936
15937 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
15938 (Fdbus_call_method): New parameter TIMEOUT.
15939 (dbus-send-signal): Optimize UNGCPRO call.
15940
159412008-03-29 Juri Linkov <juri@jurta.org>
15942
15943 * window.c (Fdisplay_buffer): Move call to
15944 Vsplit_window_preferred_function out of conditions that check
15945 if window is eligible for vertical splitting.
15946 When Vsplit_window_preferred_function is non-nil, call it and use
15947 its non-nil return value as window. Otherwise, continue doing
15948 vertical splitting using Fsplit_window with arg horflag=nil.
15949 (syms_of_window) <Vsplit_window_preferred_function>: Change the
15950 default value from `split-window' to nil.
15951
159522008-03-29 Juri Linkov <juri@jurta.org>
15953
15954 * callint.c (Fcall_interactively): Revert 2008-03-16 change
15955 for interactive code letters 'b' and 'B'.
15956
159572008-03-29 Eli Zaretskii <eliz@gnu.org>
15958
15959 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
15960 multibyte string.
15961
159622008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
15963
15964 * keyboard.c (pending_funcalls): New var.
15965 (timer_check): Run it.
15966 (syms_of_keyboard): Initialize it.
15967 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
15968 (Vdelete_terminal_functions): New vars.
15969 (syms_of_terminal): Initialize them.
15970 (Fdelete_terminal): Run delete-terminal-functions.
15971 * xdisp.c (safe_eval): Rewrite.
15972 (safe_call2): New fun.
15973 * frame.c (Qdelete_frame_functions): New var.
15974 (syms_of_frame): Initialize it.
15975 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
15976 * lisp.h (safe_call2, pending_funcalls): Declare.
15977
159782008-03-28 Andreas Schwab <schwab@suse.de>
15979
15980 * indent.c (Fmove_to_column): Move declaration before statements.
15981
159822008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
15983
15984 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
15985 (struct frame): Use bit fields for boolean vars.
15986
15987 * process.c (server_accept_connection): Simplify naming.
15988 (emacs_get_tty_pgrp): Use SDATA.
15989
15990 * coding.c (decode_coding_object): Fix last change.
15991
159922008-03-27 Jason Rumney <jasonr@gnu.org>
15993
15994 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
15995
159962008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
15997
15998 * charset.c (Fdefine_charset_internal): Change the way of
15999 registering charsets in Vcharset_order_list.
16000 (syms_of_charset): Make the charset `eight-bit' supplementary.
16001
160022008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
16003
16004 * regex.c (EXTEND_BUFFER): Change order of pointer addition
16005 operations, to avoid having the difference between pointers
16006 overflow.
16007
160082008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
16009
16010 * indent.c (check_display_width): New fun.
16011 (scan_for_column): Use it.
16012
16013 * data.c (syms_of_data): Mark most-positive-fixnum and
16014 most-negative-fixnum as constants.
16015
16016 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
16017
16018 * indent.c (scan_for_column): Extract from current_column_1.
16019 Merge with the same code from Fmove_to_column.
16020 (current_column_1, Fmove_to_column): Use it.
16021
160222008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
16023
16024 * keymap.c (map_keymap_internal): New fun.
16025 (map_keymap): Use it.
16026 (Fmap_keymap_internal): New fun.
16027 (Fmap_keymap): Remove left-out test from before make_save_value.
16028
16029 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
16030
16031 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
16032 Use XCAR/XCDR.
16033
16034 * process.h (struct Lisp_Process): Remove filter_multibyte.
16035 * process.c (QCfilter_multibyte): Remove.
16036 (setup_process_coding_systems): Don't use filter_multibyte.
16037 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
16038 (read_process_output): Don't adjust multibyteness to filter_multibyte.
16039 (Fset_process_filter_multibyte): Change the coding-system to
16040 approximate the previous behavior.
16041 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
16042 coding-system.
16043
16044 * coding.c (decode_coding_object): When not decoding into a buffer,
16045 obey the coding system's preference of (uni|multi)byte.
16046
160472008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
16048
16049 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
16050 every char is changed and has a different byte-length.
16051 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
16052 Fix int -> EMACS_INT.
16053
160542008-03-23 David Hansen <david.hansen@gmx.net>
16055
16056 * dbusbind.c (xd_read_message): Remove extra copying of message
16057 strings. Check for NULL `interface' or `member'.
16058
160592008-03-22 Eli Zaretskii <eliz@gnu.org>
16060
16061 * w32.c (readdir): If FindFirstFile/FindNextFile return in
16062 cFileName a file name that includes `?' characters, use the 8+3
16063 alias in cAlternateFileName instead.
16064
160652008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
16066
16067 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
16068
160692008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16070
16071 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
16072 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
16073 work on current_buffer only instead (that was already the case
16074 for some of the code anyway).
16075 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
16076 (temp_set_point, temp_set_point_both): Use EMACS_INT.
16077 (SET_PT, SET_PT_BOTH): Adjust.
16078 * intervals.h (set_point, temp_set_point, set_point_both)
16079 (temp_set_point_both): Remove redundant declarations.
16080
160812008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
16082
16083 * fileio.c (Finsert_file_contents):
16084 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
16085 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
16086 when buffer != current_buffer anyway.
16087
160882008-03-20 Andreas Schwab <schwab@suse.de>
16089
16090 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
16091 as default.
16092
160932008-03-19 Jason Rumney <jasonr@gnu.org>
16094
16095 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
16096 (syms_of_w32fns): Initialize them.
16097 (HOURGLASS_ID): New constant.
16098 (x_window_to_frame): Don't check hourglass_window.
16099 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
16100 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
16101 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
16102 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
16103 Only change the cursor if hourglass is not active.
16104 (Fx_create_frame): Initialize frame's current_cursor.
16105 (hourglass_atimer): Remove.
16106 (hourglass_started): New function.
16107 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
16108 (show_hourglass): Adapt to w32, changing argument to frame.
16109
16110 * w32term.h (struct w32_output): Remove hourglass_window.
16111 Add current_cursor.
16112
16113 * eval.c (call_debugger, Fsignal):
16114 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
16115 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
16116 (Fexecute_extended_command, cancel_hourglass_unwind):
16117 * minibuf.c (read_minibuf):
16118 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
16119
161202008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
16121
16122 * window.c (run_funs): New fun.
16123 (run_window_configuration_change_hook): Use it to run the buffer-local
16124 and the global part of the hook.
16125
16126 * xdisp.c (format_mode_line_unwind_data): Add window argument.
16127 (unwind_format_mode_line): Restore selected window.
16128 (x_consider_frame_title, Fformat_mode_line): Set selected window.
16129
161302008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
16131
16132 * editfns.c (Fchar_equal): Check they are valid characters.
16133
16134 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
16135
161362008-03-17 Andreas Schwab <schwab@suse.de>
16137
16138 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
16139 against a charset.
16140
16141 * lisp.h (Fbuffer_list): Declare.
16142
161432008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 16144
aac0c6e3
MR
16145 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
16146 handlebox_widget is != 0.
16147
161482008-03-16 Juri Linkov <juri@jurta.org>
16149
16150 * callint.c (Fcall_interactively): For interactive code letters
16151 'b' and 'B' put the buffer list into the list of default "future"
16152 values of the minibuffer.
16153
161542008-03-16 Andreas Schwab <schwab@suse.de>
16155
16156 * keyboard.c (read_key_sequence): Fix downcasing of letters with
16157 modifiers.
16158
16159 * regex.c (re_match_2_internal): Correct matching of a charset
16160 against latin-1 characters.
16161
161622008-03-16 Kenichi Handa <handa@m17n.org>
16163
16164 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
16165 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
16166 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
16167 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
16168 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
16169 CHAR_STRING_ADVANCE.
16170 (produce_chars): Fix for the case that the source and the
16171 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
16172 instead of CHAR_STRING_ADVANCE.
16173 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
16174 STRING_CHAR_ADVANCE.
16175
161762008-03-15 Andreas Schwab <schwab@suse.de>
16177
16178 * regex.c (re_match_2_internal): Correct matching of eight bit
16179 characters in unibyte strings.
16180
161812008-03-15 Martin Rudalics <rudalics@gmx.at>
16182
16183 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
16184 at end of range when it coincides with the end of the buffer.
16185
161862008-03-14 Eli Zaretskii <eliz@gnu.org>
16187
16188 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
16189
16190 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
16191
161922008-03-14 Jason Rumney <jasonr@gnu.org>
16193
16194 * editfns.c (initial_tz): New variable.
16195 (syms_of_editfns): Initialize it.
16196 (Fset_time_zone_rule): Set it when first called.
16197 Use it when TZSTRING is nil.
16198
16199 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
16200 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
16201 (monitor_from_point_fn, get_monitor_info_fn): New globals.
16202 (globals_of_w32fns): Initialize them.
16203 (compute_tip_xy): Use them to position tooltips.
16204
162052008-03-14 Glenn Morris <rgm@gnu.org>
16206
16207 * emacs.c (main): Revert previous change.
16208 (standard_args): Revert -internal-script back to -scriptload,
16209 and remove the long-option form.
16210
162112008-03-13 Glenn Morris <rgm@gnu.org>
16212
16213 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
16214 Remove option -enable-font-backend.
16215
162162008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
16217
16218 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
16219
162202008-03-11 Jan Djärv <jan.h.d@swipnet.se>
16221
16222 * xterm.c (x_connection_closed): For GTK: If this is the last
16223 terminal just exit without closing the display.
16224
162252008-03-11 Jason Rumney <jasonr@gnu.org>
16226
16227 * w32font.c (w32font_full_name): Use floor to round.
16228
f0131492 162292008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
16230
16231 * sound.c (alsa_configure): Declare vol at beginning of block.
16232
16233 * fontset.c (Ffontset_info): Remove extra semicolon.
16234
162352008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
16236
16237 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
16238 size of resulting string.
16239
162402008-03-10 Jason Rumney <jasonr@gnu.org>
16241
16242 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
16243
162442008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16245
16246 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
16247 Don't pretend as if characters with display property haven't been
16248 consumed for string-replacing-string case.
16249
162502008-03-08 Kim F. Storm <storm@cua.dk>
16251
16252 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
16253 (get_next_display_element, next_element_from_string)
16254 (next_element_from_ellipsis, next_element_from_buffer): Use it.
16255
162562008-03-08 Andreas Schwab <schwab@suse.de>
16257
16258 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
16259
162602008-03-06 Jason Rumney <jasonr@gnu.org>
16261
16262 * w32font.c (w32_registry): Take font_type argument. Use ANSI
16263 when charset not specified. Only translate ANSI to unicode when
16264 font_type is truetype.
16265 (w32font_coverage_ok): New function.
16266 (add_font_entity_to_list): Use it to filter unsuitable fonts.
16267
162682008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
16269
16270 * lread.c (Fread_char): Resolve modifiers.
16271 (Fread_char_exclusive): Likewise.
16272
16273 * character.c (char_resolve_modifier_mask): New function.
16274 (char_string): Use char_resolve_modifier_mask.
16275 (Fchar_resolve_modifiers): New function.
16276 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
16277 function.
16278
162792008-03-04 Jason Rumney <jasonr@gnu.org>
16280
16281 * makefile.w32-in: Always include w32font.c in the build.
16282 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
16283
162842008-03-04 Andreas Schwab <schwab@suse.de>
16285
16286 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
16287 (versionclean): Likewise.
16288
162892008-03-04 Juanma Barranquero <lekktu@gmail.com>
16290
16291 * .cvsignore: Add oo.
16292
162932008-03-03 Andreas Schwab <schwab@suse.de>
16294
16295 * coding.c (decode_coding_object): Inhibit gap shrinking while
16296 decoding in place.
16297
162982008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
16299
16300 * w32term.c: Remove unused include "gnu.h".
16301 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
16302
16303 * gnu.h: Rename to ...
16304 * emacs-icon.h: ... this.
16305 * xterm.c: Use emacs-icon.h instead of gnu.h.
16306 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
16307
163082008-03-03 Juanma Barranquero <lekktu@gmail.com>
16309
16310 * w32font.c: Include math.h.
16311
163122008-03-03 Jason Rumney <jasonr@gnu.org>
16313
16314 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
16315 Compute options separately.
16316 (w32font_open_internal): Set glyph_idx before caching metrics.
16317
16318 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
16319 Define if system headers don't.
16320 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
16321 (w32font_encode_char): Don't declare here.
16322
16323 * w32font.c (Quniscribe, QCformat): New symbols.
16324 (syms_of_w32font): Define them.
16325 (w32font_has_char): Indicate uncertainty.
16326 (w32font_encode_char): Encode as glyph point. Make static.
16327 (recompute_cached_metrics): New function.
16328 (w32font_open_internal): Use it. Set font to use glyph points
16329 initially. Set format based on type of font.
16330 (w32font_text_extents, w32font_draw): Optionally use glyph points.
16331 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
16332 on it. Set format based on information available here.
16333 (add_font_entity_to_list): Identify backend based on opentype_only.
16334
163352008-03-02 Andreas Schwab <schwab@suse.de>
16336
16337 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
16338
16339 * coding.c (decode_coding_big5, produce_chars):
16340 Fix typos in last change.
16341
163422008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
16343
16344 * gnu.h: New icon.
16345
163462008-03-02 Kenichi Handa <handa@m17n.org>
16347
16348 * coding.c (decode_coding_utf_8): When eol-type of CODING is
16349 `dos', don't decode '\r' if that is the last in the source.
16350 (decode_coding_utf_16, decode_coding_emacs_mule)
16351 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16352 (decode_coding_raw_text, decode_coding_charset): Likewise.
16353 (produce_chars): Don't decode EOL here. Use EMACS_INT.
16354
163552008-03-01 Jason Rumney <jasonr@gnu.org>
16356
16357 * w32font.c (w32font_full_name): Report point size for scalable fonts.
16358
163592008-03-01 Kim F. Storm <storm@cua.dk>
16360
16361 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
16362
163632008-03-01 Jason Rumney <jasonr@gnu.org>
16364
16365 * w32font.c (w32font_full_name): New function.
16366 (w32font_open_internal): Use it.
16367
163682008-03-01 Kim F. Storm <storm@cua.dk>
16369
16370 * dispnew.c (line_draw_cost): Fix invalid glyph check.
16371
163722008-03-01 Jason Rumney <jasonr@gnu.org>
16373
16374 * font.c (font_unparse_fcname): Increase len when style is a symbol.
16375
163762008-03-01 Jan Djärv <jan.h.d@swipnet.se>
16377
16378 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
16379 xg_frame_resized when the event is for the edit widget.
16380
16381 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
16382
16383 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
16384 set_char_size.
16385 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
16386 operations on widgets here. Just set frame size if needed.
16387 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
16388 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
16389 (x_wm_set_size_hint): Set size hints on the edit widget only, not
16390 the whole frame.
16391 (xg_create_tool_bar): Move attachment of the tool bar to
16392 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
16393 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
16394
163952008-03-01 Jason Rumney <jasonr@gnu.org>
16396
16397 * w32fns.c (w32_msg_pump): Disable debug code.
16398
163992008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16400
16401 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
16402
164032008-02-29 Chong Yidong <cyd@stupidchicken.com>
16404
16405 * xdisp.c (next_overlay_string): Don't set
16406 overlay_strings_at_end_processed_p if we're currently reading from
16407 a display string.
16408
164092008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
16410
16411 * xdisp.c (get_overlay_strings_1): Fix typo.
16412
164132008-02-29 Chong Yidong <cyd@stupidchicken.com>
16414
16415 * xdisp.c (get_overlay_strings_1): Add missing argument type.
16416
164172008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
16418
16419 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
16420
16421 * xdisp.c (display_mode_element): Cancel the previous change.
16422 (decode_mode_spec): Likewise.
16423 (handle_auto_composed_prop): Don't make composition if it->string
16424 is a string.
16425
164262008-02-27 Kim F. Storm <storm@cua.dk>
16427
16428 * lisp.h (GLYPH): Change type from int to struct with separate char
16429 and face_id members.
16430 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
16431 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
16432 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
16433 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
16434 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
16435 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
16436 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
16437 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
16438 handle new Lisp glyph code encoding, either an integer or a cons.
16439
16440 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
16441 (GLYPH_ALIAS): Delete.
16442 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
16443 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
16444 (GLYPH_FROM_CHAR): Replace macro by ...
16445 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
16446
16447 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
16448 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
16449 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
16450 (GLYPH_INVALID_P): New macro.
16451 (spec_glyph_lookup_face): Update prototype.
16452
16453 * dispnew.c (line_draw_cost): Adapt to new glyph type.
16454 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
16455 new glyph code encoding.
16456 (spec_glyph_lookup_face): No return value; update passed glyph instead.
16457 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
16458
16459 * xdisp.c (get_next_display_element, next_element_from_display_vector):
16460 Adapt to new glyph type and new glyph code encoding.
16461
16462 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
16463
16464 * indent.c (current_column, current_column_1, Fmove_to_column)
16465 (compute_motion): Adapt to new glyph code encoding.
16466
16467 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
16468
164692008-02-27 Chong Yidong <cyd@stupidchicken.com>
16470
16471 * process.c (wait_reading_process_output): Check for window
16472 changes caused by timers.
16473 Suggested by Johan Bockgård.
16474
164752008-02-27 Glenn Morris <rgm@gnu.org>
16476
16477 * emacs.c (USAGE1): Add `--disable-font-backend'.
16478
164792008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
16480
16481 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
16482 is made to the buffer.
16483
164842008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
16485
16486 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
16487 (face_at_string_position):
16488 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
16489 (face_at_string_position):
16490 * xdisp.c (display_string, next_overlay_change):
16491 * buffer.h (overlays_at):
16492 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
16493 Update callers.
16494
164952008-02-26 Chong Yidong <cyd@stupidchicken.com>
16496
16497 * editfns.c (Fformat): Doc fix.
16498
164992008-02-26 Juanma Barranquero <lekktu@gmail.com>
16500
16501 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
16502 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
16503 (Ffont_otf_alternates, Fquery_font): Doc fixes.
16504
165052008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16506
16507 * buffer.c (Fbuffer_swap_text): New function.
16508 (syms_of_buffer): Defsubr it.
16509
165102008-02-25 Chong Yidong <cyd@stupidchicken.com>
16511
16512 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
16513
165142008-02-25 Jason Rumney <jasonr@gnu.org>
16515
16516 * w32font.c (w32font_draw): Draw one character at a time when padding.
16517
165182008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
16519
16520 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
16521 Handle a nil arg. Use run_window_configuration_change_hook.
16522 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
16523 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
16524 Use run_window_configuration_change_hook.
16525
165262008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16527
16528 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
16529 1-pixel width.
16530
165312008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
16532
16533 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
16534 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
16535 if the glyph in the font is zero pixel with.
16536
16537 * dispextern.h (struct glyph_string): New member padding_p.
16538
16539 * w32font.c (w32font_draw): Pay attention to s->padding_p.
16540
16541 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
16542
16543 * xfont.c (xfont_draw): Pay attention to s->padding_p.
16544
16545 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
16546
16547 * font.c: If the font driver doesn't have `shape' function, return Qnil.
16548
165492008-02-25 Jason Rumney <jasonr@gnu.org>
16550
16551 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16552
165532008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
16554
16555 Allow fine-grained image-cache flushing.
16556 * dispextern.h (struct image): Add `dependencies' field.
16557 (clear_image_caches): Change arg to Lisp_Object.
16558 * image.c (make_image): Initialize `dependencies' field.
16559 (clear_image_cache): Change arg to allow fine-grained flushing.
16560 Perform the flush even if image-cache-eviction-delay is nil.
16561 (clear_image_caches): Change arg to Lisp_Object.
16562 (Fclear_image_cache): Expand meaning of the argument.
16563 (mark_image): Mark `dependencies' field.
16564 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
16565 (lface_hash): Use XHASH rather than XFASTINT.
16566 (face_at_buffer_position): Fix int -> EMACS_INT position.
16567 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
16568 (select_frame_for_redisplay): Remove code duplication.
16569 (redisplay_internal): Adapt arg to call to clear_image_caches.
16570
165712008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
16572
16573 * s/vms4-0.h:
16574 * s/vms4-2.h:
16575 * s/vms4-4.h:
16576 * s/vms5-5.h: Remove, unused.
16577
16578 * s/irix5-2.h:
16579 * s/irix6-0.h:
16580 * s/riscos5.h:
16581 * s/mach-bsd4-3.h:
16582 * m/mips4.h: Remove files for obsolete systems.
16583
16584 * Makefile.in:
16585 * filelock.c:
16586 * unexmips.c:
16587 * m/hp9000s300.h:
16588 * m/iris4d.h:
16589 * s/aix3-1.h:
16590 * s/hpux.h:
16591 * s/msdos.h:
16592 * s/usg5-0.h:
16593 * s/usg5-2-2.h:
16594 * s/usg5-2.h:
16595 * s/usg5-3.h: Remove references to obsolete variables.
16596
16597 * s/irix5-0.h: Remove, move all the contents ...
16598 * s/irix6-5.h: ... here. Simplify.
16599 * config.in: Regenerate.
16600
166012008-02-24 Jason Rumney <jasonr@gnu.org>
16602
16603 * w32term.c (x_draw_glyph_string_background): Clear the background
16604 manually when cleartype is in use.
16605 (x_draw_glyph_string_foreground): Draw text transparently when
16606 cleartype is in use.
16607
16608 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
16609 a font into it unless we have to.
16610
166112008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16612
16613 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
16614 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 16615
aac0c6e3
MR
166162008-02-18 Jason Rumney <jasonr@gnu.org>
16617
16618 * w32fns.c (Fw32_shell_execute): Encode parameters.
16619
166202008-02-09 Eli Zaretskii <eliz@gnu.org>
16621
16622 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
16623
166242008-02-05 Juanma Barranquero <lekktu@gmail.com>
16625
16626 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
16627
166282008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
16629
16630 * xterm.c (x_set_offset): Don't change the gravity if
16631 CHANGE_GRAVITY is -1.
16632
166332008-02-23 Chong Yidong <cyd@stupidchicken.com>
16634
16635 * fileio.c (auto_save_error_occurred): New var.
16636 (auto_save_error): Set it.
16637 (Fdo_auto_save): Don't overwrite the error message if an auto-save
16638 error occurred.
16639
166402008-02-23 Eli Zaretskii <eliz@gnu.org>
16641
16642 * w32.c (globals_of_w32): Add initializations for
16643 g_b_init_get_sid_sub_authority and
16644 g_b_init_get_sid_sub_authority_count.
16645
166462008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
16647
16648 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
16649 (font_parse_xlfd): Use them for sanity check.
16650 (Finternal_set_font_style_table): Make sure the table is bijective.
16651
16652 Consolidate the image_cache to the terminal struct.
16653 * termhooks.h (P_): Remove redundant def.
16654 (struct terminal): New field `image_cache'.
16655 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
16656 of FRAME_X_IMAGE_CACHE.
16657 * xterm.h (struct x_display_info): Remove image_cache field.
16658 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16659 * w32term.h (struct w32_display_info): Remove image_cache field.
16660 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16661 * macterm.h (struct mac_display_info): Remove image_cache field.
16662 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
16663 * xterm.c (x_term_init):
16664 * w32term.c (w32_term_init):
16665 * macterm.c (mac_term_init): Set the image_cache in the terminal.
16666 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
16667 Remove declarations.
16668 (clear_image_caches, mark_image_cache): New declarations.
16669 * xfaces.c (clear_face_cache):
16670 * xdisp.c (redisplay_internal): Use clear_image_caches.
16671 * image.c (clear_image_cache): Don't check that a frame is on
16672 a window-system before checking if it shares the same cache.
16673 (clear_image_caches): New function.
16674 (Fclear_image_cache): Use it.
16675 (mark_image): Move from allo.c.
16676 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
16677 * alloc.c (mark_image, mark_image_cache): Move to image.c.
16678 (mark_object): Don't call mark_image_cache for frames.
16679 (mark_terminals): Call mark_image_cache.
16680
16681 * lisp.h (Fdelete_terminal): Declare.
16682
16683 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
16684 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
16685 wrong_type_argument.
16686
166872008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
16688
16689 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
16690 malayalam.el, and tamil.el. Add sinhala.el.
16691
166922008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
16693
16694 * xterm.c (x_connection_closed): Consolidate identical tests.
16695 (x_delete_terminal): Don't crash if called via x_connection_closed.
16696
166972008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
16698
16699 * xdisp.c (decode_mode_spec): New arg string.
16700 (display_mode_element): Adjust for the above change.
16701
167022008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
16703
16704 * callint.c (Fcall_interactively): Use AREF.
16705
167062008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
16707
16708 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
16709
167102008-02-18 Jan Djärv <jan.h.d@swipnet.se>
16711
16712 * xfns.c (Fx_show_tip): Set string to " " if empty.
16713
167142008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
16715
16716 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
16717 with Qt.
16718
167192008-02-17 Kenichi Handa <handa@m17n.org>
16720
16721 * ftfont.c (ftfont_shape): Return Lispy number.
16722
16723 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
16724 for GCs.
16725 (Finternal_set_font_selection_order): Call font_update_sort_order
16726 only when enable_font_backend is set.
16727 (realize_x_face): Set face->font_info to that of default face only
16728 when enable_font_backend is set.
16729
16730 * xdisp.c (handle_composition_prop): Set it->c to the fist
16731 character of the composed region.
16732 (fill_composite_glyph_string): Set base_face->font_info to
16733 s->font_info. Get a face for ascii from base_face->ascii_face.
16734 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
16735 with a face already decided.
16736 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
16737 non-negative.
16738 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
16739 call font_prepare_composition unconditionally.
16740
16741 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
16742
16743 * xterm.h (struct x_display_info): New member font.
16744
16745 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
16746 (x_set_mouse_face_gc, x_new_font): Likewise.
16747 (x_term_init): Setup display_info->font.
16748 (x_delete_terminal): Free display_info->font.
16749
16750 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
16751
16752 * ftxfont.c (ftxfont_default_fid): Delete it.
16753 (ftxfont_open): Set xfont->fid to 0.
16754 (ftxfont_end_for_frame): Clear data specific to the frame and the
16755 font-driver.
16756
16757 * xftfont.c (xftfont_default_fid): Delete it.
16758 (xftfont_open): Set xfont->fid to 0.
16759
16760 * fontset.c (FONTSET_OBJLIST): New macro.
16761 (fontset_find_font): Update font-object list of the fontset.
16762 (free_realized_fontset): New function.
16763 (free_face_fontset): Call free_realized_fontset.
16764 (Ffont_info): Call font_close_object only when enable_font_backend
16765 is set.
16766
16767 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
16768 [HAVE_NTGUI]: Include w32term.h.
16769 [MAC_OS]: Include macterm.ch.
16770 (font_otf_ValueRecord): Use make_number.
16771 (font_finish_cache): Fix handling of reference count.
16772 (font_clear_cache): Update num_fonts.
16773 (font_open_entity): Update smallest_char_width and
16774 smallest_font_height of the frame.
16775 (font_close_object): Update num_fonts.
16776 (Fclear_font_cache): Fix finding the target cache data.
16777
167782008-02-16 Glenn Morris <rgm@gnu.org>
16779
16780 * fontset.c (Finternal_char_font): Fix compilation warning.
16781
167822008-02-16 Eli Zaretskii <eliz@gnu.org>
16783
16784 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
16785 instead of char arrays. Enlarge the size of array passed to
16786 get_token_information.
16787
16788 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
16789 warnings.
16790
167912008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
16792
16793 * .gdbinit: Don't set `args', it breaks gdb --args.
16794
167952008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
16796
16797 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
16798 within a narrowed buffer.
16799
168002008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
16801
16802 * coding.c (decode_coding_object, encode_coding_object):
16803 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
16804
168052008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
16806
16807 * coding.c (coding_set_destination): Use BEG_BYTE rather than
16808 hardcoding 1.
16809 (detect_coding_system):
16810 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
16811 (string_char_to_byte, string_byte_to_char, insert_from_gap):
16812 * insdel.c (insert_from_gap):
16813 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
16814 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
16815 (string_to_multibyte):
16816 * character.c (chars_in_text, multibyte_chars_in_text):
16817 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
16818
16819 * character.h (FETCH_STRING_CHAR_ADVANCE)
16820 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
16821 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
16822 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
16823
16824 * casefiddle.c (casify_region): Only call after-change and composition
16825 functions on the part of the region that was changed.
16826
16827 * keyboard.c (read_avail_input):
16828 * frame.c (Fdelete_frame): Call Fdelete_terminal.
16829
168302008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16831
16832 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
16833 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
16834
168352008-02-11 Juanma Barranquero <lekktu@gmail.com>
16836
16837 * w32menu.c (push_submenu_start, push_submenu_end)
16838 (push_left_right_boundary, push_menu_pane, push_menu_item):
16839 * keyboard.c (read_key_sequence): Don't pass args with side effects
16840 to AREF, it fails when compiling with -DENABLE_CHECKING.
16841
168422008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
16843
16844 * Makefile.in (${lispsource}international/charprop.el):
16845 Delete this target.
16846
16847 * search.c (boyer_moore): Fix incorrect synching of the trunk and
16848 emacs-unicode-2.
16849
168502008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
16851
16852 * terminal.c (Fdelete_terminal): Clean up the `force' path.
16853
168542008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16855
16856 * frame.c (Qnoelisp): New symbol.
16857 (syms_of_frame): Initialize it.
16858 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
16859 harmless Elisp code, from a strong `force' from x_connection_closed.
16860 * frame.h (Qnoelisp): Declare.
16861 * xterm.c (x_connection_closed): Pass `noelisp'.
16862
16863 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
16864 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
16865 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
16866 rather than `int' for the type of `type'.
16867
168682008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
16869
16870 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
16871
16872 * Makefile.in (GNUC): Remove support for gcc-1.x.
16873
168742008-02-10 Richard Stallman <rms@gnu.org>
16875
16876 * lisp.h (ASET): Use AREF, not ASLOT.
16877
168782008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
16879
16880 * lisp.h (ASET): Check bounds.
16881
168822008-02-10 Glenn Morris <rgm@gnu.org>
16883
16884 * buffer.c (mode-name): Doc fix.
16885
168862008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16887
16888 * Makefile.in:
16889 * emacs.c:
16890 * gmalloc.c:
16891 * keyboard.c:
16892 * lisp.h:
16893 * m/ibm370aix.h:
16894 * process.c:
16895 * regex.c:
16896 * s/hpux.h:
16897 * sysdep.c:
16898 * sysselect.h:
16899 * systty.h:
16900 * unexec.c:
16901 * w32term.c:
16902 * xsmfns.c:
16903 * xterm.c: Remove code that deals with obsolete variables.
16904
16905 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
16906
16907 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
16908 nothing else needs it anymore.
16909
169102008-02-09 Eli Zaretskii <eliz@gnu.org>
16911
16912 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
16913 instead of unibyte_char_to_multibyte.
16914
169152008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
16916
16917 * s/gnu-linux.h: Remove commented out code.
16918
16919 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
16920
16921 * Makefile.in: Update what RMS says about using autoconf.
16922 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
16923 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
16924 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
16925 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
16926
169272008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
16928
16929 * keymap.c (Fkey_description): Move side effect outside of macro call.
16930
16931 * xfaces.c (Finternal_make_lisp_face):
16932 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
16933
16934 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
16935 (syms_of_fontset): Use ASET.
16936
16937 * fns.c (concat): Move side effect outside of macro call.
16938 (hash_clear): Use ASET.
16939
169402008-02-08 Richard Stallman <rms@gnu.org>
16941
16942 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
16943 If FORCE, and frame has a surrogate minibuffer for another frame,
16944 delete the other frame first.
16945
169462008-02-07 Timo Savola <timo.savola@iki.fi>
16947
16948 * xterm.c (x_detect_focus_change): Handle embed client message.
16949 (handle_one_xevent): Ditto.
16950 (handle_one_xevent): If embedded and we get a button press/release,
16951 request focus.
16952 (xembed_set_info, xembed_send_message): New functions.
16953 (x_make_frame_visible): Call xembed_set_info if embedded.
16954 (x_make_frame_invisible): Call xembed_set_info if embedded.
16955 (x_term_init): Initialize Xatom_XEMBED.
16956 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
16957 (x_iconify_frame): Ditto.
16958
16959 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
16960 (enum xembed_info, enum xembed_message, enum xembed_focus)
16961 (enum xembed_modifier, enum xembed_accelerator): New.
16962 (xembed_set_info, xembed_send_message): Declare.
16963 (FRAME_X_EMBEDDED_P): New.
16964
16965 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
16966 gtk_plug_new.
16967
16968 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
16969 window ID of a frame.
16970 (x_window): Reparent frame if embedded.
16971 (Fx_create_frame): Don't set border width if embedded.
16972
16973 * emacs.c (USAGE3): Add --parent-id.
16974 (standard_args): Ditto.
16975
169762008-02-07 Jan Djärv <jan.h.d@swipnet.se>
16977
16978 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
16979
169802008-02-07 Jim Meyering <meyering@redhat.com>
16981
16982 Use "do...while (0)", not "if (1)...else" in macro definitions.
16983 The latter provokes a warning from gcc about the empty else, when
16984 followed by ";". Also, without that trailing semicolon, it would
16985 silently swallow up any following statement.
16986 * syntax.h (SETUP_SYNTAX_TABLE)
16987 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
16988 * buffer.h (DECODE_POSITION): Likewise.
16989 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
16990 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
16991 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
16992 (FETCH_CHAR_ADVANCE): Likewise.
16993 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
16994
169952008-02-07 Jim Meyering <meyering@redhat.com>
16996
16997 * lread.c [lint]: Don't include <sys/inode.h>.
16998
169992008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
17000
17001 * xselect.c (x_handle_dnd_message):
17002 * xmenu.c (digest_single_submenu, xmenu_show):
17003 * xdisp.c (with_echo_area_buffer_unwind_data)
17004 (format_mode_line_unwind_data, unwind_format_mode_line)
17005 (display_menu_bar):
17006 * eval.c (Ffetch_bytecode):
17007 * doc.c (store_function_docstring):
17008 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
17009 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
17010 * buffer.c (add_overlay_mod_hooklist): Use ASET.
17011
170122008-02-07 Kenichi Handa <handa@m17n.org>
17013
17014 * ftxfont.c (ftxfont_open): Don't set
17015 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
17016
17017 * ftfont.c (ftfont_open): Fix previous change.
17018
170192008-02-06 Jason Rumney <jasonr@gnu.org>
17020
17021 * w32font.c (w32font_text_extents): Fill in lbearing metric.
17022 Use cached metrics for ASCII characters.
17023 (w32font_open_internal): Don't set font's owning_frame.
17024 Cache metrics for ASCII characters.
17025
17026 * w32font.h (struct w32font_info): Add ascii_metrics.
17027 Remove owning_frame.
17028
170292008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
17030
17031 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
17032 to negative value.
17033
17034 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
17035
17036 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
17037
17038 * charset.c (syms_of_charset): Set QCtest and Qeq.
17039
170402008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
17041
17042 * process.c (Fstart_process):
17043 * callproc.c (Fcall_process): Handle the case where
17044 Funhandled_file_name_directory returns nil.
17045
17046 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
17047 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
17048 * font.c (check_gstring): Use them and AREF to access the vector before
17049 we know it's really a gstring.
17050 (Ffont_shape_text): Fix typo.
46e722a9 17051 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
17052
17053 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
17054 Declare.
17055
17056 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
17057
170582008-02-05 Jason Rumney <jasonr@gnu.org>
17059
17060 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
17061 Set smallest_font_height and smallest_char_width in display info.
17062
170632008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
17064
17065 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
17066
170672008-02-05 Miles Bader <miles@gnu.org>
17068
17069 * xfaces.c (get_lface_attributes, merge_named_face)
17070 (lookup_named_face, lookup_derived_face, realize_named_face):
17071 Revert 2008-02-01 change by cyd@stupidchicken.com.
17072
170732008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
17074
17075 * fontset.c (Ffontset_info): Handle the case of inhibitting the
17076 fallback fonts.
17077 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
17078
170792008-02-04 Jason Rumney <jasonr@gnu.org>
17080
17081 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
17082 set full_name.
17083 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
17084
170852008-02-03 Jason Rumney <jasonr@gnu.org>
17086
17087 * makefile.w32-in (OBJ1): Include font.o here.
17088 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
17089
170902008-02-02 Jason Rumney <jasonr@gnu.org>
17091
17092 * makefile.w32-in (temacs): Bump EMHEAP to 21.
17093
170942008-02-01 Jason Rumney <jasonr@gnu.org>
17095
17096 * s/cygwin.h: Define VIRT_ADDR_VARIES.
17097
17098 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
17099
171002008-02-01 Andreas Schwab <schwab@suse.de>
17101
17102 * Makefile.in (shortlisp, lisp): Update for rename of
17103 ../lisp/language/myanmar.el.
17104
171052008-02-01 Chong Yidong <cyd@stupidchicken.com>
17106
17107 * xfaces.c (get_lface_attributes): Delete function.
17108 (merge_named_face, lookup_named_face, lookup_derived_face)
17109 (realize_named_face): Call lface_from_face_name directly, and use
17110 the fact that merge_face_vectors does not alter its FROM argument.
17111
171122008-02-01 Jason Rumney <jasonr@gnu.org>
17113
17114 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
17115 input in the default locale. Handle non-Unicode multibyte input.
17116
171172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17118
17119 * fontset.c (reorder_font_vector): Exclude nil elements from the
17120 font group. Don't try multiple fonts.
17121 (fontset_font): Adjust for the above change.
17122 (Finternal_char_font): Return nil if the found font doesn't
17123 contain the character ch.
17124
17125 * Makefile.in (lisp, shortlisp): Add cham.el.
17126
171272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17128
17129 * font.h (FONTP): Make it return 1 also for a font-object.
17130
17131 * .gdbinit (xfontset): New function.
17132
17133 * font.c (font_find_for_lface): Check if the character C is
17134 supported or not only for the first font.
17135
17136 * fontset.c (reorder_font_vector): Fix typo.
17137 (fontset_find_font): Don't add a font-spec specifying a script.
17138 Use 0 (not Qt) for the indication of empty font-group. Change the
17139 format of RFONT-DEF. Return Qt if no font in the font-group
17140 support the character.
17141 (fontset_font): Adjust for the above change. If no font was
17142 found the character, remember that.
17143 (face_for_char): Adjust for the change of RFONT-DEF.
17144 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
17145 no font for the target.
17146 (Finternal_char_font): Adjust for the change of RFONT-DEF.
17147
171482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17149
17150 * font.c (font_load_for_face): Handle the case that the font in
17151 face->lface is a string.
17152
171532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17154
17155 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
17156
171572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17158
17159 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
17160 Fix previous change. If the frame is not on a window system,
17161 signal an error.
17162
171632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17164
17165 * coding.c (decode_coding_object, encode_coding_object): Adjust
17166 marker positions after conversion.
17167
17168 * lisp.h (struct Lisp_Marker): New member need_adjustment.
17169
171702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17171
17172 * font.c (font_find_for_lface): Fix the handling of the return
17173 value of font_has_char.
17174 (Ffont_shape_text): Fix previous change.
17175
17176 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
17177 (fontset_ref_and_range): Delete it.
17178 (fontset_find_font): Call char_table_ref_and_range instead of
17179 FONTSET_REF_AND_RANGE.
17180 (make_fontset): Don't setup font groups of Latin here.
17181 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
17182 (new_fontset_from_font): Make the specified font the default for
17183 all Latin characters.
17184
171852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17186
17187 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
17188 is on a window system before accessing the fontset of the frame.
17189
171902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17191
17192 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
17193
17194 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
17195 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
17196
17197 * font.c (Ffont_shape_text): If the font driver doesn't have a
17198 shaper function, make zero-width glyphs to have at least one-pixel
17199 width. Fix setting of `to' field of glyphs.
17200
172012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17202
17203 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
17204 glyphs.
17205
17206 * font.h (struct font_driver): Improve docstring of member `shape'.
17207
172082008-02-01 Kenichi Handa <handa@m17n.org>
17209
17210 * composite.c (syms_of_composite): Fix docstring of
17211 auto-composition-function.
17212
17213 * font.h (LGLYPH_SIZE): New macro.
17214
17215 * font.c (Ffont_fill_gstring): Stop filling when a character not
17216 supported by the font is found.
17217 (Ffont_shape_text): When a shape callback function returns nil,
17218 try at most two more times with larger gstring.
17219 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
17220
17221 * xdisp.c (handle_auto_composed_prop): Change the argument to
17222 auto-composition-function.
17223
17224 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
17225 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
17226 Lispy glyph and store it in the lgstring.
17227
17228 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
17229
17230 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
17231
172322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17233
17234 * font.c (Ffont_shape_text): Avoid unnecessary composition.
17235
17236 * fontset.c (Vfont_encoding_charset_alist): New variable.
17237 (syms_of_fontset): DEFVAR it.
17238 (reorder_font_vector, fontset_find_font): Optimize for the case of
17239 no need of reordering.
17240 (face_for_char): Map the charset property by
17241 Vfont_encoding_charset_alist.
17242
172432008-02-01 Jason Rumney <jasonr@gnu.org>
17244
17245 * w32font.c (logfonts_match): Don't check adstyle here.
17246 (font_matches_spec): Check here against physical font instead.
17247 (add_font_entity_to_list): Avoid some substitutions.
17248
17249 * font.c (font_parse_fcname): Default weight and slant to normal.
17250 (font_score): Prefer normal fonts if weight or slant unspecified.
17251 (font_score) [WINDOWSNT]: Scale weight difference down to closer
17252 match freetype scores.
17253
172542008-02-01 Jason Rumney <jasonr@gnu.org>
17255
17256 * w32font.c (w32font_text_extents): Don't use the frame stored in the
17257 font, as it may have been deleted.
17258 (w32_enumfont_pattern_entity): Map generic family to adstyle using
17259 most common hyphenless variation.
17260 (logfonts_match): Check generic family.
17261 (font_matches_spec): Don't check generic family here.
17262 (fill_in_logfont): Set generic family based on adstyle.
17263
17264 * w32font.h (w32font_get_cache): Update declaration.
17265
172662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17267
17268 * ftfont.c (ftfont_get_cache): Adjust the argument type.
17269
17270 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
17271 If none of the new drivers are available, call font_update_drivers
17272 with the old drivers.
17273
17274 * w32font.c (w32font_get_cache): Adjust the argument type.
17275
17276 * xfont.c (xfont_get_cache): Adjust the argument type.
17277
17278 * font.h (struct font_driver): Change argument type of get_cache.
17279
17280 * xftfont.c (xftfont_start_for_frame): Delete prototype.
17281
17282 * font.c (Ffont_get): Fix arguments to Fassoc.
17283 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
17284 (font_clear_cache): New function.
17285 (font_list_entities, font_matching_entity): Use font_get_cache.
17286 (font_update_drivers): Call font_clear_cache when finishing a driver.
17287
17288 * fontset.c (fontset_find_font): Fix previous change.
17289
172902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17291
17292 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
17293 dpyinfo->font_table.
17294 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
17295 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
17296
17297 * font.c (font_at): Handle the case that the arg C is negative.
17298 Handle the unibyte case.
17299 (Ffont_at): Call font_at with the arg C -1.
17300
17301 * xdisp.c (handle_auto_composed_prop): Don't get a character at
17302 the position here, and call font_at with the arg C -1.
17303 Don't check the range of the existing composition at the point.
17304
173052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17306
17307 * fontset.c (fontset_add): New args charset_id and family.
17308 Change caller.
17309 (load_font_get_repertory, fontset_find_font): Assume that
17310 font_spec is always a font-spec object.
17311 (Fset_fontset_font): Always store a font-spec object in a fontset.
17312
17313 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
17314 instead of get_property_and_range.
17315
173162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17317
17318 * xftfont.c (struct xftfont_info): Delete the member ft_face.
17319 (xftfont_open): Don't keep locking face.
17320 (xftfont_close): Don't unlock face.
17321 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
17322
17323 * fontset.c (fontset_find_font): Don't prefer a font of
17324 supplementary charset.
17325
173262008-02-01 Kenichi Handa <handa@m17n.org>
17327
17328 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
17329 script, langsys_tag to langsys, new member script.
17330 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 17331 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
17332 listing to the script specified in that property. Fix arg to
17333 OTF_check_features.
17334
173352008-02-01 Jason Rumney <jasonr@gnu.org>
17336
17337 * w32font.h: New file.
17338
17339 * w32font.c: Include it.
17340 (struct w32font_info): Add owning_frame field. Move to w32font.h.
17341 (w32font_open): Set owning_frame.
17342 (w32font_text_extents): Use owning_frame.
17343 (struct font_callback_data): Add opentype_only field.
17344 (add_font_entity_to_list): Use it to filter fonts.
17345 Don't check against full name.
17346 (w32font_list_internal): New function.
17347 (w32font_list): Use it.
17348 (w32font_match_internal): New function.
17349 (w32font_match): Use it.
17350 (w32font_open_internal): New function.
17351 (w32font_open): Use it.
17352 (w32font_get_cache, w32font_close, w32font_has_char)
17353 (w32font_encode_char, w32font_text_extents, w32font_draw):
17354 Make non-static.
17355
17356 * makefile.w32-in (w32font.o): Depend on w32font.h.
17357
173582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17359
17360 * charset.c (Fdefine_charset_internal): Record a supplementary
17361 charset at the tail of Vcharset_order_list.
17362
17363 * font.c (Ffont_shape_text): Fix the return value.
17364
17365 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
17366
17367 * xdisp.c (handle_auto_composed_prop): Fix previous change.
17368
173692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17370
17371 * ftfont.c (struct OpenTypeSpec): New struct.
17372 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
17373 (ftfont_get_open_type_spec): New function.
17374 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
17375
17376 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
17377
173782008-02-01 Jason Rumney <jasonr@gnu.org>
17379
17380 * w32font.c (add_font_entity_to_list): Compare only the beginning
17381 of full name.
17382
173832008-02-01 Kenichi Handa <handa@m17n.org>
17384
17385 * xdisp.c (handle_auto_composed_prop): Simplify the code.
17386 Never return HANDLED_RECOMPUTE_PROPS.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * font.c (font_gstring_produce): Delete it.
17391
17392 * composite.h (COMPOSITION_METHOD):
17393 Handle COMPOSITION_WITH_GLYPH_STRING.
17394
173952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17396
17397 * xfont.c (Qx): Delete.
17398 (syms_of_xfont): Don't initialize Qx.
17399
17400 * composite.h (enum composition_method):
17401 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
17402
174032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17404
17405 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
17406 (choose_face_font): Accept new form of font-spec.
17407
17408 * frame.h (font_driver_list): Declare it unconditionally.
17409 (struct frame): Define members font_driver_list and font_data_list
17410 unconditionally.
17411
17412 * fontset.c: Include "font.h" unconditionally.
17413 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
17414 (Fset_fontset_font): Accept a font-spec object.
17415
17416 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
17417 PIXEL_SIZE part a wild card.
17418
17419 * dispextern.h (struct glyph_string): Define members clip and
17420 num_clips unconditionally.
17421 (struct face): Define members font_info and extra unconditionally.
17422
17423 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
17424 ftfont_info only when HAVE_LIBOTF is defined.
17425
174262008-02-01 Andreas Schwab <schwab@suse.de>
17427
17428 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
17429 and end.
17430
174312008-02-01 Jason Rumney <jasonr@gnu.org>
17432
17433 * w32font.c (w32font_driver): Add new fields.
17434
174352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17436
17437 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
17438 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
17439 (LIBES): Add @M17N_FLT_CFLAGS@.
17440
17441 * composite.c (compose_text): Don't treat the new style
17442 composition specially.
17443
17444 * emacs.c (main): Call syms_of_font unconditionally.
17445
17446 * font.h (FONT_ENTITY_NOT_LOADABLE)
17447 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
17448 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
17449 (struct font_driver): New member shape.
17450 (font_registry_charsets): Extern it.
17451 (font_find_for_lface, font_prepare_composition): Adjust prototype.
17452 (font_otf_capability, font_drive_otf): Delete their externs.
17453
17454 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
17455 (font_charset_alist, font_registry_charsets): Move from xfont.c
17456 and rename.
17457 (font_prop_validate_otf): New function.
17458 (font_property_table): Register it for QCotf.
17459 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
17460 (font_drive_otf): Delete.
17461 (font_prepare_composition): New arg F. Adjust for the change of
17462 lispy gstring.
17463 (font_find_for_lface): New arg C.
17464 (font_load_for_face): Adjust for the change of font_find_for_lface.
17465 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
17466 lispy gstring.
17467 (Ffont_shape_text): New function.
17468 (Fopen_font): If the font size is not given, use 12-pixel.
17469 (Ffont_at): New arg STRING.
17470 (syms_of_font): Initalize font_charset_alist.
17471 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
17472 conditionally.
17473
17474 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
17475 fonts of the same font-spec. Change the format of RFONT-DEF.
17476 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
17477 Adjust for the change of RFONT-DEF.
17478 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
17479
17480 * ftfont.h: New file.
17481
17482 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
17483 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17484 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17485 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
17486 font_otf_capability and font_drive_otf, set ftfont_shape.
17487 (ftfont_list): Adjust for the change of :otf property value.
17488 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
17489 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
17490 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
17491 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17492 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
17493 (otf_gstring, gstring, m17n_flt_initialized): New variables.
17494
17495 * w32term.c (x_draw_composite_glyph_string_foreground):
17496 Adjust for the change of lispy gstring.
17497
17498 * xdisp.c (handle_composition_prop): Adjust for the change of
17499 lispy gstring. Call a function for auto-composition with the
17500 third arg it->window.
17501 (fill_composite_glyph_string): Adjust for the change of lispy string.
17502 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
17503
17504 * xfaces.c (set_font_frame_param): Adjust for the change of
17505 font_find_for_lface.
17506
17507 * xfont.c (x_font_charset_alist): Move to font.c and rename.
17508 (xfont_registry_charsets): Likewise. Change caller.
17509 (syms_of_xfont): Don't handle x_font_charset_alist.
17510
17511 * xftfont.c: Include "ftfont.h".
17512 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
17513 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
17514 (xftfont_close) [HAVE_LIBOTF]: Close otf.
17515 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
17516 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
17517 Set xftfont_driver.shape to xftfont_shape.
17518
17519 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
17520 the change of lispy gstring.
17521
175222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17523
17524 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
17525
175262008-02-01 Jason Rumney <jasonr@gnu.org>
17527
17528 * w32font.c (w32font_draw): Fill background manually.
17529
175302008-02-01 Jason Rumney <jasonr@gnu.org>
17531
17532 * font.c (Qfontp): Remove unused symbol.
17533 (QCantialias): New symbol.
17534 (syms_of_font): Define it.
17535 (font_property_table): Set a validator for QCantialias.
17536
17537 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
17538 Define if not already.
17539 (QCfamily): Share with xfaces.c.
17540 (Qstandard, Qsubpixel, Qnatural): New symbols.
17541 (syms_of_w32font): Define them. Don't define QCfamily here.
17542 (w32_antialias_type, lispy_antialias_type): New functions.
17543 (w32_enumfont_pattern_entity): New arg requested_font.
17544 Set antialias parameter if non-default was requested.
17545 (fill_in_logfont): Fill in lfQuality if :antialias specified.
17546
175472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17548
17549 * lread.c (read1): Undo the previous change.
17550
175512008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
17552
17553 * frame.c (Fdelete_frame): Call font_update_drivers only when
17554 USE_FONT_BACKEND is defined.
17555
175562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17557
17558 * font.h (struct font_bitmap): New member bits_per_pixel.
17559 (struct font_driver): New members start_for_frame and end_for_frame.
17560 (struct font_data_list): New struct.
17561 (font_put_frame_data, font_get_frame_data): Extern them.
17562
17563 * frame.h (struct frame): New member font_data_list.
17564
17565 * font.c (font_update_drivers): Call driver->start_for_frame and
17566 driver->end_for_frame at proper timings.
17567 (font_put_frame_data, font_get_frame_data): New functions.
17568 (Ffont_spec): Add usage in the docstring.
17569
17570 * frame.c (make_frame): Initialize f->font_data_list to NULL.
17571 (Fdelete_frame): Call font_update_drivers.
17572
17573 * xftfont.c (struct xftface_info): Delete the member xft_draw.
17574 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
17575 (xftfont_get_xft_draw): New function.
17576 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
17577 (xftfont_end_for_frame): New function.
17578 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
17579
17580 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
17581 Change argument. Cache GCs in the per-frame data.
17582 (struct ftxfont_frame_data): New struct.
17583 (ftxfont_draw_bitmap): New arg gc_fore and flush.
17584 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
17585 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
17586 (ftxfont_end_for_frame): New function.
17587 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
17588
17589 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
17590
175912008-02-01 Kenichi Handa <handa@m17n.org>
17592
17593 * xselect.c (Vselection_coding_system)
17594 (Vnext_selection_coding_system): Delete them.
17595 (syms_of_xselect): Don't declare selection-coding-system and
17596 next-selection-coding-system. They are declared in select.el.
17597
175982008-02-01 Jason Rumney <jasonr@gnu.org>
17599
17600 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
17601
17602 * w32fns.c: Include imm.h.
17603 (get_composition_string_fn, get_ime_context_fn): New optional
17604 system functions.
17605 (globals_of_w32fns): Load them from imm32.dll.
17606 (ignore_ime_char): New flag.
17607 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
17608 WM_IME_ENDCOMPOSITION messages.
17609
17610 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
17611 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
17612
176132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17614
17615 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
17616 (READCHAR_REPORT_MULTIBYTE): New macro.
17617 (readchar): New 2nd arg MULTIBYTE.
17618 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
17619 Make symbol's name multibyte according to the multibyteness of the
17620 source.
17621
176222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17623
17624 * xfaces.c (face_for_overlay_string): Call lookup_face with
17625 correct arguments (fix of synching with the trunk).
17626
176272008-02-01 Kenichi Handa <handa@m17n.org>
17628
17629 * font.c (font_prop_validate_symbol, font_prop_validate_style)
17630 (font_prop_validate_non_neg, font_prop_validate_spacing):
17631 Delete argument prop_index.
17632 (font_property_table): Change arguments to validater. Change Callers.
17633 (font_lispy_object): Delete.
17634 (font_at): Use font_find_object instead fo font_lispy_object.
17635
176362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17637
17638 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
17639 and file names.
17640
176412008-02-01 Jason Rumney <jasonr@gnu.org>
17642
17643 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
17644 (font_matches_spec): Remove debug output.
17645 (add_font_entity_to_list): Avoid using substituted fonts.
17646
176472008-02-01 Jason Rumney <jasonr@gnu.org>
17648
17649 * doc.c (Fsnarf_documentation):
17650 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
17651
176522008-02-01 Miles Bader <miles@gnu.org>
17653
17654 * dispextern.h (struct glyph_row): Only define "clip" field if
17655 HAVE_WINDOW_SYSTEM is defined.
17656
176572008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17658
17659 Fix up multi-tty merge.
17660
17661 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
17662 and indentation.
17663
17664 * xfaces.c (free_realized_face, clear_face_gcs):
17665 Include font_done_for_face in the input_blocked section, just in case.
17666
17667 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
17668 (get_char_face_and_encoding): Undo last change and remove the *other*
17669 duplicate definition (i.e. keep the one that's better scoped and that
17670 includes code for the font-backend).
17671
17672 * terminal.c (create_terminal): Default keyboard_coding to
17673 `no-conversion' and terminal_coding to `undecided'.
17674
17675 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
17676
17677 * fontset.c (free_realized_fontsets): Check that the table entry does
17678 contain a fontset before trying to compare it to `base'.
17679
17680 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
17681 syms_of_charset, and syms_of_coding earlier because init_window_once
17682 now needs Vcoding_system_hash_table to be setup.
17683
17684 * coding.h (default_buffer_file_coding): Remove.
17685
17686 * coding.c (default_buffer_file_coding): Remove.
17687 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
17688 than ->symbol, and use the terminal-local coding system.
17689 (syms_of_coding): Don't setup the coding-systems that are not
17690 terminal-local.
17691 (Fdefine_coding_system_internal): Use XCAR/XCDR.
17692
17693 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
17694 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
17695
17696 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
17697 in chartab.c and were re-added here by mistake.
17698 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
17699
17700 * doc.c (Fsnarf_documentation):
17701 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
17702 src to etc.
17703
17704 * ChangeLog.10: Add mistakenly removed entry.
17705
177062008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
17707
17708 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
17709
177102008-02-01 Miles Bader <miles@gnu.org>
17711
17712 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
17713 Add extra args to FACE_FOR_CHAR.
17714
177152008-02-01 Kenichi Handa <handa@m17n.org>
17716
17717 * keymap.c (where_is_internal_1): If key is a cons, store the copy
17718 in sequence.
17719
17720 * chartab.c (map_sub_char_table, map_char_table): If the range
17721 contains just one character, call the function with that character
17722 even if the depth is not 3.
17723
177242008-02-01 Jason Rumney <jasonr@gnu.org>
17725
17726 * w32font.c (w32font_text_extents): Calculate metrics for the
17727 whole string.
17728
177292008-02-01 Jason Rumney <jasonr@gnu.org>
17730
17731 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
17732
177332008-02-01 Jason Rumney <jasonr@gnu.org>
17734
17735 * w32term.c (x_set_glyph_string_clipping): Use
17736 get_glyph_string_clip_rects.
17737 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17738 Adjust for the change of struct glyph_string.
17739
17740 * w32font.c (w32font_draw): Do clipping here.
17741
177422008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * xftfont.c (xftfont_draw): Adjust for the change of struct
17745 glyph_string.
17746
17747 * xterm.c (x_set_glyph_string_clipping): Use
17748 get_glyph_string_clip_rects.
17749 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
17750 Adjust for the change of struct glyph_string.
17751
17752 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
17753 the resulting clip(s}.
17754 (expose_overlaps): Add arg r. Change callers. Set it to
17755 row->clip temporarily.
17756 (expose_window): Redraw rows overlapping the exposed area.
17757
17758 * dispextern.h (struct glyph_row): New member clip.
17759 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
17760 clip_height, new member clip, and num_clips.
17761
177622008-02-01 Kenichi Handa <handa@m17n.org>
17763
17764 * data.c (Fchar_or_string_p): Fix docstring.
17765
177662008-02-01 Kenichi Handa <handa@m17n.org>
17767
17768 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
17769 create a temporary XftDraw object.
17770
177712008-02-01 Kenichi Handa <handa@m17n.org>
17772
17773 * font.c (Ffontp): Fix docstring.
17774
17775 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
17776 strong evidence of ISO-2022.
17777
177782008-02-01 Kenichi Handa <handa@m17n.org>
17779
17780 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
17781 SYNTAX_ENTRY_FOLLOW_PARENT.
17782
177832008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17784
17785 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
17786 its type.
17787 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
17788 Update to the new type of weak_hash_tables and next_weak.
17789
17790 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
17791 a plain C pointer to Lisp_Hash_Table.
17792
17793 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
17794 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
17795 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
17796 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
17797 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
17798 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
17799 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
17800 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
17801 (GC_EQ): Remove since they've been identical to their non-GC_
17802 alter-egos ever since the markbit was eradicated.
17803
17804 * alloc.c:
17805 * buffer.c:
17806 * buffer.h:
17807 * data.c:
17808 * fileio.c:
17809 * filelock.c:
17810 * fns.c:
17811 * frame.h:
17812 * lisp.h:
17813 * macterm.c:
17814 * print.c:
17815 * process.c:
17816 * w32fns.c:
17817 * w32menu.c:
17818 * w32term.c:
17819 * xfns.c:
17820 * xmenu.c:
17821 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
17822
178232008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * chartab.c (map_sub_char_table): Make it work for the top-level
17826 char-table. Fix handling of parent char-table.
17827 (map_char_table): Adjust for the above change.
17828
178292008-02-01 Jason Rumney <jasonr@gnu.org>
17830
17831 * w32font.c (Qgdi): Rename from Qw32.
17832
178332008-02-01 Jason Rumney <jasonr@gnu.org>
17834
17835 * w32bdf.c (get_quoted_string): Make function static.
17836
178372008-02-01 Kenichi Handa <handa@m17n.org>
17838
17839 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
17840 bigger ascent and descent than those of the font, use them as
17841 font's ascent and descent.
17842
178432008-02-01 Kenichi Handa <handa@m17n.org>
17844
17845 * Makefile.in (${lispsource}international/charprop.el): Move this
17846 target within "#ifdef HAVE_UNIDATA" and "#endif".
17847
178482008-02-01 Kenichi Handa <handa@m17n.org>
17849
17850 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
17851 (shortlisp): Add ../lisp/language/tai-viet.el.
17852
178532008-02-01 Ulrich Mueller <ulm@gentoo.org>
17854
17855 * Makefile.in (${lispsource}international/charprop.el): Depend on
17856 temacs${EXEEXT}.
17857
178582008-02-01 Jason Rumney <jasonr@gnu.org>
17859
17860 * w32font.c (w32font_close): Delete the GDI font object.
17861
17862 * w32menu.c: Include character.h.
17863
17864 * w32proc.c: Likewise.
17865
17866 * w32select.c: Likewise.
17867
17868 * makefile.w32-in (w32proc.o): Depend on character.h.
17869
178702008-02-01 Jason Rumney <jasonr@gnu.org>
17871
17872 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
17873
17874 * w32menu.c (syms_of_w32menu): Likewise.
17875
17876 * w32proc.c (syms_of_ntproc): Likewise.
17877
17878 * w32select.c (syms_of_w32select): Likewise.
17879
17880 * w32term.c (syms_of_w32term): Likewise.
17881
178822008-02-01 Jason Rumney <jasonr@gnu.org>
17883
17884 * w32font.c (w32font_draw): Delete brush after using it.
17885
178862008-02-01 Jason Rumney <jasonr@gnu.org>
17887
17888 * w32font.c (w32font_open): Don't set font_idx.
17889 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
17890 to font settings.
17891 (w32font_draw): Fill background explicitly.
17892
178932008-02-01 Jason Rumney <jasonr@gnu.org>
17894
17895 * w32term.c (w32_initialize): Don't call w32font_initialize.
17896
17897 * w32font.c (w32font_info): Remove subranges.
17898 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
17899 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
17900 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
17901 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
17902 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
17903 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
17904 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
17905 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
17906 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
17907 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
17908 New symbols.
17909 (font_callback_data): New struct.
17910 (w32font_list, w32font_match): Use it.
17911 (w32font_open): Don't populate subranges.
17912 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
17913 (w32font_encode_char): Always return unicode code-point as-is.
17914 (w32font_text_extents): Supply a transformation matrix to
17915 GetGlyphOutline. Never look up by glyph index. Avoid looping
17916 twice. Use unicode version of GetTexExtentPoint32 instead of
17917 glyph index version.
17918 (set_fonts_frame): Remove.
17919 (w32_enumfont_pattern_entity): Add frame parameter, use it to
17920 set frame parameter. Use backward compatible fake foundries.
17921 Save generic family in extra slot under QCfamily. Make width slot
17922 constant. Save QCspacing value. Save list of scripts instead of
17923 binary subranges.
17924 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
17925 (add_font_entity_to_list): Use font_callback_data struct. Filter
17926 unwanted fonts.
17927 (add_one_font_entity_to_list): Use font_callback_data struct.
17928 (w32_registry): Default to iso10646_1.
17929 (fill_in_logfont): Use dpi from extra slot. Don't bother with
17930 string font registries. Don't fill in font name if it is a generic
17931 family name, fill family instead. Use spacing, family and script
17932 extra info to fill pitch, family and charset fields.
17933 (list_all_matching_fonts): Use font_callback_data struct.
17934 (unicode_range_for_char): Remove.
17935 (font_supported_scripts): New function.
17936 (w32font_initialize): Remove.
17937 (syms_of_w32font): Update which symbols are defined.
17938
179392008-02-01 Jason Rumney <jasonr@gnu.org>
17940
17941 * font.c (font_pixel_size): Reverse assq_no_quit args.
17942
17943 * w32term.h (FONT_WIDTH): Report max width, not average.
17944 (FONT_MAX_WIDTH): Remove.
17945 (FONT_AVG_WIDTH): New macro.
17946
17947 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
17948 redefinition of FONT_WIDTH.
17949
17950 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
17951 (w32_cache_char_metrics): Use FONT_WIDTH.
17952
17953 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
17954
179552008-02-01 Jason Rumney <jasonr@gnu.org>
17956
17957 * w32font.c (w32font_open): Make lfHeight negative.
17958
17959 * w32fns.c (x_default_font_parameter): Use new style font name.
17960 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
17961
179622008-02-01 Jason Rumney <jasonr@gnu.org>
17963
17964 * w32font.c (QCsubranges): New symbol.
17965 (w32font_open, w32font_has_char): Get subranges from subproperty
17966 of extra.
17967 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
17968 (syms_of_w32font): Define :subranges symbol.
17969
17970 * font.c (font_put_extra): Expose externally.
17971
17972 * font.h (font_put_extra): Move declaration from font.c.
17973
17974 * font.c (Ffont_get): Use font driver to determine otf capability.
17975 (adjust_anchor): Check if driver defines anchor_point before using.
17976
17977 * w32font.c (w32font_open): Handle size, height and pixel_size better.
17978 (w32font_draw): Use options.
17979 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
17980 Fix detection of truetype fonts.
17981 (registry_to_w32_charset): Handle charsets other than iso8859-1
17982 expressed as lisp symbols.
17983 (w32_registry): Express charset as lisp symbol.
17984 (fill_in_logfont): Reverse pixel and point height logic.
17985 Don't set width here. Set quality to default.
17986
17987 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
17988 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
17989
17990 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
17991 Remove redundant loop and allocation.
17992
17993 * makefile.w32-in (font.o, w32font.o): New objects.
17994 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
17995 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
17996
17997 * xdisp.c (fill_composite_glyph_string): Make the first arg to
17998 STORE_XCHARB a valid l-value.
17999
18000 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
18001 calculations for non-Truetype fonts.
18002 (x_draw_glyph_string): Sync with xterm.c.
18003 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
18004 Remove redundant code.
18005 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
18006
18007 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
18008 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
18009
18010 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
18011 (x_to_w32_charset, w32_to_x_charset): Expose externally.
18012
18013 * w32font.c: New file for w32 font backend.
18014
180152008-02-01 Kenichi Handa <handa@m17n.org>
18016
18017 * term.c: Don't include "buffer.h" twice.
18018
180192008-02-01 Kenichi Handa <handa@m17n.org>
18020
18021 * character.c (Funibyte_string): New function.
18022 (syms_of_character): Defsubr it.
18023
180242008-02-01 Jason Rumney <jasonr@gnu.org>
18025
18026 * w32term.c [USE_FONT_BACKEND]:
18027 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
18028 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
18029 (x_draw_glyph_string, x_draw_glyph_string_foreground)
18030 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
18031 (x_free_frame_resources): Sync with xterm.c.
18032
180332008-02-01 Andreas Schwab <schwab@suse.de>
18034
18035 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
18036 char-table size.
18037
180382008-02-01 Kenichi Handa <handa@m17n.org>
18039
18040 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
18041
180422008-02-01 Kenichi Handa <handa@m17n.org>
18043
18044 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
18045 font_otf_gpos, add font_drive_otf.
18046
18047 * fontset.c (fontset_find_font): Pay attention to font size
18048 specified for a font.
18049 (reorder_font_vector): Check contents of font_def.
18050
18051 * font.c (struct otf_list): Delete it.
18052 (otf_list): Make it a lisp variable.
18053 (otf_open): Use lispy otf_list.
18054 (generate_otf_features): Rename from parse_gsub_gpos_spec.
18055 (check_otf_features): New function.
18056 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
18057 New functions.
18058 (font_drive_otf): New function merging font_otf_gsub and
18059 font_otf_gpos.
18060 (font_open_for_lface): New arg spec. Change argument order.
18061 (font_load_for_face): Adjust for the change of font_open_for_lface.
18062 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
18063 Ffont_otf_gpos.
18064 (syms_of_font): Staticpro otf_list. Delete defsubr of
18065 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
18066
18067 * xfaces.c (set_font_frame_param): Adjust for the change of
18068 font_open_for_lface.
18069
18070 * font.h (font_open_for_lface): Adjust prototype.
18071 (struct font_driver): Delete members otf_gsub and otf_gpos, add
18072 member otf_drive.
18073 (font_otf_gsub, font_otf_gpos): Delete externs.
18074 (font_drive_otf): Extern it.
18075
180762008-02-01 Kenichi Handa <handa@m17n.org>
18077
18078 * font.c (font_at): If the window W is not on a window system,
18079 return Qnil.
18080
18081 * coding.c (produce_chars, encode_coding): Don't call
18082 insert_from_gap if no characters to produce.
18083
180842008-02-01 Kenichi Handa <handa@m17n.org>
18085
18086 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
18087 Fclear_face_cache.
18088
18089 * xfaces.c (face_for_font): Check also face->font==font->font.font.
18090
180912008-02-01 Miles Bader <miles@gnu.org>
18092
18093 * emacs.c (main): Change default value of `enable_font_backend' to 1.
18094 Parse "--disable-font-backend" option.
18095 (standard_args): Add "--disable-font-backend" option.
18096
180972008-02-01 Kenichi Handa <handa@m17n.org>
18098
18099 * fontset.c (fontset_find_font): New function.
18100 (fontset_font): Use fontset_find_font.
18101 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
18102 Register the specified font for all Latin characters.
18103 (new_fontset_from_font): Register the specified font for all Latin
18104 characters.
18105 (dump_fontset): For a realized fontset, include the base fontset
18106 name in the returned vector.
18107
181082008-02-01 Kenichi Handa <handa@m17n.org>
18109
18110 * character.h (CHAR_STRING): Cast C to unsigned on calling
18111 char_string.
18112
18113 * character.c (char_string): Type of arg C changed to unsigned.
18114 Signal an error if C is an invalid character code.
18115
18116 * editfns.c (general_insert_function, Fchar_to_string):
18117 Use CHARACTERP, not INTEGERP.
18118
181192008-02-01 Kenichi Handa <handa@m17n.org>
18120
18121 * character.h (MIN_MULTIBYTE_LEADING_CODE)
18122 (MAX_MULTIBYTE_LEADING_CODE): New macros.
18123
18124 * regex.c (analyse_first): Fix for multibyte characters in "case
18125 charset:" and "case categoryspec:".
18126
181272008-02-01 Andreas Schwab <schwab@suse.de>
18128
18129 * Makefile.in (LIBES): Move standard libraries to the end.
18130
181312008-02-01 Kenichi Handa <handa@m17n.org>
18132
18133 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
18134 nonzero, don't shrink the buffer nextb.
18135
18136 * buffer.h (struct buffer_text): New member inhibit_shrinking.
18137
18138 * coding.c (coding_alloc_by_making_gap): New arg offset.
18139 (alloc_destination): Call coding_alloc_by_making_gap with the arg
18140 offset.
18141 (decode_coding_iso_2022): Update coding->safe_charsets.
18142 (decode_coding_gap): Temporarily set
18143 current_buffer->text->inhibit_shrinking to 1.
18144
181452008-02-01 Kenichi Handa <handa@m17n.org>
18146
18147 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
18148 indexing into elements of s->cmp and s->char2b.
18149
181502008-02-01 Juanma Barranquero <lekktu@gmail.com>
18151
18152 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
18153
181542008-02-01 Kenichi Handa <handa@m17n.org>
18155
18156 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
18157 target_multibyte instead of multibyte.
18158 (re_match_2_internal): Call bcmp_translate with target_multibyte.
18159 (bcmp_translate): Change the argument name from multibyte to
18160 target_multibyte.
18161
181622008-02-01 Kenichi Handa <handa@m17n.org>
18163
18164 These changes are to compile a regexp into a pattern that can be
18165 used both for multibyte and unibyte targets.
18166
18167 * Makefile.in (search.o): Depend on charset.h.
18168
18169 * character.c (multibyte_char_to_unibyte_safe): New function.
18170
18171 * search.c: Include "charset.h".
18172 (compile_pattern_1): Delete argument multibyte. Don't set
18173 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
18174 (compile_pattern): Don't compare cp->buf.target_multibyte.
18175 Compare cp->buf.charset_unibyte.
18176 (compile_pattern): Set cp->buf.target_multibyte.
18177
18178 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
18179
18180 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
18181
18182 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
18183 multibyte. Change callers.
18184 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
18185 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
18186 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
18187 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
18188 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
18189 (regex_compile): Make the compiled pattern usable both for
18190 multibyte and unibyte targets.
18191 (analyse_first): Make the fastmap usable both for multibyte and
18192 unibyte targets.
18193 (TRANSLATE_VIA_MULTIBYTE): Delete.
18194 (re_match_2_internal): Pay attention to the case that the
18195 multibyteness of bufp and target may be different.
18196
181972008-02-01 Kenichi Handa <handa@m17n.org>
18198
18199 * xdisp.c (x_produce_glyphs): When a font is not found, make the
18200 empty box occupy at least one column width.
18201
182022008-02-01 Miles Bader <miles@gnu.org>
18203
18204 * Makefile.in: Remove redundant HAVE_XFT clause.
18205
182062008-02-01 Kenichi Handa <handa@m17n.org>
18207
18208 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
18209
182102008-02-01 Kenichi Handa <handa@m17n.org>
18211
18212 * fontset.c (Finternal_char_font): Fix for the case of POSITION
18213 being nil.
18214
182152008-02-01 Kenichi Handa <handa@m17n.org>
18216
18217 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
18218
182192008-02-01 Kenichi Handa <handa@m17n.org>
18220
18221 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
18222
182232008-02-01 Kenichi Handa <handa@m17n.org>
18224
18225 * search.c (simple_search): Fix previous change.
18226
182272008-02-01 Kenichi Handa <handa@m17n.org>
18228
18229 * xftfont.c (ftfont_font_format): Extern declaration.
18230
18231 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
18232
18233 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
18234 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
18235
18236 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
18237 (ftfont_font_format): Fix previous change.
18238
18239 * font.h (Ffont_xlfd_name): EXFUN it.
18240
18241 * font.c (font_parse_xlfd): Fix the array size of `f'.
18242 (register_font_driver): Use EQ to compare driver->type.
18243
18244 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
18245 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
18246 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
18247
182482008-02-01 Kenichi Handa <handa@m17n.org>
18249
18250 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
18251 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
18252
182532008-02-01 Kenichi Handa <handa@m17n.org>
18254
18255 * xfont.c (xfont_open): Set font->format.
18256
18257 * xftfont.c (xftfont_open): Set font->format.
18258
18259 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
18260 (ftfont_list): Include FC_FONTFORMAT in FcObject.
18261 (ftfont_open): Set font->format.
18262 (ftfont_font_format): New function.
18263
18264 * font.h (struct font): New member format.
18265
18266 * font.c (Qopentype): New variable.
18267 (syms_of_font): Defsym it.
18268 (Fquery_font): Change the format of the last element of the return
18269 value.
18270
182712008-02-01 Kenichi Handa <handa@m17n.org>
18272
18273 * xfns.c (xic_create_xfontset): Try the default fontset name as a
18274 last resort.
18275
182762008-02-01 Kenichi Handa <handa@m17n.org>
18277
18278 * coding.c (detect_coding_charset): Fix detection of multi-byte
18279 charset.
18280
182812008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
18282
18283 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
18284
182852008-02-01 Kenichi Handa <handa@m17n.org>
18286
18287 * xdisp.c (get_next_display_element): Set it->face_id for the
18288 first component of a composition.
18289 (x_produce_glyphs): Check if the font is changed or not for composition.
18290
182912008-02-01 Kenichi Handa <handa@m17n.org>
18292
18293 * fontset.c (Qlatin): New variable.
18294 (syms_of_fontset): Define it as a lisp symbol.
18295 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
18296
182972008-02-01 Kenichi Handa <handa@m17n.org>
18298
18299 * font.c (font_unparse_fcname): Pay attention to the case that
18300 some of font property is a null string.
18301
183022008-02-01 Kenichi Handa <handa@m17n.org>
18303
18304 * term.c: Include "composite.h".
18305 (encode_terminal_code): Output all components of composition.
18306 Check the size of encode_terminal_src.
18307 (produce_glyphs): For composition, call produce_composite_glyph.
18308 (append_composite_glyph, produce_composite_glyph): New functions.
18309
18310 * xdisp.c (x_produce_glyphs): In handling composition, if a font
18311 is not found, get font_info from the current ascii face.
18312
183132008-02-01 Kenichi Handa <handa@m17n.org>
18314
18315 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
18316 buffer-file-name to Qnil before calling insert_from_buffer.
18317
18318 * font.c (font_unparse_fcname): Pay attention to the case that
18319 foundry is a null string.
18320
183212008-02-01 Kenichi Handa <handa@m17n.org>
18322
18323 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
18324
18325 * font.c (Qunicode_sip): New variable.
18326 (syms_of_font): Declare it as a Lisp symbol.
18327
18328 * font.h (Qunicode_sip): Extern it.
18329
183302008-02-01 Kenichi Handa <handa@m17n.org>
18331
18332 * composite.c (get_composition_id): Pay attention to TAB component.
18333
18334 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
18335 TAB. Adjust for the change of s->char2b which always points to
18336 the first element of allocated memory.
18337
18338 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
18339
18340 * xdisp.c (handle_composition_prop): Set it->c to the first
18341 non-TAB component.
18342 (fill_composite_glyph_string): Change argument.
18343 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
18344 (x_produce_glyphs): Fix handling of left/right padding.
18345
183462008-02-01 Kenichi Handa <handa@m17n.org>
18347
18348 * coding.c (detect_coding_system): Fix for handling off
18349 inhibit_iso_escape_detection. Fix for the case that no coding
18350 system is defined for a specific coding category.
18351
183522008-02-01 Kenichi Handa <handa@m17n.org>
18353
18354 * font.c (font_matching_entity): Delete unused local var.
18355
18356 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
18357 opening a font.
18358
18359 * fileio.c (Finsert_file_contents): On recovering a file, assume
18360 Unix-like eol.
18361 (choose_write_coding_system): On auto-saving a file, force
18362 Unix-like eol.
18363
18364 * coding.c (setup_coding_system): Fix setting of
18365 coding->common_flags based on eol_type.
18366 (coding_inherit_eol_type): If PARENT is not nil, be sure to
18367 inherit from it.
18368
183692008-02-01 Kenichi Handa <handa@m17n.org>
18370
18371 * alloc.c (NSTATICS): Increas to 0x600.
18372
183732008-02-01 Kenichi Handa <handa@m17n.org>
18374
18375 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
18376 (ftfont_list): Don't check :name property.
18377 (ftfont_match): New function.
18378 (ftfont_pattern_entity): If the pattern doesn't contain
18379 FC_SPACING, don't assume FC_MONO.
18380
18381 * font.h (struct font_driver): New member `match'.
18382 (font_update_drivers): Adjust prototype.
18383
18384 * font.c (font_parse_fcname, font_parse_name): Don't change :name
18385 property of FONT.
18386 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
18387 them unconditionally.
18388 (font_matching_entity): New function.
18389 (font_open_by_name): Try font_matching_entity if exact match is
18390 not found.
18391 (font_update_drivers): Delete the arg FONT. Return a list of
18392 actually used backends. Don't free faces, font caches here.
18393 Don't store data in frame parameters. Don't call x_set_font.
18394 (Ffont_spec): Store :name property as is.
18395 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
18396 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
18397 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
18398 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
18399 Call font->driver->otf_gsub instead of font_otf_gsub.
18400
18401 * frame.c (x_set_font_backend): Do more works that were done in
18402 font_update_drivers before.
18403
18404 * xfont.c (xfont_match): New function.
18405 (xfont_driver): Set xfont_driver.match to xfont_match.
18406 (xfont_draw): Set font in GC if necessary.
18407
18408 * ftxfont.c (ftxfont_match): New function.
18409 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
18410
18411 * xftfont.c (xftfont_match): New function.
18412 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
18413
184142008-02-01 Kenichi Handa <handa@m17n.org>
18415
18416 * font.h (struct font): New member scalable.
18417 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
18418 (font_otf_gsub): Adjust prototype.
18419
18420 * font.c (font_otf_capability): Fix handling of the default langsys.
18421 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
18422 Check the contents of SPEC.
18423 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
18424 (check_gstring): New function.
18425 (REPLACEMENT_CHARACTER): New macro.
18426 (font_otf_gsub): New arg alternate_subst. Be sure to set all
18427 glyph codes of GSTRING.
18428 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
18429 (font_prepare_composition): Set cmp->glyph_len.
18430 (font_open_entity): Set font->scalable.
18431 (Ffont_get): Handle :otf property.
18432 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
18433 functions.
18434 (Fquery_font): Use font->font.full_name.
18435 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
18436 Sfont_otf_alternates.
18437
18438 * ftfont.c (ftfont_open): Set font->font.full_name and
18439 font->font.name properly. Fix calculation of font->font.height
18440 and font->min_width.
18441
18442 * ftxfont.c (ftxfont_create_gcs): New function.
18443 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
18444 (ftxfont_draw_backgrond): Fix filling region.
18445 (ftxfont_default_fid): New function.
18446 (ftxfont_open): Set xfont->fid to the return value of
18447 ftxfont_default_fid.
18448 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
18449 (ftxfont_done_face): Free only GCs that are created by
18450 ftxfont_create_gcs.
18451 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
18452
18453 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
18454 Clip to src->width, etc (not src->clip_XXX).
18455
18456 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
18457 FontBackend frame parameter.
18458
184592008-02-01 Kenichi Handa <handa@m17n.org>
18460
18461 * font.h (struct font_driver_list): New member `on'.
18462 (Fclear_font_cache): EXFUN it.
18463 (font_update_drivers): Extern it.
18464
18465 * font.c (font_unparse_fcname): Fix typo (swidth->width).
18466 (font_list_entities): Check driver_list->on.
18467 (register_font_driver): Initalize `on' member to 0.
18468 (font_update_drivers): New function.
18469 (Fclear_font_cache): Check driver_list->on.
18470
18471 * frame.h (Qfont_backend): Extern it.
18472 (x_set_font_backend): Extern it.
18473
18474 * frame.c (Qfont_backend): New variable.
18475 (frame_parms): New element for font-backend.
18476 (x_set_font_backend): New function.
18477
18478 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
18479 FontBackend frame parameter.
18480 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
18481 x_set_font_backend.
18482
18483 * xfont.c (xfont_list): Don't try listing by :name property if the
18484 name is not for XLFD.
18485
184862008-02-01 Kenichi Handa <handa@m17n.org>
18487
18488 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
18489 (LGLYPH_SET_TO): New macros.
18490 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
18491 element of G is vector or not.
18492 (font_at): Extern it.
18493
18494 * font.c: Include window.h.
18495 (font_lispy_object): New function.
18496 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
18497 end of valid glyph.
18498 (font_close_object): Fix getting (struct font *).
18499 (font_at): New function.
18500 (Ffont_get): If FONT is a font-object, get entity from it.
18501 (Ffont_make_gstring): Initialize elements of glyphs with nil.
18502 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
18503 range check.
18504 (Ffont_at): New function.
18505 (syms_of_font): Defsubr Sfont_at.
18506
18507 * xdisp.c (it_props): Move the entry for Qauto_composed to just
18508 before the entry for Qcomposition.
18509 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
18510 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
18511 the font in gstring.
18512 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
18513 LGLYPH_FORM (g) to detect the end of valid glyph.
18514 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
18515 we are composing with gstring.
18516
18517 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
18518 Check if adjustment is vector or not.
18519
18520 * Makefile.in (font.o): Make it depends on window.h.
18521
185222008-02-01 Kenichi Handa <handa@m17n.org>
18523
18524 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
18525 adjustment is vector or not.
18526
185272008-02-01 Miles Bader <miles@gnu.org>
18528
18529 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
18530
185312008-02-01 Kenichi Handa <handa@m17n.org>
18532
18533 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
18534 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
18535 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
18536
18537 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
18538 (DEVICE_DELTA): Fix typo.
18539 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
18540 LGLYPH format.
18541
18542 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18543 the change of LGLYPH format.
18544
185452008-02-01 Kenichi Handa <handa@m17n.org>
18546
18547 * ftfont.c (ftfont_list): Fix typo.
18548 (ftfont_build_basic_charsets): Don't include letters with diacritics.
18549
185502008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18551
18552 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
18553
18554 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
18555 xftface_info is non-NULL.
18556
185572008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18558
18559 * ftfont.c (ftfont_list): Move misplaced #endif.
18560
185612008-02-01 Kenichi Handa <handa@m17n.org>
18562
18563 * ftfont.c (ftfont_list): Pay attention to the case that
18564 FC_CAPABILITY is not defined.
18565
185662008-02-01 Kenichi Handa <handa@m17n.org>
18567
18568 * xftfont.c (xftfont_open): Set charset related members to -1.
18569
18570 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
18571 QCname.
18572 (ftfont_open): Set charset related members to -1.
18573
18574 * fontset.c (Votf_script_alist): New variable.
18575 (syms_of_fontset): Initialize it.
18576 (fontset_font): Delete unused variable.
18577
18578 * fontset.h (Votf_script_alist): Extern it.
18579
18580 * font.c (font_find_for_lface): Optimize code.
18581
18582 * font.h (font_close_object, font_merge_old_spec): Extern them.
18583
185842008-02-01 Kenichi Handa <handa@m17n.org>
18585
18586 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
18587 (syms_of_font): Initialize them.
18588 (font_pixel_size): Allow float value in dpi.
18589 (font_prop_validate_type): Delete.
18590 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
18591 Change caller.
18592 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
18593 (font_prop_validate_extra): Delete.
18594 (font_prop_validate_spacing): New function.
18595 (font_property_table): Add elements for all known properties.
18596 (get_font_prop_index): Rename from check_font_prop_name. New
18597 argument FROM. Change caller.
18598 (font_prop_validate): Validate all known properties.
18599 (font_put_extra): Delete argument force. Change caller.
18600 (font_expand_wildcards): Make it static. Fix the way of shrinking
18601 the possible range.
18602 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
18603 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
18604 Change caller.
18605 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
18606 (font_parse_fcname): Delete argument merge. Fix parsing of point
18607 size. Don't validate properties values here. Change caller.
18608 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
18609 (font_open_by_name): Delete unused variable.
18610 (Ffont_spec): Likewise. Validate property values.
18611 (Ffont_match_p): New function.
18612
18613 * font.h (QCscalable): Extern it.
18614 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
18615
18616 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
18617
18618 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
18619 (xfont_list_pattern): New function.
18620 (xfont_list): Use xfont_list_pattern.
18621
186222008-02-01 Kenichi Handa <handa@m17n.org>
18623
18624 * font.h (Flist_fonts): EXFUN it.
18625
186262008-02-01 Jason Rumney <jasonr@gnu.org>
18627
18628 * w32term.c (w32_initialize): Add back smoothing_type and
18629 smoothing_enabled definitions.
18630
186312008-02-01 Kenichi Handa <handa@m17n.org>
18632
18633 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
18634 s->face->font on determining underline position.
18635
186362008-02-01 Kenichi Handa <handa@m17n.org>
18637
18638 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
18639 (font_has_char): Accept font-object too.
18640 (font_find_for_lface): Try at first with a size specified in face.
18641
186422008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
18645 font_open_by_name.
18646
186472008-02-01 Kenichi Handa <handa@m17n.org>
18648
18649 * font.h (QCspacing, QCdpi): Extern them.
18650 (enum font_spacing): New enum.
18651 (FONT_PIXEL_SIZE_QUANTUM): New macro.
18652
18653 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
18654 (QCspacing, QCdpi): New variables.
18655 (syms_of_font): Initialize them.
18656 (font_pixel_size): New function.
18657 (font_put_extra): New function.
18658 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
18659 in FONT_EXTRA.
18660 (font_parse_fcname): Handle enumerated values (e.g. bold).
18661 Fix handling font size. Add QCname property that contains only
18662 unknown properties.
18663 (font_score): Change argument. Change caller. Pay attention to
18664 FONT_PIXEL_SIZE_QUANTUM.
18665 (font_sort_entites, font_list_entities, font_find_for_lface)
18666 (font_open_for_lface, font_open_by_name): Fix handling of font size.
18667 (Ffont_spec): Add QCname property that contains only unknown properties.
18668
18669 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
18670 include weight in listing pattern, instead check weight of each
18671 listed font. Don't include scalable in pattern. Pay attention to
18672 FONT_PIXEL_SIZE_QUANTUM.
18673
186742008-02-01 Kenichi Handa <handa@m17n.org>
18675
18676 * font.c (font_parse_fcname): Fix parsing of point-size.
18677 (font_unparse_fcname): Produce symbolic names for style properties.
18678 (font_list_entities): Handle float size correctly.
18679 (font_open_by_name): Prefer `normal' property values if the name
18680 doesn't specify them.
18681
18682 * fontset.c (Finternal_char_font): Use font_get_name, not
18683 Ffont_xlfd_name.
18684
18685 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
18686 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
18687 pattern. Don't force scalable.
18688
18689 * xftfont.c (xftfont_open): For generating a name, start from
18690 96-byte buffer.
18691
186922008-02-01 Jan Djärv <jan.h.d@swipnet.se>
18693
18694 * frame.h (x_new_fontset2): Fix prototype.
18695
186962008-02-01 Kenichi Handa <handa@m17n.org>
18697
18698 * font.h (struct font_driver): Delete member parse_name.
18699 (font_match_p, font_get_spec, font_parse_fcname)
18700 (font_unparse_fcname): Extern them.
18701 (font_get_name): Adjust prototype.
18702
18703 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
18704 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
18705 (font_expand_wildcards): Fix handling ENCODING field. Avoid
18706 unnecessary checks for weight, slant, and swidth.
18707 (font_parse_fcname): New function.
18708 (font_unparse_fcname): New function.
18709 (font_parse_name): New function.
18710 (font_match_p): New function.
18711 (font_get_name): Change return value to Lisp string.
18712 (font_get_spec): New function.
18713 (Qunspecified, Qignore_defface): Don't extern them.
18714 (font_find_for_lface): Assume that LFACE is fully specified.
18715 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
18716 object, use it for FACE.
18717 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
18718 driver->parse_name.
18719 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
18720
18721 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
18722 prototype.
18723
18724 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
18725 argument F. Don't call Fnew_fontset. Instead, directly call
18726 make_fontset.
18727
18728 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
18729
18730 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
18731 of x_new_fontset2.
18732
18733 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
18734 (Qsans__serif): New variables.
18735 (ftfont_generic_family_list): New variable.
18736 (syms_of_ftfont): Initialize the above variables.
18737 (ftfont_pattern_entity): Delete argument NAME.
18738 (ftfont_list_generic_family): New function.
18739 (ftfont_parse_name): Delete this function.
18740 (ftfont_list): Try generic family only when FcFontList found no font.
18741 (ftfont_list_family): Fix args to FcObjectSetBuild.
18742
18743 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
18744 object in attrs[LFACE_FONT_INDEX].
18745 (set_lface_from_font_name): Cancel all changes for font-backend.
18746 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
18747 function.
18748 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
18749 font object in QCfont attribute.
18750 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
18751 (realize_default_face) [USE_FONT_BACKEND]: Call
18752 set_lface_from_font_and_fontset.
18753
18754 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
18755 "fixed", and signal error here if no suitable font was found.
18756
18757 * xfont.c (xfont_parse_name): Delete this function.
18758
18759 * xftfont.c (xftfont_open): Change coding style of error
18760 handling. Generate fontconfig's fontname pattern.
18761
18762 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
18763 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
18764
18765 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
18766 Both args FONTSET and FONT_OBJECT must be existing ones.
18767
187682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18769
18770 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
18771
187722008-02-01 Kenichi Handa <handa@m17n.org>
18773
18774 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
18775
18776 * font.h (struct font): Fix typo.
18777
18778 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
18779 XLFD_XXX_INDEX.
18780 (enum xlfd_field_mask): New enum.
18781 (intern_font_field): Changed argument. Change caller. If digits
18782 are followed by non-digits, return a symbol.
18783 (font_expand_wildcards): New function.
18784 (font_parse_xlfd): Fix wildcard handling.
18785 (Ffont_spec): If :name is specified, reflect the info in the other
18786 properties.
18787
18788 * ftfont.c (ftfont_pattern_entity): Fix typo.
18789 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
18790 locale.
18791
187922008-02-01 Kenichi Handa <handa@m17n.org>
18793
18794 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
18795
18796 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
18797 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
18798 registry doesn't specify encoding part.
18799 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
18800 (font_open_by_name): At first try parsing the name.
18801 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
18802 as Lisp symbols.
18803
18804 * fontset.c (reorder_font_vector): Pay attention to the case that
18805 the 3rd element of font_def is nil.
18806 (fontset_font): For the default fontset, append one more fontset
18807 elements for a script-based font specification. Don't add script
18808 attribute on finding a font.
18809 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
18810 font name.
18811 (fontset_ascii_font): If a font can't be opened, return nil.
18812
18813 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
18814 (ftfont_pattern_entity): New function.
18815 (ftfont_get_cache): Assume that freetype_font_cache is already
18816 initialized.
18817 (ftfont_list): Handle the case that a file is specified in font
18818 name. Use ftfont_pattern_entity to generate entities.
18819 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
18820 (syms_of_ftfont): Initialize freetype_font_cache.
18821
18822 * xftfont.c (xftfont_open): Make the font name fontconfig's
18823 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
18824 (xftfont_close): Free font->font.name if not NULL.
18825
18826 * xfont.c (xfont_list): If script is specified for a font, return
18827 null_vector.
18828 (xfont_list_family): Declare argument type.
18829
18830 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
18831 name, set LFACE_FONT (lface) to nil.
18832
18833 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
18834 return Qnil.
18835
188362008-02-01 Kenichi Handa <handa@m17n.org>
18837
18838 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
18839 (standard_args): Add "-enable-font-backend".
18840
188412008-02-01 Kenichi Handa <handa@m17n.org>
18842
18843 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
18844 (struct xftdraw_list, xftdraw_list): Delete them.
18845 (register_xftdraw, check_xftdraw): Delete them.
18846 (xftfont_prepare_face): Don't call register_xftdraw.
18847 (xftfont_done_face): Don't call check_xftdraw.
18848 (xftfont_draw): Get background color only when with_background is
18849 nonzero.
18850
18851 * xfont.c (xfont_encode_char): Fix calculation of char2b.
18852
188532008-02-01 Kenichi Handa <handa@m17n.org>
18854
18855 These changes are for the new font handling codes.
18856
18857 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
18858 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
18859 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
18860 (FONTSRC, FONTOBJ): New variables.
18861 (obj): Add $(FONTOBJ).
18862 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
18863 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
18864 @LIBOTF_LIBS@.
18865 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
18866 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
18867
18868 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
18869
18870 * character.h (Vscript_representative_chars): Extern it.
18871
18872 * character.c (Vscript_representative_chars): New variable.
18873 (syms_of_character): Declare it as a Lisp variable.
18874
18875 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
18876 enable_font_backend is nonzero, accept the composition method
18877 COMPOSITION_WITH_GLYPH_STRING.
18878
18879 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
18880 enumeration COMPOSITION_WITH_GLYPH_STRING.
18881
18882 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
18883 members clip_x, clip_y, clip_width, and clip_height.
18884 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
18885
18886 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
18887 --enable-font-backend. Call syms_of_font.
18888
18889 * fns.c (assoc_no_quit): New function.
18890
18891 * fontset.h (FONT_INFO_FROM_FACE): New macro.
18892 (face_for_font, new_fontset_from_font)
18893 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
18894
18895 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
18896 (fontset_font, fontset_ascii, face_for_char)
18897 (make_fontset_for_ascii_face, Ffont_info)
18898 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
18899 is nonzero, use font-backend mechanism.
18900 (find_font_encoding): Make it non-static.
18901 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
18902 New functions.
18903
18904 * frame.h (struct frame): New members resx and resy.
18905 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
18906 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
18907
18908 * frame.c [USE_FONT_BACKEND]: Include "font.h".
18909 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
18910
18911 * lisp.h (assoc_no_quit): Extern it.
18912
18913 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
18914 Through out the file, use FONT_INFO_FROM_FACE instead of
18915 FONT_INFO_FROM_ID, use get_per_char_metric instead of
18916 rif->per_char_metric.
18917 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
18918 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
18919 (get_glyph_face_and_encoding, fill_composite_glyph_string)
18920 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
18921 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
18922 nonzero, use font-backend mechanism.
18923 (get_per_char_metric): New function.
18924
18925 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
18926 (set_lface_from_font_name)
18927 (set_font_frame_param, free_realized_face)
18928 (prepare_face_for_display, clear_face_gcs)
18929 (Finternal_set_font_selection_order, realize_x_face)
18930 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
18931 font-backend mechanism.
18932 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
18933 (load_face_font) [USE_FONT_BACKEND]: Abort.
18934 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
18935 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
18936
18937 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
18938 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
18939 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
18940 nonzero, register all available font drivers. Call
18941 x_default_font_parameter for deciding a font.
18942 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
18943
18944 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
18945 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
18946 (x_set_glyph_string_clipping_exactly)
18947 (x_compute_glyph_string_overhangs)
18948 (x_draw_glyph_string_foreground)
18949 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
18950 (x_free_frame_resources) [USE_FONT_BACKEND]: If
18951 enable_font_backend is nonzero, use font-backend mechanism.
18952 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
18953
189542008-02-01 Kenichi Handa <handa@m17n.org>
18955
18956 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
18957 system_eol_type.
18958 (syms_of_coding): Initialize system_eol_type.
18959
18960 * process.c (Fset_process_coding_system): Inherit system's eol
18961 format if necessary.
18962
189632008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18964
18965 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
18966
189672008-02-01 Kenichi Handa <handa@m17n.org>
18968
18969 * coding.c (decode_eol): Pay attention to buffer relocation in
18970 del_range_2.
18971 (decode_coding): Call decode_eol before restoring undo_list.
18972
189732008-02-01 Kenichi Handa <handa@m17n.org>
18974
18975 * charset.c (Fdefine_charset_internal): Fix setting of
18976 emacs_mule_bytes.
18977
189782008-02-01 Kenichi Handa <handa@m17n.org>
18979
18980 * keyboard.c (read_char): Check if C is a character or not before
18981 looking up Vkeyboard_translate_table.
18982
189832008-02-01 Kenichi Handa <handa@m17n.org>
18984
18985 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
18986 condition to terminate the loop.
18987
189882008-02-01 Kenichi Handa <handa@m17n.org>
18989
18990 * coding.c (produce_composition): Compare charbuf[i] instead of
18991 args[i] against 0.
18992 (Fterminal_coding_system): Use EQ to compare Lisp objects.
18993
189942008-02-01 Kenichi Handa <handa@m17n.org>
18995
18996 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
18997 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
18998 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
18999 detect_coding.
19000 (emacs_mule_char): Handle old style (Emacs 20) component character
19001 of a composition.
19002 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
19003 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
19004 composition rule.
19005 (decode_coding_emacs_mule): Handle invalid bytes correctly.
19006
190072008-02-01 Kenichi Handa <handa@m17n.org>
19008
19009 * coding.c (encode_coding_ccl): Allocate destination dynamically
19010 when necessary.
19011
190122008-02-01 Kenichi Handa <handa@m17n.org>
19013
19014 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
19015 the loop. When quitted, show a proper error message.
19016
190172008-02-01 Kenichi Handa <handa@m17n.org>
19018
19019 * xterm.c (x_set_glyph_string_clipping_exactly): Set
19020 src->clip_head and src->clip_tail temporarily instead of src->hl.
19021
19022 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
19023 character sequence.
19024 (Fccl_execute_on_string): Use ASET, not XSET.
19025
190262008-02-01 Kenichi Handa <handa@m17n.org>
19027
19028 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
19029
190302008-02-01 Kenichi Handa <handa@m17n.org>
19031
19032 * coding.c (decode_coding): Fix the condition of terminating the
19033 decoding loop.
19034
190352008-02-01 Kenichi Handa <handa@m17n.org>
19036
19037 * data.c (Faset): On setting a character bigger than 255 in a
19038 unibyte string, signal an error instead of make the string multibyte.
19039
190402008-02-01 Kenichi Handa <handa@m17n.org>
19041
19042 * charset.c (map_charset_chars): Fix for ascii-compatible charset
19043 made by a mapping table.
19044
190452008-02-01 Kenichi Handa <handa@m17n.org>
19046
19047 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
19048 not.
19049 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
19050 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
19051
19052 * xterm.c (x_draw_composite_glyph_string_foreground): Check
19053 s->face is NULL or not.
19054
190552008-02-01 Kenichi Handa <handa@m17n.org>
19056
19057 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
19058 (x_draw_glyph_string): Fix drawing of right_overhang and
19059 left_overhang around/on cursor.
19060
19061 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
19062
190632008-02-01 Kenichi Handa <handa@m17n.org>
19064
19065 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
19066
190672008-02-01 Kenichi Handa <handa@m17n.org>
19068
19069 * coding.c (Fdefine_coding_system_internal)
19070 (Fdefine_coding_system_alias): Avoid a duplicated element in
19071 Vcoding_system_alist.
19072
190732008-02-01 Kenichi Handa <handa@m17n.org>
19074
19075 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
19076
19077 * coding.c (Qcoding_system_define_form): New variable.
19078 (syms_of_coding): Intern and staticpro it.
19079 (Fcoding_system_p): Check Qcoding_system_define_form.
19080 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
19081
19082 * coding.h (CODING_SYSTEM_P): If ID is not available, call
19083 Fcoding_system_p.
19084 (CHECK_CODING_SYSTEM): If ID is not available, call
19085 Fcheck_coding_system.
19086 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
19087 Try also Fcheck_coding_system.
19088
190892008-02-01 Kenichi Handa <handa@m17n.org>
19090
19091 * coding.c (code_conversion_restore): GCPRO arg.
19092
190932008-02-01 Kenichi Handa <handa@m17n.org>
19094
19095 * character.c (lisp_string_width): Check multibyteness of STRING.
19096
190972008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19098
19099 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
19100 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
19101 (decode_mac_font_name): Use decode_coding_c_string instead of
19102 decode_coding.
19103 (x_load_font): Initialize fontp->fontset to -1. Set
19104 fontp->encoding_type.
19105
191062008-02-01 Kenichi Handa <handa@m17n.org>
19107
19108 * search.c (search_buffer): Give up BM search on case-fold-search
19109 if one of a target character has a case-equivalence of different
19110 byte length even if that target charcter is an ASCII.
19111 (simple_search): Fix calculation of byte length of matched text.
19112 (boyer_moore): Fix handling of case-equivalent multibyte characters.
19113
191142008-02-01 Kenichi Handa <handa@m17n.org>
19115
19116 * coding.c (decode_coding): Fix handling of invalid bytes.
19117
191182008-02-01 Kenichi Handa <handa@m17n.org>
19119
19120 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
19121 Unicode characters.
19122
191232008-02-01 Kenichi Handa <handa@m17n.org>
19124
19125 * coding.c (encode_coding_object): If a pre-write-conversion
19126 function makes a new buffer, kill it.
19127
191282008-02-01 Kenichi Handa <handa@m17n.org>
19129
19130 * coding.c (QCascii_compatible_p): New variable.
19131 (syms_of_coding): Initialize it.
19132 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
19133 calling string_char.
19134 (record_conversion_result): Add `default:' case.
19135 (coding_charset_list): Delete unused variable `coding_type'.
19136 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
19137 property in the plist of the coding system.
19138 (Fcoding_system_put): Check QCascii_compatible_p.
19139
191402008-02-01 Miles Bader <miles@gnu.org>
19141
19142 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
19143 removed calculation of frame `f', as it's now used.
19144
191452008-02-01 Kenichi Handa <handa@m17n.org>
19146
19147 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
19148 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
19149 (UNIDATA): New variable.
19150 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
19151 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
19152 $(RUN_TEMACS) unconditionally.
19153
191542008-02-01 Kenichi Handa <handa@m17n.org>
19155
19156 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
19157 (admindir): New variable.
19158 ($(lispsource)international/charprop.el): New target.
19159
191602008-02-01 Miles Bader <miles@gnu.org>
19161
19162 * character.c (chars-in-region): Remove obsolete function.
19163 (syms_of_character): Remove its initialization.
19164
191652008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
19166
19167 * w32select.c (validate_coding_system)
19168 (setup_windows_coding_system): New functions.
19169 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
19170 setup_windows_coding_system.
19171 (setup_config, Fw32_get_clipboard_data): Use
19172 validate_coding_system.
19173 (Fx_selection_exists): Move call to setup_config to a place
19174 where signals are allowed.
19175
19176 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
19177 (Fcheck_coding_system): Add declarations.
19178
191792008-02-01 Kenichi Handa <handa@m17n.org>
19180
19181 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
19182
191832008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19184
19185 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
19186 string as the second argument for x_new_fontset.
19187
191882008-02-01 Kenichi Handa <handa@m17n.org>
19189
19190 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
19191 (encode_coding_object): Use safe_call instead of call2.
19192
191932008-02-01 Kenichi Handa <handa@m17n.org>
19194
19195 * fontset.c (Fset_fontset_font): Check family element of a given vector.
19196
19197 * Makefile.in (lisp): Include charprop.el.
19198
191992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19200
19201 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
19202 Not sure if it's unnecessary.
19203
192042008-02-01 Steven Tamm <steventamm@mac.com>
19205
19206 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
19207 some possibly unnecessary fontset checking code that crashed
19208 when creating a new frame.
19209
192102008-02-01 Kenichi Handa <handa@m17n.org>
19211
19212 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
19213 lookup_face.
19214
19215 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
19216
19217 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
19218
192192008-02-01 Kenichi Handa <handa@m17n.org>
19220
19221 * coding.c: Cancel the change done in HEAD on 2008-02-01.
19222 (coding_charset_list): New function.
19223
19224 * coding.h (coding_charset_list): Extern it.
19225
192262008-02-01 Kenichi Handa <handa@m17n.org>
19227
19228 * fontset.c (Fset_fontset_font): Call find_font_encoding with
19229 concatenation of family and registry.
19230
192312008-02-01 Kenichi Handa <handa@m17n.org>
19232
19233 * character.h (BYTE8_STRING): Fix typo.
19234
19235 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
19236 string to multibyte (sync to HEAD).
19237
19238 * casefiddle.c (casify_region): Handle changes in byte-length
19239 using replace_range_2 (sync to HEAD).
19240
192412008-02-01 Andreas Schwab <schwab@suse.de>
19242
19243 * chartab.c (map_char_table): GCPRO table and arg.
19244
192452008-02-01 Kenichi Handa <handa@m17n.org>
19246
19247 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
19248 already at limit.
19249
192502008-02-01 Kenichi Handa <handa@m17n.org>
19251
19252 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
19253 instead of fast_c_string_match_ignore_case.
19254 (find_font_encoding): Change argument to Lisp_Object. Use
19255 fast_string_match_ignore_case instead of
19256 fast_c_string_match_ignore_case. Change caller.
19257
192582008-02-01 Kenichi Handa <handa@m17n.org>
19259
19260 * xdisp.c (get_next_display_element): In unibyte case, decide to
19261 display in octal form by checking a character by
19262 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
19263
19264 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
19265
19266 * character.c (unibyte_has_multibyte_table): New variable.
19267
19268 * character.h (unibyte_has_multibyte_table): Extern it.
19269 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
19270
192712008-02-01 Kenichi Handa <handa@m17n.org>
19272
19273 * coding.c (encode_coding_iso_2022): Fix handling of charset
19274 annotation.
19275
192762008-02-01 Kenichi Handa <handa@m17n.org>
19277
19278 * coding.c (setup_coding_system): If coding_system is nil, use
19279 Qundecided.
19280 (Fterminal_coding_system): Return nil if terminal coding system is
19281 `undecided'.
19282 (syms_of_coding): Define coding-system `undecided' here. Setup
19283 terminal_coding as `undecided'.
19284
192852008-02-01 Kenichi Handa <handa@m17n.org>
19286
19287 * xdisp.c (message_dolog, set_message_1): Call
19288 unibyte_char_to_multibyte with arg type int.
19289
19290 * lread.c (read1): Fix reading of a char-table.
19291
19292 * print.c (print_object): Include sub char-table in circularities
19293 detection.
19294
192952008-02-01 Kenichi Handa <handa@m17n.org>
19296
19297 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
19298 Append the found sequences in car of ARGS instead of prepending.
19299
193002008-02-01 Kenichi Handa <handa@m17n.org>
19301
19302 * fileio.c (report_file_error): Make a unibyte string from
19303 strerror (errorno).
19304 (Fsubstitute_in_file_name): Fix the arg to
19305 unibyte_char_to_multibyte. It is evaluated twice.
19306
193072008-02-01 Kenichi Handa <handa@m17n.org>
19308
19309 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
19310
193112008-02-01 Kenichi Handa <handa@m17n.org>
19312
19313 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
19314 BOM is not found.
19315 (detect_coding, detect_coding_system): Optimization for ISO-2022
19316 when no 8-bit data is found.
19317
193182008-02-01 Jason Rumney <jasonr@gnu.org>
19319
19320 * w32fns.c (x_to_w32_font): Update to use new coding struct.
19321
193222008-02-01 Kenichi Handa <handa@m17n.org>
19323
19324 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
19325 CHARS.
19326
193272008-02-01 Steven Tamm <steventamm@mac.com>
19328
19329 * macterm.c (mac_encode_char): Add charset argument and update
19330 to use encoding_type.
19331 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
19332 switch to pure fontset.
19333 (decode_mac_font_name): Temporarily remove decoding.
19334 (x_font_name_to_mac_font_name): Temporarily remove encoding.
19335 (x_load_font): Temporarily remove encoding.
19336
193372008-02-01 Kenichi Handa <handa@m17n.org>
19338
19339 * xfaces.c (Fface_font): If frame is not on a window system,
19340 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
19341 refer to face->font.
19342 (split_font_name_into_vector, build_font_name_from_vector)
19343 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
19344 when HAVE_WINDOW_SYSTEM is defined.
19345
193462008-02-01 Kenichi Handa <handa@m17n.org>
19347
19348 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
19349 (x_produce_glyphs): Fix setting of members of cmp in case
19350 cmp->glyph_len is zero.
19351
19352 * fontset.c (Fset_fontset_font): Fix docstring.
19353 (Ffontset_info): Make it backward compatible. New arg ALL.
19354
193552008-02-01 Kim F. Storm <storm@cua.dk>
19356
19357 * process.c (read_process_output): Grow decoding_buf when needed;
19358 this could cause a crash in allocate_string and compact_small_strings.
19359
193602008-02-01 Kenichi Handa <handa@m17n.org>
19361
19362 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
19363
193642008-02-01 Kenichi Handa <handa@m17n.org>
19365
19366 * coding.c (setup_coding_system): Set coding->common_flags
19367 correctly for raw-text.
19368 (consume_chars): On encoding unibyte text by raw-text, don't check
19369 multibyte form.
19370 (encode_coding): On encoding by raw-text, never use translation tables.
19371
19372 * fileio.c (e_write): Short cut for the case of no encoding.
19373
193742008-02-01 Kenichi Handa <handa@m17n.org>
19375
19376 * coding.c (detect_coding, detect_coding_system): Delete unused
19377 variables.
19378
193792008-02-01 Kenichi Handa <handa@m17n.org>
19380
19381 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
19382 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
19383
193842008-02-01 Kenichi Handa <handa@m17n.org>
19385
19386 * coding.c (Ffind_coding_systems_region_internal): Include
19387 raw-text and no-conversion in the result.
19388
193892008-02-01 Kenichi Handa <handa@m17n.org>
19390
19391 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
19392 (load_font_get_repertory): Delete unnecessary check of ENCODING of
19393 FONT_DEF.
19394 (font_def_arg, add_arg, from_arg, to_arg): New args.
19395 (set_fontset_font): Change argument.
19396 (Fset_fontset_font): Fix for the case that TARGET is a script
19397 name and charset name.
19398 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
19399
194002008-02-01 Kenichi Handa <handa@m17n.org>
19401
19402 * fontset.c (fontset_font): Rename from fontset_face. Change return
19403 value.
19404 (face_suitable_for_char_p, face_for_char): Adjust for the change
19405 of fontset_font.
19406 (make_fontset_for_ascii_face): Fix setting of the fontset element
19407 for ASCII.
19408 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
19409 to get a font name.
19410 (Ffontset_info): Adjust for the change of fontset_font.
19411
19412 * coding.c (emacs_mule_char): Check invalid code more rigidly.
19413
19414 * character.h (LEADING_CODE_LATIN_1_MIN)
19415 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
19416
194172008-02-01 Kenichi Handa <handa@m17n.org>
19418
19419 * editfns.c (check_translation): New function.
19420 (Ftranslate_region_internal): Handle M:N mapping.
19421
194222008-02-01 Kenichi Handa <handa@m17n.org>
19423
19424 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
19425
194262008-02-01 Kenichi Handa <handa@m17n.org>
19427
19428 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
19429 goto invalid_code.
19430 (decode_coding_iso_2022): Fix handling of invalid designation.
19431
19432 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
19433 after calling code_conversion_save.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
19438
19439 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
19440
19441 * fontset.c: Include "intervals.h".
19442 (fontset_face): Fix comparing of Lisp_Objects.
19443 (free_face_fontset, new_fontset_from_font_name): Fix
19444 Lisp_Object/int mixup.
19445
19446 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
19447
19448 * coding.c: Add many prototypes for static functions.
19449 (get_translation_table): Allow max_lookup to be NULL.
19450 (decode_coding, Ffind_coding_systems_region_internal)
19451 (Funencodable_char_position, Fcheck_coding_systems_region): Call
19452 get_translation_table with max_lookup NULL.
19453
194542008-02-01 Kenichi Handa <handa@m17n.org>
19455
19456 * coding.c (get_translation_table): Declare it as Lisp_Object.
19457 (LOOKUP_TRANSLATION_TABLE): New macro.
19458 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
19459 instead of CHAR_TABLE_REF.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
19464 annotation data format.
19465 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
19466 Change arguments FROM and TO to single argument NCHARS. Change caller.
19467 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
19468 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
19469 (decode_coding_ccl, decode_coding_charset): Pay attention to
19470 coding->charbuf_used.
19471 (get_translation): New function.
19472 (produce_chars): New arguments translation_table and last_block.
19473 Translate characters here. Return number of carryover chars.
19474 Change caller.
19475 (produce_composition): New argument pos. Change caller.
19476 Adjust for the change of annotation data format.
19477 (produce_charset, produce_annotation): Likewise.
19478 (decode_coding, encode_coding): Don't call translate_chars.
19479 (consume_chars): New arg translation_table. Change caller.
19480 (translate_chars): Delete.
19481 (syms_of_coding): Make translation-table's number of extra slots 2.
19482
194832008-02-01 Kenichi Handa <handa@m17n.org>
19484
19485 * search.c (simple_search): Fix setting this_pos_byte in backward
19486 search.
19487
19488 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
19489 byte sequence.
19490 (detect_coding_ccl): Fix setting of the variable valids.
19491
194922008-02-01 Kenichi Handa <handa@m17n.org>
19493
19494 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
19495
19496 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
19497
19498 * editfns.c (Ftranslate_region_internal): Rename from
19499 Ftranslate_region. Accept a char-table in TABLE.
19500 (syms_of_editfns): Defsubr Stranslate_region_internal.
19501
19502 * xfaces.c (set_lface_from_font_name): If a font is specified for
19503 a frame, generate a fontset from the font.
19504 (build_scalable_font_name): If the scalable font is requested for
19505 a specific size, don't change that size.
19506 (try_font_list): Try a scalable font also in the case that a
19507 pattern string is specified.
19508
195092008-02-01 Kenichi Handa <handa@m17n.org>
19510
19511 * xfaces.c (Fface_font): New optional arg CHARACTER.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * charset.h (CHARSET_OFFSET): New macro.
19516
195172008-02-01 Kenichi Handa <handa@m17n.org>
19518
19519 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
19520
19521 * fontset.c (fontset_face): Handle the case that repertory is a
19522 char-table.
19523 (find_font_encoding): Return nil for unknown encoding.
19524 (Fset_fontset_font): Ignore a font of unknown encoding.
19525
195262008-02-01 Kenichi Handa <handa@m17n.org>
19527
19528 * keymap.c (describe_vector): Handle default value of a char table.
19529
19530 * fontset.c (fontset_face): Handle fallback fonts correctly.
19531 (Ffontset_info): Return infomation about fallback fonts.
19532
195332008-02-01 Kenichi Handa <handa@m17n.org>
19534
19535 * fontset.c (FONTSET_DEFAULT): New macro.
19536 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
19537 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
19538 the case that it is nil.
19539 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
19540 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
19541
19542 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
19543 subset or superset.
19544
195452008-02-01 Kenichi Handa <handa@m17n.org>
19546
19547 * emacs.c (main): Call init_charset after syms_of_XXX.
19548
19549 * charset.c (Vcharset_map_directory): Delete.
19550 (Vcharset_map_path): New variable.
19551 (load_charset_map_from_file): Use Vcharset_map_path instead.
19552 (init_charset): Initialize Vcharset_map_path.
19553 (syms_of_charset): Delete declaration of "charset-map-directory",
19554 add declaration of "charset-map-path".
19555
195562008-02-01 Kenichi Handa <handa@m17n.org>
19557
19558 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
19559 ASCII only string.
19560
19561 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
19562
19563 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
19564 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
19565
195662008-02-01 Kenichi Handa <handa@m17n.org>
19567
19568 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
19569
19570 * coding.c (QCmnemonic, QCdefalut_char)
19571 (QCdecode_translation_table, QCencode_translation_table)
19572 (QCpost_read_conversion, QCpre_write_conversion): New variables.
19573 (get_translation_table): Return a list of translation tables if
19574 necessary.
19575 (decode_coding): Call get_translation_table with ENCODEP 0.
19576 (char_encodable_p): If translation_table is non-nil, always call
19577 translate_char.
19578 (Fdefine_coding_system_internal): Accept list of translation
19579 tables as :encode-translation-table and :decode-translation-table.
19580 (Fcoding_system_put): New function.
19581 (syms_of_coding): Declare new symbols. Defsubr
19582 Scoding_system_put.
19583 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
19584 typically JISX0212.
19585
19586 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
19587 when the charset is superset type.
19588
19589 * character.c (translate_char): Accept list of translation tables.
19590
195912008-02-01 Kenichi Handa <handa@m17n.org>
19592
19593 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
19594 (CODING_ATTR_TRANS_TBL): New macro.
19595
19596 * coding.c (get_translation_table): New function.
19597 (translate_chars): Fix the bug of skipping annotation data.
19598 (decode_coding, encode_coding): Utilize get_translation_table.
19599 (char_encodable_p, Funencodable_char_position): Translate char if
19600 necessary.
19601 (Ffind_coding_systems_region_internal)
19602 (Fcheck_coding_systems_region): Setup translation table for encode
19603 in a coding system attribute vector in advance.
19604 (Fdefine_coding_system_internal): Allow a symbol as translation
19605 table. For shift-jis type coding system, allow 4th charset.
19606
196072008-02-01 Kenichi Handa <handa@m17n.org>
19608
19609 * coding.c (decode_coding_sjis): Check the first byte rigidly.
19610
19611 * xdisp.c (get_next_display_element): Pass -1 as POS to
19612 FACE_FOR_CHAR if displaying a C-string.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * composite.c (get_composition_id): Handle xoff and yoff in a
19617 composition rule.
19618
19619 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
19620 (struct composition): New member lbearing and rbearing.
19621
19622 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
19623 (x_get_glyph_overhangs): Handle a composition glyph.
19624 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
19625
19626 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
19627 composition glyph.
19628
196292008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * print.c: Include charset.h.
19632 (Vprint_charset_text_property): New variable.
19633 (Qdefault): Extern it.
19634 (PRINT_STRING_NON_CHARSET_FOUND)
19635 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
19636 (print_check_string_result): New variable.
19637 (print_check_string_charset_prop): New function.
19638 (print_prune_charset_plist): New variable.
19639 (print_prune_string_charset): New function.
19640 (print_object): Call print_prune_string_charset if
19641 Vprint_charset_text_property is not t.
19642 (print_interval): Print nothing if interval->plist is nil.
19643 (syms_of_print): Declare Vprint_charset_text_property as a lisp
19644 variable. Init and staticpro print_prune_charset_plist.
19645
196462008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * fontset.c (new_fontset_from_font_name): Use the specified font
19649 for all characters in the new fontset.
19650
19651 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19652 OBJECT args.
19653
19654 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
19655 OBJECT args for composition too.
19656
19657 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
19658 OBJECT args.
19659
196602008-02-01 Kenichi Handa <handa@m17n.org>
19661
19662 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
19663
19664 * fontset.c (reorder_font_vector): Adjust for the change of
19665 FONT_DEF format.
19666 (fontset_face): New arg id. Change caller.
19667 (face_for_char): New args pos and object.
19668 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
19669 (fs_query_fontset): Check NAME by Fassoc too.
19670 (Fset_fontset_font): Allow non-XLFD font name.
19671 (Ffontset_info): Adjust for the change of FONT_DEF format.
19672
19673 * fontset.h (face_for_char): Adjust prototype.
19674
19675 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
19676 (append_space, extend_face_to_end_of_line)
19677 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
19678 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
19679
19680 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
19681 POS and OBJECT args.
19682
19683 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
19684 POS and OBJECT args.
19685
196862008-02-01 Jason Rumney <jasonr@gnu.org>
19687
19688 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
19689 of GlobalAlloc'ed memory.
19690
196912008-02-01 Kenichi Handa <handa@m17n.org>
19692
19693 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
19694
19695 * charset.h (charset_table_used): Delete extern.
19696
19697 * charset.c (charset_table_used): Make it static.
19698 (map_charset_chars): Fix args to c_function with.
19699
19700 * chartab.c (map_sub_char_table_for_charset): Fix args to
19701 c_function with.
19702
19703 * coding.h (enum coding_result_code): Delete
19704 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
19705
19706 * coding.c (Qinsufficient_source, Qinconsistent_eol)
19707 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
19708 (Vlast_code_conversion_error): New variables.
19709 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
19710 (ONE_MORE_BYTE): Record error if any instead of signaling an
19711 error. If non-ASCII multibyte char is found, return the negative
19712 value of the code. All callers changed to check it.
19713 (ONE_MORE_BYTE_NO_CHECK): Likewise.
19714 (record_conversion_result): New function. Change all codes setting
19715 coding->result to call this function.
19716 (detect_coding_utf_8, decode_coding_utf_8)
19717 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
19718 Don't use the local variable incomplete.
19719 (emacs_mule_char): Change the second arg to `const'.
19720 (decode_coding): Fix of flushing out unprocessed data.
19721 (make_conversion_work_buffer): Fix making of a work buffer.
19722 (decode_coding_object): Return coding->dst_object.
19723
19724 * fontset.c (set_fontset_font): Fix args.
19725
19726 * lisp.h (CHARACTERBITS): Define as 22.
19727
19728 * process.c (send_process): Be sure to set coding->src_multibyte.
19729
19730 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
19731
197322008-02-01 Kenichi Handa <handa@m17n.org>
19733
19734 * xdisp.c (handle_auto_composed_prop): Give limit to
19735 Fnext_single_char_property_change.
19736
197372008-02-01 Kenichi Handa <handa@m17n.org>
19738
19739 * composite.c (syms_of_composite): Don't make the composition hash
19740 table weak.
19741
19742 * fontset.c (Fset_fontset_font): Fix docstring.
19743
19744 * lisp.h (detect_coding_system): Adjust prototype.
19745
19746 * fileio.c (kill_workbuf_unwind): Delete this function.
19747 (Finsert_file_contents): Adjust the call of detect_coding_system.
19748 Get conversion_buffer by code_conversion_save. Use the macro
19749 CODING_MAY_REQUIRE_DECODING. After decoding, update
19750 coding_system.
19751
19752 * coding.h (make_conversion_work_buffer): Delete extern.
19753 (code_conversion_save): Extern it.
19754
19755 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
19756 (CODING_GET_INFO): Delete argument eol_type. Change callers.
19757 (decode_coding_utf_8): Don't do eol converion.
19758 (detect_coding_utf_16): Check coding->src_chars, not
19759 coding->src_bytes. Add heuristics for those that have no signature.
19760 (decode_coding_emacs_mule, decode_coding_iso_2022)
19761 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
19762 Don't do eol converion.
19763 (adjust_coding_eol_type): Return a new coding system.
19764 (detect_coding): Don't detect eol. Fix for utf-16 detection.
19765 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
19766 each change.
19767 (decode_coding): Pay attention to undo_list. Do eol conversion for
19768 all types of coding-systems (if necessary).
19769 (Vcode_conversion_work_buf_list): Delete it.
19770 (Vcode_conversion_reused_workbuf): Rename from
19771 Vcode_conversion_reused_work_buf.
19772 (Vcode_conversion_workbuf_name): New variable.
19773 (reused_workbuf_in_use): New variable.
19774 (make_conversion_work_buffer): Delete the arg DEPTH.
19775 (code_conversion_restore): Change argument to cons.
19776 (code_conversion_save): Delete the argument BUFFER. Change callers.
19777 (detect_coding_system): New argument src_chars. Change callers.
19778 Fix for utf-16 detection.
19779 (init_coding_once): Don't use ISO_carriage_return.
19780 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
19781 reused_workbuf_in_use.
19782
197832008-02-01 Kenichi Handa <handa@m17n.org>
19784
19785 * keymap.c (store_in_keymap): Pay attention to the case that idx
19786 is a cons specifying a character range.
19787
197882008-02-01 Kenichi Handa <handa@m17n.org>
19789
19790 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
19791 HANDLED_RECOMPUTE_PROPS.
19792
19793 * coding.c (Fdefine_coding_system_internal): Fix checking of
19794 ascii compatibility.
19795
197962008-02-01 Kenichi Handa <handa@m17n.org>
19797
19798 * charset.c (find_charsets_in_text): Delete unused locale variable.
19799 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
19800
19801 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
19802 Resync charset_list to Vemacs_mule_charset_list.
19803
19804 * keymap.c (store_in_keymap): Pay attention to the case that idx
19805 is a cons specifying a character range.
19806
198072008-02-01 Kenichi Handa <handa@m17n.org>
19808
19809 * composite.c (update_compositions): Bind inhibit-read-only, etc
19810 to t before calling remove-list-of-text-properties.
19811
19812 * print.c (print_object): Always print ASCII chars as is.
19813
198142008-02-01 Kenichi Handa <handa@m17n.org>
19815
19816 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
19817
19818 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
19819 is a char table.
19820
198212008-02-01 Kenichi Handa <handa@m17n.org>
19822
19823 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
19824
198252008-02-01 Kenichi Handa <handa@m17n.org>
19826
19827 * xfaces.c (set_lface_from_font_name): Fix for the case that
19828 FONTNAME is not fontset name.
19829
198302008-02-01 Kenichi Handa <handa@m17n.org>
19831
19832 * fns.c (base64_encode_1): Fix previous change.
19833
198342008-02-01 Kenichi Handa <handa@m17n.org>
19835
19836 * fontset.c (set_fontset_font): New function.
19837 (Fset_fontset_font): If a font is specified for a charset, use
19838 map_charset_chars to store the font spec in a fontset.
19839
198402008-02-01 Kenichi Handa <handa@m17n.org>
19841
19842 * fontset.c (fontset_face): Create a fallback fontset on demand.
19843 (make_fontset): Don't create a fallback fontset here.
19844 (free_face_fontset): Free a fallback fontset (if any) too.
19845 (n_auto_fontsets): Delete this variable.
19846 (auto_fontset_alist): New variable.
19847 (new_fontset_from_font_name): Check auto_fontset_alist.
19848 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
19849 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
19850 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
19851 Defsubr Sfontset_list_all.
19852
198532008-02-01 Kenichi Handa <handa@m17n.org>
19854
19855 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
19856
198572008-02-01 Kenichi Handa <handa@m17n.org>
19858
19859 * fontset.c (Fnew_fontset): Check NAME more rigidly.
19860
198612008-02-01 Kenichi Handa <handa@m17n.org>
19862
19863 * editfns.c (Fgoto_char): Fix docstring.
19864
198652008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * insdel.c (insert_from_gap): Adjust intervals correctly.
19868
198692008-02-01 Jason Rumney <jasonr@gnu.org>
19870
19871 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
19872 (pfnGetFontUnicodeRanges): New dynamically loaded function.
19873 (w32_initialize): Try to load it.
19874 (x_get_font_repertory): Use it if available.
19875 (w32_encode_char): Add shortcut for unicode output.
19876
19877 * w32fns.c (w32_load_system_font): Default charset to -1.
19878 (x_to_w32_charset): Match all fonts for unicode.
19879 (w32_to_x_charset): New parameter matching. Don't return partial
19880 or wildcard charsets.
19881 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
19882 (w32_codepage_for_font): Return CP_UNICODE for unicode.
19883 (w32_to_x_font): Match charset to real charset.
19884 (enum_font_cb2): Always list unicode versions.
19885
19886 * makefile.w32-in (temacs): Increase EMHEAP.
19887
198882008-02-01 Jason Rumney <jasonr@gnu.org>
19889
19890 * w32term.c (w32_encode_char): New charset parameter.
19891 font_info.encoding becomes encoding_type.
19892 (x_get_font_repertory): New function. Warning: stub only!
19893 (x_new_font): Return quickly if font already set.
19894 (x_new_fontset): fontsetname parameter is Lisp_Object.
19895 Use new fs_query_fontset. Try new_fontset_from_font_name.
19896 Use fontset_name for return value.
19897
19898 * w32term.h: Declare x_get_font_repertory.
19899
19900 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
19901 place of find_charset_in_text. Use encode_coding_object in place
19902 of encode_coding.
19903 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
19904 decode_coding.
19905
19906 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
19907 of x_new_fontset.
19908 (w32_load_system_font): Initialize charset as unicode.
19909 font_info.encoding becomes encoding_type.
19910 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
19911 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
19912 (syms_of_w32fns): Set get_font_repertory_func.
19913
19914 * w32console.c: Include character.h. Use terminal_encode_buffer
19915 from term.c.
19916 (write_glyphs): Use new version of encode_terminal_code. Use
19917 encode_coding_object in place of encode_coding.
19918
19919 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
19920 encoding becomes encoding_type.
19921
19922 * term.c (terminal_encode_buffer): Make externally visible.
19923
19924 * makefile.w32-in: Add character.h dependancies.
19925 (character.o, chartab.o): New targets.
19926
199272008-02-01 Kenichi Handa <handa@m17n.org>
19928
19929 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
19930 CODING_ID_EOL_TYPE.
19931
199322008-02-01 Andreas Schwab <schwab@suse.de>
19933
19934 * coding.c (produce_chars): Revert last change.
19935
199362008-02-01 Kenichi Handa <handa@m17n.org>
19937
19938 * charset.h (charset_unicode): Extern it.
19939
19940 * charset.c (string_xstring_p): Check by (C >= 0x100).
19941 (find_charsets_in_text): Change format of the arc CHARSETS. New
19942 arg MULTIBYTE.
19943 (Ffind_charset_region, Ffind_charset_string): Adjust for the
19944 change of find_charsets_in_text.
19945 (Fsplit_char): Fix doc. Never return unknown.
19946
19947 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
19948
19949 * coding.c (Fdefine_coding_system_alias): Update
19950 Vcoding_system_list.
19951
19952 * fontset.c (load_font_get_repertory): Pay attention to the case
19953 that ENCODING of a font is specified by a char-table.
19954
19955 * xterm.c (x_get_font_repertory): Handle the case that the
19956 encoding of font is other than Unicode.
19957
199582008-02-01 Kenichi Handa <handa@m17n.org>
19959
19960 * term.c (encode_terminal_code): Don't handle glyph-table. Check
19961 if a character is encodable by the terminal coding system. If
19962 not, produces proper number of `?'s. Update
19963 terminal_encode_buffer and terminal_encode_buf_size if necessary.
19964 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
19965
199662008-02-01 Kenichi Handa <handa@m17n.org>
19967
19968 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
19969 variables.
19970 (encode_terminal_code): Change argument. Encode multiple
19971 characters at once. Store the result of encoding in
19972 terminal_encode_buffer.
19973 (write_glyphs, insert_glyphs): Adjust for the change of
19974 encode_terminal_code.
19975 (term_init): Initialize terminal_encode_buffer and
19976 terminal_encode_buf_size.
19977
19978 * coding.c (consume_chars): If coding->src_object is nil, don't
19979 check annotation.
19980
199812008-02-01 Kenichi Handa <handa@m17n.org>
19982
19983 * character.c (char_string): Use ASCII_CHAR_P instead of
19984 SINGLE_BYTE_CHAR_P.
19985
199862008-02-01 Kenichi Handa <handa@m17n.org>
19987
19988 * xdisp.c (handle_auto_composed_prop): Check if the last
19989 characters of auto-composed region is newly composed with the
19990 following characters.
19991 (handle_composition_prop): Fix checking of point being inside
19992 composition.
19993
199942008-02-01 Kenichi Handa <handa@m17n.org>
19995
19996 * fns.c (concat): Don't change multibyteness of the result by
19997 concatenating an 8-bit character.
19998
19999 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
20000 multibyteness of the result when newelt is an 8-bit character.
20001
200022008-02-01 Dave Love <fx@gnu.org>
20003
20004 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
20005 EMACS_INT.
20006
20007 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
20008
20009 * xfaces.c (face_numeric_value): Declare dim size_t.
20010 (Finternal_lisp_face_equal_p): Remove unused f.
20011
20012 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
20013 (MATRIX_ROW): Remove unused vars.
20014 (draw_glyphs, x_insert_glyphs, fast_find_position)
20015 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
20016 byte/char counts.
20017
20018 * regex.c (regex_compile): Remove unused var.
20019
20020 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
20021
20022 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
20023 (Faccessible_keymaps, where_is_internal): Remove unused vars.
20024
20025 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
20026
20027 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
20028
20029 * fileio.c (Fwrite_region): Remove unused var.
20030
20031 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
20032 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
20033
20034 * composite.c (Fremove_list_of_text_properties): Declare.
20035
20036 * coding.c (inhibit_pre_post_conversion): Remove (unused).
20037 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
20038 (coding_inherit_eol_type): Remove unused attrs.
20039 (detect_coding): Cast arg of detect_eol.
20040
20041 * charset.c (syms_of_charset): Remove unused var p.
20042 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
20043 byte/char counts.
20044
20045 * casetab.c (set_case_table): Remove unused var.
20046
20047 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
20048 unused vars.
20049
200502008-02-01 Dave Love <fx@gnu.org>
20051
20052 * xterm.c (x_bitmap_mask): Declare.
20053
200542008-02-01 Dave Love <fx@gnu.org>
20055
20056 * xterm.c (x_term_init): Fix type error.
20057
20058 * lisp.h: Add Funibyte_char_to_multibyte.
20059
20060 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
20061 (Fset_coding_system_priority): Doc fix.
20062
20063 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
20064
20065 * indent.c (check_composition): Make start and end EMACS_INT.
20066
20067 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
20068
20069 * xdisp.c (handle_composition_prop, check_point_in_composition):
20070 Make buffer positions EMACS_INT.
20071
20072 * composite.c (find_composition, run_composition_function)
20073 (update_compositions, Ffind_composition_internal): Make buffer
20074 positions EMACS_INT.
20075
20076 * composite.h (find_composition, update_compositions): Make
20077 position args EMACS_INT.
20078
20079 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
20080
20081 * intervals.c (get_property_and_range):
20082 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
20083
20084 * unexalpha.c: Don't include varargs.h.
20085
200862008-02-01 Dave Love <fx@gnu.org>
20087
20088 * coding.h (ENCODE_UTF_8): New.
20089
20090 * Makefile.in (gtkutil.o): Depend on coding.h.
20091
20092 * coding.c (Fset_coding_system_priority): Doc fix.
20093
200942008-02-01 Kenichi Handa <handa@m17n.org>
20095
20096 * fileio.c (Finsert_file_contents): Call setup_coding_system in
20097 the case of auto saving.
20098
200992008-02-01 Andreas Schwab <schwab@suse.de>
20100
20101 * chartab.c (map_char_table, map_char_table_for_charset): Protect
20102 `range' from GC.
20103
201042008-02-01 Kenichi Handa <handa@m17n.org>
20105
20106 * coding.c (decode_coding_sjis): Check bytes more rigidly.
20107
201082008-02-01 Kenichi Handa <handa@m17n.org>
20109
20110 * fileio.c (choose_write_coding_system): Return a decided coding system.
20111 (Fwrite_region): Set Vlast_coding_system_used to the return value
20112 of choose_write_coding_system.
20113
201142008-02-01 Kenichi Handa <handa@m17n.org>
20115
20116 * charset.c (Fset_charset_priority): Pay attention to duplicated
20117 arguments.
20118
20119 * coding.c (QCcategory): New variable.
20120 (syms_of_coding): Defsym it. Set all elements of
20121 Vcoding_category_table and their symbol values.
20122 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
20123 coding-category-XXX, and coding-category-list.
20124 (Fdefine_coding_system_internal): Add category in the plist.
20125
201262008-02-01 Kenichi Handa <handa@m17n.org>
20127
20128 * callproc.c (Fcall_process): Handle carryover correctly.
20129
20130 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
20131 (raw_text_coding_system): Check NILP (coding_system).
20132 (coding_inherit_eol_type): Check NILP (coding_system) and
20133 NILP (parent).
20134 (consume_chars): Fix for the case of raw-text.
20135
20136 * process.c (read_process_output): Handle carryover correctly.
20137
201382008-02-01 Dave Love <fx@gnu.org>
20139
20140 * regex.c (re_search_2): Fix last change.
20141
201422008-02-01 Kenichi Handa <handa@m17n.org>
20143
20144 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
20145 target_multibyte. Even in a unibyte case, return a converted
20146 multibyte char.
20147 (GET_CHAR_AFTER): New macro.
20148 (PATFETCH): Translate via multibyte char.
20149 (HANDLE_UNIBYTE_RANGE): Delete this macro.
20150 (SETUP_MULTIBYTE_RANGE): New macro.
20151 (regex_compile): Setup compiled code so that its multibyteness
20152 matches that of a target. Fix the handling of "[X-YZ]" using
20153 SETUP_MULTIBYTE_RANGE.
20154 (analyse_first) <charset>: For filling fastmap for all multibyte
20155 characters, don't check by BASE_LEADING_CODE_P.
20156 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
20157 the same as RE_MULTIBYTE_P (bufp) now.
20158 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
20159 (TARGET_CHAR_AND_LENGTH): Delete this macro.
20160 (TRANSLATE_VIA_MULTIBYTE): New macro.
20161 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
20162 It is the same as RE_MULTIBYTE_P (bufp) now.
20163 <exactn>: Translate via multibyte.
20164 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
20165 translate it.
20166 <charset, charset_not>: Fetch a character by
20167 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
20168 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
20169 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
20170 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
20171 by GET_CHAR_AFTER.
20172 (bcmp_translate): Likewise.
20173
20174 * search.c (compile_pattern): Check the member target_multibyte,
20175 not the member multibyte of buf.
20176
20177 * lread.c (read1): While reading a string, set force_singlebyte
20178 and force_multibyte correctly.
20179
20180 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
20181 up of unibyte_to_multibyte_table.
20182
201832008-02-01 Kenichi Handa <handa@m17n.org>
20184
20185 * coding.c (setup_coding_system): If coding has
20186 post-read-conversion or pre-write-conversion, set
20187 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
20188 respectively.
20189 (decode_coding_gap): Run post-read-conversion if any.
20190
20191 * fileio.c (Finsert_file_contents): Even if we read into a
20192 unibyte buffer, check if we must decode the result or not.
20193
201942008-02-01 Kenichi Handa <handa@m17n.org>
20195
20196 * coding.c (make_conversion_work_buffer): Change the work buffer
20197 name to the same one as that of Emacs 21.
20198
201992008-02-01 Kenichi Handa <handa@m17n.org>
20200
20201 * coding.h (make_conversion_work_buffer): Adjust prototype.
20202 (code_conversion_restore): Don't extern it.
20203
20204 * coding.c (detected_mask): Delete unused variable.
20205 (decode_coding_iso_2022): Pay attention to the byte sequence of
20206 CTEXT extended segment, and retain those bytes as is.
20207 (decode_coding_ccl): Delete unused variable `valids'.
20208 (setup_coding_system): Delete unused variable `category'.
20209 (consume_chars): Delete unused variable `category'. Make it work
20210 for non-multibyte case.
20211 (make_conversion_work_buffer): Change argument.
20212 (saved_coding): Delete unused variable.
20213 (code_conversion_restore): Don't check saved_coding->destination.
20214 (code_conversion_save): New function.
20215 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
20216 instead of record_unwind_protect.
20217 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
20218 (detect_coding_system): Delete unused variable `mask'.
20219 (Fdefine_coding_system_internal): Delete unused variable id.
20220
20221 * fileio.c (kill_workbuf_unwind): New function.
20222 (Finsert_file_contents): On replacing, call
20223 make_conversion_work_buffer with correct args, and call
20224 record_unwind_protect with the first arg kill_workbuf_unwind.
20225
20226 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
20227
202282008-02-01 Kenichi Handa <handa@m17n.org>
20229
20230 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
20231 (fontset_add): Fix for the case that TO is less than TO1.
20232 (Ffontset_info): Don't use fallback fontset on checking the
20233 default fontset.
20234 (dump_fontset): New function for debugging.
20235
20236 * coding.c (Fdefine_coding_system_internal): Fix for the case that
20237 coding_type is Qcharset.
20238
202392008-02-01 Kenichi Handa <handa@m17n.org>
20240
20241 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
20242 (map_char_table): Don't inherit the value from the parent on
20243 initializing VAL. Adjust for the above change.
20244
202452008-02-01 Kenichi Handa <handa@m17n.org>
20246
20247 * coding.c (Qsignature, Qendian): Delete these variables.
20248 (syms_of_coding): Don't initialize them.
20249 (CATEGORY_MASK_UTF_16_AUTO): New macro.
20250 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
20251 detect_info->found.
20252 (decode_coding_utf_16): Don't detect BOM here.
20253 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
20254 is NOT utf_16_without_bom.
20255 (setup_coding_system): For a coding system of type utf-16, check
20256 if the attribute :endian is Qbig or not (not nil or not), and set
20257 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
20258 (detect_coding): If coding type is utf-16 and BOM detection is
20259 required, detect it.
20260 (Fdefine_coding_system_internal): For a coding system of type
20261 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
20262
202632008-02-01 Kenichi Handa <handa@m17n.org>
20264
20265 * coding.c (coding_set_source): Fix for the case that the current
20266 buffer is different from coding->src_object.
20267 (decode_coding_object): Don't use the conversion work buffer if
20268 DST_OBJECT is a buffer.
20269
202702008-02-01 Dave Love <fx@gnu.org>
20271
20272 * lread.c (read_emacs_mule_char) [len==2]: Index
20273 emacs_mule_charset correctly.
20274
202752008-02-01 Dave Love <fx@gnu.org>
20276
20277 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
20278 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
20279 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
20280 treated specially.)
20281 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
20282 (detected_mask): Remove Big5 bits.
20283
202842008-02-01 Kenichi Handa <handa@m17n.org>
20285
20286 The following changes are to make the font rescaling facility
20287 compatible with Emacs 21.
20288
20289 * xfaces.c (Vface_font_rescale_alist): Rename from
20290 Vface_resizing_fonts.
20291 (struct font_name): Rename member resizing_ratio to rescale_ratio.
20292 (font_rescale_ratio): Rename from font_resizing_ratio.
20293 (split_font_name): Set font->rescale_ratio.
20294 (better_font_p): Pay attention to font->rescale_ratio.
20295 (build_scalable_font_name): Likewise. Change RESX, and RESY
20296 fields.
20297 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
20298
202992008-02-01 Kenichi Handa <handa@m17n.org>
20300
20301 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
20302 (Qutf_16_le): Remove these variables.
20303 (syms_of_coding): Don't DEFSYM them.
20304 (decode_coding_utf_16): Fix handling of BOM.
20305 (encode_coding_utf_16): Fix handling of BOM.
20306
203072008-02-01 Kenichi Handa <handa@m17n.org>
20308
20309 * fileio.c (Finsert_file_contents): On replacing, before decoding
20310 the file into the work buffer, set point of the work buffer to the end.
20311
203122008-02-01 Dave Love <fx@gnu.org>
20313
20314 * coding.c (Fcheck_coding_systems_region): Fix type errors.
20315
203162008-02-01 Dave Love <fx@gnu.org>
20317
20318 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20319 and fix C types.
20320
203212008-02-01 Kenichi Handa <handa@m17n.org>
20322
20323 * xdisp.c (SKIP_GLYPHS): New macro.
20324 (set_cursor_from_row): Pay attention to string display properties.
20325
20326 * category.c (copy_category_entry): Fix for the case that RANGE
20327 is an integer.
20328
20329 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
20330
20331 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
20332
203332008-02-01 Kenichi Handa <handa@m17n.org>
20334
20335 * charset.c (Fcharset_id_internal): New function.
20336 (syms_of_charset): Defsubr it.
20337
20338 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
20339 with the last arg charset_list acquired from coding.
20340 (Fdefine_coding_system_internal): For ccl-based coding system, fix
20341 the attribute coding_attr_ccl_valids.
20342
20343 * coding.h (enum define_coding_ccl_arg_index): Set the first
20344 member coding_arg_ccl_decoder to coding_arg_max.
20345
20346 * ccl.h (ccl_driver): Adjust prototype.
20347
20348 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
20349 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 20350 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
20351 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
20352 last arg Qnil.
20353
203542008-02-01 Kenichi Handa <handa@m17n.org>
20355
20356 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
20357 call encode_char.
20358
20359 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
20360
203612008-02-01 Dave Love <fx@gnu.org>
20362
20363 * composite.c (syms_of_composite): Make composition_hash_table weak.
20364
203652008-02-01 Kenichi Handa <handa@m17n.org>
20366
20367 * dispextern.h (check_face_attributes, generate_ascii_font_name)
20368 (font_name_registry): Don't extern them.
20369 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
20370
20371 * fontset.h (Qfontset): Don't extern it.
20372 (new_fontset_from_font_name): Extern it.
20373
20374 * fontset.c: Give 8 extra slots to fontset objects.
20375 (Qfontset_info): New variable.
20376 (syms_of_fontset): Defsym it.
20377 (FONTSET_FALLBACK): New macro.
20378 (fontset_face): Try also the default fontset.
20379 (make_fontset): Realize a fallback fontset from the default fontset.
20380 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
20381 using split_font_name_into_vector and build_font_name_from_vector.
20382 (Fset_fontset_font): Access the elements of font_spec by enum
20383 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
20384 name by using split_font_name_into_vector.
20385 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
20386 generate a proper font name from the fontset name. Update
20387 Vfontset_alias_alist.
20388 (n_auto_fontsets): New variable.
20389 (new_fontset_from_font_name): New function.
20390 (Ffont_info): Store the information about fonts generated from the
20391 default fontset in the first extra slot of the returned char-table.
20392
20393 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
20394 (font_name_registry): Delete function.
20395 (split_font_name_into_vector): New function.
20396 (build_font_name_from_vector): New function.
20397 (font_list): The argument REGISTRY is now a list of registry names.
20398 (choose_face_font): If we are choosing an ASCII font, and ATTRS
20399 specifies an explicit font name, return the name as is. Make a
20400 list of registy names.
20401
20402 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
20403 of x_new_fontset.
20404 (Fx_create_frame): Don't call x_new_fontset here. Just use
20405 x_list_fonts to check the existence of fonts.
20406
20407 * xterm.h (x_new_fontset): Adjust prototype.
20408
20409 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
20410 string. Use new_fontset_from_font_name to create a fontset from a
20411 font name.
20412
204132008-02-01 Kenichi Handa <handa@m17n.org>
20414
20415 * syntax.c (Vfind_word_boundary_function_table): New name for
20416 Vnext_word_boundary_function_table.
20417 (find-word-boundary-function-table): New name for
20418 next-word-boundary-function-table.
20419
204202008-02-01 Dave Love <fx@gnu.org>
20421
20422 * Makefile.in: Fix some dependencies.
20423
20424 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
20425 set it to nil before returning.
20426
20427 * composite.c (update_compositions): Fix type error.
20428
20429 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
20430
204312008-02-01 Kenichi Handa <handa@m17n.org>
20432
20433 * xterm.c (x_new_font): Optimize for the case that the font is
20434 already set for the frame.
20435
204362008-02-01 Kenichi Handa <handa@m17n.org>
20437
20438 * chartab.c (char_table_ascii): Check if the char table contents
20439 is sub-char-table or not.
20440 (char_table_set, char_table_set_range): Fix argument to
20441 char_table_ascii.
20442
20443 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
20444 (detect_coding_utf_8, detect_coding_utf_16)
20445 (detect_coding_emacs_mule, detect_coding_iso_2022)
20446 (detect_coding_sjis, detect_coding_big5)
20447 (detect_coding_ccl, detect_coding_charset): Change argument MASK
20448 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
20449 sequence is valid in this coding system. Change callers.
20450 (MAX_ANNOTATION_LENGTH): New macro.
20451 (ADD_ANNOTATION_DATA): New macro.
20452 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
20453 ADD_ANNOTATION_DATA. Change the format of annotation data.
20454 (ADD_CHARSET_DATA): New macro.
20455 (emacs_mule_char): New argument ID. Change callers.
20456 (decode_coding_emacs_mule, decode_coding_iso_2022)
20457 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
20458 Produce charset annotation data in coding->charbuf.
20459 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
20460 to charset annotation data in coding->charbuf.
20461 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
20462 coding->common_flags if the coding system is iso-2022 based and
20463 uses designation.
20464 (produce_composition): Adjust for the new annotation data format.
20465 (produce_charset): New function.
20466 (produce_annotation): Handle charset annotation.
20467 (handle_composition_annotation, handle_charset_annotation): New
20468 functions.
20469 (consume_chars): Handle charset annotation. Utilize the above two
20470 functions.
20471 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
20472 buffer, get the deleted text as a string and set
20473 coding->src_object to that string.
20474 (detect_coding, detect_coding_system): Use the new struct
20475 coding_detection_info.
20476
20477 * coding.h (struct coding_detection_info): New structure.
20478 (struct coding_system): Adjust prototype of the member `detector'.
20479 (CODING_ANNOTATE_CHARSET_MASK): New macro.
20480
204812008-02-01 Kenichi Handa <handa@m17n.org>
20482
20483 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
20484
204852008-02-01 Dave Love <fx@gnu.org>
20486
20487 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
20488 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
20489 to new local and nullify apropos_accumulate before returning.
20490 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
20491
204922008-02-01 Kenichi Handa <handa@m17n.org>
20493
20494 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
20495 correctly.
e3eea1fc 20496
aac0c6e3
MR
204972008-02-01 Dave Love <fx@gnu.org>
20498
20499 * fns.c (Flanginfo): Call synchronize_system_time_locale.
20500
205012008-02-01 Kenichi Handa <handa@m17n.org>
20502
20503 The following changes are to make character composition happen
20504 automatically on displaying.
20505
20506 * Makefile.in (lisp, shortlisp): Add composite.elc.
20507
20508 * composite.h (Qauto_composed, Vauto_composition_function)
20509 (Qauto_composition_function): Extern them.
20510
20511 * composite.c (Vcomposition_function_table)
20512 (Qcomposition_function_table): Delete variables.
20513 (Qauto_composed, Vauto_composition_function)
20514 (Qauto_composition_function): New variables.
20515 (run_composition_function): Don't call
20516 compose-chars-after-function.
20517 (update_compositions): Clear `auto-composed' text property.
20518 (compose_chars_in_text): Delete this function.
20519 (syms_of_composite): Staticpro Qauto_composed and
20520 Qauto_composition_function. Declare Vauto_composition_function as
20521 a Lisp variable.
20522
20523 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
20524
20525 * xdisp.c (it_props): Add an entry for Qauto_composed.
20526 (handle_auto_composed_prop): New function.
20527
20528 * xselect.c (selection_data_to_lisp_data): Don't call
20529 compose_chars_in_text.
20530
205312008-02-01 Dave Love <fx@gnu.org>
20532
20533 * keyboard.c (read_char): Modify checking around use of
20534 Vkeyboard_translate_table.
20535
20536 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20537 and fix C types.
20538
205392008-02-01 Kenichi Handa <handa@m17n.org>
20540
20541 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
20542 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20543 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
20544 the case that the last byte is '\r' correctly.
20545 (decode_coding): Flush out the unprocessed data correctly.
20546 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
20547
205482008-02-01 Dave Love <fx@gnu.org>
20549
20550 * xterm.c (XTread_socket): Fix changes for defined keysyms.
20551 Add XK_ISO... case.
20552 (xaw_scroll_callback): Revert last change.
20553
205542008-02-01 Kenichi Handa <handa@m17n.org>
20555
20556 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
20557
205582008-02-01 Kenichi Handa <handa@m17n.org>
20559
20560 * xfaces.c (Vface_resizing_fonts): New variable.
20561 (struct font_name): New member `resizing_ratio'.
20562 (font_resizing_ratio): New function.
20563 (split_font_name): Set font->resizing_ratio.
20564 (better_font_p): Pay attention to font->resizing_ratio.
20565 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
20566 RESX, and RESY fields.
20567 (try_alternative_families): Try scalable fonts if
20568 Vscalable_fonts_allowed is not Qt.
20569 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
20570
205712008-02-01 Dave Love <fx@gnu.org>
20572
20573 * xterm.c (xaw_scroll_callback): Cast correctly.
20574
205752008-02-01 Dave Love <fx@gnu.org>
20576
20577 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
20578 (lispy_kana_keys): Comment out.
20579 (make_lispy_event) [XK_kana_A]: Comment out.
20580
20581 * xterm.c (xaw_scroll_callback): Cast call_data.
20582 (XTread_socket): Deal with ASCII keysyms.
20583 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
20584
205852008-02-01 Dave Love <fx@gnu.org>
20586
20587 * xterm.c (Vx_keysym_table): New.
20588 (syms_of_xterm): Initialize it.
20589 (XTread_socket): Use it.
20590 From head: Eliminate incorrect optimization that tried to avoid
20591 decoding the output of X*LookupString.
20592 (x_get_font_repertory): Delete charset declaration.
20593
205942008-02-01 Kenichi Handa <handa@m17n.org>
20595
20596 * coding.c (detect_coding_charset): If only ASCII bytes are found,
20597 return 0.
20598 (Fdefine_coding_system_internal): Setup
20599 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
20600
206012008-02-01 Dave Love <fx@gnu.org>
20602
20603 * coding.c (Fcheck_coding_system): Doc fix.
20604
20605 * editfns.c (Finsert_byte): Return a proper value.
20606
206072008-02-01 Kenichi Handa <handa@m17n.org>
20608
20609 * coding.c (decode_coding): Fix args to translate_chars. Pay
20610 attention to Vstandard_translation_table_for_decode.
20611 (encode_coding): Fix args to translate_chars. Pay attention to
20612 Vstandard_translation_table_for_encode.
20613
20614 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
20615 SINGLE_BYTE_CHAR_P.
20616
20617 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
20618 not by SINGLE_BYTE_CHAR_P.
20619
20620 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
20621 SINGLE_BYTE_CHAR_P.
20622
20623 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
20624 SINGLE_BYTE_CHAR_P.
20625
20626 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
20627 by SINGLE_BYTE_CHAR_P.
20628
20629 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
20630 SINGLE_BYTE_CHAR_P.
20631
206322008-02-01 Dave Love <fx@gnu.org>
20633
20634 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
20635
206362008-02-01 Dave Love <fx@gnu.org>
20637
20638 * fns.c (Flanginfo): Fix typo.
20639
20640 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
20641
206422008-02-01 Kenichi Handa <handa@m17n.org>
20643
20644 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
20645 (detect_coding_emacs_mule, detect_coding_iso_2022)
20646 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
20647 incomplete byte sequence. Don't update *mask when correctly detected.
20648 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
20649 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
20650 (detect_coding, detect_coding_system): Adjust for the changes above.
20651
206522008-02-01 Kenichi Handa <handa@m17n.org>
20653
20654 * character.c (char_string): Rename from
20655 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
20656 (string_char): Rename from string_char.
20657
20658 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
20659 if C is greater than MAX_3_BYTE_CHAR.
20660 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
20661 string_char instead of string_char_with_unification.
20662
206632008-02-01 Dave Love <fx@gnu.org>
20664
20665 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
20666
206672008-02-01 Kenichi Handa <handa@m17n.org>
20668
20669 * keymap.c (push_key_description): Pay attention to force_multibyte.
20670
20671 * regex.c (re_search_2): Fix for the case of unibyte buffer.
20672
206732008-02-01 Dave Love <fx@gnu.org>
20674
20675 * charset.c (define_charset_internal): Rename `supprementary'.
20676
20677 * Makefile.in (lisp, shortlisp): Remove latin-N.
20678
206792008-02-01 Dave Love <fx@gnu.org>
20680
20681 * xfns.c (x_window, x_window): Use use_xim.
20682
20683 * xterm.c (use_xim): Initialize.
20684 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
20685 (x_term_init): Maybe set use_xim.
20686
20687 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
20688
206892008-02-01 Kenichi Handa <handa@m17n.org>
20690
20691 * search.c (search_buffer): Fix case-fold-search of multibyte
20692 characters.
20693 (boyer_moore): Rename the last argument to char_high_bits.
20694
206952008-02-01 Kenichi Handa <handa@m17n.org>
20696
20697 * xdisp.c (display_string): Fix for the case of zero width glyph.
20698
20699 * xfns.c (x_set_font): Change the error message of the case that
20700 x_new_fontset returns Qt.
20701
20702 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
20703 (Finternal_set_lisp_face_attribute): Use signal_error for the
20704 error of invalid fontset.
20705
20706 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
20707 fontset, return Qt.
20708
207092008-02-01 Dave Love <fx@gnu.org>
20710
20711 * unexelf.c (unexec): Make .got handling not SGI-specific.
20712
20713 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
20714
20715 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
20716
20717 * keyboard.c (read_key_sequence): Fix type error.
20718
20719 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
20720 type error.
20721
20722 * fontset.c (fontset_add): Return Lisp_Object.
20723
207242008-02-01 Dave Love <fx@gnu.org>
20725
20726 * charset.h (charset_ordered_list_tick): Declare extern.
20727
207282008-02-01 Kenichi Handa <handa@m17n.org>
20729
20730 The following changes (and some of 2008-02-01 changes of mine) are
20731 for handling syntax, category, and case conversion for unibyte
20732 characters by converting them to multibyte on the fly. With these
20733 changes, we don't have to setup syntax and case tables for unibyte
20734 characters in each language environment.
20735
20736 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
20737 multibyte if necessary.
20738
20739 * bytecode.c (Fbyte_code): Likewise.
20740
20741 * character.h (LEADING_CODE_LATIN_1_MIN)
20742 (LEADING_CODE_LATIN_1_MAX): New macros.
20743 (unibyte_to_multibyte_table): Extern it.
20744 (unibyte_char_to_multibyte): New macro.
20745 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
20746 (CHAR_LEADING_CODE): New macro.
20747 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
20748
20749 * character.c (unibyte_to_multibyte_table): New variable.
20750 (unibyte_char_to_multibyte): Move to character.h and define as macro.
20751 (multibyte_char_to_unibyte): If C is an eight-bit character,
20752 convert it to the corresponding byte value.
20753
20754 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
20755 not 1, signals an error. Update the elements of
20756 unibyte_to_multibyte_table.
20757 (init_charset_once): Initialize unibyte_to_multibyte_table.
20758 (syms_of_charset): Define the charset `iso-8859-1'.
20759
20760 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
20761 as is without converting it to unibyte. In a unibyte buffer,
20762 convert C to multibyte before checking the syntax.
20763
20764 * lisp.h (unibyte_char_to_multibyte): Delete extern.
20765
20766 * minibuf.c (Fminibuffer_complete_word): Use the macro
20767 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
20768
20769 * regex.h (struct re_pattern_buffer): New member target_multibyte.
20770
20771 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
20772 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
20773 that is zero, convert an eight-bit char to multibyte.
20774 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
20775 non-emacs case.
20776 (PATFETCH): Convert an eight-bit char to multibyte.
20777 (HANDLE_UNIBYTE_RANGE): New macro.
20778 (regex_compile): Setup the compiled pattern for multibyte chars
20779 even if the given regex string is unibyte. Use PATFETCH_RAW
20780 instead of PATFETCH in many places. To handle `charset'
20781 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
20782 only for ASCII chars.
20783 (analyse_first) <exactn>: Simplify because the compiled pattern
20784 is multibyte.
20785 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
20786 <charset>: Use CHAR_LEADING_CODE to get leading codes.
20787 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
20788 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
20789 multibyte always 1.
20790 (re_search_2): In emacs, set the locale variable multibyte to 1,
20791 otherwise to 0. New local variable target_multibyte. Check it
20792 to decide the multibyteness of STR1 and STR2. If
20793 target_multibyte is zero, convert unibyte chars to multibyte
20794 before translating and checking fastmap.
20795 (TARGET_CHAR_AND_LENGTH): New macro.
20796 (re_match_2_internal): In emacs, set the locale variable multibyte
20797 to 1, otherwise to 0. New local variable target_multibyte. Check
20798 it to decide the multibyteness of STR1 and STR2. Use
20799 TARGET_CHAR_AND_LENGTH to fetch a character from D.
20800 <charset, charset_not>: If multibyte is nonzero, check fastmap
20801 only for ASCII chars. Call bcmp_translate with
20802 target_multibyte, not with multibyte.
20803 <begline>: Declare the local variable C as `unsigned'.
20804 (bcmp_translate): Change the last arg name to target_multibyte.
20805
20806 * search.c (compile_pattern_1): Don't adjust the multibyteness of
20807 the regexp pattern and the matching target. Set cp->buf.multibyte
20808 to the multibyteness of the regexp pattern. Set
20809 cp->but.target_multibyte to the multibyteness of the matching target.
20810 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
20811 FETCH_STRING_CHAR_ADVANCE.
20812 (Freplace_match): Convert unibyte chars to multibyte.
20813
20814 * syntax.c (char_quoted, back_comment, scan_words)
20815 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
20816 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
20817 unibyte chars to multibyte.
20818 (skip_chars): Delete the arg syntaxp, and move the code for
20819 handling syntaxes to skip_syntaxes. Change callers.
20820 Fix the case that the multibyteness of STRING and the current
20821 buffer doesn't match.
20822 (skip_syntaxes): New function.
20823 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
20824 SINGLE_BYTE_CHAR_P.
20825
208262008-02-01 Kenichi Handa <handa@m17n.org>
20827
20828 * xfaces.c (QCfontset): New variable.
20829 (LFACE_FONTSET): New macro.
20830 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
20831 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
20832 (Finternal_set_lisp_face_attribute)
20833 (Finternal_get_lisp_face_attribute): Handle QCfontset.
20834 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
20835 check also LFACE_FONTSET_INDEX.
20836 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
20837 attrs[LFACE_FONT_INDEX].
20838 (syms_of_xfaces): Intern and staticpro QCfontset.
20839
20840 * dispextern.h (enum lface_attribute_index): New member
20841 LFACE_FONTSET_INDEX.
20842
20843 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
20844
208452008-02-01 Kenichi Handa <handa@m17n.org>
20846
20847 * coding.c (coding_set_destination): Fix coding->destination for
20848 the case converting a region.
20849 (encode_coding_utf_8): Encode eight-bit chars as single byte.
20850 (encode_coding_object): Fix coding->dst_pos and
20851 coding->dst_pos_byte for the case converting a region.
20852
20853 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
20854
20855 * character.h (BYTE8_STRING): New macro.
20856
20857 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
20858
208592008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
20862 characters by octal form.
20863
20864 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
20865
20866 * buffer.h (_fetch_multibyte_char_len): Delete extern.
20867 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
20868 _fetch_multibyte_char_len.
20869 (FETCH_CHAR_AS_MULTIBYTE): New macro.
20870
20871 * casetab.c (set_canon, set_identity, shuffle): Simplify.
20872
20873 * casefiddle.c (casify_object): Simplify. Handle the case that
20874 the case conversion change the byte length.
20875 (casify_region): Likewise.
20876
20877 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
20878
20879 * character.c (_fetch_multibyte_char_len): Delete this variable.
20880 (syms_of_character): Setup Vprintable_chars.
20881
20882 * editfns.c (Fchar_equal): Fix for the unibyte case.
20883 (Finsert_byte): New function.
20884 (syms_of_editfns): Defsubr it.
20885
20886 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
20887 of direct code 0x3ffff.
20888
20889 * search.c (Freplace_match): Fix for the unibyte case.
20890
208912008-02-01 Kenichi Handa <handa@m17n.org>
20892
20893 * lread.c (safe_to_load_p): Fix the logic.
20894
20895 * syntax.c (scan_words): Don't treat characters belonging to
20896 different scripts as constituting a word.
20897
20898 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
20899
20900 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
20901
20902 * emacs.c (main): In the case of --unibyte, instead of aborting on
20903 finding non-empty buffer, make it unibyte.
20904
209052008-02-01 Kenichi Handa <handa@m17n.org>
20906
20907 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
20908 to create a fontset.
20909
209102008-02-01 Dave Love <fx@gnu.org>
20911
20912 * character.c (Funibyte_char_to_multibyte): Doc fix.
20913
20914 * xfns.c [HAVE_STDLIB_H]: Fix last change.
20915
209162008-02-01 Kenichi Handa <handa@m17n.org>
20917
20918 * fontset.c (fontset_add): Make the type `int'.
20919 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
20920
20921 * character.c (unibyte_char_to_multibyte)
20922 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
20923 charset_unibyte, not charset_primary.
20924
20925 * charset.h (charset_unibyte): Extern it instead of charset_primary.
20926
20927 * charset.c (charset_unibyte): Rename from charset_primary.
20928 (Funibyte_charset): Rename from Fprimary_charset.
20929 (Fset_unibyte_charset): Rename from Fset_primary_charset.
20930 (syms_of_charset): Adjust for the above changes.
20931
20932 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
20933 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
20934 it->multibyte_p is zero.
20935
20936 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
20937 Delete extern.
20938
209392008-02-01 Kenichi Handa <handa@m17n.org>
20940
20941 * coding.c (Fdefine_coding_system_internal): Fix category setting
20942 for a coding system of type iso-2022.
20943
209442008-02-01 Kenichi Handa <handa@m17n.org>
20945
20946 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
20947
209482008-02-01 Kenichi Handa <handa@m17n.org>
20949
20950 * syntax.c (Vnext_word_boundary_function_table): New variable.
20951 (next-word-boundary-function-table): Declare it as a Lisp variable
20952 in syms_of_syntax.
20953 (scan_words): Call functions in Vnext_word_boundary_function_table
20954 if any.
20955
20956 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
20957
20958 * fontset.c (fs_load_font): If fontp->charset is not negative,
20959 return fontp without setting its members.
20960
209612008-02-01 Dave Love <fx@gnu.org>
20962
20963 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
20964
20965 * m/sparc.h (HAVE_ALLOCA): Delete.
20966
20967 * s/irix6-5.h: Don't include strings.h.
20968 (bcopy, bzero, bcmp): Don't undef.
20969
20970 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
20971
20972 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
20973 (TIOCSIGSEND): Don't test IRIX6.
20974 (bcopy, bzero, bcmp): Define conditionally.
20975
209762008-02-01 Kenichi Handa <handa@m17n.org>
20977
20978 * buffer.c (Qas, Qmake, Qto): New variables.
20979 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
20980 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
20981
20982 * callproc.c (Fcall_process): Don't call insert_1_both directly if
20983 we are inserting a process output into a multibyte buffer.
20984
20985 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
20986 multibyte_char_to_unibyte.
20987
20988 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
20989 by the primary charset, make it eight-bit char.
20990 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
20991
20992 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
20993 (charset_8_bit__control, charset_8_bit_graphic)
20994 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
20995 (define_charset_internal): New function.
20996 (syms_of_charset): Call define_charset_internal for pre-defined
20997 charsets.
20998
20999 * charset.h (charset_8_bit): Extern it.
21000
21001 * coding.c (make_conversion_work_buffer): Adjust for the change
21002 of Fset_buffer_multibyte.
21003 (encode_coding_raw_text): Increment p0 in the loop.
21004
21005 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
21006
21007 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
21008 for the change of Fset_buffer_multibyte.
21009
21010 * fns.c (Fstring_to_multibyte): New function.
21011 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
21012
210132008-02-01 Dave Love <fx@gnu.org>
21014
21015 * xfns.c (x_put_x_image): Declare args.
21016
21017 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
21018 (try_font_list): Declare an arg.
21019
21020 * xdisp.c (message2_nolog, set_message): Declare an arg.
21021
21022 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
21023
21024 * syntax.c (scan_sexps_forward): Declare an arg.
21025
21026 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
21027 Declare an arg.
21028
21029 * lisp.h (Fnew_fontset): Declare.
21030
21031 * keymap.c (push_key_description): Call CHARACTERP correctly.
21032
21033 * fontset.c (fontset_add): Declare args. Call make_number correctly.
21034 (face_for_char): Delete unused vars.
21035 (Fset_fontset_font): Doc fix. Delete unused vars.
21036
21037 * doc.c (Fsubstitute_command_keys): Delete unused vars.
21038
21039 * composite.c (update_compositions): Declare arg.
21040
21041 * cm.c (calccost, cmgoto): Declare args.
21042
21043 * charset.c: Remove `emacs' conditional. Doc fixes.
21044 (map_char_table_for_charset): Declare.
21045
21046 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
21047
21048 * ccl.c: Remove `emacs' conditional.
21049
210502008-02-01 Kenichi Handa <handa@m17n.org>
21051
21052 The following changes are to allow specifying multiple font
21053 patterns for a character range (specified by script or charset).
21054
21055 * Makefile.in (abbrev.o): Depend on syntax.h.
21056 (xfaces.o): Depend on charset.h.
21057
21058 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
21059 SINGLE_BYTE_CHAR_P.
21060
21061 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
21062
21063 * character.h (Vchar_script_table): Extern it.
21064
21065 * character.c (Vscript_alist): Delete.
21066 (Vchar_script_table, Qchar_script_table): New variable.
21067 (syms_of_character): Declare Vchar_script_table as a lisp variable
21068 and initialize it.
21069
21070 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
21071 have property char-table-extra-slots, make no extra slot.
21072
21073 * dispextern.h (struct face): Delete member `charset'.
21074 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
21075 SINGLE_BYTE_CHAR_P.
21076 (choose_face_font, lookup_non_ascii_face, font_name_registry):
21077 Add prototypes.
21078 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
21079 (generate_ascii_font_name): Rename from generate_ascii_font.
21080
21081 * fontset.h (get_font_repertory_func): New prototype.
21082 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
21083 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
21084
21085 * fontset.c (Qprepend, Qappend): New variables.
21086 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
21087 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
21088 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
21089 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
21090 (fontset_ref_and_range, fontset_add, reorder_font_vector)
21091 (load_font_get_repertory): New functions.
21092 (fontset_set): Delete.
21093 (fontset_face): New arg FACE. Return face ID, not face.
21094 Complete re-write to handle new fontset structure. Change caller.
21095 (free_face_fontset): Use ASET istead of AREF (X) = Y.
21096 (face_for_char): Don't call lookup_face.
21097 (make_fontset_for_ascii_face): New arg FACE.
21098 (fs_load_font): New arg CHARSET_ID. Don't check
21099 Vfont_encoding_alist here.
21100 (find_font_encoding): New function.
21101 (list_fontsets): Use STRINGP, not ! NILP.
21102 (accumulate_script_ranges): New function.
21103 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
21104 re-written to handle new fontset structure.
21105 (Ffontset_font): Return a copy of element.
21106 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
21107 docstring of font-encoding-alist.
21108
21109 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
21110 (Fset_fotset_font): Fix arguments to 5.
21111
21112 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
21113
21114 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
21115 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21116 (highlight_trailing_whitespace): Adjust for the change of
21117 lookup_named_face.
21118
21119 * xfaces.c: Include charset.h.
21120 (load_face_font): Delete argument C. Change caller.
21121 (generate_ascii_font_name): Rename from generate_ascii_font.
21122 (font_name_registry): New function.
21123 (cache_face): Store ascii faces before non-ascii faces in buckets.
21124 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
21125 Lookup only ascii faces.
21126 (lookup_non_ascii_face): New function.
21127 (lookup_named_face): Delete argument C. Change caller.
21128 (lookup_derived_face): Delete argument C. Change caller.
21129 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
21130 a string, just call font_list with it.
21131 (choose_face_font): Delete arguments FACE and C. New arg
21132 FONT_SPEC. Change caller.
21133 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
21134 Change caller.
21135 (realize_non_ascii_face): New function.
21136 (realize_x_face): Call load_face_font here.
21137 (realize_tty_face): Delete argument C. Change caller.
21138 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
21139 get a face ID.
21140 (dump_realized_face): Don't print charset of FACE.
21141
21142 * xfns.c (x_set_font): Always call x_new_fontset and
21143 store_frame_parameter.
21144 (Fx_create_frame): Call x_new_fontset, not x_new_font.
21145 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
21146
21147 * xterm.h (x_get_font_repertory): Extern it.
21148
21149 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
21150 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
21151 it->multibyte_p is zero.
21152 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
21153 (x_new_fontset): If FONTSETNAME doesn't match any existing
21154 fontsets, create a new one.
21155 (x_get_font_repertory): New function.
21156
211572008-02-01 Kenichi Handa <handa@m17n.org>
21158
21159 * coding.c (Ffind_coding_systems_region_internal): Detect an
21160 ASCII only string correctly.
21161
21162 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
21163 version is 0.
21164
211652008-02-01 Kenichi Handa <handa@m17n.org>
21166
21167 * lread.c: Include "coding.h".
21168 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
21169 (load_each_byte, unread_char): New variables.
21170 (readchar_backlog): Delete.
21171 (readchar): Return a character unless load_each_byte is nonzero.
21172 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
21173 cons. If unread_char is not -1, simply return it.
21174 (unreadchar): Handle the case that readcharfun is
21175 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
21176 (read_multibyte): Delete.
21177 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
21178 (read_emacs_mule_char): New functions.
21179 (Fload): Even if the file doesn't have the extension ".elc", if
21180 safe_to_load_p returns a positive version number, assume that the
21181 file contains bytecompiled code. If the version is less than 22,
21182 load the file while decoding multibyte sequences by emacs-mule.
21183 (readevalloop): Don't use readchar_backlog.
21184 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
21185 (Fread_from_string): Pay attention to the case that STREAM is a cons.
21186 (read_escape): Delete the arg BYTEREP.
21187 (read1): Set load_each_byte to 1 temporarily while handling
21188 #@NUMBER. Don't call read_multibyte.
21189 (read_vector): Call Fread with a cons. If readcharfun is
21190 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
21191 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
21192 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
21193 and Qload_force_doc_strings.
21194
211952008-02-01 Kenichi Handa <handa@m17n.org>
21196
21197 * xdisp.c (face_before_or_after_it_pos): Call
21198 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
21199
212002008-02-01 Kenichi Handa <handa@m17n.org>
21201
21202 * character.h (TRAILING_CODE_P): New macro.
21203 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
21204 (string_char_with_unification): Fix prototype.
21205 (Vscript_alist): Extern it.
21206
21207 * character.c (Vscript_alist): New variable.
21208 (string_char_with_unification, str_as_unibyte)
21209 (string_escape_byte8): Add `const' to local variables.
21210 (syms_of_character): Declare script-alist as a Lisp variable.
21211
21212 * charset.h (Vcharset_ordered_list): Extern it.
21213 (charset_ordered_list_tick): Extern it.
21214 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
21215 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
21216 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
21217 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
21218 (Funify_charset): Adjust for the change of Funify_charset.
21219
21220 * charset.c (charset_ordered_list_tick): New variable.
21221 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
21222 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
21223 deunify intead of unify a charset.
21224 (string_xstring_p): Add `const' to local variables.
21225 (find_charsets_in_text): Add `const' to arguments and local variables.
21226 (encode_char): Adjust for the change of Funify_charset. Fix
21227 detecting of invalid code.
21228 (Fset_charset_priority): Increment charset_ordered_list_tick.
21229 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
21230 and TO_CODE.
21231
21232 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
21233 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
21234 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
21235 (decode_coding_ccl, consume_chars)
21236 (Ffind_coding_systems_region_internal)
21237 (Fcheck_coding_systems_region): Add `const' to local variables.
21238
21239 * print.c (print_object): Use octal form for printing the
21240 contents of a bool vector.
21241
212422008-02-01 Dave Love <fx@gnu.org>
21243
21244 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
21245 <version == 20>: Refuse to load.
21246
212472008-02-01 Dave Love <fx@gnu.org>
21248
21249 * fns.c: Move coding.h.
21250 (Qcodeset, Qdays, Qmonths): New.
21251 (concat): Use CHARACTERP instead of INTEGERP.
21252 (Flocale_codeset): Delete.
21253 (Flanginfo): New function.
21254 (syms_of_fns): Change accordingly.
21255
21256 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
21257
212582008-02-01 Dave Love <fx@gnu.org>
21259
21260 * casetab.c (init_casetab_once, init_casetab_once): Fix
21261 CHAR_TABLE_SET call.
21262
21263 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
21264
21265 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
21266
21267 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
21268 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
21269 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
21270
21271 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
21272
21273 * coding.c (ENCODE_DESIGNATION, decode_eol)
21274 (make_conversion_work_buffer, code_conversion_restore)
21275 (Fdefine_coding_system_internal): Convert Lisp types.
21276 (code_conversion_restore): Use EQ, not ==.
21277 (Fencode_coding_string): Fix code_convert_string call.
21278
21279 * coding.h (code_convert_region): Fix prototype.
21280
21281 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
21282
21283 * fontset.c (fontset_ref, fontset_set, fs_load_font)
21284 (Ffontset_info): Convert Lisp types.
21285
21286 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
21287
21288 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
21289
21290 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
21291
21292 * chartab.c: Include "...h", not <...h> in some cases.
21293
21294 * callproc.c (Fcall_process): Remove unused variables.
21295
212962008-02-01 Dave Love <fx@gnu.org>
21297
21298 * coding.c (Fset_coding_system_priority): Allow null arg list.
21299
213002008-02-01 Dave Love <fx@gnu.org>
21301
21302 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21303 (Fself_insert_and_exit): Use CHARACTERP.
21304
21305 * callproc.c (Fcall_process): Remove unused vars.
21306
21307 * xterm.c (XTread_socket): Add extra dead keysyms.
21308
21309 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
21310
21311 * dispextern.h: Remove prototypes for redraw_frame,
21312 redraw_garbaged_frames.
21313
21314 * cmds.c (Fself_insert_command): Use CHARACTERP.
21315
21316 * chartab.c (make_sub_char_table): Remove unused var.
21317 (Fset_char_table_default, Fmap_char_table): Doc fix.
21318
21319 * keymap.c (access_keymap): Remove generic char code.
21320 (push_key_description): Use CHARACTERP.
21321
213222008-02-01 Dave Love <fx@gnu.org>
21323
21324 * charset.c: Doc fixes.
21325 (Funify_charset): Extra checking.
21326
213272008-02-01 Dave Love <fx@gnu.org>
21328
21329 * lread.c: Remove some unused variables.
21330 (safe_to_load_p): If safe, return the magic number version byte.
21331 (Fload): Maybe use load-with-code-conversion.
21332
213332008-02-01 Kenichi Handa <handa@m17n.org>
21334
21335 * category.c (Fmodify_category_entry): Don't modify the contents
21336 of category_set for characters out of the range. Avoid
21337 unnecessary modification.
21338
21339 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
21340 Vchar_unify_table. The default value of the table is now nil.
21341
21342 * character.c (syms_of_character): Setup Vchar_width_table for
21343 eight-bit-control and raw-byte chars.
21344
21345 * charset.h (enum define_charset_arg_index): Delete
21346 charset_arg_parents and add charset_arg_subset and
21347 charset_arg_superset.
21348 (enum charset_attr_index): Delete charset_parents and add
21349 charset_subset and charset_superset.
21350 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
21351 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
21352 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
21353 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
21354 (CHARSET_SUPERSET): New macros.
21355 (charset_work): Extern it.
21356 (ENCODE_CHAR): Use charset_work.
21357 (CHAR_CHARSET_P): Adjust for the change of encoder format.
21358 (map_charset_chars): Extern it.
21359
21360 * charset.c (load_charset_map): Set the default value of encoder
21361 and deunifier char-tables to nil.
21362 (map_charset_chars): Change argument. Change callers. Use
21363 map_char_table_for_charset instead of map_char_table.
21364 (Fmap_charset_chars): New optional args from_code and to_code.
21365 (Fdefine_charset_internal): Adjust for the change of
21366 `define-charset' (:parents -> :subset or :superset).
21367 (charset_work): New variable.
21368 (encode_char, syms_of_charset): Adjust for the change of
21369 Fdefine_charset_internal.
21370 (Ffind_charset_string): Setup the vector `charsets' correctly.
21371
21372 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
21373 the previous change.
21374 (char_table_ref_and_range): Adjust for the above change.
21375 (map_sub_char_table_for_charset): New function.
21376 (map_char_table_for_charset): New function.
21377
21378 * keymap.c (describe_vector): Handle a char-table directly here.
21379 (describe_char_table): Delete.
21380
21381 * lisp.h (map_charset_chars): Delete.
21382
213832008-02-01 Dave Love <fx@gnu.org>
21384
21385 * fns.c (count_combining): Comment out (unused).
21386 (Flocale_codeset): New.
21387 (syms_of_fns): Defsubr it.
21388
21389 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
21390 (size_t): Remove.
21391
213922008-02-01 Dave Love <fx@gnu.org>
21393
21394 * Makefile.in (chartab.o): Depend on charset.h.
21395
213962008-02-01 Kenichi Handa <handa@m17n.org>
21397
21398 * character.c (syms_of_character): Set the default value of
21399 Vprintable_chars to Qnil.
21400
214012008-02-01 Dave Love <fx@gnu.org>
21402
21403 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
21404
214052008-02-01 Kenichi Handa <handa@m17n.org>
21406
21407 * charset.c (load_charset_map): Handle the case that from < to
21408 correctly.
21409
21410 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
21411 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
21412 Pay attention to raw-8-bit chars.
21413
214142008-02-01 Kenichi Handa <handa@m17n.org>
21415
21416 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
21417 It is not bytecompiled now.
21418
21419 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
21420 (charset_jisx0208): New variables.
21421 (Fdefine_charset_internal): Setup them if appropriate.
21422 (init_charset_once): Initialize them to -1.
21423
21424 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
21425 (charset_jisx0208): Extern them.
21426
21427 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
21428 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
21429 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
21430 (setup_iso_safe_charsets): Fix arguments to Fassq.
21431 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
21432 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
21433 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
21434 (encode_coding_iso_2022): Change the 1st arg to
21435 ENCODE_ISO_CHARACTER to a variable.
21436
214372008-02-01 Kenichi Handa <handa@m17n.org>
21438
21439 * charset.h (enum define_charset_arg_index): New enums
21440 charset_arg_min_code and charset_arg_max_code.
21441 (struct charset): New member char_index_offset.
21442
21443 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
21444 Take charset->char_index_offset into account.
21445 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
21446 args[charset_arg_max_code]. Setup charset.char_index_offset.
21447 (syms_of_charset): Fix args to Fdefine_charset_internal.
21448
214492008-02-01 Dave Love <fx@gnu.org>
21450
21451 * coding.c (decode_coding_utf_8): Reject overlong sequences.
21452
214532008-02-01 Dave Love <fx@gnu.org>
21454
21455 * coding.c: Doc fixes.
21456 (Fcoding_system_aliases): Fix return value.
21457 (Qmac): Remove (duplicated) definition.
21458
214592008-02-01 Dave Love <fx@gnu.org>
21460
362654a6
JB
21461 * charset.c (Fcharset_priority_list, Fset_charset_priority):
21462 New functions.
aac0c6e3
MR
21463
21464 * character.c (Fstring): Doc fix.
21465
21466 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
21467
362654a6 21468 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
21469 (font-encoding-alist): Doc fix.
21470
214712008-02-01 Dave Love <fx@gnu.org>
21472
21473 * term.c (costs_set): Declare static, non-initialized for pcc.
21474 (encode_terminal_code): Remove unused var.
21475
21476 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
21477 for K&R.
21478
21479 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
21480
21481 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
21482 (suffixes): Move out of make_subsidiaries for K&R.
21483
21484 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
21485
21486 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
21487
214882008-02-01 Dave Love <fx@gnu.org>
21489
21490 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
21491
21492 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
21493
214942008-02-01 Yong Lu <lyongu@asia-infonet.com>
21495
21496 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
21497
21498 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
21499
215002008-02-01 Kenichi Handa <handa@m17n.org>
21501
21502 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
21503 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
21504
215052008-02-01 Kenichi Handa <handa@m17n.org>
21506
21507 * coding.c (decode_coding_charset): Adjust for the change of
21508 Fdefine_coding_system_internal.
21509 (Fdefine_coding_system_internal): For a coding system of
21510 `charset' type, store a list of charset IDs in
21511 `charset_attr_charset_valids' element of coding attributes.
21512
215132008-02-01 Kenichi Handa <handa@m17n.org>
21514
21515 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
21516 (emacs_mule_char): New arg src. Delete arg `composition'. Change
21517 caller. Handle 2-byte and 3-byte charsets correctly.
21518 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
21519 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
21520 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
21521 (DECODE_EMACS_MULE_21_COMPOSITION): Call
21522 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
21523 sequence.
21524 (decode_coding_emacs_mule): Handle composition correctly. Rewind
21525 `src' and `consumed_chars' correctly before calling emacs_mule_char.
21526 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
21527 and alt&rule composition.
21528 (decode_coding_iso_2022): Handle composition correctly.
21529 (init_coding_once): Setup emacs_mule_bytes for private charsets.
21530
21531 * charset.c (Fdefine_charset_internal): Fix bug for the case of
21532 re-defining a charset. If the charset has :emacs-mule-id, setup
21533 emacs_mule_bytes.
21534 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
21535
215362008-02-01 Kenichi Handa <handa@m17n.org>
21537
21538 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
21539 (encode_coding_big5, encode_coding_charset): If coding requires safe
21540 encoding, produce a character specified by
21541 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
21542
215432008-02-01 Dave Love <fx@gnu.org>
21544
21545 * xterm.c (XSetIMValues): Declare.
21546
21547 * process.c: Conditionally include sys/wait.h, pty.h.
21548
21549 * print.c (print_object): Fix print format for 64-bit systems.
21550
21551 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
21552
21553 * buffer.c (emacs_strerror): Declare.
21554
21555 * fontset.c (Fclear_face_cache): Declare.
21556 (accumulate_font_info): Comment-out (unused).
21557 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
21558 variables.
21559
21560 * character.h (string_escape_byte8): Declare.
21561
21562 * charset.c (load_charset_map, load_charset_map_from_file): Remove
21563 unused vars.
21564 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
21565 (Fmap_charset_chars): Doc fix.
21566
21567 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
21568 (Fset_coding_system_priority, Fset_coding_system_priority)
21569 (Fdefine_coding_system_internal): Doc fix.
21570
215712008-02-01 Dave Love <fx@gnu.org>
21572
21573 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
21574
215752008-02-01 Kenichi Handa <handa@m17n.org>
21576
21577 * character.c (string_escape_byte8): Make multibyte string with
21578 correct size.
21579
21580 * charset.c (Fmake_char): Delete unnecessary code.
21581
215822008-02-01 Kenichi Handa <handa@m17n.org>
21583
21584 * xfns.c (x_encode_text): Allocate coding.destination here, and
21585 call encode_coding_object with dst_object Qnil.
21586
21587 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
21588 multibyte form correctly.
21589
21590 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
21591 against Vfont_encoding_alist.
21592
21593 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
21594 handling of charset list.
21595 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
21596 (decode_coding_object): Move point to coding->dst_pos before
21597 calling post-read-conversion function.
21598 (encode_coding_object): Give correct arguments to
21599 pre-write-conversion. Ignore the return value of
21600 pre-write-conversion function. Pay attention to the case that
21601 pre-write-conversion changes the current buffer. If dst_object is
21602 Qt, even if coding->src_bytes is zero, allocate at least one byte
21603 to coding->destination.
21604
21605 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
21606
21607 * charset.c (Fmake_char): Make it more backward compatible.
21608 (Fmap_charset_chars): Fix docstring.
21609
216102008-02-01 Dave Love <fx@gnu.org>
21611
21612 * coding.c: Doc fixes.
21613 (Fdefine_coding_system_alias): Use names, not symbols, in
21614 coding-system-alist.
21615
216162008-02-01 Kenichi Handa <handa@m17n.org>
21617
21618 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
21619 of calling free_realized_face.
21620
216212008-02-01 Yong Lu <lyongu@asia-infonet.com>
21622
21623 * charset.c (read_hex): Don't treat SPC as a comment starter.
21624 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
21625 (Fdecode_char): Fix typo.
21626
216272008-02-01 Kenichi Handa <handa@m17n.org>
21628
21629 * charset.h (struct charset): New member `code_space_mask'.
21630
21631 * coding.c (coding_set_source): Delete the local variable beg_byte.
21632 (encode_coding_charset, Fdefine_coding_system_internal):
21633 Delete the local variable charset.
21634 (Fdefine_coding_system_internal): Setup
21635 attrs[coding_attr_charset_valids] correctly.
21636
21637 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
21638 member to check if CODE is valid or not.
21639 (Fdefine_charset_internal): Initialize `code_space_mask' member.
21640 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
21641 is within the range of charset->min_code and carset->max_code.
21642
216432008-02-01 Dave Love <fx@gnu.org>
21644
21645 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
21646
21647 * dispextern.h (generate_ascii_font): Fix return type.
21648
21649 * xfaces.c (generate_ascii_font): Fix arg declaration.
21650
21651 * coding.c (coding_inherit_eol_type)
21652 (Fset_terminal_coding_system_internal)
21653 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
21654
216552008-02-01 Kenichi Handa <handa@m17n.org>
21656
21657 * coding.c (decode_coding_charset, encode_coding_charset): Handle
21658 multiple charsets correctly.
21659
216602008-02-01 Kenichi Handa <handa@m17n.org>
21661
21662 * search.c (boyer_moore): Fix handling of multibyte character
21663 translation.
21664
21665 * xdisp.c (display_mode_element): When the variable `elt' is
21666 changed, update `this' and `lisp_string'.
21667
216682008-02-01 Kenichi Handa <handa@m17n.org>
21669
21670 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
21671
21672 * callproc.c (Fcall_process): Be sure to give the current buffer
21673 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
21674
21675 * charset.c (struct charset_map_entries): New struct.
21676 (load_charset_map): Rename from parse_charset_map. New args
21677 entries and n_entries. Change caller.
21678 (load_charset_map_from_file): Rename from load_charset_map.
21679 Change caller. New arg control_flag. Call load_charset_map at
21680 the tail.
21681 (load_charset_map_from_vector): New function.
21682 (Fdefine_charset_internal): Setup charset.compact_codes_p.
21683 (encode_char): If the charset is compact, change a character index
21684 to a code point.
21685
21686 * coding.c (coding_alloc_by_making_gap): Check the case that the
21687 source and destination are the same correctly.
21688 (decode_coding_raw_text): Set coding->consumed_char and
21689 coding->consumed to 0.
21690 (produce_chars): If coding->chars_at_source is nonzero, update
21691 coding->consumed_char and coding->consumed before calling
21692 alloc_destination.
21693 (Fdefine_coding_system_alias): Register ALIAS in
21694 Vcoding_system_alist.
21695 (syms_of_coding): Define `no-conversion' coding system at the tail.
21696
21697 * fileio.c (Finsert_file_contents): Set coding_system instead of
21698 val. If the current buffer is multibyte, always call
21699 decode_coding_gap.
21700
21701 * xfaces.c (try_font_list): Give higher priority to fontset's
21702 family than face's family.
21703
217042008-02-01 Kenichi Handa <handa@m17n.org>
21705
21706 * callproc.c (Fcall_process): Be sure to give the current buffer
21707 to decode_coding_c_string.
21708
21709 * xfaces.c (try_font_list): Give a family specified in a fontset
21710 higher priority than a family specified in a face.
21711
217122008-02-01 Kenichi Handa <handa@m17n.org>
21713
21714 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
21715 Fix arguments to insert_from_buffer.
21716
21717 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
21718
217192008-02-01 Kenichi Handa <handa@m17n.org>
21720
21721 * coding.c (produce_chars): Set the variable `multibytep' correctly.
21722 (decode_coding_gap): Set coding->dst_multibyte correctly.
21723
217242008-02-01 Kenichi Handa <handa@m17n.org>
21725
21726 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
21727 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
21728 (encode_coding_utf_16): Substitute coding->default_char for
21729 non-Unicode characters.
21730 (decode_coding): Don't call record_insert here.
21731 (setup_coding_system): Initialize `surrogate' of
21732 coding->spec.utf_16 to 0.
21733 (EMIT_ONE_BYTE): Fix for multibyte case.
21734
21735 * insdel.c (insert_from_gap): Call record_insert.
21736
217372008-02-01 Kenichi Handa <handa@m17n.org>
21738
21739 * casefiddle.c (casify_region): Fix multibyte case.
21740
21741 * character.c (c_string_width): Add return type `int'.
21742 (char_string_with_unification): Delete arg ADVANCED.
21743
21744 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
21745 (CHAR_STRING): Adjust for the change of char_string_with_unification.
21746 (CHAR_STRING_ADVANCE): Make it do-while statement.
21747
21748 * chartab.c (sub_char_table_set_range): Optimize for the case
21749 DEPTH == 3. Add workaround code for a GCC optimization bug.
21750
21751 * charset.c (parse_charset_map): Remove an unused variable.
21752
21753 * coding.c: Delete unused variables.
21754
21755 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
21756 earlier. If inserted is zero and the coding system doesn't
21757 require flushing, don't call decode_coding_gap.
21758
21759 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
21760
217612008-02-01 Kenichi Handa <handa@m17n.org>
21762
21763 The following changes are for using Unicode as an internal
21764 character model, and use UTF-8 format for buffer/string
21765 representation.
21766
21767 * .gdbinit (xchartable): Adjust for the change of char table structure.
21768 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
21769
21770 * Makefile.in (obj): Add character.o and chartab.o.
21771 (lisp, shortlisp): Remove utf-8.elc.
21772 (*.o): For many files, change dependency on charset.h to
21773 character.h, and add dependency on character.h.
21774 (character.o, chartab.o): New targets.
21775
21776 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
21777 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
21778 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
21779 of "charset.h".
21780
21781 * dired.c, filelock.c: Include "character.h".
21782
21783 * alloc.c: Include "character.h" instead of "charset.h".
21784 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
21785 (syms_of_alloc): Remove defsubr for Smake_char_table.
21786
21787 * buffer.c: Include "character.h" instead of "charset.h", don't
21788 include "coding.h".
21789 (Fset_buffer_multibyte): Adjust for UTF-8.
21790
21791 * buffer.h: EXFUN Fbuffer_live_p.
21792
21793 * callproc.c: Include "character.h" instead of "charset.h".
21794 (Fcall_process): Big change for the new code-conversion APIs.
21795
21796 * casetab.c: Include "character.h" instead of "charset.h".
21797 (set_canon, set_identity, shuffle): Adjust for the new
21798 map_char_table spec.
21799 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
21800 accessing the char table structure.
21801
21802 * chartab.c: New file that implements char table.
21803
21804 * category.c: Include "character.h".
21805 (copy_category_entry): New function.
21806 (copy_category_table): Call map_char_table and copy_category_entry.
21807 (Fmake_category_table): Initialize all top-level slots.
21808 (char_category_set): New function.
21809 (modify_lower_category_set): Delete.
21810 (Fmodify_category_entry): Call char_table_ref_and_range.
21811
21812 * category.h (CATEGORY_SET): Just call char_category_set.
21813
21814 * ccl.c: Include "character.h".
21815 (Qccl, Qcclp): New variables.
21816 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
21817 it's less than 256.
21818 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
21819 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
21820 and DST type.
21821 (ccl_driver): Change types of argument, adjust code accordingly.
21822 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
21823 ccl_driver.
21824 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
21825
21826 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
21827 New members src_multibyte, dst_multibyte, consumed, and produced.
21828 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
21829 (CODING_SPEC_CCL_PROGRAM): New macro.
21830 (ccl_driver): Update prototype.
21831 (Qccl, Qcclp, Fccl_program_p): Extern them.
21832 (CHECK_CCL_PROGRAM): New macro.
21833
21834 * character.c, character.h, chartab.c: New files.
21835
21836 * charset.c: Mostly re-written. Move character and multibyte sequence
21837 handling codes to character.c.
21838
21839 * charset.h: Mostly re-written. Move character and multibyte sequence
21840 handling codes to character.h.
21841
21842 * coding.c, coding.h: Mostly re-written.
21843
21844 * composite.c: Include "character.h" instead of "charset.h".
21845 (CHAR_WIDTH): Move to character.h.
21846 (HASH_KEY, HASH_VALUE): Delete.
21847
21848 * composite.h (enum composition_method): Change order of enumeration
21849 symbols.
21850
21851 * data.c: Include "character.h" instead of "charset.h".
21852 (Faref): Call CHAR_TABLE_REF for a char table.
21853 (Faset): Call CHAR_TABLE_SET for a char table.
21854
21855 * dispextern.h (free_realized_face, check_face_attribytes)
21856 (generate_ascii_font): Extern them.
21857 (free_realized_multibyte_face): Delete extern.
21858
21859 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
21860 table structure.
21861
21862 * editfns.c: Include "character.h" instead of "charset.h".
21863 (Fchar_to_string): Always call CHAR_STRING.
21864
21865 * emacs.c (main): Call init_charset_once, init_charset,
21866 syms_of_chartab, and syms_of_character.
21867
21868 * fileio.c: Include "character.h" instead of "charset.h".
21869 (Finsert_file_contents): Big change for the new code-conversion API.
21870 (choose_write_coding_system, Fwrite_region): Likewise.
21871 (build_annotations_2): Delete.
21872 (e_write): Big change for the new code-conversion API.
21873
21874 * fns.c: Include "character.h" instead of "charset.h".
21875 (copy_sub_char_table): Move to chartab.c.
21876 (Fcopy_sequence): Call copy_char_table for a char table.
21877 (concat): Delete codes calling count_multibyte.
21878 (string_char_to_byte, string_byte_to_char): Adjust for the new
21879 multibyte form.
21880 (internal_equal): Adjust for the change of char table structure.
21881 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
21882 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
21883 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
21884 (char_table_translate, optimize_sub_char_table)
21885 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
21886 chartab.c.
21887 (char_table_ref_and_index): Delete.
21888 (HASH_KEY, HASH_VALUE): Move to lisp.h.
21889 (Fmd5): Call preferred_coding_system instead of accessing
21890 Vcoding_category_list. Adjust for the new code-conversion API.
21891 (syms_of_fns): Move defsubr for char table related functions to
21892 chartab.c.
21893
21894 * fontset.c: Mostly re-written.
21895
21896 * fontset.h (struct font_info): Change type of the member encoding_type.
21897 (enum FONT_SPEC_INDEX): New enum.
21898 (fontset_font_pattern, fs_load_font): Update prototype.
21899 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
21900
21901 * indent.c: Include "character.h" instead of "charset.h".
21902 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
21903
21904 * insdel.c: Include "character.h" instead of "charset.h".
21905 (copy_text): Don't refer to Vnonascii_translation_table.
21906 (insert_from_gap): New function.
21907
21908 * keyboard.c: Include "character.h" instead of "charset.h".
21909 (command_loop_1): Never call direct_output_forward_char before
21910 a non-ASCII character.
21911 (read_char): If Vkeyboard_translate_table is a char table, always
21912 translate a character.
21913
21914 * keymap.c: Include "character.h".
21915 (store_in_keymap): Handle the case that IDX is a cons.
21916 (Fdefine_key): Handle the case that KEY is a cons and the car part
21917 is also a cons (range).
21918 (push_key_description): Adjust for the new character code.
21919 (describe_vector): Call describe_char_table for a char table.
21920 (describe_char_table): New function.
21921
21922 * keymap.h (describe_char_table): Extern it.
21923
21924 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
21925 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
21926 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
21927 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
21928 Delete.
21929 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
21930 structure.
21931 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
21932 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
21933 (CHARTAB_SIZE_BITS_3): New macros.
21934 (chartab_size): Extern it.
21935 (struct Lisp_Char_Table): Re-design.
21936 (struct Lisp_Sub_Char_Table): New structure.
21937 (HASH_KEY, HASH_VALUE): Move from fns.c.
21938 (CHARACTERBITS): Define as 22.
21939 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
21940 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
21941 (GC_SUB_CHAR_TABLE_P): New macro.
21942 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
21943 (code_convert_string_norecord): Deleted extern.
21944 (init_character_once, syms_of_character, init_charset)
21945 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
21946
21947 * lread.c: Include "character.h".
21948 (read_multibyte): New arg NBYTES.
21949 (read_escape): Change the meaning of returned *BYTEREP.
21950 (to_multibyte): Delete.
21951 (read1): Adjust the handling of char table and string.
21952
21953 * print.c: Include "character.h" instead of "charset.h".
21954 (print_string): Convert 8-bit raw bytes to octal form by
21955 string_escape_byte8.
21956 (print_object): Adjust for the new multibyte form. Print 8-bit
21957 raw bytes always in octal form. Handle sub char table correctly.
21958
21959 * process.c: Include "character.h" instead of "charset.h".
21960 (read_process_output, send_process): Adjust for the new
21961 code-conversion API.
21962
21963 * puresize.h (BASE_PURESIZE): Increase.
21964
21965 * regex.c: Include "character.h" instead of "charset.h".
21966 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
21967 (regex_compile): Accept a range whose starting and ending
21968 character have different leading bytes.
21969 (analyse_first): Adjust for the above change.
21970
21971 * search.c: Include "character.h" instead of "charset.h".
21972 (search_buffer, boyer_moore): Adjust for the new multibyte form.
21973 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
21974
21975 * syntax.c: Include "character.h" instead of "charset.h".
21976 (syntax_parent_lookup): Delete.
21977 (Fmodify_syntax_entry): Accept a cons as CHAR.
21978 (skip_chars): Adjust for the new multibyte form.
21979 (init_syntax_once): Call char_table_set_range instead of directly
21980 accessing the structure of a char table.
21981
21982 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
21983 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
21984 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
21985 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
21986
21987 * term.c: Include "buffer.h" and "character.h".
21988 (encode_terminal_code, write_glyphs): Adjust for the new
21989 code-conversion API.
21990 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
21991
21992 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
21993
21994 * xdisp.c: Include "character.h".
21995 (get_next_display_element): Adjust for the new multibyte form.
21996 (disp_char_vector): Adjust for the new char table structure.
21997 (decode_mode_spec_coding): Adjust for the new structure of
21998 coding system.
21999 (decode_mode_spec): Adjust for the new code-conversion API.
22000
22001 * xfaces.c: Include "character.h" instead of "charset.h".
22002 (load_face_font): Adjust for the change of choose_face_font and
22003 FS_LOAD_FONT.
22004 (generate_ascii_font): New function.
22005 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
22006 (set_font_frame_param): Adjust for the change of choose_face_font.
22007 (free_realized_face): Make it public.
22008 (free_realized_faces_for_fontset): Rename from
22009 free_realized_multibyte_face. Free also faces realized for ASCII.
22010 (choose_face_font): Change arguments. Adjust for the change of
22011 fontset_font_pattern and FS_LOAD_FONT.
22012
22013 * xfns.c: Include "character.h".
22014 (x_encode_text): Adjust for the new code-conversion API.
22015
22016 * xselect.c: Don't include "charset.h".
22017 (selection_data_to_lisp_data): Adjust for the new code conversion API.
22018
22019 * xterm.c: Include "character.h".
22020 (x_encode_char): New argument CHARSET. Change caller.
22021 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
22022 Call ENCODE_CHAR instead of SPLIT_CHAR.
22023 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
22024 CHAR_WIDTH instead of CHARSET_WIDTH.
22025 (XTread_socket): Adjust for the new code-conversion API.
22026 (x_new_font): Adjust for the change of FS_LOAD_FONT.
22027 (x_load_font): Adjust for the change of struct font.
22028
220292008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
22030
22031 * xfaces.c (face_at_buffer_position): Remove unused vars.
22032
220332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22034
22035 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
22036 Fix overflow checking.
22037
220382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
22039
22040 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
22041 Cancel previous change.
22042
220432008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22044
22045 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
22046 ccl->eight_bit_control. Fix check for buffer overflow.
22047 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
22048 (ccl_driver): Initialize extra_bytes to 0.
22049
220502008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
22051
22052 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
22053 return it ORed with ctrl_modifier.
22054
220552008-01-29 Miles Bader <miles@gnu.org>
22056
22057 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
22058
220592008-01-28 Jason Rumney <jasonr@gnu.org>
22060
22061 * w32.c (stat): Don't double check for networked drive.
22062
220632008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
22064
22065 * window.c (run_window_configuration_change_hook): New function.
22066 Code extracted from set_window_buffer. Set the selected frame.
22067 (set_window_buffer): Use it.
22068 * window.h (run_window_configuration_change_hook): Declare.
22069 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
22070
22071 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
22072
220732008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
22074
22075 * Makefile.in: Remove references to unused macros.
22076
220772008-01-26 Eli Zaretskii <eliz@gnu.org>
22078
22079 * w32.c (g_b_init_get_sid_sub_authority)
22080 (g_b_init_get_sid_sub_authority_count): New static variables.
22081 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
22082 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
22083 (init_user_info): Use them to retrieve uid and gid.
22084 Use 500/513, the Windows defaults, as Administrator's uid/gid.
22085 (fstat): Use pw_uid and pw_gid from the_passwd structure for
22086 st_uid and st_gid of the file.
22087
220882008-01-26 Jason Rumney <jasonr@gnu.org>
22089
22090 * w32.c (logon_network_drive): New function.
22091 (stat): Use it.
22092
220932008-01-26 Chong Yidong <cyd@stupidchicken.com>
22094
22095 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
22096 invisible text covered with an ellipsis.
22097
220982008-01-25 Richard Stallman <rms@gnu.org>
22099
22100 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
22101 jump back to beginning. Move some other initializations after that.
22102 (Qwindow_text_change_functions, Vwindow_text_change_functions):
22103 New variables.
22104 (syms_of_xdisp): Init them.
22105
22106 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
22107
22108 * buffer.c (reset_buffer_local_variables):
22109 Implement `permanent-local-hook'.
22110 (Qpermanent_local_hook): New variable.
22111 (syms_of_buffer): Init and staticpro it.
22112
221132008-01-25 Michael Albinus <michael.albinus@gmx.de>
22114
22115 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
22116
221172008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
22118
22119 * fns.c (Fclrhash): Return TABLE.
22120
221212008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22122
22123 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
22124 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
22125 is set even without positional changes.
22126 (x_scroll_bar_clear): Set bar->redraw_needed_p.
22127
22128 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
22129
221302008-01-23 Jason Rumney <jasonr@gnu.org>
22131
22132 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
22133
22134 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
22135 the unicode range available in MULE by locale-coding-system.
22136 Improve dbcs lead byte detection. Set event timestamp and modifiers
22137 earlier.
22138
221392008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22140
22141 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
22142 [MAC_OSX] (init_mac_osx_environment): Initialize it.
22143 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
22144 when used on child processes.
22145
221462008-01-21 Michael Albinus <michael.albinus@gmx.de>
22147
22148 * dbusbind.c (Fdbus_method_return_internal): Rename from
22149 Fdbus_method_return.
22150 (Fdbus_unregister_object): Move to dbus.el.
22151 (Fdbus_call_method, Fdbus_method_return_internal)
22152 (Fdbus_send_signal): Improve debug messages.
22153
221542008-01-20 Martin Rudalics <rudalics@gmx.at>
22155
22156 * undo.c (undo_inhibit_record_point): New variable.
22157 (syms_of_undo): Initialize it.
22158 (record_point): Don't record point when undo_inhibit_record_point
22159 is set.
22160
221612008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
22162
22163 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
22164
22165 * xdisp.c (Qauto_hscroll_mode): New var.
22166 (syms_of_xdisp): Initialize it.
22167 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
22168 window's buffer.
22169 (hscroll_windows): Don't check automatic_hscrolling_p here.
22170
22171 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
22172 vscroll if we're setting window-buffer to the value it already has.
22173
221742008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
22175
22176 * m/intel386.h: Remove references to XENIX.
22177
221782008-01-17 Andreas Schwab <schwab@suse.de>
22179
22180 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
22181 instead of HAVE_X86_64_LIB64_DIR.
22182 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
22183
221842008-01-17 Glenn Morris <rgm@gnu.org>
22185
22186 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
22187 to HAVE_X86_64_LIB64_DIR.
22188
221892008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
22190
22191 * s/irix3-3.h:
22192 * s/irix4-0.h:
22193 * s/386-ix.h:
22194 * s/domain.h:
22195 * s/hpux9-x11r4.h:
22196 * s/hpux9shxr4.h: Remove files for systems no longer supported.
22197
22198 * sysdep.c: Remove code containing references to symbols defined
22199 by unsupported systems.
22200
222012008-01-16 Glenn Morris <rgm@gnu.org>
22202
22203 * coding.c (select-safe-coding-system-function): Doc fix.
22204
222052008-01-15 Glenn Morris <rgm@gnu.org>
22206
22207 * config.in: Revert 2008-01-13 change: this is a generated file.
22208
222092008-01-13 Tom Tromey <tromey@redhat.com>
22210
22211 * lisp.h: Fix typo.
22212
222132008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22214
22215 * m/sequent-ptx.h:
22216 * m/sequent.h:
22217 * s/ptx.h:
22218 * s/ptx4-2.h:
22219 * s/ptx4.h: Remove files for systems no longer supported.
22220
22221 * callproc.c (Fcall_process): Fix previous change.
22222
222232008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
22224
22225 * unexsunos4.c: Remove file, system not supported anymore.
22226
22227 * m/mips.h:
22228 * m/intel386.h:
22229 * callproc.c:
22230 * config.in:
22231 * ecrt0.c:
22232 * emacs.c:
22233 * fileio.c:
22234 * frame.c:
22235 * getpagesize.h:
22236 * keyboard.c:
22237 * lread.c:
22238 * process.c:
22239 * puresize.h:
22240 * sysdep.c:
22241 * systty.h:
22242 * syswait.h:
22243 * unexec.c:
22244 * xdisp.c:
22245 * alloc.c: Remove code containing references to symbols defined by
22246 unsupported systems.
22247
222482008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
22249
22250 * coding.c (detect_coding_mask): Fix previous change.
22251
222522008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
22253
22254 * coding.c (detect_coding_iso2022): New arg
22255 latin_extra_code_state. Allow Latin extra codes only
22256 when *latin_extra_code_state is nonzero.
22257 (detect_coding_mask): If there is a NULL byte, detect the encoding
22258 as UTF-16 or binary. If Latin extra codes exist, detect the
22259 encoding as ISO-2022 only when there's no other proper encoding is
22260 found.
22261
222622008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22263
22264 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
22265 #ifdef MAC_OS.
22266
222672008-01-08 Richard Stallman <rms@gnu.org>
22268
22269 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
22270
222712008-01-06 Nick Roberts <nickrob@snap.net.nz>
22272
22273 * keyboard.c (parse_menu_item): Don't enclose key bindings on
22274 menu bar in parentheses.
22275
222762008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
22277
22278 * m/7300.h:
22279 * m/acorn.h:
22280 * m/alliant-2800.h:
22281 * m/alliant.h:
22282 * m/alliant1.h:
22283 * m/alliant4.h:
22284 * m/altos.h:
22285 * m/amdahl.h:
22286 * m/apollo.h:
22287 * m/att3b.h:
22288 * m/aviion-intel.h:
22289 * m/aviion.h:
22290 * m/celerity.h:
22291 * m/clipper.h:
22292 * m/cnvrgnt.h:
22293 * m/convex.h:
22294 * m/cydra5.h:
22295 * m/delta88k.h:
22296 * m/dpx2.h:
22297 * m/dual.h:
22298 * m/elxsi.h:
22299 * m/f301.h:
22300 * m/gould-np1.h:
22301 * m/gould.h:
22302 * m/i860.h:
22303 * m/ibmps2-aix.h:
22304 * m/ibmrt-aix.h:
22305 * m/ibmrt.h:
22306 * m/irist.h:
22307 * m/is386.h:
22308 * m/isi-ov.h:
22309 * m/mega68.h:
22310 * m/mg1.h:
22311 * m/news-r6.h:
22312 * m/news-risc.h:
22313 * m/news.h:
22314 * m/nh3000.h:
22315 * m/nh4000.h:
22316 * m/ns16000.h:
22317 * m/ns32000.h:
22318 * m/nu.h:
22319 * m/orion.h:
22320 * m/orion105.h:
22321 * m/paragon.h:
22322 * m/pfa50.h:
22323 * m/plexus.h:
22324 * m/pyramid.h:
22325 * m/pyrmips.h:
22326 * m/sh3el.h:
22327 * m/sps7.h:
22328 * m/sr2k.h:
22329 * m/stride.h:
22330 * m/sun1.h:
22331 * m/sun2.h:
22332 * m/sun3-68881.h:
22333 * m/sun3-fpa.h:
22334 * m/sun3-soft.h:
22335 * m/sun3.h:
22336 * m/sun386.h:
22337 * m/symmetry.h:
22338 * m/tad68k.h:
22339 * m/tahoe.h:
22340 * m/targon31.h:
22341 * m/tek4300.h:
22342 * m/tekxd88.h:
22343 * m/tower32.h:
22344 * m/tower32v3.h:
22345 * m/ustation.h:
22346 * m/wicat.h:
22347 * m/xps100.h:
22348 * s/cxux.h:
22349 * s/cxux7.h:
22350 * s/dgux.h:
22351 * s/dgux4.h:
22352 * s/dgux5-4-3.h:
22353 * s/dgux5-4r2.h:
22354 * s/esix.h:
22355 * s/esix5r4.h:
22356 * s/hiuxmpp.h:
22357 * s/hiuxwe2.h:
22358 * s/iris3-5.h:
22359 * s/iris3-6.h:
22360 * s/isc2-2.h:
22361 * s/isc3-0.h:
22362 * s/isc4-0.h:
22363 * s/isc4-1.h:
22364 * s/newsos5.h:
22365 * s/newsos6.h:
22366 * s/osf1.h:
22367 * s/osf5-0.h:
22368 * s/riscix1-1.h:
22369 * s/riscix12.h:
22370 * s/sco4.h:
22371 * s/sco5.h:
22372 * s/sunos4-0.h:
22373 * s/sunos4-1.h:
22374 * s/sunos413.h:
22375 * s/sunos4shr.h:
22376 * s/umax.h:
22377 * s/unipl5-2.h:
22378 * s/xenix.h:
22379 * cxux-crt0.s:
22380 * unexapollo.c:
22381 * unexconvex.c:
22382 * unexenix.c:
22383 * unexsni.c: Remove files for systems no longer supported.
22384
22385 * m/intel386.h: Remove references to unsupported systems.
22386
22387 * w32.c (get_emacs_configuration): Remove reference to i860.
22388
22389 * sysdep.c: Remove dead code.
22390
223912008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
22392
22393 * s/rtu.h:
22394 * m/masscomp.h: Remove files. Platform is obsolete.
22395
223962008-01-04 Michael Albinus <michael.albinus@gmx.de>
22397
22398 * dbusbind.c (Fdbus_method_return): New function.
22399 (xd_read_message): Add the serial number to the event.
22400 (Fdbus_register_method): Activate the function.
22401
224022008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
22403
22404 * keyboard.c (read_key_sequence): Fix typo.
22405
224062008-01-03 Michael Albinus <michael.albinus@gmx.de>
22407
22408 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
22409 (xd_signature, xd_append_arg): Handle element type detection for
22410 empty arrays.
22411 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
22412 SDATA () calls; this must be solved more general.
22413 (Fdbus_register_signal): Use SBYTES instead of strlen.
22414
224152008-01-03 Magnus Henoch <magnus@zemdatav>
22416
22417 * dbusbind.c (xd_append_arg): Use unsigned char instead of
22418 unsigned int for byte values (necessary for big-endian platform).
22419 (Fdbus_call_method): Handle the case of no returned arguments.
22420
224212007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
22422
22423 * dbusbind.c (xd_read_message): Use non-static input_event struct.
22424
224252007-12-31 Magnus Henoch <mange@freemail.hu>
22426
22427 * dbusbind.c (xd_signature): Signature of variant is just "v".
22428
224292007-12-30 Michael Albinus <michael.albinus@gmx.de>
22430
22431 * dbusbind.c: Fix several errors and compiler warnings.
22432 Reported by Tom Tromey <tromey@redhat.com>.
22433 (XD_ERROR, XD_DEBUG_MESSAGE)
22434 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
22435 (xd_append_arg): Part for basic D-Bus types rewritten.
22436 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
22437 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
22438 appropriate.
22439 (xd_read_message): Return Qnil. Don't signal an error; it is not
22440 useful during event reading.
22441 (Fdbus_register_signal): Signal an error if the check for
22442 FUNCTIONP fails.
22443 (Fdbus_register_method): New function. The implementation is not
22444 complete, the call of the function signals an error therefore.
22445 (Fdbus_unregister_object): New function, renamed from
22446 Fdbus_unregister_signal. The initial check signals an error, if
22447 the object is not well formed.
22448
224492007-12-30 Richard Stallman <rms@gnu.org>
22450
22451 * textprop.c (get_char_property_and_overlay):
22452 Signal error if POSITION is out of range in a buffer.
22453
224542007-12-29 Martin Rudalics <rudalics@gmx.at>
22455
22456 * w32fns.c (Fx_create_frame): Make copy of frame parameters
22457 because the original parameters are in pure storage now.
22458
224592007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22460
22461 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
22462
224632007-12-22 Eli Zaretskii <eliz@gnu.org>
22464
22465 * callint.c (syms_of_callint) <command-history>: Add reference to
22466 history-length in the doc string.
22467
224682007-12-17 Jason Rumney <jasonr@gnu.org>
22469
22470 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
22471 before passing as wParam.
22472
224732007-12-22 Michael Albinus <michael.albinus@gmx.de>
22474
22475 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
22476 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
22477 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
22478 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
22479 as number.
22480 (Fdbus_call_method): Fix docstring.
22481
224822007-12-21 Michael Albinus <michael.albinus@gmx.de>
22483
22484 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
22485 New macros.
22486 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
22487 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
22488 Simplify.
22489 (xd_signature): New function.
22490 (xd_append_arg): Compute also signatures. Major rewrite.
22491 (xd_retrieve_arg): Make debug messages friendly.
22492 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
22493 Check for signatures of arguments.
22494
224952007-12-19 Michael Albinus <michael.albinus@gmx.de>
22496
22497 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
22498 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
22499 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
22500 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
22501 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
22502 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
22503 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
22504 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
22505 (xd_retrieve_value): Remove. Functionality included in ...
22506 (xd_append_arg): New function.
22507 (Fdbus_call_method, Fdbus_send_signal): Apply it.
22508
225092007-12-16 Michael Albinus <michael.albinus@gmx.de>
22510
22511 * dbusbind.c (top): Include <stdio.h>.
22512 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
22513 dbus_message_new_method_call and dbus_message_new_signal.
22514 (Fdbus_register_signal): Rename unique_name to uname.
22515 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
22516 non-existing unique name. Fix typos in matching rule. Return an
22517 object which is useful in Fdbus_unregister_signal.
22518 (Fdbus_unregister_signal): Reimplementation, in order to remove
22519 only the corresponding entry.
22520 (Vdbus_registered_functions_table): Change the order of entries.
22521 Apply these changes in xd_read_message and Fdbus_register_signal.
22522
225232007-12-16 Andreas Schwab <schwab@suse.de>
22524
22525 * fileio.c (Finsert_file_contents): Fix overflow check to not
22526 depend on undefined integer overflow.
22527
225282007-12-14 Jason Rumney <jasonr@gnu.org>
22529
22530 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
22531 for characters above 127.
22532
225332007-12-13 Jason Rumney <jasonr@gnu.org>
22534
22535 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
22536 before dereferencing array.
22537 (lookup_vk_code): Remove zero comparison.
22538
225392007-12-14 Michael Albinus <michael.albinus@gmx.de>
22540
22541 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
22542 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
22543 Use `unsigned int' instead of `uint'.
22544 (xd_read_message, Fdbus_register_signal): Split expressions into
22545 multiple lines before operators "&&" and "||", according to the
22546 GNU Coding Standards.
22547
225482007-12-14 Eli Zaretskii <eliz@gnu.org>
22549
22550 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
22551
225522007-12-12 Juri Linkov <juri@jurta.org>
22553
22554 * buffer.c (Frename_buffer): In interactive spec replace
22555 `read-buffer' with `read-string' that uses `buffer-name-history'
22556 as history, and the current buffer's name as default.
22557
225582007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
22559
22560 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
22561 manipulating the backtrace manually.
22562 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
22563 (struct backtrace, backtrace_list): Remove.
22564 (command_loop_1): Remove dead var `no_direct'.
22565
22566 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
22567 preserve non-built-in buffer-local variables.
22568 (Fkill_all_local_variables): Don't re-create&re-set permanent
22569 buffer-local variables.
22570
225712007-12-09 Juri Linkov <juri@jurta.org>
22572
22573 * buffer.c (Frename_buffer): Change interactive spec from "s" to
22574 Lisp code that uses `read-buffer' with current buffer as default.
22575
225762007-12-08 Michael Albinus <michael.albinus@gmx.de>
22577
22578 * dbusbind.c (xd_read_message): Generate an event for every
22579 registered handler. There might be several handlers registered
22580 for the same signal.
22581 (Fdbus_register_signal): Don't overwrite a registration for the
22582 same signal. Add a new registration if handlers are different.
22583 (Vdbus_registered_functions_table): Rework doc string.
22584
225852007-12-07 Michael Albinus <michael.albinus@gmx.de>
22586
22587 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
22588 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
22589 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
22590 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
22591 Unify argument lists.
22592 (xd_read_message, Fdbus_register_signal): Reorder and extend event
22593 arguments and hash table keys. Use unique name for service.
22594 (Fdbus_unregister_signal): Remove checks.
22595 (Vdbus_registered_functions_table): Fix doc string.
22596
225972007-12-05 Magnus Henoch <mange@freemail.hu>
22598
22599 * process.c (make_process): Initialize pty_flag to 0.
22600
226012007-12-05 Jason Rumney <jasonr@gnu.org>
22602
22603 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
22604 specified XBMs.
22605
226062007-12-05 Richard Stallman <rms@gnu.org>
22607
22608 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
22609
226102007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22611
22612 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
22613 New variable.
22614 (mac_try_close_socket) [MAC_OSX]: New function.
22615 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
22616 Update cfsockets_for_select. Replace invalid CFRunLoop source.
22617
22618 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
22619 Use mac_try_close_socket.
22620
226212007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22622
22623 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
22624 reloc_base.
22625 (copy_dysymtab): Compute relocation base here.
22626 (rebase_reloc_address) [__ppc64__]: New function.
22627 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
22628 changed.
22629
226302007-12-05 Jason Rumney <jasonr@gnu.org>
22631
22632 * w32proc.c (sys_spawnve): Quote args with wildcards.
22633
226342007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22635
22636 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
22637 __objc_* sections.
22638 (unrelocate) [_LP64]: Set relocation base to address of data segment.
22639
226402007-12-05 Michael Albinus <michael.albinus@gmx.de>
22641
22642 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
22643 Move check for Vdbus_registered_functions_table to
22644 xd_read_queued_messages.
22645 (xd_read_queued_messages): Protect xd_read_message calls by
22646 internal_condition_case_1.
22647
226482007-12-04 Michael Albinus <michael.albinus@gmx.de>
22649
22650 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
22651 Qdbus_system_bus and Qdbus_session_bus, respectively.
22652 (Vdbus_intern_symbols): Remove.
22653 (Vdbus_registered_functions_table): New hash table.
22654 (XD_SYMBOL_INTERN_SYMBOL): Remove.
22655 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
22656 Rewrite in order to manage registered functions by hash table
22657 Vdbus_registered_functions_table.
22658
226592007-12-03 Jan Djärv <jan.h.d@swipnet.se>
22660
22661 * xterm.c: Update URL to Window Manager Specification in comment.
22662
226632007-12-02 Michael Albinus <michael.albinus@gmx.de>
22664
22665 * config.in (HAVE_DBUS): Add.
22666
22667 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
22668 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
22669 (obj): Add $(DBUS_OBJ).
22670 (LIBES): Add $(DBUS_LIBS).
22671 (dbusbind.o): New target.
22672
22673 * dbusbind.c: New file.
22674
22675 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
22676
22677 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
22678 (Qdbus_event): New Lisp symbol.
22679 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
22680 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 22681 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
22682
22683 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
22684
226852007-12-01 Richard Stallman <rms@gnu.org>
22686
22687 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
22688
226892007-11-30 Jason Rumney <jasonr@gnu.org>
22690
22691 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
22692 (w32con_reset_terminal_modes): Clear screen buffer.
22693 (w32_face_attributes): Don't use color indexes that are out of range.
22694 Only reverse the default colors.
22695
22696 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
22697 WINDOWSNT.
22698
22699 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
22700
227012007-11-29 Jason Rumney <jasonr@gnu.org>
22702
22703 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
22704 (w32_face_attributes): Use Vtty_defined_color_alist to determine
22705 if the terminal colors are initialized.
22706 (unspecified_fg, unspecified_bg): Remove unused declarations.
22707
227082007-11-29 Andreas Schwab <schwab@suse.de>
22709
22710 * keyboard.c (apply_modifiers): Fix typo.
22711
227122007-11-29 Richard Stallman <rms@gnu.org>
22713
22714 * keymap.c (Fcurrent_local_map): Doc fix.
22715
227162007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
22717
22718 * s/gnu-kfreebsd.h: New file.
22719
227202007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
22721
22722 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
22723 Don't cast redundantly.
22724
22725 * keyboard.c (KEY_TO_CHAR): New macro.
22726 (parse_modifiers, apply_modifiers): Accept integer arguments.
22727 (read_key_sequence): Use them to unify the "shift->unshift" mapping
22728 for chars and symbol keys.
22729 After doing such remapping, apply function-key-map again.
22730
227312007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
22732
22733 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
22734 compiled anymore.
22735
227362007-11-26 Andreas Schwab <schwab@suse.de>
22737
22738 * process.c (list_processes_1): Fix indentation level of the
22739 command column.
22740
227412007-11-23 Andreas Schwab <schwab@suse.de>
22742
22743 * editfns.c (Fformat): Handle %c specially since it requires the
22744 argument to be of type int.
22745
227462007-11-23 Markus Triska <markus.triska@gmx.at>
22747
22748 * emacs.c (main): Call init_editfns before init_process, since
22749 init_process sets Vprocess_connection_type depending on OS release.
22750
227512007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
22752
22753 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
22754 (find_symbol_value): Use do_symval_forwarding.
22755
22756 * data.c (set_internal): Set the value in the `cons-cell' (for
22757 Buffer_Local_values) not only for frame-local variables.
22758
227592007-11-22 Andreas Schwab <schwab@suse.de>
22760
22761 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
22762 values to sprintf.
22763 * keymap.c (Fsingle_key_description): Likewise.
22764 * print.c (print_object): Likewise.
22765
227662007-11-22 Jan Djärv <jan.h.d@swipnet.se>
22767
22768 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
22769 file for image is nil.
22770
227712007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
22772
22773 * term.c: Include stdarg.h.
22774 (fatal): Implement using varargs.
22775 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
22776
227772007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22778
22779 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
22780 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
22781 Update call to buffer_slot_type_mismatch.
22782 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
22783 (buffer_slot_type_mismatch): Update.
22784 * buffer.c (buffer_local_types): Remove.
22785 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
22786 (defvar_per_buffer): Set the type in the buffer_objfwd.
22787
227882007-11-21 Jason Rumney <jasonr@gnu.org>
22789
22790 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
22791 CreateFileMapping returns NULL on failure.
22792
227932007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
22794
22795 * search.c (Fset_match_data): Remove the `evaporate' feature.
22796 (unwind_set_match_data): Don't use the `evaporate' feature.
22797
227982007-11-21 Jason Rumney <jasonr@gnu.org>
22799
22800 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
22801
22802 * w32console.c (w32con_write_glyphs): Remove unused variables.
22803
228042007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
22805
22806 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
22807
22808 * s/darwin.h (MULTI_KBOARD): Remove.
22809
22810 * macfns.c (x_create_tip_frame, Fx_create_frame)
22811 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
22812
228132007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
22814
22815 * buffer.c (Fbuffer_local_value): Remove redundant test.
22816 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
22817 than in `current-buffer' to match the comment.
22818 Do the swap using swap_in_global_binding.
22819
22820 * data.c (store_symval_forwarding, set_internal):
22821 * eval.c (specbind): Remove dead code.
22822
22823 * coding.c (detect_coding, Fupdate_coding_systems_internal):
22824 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
22825 Since we do not want to see internal Lisp_*fwd objects here.
22826
228272007-11-18 Jan Djärv <jan.h.d@swipnet.se>
22828
22829 * sysdep.c (init_system_name): Use getaddrinfo if available.
22830
22831 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
22832 (x_scroll_bar_note_movement): start, end, with, height in struct
22833 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
22834
228352007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
22836
22837 * puresize.h (BASE_PURESIZE): Increase to 1190000.
22838
228392007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
22840
22841 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
22842 This undoes Richard's change of 14-Oct-2002.
22843
22844 * alloc.c (allocate_other_vector):
22845 * lisp.h (allocate_other_vector): Remove.
22846
22847 * window.c (struct save_window_data): Move non-lisp data to the end
22848 and make it `int' rather than Lisp_Object.
22849 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
22850 Done wrap/unwrap integer values.
22851 (Fset_window_configuration, compare_window_configurations):
22852 Update use of fields to their new types.
22853
22854 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
22855 Turn integer fields into `int'. Merge x_window_low and x_window_high.
22856 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
22857 (SET_SCROLL_BAR_X_WINDOW): Remove.
22858 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
22859 Access the new x_window field directly.
22860 * xterm.c (x_scroll_bar_create): Use a pseudovector.
22861 Don't wrap/unwrap integers into Lisp_Objects.
22862 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
22863 (x_scroll_bar_report_motion):
22864 Don't wrap/unwrap integers into Lisp_Objects.
22865 (x_term_init): Use SDATA.
22866 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
22867 (x_scroll_bar_set_handle, x_scroll_bar_remove)
22868 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
22869 (x_scroll_bar_report_motion, x_scroll_bar_clear):
22870 * xfns.c (x_set_background_color):
22871 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
22872 Access the new x_window field directly.
22873
22874 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
22875 (allocate_pseudovector): Make non-static.
22876
22877 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
22878 (allocate_pseudovector): Declare.
22879 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
22880
228812007-11-15 Andreas Schwab <schwab@suse.de>
22882
22883 * editfns.c (Fformat): Correctly format EMACS_INT values.
22884 Also take precision into account when formatting an integer.
22885
22886 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
22887
228882007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
22889
22890 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
22891 (syms_of_keyboard): Defsubr it.
22892
22893 * data.c (swap_in_global_binding): Fix longstanding bug where
22894 store_symval_forwarding was not called with the right second argument,
22895 thus causing objfwd-ing from being dropped.
22896
228972007-11-14 Juanma Barranquero <lekktu@gmail.com>
22898
22899 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
22900 (Fx_display_pixel_height, Fx_display_planes)
22901 (Fx_display_color_cells, Fx_server_max_request_size)
22902 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
22903 (Fx_display_visual_class, Fx_display_save_under):
22904 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
22905 (Fx_display_pixel_height, Fx_display_planes)
22906 (Fx_display_color_cells, Fx_server_max_request_size)
22907 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
22908 (Fx_display_mm_height, Fx_display_mm_width)
22909 (Fx_display_backing_store, Fx_display_visual_class)
22910 (Fw32_select_font, Fx_display_save_under):
22911 * xfns.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_backing_store)
22915 (Fx_display_save_under): Fix typos in docstrings.
22916
229172007-11-14 Juanma Barranquero <lekktu@gmail.com>
22918
22919 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
22920 corresponding to deleted entries; they are an implementation detail.
22921 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
22922 Remove variables.
22923 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
22924 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
22925 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
22926 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
22927 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
22928 (Fw32_define_rgb_color, Fw32_load_color_file)
22929 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
22930 Fix typos in docstrings.
22931 (Fx_server_version): Reflow docstring.
22932 (Fw32_shell_execute): Doc fixes.
22933
229342007-11-13 Juanma Barranquero <lekktu@gmail.com>
22935
22936 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
22937 if w32_parse_hot_key returned nil.
22938
229392007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
22940
22941 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
22942
229432007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 22944
aac0c6e3
MR
22945 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
22946
22947 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
22948
22949 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
22950 Remove W32_SCROLL_BAR_CLICK_EVENT.
22951
22952 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
22953 Add MULTIMEDIA_KEY_EVENT.
22954
22955 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
22956 (lispy_multimedia_keys) [WINDOWSNT]: New array.
22957 (make_lispy_event) [WINDOWSNT]: Use it to translate
22958 MULTIMEDIA_KEY_EVENT.
22959
22960 * w32term.h (WM_APPCOMMAND): Define if not already.
22961 (GET_APPCOMMAND_LPARAM): Likewise.
22962
22963 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
22964 WM_APPCOMMAND.
22965
22966 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
22967 (syms_of_w32fns): Export and initialize it.
22968 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
22969
229702007-11-09 Chong Yidong <cyd@stupidchicken.com>
22971
22972 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
22973 twice.
22974
22975 * xdisp.c (handle_face_prop): Fix last change.
22976
229772007-11-09 Richard Stallman <rms@gnu.org>
22978
22979 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
22980 not just for after-strings and before-strings.
22981 Call face_for_overlay_string and pass the overlay to it.
22982 (handle_display_prop): Determine whether property came from an overlay.
22983 Pass OVERLAY arg to handle_single_display_spec.
22984 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
22985 (load_overlay_strings): Fill in it->string_overlays.
22986 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
22987
22988 * xfaces.c (face_for_overlay_string): Function renamed from
22989 face_at_buffer_position_no_overlays, and add arg OVERLAY.
22990
22991 * dispextern.h (struct it): New elt string_overlays.
22992 New elt from_overlay, also in stack.
22993 Rearrange a few elements.
22994 (face_for_overlay_string): Decl renamed from
22995 face_at_buffer_position_no_overlays, and add argument.
22996
229972007-11-09 Richard Stallman <rms@gnu.org>
22998
22999 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
23000 to get the base face for an overlay string.
23001
23002 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
23003
23004 * xfaces.c (face_at_buffer_position_no_overlays): New function.
23005
23006 * xdisp.c (handle_stop): Move some code out of loop.
23007
230082007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23009
23010 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
23011 Fix conversion from Lisp object to ATSUFontID.
23012
230132007-11-09 Jason Rumney <jasonr@gnu.org>
23014
23015 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
23016
230172007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23018
23019 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
23020 Don't assume regions are aligned to page boundary.
23021 (print_load_command_name): Add LC_UUID if defined.
23022
230232007-11-09 Richard Stallman <rms@gnu.org>
23024
23025 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
23026
230272007-11-07 Jason Rumney <jasonr@gnu.org>
23028
23029 * s/windows95.h: Remove.
23030
230312007-11-06 Jan Djärv <jan.h.d@swipnet.se>
23032
23033 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
23034 abort with a message on unhandled store_type values.
23035
230362007-11-01 Jan Djärv <jan.h.d@swipnet.se>
23037
23038 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
23039 Remove HAVE_X11R5 and HAVE_X11R4.
23040
230412007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23042
23043 * Makefile.in: Remove references to sunfns.c and sunfns.o.
23044
230452007-11-01 Johan Bockgård <bojohan@gnu.org>
23046
23047 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
23048 Don't set s->stippled_p here, since it has already been set by
23049 x_set_glyph_string_gc from x_draw_glyph_string.
23050
230512007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
23052
23053 * sunfns.c: Remove file.
23054
23055 * m/sun386.h:
23056 * m/sun2.h:
23057 * m/sparc.h: Remove Sun windows code.
23058
230592007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
23060
23061 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
23062 (init_keyboard): Set current_kboard's window-system to nil.
23063 (tty_read_avail_input): Typo.
23064 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
23065
230662007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
23067
23068 * s/usg5-4.h:
23069 * s/usg5-3.h:
23070 * s/ptx.h:
23071 * m/is386.h:
23072 * m/ibmps2-aix.h:
23073 * Makefile.in: Remove all mentions of X10.
23074
23075 * dispnew.c (syms_of_display): Don't mention version 10.
23076
230772007-10-28 Juanma Barranquero <lekktu@gmail.com>
23078
23079 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
23080 ($(BLD)/abbrev.$(O)): Remove.
23081
230822007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
23083
23084 Rewrite abbrev.c in Elisp.
23085 * image.c (Qcount): Don't declare as extern.
23086 (syms_of_image): Initialize and staticpro `Qcount'.
23087 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
23088 * emacs.c (main): Don't call syms_of_abbrev.
23089 * Makefile.in (obj): Remove abbrev.o.
23090 (abbrev.o): Remove.
23091 * abbrev.c: Remove.
23092
230932007-10-26 Martin Rudalics <rudalics@gmx.at>
23094
23095 * window.c (window_min_size_2): Don't count header-line.
23096
230972007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
23098
23099 * frame.h (struct frame): Move all bit fields after the first bit
23100 field to take advantage of the available space. Group all the
23101 chars together to reduce wasted space due to padding.
23102
231032007-10-26 Juanma Barranquero <lekktu@gmail.com>
23104
23105 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
23106
23107 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
23108 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
23109 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
23110 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
23111 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
23112 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
23113 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
23114 (last_marked, mark_object_loop_halt): Make static.
23115
23116 * frame.c (syms_of_frame) <delete-frame-functions>:
23117 Fix typo in docstring.
23118
231192007-10-25 Juanma Barranquero <lekktu@gmail.com>
23120
23121 * w32.c (init_environment): Fix tiny memory leak.
23122 (w32_get_resource): Remove unused variable `ok'.
23123
231242007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
23125
23126 Make `window-system' into a keyboard-local variable (rather than
23127 frame-local as done originally by multi-tty).
23128
23129 * keyboard.h (struct kboard): Add Vwindow_system.
23130 * keyboard.c (init_kboard): Set a default for Vwindow_system.
23131 (mark_kboards): Mark Vwindow_system.
23132
23133 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
23134 (init_display): Don't set the obsolete `window-system' frame-param.
23135
23136 * xterm.c (x_term_init):
23137 * w32term.c (w32_create_terminal):
23138 * term.c (init_tty): Set Vwindow_system.
23139 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
23140 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
23141
23142 * xfns.c (Fx_create_frame, x_create_tip_frame):
23143 * w32fns.c (Fx_create_frame, x_create_tip_frame):
23144 * macfns.c (Fx_create_frame):
23145 Don't set the obsolete `window-system' frame-param.
23146
23147 * frame.h (Qwindow_system): Remove.
23148 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
23149 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
23150
231512007-10-24 Richard Stallman <rms@gnu.org>
23152
23153 * frame.c (x_figure_window_size): For fullscreen case,
23154 set USPosition | PPosition without clobbering rest of window_prompting.
23155
23156 * keyboard.c (Fcurrent_idle_time): Doc fix.
23157
23158 * print.c (Fwith_output_to_temp_buffer): Doc fix.
23159
231602007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
23161
23162 * process.c (unwind_request_sigio): Only define if __ultrix__.
23163
23164 * callproc.c (child_setup): Remove spurious *.
23165
23166 * lisp.h (Fget_text_property): Declare.
23167 (have_menus_p): Declare it here rather than in sys-dep header files.
23168 * macterm.h (have_menus_p):
23169 * msdos.h (have_menus_p):
23170 * xterm.h (have_menus_p): Remove.
23171
23172 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
23173 (Fmake_variable_frame_local): Just check the variable's const-ness
23174 rather than checking nil or t.
23175
231762007-10-22 Jason Rumney <jasonr@gnu.org>
23177
23178 * w32fns.c: Include math.h.
23179 (w32_abort): Declaration moved to nt/config.nt.
23180
23181 * s/ms-w32.h (HAVE_STDLIB_H): Define.
23182 (abort): Redefinition moved to nt/config.nt.
23183
23184 * m/windowsnt.h: Remove.
23185
231862007-10-22 Juanma Barranquero <lekktu@gmail.com>
23187
23188 * emacs.c (Fdump_emacs): Fix typo in message.
23189 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
23190 <installation-directory>: Reflow docstring.
23191
231922007-10-22 Juri Linkov <juri@jurta.org>
23193
23194 * minibuf.c: Allow minibuffer default to be a list of default values.
23195 With empty input use the first element of this list as returned default.
23196 (string_to_object)
23197 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
23198 (read_minibuf): If defalt is cons, set histstring to its car.
23199 (Fread_string): If default_value is cons, set val to its car.
23200 (Fread_buffer): If def is cons, use its car.
23201 (Fcompleting_read): If defalt is cons, set val to its car.
23202
232032007-10-21 Michael Albinus <michael.albinus@gmx.de>
23204
23205 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
23206
232072007-10-20 Juanma Barranquero <lekktu@gmail.com>
23208
23209 * doc.c (Fdocumentation): Check for advice in all cases.
23210
232112007-10-19 Chong Yidong <cyd@stupidchicken.com>
23212
23213 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
23214
232152007-10-19 Richard Stallman <rms@gnu.org>
23216
23217 * doc.c (Fdocumentation): Check for and handle an advised function.
23218
232192007-10-19 Juanma Barranquero <lekktu@gmail.com>
23220
23221 * process.c (Fset_process_filter): Doc fix.
23222
232232007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
23224
23225 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
23226 which caused key-translation-map to applied repeatedly (thus breaking
23227 double-mode).
23228
232292007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23230
23231 * xselect.c (x_own_selection, x_handle_selection_clear)
23232 (x_clear_frame_selections):
23233 * w32menu.c (list_of_panes, list_of_items):
23234 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
23235 * textprop.c (validate_plist, interval_has_all_properties)
23236 (interval_has_some_properties, interval_has_some_properties_list)
23237 (add_properties, text_property_list):
23238 * process.c (Fget_buffer_process, list_processes_1, status_notify):
23239 * minibuf.c (Fassoc_string):
23240 * macselect.c (x_own_selection, x_clear_frame_selections)
23241 (Fx_disown_selection_internal):
23242 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
23243 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
23244
232452007-10-17 Chong Yidong <cyd@stupidchicken.com>
23246
23247 * process.c: Link to libs for calling res_init() if available.
23248 (Fmake_network_process): Call res_init() before getaddrinfo or
23249 gethostbyname, if possible.
23250
232512007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
23252
23253 * lread.c (read1): Set pvectype for char_tables.
23254
23255 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
23256 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
23257 Add type checks.
23258 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
23259
23260 * alloc.c (free_misc): Use XMISCTYPE.
23261 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
23262
232632007-10-17 Glenn Morris <rgm@gnu.org>
23264
23265 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
23266 (syms_of_minibuf): Add Qcompletion_ignore_case.
23267 * dired.c (Qcompletion_ignore_case): Change to external.
23268 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
23269 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
23270 (Fread_file_name): Use it rather than intern'ing.
23271
23272 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
23273 (Fread_coding_system): Ignore case of user input.
23274
232752007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23276
23277 * xdisp.c (handle_display_prop): Ignore display specs after
23278 replacing one when string text is being replaced.
23279 (handle_single_display_spec): Pretend as if characters with display
23280 property haven't been consumed only when buffer text is being replaced.
23281
232822007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
23283
23284 * xfns.c (Fx_create_frame, Fx_display_list):
23285 * window.c (window_fixed_size_p, enlarge_window)
23286 (shrink_window_lowest_first):
23287 * macterm.c (init_font_name_table):
23288 * macfns.c (Fx_create_frame, Fx_display_list):
23289 * lread.c (close_load_descs):
23290 * keyboard.c (read_char_x_menu_prompt):
23291 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
23292 * coding.c (code_convert_region_unwind): Test the type of an object
23293 rather than just !NILP before extracting data from it.
23294
23295 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
23296
23297 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
23298 (XMISCANY): New macro.
23299 (XMISCTYPE): Use it.
23300 (struct Lisp_Misc_Any): New type.
23301 (union Lisp_Misc): Use it.
23302 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
23303 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
23304 (find_symbol_value, set_internal, default_value, Fset_default)
23305 (Fmake_variable_buffer_local, Fmake_local_variable)
23306 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
23307 (Flocal_variable_if_set_p, Fvariable_binding_locus):
23308 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
23309 * alloc.c (allocate_buffer): Set the size and tag.
23310 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
23311 Use XMISCANY.
23312 (die): Follow the GNU convention for error messages.
23313 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
23314 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
23315 tag any more.
23316 (set_buffer_internal_1):
23317 * frame.c (store_frame_param):
23318 * eval.c (specbind):
23319 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
23320
23321 * doc.c (Fsnarf_documentation): Simplify.
23322
233232007-10-14 Juanma Barranquero <lekktu@gmail.com>
23324
23325 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
23326 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
23327
233282007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
23329
23330 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
23331
233322007-10-14 Juanma Barranquero <lekktu@gmail.com>
23333
23334 * eval.c (do_autoload): Don't save autoloads.
23335
23336 * data.c (Ffset): Save autoload of the function being set.
23337
233382007-10-07 John Paul Wallington <jpw@pobox.com>
23339
23340 * xfns.c (x_create_tip_frame): Set the `display-type' frame
23341 parameter before setting up faces.
23342
233432007-10-13 Eli Zaretskii <eliz@gnu.org>
23344
23345 * ccl.c (Fregister_code_conversion_map):
23346 * keyboard.c (append_tool_bar_item): Reformat last change.
23347
23348 * lisp.h (eabs): Rename from `abs'. All callers changed.
23349
233502007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
23351
23352 * buffer.c (add_overlay_mod_hooklist):
23353 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
23354 * fontset.c (make_fontset):
23355 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
23356 (append_tool_bar_item):
23357 * macmenu.c (grow_menu_items):
23358 * w32menu.c (grow_menu_items):
23359 * xmenu.c (grow_menu_items): Use larger_vector.
23360
233612007-10-13 Eli Zaretskii <eliz@gnu.org>
23362
23363 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
23364 selected frame'' on MSDOS).
23365
233662007-10-12 Martin Rudalics <rudalics@gmx.at>
23367
23368 * frame.c (Qexplicit_name): New variable.
23369 (x_report_frame_params): Report it in parameter alist.
23370 (syms_of_frame): Intern and staticpro it.
23371
233722007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
23373
23374 * macfns.c (x_create_tip_frame): Set terminal for frame.
23375
233762007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
23377
23378 * frame.c (Qenvironment): Remove.
23379 (syms_of_frame) <Qenvironment>: Don't initialize.
23380 (Fdelete_frame): Don't treat the `environment' param specially.
23381 * frame.h (Qenvironment): Don't declare.
23382 * callproc.c (set_initial_environment): Don't set unused frame param.
23383
23384 * frame.c (Fframe_with_environment): Remove.
23385 (syms_of_frame) <Sframe_with_environment>: Don't declare.
23386
23387 * lisp.h (Fframe_with_environment): Don't declare.
23388
233892007-10-10 Juanma Barranquero <lekktu@gmail.com>
23390
23391 * indent.c (indent_tabs_mode, last_known_column)
23392 (last_known_column_modified): Make static.
23393 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
23394
233952007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
23396
23397 * puresize.h (BASE_PURESIZE): Increase to 1170000.
23398
233992007-10-09 Jason Rumney <jasonr@gnu.org>
23400
23401 * w32term.c (x_set_window_size): Disable code that attempts to tell
23402 Lisp code about a size change before it actually happens.
23403
234042007-10-09 Richard Stallman <rms@gnu.org>
23405
23406 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
23407 return HANDLED_RETURN.
23408
234092007-10-08 Martin Rudalics <rudalics@gmx.at>
23410
23411 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
23412 when there's an unread command event.
23413
23414 * frame.c (focus_follows_mouse): Move here from frame.el to allow
23415 window autoselection act appropriately when leaving selected frame.
23416 (syms_of_frame): Initialize focus_follows_mouse.
23417 * frame.h (focus_follows_mouse): Extern it.
23418 * macterm.c (XTread_socket): When focus_follows_mouse is nil
23419 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
23420 * msdos.c (dos_rawgetc): Likewise.
23421 * w32term.c (w32_read_socket): Likewise.
23422 * xterm.c (handle_one_xevent): Likewise.
23423 * xdisp.c (syms_of_xdisp): In doc-string of
23424 mouse-autoselect-window mention focus-follows-mouse.
23425
234262007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23427
23428 * macterm.c (mac_load_query_font): Fix missing return value.
23429 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
23430 Add BLOCK_INPUT.
23431
234322007-10-08 Richard Stallman <rms@gnu.org>
23433
23434 * xdisp.c (get_window_cursor_type): Implement documented behavior
23435 for cursor-in-non-selected-windows = t.
23436
234372007-10-08 Jason Rumney <jasonr@gnu.org>
23438
23439 * w32.c (w32_get_resource): Always close registry keys.
23440
234412007-10-08 Jason Rumney <jasonr@gnu.org>
23442
23443 * makefile.w32-in (LIBS): Add COMCTL32.
23444
23445 * w32fns.c (globals_of_w32fns): Init common controls.
23446
234472007-10-08 Richard Stallman <rms@gnu.org>
23448
23449 * image.c (our_memory_buffer): Rename from omfib_buffer.
23450
234512007-10-08 Richard Stallman <rms@gnu.org>
23452
23453 * buffer.c (Foverlays_at): Doc fix.
23454
234552007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
23456
23457 * fns.c (Fplist_put): Preserve uneven tail data.
23458
234592007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
23460
23461 * termhooks.h (enum event_kind): Remove trailing comma.
23462
23463 * frame.h (enum): Remove trailing comma.
23464
234652007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
23466
23467 * w32proc.c (delete_child): Don't terminate threads of zombies.
23468
234692007-10-08 Martin Rudalics <rudalics@gmx.at>
23470
23471 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
23472
23473 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
23474 last-repeatable-command.
23475 (init_kboard): Initialize Vlast_repeatable_command.
23476 (command_loop_1): Set it to real_this_command unless that was
23477 bound to an input event.
23478 (mark_kboards): Mark it.
23479
234802007-10-08 Richard Stallman <rms@gnu.org>
23481
23482 * eval.c (condition-case): Doc fix.
23483
234842007-10-08 Masatake YAMATO <jet@gyve.org>
23485
23486 * xfaces.c (tty_supports_face_attributes_p): Fix code
23487 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
23488 was copied and not edited.
23489
234902007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
23491
23492 Add new `input-decode-map' keymap and use it for terminal
23493 escape sequences.
23494 * keyboard.h (struct kboard): Add Vinput_decode_map.
23495 Remove Vlocal_key_translation_map.
23496 * keyboard.c (read_key_sequence): Add support for input-decode-map.
23497 (init_kboard): Init input-decode-map.
23498 Replace local-key-translation-map back with key-translation-map.
23499 (syms_of_keyboard): Declare input-decode-map.
23500 Remove local-key-translation-map. Update docstrings.
23501 (mark_kboards): Mark Vinput_decode_map.
23502 Don't mark Vlocal_key_translation_map.
23503 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
23504 Replace local-key-translation-map back with key-translation-map.
23505 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
23506 Bind in input-decode-map rather than function-key-map.
23507
23508 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
23509 This was made redundant by the previous introduction of XSETPVECTYPE.
23510
235112007-10-09 Richard Stallman <rms@gnu.org>
23512
23513 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
23514
235152007-09-29 Richard Stallman <rms@gnu.org>
23516
23517 * eval.c (internal_condition_case_2, internal_condition_case_1)
23518 (internal_condition_case): Reenable abort if x_catching_errors ()
23519 to see if that really happens and why.
23520
235212007-10-06 Andreas Schwab <schwab@suse.de>
23522
23523 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
23524
235252007-10-04 Juanma Barranquero <lekktu@gmail.com>
23526
23527 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
23528
235292007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
23530
23531 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
23532
235332007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
23534
23535 * window.h (struct window):
23536 * window.c (struct save_window_data, struct saved_window):
23537 * termhooks.h (struct terminal):
23538 * process.h (struct Lisp_Process):
23539 * frame.h (struct frame):
23540 * buffer.h (struct buffer):
23541 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
23542 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
23543 The size field of (pseudo)vectors is now unsigned.
23544 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
23545
23546 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
23547 Turn `count' into an integer.
23548
23549 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
23550 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
23551 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
23552 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
23553 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
23554
23555 * alloc.c (allocate_pseudovector): New fun.
23556 (ALLOCATE_PSEUDOVECTOR): New macro.
23557 (allocate_window, allocate_terminal, allocate_frame)
23558 (allocate_process): Use it.
23559 (mark_vectorlike): New function.
23560 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
23561 (mark_terminals): Use it.
23562 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
23563 (Fmake_byte_code): Use XSETPVECTYPE.
23564
23565 * frame.c (Fframe_parameters): Minor simplification.
23566
23567 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
23568
23569 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
23570
23571 * buffer.c (Fget_buffer_create, init_buffer_once):
23572 * lread.c (defsubr):
23573 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
23574
23575 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
23576 defined differently in the m/*.h files.
23577 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
23578 (XSETPVECTYPE): New macro.
23579 (XSETPSEUDOVECTOR): Use it.
23580
23581 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
23582 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
23583
23584 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
23585 * lread.c (defvar_per_buffer):
23586 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
23587
23588 * window.c (candidate_window_p): Only consider as visible frames that
23589 are on the same terminal.
23590
23591 * m/ibms390x.h (MARKBIT): Remove unused macro.
23592
235932007-10-01 Juanma Barranquero <lekktu@gmail.com>
23594
23595 * lread.c (Fload): Fix typo in docstring.
23596
235972007-10-01 Michaël Cadilhac <michael@cadilhac.name>
23598
23599 * floatfns.c (Fexpt): Manually check for overflows, so that a power
23600 of a non-zero value can't yield zero.
23601
236022007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
23603
23604 * term.c (term_clear_mouse_face, term_mouse_highlight)
23605 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
23606
23607 * print.c (safe_debug_print): Use XHASH.
23608
23609 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
23610 Lisp elements such as tags.
23611 (XHASH): New macro.
23612 (EQ): Use it.
23613 (SREF, SSET, STRING_COPYIN): Use SDATA.
23614 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
23615
23616 * alloc.c (mark_terminal): Remove left-over declaration.
23617 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
23618 (allocate_vectorlike): Remove type argument. Adjust callers.
23619 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
23620 Only handle the one remaining MEM_TYPE_VECTORLIKE.
23621
23622 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
23623 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
23624 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
23625 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
23626 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
23627 Use them.
23628
23629 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
23630 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
23631 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
23632
236332007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
23634
23635 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
23636 loaded by default.
23637
236382007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
23639
23640 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
23641 on this tty.
23642 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
23643
23644 * term.c (mouse_face_window): Rename from Qmouse_face_window.
23645 Update all users.
23646 (handle_one_term_event): Use Gpm_DrawPointer.
23647 (Fgpm_mouse_start): Rename from Fterm_open_connection.
23648 Signal errors instead of returning nil. Always return nil.
23649 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
23650 Make it a noop if gpm-mouse was not activated.
23651 (syms_of_term): Update names.
23652
236532007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
23654
23655 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
23656 (init_sys_modes): Check that gpm_tty is the current tty.
23657
23658 * alloc.c (allocate_terminal): Set the vector size to only count the
23659 lisp fields. Initialize those to nil.
23660 (mark_object): Don't treat terminals specially.
23661 (mark_terminal): Remove.
23662 (mark_terminals): Use mark_object instead.
23663
23664 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
23665 the GC to the beginning.
23666
23667 * indent.h:
23668 * indent.c: Use EMACS_INT for ints coming from Elisp data.
23669
23670 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
23671
236722007-09-25 Jason Rumney <jasonr@gnu.org>
23673
23674 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
23675
23676 * w32console.c (create_w32cons_output): Remove.
23677
23678 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
23679
23680 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
23681 (reset_sys_modes): Use reset_terminal_modes_hook.
23682
236832007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
23684
23685 * eval.c (do_autoload): Don't output any message.
23686
236872007-09-24 Juri Linkov <juri@jurta.org>
23688
23689 * emacs.c (standard_args): Change priority of "--no-splash"
23690 from 40 to 3. Add "--no-desktop" with the same priority.
23691
236922007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
23693
23694 * alloc.c (gc_sweep): Check cons cell mark bits word by word
23695 and optimize the case where they are all 1.
23696
236972007-09-23 Johannes Weiner <hannes@saeurebad.de>
23698
23699 * lisp.h (abs): Define if not defined.
23700 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
23701 Don't define `abs', since it's defined in lisp.h.
23702
237032007-09-22 Eli Zaretskii <eliz@gnu.org>
23704
23705 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
23706 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
23707 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
23708 (init_tty): Use DEV_TTY instead of "/dev/tty".
23709 [WINDOWSNT]: No need to protect from NAME arg being null.
23710
237112007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23712
23713 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
23714 up the tty state.
23715
237162007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23717
23718 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
23719 (gpm_tty): Change its type.
23720 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
23721 (gpm_tty): Change its type and initialize it.
23722 (Fterm_open_connection): Check the frame is indeed a tty.
23723 Use the new gpm_tty.
23724 (Fterm_close_connection): Use the new gpm_tty.
23725 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
23726 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
23727
237282007-09-21 Juanma Barranquero <lekktu@gmail.com>
23729
23730 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
23731 underline_color, to draw strike-through.
23732
237332007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
23734
23735 * lisp.h (allocate_terminal): Declare.
23736
23737 * window.c (candidate_window_p): Consider frames that are being placed
23738 by the user as somewhere between visible and iconified.
23739 (window_loop): Prefer windows on the current frame.
23740 (Fselect_window): Move the use of select-frame to the beginning so we
23741 can just delegate all the work (it'll call us back anyway).
23742
23743 * frame.c (Qdisplay_environment_variable):
23744 * frame.h (Qdisplay_environment_variable): Delete.
23745
23746 * .gdbinit (xbacktrace): Print the arg's address rather than the value
23747 of the first arg, since that value may be a union.
23748
23749 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
23750 parameter rather than Qdisplay_environment_variable. If all else
23751 fails, look for DISPLAY in initial-environment.
23752
237532007-09-21 Glenn Morris <rgm@gnu.org>
23754
23755 * Makefile.in (emacstool): Remove target.
23756 (lisp, shortlisp): Remove termdev.elc.
23757
237582007-09-21 Markus Triska <markus.triska@gmx.at>
23759
23760 * xterm.c (x_delete_display): Compile session management conditionally.
23761
237622007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
23763
23764 * callproc.c (getenv_internal_1): New function.
23765 (getenv_internal): Use it.
23766 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
23767
23768 * terminal.c (get_terminal): Don't accept ints to represent terminals.
23769 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
23770 (Fset_terminal_parameter): Work with dead terminals as well.
23771 (Fmodify_terminal_parameters): Remove.
23772
23773 * terminal.c (get_terminal): Handle terminals.
23774 Make sure the terminal returned is live.
23775 (create_terminal): Use allocate_terminal.
23776 (mark_terminals): Move to alloc.c.
23777 (delete_terminal): Use terminal->name as liveness status.
23778 NULL out fields after freeing their contents.
23779 Don't deallocate the object.
23780 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
23781 rather than an int.
23782 (Fterminal_live_p): Accept non-integer arguments.
23783 (Fterminal_list): Return terminal objects rather than an ints.
23784
23785 * alloc.c (enum mem_type): New member for `terminal' objects.
23786 (allocate_terminal): New function.
23787 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
23788 Handle terminals.
23789 (mark_terminal): New fun.
23790 (mark_terminals): Move from terminal.c.
23791
23792 * term.c (get_tty_terminal): Don't treat output_initial specially.
23793 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
23794 (delete_tty): Use terminal->name as liveness status.
23795
23796 * termhooks.h (struct terminal): Make it into a pseudovector.
23797 Remove `deleted' replaced by checking `name's nullness.
23798
23799 * print.c (print_object): Handle terminals.
23800
23801 * lisp.h (enum pvec_type): New `terminal' pseudovector.
23802 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
23803
23804 * frame.c (make_terminal_frame):
23805 * keyboard.c (tty_read_avail_input):
23806 * w32term.c (x_delete_terminal):
23807 * xfns.c (Fx_create_frame, x_create_tip_frame):
23808 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
23809
238102007-09-20 Glenn Morris <rgm@gnu.org>
23811
23812 * process.c (Fmake_network_process): Doc fix.
23813
238142007-09-19 Jason Rumney <jasonr@gnu.org>
23815
23816 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
23817
238182007-09-19 Michaël Cadilhac <michael@cadilhac.name>
23819
23820 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
23821 Fix a C warning regarding variable constness.
23822
23823 * xterm.c (handle_one_xevent): Fix a C warning.
23824
238252007-09-18 Jason Rumney <jasonr@gnu.org>
23826
23827 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
23828
238292007-09-17 Jan Djärv <jan.h.d@swipnet.se>
23830
23831 * gtkutil.c (gdpy_def): New variable.
23832 (xg_initialize): Initialize gdpy_def.
23833 (xg_display_close): If no other display exists, set gdpy_def to a
23834 new connection.
23835
238362007-09-16 Jan Djärv <jan.h.d@swipnet.se>
23837
23838 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
23839 when we have no file name for the icon.
23840 (xg_tool_bar_expose_callback): Remove.
23841 (xg_create_tool_bar): Don't connect expose signal to
23842 xg_tool_bar_expose_callback.
23843 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
23844
238452007-09-16 Andreas Schwab <schwab@suse.de>
23846
23847 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
23848 values instead of zapping them.
23849
238502007-09-14 Glenn Morris <rgm@gnu.org>
23851
23852 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
23853 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
23854 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
23855 scope and rename to omfib_buffer for clarity.
23856 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
23857
238582007-09-14 Kenichi Handa <handa@m17n.org>
23859
23860 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
23861
238622007-09-13 Jason Rumney <jasonr@gnu.org>
23863
23864 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
23865
23866 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
23867
23868 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
23869 (mac_term_init): Call here instead, passing rif.
23870
238712007-09-13 Glenn Morris <rgm@gnu.org>
23872
23873 * s/hpux.h: No longer define `static' as nothing.
23874
238752007-09-13 Johan Bockgård <bojohan@gnu.org>
23876
23877 * callint.c (Fcall_interactively): Remove unused var `fun'.
23878
238792007-09-12 Romain Francoise <romain@orebokech.com>
23880
23881 * window.c (prefer_window_split_horizontally, display_buffer):
23882 Revert 2007-09-08 change.
23883
238842007-09-12 Glenn Morris <rgm@gnu.org>
23885
23886 * alloca.c: Remove file.
23887 * Makefile.in (alloca): Do not undef.
23888 (allocaobj, alloca.o): Remove.
23889 (otherobj): Remove allocaobj.
23890 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
23891 * regex.c (C_ALLOCA): Remove all references and code that was only
23892 used when this was defined.
23893 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
23894 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
23895 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
23896
23897 * Makefile.in (SOURCES, unlock, relock): Delete.
23898
23899 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
23900 (menu_grab_callback): All uses changed.
23901
23902 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
23903 (x_reply_selection_request): All uses changed.
23904
239052007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
23906
23907 * lread.c (load_warn_old_style_backquotes): Change message to look
23908 better when it appears in the middle of byte-compiler messages.
23909
239102007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
23911
23912 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
23913
23914 * xterm.c (x_create_terminal): Add comment.
23915
23916 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
23917
239182007-09-10 Richard Stallman <rms@gnu.org>
23919
23920 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
23921
239222007-09-10 Michaël Cadilhac <michael@cadilhac.name>
23923
23924 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
23925 (DEFUN): Document `intspec', use it instead of `prompt'.
23926
23927 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
23928
23929 * data.c (Finteractive_form): If the interactive specification starts
23930 with a `(', use it as a Lisp form.
23931
23932 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
23933 name and file modes.
23934
23935 * callint.c (Fcall_interactively): Comment fixes.
23936
239372007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
23938
23939 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
23940 and compiled functions.
23941
239422007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
23943
23944 * window.c (prefer_window_split_horizontally): New variable.
23945 (display_buffer): Consider splitting window horizontally depending
23946 on prefer_window_split_horizontally.
23947
239482007-09-08 Eli Zaretskii <eliz@gnu.org>
23949
23950 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
23951
239522007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23953
23954 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
23955
23956 * frame.c (x_set_frame_parameters): Check number is positive before
23957 using XFASTINT.
23958
23959 * window.c (freeze_window_start): Don't presume selected_window holds
23960 a window object.
23961 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
23962
239632007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
23964
23965 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
23966
239672007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
23968
23969 * window.c (Vsplit_window_preferred_function): New var.
23970 (Fdisplay_buffer): Use it.
23971 (syms_of_window): Export, and initialize it.
23972
239732007-09-06 Pixel <pixel@mandriva.com> (tiny change)
23974
23975 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
23976
239772007-09-06 Glenn Morris <rgm@gnu.org>
23978
23979 * gtkutil.c (menu_grab_callback) <cnt>:
23980 * xselect.c (x_reply_selection_request) <cnt>: Move static
23981 variable to file scope.
23982
239832007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
23984
23985 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
23986 consistent values of selected_frame and selected_window.
23987
239882007-09-04 Jason Rumney <jasonr@gnu.org>
23989
23990 * w32console.c (initialize_w32_display): Zero unused hooks.
23991
239922007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
23993
23994 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
23995 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
23996
239972007-09-04 Jason Rumney <jasonr@gnu.org>
23998
23999 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
24000 in w32console.c. Set up input. Remove XXX comments that have been
24001 confirmed as correct.
24002
24003 * s/ms-w32.h (MULTI_KBOARD): Define.
24004
24005 * w32console.c (one_and_only_w32cons): Remove.
24006 (initialize_w32_display): Take terminal argument.
24007
24008 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
24009 initialize_w32_display.
24010 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
24011
24012 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
24013
24014 * keyboard.c (discard_mouse_events): Discard it.
24015 (make_lispy_event): Translate it to a lisp event.
24016 (lispy_wheel_names): Add wheel-left and right events.
24017 (syms_of_keyboard): Enlarge wheel_syms.
24018
24019 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
24020 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
24021
24022 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
24023
24024 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
24025 from WM_MOUSEHWHEEL.
24026 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
24027
24028 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
24029 terminal.
24030
24031 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
24032 keyboard for the terminal.
24033
240342007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
24035
24036 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
24037 (Vresume_tty_hook): Rename from Vresume_tty_functions.
24038 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
24039 and resume-tty-function to resume-tty-hook.
24040 (Fsuspend_tty, Fresume_tty): Use new names.
24041
240422007-09-02 Jan Djärv <jan.h.d@swipnet.se>
24043
24044 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
24045 if it starts with "n:".
24046
240472007-08-31 Jan Djärv <jan.h.d@swipnet.se>
24048
24049 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
24050
240512007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
24052
24053 * frame.h:
24054 * frame.c (Qterm_environment_variable): Remove.
24055 (syms_of_frame): Don't init and staticpro it.
24056
24057 * callproc.c (getenv_internal): Remove special case for $TERM.
24058
24059 * callproc.c (Vinitial_environment): New variable.
24060 (set_initial_environment): Initialize it.
24061 (syms_of_callproc): Declare it.
24062 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
24063 TERM under which a process runs is never related to the TERM in which
24064 Emacs is running.
24065
240662007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24067
24068 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
24069 * s/darwin.h: ... do it here.
24070
240712007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
24072
24073 * lisp.h (set_initial_environment): Rename from set_global_environment.
24074
24075 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
24076 removed by mistake on the multi-tty branch.
24077
24078 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
24079 (Fmodify_frame_parameters): Return a value.
24080
24081 * image.c (png_load): Comment-out var only used in commented-out code.
24082
24083 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
24084 before passing it to mark_object.
24085
24086 * xfaces.c (internal_resolve_face_name): Return a value.
24087 (internal_resolve_face_name, resolve_face_name_error): Comment out.
24088
24089 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
24090 (x_icon): Comment-out var only used in commented-out code.
24091
240922007-08-29 Romain Francoise <romain@orebokech.com>
24093
24094 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
24095 QUIT hasn't been provided.
24096
240972007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
24098
24099 * callproc.c (child_setup, getenv_internal): Use the
24100 display-environment-variable and term-environment-variable frame params.
24101 (set_initial_environment): Initialise Vprocess_environment.
24102
24103 * config.in: Disable multi-keyboard support on a mac.
24104
24105 * frame.c (Qterm_environment_variable)
24106 (Qdisplay_environment_variable): New variables.
24107 (syms_of_frame): Intern and staticpro them.
24108 (Fmake_terminal_frame): Disable output method test.
24109
24110 * frame.h: Declare them here.
24111
24112 * macfns.c (x_set_mouse_color): Get rif from the frame.
24113 (x_set_tool_bar_lines): Don't use updating_frame.
24114 (mac_window): Add 2 new parameters for consistency with other systems.
24115 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
24116 frame parameters following what is done in X11 and w32. Don't use
24117 FRAME_MAC_DISPLAY_INFO.
24118 (Fx_open_connection, start_hourglass): Remove window-system check.
24119 (x_create_tip_frame): Get the keyboard from the terminal.
24120
24121 * macmenu.c: Reorder includes.
24122 (Fx_popup_menu): Use terminal specific mouse_position_hook.
24123
24124 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
24125 terminal parameter.
24126 (x_clear_frame): Add a frame parameter.
24127 (note_mouse_movement): Get rif from the frame.
24128 (mac_term_init): Initialize the terminal.
24129 (mac_initialize): Make static and move terminal initialization ...
24130 (mac_create_terminal): ... to this new function.
24131
24132 * macterm.h (struct mac_display_info): Add terminal.
24133 (mac_initialize): Delete declaration.
24134
24135 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
24136
24137 * sysdep.c: Comment out text after #endif.
24138
24139 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
24140 is defined. Better initialize ttys in windows. Use terminal
24141 specific mouse_position_hook.
24142
24143 * termhooks.h (union display_info): Add mac_display_info.
24144
24145 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
24146 Set the default minibuffer frame, window_system and the rest of the
24147 frame parameters following what is done in X11.
24148
24149 * w32term.c (w32_initialize): Make static.
24150
24151 * xselect.c (x_handle_selection_clear): Only access
24152 terminal->kboard when MULTI_KBOARD is defined.
24153
24154 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
24155 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
24156
241572007-08-29 Jason Rumney <jasonr@gnu.org>
24158
24159 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
24160 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
24161
24162 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
24163 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
24164
24165 * keyboard.c (restore_kboard_configuration): Only define when
24166 MULTI_KBOARD defined.
24167
24168 * makefile.w32-in: Update dependancies from Makefile.in.
24169 (OBJ1): Add terminal.$(O)
24170
24171 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
24172 Don't define function body.
24173 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
24174
24175 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
24176
24177 * w32.c (request_sigio, unrequest_sigio): Remove.
24178
24179 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
24180 (w32con_clear_frame, w32con_clear_end_of_line)
24181 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
24182 (w32con_delete_glyphs, w32con_set_terminal_window)
24183 (scroll_line, w32_sys_ring_bell): Add frame arg.
24184 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
24185 Add terminal arg.
24186 (PICK_FRAME): Remove.
24187 (w32con_write_glyphs): Use frame specific terminal coding.
24188 (one_and_only_w32cons): New global variable.
24189 (initialize_w32_display): Use it for storing hooks.
24190 (create_w32cons_output): New function.
24191
24192 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
24193 arg a frame.
24194
24195 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
24196 Set window_system.
24197 (x_set_tool_bar_lines): Don't use updating_frame.
24198 (Fx_create_frame): Set terminal and ref count.
24199 (Fx_open_connection): Remove window-system check.
24200
24201 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
24202
24203 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
24204 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
24205 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
24206 Add frame arg.
24207 (x_delete_terminal, w32_create_terminal): New functions.
24208 (w32_term_init): Create a terminal.
24209 (w32_initialize): Move terminal specific initialization to
24210 w32_create_terminal.
24211
24212 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
24213 (w32_clear_rect, w32_clear_area): Use background from frame.
24214 (w32_display_info): Add terminal.
24215 (w32_sys_ring_bell, x_delete_display): Declare here.
24216
24217 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
24218
24219 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
24220
242212007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
24222
24223 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
24224 Fix get_named_tty calls for the controlling tty.
24225
242262007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
24227
194d44e7 24228 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
24229
242302007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
24231
24232 * term.c (tty_insert_glyphs): Add missing first parameter.
24233
242342007-08-29 Károly Lőrentey <karoly@lorentey.hu>
24235
24236 * buffer.c (Fbuffer_list, Fbury_buffer):
24237 Take frame->buried_buffer_list into account.
24238
24239 * cm.c (current_tty): New variable, for cmputc().
24240 (cmputc): Use it.
24241 (cmcheckmagic): Add tty parameter, look up terminal streams there.
24242 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
24243 (cmgoto): Add tty parameter. Pass it on to calccost().
24244 Use emacs_tputs() instead of tputs().
24245
24246 * cm.h (emacs_tputs): New macro to set current_tty, and then call
24247 tputs().
24248 (current_tty): New variable, for cmputc().
24249 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
24250
24251 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
24252 (internal_condition_case, internal_condition_case_1)
24253 (internal_condition_case_2): Don't abort when x_catching_errors.
24254
24255 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
24256 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
24257 prevent crashes caused by bogus longjmps in read_char.
24258
24259 * keymap.h (Fset_keymap_parent): Add EXFUN.
24260
24261 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
24262 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24263 Remove redundant definition.
24264
24265 * macfns.c (x_set_mouse_color, x_make_gc):
24266 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24267
24268 * w32term.c (x_free_frame_resources):
24269 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24270 (w32_initialize): Use the accessor macros for terminal characteristics.
24271
24272 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
24273 Use the accessor macros for terminal characteristics.
24274 * msdos.c (internal_terminal_init): Use the accessor macros for
24275 terminal characteristics.
24276 (ScreenVisualBell, internal_terminal_init):
24277 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24278
24279 * termopts.h (no_redraw_on_reenter): Declare.
24280
24281 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
24282 (mark_terminals, mark_ttys): Declare.
24283 (Fgarbage_collect): Call them.
24284 (mark_object): Mark buried_buffer_list.
24285
24286 * prefix-args.c: Include stdlib.h for exit.
24287
24288 * syssignal.h: Add comment.
24289
24290 * indent.c: Include stdio.h.
24291
24292 * window.h (Vinitial_window_system): Declare.
24293 (Vwindow_system): Delete declaration.
24294
24295 * fontset.c (Finternal_char_font): Use FRAME_RIF.
24296
24297 * image.c (lookup_image): Don't initialize `c' until the xasserts
24298 have been run.
24299
24300 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
24301 FRAME_FOREGROUND_PIXEL.
24302
24303 * print.c (print_preprocess): Don't lose print_depth levels while
24304 iterating.
24305
24306 * widget.c (update_from_various_frame_slots):
24307 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24308
24309 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
24310 frames.
24311 (window_internal_height): Remove bogus make_number call.
24312 (init_window_once): Call make_terminal_frame with two zero parameters.
24313
24314 * fileio.c (Fread_file_name): Update comment.
24315
24316 * callint.c (Fcall_interactively):
24317 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
24318 Make sure it is correctly unwound.
24319
24320 * xsmfns.c (x_session_close): New function.
24321
24322 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
24323 Delete declarations.
24324
24325 * xterm.h: Remove declaration for x_fully_uncatch_errors.
24326 (x_output): Remove background_pixel and foreground_pixel fields.
24327 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
24328 (x_delete_device, x_session_close): Declare.
24329
24330 * lread.c: Include setjmp.h. Update declaration of `read_char'.
24331 (read_filtered_event): Call `read_char' with a local
24332 `wrong_kboard_jmpbuf'.
24333
24334 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
24335 Don't call single_kboard_state. Use FRAME_RIF.
24336
24337 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
24338 systems.
24339
24340 * lisp.h (set_process_environment): Rename to `set_global_environment'.
24341 (Fframe_with_environment, Fset_input_meta_mode)
24342 (Fset_quit_char): EXFUN.
24343 (x_create_device, tty_output, terminal, tty_display_info): Declare.
24344 (init_sys_modes, reset_sys_modes): Update prototypes.
24345 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
24346
24347 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
24348 Vlocal_key_translation_map, and Vkeyboard_translate_table.
24349 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
24350 Delete declarations.
24351 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
24352 (temporarily_switch_to_single_kboard, tty_read_avail_input):
24353 New declarations.
24354
24355 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
24356 already does that during init_display(). Call syms_of_keymap
24357 before syms_of_keyboard. Call `syms_of_terminal'.
24358 Call set_initial_environment, not set_process_environment.
24359 (shut_down_emacs): Call reset_all_sys_modes() instead of
24360 reset_sys_modes().
24361
24362 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
24363 (internal_resolve_face_name, resolve_face_name_error): New functions.
24364 (resolve_face_name): Protect against loops and errors thrown by Fget.
24365 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
24366 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
24367
24368 * scroll.c: Replace CURTTY() with local variables throughout the
24369 file (where applicable).
24370 (calculate_scrolling, calculate_direct_scrolling)
24371 (scrolling_1, scroll_cost): Use the accessor macros for terminal
24372 characteristics.
24373
24374 * keymap.c (Vfunction_key_map): Remove.
24375 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
24376 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
24377 (Vkey_translation_map): Remove.
24378 (syms_of_keymap): Remove DEFVAR for key-translation-map.
24379 (Fdescribe_buffer_bindings)
24380 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
24381 Update for terminal-local key-translation-map.
24382
24383 * Makefile.in (callproc.o): Update dependencies.
24384 (lisp, shortlisp): Add termdev.elc.
24385 (obj): Add terminal.o.
24386 (terminal.o): Add dependencies.
24387 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
24388 (data.o, fns.o): Add termhooks.h dependency.
24389 (SOME_MACHINE_LISP): Add dnd.elc.
24390 (minibuf.o): Fix typo.
24391 Update dependencies.
24392
24393 * data.c (do_symval_forwarding, store_symval_forwarding)
24394 (find_symbol_value): Use the selected frame's keyboard, not
24395 current_kboard.
24396
24397 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
24398 Vwindow_system.
24399
24400 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
24401 Fmenu_bar_open.
24402 (syms_of_xmenu): Update defsubr.
24403 (mouse_position_for_popup, Fx_popup_menu)
24404 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
24405 (set_frame_menubar, free_frame_menubar)
b97439ce 24406 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
24407 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
24408 an X frame.
24409
24410 * xselect.c (x_own_selection): Abort if not an X frame.
24411 (some_frame_on_display): Check if it is an X frame.
24412 (x_handle_selection_clear): Deal with MULTI_KBOARD.
24413
24414 * coding.c: Include frame.h and termhooks.h.
24415 (terminal_coding, keyboard_coding): Delete.
24416 (Fset_terminal_coding_system_internal)
24417 (Fset_keyboard_coding_system_internal)
24418 (Fkeyboard_coding_system)
24419 (Fterminal_coding_system): Add a terminal parameter.
24420 Get terminal_coding from the terminal.
24421 (init_coding_once): Don't call setup_coding_system here.
24422
24423 * dispextern.h (set_scroll_region, turn_off_insert)
24424 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
24425 (tty_clear_end_of_line, tty_setup_colors)
24426 (delete_tty, updating_frame)
24427 (produce_special_glyphs, produce_glyphs, write_glyphs)
24428 (insert_glyphs): Remove.
24429 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
24430 (tty_turn_off_highlight, get_tty_size): Add declaration.
24431 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
24432
24433 * frame.h (enum output_method): Add output_initial.
24434 (struct x_output): Delete.
24435 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
24436 Access foreground_pixel and background_pixel directly from the frame.
24437 (tty_display): Delete.
24438 (struct frame): Add buried_buffer_list, foreground_pixel,
24439 background_pixel and terminal. Delete kboard.
24440 (union output_data): Add tty.
24441 (FRAME_KBOARD): Get the kboard from the terminal.
24442 (FRAME_INITIAL_P): New macro.
24443 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
24444 (Qterm_environment_variable, Qdisplay_environment_variable)
24445 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
24446 New declarations.
24447
24448 * termchar.h (tty_output, tty_display_info): New structures.
24449 (tty_list): Declare.
24450 (FRAME_TTY, CURTTY): New macros.
24451 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
24452 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
24453 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
24454 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
24455
24456 * callproc.c: Include frame.h and termhooks.h, for terminal
24457 parameters.
24458 (add_env): New function.
24459 (child_setup): Use it.
24460 (child_setup, getenv_internal): Handle the new Vprocess_environment.
24461 (getenv_internal): Fix get_terminal_param call.
24462 (Fgetenv_internal, egetenv): Update doc.
24463 (syms_of_callproc): Initialize Vprocess_environment to nil.
24464 Register and initialize them. Remove obsolete defvars. Update doc
24465 strings.
24466 (child_setup): Handle Vlocal_environment_variables.
24467 (getenv_internal): Add terminal parameter.
24468 Handle Vlocal_environment_variables.
24469 (Fgetenv_internal): Add terminal parameter.
24470 (child_setup, getenv_internal, Fgetenv_internal): Store the local
24471 environment in a frame (not terminal) parameter. Update doc strings.
24472 (set_initial_environment): Rename from set_global_environment.
24473 Store Emacs environment in initial frame parameter.
24474
24475 * xdisp.c (redisplay_internal): Update references to
24476 `previous_terminal_frame'.
24477 (display_mode_line, Fformat_mode_line): Replace calls to
24478 `push_frame_kboard' with `push_kboard'.
24479 (get_glyph_string_clip_rects): Add extra parentheses and
24480 braces to prevent compiler warnings.
24481 (calc_pixel_width_or_height): Add xassert to check that the
24482 frame is alive. Don't call `lookup_image' on a termcap frame.
24483 (message2_nolog, message3_nolog, redisplay_internal)
24484 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
24485 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
24486 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
24487 (Fx_display_pixel_width, Fx_display_pixel_height)
24488 (Fx_display_planes, Fx_display_color_cells)
24489 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
24490 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
24491 (Fx_display_backing_store, Fx_display_visual_class)
24492 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
24493 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
24494
24495 * xfns.c (x_set_foreground_color x_set_background_color)
24496 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
24497 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24498 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
24499 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
24500 terminal that is being deleted.
24501 (Fx_create_frame): Use `store_frame_param' to set `window-system'
24502 frame parameter, and make sure it overrides any user-supplied setting.
24503 (Fx_close_connection, Fx_synchronize): Unify argument names with
24504 the rest of the DEFUNs.
24505
24506 * dispnew.c (Fsend_string_to_terminal): Update call to
24507 `get_tty_terminal'.
24508 (Fredraw_frame, Fsend_string_to_terminal)
24509 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
24510 FRAME_TERMCAP_P and FRAME_TTY.
24511 (window_change_signal): Don't believe width/height values that are
24512 impossibly small.
24513 (Vinitial_window_system): Rename from Vwindow_system.
24514 (termscript, Wcm, rif): Delete.
24515
24516 * termhooks.h (struct terminal): New struct containing the
24517 previously global text display hooks and new members NAME,
24518 DELETED and PARAM_ALIST.
24519 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
24520 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
24521 (FRAME_RIF): New macros.
24522 (get_terminal_param, get_device): New declarations.
24523 (termscript): Delete declaration.
24524
24525 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
24526 (XTflash, x_free_frame_resources, x_scroll_bar_create)
24527 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
24528 FRAME_FOREGROUND_PIXEL.
24529 (x_fully_uncatch_errors): Disable definition.
24530 (x_scroll_bar_expose): Fix reference to foreground pixel.
24531 (XTread_socket): Disable loop on all X displays.
24532 (x_delete_terminal): Don't set terminal->deleted and let
24533 delete_terminal delete the frames on the terminal.
24534 (x_delete_display): Doc update to reflect changes in
24535 delete_terminal.
24536 (x_display_info) <terminal>: Move member earlier in the struct.
24537 (deleting_tty): Remove old variable.
24538 (Fsuspend_tty): Call clear_tty_hooks.
24539 (Fresume_tty, init_tty): Call set_tty_hooks.
24540 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
24541 errors on X frames.
24542 (x_catch_errors_unwind): Abort if x_error_message is NULL.
24543 (handle_one_xevent): Initialize `f' to NULL.
24544 (x_delete_terminal, x_create_terminal): New functions.
24545 (XTset_terminal_modes, XTreset_terminal_modes)
24546 (XTread_socket, x_connection_closed, x_term_init)
24547 (x_term_init, x_delete_display): Add terminal parameter.
24548 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
24549 X connections.
24550
24551 * frame.c: Include termchar.h.
24552 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
24553 (Qwindow_system, Qenvironment, Qterm_environment_variable)
24554 (Qdisplay_environment_variable): New vars.
24555 (Fframep): Deal with output_initial.
24556 (Fframe-live-p): Doc fix.
24557 (Fwindow-system): New function.
24558 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
24559 (make_terminal_frame): Don't create frames on a terminal that is
24560 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
24561 (store_frame_param): Check for found_for_frame before calling XFRAME.
24562 (Fmake_terminal_frame): Handle NULL tty names correctly.
24563 (syms_of_frame): Enhance doc string of `default-frame-alist'.
24564 (Fdelete_frame): Remove unused variable `count'. Don't allow other
24565 frames to refer to a deleted frame in their 'environment parameter.
24566 (Fframe_with_environment): New function.
24567 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
24568 (get_future_frame_param): New function.
24569 (Fmake_terminal_frame): Use it.
24570 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
24571
24572 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
24573 * sysdep.c (reset_sys_modes): Update for renames.
24574
24575 * keyboard.c (tty_read_avail_input): New function.
24576 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
24577 (syms_of_keyboard): Defsubr them.
24578 (Fset_input_meta_mode, Fset_quit_char): New functions.
24579 (Fset_input_mode): Split to above functions.
24580 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
24581 parameter. Use it in call to `read_char'.
24582 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
24583 Set wrong_kboard_jmpbuf correctly in recursive calls.
24584 Use current_kboard to access Vkeyboard_translate_table.
24585 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
24586 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
24587 Update longjmp invocations. Remember the original current_kboard,
24588 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
24589 changes it. Comment out unnecessary calls to
24590 `record_single_kboard_state' and `any_kboard_state'.
24591 Update recursive calls.
24592 (wrong_kboard_jmpbuf): Remove global variable.
24593 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
24594 Handle deleted interrupted_kboards correctly; that is a legal
24595 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
24596 and read_char calls. Abort if interrupted_kboard died in read_char.
24597 (any_kboard_state, single_kboard_state)
24598 (push_frame_kboard): Remove function.
24599 (pop_kboard): Switch out of single_kboard mode if the kboard has
24600 been deleted. Remove unused variable. Help debugging by not
24601 changing current_kboard unnecessarily. Set current_kboard to the
24602 kboard of the selected frame when the stored kboard object has
24603 been deleted before pop_kboard.
24604 (temporarily_switch_to_single_kboard): Change first parameter to a
24605 frame pointer. Throw an error when caller wants to change kboards
24606 while in single_kboard mode. Don't push_kboard if we weren't in
24607 single kboard state. Don't pop_kboard if we popped into any
24608 kboard state.
24609 (restore_kboard_configuration): Abort if pop_kboard changed the
24610 kboard in single_kboard mode. Call pop_kboard only after setting
24611 up single_kboard mode.
24612 (Frecursive_edit): Switch to single_kboard mode only in nested
24613 command loops.
24614 (cmd_error, command_loop, command_loop_1, timer_check):
24615 Comment out unnecessary call to `any_kboard_state' and
24616 `record_single_kboard_state'.
24617 (delete_kboard): Exit single_kboard mode if we have just deleted
24618 that kboard. Use FRAME_KBOARD.
24619 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
24620 `fatal_error_signal'.
24621 (record_single_kboard_state): Don't push_kboard if we weren't in
24622 single kboard state. Don't pop_kboard if we popped into any
24623 kboard state.
24624 (push_frame_kboard): Rename to push_kboard.
24625 (kbd_buffer_get_event): Use FRAME_TERMINAL.
24626 (read_avail_input): Read input from all terminals.
24627 (mark_kboards): Also mark Vkeyboard_translate_table.
24628 (kbd_buffer_store_event_hold): Simplify condition.
24629 (read_key_sequence): Reinitialize fkey and keytran at each replay.
24630 (Vkeyboard_translate_table): Move to struct kboard.
24631 (init_kboard): Initialize Vkeyboard_translate_table.
24632 (syms_of_keyboard): Use DEFVAR_KBOARD to define
24633 Vkeyboard_translate_table. Update doc strings. Update docs of
24634 local-function-key-map and function-key-map.
24635
24636 * terminal.c: New file.
24637
24638 * term.c: Include errno.h.
24639 (Vring_bell_function, device_list, initial_device)
24640 (next_device_id, ring_bell, update_begin, update_end)
24641 (set_terminal_window, cursor_to, raw_cursor_to)
24642 (clear_to_end, clear_frame, clear_end_of_line)
24643 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
24644 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
24645 (syms_of_term): Move their initialization to terminal.c.
24646 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
24647 (Ftty_display_color_cells)
24648 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
24649 (clear_tty_hooks, set_tty_hooks)
24650 (init_tty, maybe_fatal): New functions.
24651 (Ftty_type): Return nil if terminal is not on a tty instead of
24652 throwing an error. Doc update.
24653 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
24654 Doc update. Initialize new subrs and variables.
24655 (delete_tty): Use terminal->deleted.
24656 (tty_set_terminal_modes): Rename from set_terminal_modes.
24657 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
24658 (set_scroll_region): Rename to `tty_set_scroll_region'.
24659 (turn_on_insert): Rename to `tty_turn_on_insert'.
24660 (turn_off_insert): Rename to `tty_turn_off_insert'.
24661 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
24662 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
24663 (toggle_highligh): Rename to `tty_toggle_highlight'.
24664 (background_highlight): Rename to `tty_background_highlight'.
24665 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
24666 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
24667 (tty_set_scroll_region, tty_background_highlight)
24668 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
24669 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
24670 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
24671 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
24672 Add static modifier.
24673 (tty_reset_terminal_modes, tty_set_terminal_window)
24674 (tty_set_scroll_region, tty_background_highlight)
24675 (tty_highlight_if_desired, tty_cursor_to)
24676 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
24677 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
24678 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
24679 renames.
24680
246812007-08-28 Jan Djärv <jan.h.d@swipnet.se>
24682
24683 * keyboard.c: Qrtl is new.
24684 (parse_tool_bar_item): Handle :rtl keyword.
24685 (syms_of_keyboard): Intern :rtl keyword.
24686
24687 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
24688
24689 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
24690 so no Lisp code is executed.
24691 (file_for_image, find_rtl_image): New functions.
24692 (xg_get_image_for_pixmap): Use file_for_image.
24693 (update_frame_tool_bar): If direction is RTL, use RTL image if
24694 defined. Use Gtk stock images if defined.
24695
246962007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24697
24698 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
24699 for nonexistent or zero-width glyph in composition glyph.
24700
247012007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
24702
24703 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
24704
24705 * xdisp.c (Finvisible_p): New function.
24706 (syms_of_xdisp): defsubr it.
24707
247082007-08-24 Juanma Barranquero <lekktu@gmail.com>
24709
24710 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
24711 Doc fixes.
24712
247132007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24714
24715 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
24716
247172007-08-24 Martin Rudalics <rudalics@gmx.at>
24718
24719 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
24720 whether decoding has modified buffer contents.
24721
247222007-08-24 Jason Rumney <jasonr@gnu.org>
24723
24724 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
24725 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
24726 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
24727 (init_svg_functions) [HAVE_NTGUI]: New function.
24728 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
24729 (svg_load_image): Use them.
24730 (svg_load_image) [HAVE_NTGUI]: Implement background.
24731
247322007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24733
24734 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
24735 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
24736 (LIBX): Remove @RSVG_LIBS@.
24737 (LIBES): Add $(RSVG_LIBS).
24738
24739 * image.c (svg_load_image): Blend with specified background if exists.
24740 Use IMAGE_BACKGROUND. Add Mac OS Support.
24741
24742 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
24743 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
24744 Remove macros.
24745 [MAC_OSX] (socket_callback): Do nothing.
24746 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
24747 ReceiveNextEvent.
24748 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
24749 socket_callback.
24750 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
24751
247522007-08-22 Glenn Morris <rgm@gnu.org>
24753
24754 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
24755
247562007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
24757
24758 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
24759
24760 * image.c: Add support for SVG images. Some additional comments
24761 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
24762 (svg_image_p): New function to test for SVG image.
24763 (svg_load): New function to load SVG image.
24764 (svg_load_image): New function, helper for svg_load.
24765 (Qsvg): New Lisp_object.
24766 (svg_keyword_index): New enum.
24767 (svg_format): New static `image_keyword' struct.
24768 (svg_type): New static `image_type' struct.
24769 (librsvg/rsvg.h): Include it.
24770
247712007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
24772
24773 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
24774
247752007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
24776
24777 * lread.c (Qold_style_backquotes): New var.
24778 (syms_of_lread): Init and staticpro it.
24779 (load_warn_old_style_backquotes): New fun.
24780 (Fload): Use them to warn about old style backquotes.
24781 (end_of_file_error, Fload): Remove unused vars.
24782
24783 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
24784
24785 * lread.c (Vold_style_backquotes): New var.
24786 (syms_of_lread): Init and export it to Elisp.
24787 (read1): Set it when we find an old-style (back)quote.
24788
247892007-08-22 Jason Rumney <jasonr@gnu.org>
24790
24791 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
24792
247932007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
24794
24795 * puresize.h (BASE_PURESIZE): Increase to 1140000.
24796
247972007-08-19 Richard Stallman <rms@gnu.org>
24798
24799 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
24800
248012007-08-19 Andreas Schwab <schwab@suse.de>
24802
24803 * alloc.c (pure): Round PURESIZE up.
24804
248052007-08-17 Jan Djärv <jan.h.d@swipnet.se>
24806
24807 * xterm.c (handle_one_xevent): Remove check that mouse click is in
24808 active frame.
24809
248102007-08-16 Richard Stallman <rms@gnu.org>
24811
24812 * eval.c (Fcommandp): Add parens to clarify.
24813
24814 * minibuf.c (Fall_completions): Use enum for type of table.
24815
24816 * emacs.c (USAGE2): Improve text.
24817
248182007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
24819
24820 * term.c (tty_default_color_capabilities): Declare static
24821 variables in file scope, to avoid HPUX compiler problem.
24822
248232007-08-13 Jan Djärv <jan.h.d@swipnet.se>
24824
24825 * gtkutil.c (update_frame_tool_bar): Use -1 as index
24826 to gtk_toolbar_insert.
24827
248282007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
24829
24830 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
24831
24832 * insdel.c (reset_var_on_error): New fun.
24833 (signal_before_change, signal_after_change):
24834 Use it to reset (after|before)-change-functions to nil in case of error.
24835 Bind inhibit-modification-hooks to t.
24836 Don't bind (after|before)-change-functions to nil while they run.
24837
248382007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24839
24840 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
24841 filling pixmap with stippled background.
24842
248432007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24844
24845 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
24846 Don't use invisible frame as parent window for repositioning.
24847
248482007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
24849
24850 * print.c (new_backquote_output): Rename from old_backquote_output.
24851 (print): Inverse its logic (according to its name) so as to match the
24852 behavior of new_backquote_flag in lread.c.
24853
248542007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24855
24856 * gmalloc.c (posix_memalign): New function.
24857
24858 * macterm.c (frame_highlight, frame_unhighlight): Don't call
24859 ActivateControl/DeactivateControl here.
24860 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
24861 frame-notice-user-settings is non-nil.
24862 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
24863 for kEventParamFMFontStyle.
24864 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
24865 mac_pass_command_to_system and mac_pass_control_to_system here.
24866 (XTread_socket): Call ActivateControl/DeactivateControl here.
24867 (XTread_socket) [TARGET_API_MAC_CARBON]:
24868 Check mac_pass_command_to_system and mac_pass_control_to_system here.
24869 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
24870 for window repositioning.
24871
248722007-08-08 Glenn Morris <rgm@gnu.org>
24873
24874 * Replace `iff' in doc-strings and comments.
24875
248762007-08-07 Chong Yidong <cyd@stupidchicken.com>
24877
24878 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
24879
248802007-08-07 Martin Rudalics <rudalics@gmx.at>
24881
24882 * fileio.c (Finsert_file_contents): Run format-decode and
24883 after_insert_file_functions on entire buffer when REPLACE is
24884 non-nil and inhibit modification_hooks and point_motion_hooks.
24885 For consistency, run after_insert_file_functions iff something
24886 got inserted. Move signal_after_change and update_compositions
24887 after code running after_insert_file_functions. Make sure that
24888 undo_list doesn't record intermediate steps of the decoding process.
24889
248902007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24891
24892 * emacs.c (main)
24893 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
24894 Call malloc_enable_thread on interactive startup.
24895
24896 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
24897 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
24898 [USE_PTHREAD]: Conditionalize with it.
24899 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
24900 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
24901 New functions.
24902
249032007-08-06 Chong Yidong <cyd@stupidchicken.com>
24904
24905 * xdisp.c (redisplay_window): When restoring original buffer
24906 position, make sure it is still valid.
24907
24908 * image.c (png_load): Ignore png-supplied background color.
24909
249102007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24911
24912 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
24913 Use kCFAbsoluteTimeIntervalSince1970.
24914
24915 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
24916 New variable.
24917 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
24918 event loop should be quit.
24919 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
24920 Quit dialog event loop if quit_dialog_event_loop is set.
24921
24922 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
24923 (Selection): New typedef. Use instead of ScrapRef.
24924 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
24925 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
24926 (mac_clear_selection): Rename from clear_scrap.
24927 (get_flavor_type_from_symbol): New argument SEL and subsume function of
24928 scrap_has_target_type. All uses changed.
24929 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
24930 (mac_selection_has_target_p): New functions.
24931 (mac_put_selection_value): Rename from put_scrap_string.
24932 (mac_get_selection_value): Rename from get_scrap_string.
24933 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
24934 (put_scrap_private_timestamp, scrap_has_target_type)
24935 (get_scrap_private_timestamp): Remove functions.
24936 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
24937 (x_own_selection, x_get_local_selection):
24938 Use mac_valid_selection_value_p.
24939 (x_own_selection): Don't use put_scrap_private_timestamp.
24940 Record OWNERSHIP-INFO into Vselection_alist instead.
24941 (x_get_local_selection): Don't check type if request is local.
24942 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
24943 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
24944
249452007-08-04 Jan Djärv <jan.h.d@swipnet.se>
24946
24947 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
24948 add comment explaining why.
24949
249502007-08-03 Richard Stallman <rms@gnu.org>
24951
24952 * fileio.c (Fvisited_file_modtime): Use make_time.
24953
249542007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
24955
24956 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
24957 build.
24958
249592007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
24960
24961 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
24962
249632007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
24964
24965 * puresize.h (BASE_PURESIZE): Increase to 1130000.
24966
249672007-07-30 Richard Stallman <rms@gnu.org>
24968
24969 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
24970
249712007-07-29 Jan Djärv <jan.h.d@swipnet.se>
24972
24973 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
24974
249752007-07-28 Nick Roberts <nickrob@snap.net.nz>
24976
24977 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
24978 remote default-directory.
24979
24980 * buffer.c (mode-line-format): Update doc string.
24981
249822007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24983
24984 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
24985 scroll bar gap.
24986 (x_scroll_bar_create): Set bar->fringe_extended_p.
24987 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
24988 on frame edge. Check fringe background extension. Don't clear
24989 extended fringe background area.
24990
24991 * w32term.h (struct scroll_bar): New member fringe_extended_p.
24992 (w32_fill_area): Enclose multiple statements with do ... while (0).
24993
24994 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
24995 Extend fringe background to scroll bar gap.
24996 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
24997 Set bar->fringe_extended_p.
24998 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
24999 Put leftmost/rightmost scroll bars on frame edge. Check fringe
25000 background extension. Don't clear extended fringe background area.
25001
25002 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
25003 New member fringe_extended_p.
25004
250052007-07-25 Glenn Morris <rgm@gnu.org>
25006
25007 * Relicense all FSF files to GPLv3 or later.
25008
25009 * COPYING: Switch to GPLv3.
25010
250112007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
25012
25013 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
25014
25015 * data.c (Finteractive_form): Check for the presence of an
25016 `interactive-form' symbol property more thoroughly.
25017
25018 * data.c (Finteractive_form): Use an `interactive-form' property if
25019 present, analogous to the function-documentation property.
25020
250212007-07-24 Jason Rumney <jasonr@gnu.org>
25022
25023 * w32fns.c (x_real_positions): Get real position from OS instead of
25024 calculating it.
25025
250262007-07-23 Jason Rumney <jasonr@gnu.org>
25027
25028 * filelock.c (current_lock_owner): Allow for @ sign in username.
25029
250302007-07-22 Nick Roberts <nickrob@snap.net.nz>
25031
25032 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
25033 remote default-directory.
25034
25035 * buffer.c (mode-line-format): Describe above case in doc string.
25036
250372007-07-20 Eli Zaretskii <eliz@gnu.org>
25038
25039 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
25040 Define if not defined.
25041
250422007-07-18 Jason Rumney <jasonr@gnu.org>
25043
25044 * w32proc.c (w32_executable_type): Handle 64 bit executables.
25045
250462007-07-18 Richard Stallman <rms@gnu.org>
25047
25048 * data.c (Fsetq_default): Doc fix.
25049
25050 * eval.c (Fsetq): Doc fix.
25051
250522007-07-18 Juanma Barranquero <lekktu@gmail.com>
25053
25054 * coding.c (Ffind_operation_coding_system):
25055 * eval.c (For, Fand): Doc fixes.
25056 Reported by Johan Bockgård.
25057
250582007-07-18 Jan Djärv <jan.h.d@swipnet.se>
25059
25060 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
25061
25062 * xterm.h: Declare x_ewmh_activate_frame.
25063
25064 * xterm.c (x_ewmh_activate_frame): New function.
25065 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
25066
250672007-07-17 Martin Rudalics <rudalics@gmx.at>
25068
25069 * window.c (Fdisplay_buffer): If largest or LRU window is the
25070 only window, split it even if it is not eligible for splitting.
25071 This restores the original behavior broken by the 2007-07-15
25072 change.
25073
250742007-07-17 Glenn Morris <rgm@gnu.org>
25075
25076 * abbrev.c (abbrev_check_chars): New function.
25077 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25078 Call abbrev_check_chars to check abbrev characters are word
25079 constituents. Doc fix.
25080
250812007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
25082
25083 * process.c (Fstart_process, Fmake_network_process)
25084 (read_process_output): Fix up last changes.
25085
250862007-07-16 Eli Zaretskii <eliz@gnu.org>
25087
25088 * makefile.w32-in (clean): Don't delete *~.
25089
250902007-07-16 Andreas Schwab <schwab@suse.de>
25091
25092 * window.c (Fdisplay_buffer): Use NILP.
25093 (Fset_window_scroll_bars): Likewise.
25094
250952007-07-15 Martin Rudalics <rudalics@gmx.at>
25096
25097 * window.c (window_min_size_2): New function.
25098 (window_min_size_1, size_window, Fdisplay_buffer)
25099 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
25100 windows without mode- or header-lines when window-min-height is
25101 too small.
25102 (size_window): Reset nodelete_p after testing it, following an
25103 earlier note by Kim F. Storm.
25104 (display_buffer): Do not set split_height_threshold to twice the
25105 value of window_min_height to avoid changing the value of a
25106 customizable variable. Rather explicitly check whether the
25107 height of the window that shall be splitted is at least as large
25108 as split_height_threshold.
25109 (Fwindow_full_width_p): New defun.
25110 (syms_of_window): Defsubr it.
25111
25112 * window.h: Add EXFUN for Fwindow_full_width_p.
25113
251142007-07-14 Jason Rumney <jasonr@gnu.org>
25115
25116 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
25117
251182007-07-14 Richard Stallman <rms@gnu.org>
25119
25120 * eval.c (maybe_call_debugger): New function.
25121 (find_handler_clause): Use maybe_call_debugger.
25122 Call it when the handler says `debug'.
25123 Eliminate DEBUGGER_VALUE_PTR.
25124 (Fsignal): Eliminate debugger_value.
25125 (Qdebug): New variable.
25126 (syms_of_eval): Initialize it.
25127
251282007-07-14 Juanma Barranquero <lekktu@gmail.com>
25129
25130 * eval.c (Fprogn):
25131 * keyboard.c (Ftrack_mouse):
25132 * print.c (Fwith_output_to_temp_buffer):
25133 * window.c (Fsave_window_excursion): Doc fix.
25134
251352007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
25136
25137 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
25138
251392007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
25140
25141 * process.h (struct Lisp_Process): Turn slots infd, outfd,
25142 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
25143 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
25144 read_output_delay, and read_output_skip from Lisp_Objects to ints.
25145 Remove unused encoding_carryover.
25146 * process.c: Adjust all functions accordingly.
25147
251482007-07-12 Richard Stallman <rms@gnu.org>
25149
25150 * term.c: Include unistd.h only if HAVE_UNISTD_H.
25151
251522007-07-11 Jason Rumney <jasonr@gnu.org>
25153
25154 * makefile.w32-in (LIBS): Include OLE32.
25155
25156 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
25157 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
25158
251592007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
25160
25161 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
25162 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
25163 from a Lisp_Object into a bare pointer.
25164 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
25165 Adjust the code correspondingly.
25166
25167 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
25168
25169 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
25170 (term_show_mouse_face): Remove unused var `j'.
25171 (handle_one_term_event): Remove unused vars `i' and `j'.
25172 Don't cast return value of ttyname since it's not necessary.
25173
251742007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
25175
25176 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
25177 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
25178
25179 * fns.c (map_char_table): Use an array of int for `indices' rather than
25180 an array of Lisp_Objects (which are only ever integers anyway).
25181 (Fmap_char_table): Update caller.
25182 * lisp.h: Update prototype.
25183 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
25184 * fontset.c (Ffontset_info):
25185 * casetab.c (set_case_table): Update callers.
25186
25187 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
25188
25189 * keymap.c (struct accessible_keymaps_data)
25190 (struct where_is_internal_data): New structures.
25191 (accessible_keymaps_1, where_is_internal_1): Use them to change
25192 interface to adhere to the one used by map_keymap.
25193 (Faccessible_keymaps, where_is_internal): Use map_keymap.
25194 (accessible_keymaps_char_table, where_is_internal_2): Remove.
25195
25196 * keymap.h (map_keymap_function_t): More informative prototype.
25197
251982007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
25199
25200 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
25201 (looking_at_1): Don't change search_regs and last_thing_searched
25202 if `inhibit-changing-match-data' is non-nil.
25203 (string_match_1, search_buffer, set_search_regs): Likewise.
25204 (syms_of_search): Add Lisp level definition for
25205 `inhibit-changing-match-data' and set it to nil.
25206 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
25207 start and end of the match, instead of using values in search_regs.
25208
252092007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
25210
25211 * minibuf.c (Fcompleting_read): New value `confirm-only'
25212 for `require-match'.
25213
252142007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
25215
25216 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
25217 part of the 2007-06-27 change to syms_of_fileio.
25218
252192007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25220
25221 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
25222 Check WINDOWP before using XWINDOW. Consolidate return statements.
25223
252242007-06-27 Richard Stallman <rms@gnu.org>
25225
25226 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
25227
252282007-06-27 Juanma Barranquero <lekktu@gmail.com>
25229
25230 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
25231
252322007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25233
25234 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
25235 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
25236 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
25237 (_free_internal, memalign): Use them.
25238 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
25239 Initialize to PTHREAD_MUTEX_INITIALIZER.
25240 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
25241 (morecore_nolock): Rename from morecore. All uses changed.
25242 Use only nolock versions of internal allocation functions.
25243 (_malloc_internal_nolock, _realloc_internal_nolock)
25244 (_free_internal_nolock): New functions created from
25245 _malloc_internal, _realloc_internal, and _free_internal.
25246 (_malloc_internal, _realloc_internal, _free_internal): Use them.
25247 Copy hook value to automatic variable before its use.
25248 (memalign): Copy hook value to automatic variable before its use.
25249
252502007-06-26 Kenichi Handa <handa@m17n.org>
25251
25252 * coding.c (Ffind_operation_coding_system): Docstring improved.
25253 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
25254
252552007-06-25 David Kastrup <dak@gnu.org>
25256
25257 * keymap.c (Fcurrent_active_maps): Add `position' argument.
25258 (Fwhere_is_internal): Adjust call to `current-active-maps' to
25259 cater for additional parameter.
25260
25261 * keymap.h: Adjust number of parameters to `current-active-maps'.
25262
25263 * doc.c (Fsubstitute_command_keys): Adjust call of
25264 `current-active-maps'.
25265
252662007-06-25 David Kastrup <dak@gnu.org>
25267
25268 * callint.c (Fcall_interactively): Make the parsing of interactive
25269 specs somewhat more readable.
25270
252712007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25272
25273 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
25274 to scroll bar gap also when bitmap fills fringe. Draw only foreground
25275 if extended background has already been filled.
25276
252772007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25278
25279 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
25280 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
25281
25282 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
25283 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
25284 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
25285 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
25286 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
25287 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
25288 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
25289 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
25290 Run timers during dialog popup.
25291 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
25292
252932007-06-21 Jason Rumney <jasonr@gnu.org>
25294
25295 * image.c (convert_mono_to_color_image): Swap fore and background.
25296
252972007-06-20 Jason Rumney <jasonr@gnu.org>
25298
25299 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
25300 (w32_free_bdf_font): Unmap memory not handle.
25301
253022007-06-20 Sam Steingold <sds@gnu.org>
25303
25304 * gmalloc.c (__morecore): Fix the declaration to comply with the
25305 definition.
25306
253072007-06-20 Juanma Barranquero <lekktu@gmail.com>
25308
25309 * w32term.c (w32_delete_display): Remove leftover declaration.
25310 (w32_define_cursor, w32_initialize): Make static.
25311
25312 * w32.c (_wsa_errlist): Fix typo in error message.
25313 (init_environment): Ignore any environment variable from the
25314 registry having a null value.
25315
253162007-06-20 Glenn Morris <rgm@gnu.org>
25317
25318 * Makefile.in (LIBGIF): Default to -lgif.
25319
253202007-06-17 Jason Rumney <jasonr@gnu.org>
25321
25322 * w32menu.c (add_menu_item): Don't use multibyte string functions on
25323 unicode strings.
25324
253252007-06-16 Juanma Barranquero <lekktu@gmail.com>
25326
25327 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
25328 Fix typo in docstring.
25329
253302007-06-16 Eli Zaretskii <eliz@gnu.org>
25331
25332 * w32menu.c (add_menu_item): Escape `&' characters in menu items
25333 and their keybindings.
25334
253352007-06-15 Chong Yidong <cyd@stupidchicken.com>
25336
25337 * composite.c (update_compositions): Fix last fix.
25338
253392007-06-14 Jason Rumney <jasonr@gnu.org>
25340
25341 * w32.c (get_process_times_fn): New function pointer.
25342 (globals_of_w32): Intialize it if present in kernel32.dll.
25343 (w32_get_internal_run_time): New function.
25344
25345 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
25346
253472007-06-14 Kenichi Handa <handa@etlken.m17n.org>
25348
25349 * composite.c (update_compositions): Check the validness of
25350 compositions.
25351
253522007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25353
25354 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
25355 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
25356
25357 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
25358 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
25359
25360 * macgui.h (USE_MAC_TOOLBAR): New define.
25361
25362 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25363 Return immediately unless popup is activated.
25364
25365 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
25366 background to scroll bar gap.
25367 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
25368 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
25369 scroll bars on frame edge. Check fringe background extension.
25370 Don't clear extended fringe background area.
25371 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
25372 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
25373 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
25374 [USE_MAC_TOOLBAR]: New macros.
25375 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
25376 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
25377 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
25378 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
25379 [USE_MAC_TOOLBAR]: New functions.
25380 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
25381 manually if previous repositioning has failed.
25382 (mac_handle_keyboard_event): Use precomputed event kind.
25383 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
25384 as tool bar item click. Handle mouse movement over tool bar items.
25385
25386 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
25387 toolbar_win_gravity.
25388 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
25389 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
25390 Add externs.
25391
25392 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
25393 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
25394
253952007-06-14 Chong Yidong <cyd@stupidchicken.com>
25396
25397 * image.c (search_image_cache): Remove unused variable.
25398
253992007-06-13 Chong Yidong <cyd@stupidchicken.com>
25400
25401 * xfns.c, xmenu.c: Link to xaw3d if available.
25402
254032007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25404
25405 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
25406 frame_foreground and frame_background.
25407
25408 * image.c (lookup_image): Save frame foreground and background colors.
25409 (search_image_cache): Check if saved and current frame colors match.
25410
254112007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
25412
25413 * regex.c (regex_compile): Remove the `regnum' counter.
25414 Use bufp->re_nsub instead. Add support for \(?N:RE\).
25415
254162007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
25417
25418 * term.c: Include intervals.h to declare Fget_text_property.
25419
254202007-06-10 Jason Rumney <jasonr@gnu.org>
25421
25422 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
25423
254242007-06-08 Juanma Barranquero <lekktu@gmail.com>
25425
25426 * callint.c (Fcall_interactively):
25427 * editfns.c (Fdelete_and_extract_region):
25428 * fileio.c (Fread_file_name):
25429 * fns.c (Fmapconcat):
25430 * keyboard.c (cmd_error_internal):
25431 * keymap.c (Fkey_description):
25432 * lread.c (openp):
25433 * minibuf.c (read_minibuf):
25434 * search.c (wordify):
25435 * sunfns.c (sel_read):
25436 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
25437 * xfns.c (x_default_scroll_bar_color_parameter):
25438 * xmenu.c (menu_help_callback):
25439 * xselect.c (Fx_get_atom_name):
25440 * xterm.c (x_term_init): Use empty_unibyte_string.
25441
254422007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
25443
25444 * alloc.c (init_strings): Initialize canonical empty strings.
25445 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
25446 canonical empty string when the requested size is 0.
25447
25448 * emacs.c (empty_unibyte_string): Rename from empty_string.
25449 (empty_multibyte_string): New canonical empty string.
25450 (syms_of_emacs): Don't initialize empty_string.
25451
25452 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
25453 string, if appropriate.
25454 (empty_unibyte_string, empty_multibyte_string): New externs.
25455 (empty_string): Remove extern.
25456
25457 * lread.c (syms_of_lread): Use empty_unibyte_string.
25458
254592007-06-07 Jason Rumney <jasonr@gnu.org>
25460
25461 * s/ms-w32.h: Don't define HAVE_TZNAME.
25462
25463 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
25464
254652007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25466
25467 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
25468
25469 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
25470 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
25471
25472 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
25473 Don't call next handler.
25474 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
25475 Remove argument. Install handler to application.
25476 (set_frame_menubar): Don't change deep_p.
25477 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
25478 FRAME_OUTER_TO_INNER_DIFF_Y.
25479 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
25480 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
25481 [HAVE_DIALOGS]: New macros.
25482 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
25483 Use them.
25484 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
25485
25486 * macselect.c [MAC_OSX] (install_service_handler): Rename from
25487 init_service_handler. All callers changed. Return OSStatus value.
25488
25489 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
25490 All callers changed so as not to call SetPortWindowPort.
25491 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
25492 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
25493 mac_draw_string_common.
25494 (mac_draw_image_string_qd): Likewise.
25495 (mac_draw_string_common): Use them. Add INLINE.
25496 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
25497 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
25498 GetGlobalMouse.
25499 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
25500 and FRAME_OUTER_TO_INNER_DIFF_Y.
25501 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
25502 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
25503 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
25504 repositioning window to mac_handle_window_event.
25505 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
25506 saving window location to mac_handle_window_event
25507 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
25508 (install_menu_target_item_handler): Remove argument in extern.
25509 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
25510 Also accept command events.
25511 (do_keystroke): New function created from XTread_socket.
25512 (init_command_handler): Remove functions.
25513 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
25514 and save window location by kEventWindowShowing and kEventWindowHiding
25515 handlers here. Don't call next handler for window state change and
25516 focus events.
25517 (mac_handle_application_event, mac_handle_keyboard_event)
25518 [TARGET_API_MAC_CARBON]: New functions.
25519 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
25520 kEventWindowShowing and kEventWindowHiding events. Move installation
25521 of mouse, font, text input and menu target item handlers to
25522 install_application_handler.
25523 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
25524 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25525 New function.
25526 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
25527 Register it.
25528 (XTread_socket) [TARGET_API_MAC_CARBON]:
25529 Consolidate SendEventToEventTarget calls.
25530 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
25531 Move application activation handler to mac_handle_application_event.
25532 Move keyboard handler to mac_handle_keyboard_event.
25533 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
25534 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
25535 init_command_handler. Call install_application_handler.
25536
25537 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
25538 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
25539
255402007-06-07 Glenn Morris <rgm@gnu.org>
25541
25542 * emacs.c (main): Use `emacs-copyright' in --version output.
25543
255442007-06-06 Chong Yidong <cyd@stupidchicken.com>
25545
25546 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
25547
255482007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25549
25550 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
25551
25552 * macgui.h: Replace WindowPtr with WindowRef.
25553
25554 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25555 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25556 Replace ControlHandle with ControlRef.
25557 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
25558
25559 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
25560 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
25561 Replace ControlHandle with ControlRef.
25562 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
25563 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
25564
25565 * macterm.h (struct scroll_bar): Rename member control_handle_low
25566 and control_handle_high to control_ref_low and control_ref_high.
25567 All uses changed.
25568 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
25569 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
25570 respectively. All uses changed.
25571 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
25572 (install_window_handler, remove_window_handler): Replace WindowPtr
25573 with WindowRef in externs.
25574
255752007-06-05 Juanma Barranquero <lekktu@gmail.com>
25576
25577 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
25578
255792007-06-03 Nick Roberts <nickrob@snap.net.nz>
25580
25581 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
25582
25583 * frame.c (Fmouse_position, Fmouse_pixel_position):
25584 Condition on HAVE_GPM too.
25585
25586 * term.c (term_mouse_highlight): Remove unused variables.
25587 (Fterm_open_connection): Set gpm_zerobased to 1.
25588 (term_mouse_movement, term_mouse_click, handle_one_term_event):
25589 Use zero based co-ordinates.
25590 (handle_one_term_event): Report a drag as mouse movement too.
25591
25592 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
25593
255942007-06-03 Chong Yidong <cyd@stupidchicken.com>
25595
25596 * image.c (search_image_cache): New function. Require background
25597 color match if background color is unspecified in the image spec.
25598 (uncache_image, lookup_image): Use it.
25599
256002007-06-01 Juanma Barranquero <lekktu@gmail.com>
25601
25602 * window.c (Fshrink_window): Reflow docstring.
25603
256042007-06-02 Chong Yidong <cyd@stupidchicken.com>
25605
25606 * Version 22.1 released.
25607
256082007-06-01 Richard Stallman <rms@gnu.org>
25609
25610 * xfns.c (x_encode_text): Add GCPRO.
25611
256122007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25613
25614 * xfns.c (x_set_name_internal): Save encoded name before
25615 x_encode_text in case string data is relocated.
25616
256172007-05-31 Richard Stallman <rms@gnu.org>
25618
25619 * buffer.c (syms_of_buffer): Doc fix.
25620
256212007-05-30 Nick Roberts <nickrob@snap.net.nz>
25622
25623 * sysdep.c (init_sys_modes): Add rather than replace with
25624 O_NONBLOCK.
25625
25626 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
25627 term_mouse_moveto.
25628
25629 * termhooks.h (term_mouse_moveto): New extern.
25630
25631 * term.c (mouse_face_window): Rename...
25632 (Qmouse_face_window): ...to this.
25633 (term_show_mouse_face, term_clear_mouse_face)
25634 (term_mouse_highlight): Use Qmouse_face_window.
25635 (term_mouse_moveto): New function.
25636 (term_mouse_position): Make it work.
25637 (syms_of_term): Uncomment assignment to mouse_position_hook.
25638 Staticpro Qmouse_face_window.
25639
256402007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25641
25642 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
25643 around current_column call.
25644
256452007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
25646
25647 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
25648 * xdisp.c (next_element_from_buffer):
25649 * window.c (delete_window):
25650 * term.c (term_mouse_highlight):
25651 * msdos.c (getdefdir):
25652 * macterm.c (mac_create_bitmap_from_bitmap_data)
25653 (init_font_name_table):
25654 * fns.c (Fsxhash):
25655 * data.c (Fmake_local_variable):
25656 * ccl.c (ccl_driver): Likewise.
25657
256582007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25659
25660 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
25661 Call mac_wakeup_from_rne on window size change.
25662
256632007-05-25 Chong Yidong <cyd@stupidchicken.com>
25664
25665 * image.c (uncache_image): Fix typo.
25666
256672007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
25668
25669 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
25670
256712007-05-22 Richard Stallman <rms@gnu.org>
25672
25673 * xterm.c (x_connection_closed): Remove NO_RETURN.
25674
256752007-05-22 Martin Rudalics <rudalics@gmx.at>
25676
25677 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
25678
256792007-05-21 Chong Yidong <cyd@stupidchicken.com>
25680
25681 * image.c (uncache_image): New function.
25682 (Fimage_refresh): New function.
25683
256842007-05-20 Jan Djärv <jan.h.d@swipnet.se>
25685
25686 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
25687
256882007-05-20 Nick Roberts <nickrob@snap.net.nz>
25689
25690 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
25691 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
25692
256932007-05-20 Nick Roberts <nickrob@snap.net.nz>
25694
25695 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
25696 conditional on [HAVE_GPM_H].
25697
256982007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
25699
25700 * syntax.c (skip_chars): Update syntax-table only after we checked that
25701 the new location is valid.
25702
257032007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25704
25705 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
25706 mac_get_window_bounds.
25707
257082007-05-20 Nick Roberts <nickrob@snap.net.nz>
25709
25710 * Makefile.in (LIBGPM): Allow it to be set from configure.
25711 If set then link Emacs with it.
25712
25713 * config.in: Regenerate.
25714
25715 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
25716 New externs.
25717
25718 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
25719 Include gpm.h.
25720 (handle_one_term_event, term_gpm): New externs.
25721
25722 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
25723 and allow it to be interrupted by SIGIO.
25724
25725 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
25726 (wait_reading_process_output): Wait on gpm_fd too.
25727 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
25728 (add_gpm_wait_descriptor_called_flag): New variable.
25729 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
25730
25731 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
25732 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
25733 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
25734 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
25735 (make_lispy_event): Add case GPM_CLICK_EVENT.
25736 (read_avail_input): Handle mouse input.
25737
25738 * term.c (write_glyphs_with_face): New function.
25739 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
25740 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
25741 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
25742 (mouse_face_face_id, term_gpm, pos_x, pos_y)
25743 (last_mouse_x, last_mouse_y): New variables.
25744 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
25745 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
25746 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
25747 (Fterm_close_connection): New functions.
25748 (term_init): Initialise mouse_face_window.
25749
257502007-05-19 Chong Yidong <cyd@stupidchicken.com>
25751
25752 * xdisp.c (redisplay_window): If first window line is a
25753 continuation line, recompute the new window start instead of
25754 recentering.
25755
257562007-05-18 Glenn Morris <rgm@gnu.org>
25757
25758 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
25759 Suggested by Alfred M. Szmidt <ams@gnu.org>.
25760
257612007-05-17 Glenn Morris <rgm@gnu.org>
25762
25763 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
25764
257652007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25766
25767 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
25768 dead key repeat and up events.
25769
257702007-05-14 Chong Yidong <cyd@stupidchicken.com>
25771
25772 * image.c (pbm_load): Check image size for monochrome pbm.
25773
257742007-05-13 Chong Yidong <cyd@stupidchicken.com>
25775
25776 * xterm.c (XTread_socket): Revert last change.
25777
257782007-05-12 Chong Yidong <cyd@stupidchicken.com>
25779
25780 * image.c (pbm_load): Correctly check image size for greyscale pbm.
25781
25782 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
25783
257842007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25785
25786 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
25787 mixup (YAILOM).
25788
257892007-05-07 Andreas Schwab <schwab@suse.de>
25790
25791 * keymap.c (Flookup_key): Fix typo in last change.
25792
257932007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
25794
25795 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
25796 mapping for unibyte strings.
25797
257982007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25799
25800 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
25801 (Fx_popup_dialog) [MAC_OSX]: Likewise.
25802
258032007-04-29 Richard Stallman <rms@gnu.org>
25804
25805 * insdel.c (replace_range): For undo, record insertion first.
25806
258072007-04-29 Andreas Schwab <schwab@suse.de>
25808
25809 * lisp.h (VECSIZE): Use OFFSETOF.
25810
258112007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25812
25813 * xdisp.c (try_window_reusing_current_matrix): Fix number of
25814 disabled lines.
25815
258162007-04-28 Richard Stallman <rms@gnu.org>
25817
25818 * lread.c (read_escape): In a string, \s is always space.
25819
258202007-04-27 Jan Djärv <jan.h.d@swipnet.se>
25821
25822 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
25823
25824 * gtkutil.c (xg_update_menubar, create_menus): Create empty
25825 submenu for menu bar items.
25826
25827See ChangeLog.10 for earlier changes.
25828
25829;; Local Variables:
25830;; coding: utf-8
25831;; add-log-time-zone-rule: t
aac0c6e3
MR
25832;; End:
25833
e3eb1dae 25834 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
25835
25836 This file is part of GNU Emacs.
25837
25838 GNU Emacs is free software: you can redistribute it and/or modify
25839 it under the terms of the GNU General Public License as published by
25840 the Free Software Foundation, either version 3 of the License, or
25841 (at your option) any later version.
25842
25843 GNU Emacs is distributed in the hope that it will be useful,
25844 but WITHOUT ANY WARRANTY; without even the implied warranty of
25845 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25846 GNU General Public License for more details.
25847
25848 You should have received a copy of the GNU General Public License
25849 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
25850
25851;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40