Remove spurious comment change.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e157d7ba
JR
12008-04-14 Jason Rumney <jasonr@gnu.org>
2
3 * w32font.c (w32font_open_internal): Set max_bounds.descent in
4 compatibility struct, for better underline positioning.
5
9ec3aaef 62008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
7
8 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
9 string.
10
36c08864
DN
112008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12
13 * m/hp800.h (XUINT, XSET): Remove.
14
f5acc071
JB
152008-04-12 Juanma Barranquero <lekktu@gmail.com>
16
17 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
18 previous change.
19
5b5a2ea1
SM
202008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21
22 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
23 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
24
492d9fd6
SM
252008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
26
27 * keymap.h (map_keymap_canonical): Declare.
28 * xmenu.c (single_keymap_panes): Use it.
29
dd60787c
GM
302008-04-11 Glenn Morris <rgm@gnu.org>
31
32 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
33 set the target's value to that of the alias.
34
c23b5410
SM
352008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
36
37 * term.c (set_tty_color_mode): Left over typo.
38
e89b536d
MA
392008-04-10 Michael Albinus <michael.albinus@gmx.de>
40
41 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 42 only after check for file name handler functions. Signal, when
e89b536d
MA
43 native functionality is not supported.
44 (syms_of_fileio): Declare it unconditionally.
45
40a339c8
JR
462008-04-10 Jason Rumney <jasonr@gnu.org>
47
31403b24
JR
48 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
49 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
50
40a339c8
JR
51 * w32.c (logon_network_drive): Also logon to remote drives that
52 are mapped to drive letters.
53
96a7394f
GM
542008-04-10 Glenn Morris <rgm@gnu.org>
55
56 * xdisp.c (truncate-partial-width-windows): Doc fix.
57
34b67b0f
SM
582008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
59
60 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
61 Move functions to minibuffer.el.
62 (syms_of_fileio): Don't declare them.
63
c025fb0a
SM
642008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
65
ba5ff07b
SM
66 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
67 (syms_of_minibuf): Remove its initialization.
68
c025fb0a
SM
69 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
70
7a6a86ad
JB
712008-04-09 Juanma Barranquero <lekktu@gmail.com>
72
73 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
74
cf907d69
JR
752008-04-09 Jason Rumney <jasonr@gnu.org>
76
3dc94c30
JR
77 * makefile.w32-in (distclean): Delete makefile too.
78 (maintainer-clean): New target.
79
8d28646b
JR
80 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
81
cf907d69
JR
82 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
83 for new font backend and composite cases.
84
ef5eb925
JD
852008-04-09 Jan Djärv <jan.h.d@swipnet.se>
86
87 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
88 Most of the code moved to run_timers.
89 (do_pending_atimers): Call run_timers.
90 (run_timers): New function.
91
cf907d69
JR
92 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
93 run atimers.
ef5eb925
JD
94
95 * process.c (wait_reading_process_output): The same as above.
96
9b2cd403
SM
972008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
98
32bae13c
SM
99 * minibuf.c (last_exact_completion): Remove variable.
100 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
101 (complete_and_exit_1, complete_and_exit_2)
102 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
103 (Fdisplay_completion_list, display_completion_list_1)
104 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
105 (Fexit_minibuffer, Fminibuffer_message): Move functions to
106 minibuffer.el.
32bae13c
SM
107 (syms_of_minibuf): Remove corresponding initializations.
108
5c4cc82a
SM
109 * keyboard.c (Qdeactivate_mark): New var.
110 (command_loop_1): Use it to call `deactivate-mark'.
111 (syms_of_keyboard): Initialize it.
112
9b2cd403
SM
113 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
114 to another frame.
115 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
116 Don't call set_tty_color_mode.
117 (store_frame_param): Reset previous_frame rather than call
118 set_tty_color_mode.
119 * term.c (set_tty_color_mode): Rewrite.
120 * dispextern.h (set_tty_color_mode): New type.
121 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
122
84cb7b45
SM
1232008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
124
125 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
126 for generic chars, which do not exist any more in emacs-unicode.
127
3ed051d4
MA
1282008-04-08 Michael Albinus <michael.albinus@gmx.de>
129
130 * coding.c (detect_coding_emacs_mule)
131 (Ffind_operation_coding_system): Fix typo.
132
58c3ea42
JR
1332008-04-08 Jason Rumney <jasonr@gnu.org>
134
3bf8d230
JR
135 * w32uniscribe.c (SNAME): Extract only symbol name.
136
56a70cca
JR
137 * w32font.h (struct w32_metric_cache): New struct.
138 (w32font_info): Use it.
139 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
140 (CACHE_BLOCKSIZE): New constants.
3ed051d4 141
58c3ea42
JR
142 * w32font.c (Qja, Qko, Qzh): New symbols.
143 (syms_of_w32font): Initialise them.
144 (font_matches_spec): Use them to filter by language.
145 (recompute_cached_metrics): Remove function.
146 (compute_metrics, clear_cached_metrics): New functions.
147 (w32font_encode_char): Use them to manage metric cache.
148 (w32font_text_extents): Cache metrics for all glyphs on demand.
149 Delay converting glyph indices to WORD until needed.
150 (w32font_open_internal): Initialize metric cache to empty.
151 (registry_to_w32_charset): Charset should always be a symbol.
152 (fill_in_logfont, list_all_matching_fonts): Family should
153 always be a symbol.
154
0ce24b2d
JR
1552008-04-06 Jason Rumney <jasonr@gnu.org>
156
157 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
158 Give up if glyph indices not supported. Use uniscribe obtained
159 ABC widths for individual metrics. Map glyph clusters back to
160 characters using fClusterStart flag. Return number of glyphs
161 produced, not chars processed.
b7655e0c 162 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 163
5bc6ddff 1642008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 165
fbf57abb
JB
166 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
167 Use SetMenuItemHierarchicalMenu.
56613f06 168
5bc6ddff 1692008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 170
5bc6ddff
MB
171 * image.c (pbm_load): Allow color values up to 65535.
172 Throw an error if max_color_idx is outside the supported range.
173 Report an error when image size is invalid.
174 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 175
5bc6ddff 1762008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 177
5bc6ddff
MB
178 * w32.c (readdir): If FindFirstFile/FindNextFile return in
179 cFileName a file name that includes `?' characters, use the 8+3
180 alias in cAlternateFileName instead.
5ed6ba5b 181
5bc6ddff 1822008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 183
5bc6ddff
MB
184 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
185 append "CCL: Quitted" when the CCL program is quitted.
186 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 187
5bc6ddff 188 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 189
c36e15db
CY
1902008-04-05 Chong Yidong <cyd@stupidchicken.com>
191
9605d567
CY
192 * search.c (compile_pattern_1): Treat non-nil and non-string of
193 search-spaces-regexp as nil.
194
c36e15db
CY
195 * minibuf.c (Fassoc_string): Tweak docstring.
196
40beb147
EZ
1972008-04-05 Eli Zaretskii <eliz@gnu.org>
198
199 * dired.c (Ffile_attributes): Support inode numbers wider than 32
200 bits. Remove ugly WINDOWSNT-specific kludge introduced on
201 2008-03-14 to force inode be positive.
202
203 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
204 _S_* ones, since we now use our own sys/stat.h.
205 (stat, fstat): Don't mangle the inode number.
aa08d1ff 206 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 207
4591d6cb
SM
2082008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
209
d4417eb0
SM
210 * frame.h (struct frame): Give one more bit to `visible' since we use
211 values larger than 1 to indicate obscured frames on ttys.
212
00f7c5ed
SM
213 * keymap.c (Qkeymap_canonicalize): New var.
214 (Fmap_keymap_internal): New fun.
215 (describe_map): Use keymap-canonicalize.
216
4591d6cb
SM
217 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
218 (Fundo_boundary): Set them.
219 (syms_of_undo): Initialize them.
220 (record_point): Use them instead of last_point_position*.
221 (last_undo_buffer): Change type.
222
3187540e
JR
2232008-04-04 Jason Rumney <jasonr@gnu.org>
224
0ce24b2d
JR
225 * w32font.c (w32font_text_extents): Use font's ascent and descent.
226 (recompute_cached_metrics): Don't set ascent and descent per char.
227
3187540e 228 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 229 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 230 Rearrange loop for counting features.
3187540e 231
f1a6b216
SM
2322008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
233
234 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
235 buffer with byte-size of source buffer.
236
1d8dcf63
CY
2372008-04-03 Chong Yidong <cyd@stupidchicken.com>
238
239 * callint.c (Fcall_interactively): Handle temporary region even
240 when shift-select-mode is off.
241
6b8aa22a
JR
2422008-04-03 Jason Rumney <jasonr@gnu.org>
243
244 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
245
2f3cbb32
KH
2462008-04-03 Kenichi Handa <handa@m17n.org>
247
248 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
249 (CATEGORY_MASK_UTF_16): Likewise.
250 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
251 binary file.
252 (detect_coding): Add null-byte detection for a binary file.
253 (detect_coding_system): Likewise.
254
43f4f91c
JR
2552008-04-03 Jason Rumney <jasonr@gnu.org>
256
0c1b4ae2
JR
257 * w32uniscribe.c: New file.
258
259 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
260
261 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
262
263 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
264 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
265 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
266 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
267 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
268 (Qphonetic): New symbols.
269 (syms_of_w32font): Initialize them.
270 (font_supported_scripts): Use them.
271 (w32font_list_family): List all charsets.
272 (w32font_text_extents, recompute_cached_metrics): Fix metric
273 calculations.
274 (w32_enumfont_pattern_entity): Make full_type a DWORD.
275 Give opentype fonts their own format.
276 (font_matches_spec): New arguments backend and logfont.
277 Handle :otf spec for uniscribe backend.
278 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
279 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 280
0c1b4ae2
JR
281 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
282 font backend.
283 (globals_of_w32fns): Initialize uniscribe font backend.
284
fbf57abb 285 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
286 dependencies.
287 (w32uniscribe.$(O)): New file to build.
288 (FONT_OBJ): Include w32uniscribe.$(O).
289 (LIBS): Add uniscribe libraries.
290
43f4f91c
JR
291 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
292
75043a7d
CY
2932008-04-02 Chong Yidong <cyd@stupidchicken.com>
294
295 * callint.c (Vshift_select_mode): New var.
296 (Finteractive): Document new ^ spec.
297 (Fcall_interactively): Call handle-shift-selection if the ^ spec
298 is present.
299
300 * keyboard.c (Vthis_command_keys_shift_translated): New var.
301 (command_loop_1): Avoid running the direct display versions of
302 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
303 (read_key_sequence): Set Vthis_command_keys_shift_translated if
304 shift-translation takes place.
305
306 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
307 avoid clobbering by define-minor-mode.
308
309 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
310 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
311
312 * syntax.c (Fforward_word): Add ^ interactive spec.
313
314 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
315 (Fscroll_right): Add ^ interactive spec.
316
b2b7f29e
SM
3172008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
318
a432c0a6
SM
319 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
320
994b75e0
SM
321 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
322
b2b7f29e
SM
323 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
324
e99c7806
JL
3252008-03-31 Juri Linkov <juri@jurta.org>
326
327 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
328
1c9c1270
JD
3292008-03-30 Jan Djärv <jan.h.d@swipnet.se>
330
331 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 332 (xg_resize_outer_widget): Remove.
1c9c1270
JD
333 (x_wm_size_hint_off): Fix indentation.
334 (xg_frame_set_char_size): Call flush_and_sync after
335 gtk_window_resize.
336 (x_wm_set_size_hint): Pass NULL as geometry window to
337 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
338 Add menu bar and tool bar height to base height.
339 (xg_update_frame_menubar, free_frame_menubar)
340 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
341 (update_frame_tool_bar, free_frame_tool_bar):
342 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 343
90b3fc84
MA
3442008-03-30 Michael Albinus <michael.albinus@gmx.de>
345
346 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
347 (Fdbus_call_method): New parameter TIMEOUT.
348 (dbus-send-signal): Optimize UNGCPRO call.
349
7ae6d1d1
JL
3502008-03-29 Juri Linkov <juri@jurta.org>
351
352 * window.c (Fdisplay_buffer): Move call to
353 Vsplit_window_preferred_function out of conditions that check
354 if window is eligible for vertical splitting.
355 When Vsplit_window_preferred_function is non-nil, call it and use
356 its non-nil return value as window. Otherwise, continue doing
357 vertical splitting using Fsplit_window with arg horflag=nil.
358 (syms_of_window) <Vsplit_window_preferred_function>: Change the
359 default value from `split-window' to nil.
360
f03f8f2c
JL
3612008-03-29 Juri Linkov <juri@jurta.org>
362
363 * callint.c (Fcall_interactively): Revert 2008-03-16 change
364 for interactive code letters 'b' and 'B'.
365
6d557778
EZ
3662008-03-29 Eli Zaretskii <eliz@gnu.org>
367
368 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
369 multibyte string.
370
58555d81
SM
3712008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
372
373 * keyboard.c (pending_funcalls): New var.
374 (timer_check): Run it.
375 (syms_of_keyboard): Initialize it.
376 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
377 (Vdelete_terminal_functions): New vars.
378 (syms_of_terminal): Initialize them.
379 (Fdelete_terminal): Run delete-terminal-functions.
380 * xdisp.c (safe_eval): Rewrite.
381 (safe_call2): New fun.
382 * frame.c (Qdelete_frame_functions): New var.
383 (syms_of_frame): Initialize it.
384 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
385 * lisp.h (safe_call2, pending_funcalls): Declare.
386
4c92f429
AS
3872008-03-28 Andreas Schwab <schwab@suse.de>
388
389 * indent.c (Fmove_to_column): Move declaration before statements.
390
a1567c45
SM
3912008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
392
2806a183
SM
393 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
394 (struct frame): Use bit fields for boolean vars.
395
eef60308
SM
396 * process.c (server_accept_connection): Simplify naming.
397 (emacs_get_tty_pgrp): Use SDATA.
398
a1567c45
SM
399 * coding.c (decode_coding_object): Fix last change.
400
30076589
JR
4012008-03-27 Jason Rumney <jasonr@gnu.org>
402
403 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
404
880820fe
KH
4052008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
406
407 * charset.c (Fdefine_charset_internal): Change the way of
408 registering charsets in Vcharset_order_list.
409 (syms_of_charset): Make the charset `eight-bit' supplementary.
410
3cf8cdfb
CY
4112008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
412
413 * regex.c (EXTEND_BUFFER): Change order of pointer addition
414 operations, to avoid having the difference between pointers
415 overflow.
416
ef6f5c0e
SM
4172008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
418
80e3db56
SM
419 * indent.c (check_display_width): New fun.
420 (scan_for_column): Use it.
421
c397dc7a
SM
422 * data.c (syms_of_data): Mark most-positive-fixnum and
423 most-negative-fixnum as constants.
424
bf6b4d58
SM
425 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
426
ef6f5c0e
SM
427 * indent.c (scan_for_column): Extract from current_column_1.
428 Merge with the same code from Fmove_to_column.
429 (current_column_1, Fmove_to_column): Use it.
430
72d5003d
SM
4312008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
432
12270607
SM
433 * keymap.c (map_keymap_internal): New fun.
434 (map_keymap): Use it.
435 (Fmap_keymap_internal): New fun.
436 (Fmap_keymap): Remove left-out test from before make_save_value.
437
a10cca6c
SM
438 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
439
d7b10f4c
SM
440 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
441 Use XCAR/XCDR.
442
5431bd6a
SM
443 * process.h (struct Lisp_Process): Remove filter_multibyte.
444 * process.c (QCfilter_multibyte): Remove.
445 (setup_process_coding_systems): Don't use filter_multibyte.
446 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
447 (read_process_output): Don't adjust multibyteness to filter_multibyte.
448 (Fset_process_filter_multibyte): Change the coding-system to
449 approximate the previous behavior.
450 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
451 coding-system.
452
72d5003d
SM
453 * coding.c (decode_coding_object): When not decoding into a buffer,
454 obey the coding system's preference of (uni|multi)byte.
455
438eba3c
SM
4562008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
457
458 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
459 every char is changed and has a different byte-length.
460 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
461 Fix int -> EMACS_INT.
462
9ec3aaef 4632008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 464
438eba3c 465 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
466 strings. Check for NULL `interface' or `member'.
467
b07103dc
EZ
4682008-03-22 Eli Zaretskii <eliz@gnu.org>
469
470 * w32.c (readdir): If FindFirstFile/FindNextFile return in
471 cFileName a file name that includes `?' characters, use the 8+3
472 alias in cAlternateFileName instead.
473
5371d722
SM
4742008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
475
476 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
477
6ba7f443
SM
4782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
479
480 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
481 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
482 work on current_buffer only instead (that was already the case
483 for some of the code anyway).
484 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
485 (temp_set_point, temp_set_point_both): Use EMACS_INT.
486 (SET_PT, SET_PT_BOTH): Adjust.
487 * intervals.h (set_point, temp_set_point, set_point_both)
488 (temp_set_point_both): Remove redundant declarations.
489
bf1c0f27
SM
4902008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
491
492 * fileio.c (Finsert_file_contents):
493 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
494 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
495 when buffer != current_buffer anyway.
496
acab783e
AS
4972008-03-20 Andreas Schwab <schwab@suse.de>
498
499 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
500 as default.
501
d148e14d
JR
5022008-03-19 Jason Rumney <jasonr@gnu.org>
503
504 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
505 (syms_of_w32fns): Initialize them.
506 (HOURGLASS_ID): New constant.
507 (x_window_to_frame): Don't check hourglass_window.
508 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
509 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
510 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
511 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
512 Only change the cursor if hourglass is not active.
513 (Fx_create_frame): Initialize frame's current_cursor.
514 (hourglass_atimer): Remove.
515 (hourglass_started): New function.
516 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
517 (show_hourglass): Adapt to w32, changing argument to frame.
518
519 * w32term.h (struct w32_output): Remove hourglass_window.
520 Add current_cursor.
521
522 * eval.c (call_debugger, Fsignal):
523 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
524 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
525 (Fexecute_extended_command, cancel_hourglass_unwind):
526 * minibuf.c (read_minibuf):
527 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 528
a5c54077
JB
5292008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
530
531 * window.c (run_funs): New fun.
532 (run_window_configuration_change_hook): Use it to run the buffer-local
533 and the global part of the hook.
534
535 * xdisp.c (format_mode_line_unwind_data): Add window argument.
536 (unwind_format_mode_line): Restore selected window.
537 (x_consider_frame_title, Fformat_mode_line): Set selected window.
538
f9f3238f
SM
5392008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
540
253c3c82
SM
541 * editfns.c (Fchar_equal): Check they are valid characters.
542
f9f3238f
SM
543 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
544
065a118d
AS
5452008-03-17 Andreas Schwab <schwab@suse.de>
546
0b8be006
AS
547 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
548 against a charset.
549
065a118d
AS
550 * lisp.h (Fbuffer_list): Declare.
551
880820fe 5522008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
553
554 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
555 handlebox_widget is != 0.
556
6206d6c2
JL
5572008-03-16 Juri Linkov <juri@jurta.org>
558
559 * callint.c (Fcall_interactively): For interactive code letters
560 'b' and 'B' put the buffer list into the list of default "future"
561 values of the minibuffer.
562
f5020181
AS
5632008-03-16 Andreas Schwab <schwab@suse.de>
564
a864f6d6
AS
565 * keyboard.c (read_key_sequence): Fix downcasing of letters with
566 modifiers.
567
f5020181
AS
568 * regex.c (re_match_2_internal): Correct matching of a charset
569 against latin-1 characters.
570
03f244e2
KH
5712008-03-16 Kenichi Handa <handa@m17n.org>
572
573 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
574 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
575 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
576 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
577 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
578 CHAR_STRING_ADVANCE.
579 (produce_chars): Fix for the case that the source and the
580 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
581 instead of CHAR_STRING_ADVANCE.
582 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
583 STRING_CHAR_ADVANCE.
584
0e2501ed
AS
5852008-03-15 Andreas Schwab <schwab@suse.de>
586
587 * regex.c (re_match_2_internal): Correct matching of eight bit
588 characters in unibyte strings.
589
7723e095
MR
5902008-03-15 Martin Rudalics <rudalics@gmx.at>
591
592 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
593 at end of range when it coincides with the end of the buffer.
594
f507f365
EZ
5952008-03-14 Eli Zaretskii <eliz@gnu.org>
596
294f1153
EZ
597 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
598
f507f365
EZ
599 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
600
64f0809d
JR
6012008-03-14 Jason Rumney <jasonr@gnu.org>
602
956ae531
JR
603 * editfns.c (initial_tz): New variable.
604 (syms_of_editfns): Initialize it.
605 (Fset_time_zone_rule): Set it when first called.
606 Use it when TZSTRING is nil.
607
64f0809d
JR
608 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
609 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
610 (monitor_from_point_fn, get_monitor_info_fn): New globals.
611 (globals_of_w32fns): Initialize them.
612 (compute_tip_xy): Use them to position tooltips.
613
21a4ff8e
GM
6142008-03-14 Glenn Morris <rgm@gnu.org>
615
616 * emacs.c (main): Revert previous change.
617 (standard_args): Revert -internal-script back to -scriptload,
618 and remove the long-option form.
619
a09a5b5b
GM
6202008-03-13 Glenn Morris <rgm@gnu.org>
621
622 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
623 Remove option -enable-font-backend.
624
1c55ebd1
SM
6252008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
626
627 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
628
880820fe 6292008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
630
631 * xterm.c (x_connection_closed): For GTK: If this is the last
632 terminal just exit without closing the display.
633
7145be81
JR
6342008-03-11 Jason Rumney <jasonr@gnu.org>
635
636 * w32font.c (w32font_full_name): Use floor to round.
637
e6201af3 6382008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
639
640 * sound.c (alsa_configure): Declare vol at beginning of block.
641
e6201af3 642 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 643
390b81fa 6442008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 645
56388398
MB
646 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
647 size of resulting string.
af0ad939 648
390b81fa 6492008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 650
56388398 651 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 652
390b81fa 6532008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 654
56388398
MB
655 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
656 Don't pretend as if characters with display property haven't been
657 consumed for string-replacing-string case.
acd37560 658
223ed6db
KS
6592008-03-08 Kim F. Storm <storm@cua.dk>
660
661 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
662 (get_next_display_element, next_element_from_string)
663 (next_element_from_ellipsis, next_element_from_buffer): Use it.
664
28545f7c
AS
6652008-03-08 Andreas Schwab <schwab@suse.de>
666
667 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
668
c960bff8
JR
6692008-03-06 Jason Rumney <jasonr@gnu.org>
670
290afd83
JB
671 * w32font.c (w32_registry): Take font_type argument. Use ANSI
672 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
673 font_type is truetype.
674 (w32font_coverage_ok): New function.
675 (add_font_entity_to_list): Use it to filter unsuitable fonts.
676
87b8ce92
KH
6772008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
678
679 * lread.c (Fread_char): Resolve modifiers.
680 (Fread_char_exclusive): Likewise.
681
682 * character.c (char_resolve_modifier_mask): New function.
683 (char_string): Use char_resolve_modifier_mask.
684 (Fchar_resolve_modifiers): New function.
685 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
686 function.
687
cefd56f6
JR
6882008-03-04 Jason Rumney <jasonr@gnu.org>
689
690 * makefile.w32-in: Always include w32font.c in the build.
691 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
692
03bd3c1f
AS
6932008-03-04 Andreas Schwab <schwab@suse.de>
694
695 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
696 (versionclean): Likewise.
697
6f69e89b
JB
6982008-03-04 Juanma Barranquero <lekktu@gmail.com>
699
700 * .cvsignore: Add oo.
701
f4a3cc44
AS
7022008-03-03 Andreas Schwab <schwab@suse.de>
703
704 * coding.c (decode_coding_object): Inhibit gap shrinking while
705 decoding in place.
706
73f838ad
DN
7072008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
708
709 * w32term.c: Remove unused include "gnu.h".
6f69e89b 710 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
711
712 * gnu.h: Rename to ...
713 * emacs-icon.h: ... this.
714 * xterm.c: Use emacs-icon.h instead of gnu.h.
715 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
716
ce9c1f06
JB
7172008-03-03 Juanma Barranquero <lekktu@gmail.com>
718
719 * w32font.c: Include math.h.
720
34fd2d28
JR
7212008-03-03 Jason Rumney <jasonr@gnu.org>
722
54efdcd1
JR
723 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
724 Compute options separately.
725 (w32font_open_internal): Set glyph_idx before caching metrics.
726
ce9c1f06
JB
727 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
728 Define if system headers don't.
729 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
730 (w32font_encode_char): Don't declare here.
731
732 * w32font.c (Quniscribe, QCformat): New symbols.
733 (syms_of_w32font): Define them.
734 (w32font_has_char): Indicate uncertainty.
ce9c1f06 735 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 736 (recompute_cached_metrics): New function.
ce9c1f06
JB
737 (w32font_open_internal): Use it. Set font to use glyph points
738 initially. Set format based on type of font.
34fd2d28 739 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
740 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
741 on it. Set format based on information available here.
34fd2d28
JR
742 (add_font_entity_to_list): Identify backend based on opentype_only.
743
14daee73
AS
7442008-03-02 Andreas Schwab <schwab@suse.de>
745
f907fb2e
AS
746 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
747
ce9c1f06
JB
748 * coding.c (decode_coding_big5, produce_chars):
749 Fix typos in last change.
14daee73 750
c9cc6462
DN
7512008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
752
753 * gnu.h: New icon.
754
119852e7
KH
7552008-03-02 Kenichi Handa <handa@m17n.org>
756
757 * coding.c (decode_coding_utf_8): When eol-type of CODING is
758 `dos', don't decode '\r' if that is the last in the source.
759 (decode_coding_utf_16, decode_coding_emacs_mule)
760 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
761 (decode_coding_raw_text, decode_coding_charset): Likewise.
762 (produce_chars): Don't decode EOL here. Use EMACS_INT.
763
a823468b
JR
7642008-03-01 Jason Rumney <jasonr@gnu.org>
765
766 * w32font.c (w32font_full_name): Report point size for scalable fonts.
767
4ddc7e30
KS
7682008-03-01 Kim F. Storm <storm@cua.dk>
769
770 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
771
67997c79
JR
7722008-03-01 Jason Rumney <jasonr@gnu.org>
773
774 * w32font.c (w32font_full_name): New function.
775 (w32font_open_internal): Use it.
776
3f4e9c35
KS
7772008-03-01 Kim F. Storm <storm@cua.dk>
778
779 * dispnew.c (line_draw_cost): Fix invalid glyph check.
780
f3b9e479
JR
7812008-03-01 Jason Rumney <jasonr@gnu.org>
782
783 * font.c (font_unparse_fcname): Increase len when style is a symbol.
784
880820fe 7852008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
786
787 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
788 xg_frame_resized when the event is for the edit widget.
789
790 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
791
792 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
793 set_char_size.
794 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
795 operations on widgets here. Just set frame size if needed.
796 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
797 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
798 (x_wm_set_size_hint): Set size hints on the edit widget only, not
799 the whole frame.
800 (xg_create_tool_bar): Move attachement of the tool bar to
801 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
802 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
803
6c8acaa1
JR
8042008-03-01 Jason Rumney <jasonr@gnu.org>
805
806 * w32fns.c (w32_msg_pump): Disable debug code.
807
51fb064b 8082008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 809
51fb064b 810 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 811
60221a33
CY
8122008-02-29 Chong Yidong <cyd@stupidchicken.com>
813
814 * xdisp.c (next_overlay_string): Don't set
815 overlay_strings_at_end_processed_p if we're currently reading from
816 a display string.
817
10cbc34f
SM
8182008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
819
820 * xdisp.c (get_overlay_strings_1): Fix typo.
821
73c0054e
CY
8222008-02-29 Chong Yidong <cyd@stupidchicken.com>
823
824 * xdisp.c (get_overlay_strings_1): Add missing argument type.
825
ec1c4354
KH
8262008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
827
55082642
KH
828 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
829
ec1c4354
KH
830 * xdisp.c (display_mode_element): Cancel the previous change.
831 (decode_mode_spec): Likewise.
ee548a94
KH
832 (handle_auto_composed_prop): Don't make composition if it->string
833 is a string.
ec1c4354 834
b6d898a2
KS
8352008-02-27 Kim F. Storm <storm@cua.dk>
836
837 * lisp.h (GLYPH): Change type from int to struct with separate char
838 and face_id members.
839 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
840 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
841 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
842 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
843 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
844 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
845 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
846 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
847 handle new Lisp glyph code encoding, either an integer or a cons.
848
849 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
850 (GLYPH_ALIAS): Delete.
851 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
852 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
853 (GLYPH_FROM_CHAR): Replace macro by ...
854 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
855
856 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
857 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
858 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
859 (GLYPH_INVALID_P): New macro.
860 (spec_glyph_lookup_face): Update prototype.
861
862 * dispnew.c (line_draw_cost): Adapt to new glyph type.
863 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
864 new glyph code encoding.
865 (spec_glyph_lookup_face): No return value; update passed glyph instead.
866 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
867
868 * xdisp.c (get_next_display_element, next_element_from_display_vector):
869 Adapt to new glyph type and new glyph code encoding.
870
871 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
872
873 * indent.c (current_column, current_column_1, Fmove_to_column)
874 (compute_motion): Adapt to new glyph code encoding.
875
876 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
877
af2080a2
CY
8782008-02-27 Chong Yidong <cyd@stupidchicken.com>
879
880 * process.c (wait_reading_process_output): Check for window
881 changes caused by timers.
880820fe 882 Suggested by Johan Bockgård.
af2080a2 883
253ed25e
GM
8842008-02-27 Glenn Morris <rgm@gnu.org>
885
886 * emacs.c (USAGE1): Add `--disable-font-backend'.
887
18a9f8d9
SM
8882008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
889
890 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
891 is made to the buffer.
892
0f8b27ea
SM
8932008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
894
895 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
896 (face_at_string_position):
897 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
898 (face_at_string_position):
899 * xdisp.c (display_string, next_overlay_change):
900 * buffer.h (overlays_at):
901 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
902 Update callers.
903
4e7c53ca
CY
9042008-02-26 Chong Yidong <cyd@stupidchicken.com>
905
906 * editfns.c (Fformat): Doc fix.
907
51c01100
JB
9082008-02-26 Juanma Barranquero <lekktu@gmail.com>
909
910 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
911 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
912 (Ffont_otf_alternates, Fquery_font): Doc fixes.
913
13cda5f9
SM
9142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
915
916 * buffer.c (Fbuffer_swap_text): New function.
917 (syms_of_buffer): Defsubr it.
918
8018d430
CY
9192008-02-25 Chong Yidong <cyd@stupidchicken.com>
920
921 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
922
9bde1a21
JR
9232008-02-25 Jason Rumney <jasonr@gnu.org>
924
925 * w32font.c (w32font_draw): Draw one character at a time when padding.
926
eeca6f6f
SM
9272008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
928
929 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
930 Handle a nil arg. Use run_window_configuration_change_hook.
931 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
932 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
933 Use run_window_configuration_change_hook.
934
ec1c4354
KH
9352008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
936
937 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
938 1-pixel width.
939
ae185452
KH
9402008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
941
942 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
943 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
944 if the glyph in the font is zero pixel with.
945
946 * dispextern.h (struct glyph_string): New member padding_p.
947
948 * w32font.c (w32font_draw): Pay attention to s->padding_p.
949
950 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
951
952 * xfont.c (xfont_draw): Pay attention to s->padding_p.
953
954 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
955
eeca6f6f 956 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 957
ffe832ea 9582008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 959
ffe832ea 960 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 961
06045130
SM
9622008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
963
964 Allow fine-grained image-cache flushing.
965 * dispextern.h (struct image): Add `dependencies' field.
966 (clear_image_caches): Change arg to Lisp_Object.
967 * image.c (make_image): Initialize `dependencies' field.
968 (clear_image_cache): Change arg to allow fine-grained flushing.
969 Perform the flush even if image-cache-eviction-delay is nil.
970 (clear_image_caches): Change arg to Lisp_Object.
971 (Fclear_image_cache): Expand meaning of the argument.
972 (mark_image): Mark `dependencies' field.
973 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
974 (lface_hash): Use XHASH rather than XFASTINT.
975 (face_at_buffer_position): Fix int -> EMACS_INT position.
976 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
977 (select_frame_for_redisplay): Remove code duplication.
978 (redisplay_internal): Adapt arg to call to clear_image_caches.
979
9d2818d6
DN
9802008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
981
982 * s/vms4-0.h:
983 * s/vms4-2.h:
984 * s/vms4-4.h:
985 * s/vms5-5.h: Remove, unused.
986
987 * s/irix5-2.h:
988 * s/irix6-0.h:
989 * s/riscos5.h:
990 * s/mach-bsd4-3.h:
991 * m/mips4.h: Remove files for obsolete systems
992
993 * Makefile.in:
994 * filelock.c:
995 * unexmips.c:
996 * m/hp9000s300.h:
997 * m/iris4d.h:
998 * s/aix3-1.h:
999 * s/hpux.h:
1000 * s/msdos.h:
1001 * s/usg5-0.h:
1002 * s/usg5-2-2.h:
1003 * s/usg5-2.h:
1004 * s/usg5-3.h: Remove references to obsolete variables.
1005
1006 * s/irix5-0.h: Remove, move all the contents ...
1007 * s/irix6-5.h: ... here. Simplify.
1008 * config.in: Regenerate.
1009
2a36efcf
JR
10102008-02-24 Jason Rumney <jasonr@gnu.org>
1011
c5ad7a3d 1012 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
1013 manually when cleartype is in use.
1014 (x_draw_glyph_string_foreground): Draw text transparently when
1015 cleartype is in use.
1016
2a36efcf
JR
1017 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
1018 a font into it unless we have to.
1019
b03f96dc 10202008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 1021
b03f96dc
MB
1022 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
1023 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 1024
b03f96dc 10252008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 1026
b03f96dc 1027 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 1028
b03f96dc 10292008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 1030
b03f96dc 1031 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 1032
b03f96dc 10332008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 1034
b03f96dc 1035 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 1036
d5958163
CY
10372008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
1038
1039 * xterm.c (x_set_offset): Don't change the gravity if
1040 CHANGE_GRAVITY is -1.
1041
9997701e
CY
10422008-02-23 Chong Yidong <cyd@stupidchicken.com>
1043
1044 * fileio.c (auto_save_error_occurred): New var.
1045 (auto_save_error): Set it.
1046 (Fdo_auto_save): Don't overwrite the error message if an auto-save
1047 error occurred.
1048
9d95a291
EZ
10492008-02-23 Eli Zaretskii <eliz@gnu.org>
1050
1051 * w32.c (globals_of_w32): Add initializations for
1052 g_b_init_get_sid_sub_authority and
1053 g_b_init_get_sid_sub_authority_count.
1054
43d1af23
SM
10552008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
1056
43a1d19b
SM
1057 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
1058 (font_parse_xlfd): Use them for sanity check.
608c3307 1059 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 1060
354884c4
SM
1061 Consolidate the image_cache to the terminal struct.
1062 * termhooks.h (P_): Remove redundant def.
1063 (struct terminal): New field `image_cache'.
1064 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
1065 of FRAME_X_IMAGE_CACHE.
1066 * xterm.h (struct x_display_info): Remove image_cache field.
1067 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
1068 * w32term.h (struct w32_display_info): Remove image_cache field.
1069 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
1070 * macterm.h (struct mac_display_info): Remove image_cache field.
1071 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
1072 * xterm.c (x_term_init):
1073 * w32term.c (w32_term_init):
1074 * macterm.c (mac_term_init): Set the image_cache in the terminal.
1075 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
1076 Remove declarations.
1077 (clear_image_caches, mark_image_cache): New declarations.
1078 * xfaces.c (clear_face_cache):
1079 * xdisp.c (redisplay_internal): Use clear_image_caches.
1080 * image.c (clear_image_cache): Don't check that a frame is on
1081 a window-system before checking if it shares the same cache.
1082 (clear_image_caches): New function.
1083 (Fclear_image_cache): Use it.
1084 (mark_image): Move from allo.c.
1085 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
1086 * alloc.c (mark_image, mark_image_cache): Move to image.c.
1087 (mark_object): Don't call mark_image_cache for frames.
1088 (mark_terminals): Call mark_image_cache.
1089
c2e42690
SM
1090 * lisp.h (Fdelete_terminal): Declare.
1091
43d1af23
SM
1092 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
1093 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
1094 wrong_type_argument.
1095
cc8d1311
KH
10962008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
1097
1098 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 1099 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 1100
6bd92640
SM
11012008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
1102
1103 * xterm.c (x_connection_closed): Consolidate identical tests.
1104 (x_delete_terminal): Don't crash if called via x_connection_closed.
1105
a73b5627
KH
11062008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
1107
1108 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 1109 (display_mode_element): Adjust for the above change.
a73b5627 1110
1b511542
SM
11112008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
1112
1113 * callint.c (Fcall_interactively): Use AREF.
1114
81aefea4
SM
11152008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1116
1117 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
1118
880820fe 11192008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
1120
1121 * xfns.c (Fx_show_tip): Set string to " " if empty.
1122
a2b84f35
DN
11232008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
1124
1125 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
1126 with Qt.
1127
43c0454d
KH
11282008-02-17 Kenichi Handa <handa@m17n.org>
1129
1130 * ftfont.c (ftfont_shape): Return Lispy number.
1131
1132 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
1133 for GCs.
1134 (Finternal_set_font_selection_order): Call font_update_sort_order
1135 only when enable_font_backend is set.
1136 (realize_x_face): Set face->font_info to that of default face only
1137 when enable_font_backend is set.
1138
1139 * xdisp.c (handle_composition_prop): Set it->c to the fist
1140 characte of the composed region.
1141 (fill_composite_glyph_string): Set base_face->font_info to
1142 s->font_info. Get a face for ascii from base_face->ascii_face.
1143 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
1144 with a face already decided.
1145 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
1146 non-negative.
978bef9a
JB
1147 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
1148 call font_prepare_composition unconditionally.
43c0454d 1149
978bef9a 1150 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
1151
1152 * xterm.h (struct x_display_info): New member font.
1153
1154 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
1155 (x_set_mouse_face_gc, x_new_font): Likewise.
1156 (x_term_init): Setup display_info->font.
1157 (x_delete_terminal): Free display_info->font.
1158
1159 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
1160
1161 * ftxfont.c (ftxfont_default_fid): Delete it.
1162 (ftxfont_open): Set xfont->fid to 0.
978bef9a 1163 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
1164 font-driver.
1165
1166 * xftfont.c (xftfont_default_fid): Delete it.
1167 (xftfont_open): Set xfont->fid to 0.
1168
1169 * fontset.c (FONTSET_OBJLIST): New macro.
1170 (fontset_find_font): Update font-object list of the fontset.
1171 (free_realized_fontset): New function.
1172 (free_face_fontset): Call free_realized_fontset.
1173 (Ffont_info): Call font_close_object only when enable_font_backend
1174 is set.
1175
1176 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
1177 [HAVE_NTGUI]: Include w32term.h.
1178 [MAC_OS]: Include macterm.ch.
1179 (font_otf_ValueRecord): Use make_number.
1180 (font_finish_cache): Fix handling of reference count.
1181 (font_clear_cache): Update num_fonts.
1182 (font_open_entity): Update smallest_char_width and
1183 smallest_font_height of the frame.
1184 (font_close_object): Update num_fonts.
1185 (Fclear_font_cache): Fix finding the target cache data.
1186
be617367
GM
11872008-02-16 Glenn Morris <rgm@gnu.org>
1188
1189 * fontset.c (Finternal_char_font): Fix compilation warning.
1190
2930d117
EZ
11912008-02-16 Eli Zaretskii <eliz@gnu.org>
1192
634d3003
EZ
1193 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
1194 instead of char arrays. Enlarge the size of array passed to
1195 get_token_information.
1196
2930d117
EZ
1197 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
1198 warnings.
1199
79214046
DN
12002008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
1201
1202 * .gdbinit: Don't set `args', it breaks gdb --args.
1203
7f5d2c72
SM
12042008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
1205
1206 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
1207 within a narrowed buffer.
1208
6edacc43
KH
12092008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
1210
b270d6af
JB
1211 * coding.c (decode_coding_object, encode_coding_object):
1212 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 1213
174105f7
SM
12142008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
1215
b270d6af
JB
1216 * coding.c (coding_set_destination): Use BEG_BYTE rather than
1217 hardcoding 1.
13818c30
SM
1218 (detect_coding_system):
1219 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
1220 (string_char_to_byte, string_byte_to_char, insert_from_gap):
1221 * insdel.c (insert_from_gap):
1222 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
1223 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
1224 (string_to_multibyte):
1225 * character.c (chars_in_text, multibyte_chars_in_text):
1226 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
1227
f1c99628
SM
1228 * character.h (FETCH_STRING_CHAR_ADVANCE)
1229 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
1230 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
1231 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
1232
7927d8e3
SM
1233 * casefiddle.c (casify_region): Only call after-change and composition
1234 functions on the part of the region that was changed.
1235
adf6a429 1236 * keyboard.c (read_avail_input):
174105f7
SM
1237 * frame.c (Fdelete_frame): Call Fdelete_terminal.
1238
3ee24aec
SM
12392008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1240
1241 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
1242 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
1243
4ed4b975
JB
12442008-02-11 Juanma Barranquero <lekktu@gmail.com>
1245
1246 * w32menu.c (push_submenu_start, push_submenu_end)
1247 (push_left_right_boundary, push_menu_pane, push_menu_item):
1248 * keyboard.c (read_key_sequence): Don't pass args with side effects
1249 to AREF, it fails when compiling with -DENABLE_CHECKING.
1250
79e3bfb8
KH
12512008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
1252
4ed4b975
JB
1253 * Makefile.in (${lispsource}international/charprop.el):
1254 Delete this target.
6e76043f 1255
79e3bfb8
KH
1256 * search.c (boyer_moore): Fix incorrect synching of the trunk and
1257 emacs-unicode-2.
1258
5b8de9c5
SM
12592008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
1260
1261 * terminal.c (Fdelete_terminal): Clean up the `force' path.
1262
eac1939a
SM
12632008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
1264
c53956fe
SM
1265 * frame.c (Qnoelisp): New symbol.
1266 (syms_of_frame): Initialize it.
1267 (Fdelete_frame): Use it to distinguish a mere `force' passed from
1268 someharmles Elisp code, from a strong `force' from x_connection_closed.
1269 * frame.h (Qnoelisp): Declare.
1270 * xterm.c (x_connection_closed): Pass `noelisp'.
1271
eac1939a
SM
1272 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
1273 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
1274 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
1275 rather than `int' for the type of `type'.
1276
13f6772b
DN
12772008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
1278
1279 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
1280
1281 * Makefile.in (GNUC): Remove support for gcc-1.x.
1282
e8455367
RS
12832008-02-10 Richard Stallman <rms@gnu.org>
1284
1285 * lisp.h (ASET): Use AREF, not ASLOT.
1286
4b75ffab
SM
12872008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
1288
1289 * lisp.h (ASET): Check bounds.
1290
d224e8c2
GM
12912008-02-10 Glenn Morris <rgm@gnu.org>
1292
1293 * buffer.c (mode-name): Doc fix.
1294
4624371d
DN
12952008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
1296
290afd83
JB
1297 * Makefile.in:
1298 * emacs.c:
1299 * gmalloc.c:
1300 * keyboard.c:
1301 * lisp.h:
1302 * m/ibm370aix.h:
1303 * process.c:
1304 * regex.c:
1305 * s/hpux.h:
1306 * sysdep.c:
1307 * sysselect.h:
1308 * systty.h:
1309 * unexec.c:
1310 * w32term.c:
1311 * xsmfns.c:
1312 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
1313
1314 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
1315
1316 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
1317 nothing else needs it anymore.
1318
274ec34b
EZ
13192008-02-09 Eli Zaretskii <eliz@gnu.org>
1320
1321 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
1322 instead of unibyte_char_to_multibyte.
1323
deeaffe1
DN
13242008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
1325
1326 * s/gnu-linux.h: Remove commented out code.
1327
4ed4b975 1328 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
1329
1330 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 1331 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
deeaffe1
DN
1332 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1):
1333 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
1334 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
1335
68b587a6
SM
13362008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
1337
9141ca5e
SM
1338 * keymap.c (Fkey_description): Move side effect outside of macro call.
1339
dfae5f9a 1340 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
1341 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
1342
ff7a2223
SM
1343 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
1344 (syms_of_fontset): Use ASET.
1345
68b587a6
SM
1346 * fns.c (concat): Move side effect outside of macro call.
1347 (hash_clear): Use ASET.
1348
a31787b1
RS
13492008-02-08 Richard Stallman <rms@gnu.org>
1350
1351 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
1352 If FORCE, and frame has a surrogate minibuffer for another frame,
1353 delete the other frame first.
1354
987be29b 13552008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
1356
1357 * xterm.c (x_detect_focus_change): Handle embed client message.
1358 (handle_one_xevent): Ditto.
1359 (handle_one_xevent): If embedded and we get a button press/release,
1360 request focus.
1361 (xembed_set_info, xembed_send_message): New functions.
1362 (x_make_frame_visible): Call xembed_set_info if embedded.
1363 (x_make_frame_invisible): Call xembed_set_info if embedded.
1364 (x_term_init): Initialize Xatom_XEMBED.
1365 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
1366 (x_iconify_frame): Ditto.
1367
1368 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
1369 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
1370 (enum xembed_modifier, enum xembed_accelerator): New.
1371 (xembed_set_info, xembed_send_message): Declare.
1372 (FRAME_X_EMBEDDED_P): New.
1373
1374 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
1375 gtk_plug_new.
1376
1377 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
1378 window ID of a frame.
1379 (x_window): Reparent frame if embedded.
1380 (Fx_create_frame): Don't set border width if embedded.
1381
1382 * emacs.c (USAGE3): Add --parent-id
1383 (standard_args): Ditto.
1384
880820fe 13852008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
1386
1387 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
1388
92413ef3
JD
13892008-02-07 Jim Meyering <meyering@redhat.com>
1390
6f69e89b 1391 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
1392 The latter provokes a warning from gcc about the empty else, when
1393 followed by ";". Also, without that trailing semicolon, it would
1394 silently swallow up any following statement.
1395 * syntax.h (SETUP_SYNTAX_TABLE):
1396 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
1397 * buffer.h (DECODE_POSITION): Likewise.
1398 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
1399 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
1400 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
1401 (FETCH_CHAR_ADVANCE): Likewise.
1402 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 1403
03fa5713
GM
14042008-02-07 Jim Meyering <meyering@redhat.com>
1405
1406 * lread.c [lint]: Don't include <sys/inode.h>.
1407
3ae565b3
SM
14082008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
1409
1410 * xselect.c (x_handle_dnd_message):
1411 * xmenu.c (digest_single_submenu, xmenu_show):
1412 * xdisp.c (with_echo_area_buffer_unwind_data)
1413 (format_mode_line_unwind_data, unwind_format_mode_line)
1414 (display_menu_bar):
1415 * eval.c (Ffetch_bytecode):
1416 * doc.c (store_function_docstring):
1417 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
1418 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
1419 * buffer.c (add_overlay_mod_hooklist): Use ASET.
1420
146b6e55
KH
14212008-02-07 Kenichi Handa <handa@m17n.org>
1422
1423 * ftxfont.c (ftxfont_open): Don't set
1424 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
1425
1426 * ftfont.c (ftfont_open): Fix previous change.
1427
46a923ac
JR
14282008-02-06 Jason Rumney <jasonr@gnu.org>
1429
1430 * w32font.c (w32font_text_extents): Fill in lbearing metric.
1431 Use cached metrics for ASCII characters.
3ae565b3
SM
1432 (w32font_open_internal): Don't set font's owning_frame.
1433 Cache metrics for ASCII characters.
46a923ac
JR
1434
1435 * w32font.h (struct w32font_info): Add ascii_metrics.
1436 Remove owning_frame.
1437
da7d7c21
KH
14382008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
1439
1440 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
1441 to negative value.
1442
1443 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
1444
3ae565b3 1445 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
1446
1447 * charset.c (syms_of_charset): Set QCtest and Qeq.
1448
c62c8ddb
SM
14492008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
1450
ca319910
SM
1451 * process.c (Fstart_process):
1452 * callproc.c (Fcall_process): Handle the case where
1453 Funhandled_file_name_directory returns nil.
1454
76860cbb
SM
1455 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
1456 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
1457 * font.c (check_gstring): Use them and AREF to access the vector before
1458 we know it's really a gstring.
1459 (Ffont_shape_text): Fix typo.
1460 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 1461
15139d67
SM
1462 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
1463 Declare.
1464
c62c8ddb
SM
1465 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
1466
04b65d2b
JR
14672008-02-05 Jason Rumney <jasonr@gnu.org>
1468
1469 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
1470 Set smallest_font_height and smallest_char_width in display info.
1471
fccaebfd
KH
14722008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
1473
1474 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
1475
e7d7fd8c
MB
14762008-02-05 Miles Bader <miles@gnu.org>
1477
1478 * xfaces.c (get_lface_attributes, merge_named_face)
1479 (lookup_named_face, lookup_derived_face, realize_named_face):
1480 Revert 2008-02-01 change by cyd@stupidchicken.com.
1481
3d4448a8
KH
14822008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
1483
1484 * fontset.c (Ffontset_info): Handle the case of inhibitting the
1485 fallback fonts.
15139d67 1486 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 1487
5ace1ec1
JR
14882008-02-04 Jason Rumney <jasonr@gnu.org>
1489
1490 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
1491 set full_name.
e3a77b22 1492 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 1493
ffe42183
JR
14942008-02-03 Jason Rumney <jasonr@gnu.org>
1495
1496 * makefile.w32-in (OBJ1): Include font.o here.
1497 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
1498
526dc3b3
JR
14992008-02-02 Jason Rumney <jasonr@gnu.org>
1500
a0fece35 1501 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 1502
af805c82
JR
15032008-02-01 Jason Rumney <jasonr@gnu.org>
1504
1505 * s/cygwin.h: Define VIRT_ADDR_VARIES.
1506
1507 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
1508
7f6519c5
AS
15092008-02-01 Andreas Schwab <schwab@suse.de>
1510
1f45f627 1511 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 1512 ../lisp/language/myanmar.el.
7f6519c5 1513
26f8aa27
CY
15142008-02-01 Chong Yidong <cyd@stupidchicken.com>
1515
1f45f627 1516 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
1517 (merge_named_face, lookup_named_face, lookup_derived_face)
1518 (realize_named_face): Call lface_from_face_name directly, and use
1519 the fact that merge_face_vectors does not alter its FROM argument.
1520
73acf815 15212008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
1522
1523 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 1524 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 1525
73acf815 15262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1527
1528 * fontset.c (reorder_font_vector): Exclude nil elements from the
1529 font group. Don't try multiple fonts.
15139d67 1530 (fontset_font): Adjust for the above change.
aca7a3d2
MB
1531 (Finternal_char_font): Return nil if the found font doesn't
1532 contain the character ch.
1533
4c4475a8 1534 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 1535
73acf815 15362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1537
1538 * font.h (FONTP): Make it return 1 also for a font-object.
1539
1540 * .gdbinit (xfontset): New function.
1541
1542 * font.c (font_find_for_lface): Check if the character C is
1543 supported or not only for the first font.
1544
1545 * fontset.c (reorder_font_vector): Fix typo.
1546 (fontset_find_font): Don't add a font-spec specifying a script.
1547 Use 0 (not Qt) for the indication of empty font-group. Change the
1548 format of RFONT-DEF. Return Qt if no font in the font-group
1549 support the character.
15139d67 1550 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 1551 found the character, remember that.
15139d67 1552 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
1553 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
1554 no font for the target.
15139d67 1555 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 1556
73acf815 15572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1558
1559 * font.c (font_load_for_face): Handle the case that the font in
1560 face->lface is a string.
1561
73acf815 15622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 1563
1f45f627 1564 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 1565
73acf815 15662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1567
1568 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
1569 Fix previous change. If the frame is not on a window system,
1570 signal an error.
1571
73acf815 15722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 1573
4c4475a8
GM
1574 * coding.c (decode_coding_object, encode_coding_object): Adjust
1575 marker positions after conversion.
aca7a3d2
MB
1576
1577 * lisp.h (struct Lisp_Marker): New member need_adjustment.
1578
73acf815 15792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1580
1581 * font.c (font_find_for_lface): Fix the handling of the return
1582 value of font_has_char.
1583 (Ffont_shape_text): Fix previous change.
1584
1585 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
1586 (fontset_ref_and_range): Delete it.
1587 (fontset_find_font): Call char_table_ref_and_range instead of
1588 FONTSET_REF_AND_RANGE.
1589 (make_fontset): Don't setup font groups of Latin here.
1590 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
1591 (new_fontset_from_font): Make the specified font the default for
1592 all Latin characters.
1593
73acf815 15942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1595
1596 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
1597 is on a window system before accessing the fontset of the frame.
1598
73acf815 15992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 1600
1f45f627 1601 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
1602
1603 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
1604 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
1605
1606 * font.c (Ffont_shape_text): If the font driver doesn't have a
1607 shaper function, make zero-width glyphs to have at least one-pixel
1608 width. Fix setting of `to' field of glyphs.
1609
73acf815 16102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1611
1612 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
1613 glyphs.
1614
1f45f627 1615 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 1616
73acf815 16172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
1618
1619 * composite.c (syms_of_composite): Fix docstring of
1620 auto-composition-function.
1621
1622 * font.h (LGLYPH_SIZE): New macro.
1623
1624 * font.c (Ffont_fill_gstring): Stop filling when a character not
1625 supported by the font is found.
1626 (Ffont_shape_text): When a shape callback function returns nil,
1627 try at most two more times with larger gstring.
15139d67 1628 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
1629
1630 * xdisp.c (handle_auto_composed_prop): Change the argument to
1631 auto-composition-function.
1632
1633 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
1634 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
1635 Lispy glyph and store it in the lgstring.
1636
1637 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
1638
1639 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
1640
73acf815 16412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1642
1643 * font.c (Ffont_shape_text): Avoid unnecessary composition.
1644
1645 * fontset.c (Vfont_encoding_charset_alist): New variable.
1646 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
1647 (reorder_font_vector, fontset_find_font): Optimize for the case of
1648 no need of reordering.
aca7a3d2
MB
1649 (face_for_char): Map the charset property by
1650 Vfont_encoding_charset_alist.
1651
73acf815 16522008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
1653
1654 * w32font.c (logfonts_match): Don't check adstyle here.
1655 (font_matches_spec): Check here against physical font instead.
1656 (add_font_entity_to_list): Avoid some substitutions.
1657
1658 * font.c (font_parse_fcname): Default weight and slant to normal.
1659 (font_score): Prefer normal fonts if weight or slant unspecified.
1660 (font_score) [WINDOWSNT]: Scale weight difference down to closer
1661 match freetype scores.
1662
73acf815 16632008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
1664
1665 * w32font.c (w32font_text_extents): Don't use the frame stored in the
1666 font, as it may have been deleted.
1667 (w32_enumfont_pattern_entity): Map generic family to adstyle using
1668 most common hyphenless variation.
1669 (logfonts_match): Check generic family.
1670 (font_matches_spec): Don't check generic family here.
1671 (fill_in_logfont): Set generic family based on adstyle.
1672
1673 * w32font.h (w32font_get_cache): Update declaration.
1674
73acf815 16752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1676
1677 * ftfont.c (ftfont_get_cache): Adjust the argument type.
1678
15139d67
SM
1679 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
1680 If none of the new drivers are available, call font_update_drviers
aca7a3d2
MB
1681 with the old drivers.
1682
1683 * w32font.c (w32font_get_cache): Adjust the argument type.
1684
1685 * xfont.c (xfont_get_cache): Adjust the argument type.
1686
1687 * font.h (struct font_driver): Change argument type of get_cache.
1688
1689 * xftfont.c (xftfont_start_for_frame): Delete prototype.
1690
1691 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 1692 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 1693 (font_clear_cache): New function.
4c4475a8 1694 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 1695 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
1696
1697 * fontset.c (fontset_find_font): Fix previous change.
1698
73acf815 16992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1700
1701 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
1702 dpyinfo->font_table.
1703 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 1704 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
1705
1706 * font.c (font_at): Handle the case that the arg C is negative.
1707 Handle the unibyte case.
1708 (Ffont_at): Call font_at with the arg C -1.
1709
1710 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
1711 the position here, and call font_at with the arg C -1.
1712 Don't check the range of the existing composition at the point.
aca7a3d2 1713
73acf815 17142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 1715
15139d67 1716 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 1717 Change caller.
4c4475a8
GM
1718 (load_font_get_repertory, fontset_find_font): Assume that
1719 font_spec is always a font-spec object.
aca7a3d2
MB
1720 (Fset_fontset_font): Always store a font-spec object in a fontset.
1721
1722 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
1723 instead of get_property_and_range.
1724
73acf815 17252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1726
1727 * xftfont.c (struct xftfont_info): Delete the member ft_face.
1728 (xftfont_open): Don't keep locking face.
1729 (xftfont_close): Don't unlock face.
4c4475a8 1730 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
1731
1732 * fontset.c (fontset_find_font): Don't prefer a font of
1733 supplementary charset.
1734
73acf815 17352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 1736
1f45f627
GM
1737 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
1738 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
1739 (OTF_TAG_STR): Terminate by '\0'.
1740 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
1741 listing to the script specified in that property. Fix arg to
1742 OTF_check_features.
1743
73acf815 17442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
1745
1746 * w32font.h: New file.
1747
1748 * w32font.c: Include it.
1749 (struct w32font_info): Add owning_frame field. Move to w32font.h.
1750 (w32font_open): Set owning_frame.
1751 (w32font_text_extents): Use owning_frame.
1752 (struct font_callback_data): Add opentype_only field.
1753 (add_font_entity_to_list): Use it to filter fonts.
1754 Don't check against full name.
1755 (w32font_list_internal): New function.
1756 (w32font_list): Use it.
1757 (w32font_match_internal): New function.
1758 (w32font_match): Use it.
1759 (w32font_open_internal): New function.
1760 (w32font_open): Use it.
1761 (w32font_get_cache, w32font_close, w32font_has_char)
1762 (w32font_encode_char, w32font_text_extents, w32font_draw):
1763 Make non-static.
1764
1765 * makefile.w32-in (w32font.o): Depend on w32font.h.
1766
73acf815 17672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1768
1769 * charset.c (Fdefine_charset_internal): Record a supplementary
1770 charset at the tail of Vcharset_order_list.
1771
1772 * font.c (Ffont_shape_text): Fix the return value.
1773
1774 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
1775
1776 * xdisp.c (handle_auto_composed_prop): Fix previous change.
1777
73acf815 17782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1779
1780 * ftfont.c (struct OpenTypeSpec): New struct.
1781 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
1782 (ftfont_get_open_type_spec): New function.
1783 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
1784
15139d67 1785 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 1786
73acf815 17872008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
1788
1789 * w32font.c (add_font_entity_to_list): Compare only the beginning
1790 of full name.
1791
73acf815 17922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 1793
15139d67
SM
1794 * xdisp.c (handle_auto_composed_prop): Simplify the code.
1795 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 1796
73acf815 17972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
1798
1799 * font.c (font_gstring_produce): Delete it.
1800
15139d67
SM
1801 * composite.h (COMPOSITION_METHOD):
1802 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 1803
73acf815 18042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 1805
15139d67 1806 * xfont.c (Qx): Delete.
aca7a3d2
MB
1807 (syms_of_xfont): Don't initialize Qx.
1808
15139d67
SM
1809 * composite.h (enum composition_method):
1810 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 1811
73acf815 18122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1813
1814 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
1815 (choose_face_font): Accept new form of font-spec.
1816
1817 * frame.h (font_driver_list): Declare it unconditionally.
1818 (struct frame): Define members font_driver_list and font_data_list
1819 unconditionally.
1820
1821 * fontset.c: Include "font.h" unconditionally.
15139d67 1822 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
1823 (Fset_fontset_font): Accept a font-spec object.
1824
1825 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
1826 PIXEL_SIZE part a wild card.
1827
1828 * dispextern.h (struct glyph_string): Define members clip and
1829 num_clips unconditionally.
1830 (struct face): Define members font_info and extra unconditionally.
1831
1832 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
1833 ftfont_info only when HAVE_LIBOTF is defined.
1834
73acf815 18352008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
1836
1837 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
1838 and end.
1839
73acf815 18402008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
1841
1842 * w32font.c (w32font_driver): Add new fields.
1843
73acf815 18442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 1845
aca7a3d2
MB
1846 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
1847 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
1848 (LIBES): Add @M17N_FLT_CFLAGS@.
1849
1850 * composite.c (compose_text): Don't treat the new style
1851 composition specially.
1852
1853 * emacs.c (main): Call syms_of_font unconditionally.
1854
1855 * font.h (FONT_ENTITY_NOT_LOADABLE)
1856 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 1857 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 1858 (struct font_driver): New member shape.
1f45f627 1859 (font_registry_charsets): Extern it.
4c4475a8 1860 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
1861 (font_otf_capability, font_drive_otf): Delete their externs.
1862
1863 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
1864 (font_charset_alist, font_registry_charsets): Move from xfont.c
1865 and rename.
aca7a3d2
MB
1866 (font_prop_validate_otf): New function.
1867 (font_property_table): Register it for QCotf.
1868 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 1869 (font_drive_otf): Delete.
1f45f627 1870 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
1871 lispy gstring.
1872 (font_find_for_lface): New arg C.
15139d67 1873 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
1874 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
1875 lispy gstring.
aca7a3d2
MB
1876 (Ffont_shape_text): New function.
1877 (Fopen_font): If the font size is not given, use 12-pixel.
1878 (Ffont_at): New arg STRING.
15139d67
SM
1879 (syms_of_font): Initalize font_charset_alist.
1880 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
1881 conditionally.
1882
1883 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
1884 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
1885 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
1886 Adjust for the change of RFONT-DEF.
15139d67 1887 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
1888
1889 * ftfont.h: New file.
1890
1891 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
1892 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
1893 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
1894 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
1895 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 1896 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
1897 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
1898 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
1899 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1900 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.s
1901 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
1902 (otf_gstring, gstring, m17n_flt_initialized): New variables.
1903
15139d67
SM
1904 * w32term.c (x_draw_composite_glyph_string_foreground):
1905 Adjust for the change of lispy gstring.
aca7a3d2 1906
15139d67 1907 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 1908 lispy gstring. Call a function for auto-composition with the
15139d67
SM
1909 third arg it->window.
1910 (fill_composite_glyph_string): Adjust for the change of lispy string.
1911 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 1912
15139d67 1913 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
1914 font_find_for_lface.
1915
1f45f627
GM
1916 * xfont.c (x_font_charset_alist): Move to font.c and rename.
1917 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
1918 (syms_of_xfont): Don't handle x_font_charset_alist.
1919
1920 * xftfont.c: Include "ftfont.h".
15139d67 1921 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
1922 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
1923 (xftfont_close) [HAVE_LIBOTF]: Close otf.
1924 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
1925 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
1926 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 1927
15139d67 1928 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
1929 the change of lispy gstring.
1930
73acf815 19312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1932
1933 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
1934
73acf815 19352008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
1936
1937 * w32font.c (w32font_draw): Fill background manually.
1938
73acf815 19392008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
1940
1941 * font.c (Qfontp): Remove unused symbol.
1942 (QCantialias): New symbol.
1943 (syms_of_font): Define it.
1944 (font_property_table): Set a validator for QCantialias.
1945
15139d67
SM
1946 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
1947 Define if not already.
aca7a3d2
MB
1948 (QCfamily): Share with xfaces.c.
1949 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 1950 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
1951 (w32_antialias_type, lispy_antialias_type): New functions.
1952 (w32_enumfont_pattern_entity): New arg requested_font.
1953 Set antialias parameter if non-default was requested.
1954 (fill_in_logfont): Fill in lfQuality if :antialias specified.
1955
73acf815 19562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1957
1958 * lread.c (read1): Undo the previous change.
1959
73acf815 19602008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
1961
1962 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 1963 USE_FONT_BACKEND is defined.
aca7a3d2 1964
73acf815 19652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
1966
1967 * font.h (struct font_bitmap): New member bits_per_pixel.
1968 (struct font_driver): New members start_for_frame and end_for_frame.
1969 (struct font_data_list): New struct.
1970 (font_put_frame_data, font_get_frame_data): Extern them.
1971
1972 * frame.h (struct frame): New member font_data_list.
1973
1974 * font.c (font_update_drivers): Call driver->start_for_frame and
1975 driver->end_for_frame at proper timings.
1976 (font_put_frame_data, font_get_frame_data): New functions.
1977 (Ffont_spec): Add usage in the docstring.
1978
1979 * frame.c (make_frame): Initialize f->font_data_list to NULL.
1980 (Fdelete_frame): Call font_update_drivers.
1981
1982 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 1983 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
1984 (xftfont_get_xft_draw): New function.
1985 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
1986 (xftfont_end_for_frame): New function.
1987 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
1988
15139d67 1989 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 1990 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
1991 (struct ftxfont_frame_data): New struct.
1992 (ftxfont_draw_bitmap): New arg gc_fore and flush.
1993 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 1994 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
1995 (ftxfont_end_for_frame): New function.
1996 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
1997
1998 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
1999
73acf815 20002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2001
2002 * xselect.c (Vselection_coding_system)
2003 (Vnext_selection_coding_system): Delete them.
2004 (syms_of_xselect): Don't declare selection-coding-system and
2005 next-selection-coding-system. They are declared in select.el.
2006
73acf815 20072008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2008
2009 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
2010
2011 * w32fns.c: Include imm.h.
2012 (get_composition_string_fn, get_ime_context_fn): New optional
2013 system functions.
2014 (globals_of_w32fns): Load them from imm32.dll.
2015 (ignore_ime_char): New flag.
2016 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
2017 WM_IME_ENDCOMPOSITION messages.
2018
2019 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
2020 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
2021
73acf815 20222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2023
2024 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
2025 (READCHAR_REPORT_MULTIBYTE): New macro.
2026 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
2027 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
2028 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
2029 source.
2030
73acf815 20312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2032
2033 * xfaces.c (face_for_overlay_string): Call lookup_face with
2034 correct arguments (fix of synching with the trunk).
2035
73acf815 20362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2037
4c4475a8
GM
2038 * font.c (font_prop_validate_symbol, font_prop_validate_style)
2039 (font_prop_validate_non_neg, font_prop_validate_spacing):
2040 Delete argument prop_index.
15139d67
SM
2041 (font_property_table): Change arguments to validater. Change Callers.
2042 (font_lispy_object): Delete.
aca7a3d2
MB
2043 (font_at): Use font_find_object instead fo font_lispy_object.
2044
73acf815 20452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
2046
2047 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
2048 and file names.
2049
73acf815 20502008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2051
2052 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
2053 (font_matches_spec): Remove debug output.
2054 (add_font_entity_to_list): Avoid using substituted fonts.
2055
73acf815 20562008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2057
2058 * doc.c (Fsnarf_documentation):
2059 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
2060
73acf815 20612008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 2062
290afd83 2063 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
2064 HAVE_WINDOW_SYSTEM is defined.
2065
73acf815 20662008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
2067
2068 Fix up multi-tty merge.
2069
2070 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
2071 and indentation.
2072
2073 * xfaces.c (free_realized_face, clear_face_gcs):
2074 Include font_done_for_face in the input_blocked section, just in case.
2075
2076 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
2077 (get_char_face_and_encoding): Undo last change and remove the *other*
2078 duplicate definition (i.e. keep the one that's better scoped and that
2079 includes code for the font-backend).
2080
2081 * terminal.c (create_terminal): Default keyboard_coding to
2082 `no-conversion' and terminal_coding to `undecided'.
2083
2084 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
2085
2086 * fontset.c (free_realized_fontsets): Check that the table entry does
2087 contain a fontset before trying to compare it to `base'.
2088
2089 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
2090 syms_of_charset, and syms_of_coding earlier because init_window_once
2091 now needs Vcoding_system_hash_table to be setup.
2092
2093 * coding.h (default_buffer_file_coding): Remove.
2094
2095 * coding.c (default_buffer_file_coding): Remove.
2096 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
2097 than ->symbol, and use the terminal-local coding system.
2098 (syms_of_coding): Don't setup the coding-systems that are not
2099 terminal-local.
2100 (Fdefine_coding_system_internal): Use XCAR/XCDR.
2101
2102 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
2103 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
2104
2105 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
2106 in chartab.c and were re-added here by mistake.
2107 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
2108
2109 * doc.c (Fsnarf_documentation):
2110 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
2111 src to etc.
2112
2113 * ChangeLog.10: Add mistakenly removed entry.
2114
73acf815 21152008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
2116
2117 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
2118
73acf815 21192008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
2120
2121 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
2122 Add extra args to FACE_FOR_CHAR.
2123
73acf815 21242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2125
2126 * keymap.c (where_is_internal_1): If key is a cons, store the copy
2127 in sequence.
2128
4c4475a8
GM
2129 * chartab.c (map_sub_char_table, map_char_table): If the range
2130 contains just one character, call the function with that character
2131 even if the depth is not 3.
aca7a3d2 2132
73acf815 21332008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2134
2135 * w32font.c (w32font_text_extents): Calculate metrics for the
2136 whole string.
2137
73acf815 21382008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2139
2140 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
2141
73acf815 21422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2143
2144 * w32term.c (x_set_glyph_string_clipping): Use
2145 get_glyph_string_clip_rects.
4c4475a8
GM
2146 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
2147 Adjust for the change of struct glyph_string.
aca7a3d2
MB
2148
2149 * w32font.c (w32font_draw): Do clipping here.
2150
73acf815 21512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2152
1f45f627 2153 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
2154 glyph_string.
2155
2156 * xterm.c (x_set_glyph_string_clipping): Use
2157 get_glyph_string_clip_rects.
4c4475a8
GM
2158 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
2159 Adjust for the change of struct glyph_string.
aca7a3d2
MB
2160
2161 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
2162 the resulting clip(s}.
1f45f627 2163 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
2164 row->clip temporarily.
2165 (expose_window): Redraw rows overlapping the exposed area.
2166
2167 * dispextern.h (struct glyph_row): New member clip.
2168 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
2169 clip_height, new member clip, and num_clips.
2170
73acf815 21712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2172
2173 * data.c (Fchar_or_string_p): Fix docstring.
2174
73acf815 21752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2176
2177 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
2178 create a temporal XftDraw object.
2179
73acf815 21802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2181
2182 * font.c (Ffontp): Fix docstring.
2183
2184 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
2185 strong evidence of ISO-2022.
2186
73acf815 21872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2188
2189 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
2190 SYNTAX_ENTRY_FOLLOW_PARENT.
2191
73acf815 21922008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
2193
2194 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
2195 its type.
2196 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
2197 Update to the new type of weak_hash_tables and next_weak.
2198
2199 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
2200 a plain C pointer to Lisp_Hash_Table.
2201
2202 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
2203 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
2204 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
2205 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
2206 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
2207 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
2208 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
2209 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
2210 (GC_EQ): Remove since they've been identical to their non-GC_
2211 alter-egos ever since the markbit was eradicated.
2212
290afd83
JB
2213 * alloc.c:
2214 * buffer.c:
2215 * buffer.h:
2216 * data.c:
2217 * fileio.c:
2218 * filelock.c:
2219 * fns.c:
2220 * frame.h:
2221 * lisp.h:
2222 * macterm.c:
2223 * print.c:
2224 * process.c:
2225 * w32fns.c:
2226 * w32menu.c:
2227 * w32term.c:
2228 * xfns.c:
2229 * xmenu.c:
2230 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 2231
73acf815 22322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2233
2234 * chartab.c (map_sub_char_table): Make it work for the top-level
2235 char-table. Fix handling of parent char-table.
c5ad7a3d 2236 (map_char_table): Adjust for the above change.
aca7a3d2 2237
73acf815 22382008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2239
2240 * w32font.c (Qgdi): Rename from Qw32.
2241
73acf815 22422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2243
2244 * w32bdf.c (get_quoted_string): Make function static.
2245
73acf815 22462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2247
2248 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
2249 bigger ascent and descent than those of the font, use them as
2250 font's ascent and descent.
2251
73acf815 22522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2253
2254 * Makefile.in (${lispsource}international/charprop.el): Move this
2255 target within "#ifdef HAVE_UNIDATA" and "#endif".
2256
73acf815 22572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2258
2259 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
2260 (shortlisp): Add ../lisp/language/tai-viet.el.
2261
1f45f627 22622008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
2263
2264 * Makefile.in (${lispsource}international/charprop.el): Depend on
2265 temacs${EXEEXT}.
2266
73acf815 22672008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2268
2269 * w32font.c (w32font_close): Delete the GDI font object.
2270
6f69e89b 2271 * w32menu.c: Include character.h.
aca7a3d2
MB
2272
2273 * w32proc.c: Likewise.
2274
2275 * w32select.c: Likewise.
2276
6f69e89b 2277 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 2278
73acf815 22792008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2280
2281 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
2282
2283 * w32menu.c (syms_of_w32menu): Likewise.
2284
2285 * w32proc.c (syms_of_ntproc): Likewise.
2286
2287 * w32select.c (syms_of_w32select): Likewise.
2288
2289 * w32term.c (syms_of_w32term): Likewise.
2290
73acf815 22912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2292
2293 * w32font.c (w32font_draw): Delete brush after using it.
2294
73acf815 22952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2296
2297 * w32font.c (w32font_open): Don't set font_idx.
2298 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
2299 to font settings.
2300 (w32font_draw): Fill background explicitly.
2301
73acf815 23022008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2303
2304 * w32term.c (w32_initialize): Don't call w32font_initialize.
2305
2306 * w32font.c (w32font_info): Remove subranges.
2307 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
2308 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
2309 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
2310 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
2311 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
2312 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
2313 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
2314 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
2315 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
2316 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
2317 New symbols.
2318 (font_callback_data): New struct.
2319 (w32font_list, w32font_match): Use it.
2320 (w32font_open): Don't populate subranges.
2321 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
2322 (w32font_encode_char): Always return unicode code-point as-is.
2323 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
2324 GetGlyphOutline. Never look up by glyph index. Avoid looping
2325 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2
MB
2326 glyph index version.
2327 (set_fonts_frame): Remove
2328 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
2329 set frame parameter. Use backward compatible fake foundries.
2330 Save generic family in extra slot under QCfamily. Make width slot
2331 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
2332 binary subranges.
2333 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 2334 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
2335 unwanted fonts.
2336 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
2337 (w32_registry): Default to iso10646_1.
2338 (fill_in_logfont): Use dpi from extra slot. Don't bother with
2339 string font registries. Don't fill in font name if it is a generic
2340 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
2341 extra info to fill pitch, family and charset fields.
2342 (list_all_matching_fonts): Use font_callback_data struct.
2343 (unicode_range_for_char): Remove.
2344 (font_supported_scripts): New function.
2345 (w32font_initialize): Remove.
2346 (syms_of_w32font): Update which symbols are defined.
2347
73acf815 23482008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2349
2350 * font.c (font_pixel_size): Reverse assq_no_quit args.
2351
2352 * w32term.h (FONT_WIDTH): Report max width, not average.
2353 (FONT_MAX_WIDTH): Remove.
2354 (FONT_AVG_WIDTH): New macro.
2355
2356 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
2357 redefinition of FONT_WIDTH.
2358
2359 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
2360 (w32_cache_char_metrics): Use FONT_WIDTH.
2361
2362 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
2363
73acf815 23642008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2365
2366 * w32font.c (w32font_open): Make lfHeight negative.
2367
2368 * w32fns.c (x_default_font_parameter): Use new style font name.
2369 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
2370
73acf815 23712008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2372
2373 * w32font.c (QCsubranges): New symbol.
2374 (w32font_open, w32font_has_char): Get subranges from subproperty
2375 of extra.
2376 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
2377 (syms_of_w32font): Define :subranges symbol.
2378
2379 * font.c (font_put_extra): Expose externally.
2380
1f45f627 2381 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
2382
2383 * font.c (Ffont_get): Use font driver to determine otf capability.
2384 (adjust_anchor): Check if driver defines anchor_point before using.
2385
2386 * w32font.c (w32font_open): Handle size, height and pixel_size better.
2387 (w32font_draw): Use options.
2388 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
2389 Fix detection of truetype fonts.
2390 (registry_to_w32_charset): Handle charsets other than iso8859-1
2391 expressed as lisp symbols.
2392 (w32_registry): Express charset as lisp symbol.
2393 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 2394 Don't set width here. Set quality to default.
aca7a3d2
MB
2395
2396 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
2397 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
2398
2399 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
2400 Remove redundant loop and allocation.
2401
2402 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 2403 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
2404 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
2405
2406 * xdisp.c (fill_composite_glyph_string): Make the first arg to
2407 STORE_XCHARB a valid l-value.
2408
2409 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
2410 calculations for non-Truetype fonts.
2411 (x_draw_glyph_string): Sync with xterm.c.
2412 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]: Remove
2413 redundant code.
2414 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
2415
2416 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
2417 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
2418
2419 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
2420 (x_to_w32_charset, w32_to_x_charset): Expose externally.
2421
2422 * w32font.c: New file for w32 font backend.
2423
73acf815 24242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2425
2426 * term.c: Don't include "buffer.h" twice.
2427
73acf815 24282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2429
2430 * character.c (Funibyte_string): New function.
2431 (syms_of_character): Defsubr it.
2432
73acf815 24332008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
2434
2435 * w32term.c [USE_FONT_BACKEND]:
2436 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc):
2437 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly):
2438 (x_draw_glyph_string, x_draw_glyph_string_foreground):
2439 (x_draw_composite_glyph_string_foreground, x_new_fontset2):
2440 (x_free_frame_resources): Sync with xterm.c.
2441
73acf815 24422008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
2443
2444 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
2445 char-table size.
2446
73acf815 24472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2448
2449 * font.c (check_otf_features): Define it regardless of
2450 HAVE_LIBOTF.
2451
73acf815 24522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2453
2454 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
2455 font_otf_gpos, add font_drive_otf.
2456
2457 * fontset.c (fontset_find_font): Pay attention to font size
2458 specified for a font.
2459 (reorder_font_vector): Check contents of font_def.
2460
2461 * font.c (struct otf_list): Delete it.
6f69e89b 2462 (otf_list): Make it a lisp variable.
aca7a3d2 2463 (otf_open): Use lispy otf_list.
1f45f627 2464 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2
MB
2465 (check_otf_features): New function.
2466 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): New
2467 functinos.
2468 (font_drive_otf): New function merging font_otf_gsub and
2469 font_otf_gpos.
2470 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 2471 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
2472 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
2473 Ffont_otf_gpos.
2474 (syms_of_font): Staticpro otf_list. Delete defsubr of
2475 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
2476
1f45f627 2477 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
2478 font_open_for_lface.
2479
2480 * font.h (font_open_for_lface): Adjust prototype.
2481 (struct font_driver): Delete members otf_gsub and otf_gpos, add
2482 member otf_drive.
2483 (font_otf_gsub, font_otf_gpos): Delete externs.
2484 (font_drive_otf): Extern it.
2485
73acf815 24862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2487
2488 * font.c (font_at): If the window W is not on a window system,
2489 return Qnil.
2490
4c4475a8
GM
2491 * coding.c (produce_chars, encode_coding): Don't call
2492 insert_from_gap if no characters to produce.
aca7a3d2 2493
73acf815 24942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2495
2496 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
2497 Fclear_face_cache.
2498
2499 * xfaces.c (face_for_font): Check also face->font==font->font.font.
2500
73acf815 25012008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
2502
2503 * emacs.c (main): Change default value of `enable_font_backend' to 1.
2504 Parse "--disable-font-backend" option.
2505 (standard_args): Add "--disable-font-backend" option.
2506
73acf815 25072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2508
2509 * fontset.c (fontset_find_font): New function.
2510 (fontset_font): Use fontset_find_font.
2511 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
2512 Register the specified font for all Latin characters.
2513 (new_fontset_from_font): Register the specified font for all Latin
2514 characters.
2515 (dump_fontset): For a realized fontset, include the base fontset
2516 name in the returned vector.
2517
73acf815 25182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2519
2520 * character.h (CHAR_STRING): Cast C to unsigned on calling
2521 char_string.
2522
2523 * character.c (char_string): Type of arg C changed to unsigned.
2524 Signal an error if C is an invalid character code.
2525
4c4475a8
GM
2526 * editfns.c (general_insert_function, Fchar_to_string):
2527 Use CHARACTERP, not INTEGERP.
aca7a3d2 2528
73acf815 25292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2530
2531 * character.h (MIN_MULTIBYTE_LEADING_CODE)
2532 (MAX_MULTIBYTE_LEADING_CODE): New macros.
2533
2534 * regex.c (analyse_first): Fix for multibyte characters in "case
2535 charset:" and "case categoryspec:".
2536
73acf815 25372008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
2538
2539 * Makefile.in (LIBES): Move standard libraries to the end.
2540
73acf815 25412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2542
2543 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
2544 nonzero, don't shrink the buffer nextb.
2545
2546 * buffer.h (struct buffer_text): New member inhibit_shrinking.
2547
2548 * coding.c (coding_alloc_by_making_gap): New arg offset.
2549 (alloc_destination): Call coding_alloc_by_making_gap with the arg
2550 offset.
2551 (decode_coding_iso_2022): Update coding->safe_charsets.
2552 (decode_coding_gap): Temporarily set
2553 current_buffer->text->inhibit_shrinking to 1.
2554
73acf815 25552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2556
2557 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
2558 indexing into elements of s->cmp and s->char2b.
2559
73acf815 25602008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
2561
2562 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
2563
73acf815 25642008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2565
2566 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
2567 target_multibyte instead of multibyte.
2568 (re_match_2_internal): Call bcmp_translate with target_multibyte.
2569 (bcmp_translate): Change the argument name from multibyte to
2570 target_multibyte.
2571
73acf815 25722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2573
2574 These changes are to compile a regexp into a pattern that can be
2575 used both for multibyte and unibyte targets.
2576
2577 * Makefile.in (search.o): Depend on charset.h.
2578
2579 * character.c (multibyte_char_to_unibyte_safe): New function.
2580
2581 * search.c: Include "charset.h".
2582 (compile_pattern_1): Delete argument multibyte. Don't set
2583 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
2584 (compile_pattern): Don't compare cp->buf.target_multibyte.
2585 Compare cp->buf.charset_unibyte.
2586 (compile_pattern): Set cp->buf.target_multibyte.
2587
2588 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
2589
2590 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
2591
2592 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 2593 multibyte. Change callers.
aca7a3d2 2594 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
2595 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
2596 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
2597 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
2598 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
2599 (regex_compile): Make the compiled pattern usable both for
2600 multibyte and unibyte targets.
2601 (analyse_first): Make the fastmap usable both for multibyte and
2602 unibyte targets.
1f45f627 2603 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
2604 (re_match_2_internal): Pay attention to the case that the
2605 multibyteness of bufp and target may be different.
2606
73acf815 26072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2608
2609 * xdisp.c (x_produce_glyphs): When a font is not found, make the
2610 empty box occupy at least one column width.
2611
73acf815 26122008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
2613
2614 * Makefile.in: Remove redundant HAVE_XFT clause.
2615
73acf815 26162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2617
2618 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
2619
73acf815 26202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2621
2622 * fontset.c (Finternal_char_font): Fix for the case of POSITION
2623 being nil.
2624
73acf815 26252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2626
2627 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
2628
73acf815 26292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2630
2631 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
2632
73acf815 26332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2634
2635 * search.c (simple_search): Fix previous change.
2636
73acf815 26372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2638
2639 * xftfont.c (ftfont_font_format): Extern declaration.
2640
2641 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
2642
2643 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
2644 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
2645
2646 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
2647 (ftfont_font_format): Fix previous change.
2648
2649 * font.h (Ffont_xlfd_name): EXFUN it.
2650
2651 * font.c (font_parse_xlfd): Fix the array size of `f'.
2652 (register_font_driver): Use EQ to compare driver->type.
2653
2654 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
2655 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
2656 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
2657
73acf815 26582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2659
4c4475a8
GM
2660 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
2661 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 2662
73acf815 26632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2664
2665 * xfont.c (xfont_open): Set font->format.
2666
2667 * xftfont.c (xftfont_open): Set font->format.
2668
2669 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
2670 (ftfont_list): Include FC_FONTFORMAT in FcObject.
2671 (ftfont_open): Set font->format.
2672 (ftfont_font_format): New function.
2673
2674 * font.h (struct font): New memeber format.
2675
2676 * font.c (Qopentype): New variable.
2677 (syms_of_font): Defsym it.
2678 (Fquery_font): Change the format of the last element of the return
2679 value.
2680
73acf815 26812008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2682
2683 * xfns.c (xic_create_xfontset): Try the default fontset name as a
2684 last resort.
2685
73acf815 26862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2687
2688 * coding.c (detect_coding_charset): Fix detection of multi-byte
2689 charset.
2690
73acf815 26912008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
2692
2693 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
2694
73acf815 26952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2696
2697 * xdisp.c (get_next_display_element): Set it->face_id for the
2698 first component of a composition.
1f45f627 2699 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 2700
73acf815 27012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2702
2703 (get_next_display_element): Set it->face_id for the
2704 first component of a composition.
1f45f627 2705 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 2706
73acf815 27072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2708
2709 * fontset.c (Qlatin): New variable.
2710 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 2711 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 2712
73acf815 27132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2714
2715 * font.c (font_unparse_fcname): Pay attention to the case that
2716 some of font property is a null string.
2717
73acf815 27182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2719
2720 * term.c: Include "composite.h".
2721 (encode_terminal_code): Output all components of composition.
2722 Check the size of encode_terminal_src.
424c157f 2723 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
2724 (append_composite_glyph, produce_composite_glyph): New functions.
2725
2726 * xdisp.c (x_produce_glyphs): In handling composition, if a font
2727 is not found, get font_info from the current ascii face.
2728
73acf815 27292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2730
2731 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
2732 buffer-file-name to Qnil before calling insert_from_buffer.
2733
2734 * font.c (font_unparse_fcname): Pay attention to the case that
2735 foundry is a null string.
2736
73acf815 27372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2738
2739 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
2740
2741 * font.c (Qunicode_sip): New variable.
2742 (syms_of_font): Declare it as a Lisp symbol.
2743
2744 * font.h (Qunicode_sip): Extern it.
2745
73acf815 27462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2747
1f45f627 2748 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
2749
2750 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 2751 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
2752 the first elememnt of allocated memory.
2753
1f45f627 2754 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
2755
2756 * xdisp.c (handle_composition_prop): Set it->c to the first
2757 non-TAB component.
1f45f627
GM
2758 (fill_composite_glyph_string): Change argument.
2759 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
2760 (x_produce_glyphs): Fix handling of left/right padding.
2761
73acf815 27622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2763
2764 * coding.c (detect_coding_system): Fix for handling off
2765 inhibit_iso_escape_detection. Fix for the case that no coding
2766 system is defined for a specific coding category.
2767
73acf815 27682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2769
1f45f627 2770 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
2771
2772 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
2773 opening a font.
2774
2775 * fileio.c (Finsert_file_contents): On recovering a file, assume
2776 Unix-like eol.
2777 (choose_write_coding_system): On auto-saving a file, force
2778 Unix-like eol.
2779
2780 * coding.c (setup_coding_system): Fix setting of
2781 coding->common_flags based on eol_type.
2782 (coding_inherit_eol_type): If PARENT is not nil, be sure to
2783 inherit from it.
2784
73acf815 27852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2786
1f45f627 2787 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 2788
73acf815 27892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 2790
1f45f627 2791 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
2792 (ftfont_list): Don't check :name property.
2793 (ftfont_match): New function.
2794 (ftfont_pattern_entity): If the pattern doesn't contain
2795 FC_SPACING, don't assuce FC_MONO.
2796
2797 * font.h (struct font_driver): New member `match'.
1f45f627 2798 (font_update_drivers): Adjust prototype.
aca7a3d2 2799
4c4475a8
GM
2800 * font.c (font_parse_fcname, font_parse_name): Don't change :name
2801 property of FONT.
aca7a3d2
MB
2802 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
2803 them unconditionally.
2804 (font_matching_entity): New function.
2805 (font_open_by_name): Try font_matching_entity if exact match is
2806 not found.
2807 (font_update_drivers): Delete the arg FONT. Return a list of
2808 actually used backends. Don't free faces, font caches here.
2809 Don't store data in frame parameters. Don't call x_set_font.
2810 (Ffont_spec): Store :name property as is.
2811 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
2812 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
2813 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
2814 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
2815 Call font->driver->otf_gsub instead of font_otf_gsub.
2816
2817 * frame.c (x_set_font_backend): Do more works that were done in
2818 font_update_drivers before.
2819
2820 * xfont.c (xfont_match): New function.
2821 (xfont_driver): Set xfont_driver.match to xfont_match.
2822 (xfont_draw): Set font in GC if necessary.
2823
2824 * ftxfont.c (ftxfont_match): New function.
2825 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
2826
2827 * xftfont.c (xftfont_match): New function.
2828 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
2829
73acf815 28302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2831
2832 * font.h (struct font): New member scalable.
2833 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 2834 (font_otf_gsub): Adjust prototype.
aca7a3d2 2835
1f45f627
GM
2836 * font.c (font_otf_capability): Fix handling of the default langsys.
2837 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
2838 Check the contents of SPEC.
2839 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
2840 (check_gstring): New function.
2841 (REPLACEMENT_CHARACTER): New macro.
2842 (font_otf_gsub): New arg alternate_subst. Be sure to set all
2843 glyph codes of GSTRING.
2844 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
2845 (font_prepare_composition): Set cmp->glyph_len.
2846 (font_open_entity): Set font->scalable.
2847 (Ffont_get): Handle :otf property.
2848 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
2849 functions.
2850 (Fquery_font): Use font->font.full_name.
2851 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
2852 Sfont_otf_alternates.
2853
2854 * ftfont.c (ftfont_open): Set font->font.full_name and
2855 font->font.name properly. Fix calculation of font->font.height
2856 and font->min_width.
2857
2858 * ftxfont.c (ftxfont_create_gcs): New function.
2859 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
2860 (ftxfont_draw_backgrond): Fix filling region.
2861 (ftxfont_default_fid): New function.
2862 (ftxfont_open): Set xfotn->fid to the return value of
2863 ftxfont_default_fid.
2864 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
2865 (ftxfont_done_face): Free only GCs that are created by
2866 ftxfont_create_gcs.
2867 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
2868
2869 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
2870 Clip to src->width, etc (not src->clip_XXX).
2871
2872 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
2873 FontBackend frame parameter.
2874
73acf815 28752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2876
2877 * font.h (struct font_driver_list): New member `on'.
2878 (Fclear_font_cache): EXFUN it.
2879 (font_update_drivers): Extern it.
2880
2881 * font.c (font_unparse_fcname): Fix typo (swidth->width).
2882 (font_list_entities): Check driver_list->on.
2883 (register_font_driver): Initalize `on' member to 0.
2884 (font_update_drivers): New function.
2885 (Fclear_font_cache): Check driver_list->on.
2886
2887 * frame.h (Qfont_backend): Extern it.
2888 (x_set_font_backend): Extern it.
2889
2890 * frame.c (Qfont_backend): New variable.
2891 (frame_parms): New element for font-backend.
2892 (x_set_font_backend): New function.
2893
2894 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
2895 FontBackend frame parameter.
2896 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
2897 x_set_font_backend.
2898
2899 * xfont.c (xfont_list): Don't try listing by :name property if the
2900 name is not for XLFD.
2901
73acf815 29022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2903
2904 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
2905 (LGLYPH_SET_TO): New macros.
2906 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
2907 element of G is vector or not.
2908 (font_at): Extern it.
2909
2910 * font.c: Include window.h.
2911 (font_lispy_object): New function.
2912 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
2913 end of valid glyph.
2914 (font_close_object): Fix getting (struct font *).
2915 (font_at): New function.
2916 (Ffont_get): If FONT is a font-object, get entity from it.
2917 (Ffont_make_gstring): Initialize elements of glyphs with nil.
2918 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
2919 range check.
2920 (Ffont_at): New function.
2921 (syms_of_font): Defsubr Sfont_at.
2922
2923 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 2924 before the entry for Qcomposition.
1f45f627 2925 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
2926 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
2927 the font in gstring.
2928 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
2929 LGLYPH_FORM (g) to detect the end of valid glyph.
2930 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
2931 we are composing with gstring.
2932
2933 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
2934 Check if adjustment is vector or not.
2935
2936 * Makefile.in (font.o): Make it depends on window.h.
2937
73acf815 29382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2939
2940 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
2941 adjustment is vector or not.
2942
73acf815 29432008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
2944
2945 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
2946
73acf815 29472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2948
2949 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
2950 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
2951 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
2952
1f45f627 2953 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 2954 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
2955 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
2956 LGLYPH format.
aca7a3d2 2957
1f45f627 2958 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
2959 the change of LGLYPH format.
2960
73acf815 29612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2962
2963 * ftfont.c (ftfont_list): Fix typo.
1f45f627 2964 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 2965
880820fe 29662008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
2967
2968 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
2969
2970 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
2971 xftface_info is non-NULL.
2972
880820fe 29732008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 2974
1f45f627 2975 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 2976
73acf815 29772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2978
2979 * ftfont.c (ftfont_list): Pay attention to the case that
2980 FC_CAPABILITY is not defined.
2981
73acf815 29822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
2983
2984 * xftfont.c (xftfont_open): Set charset related members to -1.
2985
1f45f627
GM
2986 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
2987 QCname.
aca7a3d2
MB
2988 (ftfont_open): Set charset related members to -1.
2989
2990 * fontset.c (Votf_script_alist): New variable.
2991 (syms_of_fontset): Initialize it.
2992 (fontset_font): Delete unused variable.
2993
2994 * fontset.h (Votf_script_alist): Extern it.
2995
1f45f627 2996 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
2997
2998 * font.h (font_close_object, font_merge_old_spec): Extern them.
2999
73acf815 30002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3001
3002 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
3003 (syms_of_font): Initialize them.
3004 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
3005 (font_prop_validate_type): Delete.
3006 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
3007 Change caller.
3008 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
3009 (font_prop_validate_extra): Delete.
aca7a3d2
MB
3010 (font_prop_validate_spacing): New function.
3011 (font_property_table): Add elements for all known properties.
1f45f627
GM
3012 (get_font_prop_index): Rename from check_font_prop_name. New
3013 argument FROM. Change caller.
aca7a3d2 3014 (font_prop_validate): Validate all known properties.
1f45f627 3015 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
3016 (font_expand_wildcards): Make it static. Fix the way of shrinking
3017 the possible range.
1f45f627 3018 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 3019 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 3020 Change caller.
aca7a3d2 3021 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
3022 (font_parse_fcname): Delete argument merge. Fix parsing of point
3023 size. Don't validate properties values here. Change caller.
3024 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
3025 (font_open_by_name): Delete unused variable.
3026 (Ffont_spec): Likewise. Validate property values.
3027 (Ffont_match_p): New function.
3028
3029 * font.h (QCscalable): Extern it.
1f45f627 3030 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 3031
1f45f627 3032 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 3033
1f45f627 3034 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
3035 (xfont_list_pattern): New function.
3036 (xfont_list): Use xfont_list_pattern.
3037
73acf815 30382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3039
3040 * font.h (Flist_fonts): EXFUN it.
3041
73acf815 30422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3043
3044 * w32term.c (w32_initialize): Add back smoothing_type and
3045 smoothing_enabled definitions.
3046
73acf815 30472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3048
3049 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
3050 s->face->font on determining underline position.
3051
73acf815 30522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3053
3054 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
3055 (font_has_char): Accept font-object too.
3056 (font_find_for_lface): Try at first with a size specified in face.
3057
73acf815 30582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3059
3060 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
3061 font_open_by_name.
3062
73acf815 30632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3064
3065 * font.h (QCspacing, QCdpi): Extern them.
3066 (enum font_spacing): New enum.
3067 (FONT_PIXEL_SIZE_QUANTUM): New macro.
3068
3069 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
3070 (QCspacing, QCdpi): New variables.
3071 (syms_of_font): Initialize them.
3072 (font_pixel_size): New function.
3073 (font_put_extra): New function.
3074 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
3075 in FONT_EXTRA.
3076 (font_parse_fcname): Handle enumenrated values (e.g. bold). Fix
3077 handling font size. Add QCname property that contains only
3078 unknown properties.
1f45f627 3079 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 3080 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
3081 (font_sort_entites, font_list_entities, font_find_for_lface)
3082 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 3083 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
3084
3085 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
3086 include weight in listing pattern, instead check weight of each
3087 listed font. Don't include scalable in pattern. Pay attention to
3088 FONT_PIXEL_SIZE_QUANTUM.
3089
73acf815 30902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3091
aca7a3d2 3092 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 3093 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
3094 (font_list_entities): Handle float size correctly.
3095 (font_open_by_name): Prefer `normal' property values if the name
3096 doesn't specify them.
3097
3098 * fontset.c (Finternal_char_font): Use font_get_name, not
3099 Ffont_xlfd_name.
3100
3101 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
3102 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
3103 pattern. Don't force scalable.
3104
3105 * xftfont.c (xftfont_open): For generating a name, start from
3106 96-byte buffer.
3107
880820fe 31082008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
3109
3110 * frame.h (x_new_fontset2): Fix prototype.
3111
73acf815 31122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3113
1f45f627 3114 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
3115 (font_match_p, font_get_spec, font_parse_fcname)
3116 (font_unparse_fcname): Extern them.
1f45f627 3117 (font_get_name): Adjust prototype.
aca7a3d2
MB
3118
3119 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
3120 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
3121 (font_expand_wildcards): Fix handling ENCODING field. Avoid
3122 unnecessary checks for weight, slant, and swidth.
3123 (font_parse_fcname): New function.
3124 (font_unparse_fcname): New function.
3125 (font_parse_name): New function.
3126 (font_match_p): New function.
1f45f627 3127 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
3128 (font_get_spec): New function.
3129 (Qunspecified, Qignore_defface): Don't extern them.
3130 (font_find_for_lface): Assume that LFACE is fully specified.
3131 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
3132 object, use it for FACE.
3133 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
3134 driver->parse_name.
3135 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
3136
1f45f627
GM
3137 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
3138 prototype.
aca7a3d2 3139
1f45f627
GM
3140 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
3141 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
3142 make_fontset.
3143
1f45f627 3144 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 3145
1f45f627 3146 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
3147 of x_new_fontset2.
3148
3149 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
3150 (Qsans__serif): New variables.
3151 (ftfont_generic_family_list): New variable.
3152 (syms_of_ftfont): Initialize the above variables.
1f45f627 3153 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
3154 (ftfont_list_generic_family): New function.
3155 (ftfont_parse_name): Delete this function.
1f45f627 3156 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
3157 (ftfont_list_family): Fix args to FcObjectSetBuild.
3158
3159 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
3160 object in attrs[LFACE_FONT_INDEX].
3161 (set_lface_from_font_name): Cancel all changes for font-backend.
3162 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
3163 function.
3164 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
3165 font object in QCfont attribute.
3166 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
3167 (realize_default_face) [USE_FONT_BACKEND]: Call
3168 set_lface_from_font_and_fontset.
3169
3170 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
3171 "fixed", and signal error here if no suitable font was found.
3172
3173 * xfont.c (xfont_parse_name): Delete this function.
3174
3175 * xftfont.c (xftfont_open): Change coding style of error
3176 handling. Generate fontconfig's fontname pattern.
3177
3178 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
3179 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
3180
3181 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
3182 Both args FONTSET and FONT_OBJECT must be existing ones.
3183
73acf815 31842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
3185
3186 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
3187
73acf815 31882008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3189
3190 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
3191
3192 * font.h (struct font): Fix typo.
3193
3194 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
3195 XLFD_XXX_INDEX.
3196 (enum xlfd_field_mask): New enum.
1f45f627 3197 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
3198 are followed by non-digits, return a symbol.
3199 (font_expand_wildcards): New function.
3200 (font_parse_xlfd): Fix wildcard handling.
3201 (Ffont_spec): If :name is specified, reflect the info in the other
3202 properties.
3203
3204 * ftfont.c (ftfont_pattern_entity): Fix typo.
3205 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
3206 locale.
3207
73acf815 32082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3209
3210 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
3211
1f45f627 3212 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
3213 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
3214 registry doesn't specify encoding part.
3215 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
3216 (font_open_by_name): At first try parsing the name.
3217 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
3218 as Lisp symbols.
3219
3220 * fontset.c (reorder_font_vector): Pay attention to the case that
3221 the 3rd element of font_def is nil.
3222 (fontset_font): For the default fontset, append one more fontset
3223 elements for a script-based font specification. Don't add script
3224 attribute on finding a font.
3225 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
3226 font name.
3227 (fontset_ascii_font): If a font can't be opened, return nil.
3228
1f45f627 3229 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
3230 (ftfont_pattern_entity): New function.
3231 (ftfont_get_cache): Assume that freetype_font_cache is already
3232 initialized.
3233 (ftfont_list): Handle the case that a file is specified in font
3234 name. Use ftfont_pattern_entity to generate entities.
3235 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
3236 (syms_of_ftfont): Initialize freetype_font_cache.
3237
3238 * xftfont.c (xftfont_open): Make the font name fontconfig's
3239 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
3240 (xftfont_close): Free font->font.name if not NULL.
3241
3242 * xfont.c (xfont_list): If script is specified for a font, return
3243 null_vector.
3244 (xfont_list_family): Declare argument type.
3245
3246 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
3247 name, set LFACE_FONT (lface) to nil.
3248
3249 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
3250 return Qnil.
3251
73acf815 32522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3253
1f45f627 3254 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
3255 (standard_args): Add "-enable-font-backend".
3256
73acf815 32572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3258
3259 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
3260 (struct xftdraw_list, xftdraw_list): Delete them.
3261 (register_xftdraw, check_xftdraw): Delete them.
3262 (xftfont_prepare_face): Don't call register_xftdraw.
3263 (xftfont_done_face): Don't call check_xftdraw.
3264 (xftfont_draw): Get backroudn color only when with_background is
3265 nonzero.
3266
3267 * xfont.c (xfont_encode_char): Fix calculation of char2b.
3268
73acf815 32692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3270
3271 These changes are for the new font handling codes.
3272
3273 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
3274 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
3275 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
3276 (FONTSRC, FONTOBJ): New variables.
3277 (obj): Add $(FONTOBJ).
3278 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
3279 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
3280 @LIBOTF_LIBS@.
3281 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 3282 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 3283
1f45f627 3284 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
3285
3286 * character.h (Vscript_representative_chars): Extern it.
3287
3288 * character.c (Vscript_representative_chars): New variable.
3289 (syms_of_character): Declare it as a Lisp variable.
3290
3291 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
3292 enable_font_backend is nonzero, accept the composition method
3293 COMPOSITION_WITH_GLYPH_STRING.
3294
3295 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
3296 enumeration COMPOSITION_WITH_GLYPH_STRING.
3297
aca7a3d2
MB
3298 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
3299 members clip_x, clip_y, clip_width, and clip_height.
3300 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
3301
3302 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
3303 --enable-font-backend. Call syms_of_font.
3304
3305 * fns.c (assoc_no_quit): New function.
3306
3307 * fontset.h (FONT_INFO_FROM_FACE): New macro.
3308 (face_for_font, new_fontset_from_font)
3309 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
3310
3311 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
3312 (fontset_font, fontset_ascii, face_for_char)
3313 (make_fontset_for_ascii_face, Ffont_info)
3314 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
3315 is nonzero, use font-backend mechanism.
3316 (find_font_encoding): Make it non-static.
3317 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
3318 New functions.
3319
3320 * frame.h (struct frame): New members resx and resy.
3321 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
3322 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
3323
3324 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 3325 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
3326
3327 * lisp.h (assoc_no_quit): Extern it.
3328
3329 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
3330 Through out the file, use FONT_INFO_FROM_FACE instead of
3331 FONT_INFO_FROM_ID, use get_per_char_metric instead of
3332 rif->per_char_metric.
3333 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
3334 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
3335 (get_glyph_face_and_encoding, fill_composite_glyph_string)
3336 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
3337 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
3338 nonzero, use font-backend mechanism.
3339 (get_per_char_metric): New function.
3340
3341 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
3342 (set_lface_from_font_name)
3343 (set_font_frame_param, free_realized_face)
3344 (prepare_face_for_display, clear_face_gcs)
3345 (Finternal_set_font_selection_order, realize_x_face)
3346 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
3347 font-backend mechanism.
1f45f627 3348 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
3349 (load_face_font) [USE_FONT_BACKEND]: Abort.
3350 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 3351 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
3352
3353 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
3354 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
3355 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
3356 nonzero, register all available font drivers. Call
3357 x_default_font_parameter for deciding a font.
3358 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
3359
3360 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
3361 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
3362 (x_set_glyph_string_clipping_exactly)
3363 (x_compute_glyph_string_overhangs)
3364 (x_draw_glyph_string_foreground)
3365 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
3366 (x_free_frame_resources) [USE_FONT_BACKEND]: If
3367 enable_font_backend is nonzero, use font-backend mechanism.
3368 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
3369
73acf815 33702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3371
fcb314b2 3372 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
3373 system_eol_type.
3374 (syms_of_coding): Initialize system_eol_type.
3375
fcb314b2
GM
3376 * process.c (Fset_process_coding_system): Inherit system's eol
3377 format if necessary.
aca7a3d2 3378
73acf815 33792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
3380
3381 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
3382
73acf815 33832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3384
3385 * coding.c (decode_eol): Pay attention to buffer relocation in
3386 del_range_2.
3387 (decode_coding): Call decode_eol before restoring undo_list.
3388
73acf815 33892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3390
3391 * charset.c (Fdefine_charset_internal): Fix setting of
3392 emacs_mule_bytes.
3393
73acf815 33942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3395
3396 * keyboard.c (read_char): Check if C is a character or not before
3397 looking up Vkeyboard_translate_table.
3398
73acf815 33992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3400
3401 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
3402 condition to terminate the loop.
3403
73acf815 34042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3405
3406 * coding.c (produce_composition): Compare charbuf[i] instead of
3407 args[i] against 0.
3408 (Fterminal_coding_system): Use EQ to compare Lisp objects.
3409
73acf815 34102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3411
3412 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
3413 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
3414 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
3415 detect_coding.
3416 (emacs_mule_char): Handle old style (Emacs 20) component character
3417 of a composition.
4c4475a8
GM
3418 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
3419 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
3420 composition rule.
aca7a3d2
MB
3421 (decode_coding_emacs_mule): Handle invalid bytes correctly.
3422
73acf815 34232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3424
3425 * coding.c (encode_coding_ccl): Allocate destination dynamically
3426 when necessary.
3427
73acf815 34282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3429
3430 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
3431 the loop. When quitted, show a proper error message.
3432
73acf815 34332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3434
aca7a3d2
MB
3435 * xterm.c (x_set_glyph_string_clipping_exactly): Set
3436 src->clip_head and src->clip_tail temporarily instead of src->hl.
3437
3438 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
3439 character sequence.
3440 (Fccl_execute_on_string): Use ASET, not XSET.
3441
73acf815 34422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3443
1f45f627 3444 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 3445
73acf815 34462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3447
3448 * coding.c (decode_coding): Fix the condition of terminating the
3449 decoding loop.
3450
73acf815 34512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3452
3453 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 3454 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 3455
73acf815 34562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3457
3458 * charset.c (map_charset_chars): Fix for ascii-compatible charset
3459 made by a mapping table.
3460
73acf815 34612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3462
3463 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
3464 not.
3465 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
3466 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
3467
3468 * xterm.c (x_draw_composite_glyph_string_foreground): Check
3469 s->face is NULL or not.
3470
73acf815 34712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3472
3473 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
3474 (x_draw_glyph_string): Fix drawing of right_overhang and
3475 left_overhang around/on cursor.
3476
1f45f627 3477 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 3478
73acf815 34792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3480
3481 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
3482
73acf815 34832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3484
4c4475a8
GM
3485 * coding.c (Fdefine_coding_system_internal)
3486 (Fdefine_coding_system_alias): Avoid a duplicated element in
3487 Vcoding_system_alist.
aca7a3d2 3488
73acf815 34892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3490
3491 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
3492
fcb314b2 3493 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
3494 (syms_of_coding): Intern and staticpro it.
3495 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 3496 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
3497
3498 * coding.h (CODING_SYSTEM_P): If ID is not available, call
3499 Fcoding_system_p.
3500 (CHECK_CODING_SYSTEM): If ID is not available, call
3501 Fcheck_coding_system.
4c4475a8
GM
3502 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
3503 Try also Fcheck_coding_system.
aca7a3d2 3504
73acf815 35052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3506
aca7a3d2
MB
3507 * coding.c (code_conversion_restore): GCPRO arg.
3508
73acf815 35092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3510
3511 * character.c (lisp_string_width): Check multibyteness of STRING.
3512
73acf815 35132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
3514
3515 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
3516 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
3517 (decode_mac_font_name): Use decode_coding_c_string instead of
3518 decode_coding.
3519 (x_load_font): Initialize fontp->fontset to -1. Set
3520 fontp->encoding_type.
3521
73acf815 35222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3523
3524 * search.c (search_buffer): Give up BM search on case-fold-search
3525 if one of a target character has a case-equivalence of different
3526 byte length even if that target charcter is an ASCII.
1f45f627
GM
3527 (simple_search): Fix calculation of byte length of matched text.
3528 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 3529
73acf815 35302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3531
3532 * coding.c (decode_coding): Fix handling of invalid bytes.
3533
73acf815 35342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3535
3536 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
3537 Unicode characters.
3538
73acf815 35392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3540
3541 * coding.c (encode_coding_object): If a pre-write-conversion
3542 function makes a new buffer, kill it.
3543
73acf815 35442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3545
3546 * coding.c (QCascii_compatible_p): New variable.
3547 (syms_of_coding): Initialize it.
4c4475a8
GM
3548 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
3549 calling string_char.
aca7a3d2
MB
3550 (record_conversion_result): Add `default:' case.
3551 (coding_charset_list): Delete unused variable `coding_type'.
3552 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
3553 property in the plist of the coding system.
3554 (Fcoding_system_put): Check QCascii_compatible_p.
3555
73acf815 35562008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
3557
3558 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
3559 removed calculation of frame `f', as it's now used.
3560
73acf815 35612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3562
1f45f627 3563 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
3564 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
3565 (UNIDATA): New variable.
3566 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
3567 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
3568 $(RUN_TEMACS) unconditionally.
3569
73acf815 35702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3571
1f45f627 3572 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
3573 (admindir): New variable.
3574 ($(lispsource)international/charprop.el): New target.
3575
73acf815 35762008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 3577
1f45f627 3578 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
3579 (syms_of_character): Remove its initialization.
3580
73acf815 35812008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
3582
3583 * w32select.c (validate_coding_system)
3584 (setup_windows_coding_system): New functions.
3585 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
3586 setup_windows_coding_system.
3587 (setup_config, Fw32_get_clipboard_data): Use
3588 validate_coding_system.
3589 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 3590 where signals are allowed.
aca7a3d2
MB
3591
3592 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
3593 (Fcheck_coding_system): Add declarations.
3594
73acf815 35952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3596
1f45f627 3597 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 3598
73acf815 35992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
3600
3601 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
3602 string as the second argument for x_new_fontset.
3603
73acf815 36042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3605
3606 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
3607 (encode_coding_object): Use safe_call instead of call2.
3608
73acf815 36092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3610
1f45f627 3611 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
3612
3613 * Makefile.in (lisp): Include charprop.el.
3614
73acf815 36152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
3616
3617 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
3618 Not sure if it's unnecessary.
3619
73acf815 36202008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
3621
3622 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
3623 some possibly unnecessary fontset checking code that crashed
1f45f627 3624 when creating a new frame.
aca7a3d2 3625
73acf815 36262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3627
3628 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
3629 lookup_face.
3630
3631 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
3632
1f45f627 3633 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 3634
73acf815 36352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3636
73acf815 3637 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
3638 (coding_charset_list): New function.
3639
3640 * coding.h (coding_charset_list): Extern it.
3641
73acf815 36422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3643
3644 * fontset.c (Fset_fontset_font): Call find_font_encoding with
3645 concatenation of family and registry.
3646
73acf815 36472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3648
3649 * character.h (BYTE8_STRING): Fix typo.
3650
3651 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
3652 string to multibyte (sync to HEAD).
3653
3654 * casefiddle.c (casify_region): Handle changes in byte-length
3655 using replace_range_2 (sync to HEAD).
3656
73acf815 36572008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
3658
3659 * chartab.c (map_char_table): GCPRO table and arg.
3660
73acf815 36612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3662
3663 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
3664 already at limit.
3665
73acf815 36662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3667
3668 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
3669 instead of fast_c_string_match_ignore_case.
1f45f627 3670 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 3671 fast_string_match_ignore_case instead of
1f45f627 3672 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 3673
73acf815 36742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3675
3676 * xdisp.c (get_next_display_element): In unibyte case, decide to
3677 display in octal form by checking a chacter by
3678 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
3679
1f45f627 3680 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
3681
3682 * character.c (unibyte_has_multibyte_table): New variable.
3683
3684 * character.h (unibyte_has_multibyte_table): Extern it.
3685 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
3686
73acf815 36872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3688
3689 * coding.c (encode_coding_iso_2022): Fix handling of charset
3690 annotation.
3691
73acf815 36922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3693
3694 * coding.c (setup_coding_system): If coding_system is nil, use
3695 Qundecided.
3696 (Fterminal_coding_system): Return nil if terminal coding system is
3697 `undecided'.
3698 (syms_of_coding): Define coding-system `undecided' here. Setup
3699 terminal_coding as `undecided'.
3700
73acf815 37012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3702
3703 * xdisp.c (message_dolog, set_message_1): Call
3704 unibyte_char_to_multibyte with arg type int.
3705
aca7a3d2
MB
3706 * lread.c (read1): Fix reading of a char-table.
3707
3708 * print.c (print_object): Include sub char-table in cicularities
3709 detection.
3710
73acf815 37112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3712
3713 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 3714 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 3715
73acf815 37162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3717
3718 * fileio.c (report_file_error): Make a unibyte string from
3719 strerror (errorno).
3720 (Fsubstitute_in_file_name): Fix the arg to
3721 unibyte_char_to_multibyte. It is evaluated twice.
3722
73acf815 37232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3724
3725 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
3726
73acf815 37272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3728
3729 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
3730 BOM is not found.
4c4475a8
GM
3731 (detect_coding, detect_coding_system): Optimization for ISO-2022
3732 when no 8-bit data is found.
aca7a3d2 3733
73acf815 37342008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
3735
3736 * w32fns.c (x_to_w32_font): Update to use new coding struct.
3737
73acf815 37382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3739
4c4475a8
GM
3740 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
3741 CHARS.
aca7a3d2 3742
73acf815 37432008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
3744
3745 * macterm.c (mac_encode_char): Add charset argument and update
3746 to use encoding_type.
3747 (x_new_font,x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
3748 switch to pure fontset.
3749 (decode_mac_font_name): Temporarily remove decoding.
3750 (x_font_name_to_mac_font_name): Temporarily remove encoding.
3751 (x_load_font): Temporarily remove encoding.
aca7a3d2 3752
73acf815 37532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3754
3755 * xfaces.c (Fface_font): If frame is not on a window system,
3756 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
3757 refer to face->font.
3758 (split_font_name_into_vector, build_font_name_from_vector)
3759 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
3760 whne HAVE_WINDOW_SYSTEM is defined.
3761
73acf815 37622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3763
3764 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
3765 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 3766 cmp->glyph_len is zero.
aca7a3d2 3767
1f45f627 3768 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
3769 (Ffontset_info): Make it backward compatible. New arg ALL.
3770
73acf815 37712008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
3772
3773 * process.c (read_process_output): Grow decoding_buf when needed;
3774 this could cause a crash in allocate_string and compact_small_strings.
3775
73acf815 37762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3777
1f45f627 3778 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 3779
73acf815 37802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3781
3782 * coding.c (setup_coding_system): Set coding->common_flags
3783 correctly for raw-text.
3784 (consume_chars): On encoding unibyte text by raw-text, don't check
3785 multibyte form.
1f45f627 3786 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
3787
3788 * fileio.c (e_write): Short cut for the case of no encoding.
3789
73acf815 37902008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3791
4c4475a8
GM
3792 * coding.c (detect_coding, detect_coding_system): Delete unused
3793 variables.
aca7a3d2 3794
73acf815 37952008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3796
3797 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
3798 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
3799
73acf815 38002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3801
3802 * coding.c (Ffind_coding_systems_region_internal): Include
3803 raw-text and no-conversion in the result.
3804
73acf815 38052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3806
1f45f627 3807 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
3808 (load_font_get_repertory): Delete unnecessary check of ENCODING of
3809 FONT_DEF.
3810 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 3811 (set_fontset_font): Change argument.
aca7a3d2
MB
3812 (Fset_fontset_font): Fix for the case that TARGET is a script
3813 name and charset name.
3814 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
3815
73acf815 38162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3817
1f45f627
GM
3818 * fontset.c (fontset_font): Rename from fontset_face. Change return
3819 value.
4c4475a8
GM
3820 (face_suitable_for_char_p, face_for_char): Adjust for the change
3821 of fontset_font.
aca7a3d2
MB
3822 (make_fontset_for_ascii_face): Fix setting of the fontset element
3823 for ASCII.
3824 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
3825 to get a font name.
1f45f627 3826 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 3827
fcb314b2 3828 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
3829
3830 * character.h (LEADING_CODE_LATIN_1_MIN)
3831 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
3832
73acf815 38332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3834
fcb314b2 3835 * editfns.c (check_translation): New function.
aca7a3d2
MB
3836 (Ftranslate_region_internal): Handle M:N mapping.
3837
73acf815 38382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3839
3840 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
3841
73acf815 38422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3843
3844 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
3845 goto invalid_code.
3846 (decode_coding_iso_2022): Fix handling of invalid designation.
3847
3848 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
3849 after calling code_conversion_save.
3850
73acf815 38512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3852
3853 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
3854
3855 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
3856
3857 * fontset.c: Include "intervals.h".
3858 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
3859 (free_face_fontset, new_fontset_from_font_name): Fix
3860 Lisp_Object/int mixup.
aca7a3d2
MB
3861
3862 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
3863
3864 * coding.c: Add many prototypes for static functions.
3865 (get_translation_table): Allow max_lookup to be NULL.
4c4475a8
GM
3866 (decode_coding,Ffind_coding_systems_region_internal)
3867 (Funencodable_char_position, Fcheck_coding_systems_region): Call
3868 get_translation_table with max_lookup NULL.
aca7a3d2 3869
73acf815 38702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3871
3872 * coding.c (get_translation_table): Declare it as Lisp_Object.
3873 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
3874 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
3875 instead of CHAR_TABLE_REF.
aca7a3d2 3876
73acf815 38772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3878
1f45f627 3879 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
3880 annotation data format.
3881 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 3882 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 3883 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 3884 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
3885 (decode_coding_ccl, decode_coding_charset): Pay attention to
3886 coding->charbuf_used.
aca7a3d2
MB
3887 (get_translation): New function.
3888 (produce_chars): New arguments translation_table and last_block.
3889 Translate characters here. Return number of carryover chars.
1f45f627
GM
3890 Change caller.
3891 (produce_composition): New argument pos. Change caller.
3892 Adjust for the change of annotation data format.
aca7a3d2
MB
3893 (produce_charset, produce_annotation): Likewise.
3894 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
3895 (consume_chars): New arg translation_table. Change caller.
3896 (translate_chars): Delete.
3897 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 3898
73acf815 38992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3900
3901 * search.c (simple_search): Fix setting this_pos_byte in backward
3902 search.
3903
3904 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
3905 byte sequence.
3906 (detect_coding_ccl): Fix setting of the variable valids.
3907
73acf815 39082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3909
3910 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
3911
3912 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
3913
1f45f627 3914 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
3915 Ftranslate_region. Accept a char-table in TABLE.
3916 (syms_of_editfns): Defsubr Stranslate_region_internal.
3917
3918 * xfaces.c (set_lface_from_font_name): If a font is specified for
3919 a frame, generate a fontset from the font.
3920 (build_scalable_font_name): If the scalable font is requested for
3921 a specific size, don't change that size.
3922 (try_font_list): Try a scalable font also in the case that a
1f45f627 3923 pattern string is specified.
aca7a3d2 3924
73acf815 39252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3926
3927 * xfaces.c (Fface_font): New optional arg CHARACTER.
3928
73acf815 39292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3930
3931 * charset.h (CHARSET_OFFSET): New macro.
3932
73acf815 39332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3934
3935 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
3936
3937 * fontset.c (fontset_face): Handle the case that repertory is a
3938 char-table.
3939 (find_font_encoding): Return nil for unknown encoding.
3940 (Fset_fontset_font): Ignore a font of unknown encoding.
3941
73acf815 39422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3943
1f45f627 3944 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
3945
3946 * fontset.c (fontset_face): Handle fallback fonts correctly.
3947 (Ffontset_info): Return infomation about fallback fonts.
3948
73acf815 39492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3950
3951 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 3952 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
3953 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
3954 the case that it is nil.
3955 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 3956 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
3957
3958 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
3959 subset or superset.
3960
73acf815 39612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3962
3963 * emacs.c (main): Call init_charset after syms_of_XXX.
3964
1f45f627 3965 * charset.c (Vcharset_map_directory): Delete.
aca7a3d2
MB
3966 (Vcharset_map_path): New variable
3967 (load_charset_map_from_file): Use Vcharset_map_path instead.
3968 (init_charset): Initialize Vcharset_map_path.
3969 (syms_of_charset): Delete declaration of "charset-map-directory",
3970 add declaration of "charset-map-path".
3971
73acf815 39722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 3973
4c4475a8
GM
3974 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
3975 ASCII only string.
aca7a3d2
MB
3976
3977 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
3978
3979 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 3980 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 3981
73acf815 39822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
3983
3984 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
3985
3986 * coding.c (QCmnemonic, QCdefalut_char)
3987 (QCdecode_translation_table, QCencode_translation_table)
3988 (QCpost_read_conversion, QCpre_write_conversion): New variables.
3989 (get_translation_table): Return a list of translation tables if
3990 necessary.
3991 (decode_coding): Call get_translation_table with ENCODEP 0.
3992 (char_encodable_p): If translation_table is non-nil, always call
3993 translate_char.
3994 (Fdefine_coding_system_internal): Accept list of translation
3995 tables as :encode-translation-table and :decode-translation-table.
3996 (Fcoding_system_put): New function.
3997 (syms_of_coding): Declare new symbols. Defsubr
3998 Scoding_system_put.
4c4475a8
GM
3999 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
4000 typically JISX0212.
aca7a3d2
MB
4001
4002 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
4003 when the charset is superset type.
4004
4005 * character.c (translate_char): Accept list of translation tables.
4006
73acf815 40072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4008
1f45f627 4009 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
4010 (CODING_ATTR_TRANS_TBL): New macro.
4011
4012 * coding.c (get_translation_table): New function.
4013 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
4014 (decode_coding, encode_coding): Utilize get_translation_table.
4015 (char_encodable_p, Funencodable_char_position): Translate char if
4016 necessary.
4017 (Ffind_coding_systems_region_internal)
4018 (Fcheck_coding_systems_region): Setup translation table for encode
4019 in a coding system attribute vector in advance.
aca7a3d2
MB
4020 (Fdefine_coding_system_internal): Allow a symbol as translation
4021 table. For shift-jis type coding system, allow 4th charset.
4022
73acf815 40232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4024
4025 * coding.c (decode_coding_sjis): Check the first byte rigidly.
4026
4027 * xdisp.c (get_next_display_element): Pass -1 as POS to
4028 FACE_FOR_CHAR if displaying a C-string.
4029
73acf815 40302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4031
4032 * composite.c (get_composition_id): Handle xoff and yoff in a
4033 composition rule.
4034
4035 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
4036 (struct composition): New member lbearing and rbearing.
4037
4038 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
4039 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 4040 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
4041
4042 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
4043 composition glyph.
4044
73acf815 40452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4046
4047 * print.c: Include charset.h.
4048 (Vprint_charset_text_property): New variable.
4049 (Qdefault): Extern it.
4050 (PRINT_STRING_NON_CHARSET_FOUND)
4051 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
4052 (print_check_string_result): New variable.
4053 (print_check_string_charset_prop): New function.
4054 (print_prune_charset_plist): New variable.
4055 (print_prune_string_charset): New function.
4056 (print_object): Call print_prune_string_charset if
4057 Vprint_charset_text_property is not t.
4058 (print_interval): Print nothing if itnerval->plist is nil.
4059 (syms_of_print): Declare Vprint_charset_text_property as a lisp
4060 variable. Init and staticpro print_prune_charset_plist.
4061
73acf815 40622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4063
4064 * fontset.c (new_fontset_from_font_name): Use the specified font
4065 for all characters in the new fontset.
4066
4067 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
4068 OBJECT args.
4069
4070 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
4071 OBJECT args for composition too.
4072
4073 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
4074 OBJECT args.
4075
73acf815 40762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4077
4078 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
4079
1f45f627 4080 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 4081 FONT_DEF format.
1f45f627 4082 (fontset_face): New arg id. Change caller.
aca7a3d2 4083 (face_for_char): New args pos and object.
1f45f627 4084 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF
aca7a3d2
MB
4085 format.n
4086 (fs_query_fontset): Check NAME by Fassoc too.
4087 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 4088 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 4089
1f45f627 4090 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 4091
4c4475a8
GM
4092 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
4093 (append_space, extend_face_to_end_of_line)
4094 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
4095 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
4096
4097 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
4098 POS and OBJECT args.
4099
4100 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
4101 POS and OBJECT args.
4102
73acf815 41032008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4104
4105 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
4106 of GlobalAlloc'ed memory.
4107
73acf815 41082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4109
4110 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
4111
4112 * charset.h (charset_table_used): Delete extern.
4113
4114 * charset.c (charset_table_used): Make it static.
4115 (map_charset_chars): Fix args to c_function with.
4116
4117 * chartab.c (map_sub_char_table_for_charset): Fix args to
4118 c_function with.
4119
4120 * coding.h (enum coding_result_code): Delete
4121 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
4122
4123 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 4124 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
4125 (Vlast_code_conversion_error): New variables.
4126 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
4127 (ONE_MORE_BYTE): Record error if any instead of signaling an
4128 error. If non-ASCII multibyte char is found, return the negative
4129 value of the code. All callers changed to check it.
4130 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
4131 (record_conversion_result): New function. Change all codes setting
4132 coding->result to call this function.
4c4475a8
GM
4133 (detect_coding_utf_8, decode_coding_utf_8)
4134 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
4135 Don't use the local variable incomplete.
aca7a3d2 4136 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
4137 (decode_coding): Fix of flushing out unprocessed data.
4138 (make_conversion_work_buffer): Fix making of a work buffer.
4139 (decode_coding_object): Return coding->dst_object;
4140
4141 * fontset.c (set_fontset_font): Fix args.
4142
4143 * lisp.h (CHARACTERBITS): Define as 22.
4144
4145 * process.c (send_process): Be sure to set coding->src_multibyte.
4146
4147 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
4148
73acf815 41492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4150
4151 * xdisp.c (handle_auto_composed_prop): Give limit to
4152 Fnext_single_char_property_change.
4153
73acf815 41542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4155
424c157f 4156 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 4157 table weak.
aca7a3d2
MB
4158
4159 * fontset.c (Fset_fontset_font): Fix docstring.
4160
4161 * lisp.h (detect_coding_system): Adjust prototype.
4162
4163 * fileio.c (kill_workbuf_unwind): Delete this function.
4164 (Finsert_file_contents): Adjust the call of detect_coding_system.
4165 Get conversion_buffer by code_conversion_save. Use the macor
4166 CODING_MAY_REQUIRE_DECODING. After decoding, update
4167 coding_system.
4168
4169 * coding.h (make_conversion_work_buffer): Delete extern.
4170 (code_conversion_save): Extern it.
4171
4172 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 4173 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
4174 (decode_coding_utf_8): Don't do eol converion.
4175 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 4176 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
4177 (decode_coding_emacs_mule, decode_coding_iso_2022)
4178 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
4179 Don't do eol converion.
aca7a3d2
MB
4180 (adjust_coding_eol_type): Return a new coding system.
4181 (detect_coding): Don't detect eol. Fix for utf-16 detection.
4182 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
4183 each change.
4184 (decode_coding): Pay attention to undo_list. Do eol convesion for
4185 all types of coding-systems (if necessary).
4186 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 4187 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
4188 Vcode_conversion_reused_work_buf.
4189 (Vcode_conversion_workbuf_name): New variable.
4190 (reused_workbuf_in_use): New variable.
4191 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 4192 (code_conversion_restore): Change argument to cons.
1f45f627
GM
4193 (code_conversion_save): Delete the argument BUFFER. Change callers.
4194 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
4195 Fix for utf-16 detection.
4196 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 4197 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
4198 reused_workbuf_in_use.
4199
73acf815 42002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4201
4202 * keymap.c (store_in_keymap): Pay attention to the case that idx
4203 is a cons specifying a character range.
4204
73acf815 42052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4206
4207 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
4208 HANDLED_RECOMPUTE_PROPS.
4209
4210 * coding.c (Fdefine_coding_system_internal): Fix checking of
4211 ascii compatibility.
4212
73acf815 42132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4214
1f45f627 4215 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
4216 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
4217
4218 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
4219 Resync charset_list to Vemacs_mule_charset_list.
4220
4221 * keymap.c (store_in_keymap): Pay attention to the case that idx
4222 is a cons specifying a character range.
4223
73acf815 42242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4225
4226 * composite.c (update_compositions): Bind inhibit-read-only, etc
4227 to t before calling remove-list-of-text-properties.
4228
4229 * print.c (print_object): Always print ASCII chars as is.
4230
73acf815 42312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4232
1f45f627 4233 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 4234
4c4475a8
GM
4235 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
4236 is a char table.
aca7a3d2 4237
73acf815 42382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4239
1f45f627 4240 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 4241
73acf815 42422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4243
4244 * xfaces.c (set_lface_from_font_name): Fix for the case that
4245 FONTNAME is not fontset name.
4246
73acf815 42472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4248
4249 * fns.c (base64_encode_1): Fix previous change.
4250
73acf815 42512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4252
4253 * fontset.c (set_fontset_font): New function.
4254 (Fset_fontset_font): If a font is specified for a charset, use
4255 map_charset_chars to store the font spec in a fontset.
4256
73acf815 42572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4258
4259 * fontset.c (fontset_face): Create a fallback fontset on demand
4260 (make_fontset): Don't create a fallback fontset here.
4261 (free_face_fontset): Free a fallback fontset (if any) too.
4262 (n_auto_fontsets): Delete this variable.
4263 (auto_fontset_alist): New variable.
4264 (new_fontset_from_font_name): Check auto_fontset_alist.
4265 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
4266 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
4267 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
4268 Defsubr Sfontset_list_all.
4269
73acf815 42702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4271
4272 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
4273
73acf815 42742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4275
4276 * fontset.c (Fnew_fontset): Check NAME more rigidly.
4277
73acf815 42782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4279
4280 * editfns.c (Fgoto_char): Fix docstring.
4281
73acf815 42822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4283
4284 * insdel.c (insert_from_gap): Adjust intervals correctly.
4285
73acf815 42862008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4287
4288 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
4289 (pfnGetFontUnicodeRanges): New dynamically loaded function.
4290 (w32_initialize): Try to load it.
4291 (x_get_font_repertory): Use it if available.
4292 (w32_encode_char): Add shortcut for unicode output.
4293
4294 * w32fns.c (w32_load_system_font): Default charset to -1.
4295 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 4296 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
4297 or wildcard charsets.
4298 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
4299 (w32_codepage_for_font): Return CP_UNICODE for unicode.
4300 (w32_to_x_font): Match charset to real charset.
4301 (enum_font_cb2): Always list unicode versions.
4302
4303 * makefile.w32-in (temacs): Increase EMHEAP.
4304
73acf815 43052008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
4306
4307 * w32term.c (w32_encode_char): New charset parameter.
4308 font_info.encoding becomes encoding_type.
1f45f627 4309 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
4310 (x_new_font): Return quickly if font already set.
4311 (x_new_fontset): fontsetname parameter is Lisp_Object.
1f45f627 4312 Use new fs_query_fontset. Try new_fontset_from_font_name. Use
aca7a3d2
MB
4313 fontset_name for return value.
4314
4315 * w32term.h: Declare x_get_font_repertory.
4316
4317 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 4318 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
4319 of encode_coding.
4320 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
4321 decode_coding.
4322
4323 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
4324 of x_new_fontset.
4325 (w32_load_system_font): Initialize charset as unicode.
4326 font_info.encoding becomes encoding_type.
1f45f627
GM
4327 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
4328 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
4329 (syms_of_w32fns): Set get_font_repertory_func.
4330
1f45f627 4331 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 4332 from term.c.
1f45f627 4333 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
4334 encode_coding_object in place of encode_coding.
4335
4336 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
4337 encoding becomes encoding_type.
4338
4339 * term.c (terminal_encode_buffer): Make externally visible.
4340
4341 * makefile.w32-in: Add character.h dependancies.
4342 (character.o, chartab.o): New targets.
4343
73acf815 43442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4345
4346 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 4347 CODING_ID_EOL_TYPE.
aca7a3d2 4348
73acf815 43492008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
4350
4351 * coding.c (produce_chars): Revert last change.
4352
73acf815 43532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4354
4355 * charset.h (charset_unicode): Extern it.
4356
4357 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 4358 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 4359 arg MULTIBYTE.
1f45f627 4360 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
4361 change of find_charsets_in_text.
4362 (Fsplit_char): Fix doc. Never return unknown.
4363
4364 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
4365
4366 * coding.c (Fdefine_coding_system_alias): Update
4367 Vcoding_system_list.
4368
4369 * fontset.c (load_font_get_repertory): Pay attention to the case
4370 that ENCODING of a font is specified by a char-table.
4371
4372 * xterm.c (x_get_font_repertory): Handle the case that the
4373 encoding of font is other than Unicode.
4374
73acf815 43752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4376
4377 * term.c (encode_terminal_code): Don't handle glyph-table. Check
4378 if a character is encodable by the terminal coding system. If
4379 not, produces proper number of `?'s. Update
4380 terminal_encode_buffer and terminal_encode_buf_size if necessary.
4381 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
4382
73acf815 43832008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4384
4385 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
4386 variables.
1f45f627 4387 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
4388 characters at once. Store the result of encoding in
4389 terminal_encode_buffer.
4c4475a8
GM
4390 (write_glyphs, insert_glyphs): Adjust for the change of
4391 encode_terminal_code.
aca7a3d2
MB
4392 (term_init): Initialize terminal_encode_buffer and
4393 terminal_encode_buf_size.
4394
4395 * coding.c (consume_chars): If coding->src_object is nil, don't
4396 check annotation.
4397
73acf815 43982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4399
4400 * character.c (char_string): Use ASCII_CHAR_P instead of
4401 SINGLE_BYTE_CHAR_P.
4402
73acf815 44032008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4404
4405 * xdisp.c (handle_auto_composed_prop): Check if the last
4406 characters of auto-composed region is newly composed with the
4407 following characters.
4408 (handle_composition_prop): Fix checking of point being inside
4409 composition.
4410
73acf815 44112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4412
4413 * fns.c (concat): Don't change multibyteness of the result by
4414 concatenating an 8-bit character.
4415
4416 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
4417 multibyteness of the result when newelt is an 8-bit character.
4418
73acf815 44192008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4420
4421 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
4422 EMACS_INT.
4423
4424 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
4425
4426 * xfaces.c (face_numeric_value): Declare dim size_t.
4427 (Finternal_lisp_face_equal_p): Remove unused f.
4428
4429 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
4430 (MATRIX_ROW): Remove unused vars.
4431 (draw_glyphs, x_insert_glyphs, fast_find_position)
4432 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
4433 byte/char counts.
4434
4435 * regex.c (regex_compile): Remove unused var.
4436
4437 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
4438
4439 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
4440 (Faccessible_keymaps, where_is_internal): Remove unused vars.
4441
4442 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
4443
4444 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
4445
4446 * fileio.c (Fwrite_region): Remove unused var.
4447
4448 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
4449 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
4450
4451 * composite.c (Fremove_list_of_text_properties): Declare.
4452
1f45f627
GM
4453 * coding.c (inhibit_pre_post_conversion): Remove (unused).
4454 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
4455 (coding_inherit_eol_type): Remove unused attrs.
4456 (detect_coding): Cast arg of detect_eol.
4457
4458 * charset.c (syms_of_charset): Remove unused var p.
4459 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
4460 byte/char counts.
4461
4462 * casetab.c (set_case_table): Remove unused var.
4463
4464 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 4465 unused vars.
aca7a3d2 4466
73acf815 44672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4468
4469 * xterm.c (x_bitmap_mask): Declare.
4470
73acf815 44712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4472
4473 * xterm.c (x_term_init): Fix type error.
4474
4475 * lisp.h: Add Funibyte_char_to_multibyte.
4476
4477 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
4478 (Fset_coding_system_priority): Doc fix.
4479
aca7a3d2
MB
4480 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
4481
4482 * indent.c (check_composition): Make start and end EMACS_INT.
4483
4484 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
4485
4486 * xdisp.c (handle_composition_prop, check_point_in_composition):
4487 Make buffer positions EMACS_INT.
4488
4489 * composite.c (find_composition, run_composition_function)
4490 (update_compositions, Ffind_composition_internal): Make buffer
4491 positions EMACS_INT.
4492
4493 * composite.h (find_composition, update_compositions): Make
4494 position args EMACS_INT.
4495
1f45f627 4496 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
4497
4498 * intervals.c (get_property_and_range):
4499 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
4500
4501 * unexalpha.c: Don't include varargs.h.
4502
73acf815 45032008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4504
4505 * coding.h (ENCODE_UTF_8): New.
4506
4507 * Makefile.in (gtkutil.o): Depend on coding.h.
4508
4509 * coding.c (Fset_coding_system_priority): Doc fix.
4510
73acf815 45112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4512
4513 * fileio.c (Finsert_file_contents): Call setup_coding_system in
4514 the case of auto saving.
4515
73acf815 45162008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 4517
4c4475a8
GM
4518 * chartab.c (map_char_table, map_char_table_for_charset): Protect
4519 `range' from GC.
aca7a3d2 4520
73acf815 45212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4522
4523 * coding.c (decode_coding_sjis): Check bytes more rigidly.
4524
73acf815 45252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4526
1f45f627 4527 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
4528 (Fwrite_region): Set Vlast_coding_system_used to the return value
4529 of choose_write_coding_system.
4530
73acf815 45312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4532
4533 * charset.c (Fset_charset_priority): Pay attention to duplicated
4534 arguments.
4535
4536 * coding.c (QCcategory): New variable.
4537 (syms_of_coding): Defsym it. Set all elements of
4538 Vcoding_category_table and their symbol values.
4539 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
4540 coding-category-XXX, and coding-category-list.
4541 (Fdefine_coding_system_internal): Add category in the plist.
4542
73acf815 45432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4544
4545 * callproc.c (Fcall_process): Handle carryover correctly.
4546
1f45f627 4547 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
4548 (raw_text_coding_system): Check NILP (coding_system).
4549 (coding_inherit_eol_type): Check NILP (coding_system) and
4550 NILP (parent).
4551 (consume_chars): Fix for the case of raw-text.
4552
4553 * process.c (read_process_output): Handle carryover correctly.
4554
73acf815 45552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4556
4557 * regex.c (re_search_2): Fix last change.
4558
73acf815 45592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4560
4561 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
4562 target_multibyte. Even in a unibyte case, return a converted
4563 multibyte char.
4564 (GET_CHAR_AFTER): New macro.
4565 (PATFETCH): Translate via multibyte char.
4566 (HANDLE_UNIBYTE_RANGE): Delete this macro.
4567 (SETUP_MULTIBYTE_RANGE): New macro.
4568 (regex_compile): Setup compiled code so that its multibyteness
4569 matches that of a target. Fix the handling of "[X-YZ]" using
4570 SETUP_MULTIBYTE_RANGE.
4571 (analyse_first) <charset>: For filling fastmap for all multibyte
4572 characters, don't check by BASE_LEADING_CODE_P.
4573 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
4574 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 4575 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
4576 (TARGET_CHAR_AND_LENGTH): Delete this macro.
4577 (TRANSLATE_VIA_MULTIBYTE): New macro.
4578 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
4579 It is the same as RE_MULTIBYTE_P (bufp) now.
4580 <exactn>: Translate via multibyte.
4581 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
4582 translate it.
4583 <charset, charset_not>: Fetch a character by
4584 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
4585 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
4586 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
4587 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
4588 by GET_CHAR_AFTER.
c5ad7a3d 4589 (bcmp_translate): Likewise.
aca7a3d2
MB
4590
4591 * search.c (compile_pattern): Check the member target_multibyte,
4592 not the member multibyte of buf.
4593
4594 * lread.c (read1): While reading a string, set force_singlebyte
4595 and force_multibyte correctly.
4596
4c4475a8
GM
4597 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
4598 up of unibyte_to_multibyte_table.
aca7a3d2 4599
73acf815 46002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4601
4602 * coding.c (setup_coding_system): If coding has
4603 post-read-conversion or pre-write-conversion, set
4604 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
4605 respectively.
4606 (decode_coding_gap): Run post-read-conversion if any.
4607
4608 * fileio.c (Finsert_file_contents): Even if we read into a
4609 unibyte buffer, check if we must decode the result or not.
4610
73acf815 46112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4612
4613 * coding.c (make_conversion_work_buffer): Change the work buffer
4614 name to the same one as that of Emacs 21.
4615
73acf815 46162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4617
1f45f627 4618 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
4619 (code_conversion_restore): Don't extern it.
4620
4621 * coding.c (detected_mask): Delete unused variable.
4622 (decode_coding_iso_2022): Pay attention to the byte sequence of
4623 CTEXT extended segment, and retain those bytes as is.
4624 (decode_coding_ccl): Delete unused variable `valids'.
4625 (setup_coding_system): Delete unused variable `category'.
4626 (consume_chars): Delete unused variable `category'. Make it work
4627 for non-multibyte case.
1f45f627 4628 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
4629 (saved_coding): Delete unused variable.
4630 (code_conversion_restore): Don't check saved_coding->destination.
4631 (code_conversion_save): New function.
4632 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
4633 instead of record_unwind_protect.
1f45f627 4634 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 4635 (detect_coding_system): Delete unused variable `mask'.
1f45f627 4636 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
4637
4638 * fileio.c (kill_workbuf_unwind): New function.
4639 (Finsert_file_contents): On replacing, call
4640 make_conversion_work_buffer with correct args, and call
4641 record_unwind_protect with the first arg kill_workbuf_unwind.
4642
4643 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
4644
73acf815 46452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4646
1f45f627 4647 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
4648 (fontset_add): Fix for the case that TO is less than TO1.
4649 (Ffontset_info): Don't use fallback fontset on checking the
4650 default fontset.
4651 (dump_fontset): New function for debugging.
4652
4653 * coding.c (Fdefine_coding_system_internal): Fix for the case that
4654 coding_type is Qcharset.
4655
73acf815 46562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4657
4658 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
4659 (map_char_table): Don't inherit the value from the parent on
1f45f627 4660 initializing VAL. Adjust for the above change.
aca7a3d2 4661
73acf815 46622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4663
4664 * coding.c (Qsignature, Qendian): Delete these variables.
4665 (syms_of_coding): Don't initialize them.
4666 (CATEGORY_MASK_UTF_16_AUTO): New macro.
4667 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
4668 detect_info->found.
4669 (decode_coding_utf_16): Don't detect BOM here.
4670 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
4671 is NOT utf_16_without_bom.
4672 (setup_coding_system): For a coding system of type utf-16, check
4673 if the attribute :endian is Qbig or not (not nil or not), and set
4674 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
4675 (detect_coding): If coding type is utf-16 and BOM detection is
4676 required, detect it.
4677 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 4678 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 4679
73acf815 46802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4681
4682 * coding.c (coding_set_source): Fix for the case that the current
4683 buffer is different from coding->src_object.
4684 (decode_coding_object): Don't use the conversion work buffer if
4685 DST_OBJECT is a buffer.
4686
73acf815 46872008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4688
4689 * lread.c (read_emacs_mule_char) [len==2]: Index
4690 emacs_mule_charset correctly.
4691
73acf815 46922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4693
4694 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
4695 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 4696 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
4697 treated specially.)
4698 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
4699 (detected_mask): Remove Big5 bits.
4700
73acf815 47012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4702
4703 The following changes are to make the font rescaling facility
4704 compatible with Emacs 21.
4705
1f45f627 4706 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
4707 Vface_resizing_fonts.
4708 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 4709 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
4710 (split_font_name): Set font->rescale_ratio.
4711 (better_font_p): Pay attention to font->rescale_ratio.
4712 (build_scalable_font_name): Likewise. Change RESX, and RESY
4713 fields.
1f45f627 4714 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 4715
73acf815 47162008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4717
4718 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
4719 (Qutf_16_le): Remove these variables.
4720 (syms_of_coding): Don't DEFSYM them.
4721 (decode_coding_utf_16): Fix handling of BOM.
4722 (encode_coding_utf_16): Fix handling of BOM.
4723
73acf815 47242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4725
4726 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 4727 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 4728
73acf815 47292008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4730
4731 * coding.c (Fcheck_coding_systems_region): Fix type errors.
4732
73acf815 47332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4734
4735 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
4736 and fix C types.
4737
73acf815 47382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4739
4740 * xdisp.c (SKIP_GLYPHS): New macro.
4741 (set_cursor_from_row): Pay attention to string display properties.
4742
4743 * category.c (copy_category_entry): Fix for the case that RANGE
4744 is an integer.
4745
4746 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
4747
1f45f627 4748 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 4749
73acf815 47502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4751
4752 * charset.c (Fcharset_id_internal): New function.
4753 (syms_of_charset): Defsubr it.
4754
4755 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
4756 with the last arg charset_list acquired from coding.
4757 (Fdefine_coding_system_internal): For ccl-based coding system, fix
4758 the attribute coding_attr_ccl_valids.
4759
4760 * coding.h (enum define_coding_ccl_arg_index): Set the first
4761 member coding_arg_ccl_decoder to coding_arg_max.
4762
1f45f627 4763 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
4764
4765 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
4766 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
4767 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
4768 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
4769 last arg Qnil.
aca7a3d2 4770
73acf815 47712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4772
4773 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
4774 call encode_char.
4775
1f45f627 4776 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 4777
73acf815 47782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 4779
1f45f627 4780 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 4781
73acf815 47822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4783
4784 * dispextern.h (check_face_attributes, generate_ascii_font_name)
4785 (font_name_registry): Don't extern them.
1f45f627 4786 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
4787
4788 * fontset.h (Qfontset): Don't extern it.
4789 (new_fontset_from_font_name): Extern it.
4790
4791 * fontset.c: Give 8 extra slots to fontset objects.
4792 (Qfontset_info): New variable.
4793 (syms_of_fontset): Defsym it.
4794 (FONTSET_FALLBACK): New macro.
4795 (fontset_face): Try also the default fontset.
1f45f627
GM
4796 (make_fontset): Realize a fallback fontset from the default fontset.
4797 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
4798 using split_font_name_into_vector and build_font_name_from_vector.
4799 (Fset_fontset_font): Access the elements of font_spec by enum
4800 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
4801 name by using split_font_name_into_vector.
4802 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
4803 generate a proper font name from the fontset name. Update
4804 Vfontset_alias_alist.
4805 (n_auto_fontsets): New variable.
4806 (new_fontset_from_font_name): New function.
4807 (Ffont_info): Store the information about fonts generated from the
1f45f627 4808 default fontset in the first extra slot of the returned char-table.
aca7a3d2 4809
1f45f627
GM
4810 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
4811 (font_name_registry): Delete function.
aca7a3d2
MB
4812 (split_font_name_into_vector): New function.
4813 (build_font_name_from_vector): New function.
1f45f627 4814 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
4815 (choose_face_font): If we are choosing an ASCII font, and ATTRS
4816 specifies an explicit font name, return the name as is. Make a
4817 list of registy names.
4818
1f45f627 4819 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
4820 of x_new_fontset.
4821 (Fx_create_frame): Don't call x_new_fontset here. Just use
4822 x_list_fonts to check the existence of fonts.
4823
1f45f627 4824 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
4825
4826 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
4827 string. Use new_fontset_from_font_name to create a fontset from a
4828 font name.
4829
1c8658b9
GM
48302008-02-01 Kenichi Handa <handa@m17n.org>
4831
4832 * syntax.c (Vfind_word_boundary_function_table): New name for
4833 Vnext_word_boundary_function_table.
4834 (find-word-boundary-function-table): New name for
4835 next-word-boundary-function-table.
4836
73acf815 48372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4838
4839 * Makefile.in: Fix some dependencies.
4840
4841 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
4842 set it to nil before returning.
4843
4844 * composite.c (update_compositions): Fix type error.
4845
4846 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
4847
73acf815 48482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4849
4850 * xterm.c (x_new_font): Optimize for the case that the font is
4851 already set for the frame.
4852
73acf815 48532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4854
4855 * chartab.c (char_table_ascii): Check if the char table contents
4856 is sub-char-table or not.
4c4475a8
GM
4857 (char_table_set, char_table_set_range): Fix argument to
4858 char_table_ascii.
aca7a3d2
MB
4859
4860 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
4861 (detect_coding_utf_8, detect_coding_utf_16)
4862 (detect_coding_emacs_mule, detect_coding_iso_2022)
4863 (detect_coding_sjis, detect_coding_big5)
4864 (detect_coding_ccl, detect_coding_charset): Change argument MASK
4865 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 4866 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
4867 (MAX_ANNOTATION_LENGTH): New macro.
4868 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
4869 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
4870 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 4871 (ADD_CHARSET_DATA): New macro.
1f45f627 4872 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
4873 (decode_coding_emacs_mule, decode_coding_iso_2022)
4874 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
4875 Produce charset annotation data in coding->charbuf.
4876 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
4877 to charset annotation data in coding->charbuf.
4878 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
4879 coding->common_flags if the coding system is iso-2022 based and
4880 uses designation.
1f45f627 4881 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
4882 (produce_charset): New function.
4883 (produce_annotation): Handle charset annotation.
4884 (handle_composition_annotation, handle_charset_annotation): New
4885 functions.
4886 (consume_chars): Handle charset annotation. Utilize the above two
4887 functions.
4888 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
4889 buffer, get the deleted text as a string and set
4890 coding->src_object to that string.
4891 (detect_coding, detect_coding_system): Use the new struct
4892 coding_detection_info.
4893
4894 * coding.h (struct coding_detection_info): New structure.
1f45f627 4895 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
4896 (CODING_ANNOTATE_CHARSET_MASK): New macro.
4897
73acf815 48982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4899
4900 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
4901
73acf815 49022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 4903
1f45f627 4904 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
4905 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
4906 to new local and nullify apropos_accumulate before returning.
4907 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
4908
73acf815 49092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4910
4911 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
4912 correctly.
4913
73acf815 49142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4915
4916 * fns.c (Flanginfo): Call synchronize_system_time_locale.
4917
73acf815 49182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4919
4920 The following changes are to make character composition happen
4921 automatically on displaying.
4922
4923 * Makefile.in (lisp, shortlisp): Add composite.elc
4924
1f45f627
GM
4925 * composite.h (Qauto_composed, Vauto_composition_function)
4926 (Qauto_composition_function): Extern them.
aca7a3d2 4927
1f45f627
GM
4928 * composite.c (Vcomposition_function_table)
4929 (Qcomposition_function_table): Delete variables.
4930 (Qauto_composed, Vauto_composition_function)
4931 (Qauto_composition_function): New variables.
aca7a3d2
MB
4932 (run_composition_function): Don't call
4933 compose-chars-after-function.
4934 (update_compositions): Clear `auto-composed' text property.
4935 (compose_chars_in_text): Delete this function.
4936 (syms_of_composite): Staticpro Qauto_composed and
4937 Qauto_composition_function. Declare Vauto_composition_function as
4938 a Lisp variable.
4939
4940 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
4941
4942 * xdisp.c (it_props): Add an entry for Qauto_composed.
4943 (handle_auto_composed_prop): New function.
4944
4945 * xselect.c (selection_data_to_lisp_data): Don't call
4946 compose_chars_in_text.
4947
73acf815 49482008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4949
4950 * keyboard.c (read_char): Modify checking around use of
4951 Vkeyboard_translate_table.
4952
4953 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
4954 and fix C types.
4955
73acf815 49562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4957
4c4475a8
GM
4958 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
4959 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4960 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 4961 the case that the last byte is '\r' correctly.
1f45f627
GM
4962 (decode_coding): Flush out the unprocessed data correctly.
4963 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 4964
73acf815 49652008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4966
4967 * xterm.c (XTread_socket): Fix changes for defined keysyms. Add
4968 XK_ISO... case.
4969 (xaw_scroll_callback): Revert last change.
4970
73acf815 49712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 4972
1f45f627 4973 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 4974
73acf815 49752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
4976
4977 * xfaces.c (Vface_resizing_fonts): New variable.
4978 (struct font_name): New member `resizing_ratio'.
4979 (font_resizing_ratio): New function.
4980 (split_font_name): Set font->resizing_ratio.
4981 (better_font_p): Pay attention to font->resizing_ratio.
4982 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
4983 RESX, and RESY fields.
4984 (try_alternative_families): Try scalable fonts if
4985 Vscalable_fonts_allowed is not Qt.
4986 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
4987
73acf815 49882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4989
4990 * xterm.c (xaw_scroll_callback): Cast correctly.
4991
73acf815 49922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
4993
4994 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
4995 (lispy_kana_keys): Comment out.
4996 (make_lispy_event) [XK_kana_A]: Comment out.
4997
4998 * xterm.c (xaw_scroll_callback): Cast call_data.
4999 (XTread_socket): Deal with ASCII keysyms.
5000 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
5001
73acf815 50022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5003
5004 * xterm.c (Vx_keysym_table): New.
5005 (syms_of_xterm): Initialize it.
5006 (XTread_socket): Use it.
5007 From head: Eliminate incorrect optimization that tried to avoid
5008 decoding the output of X*LookupString.
5009 (x_get_font_repertory): Delete charset declaration.
5010
73acf815 50112008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5012
1f45f627
GM
5013 * coding.c (detect_coding_charset): If only ASCII bytes are found,
5014 return 0.
aca7a3d2
MB
5015 (Fdefine_coding_system_internal): Setup
5016 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
5017
73acf815 50182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5019
5020 * coding.c (Fcheck_coding_system): Doc fix.
5021
5022 * editfns.c (Finsert_byte): Return a proper value.
5023
73acf815 50242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5025
5026 * coding.c (decode_coding): Fix args to translate_chars. Pay
5027 attention to Vstandard_translation_table_for_decode.
5028 (encode_coding): Fix args to translate_chars. Pay attention to
5029 Vstandard_translation_table_for_encode.
5030
5031 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
5032 SINGLE_BYTE_CHAR_P.
5033
5034 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
5035 not by SINGLE_BYTE_CHAR_P.
5036
5037 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
5038 SINGLE_BYTE_CHAR_P.
5039
5040 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
5041 SINGLE_BYTE_CHAR_P.
5042
5043 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
5044 by SINGLE_BYTE_CHAR_P.
5045
5046 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
5047 SINGLE_BYTE_CHAR_P.
5048
73acf815 50492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5050
5051 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
5052
73acf815 50532008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5054
5055 * fns.c (Flanginfo): Fix typo.
5056
5057 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
5058
73acf815 50592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5060
4c4475a8
GM
5061 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
5062 (detect_coding_emacs_mule, detect_coding_iso_2022)
5063 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
5064 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 5065 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 5066 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 5067 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 5068
73acf815 50692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5070
1f45f627
GM
5071 * character.c (char_string): Rename from
5072 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
5073 (string_char): Rename from string_char.
aca7a3d2 5074
4c4475a8
GM
5075 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
5076 if C is greater than MAX_3_BYTE_CHAR.
5077 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
5078 string_char instead of string_char_with_unification.
aca7a3d2 5079
73acf815 50802008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5081
5082 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
5083
73acf815 50842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5085
1f45f627 5086 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
5087
5088 * regex.c (re_search_2): Fix for the case of unibyte buffer.
5089
73acf815 50902008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5091
5092 * charset.c (define_charset_internal): Rename `supprementary'.
5093
5094 * Makefile.in (lisp, shortlisp): Remove latin-N.
5095
73acf815 50962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5097
5098 * xfns.c (x_window, x_window): Use use_xim.
5099
5100 * xterm.c (use_xim): Initialize.
5101 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
5102 (x_term_init): Maybe set use_xim.
5103
5104 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
5105
73acf815 51062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5107
5108 * search.c (search_buffer): Fix case-fold-search of multibyte
5109 characters.
5110 (boyer_moore): Rename the last argument to char_high_bits.
5111
73acf815 51122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5113
5114 * xdisp.c (display_string): Fix for the case of zero width glyph.
5115
5116 * xfns.c (x_set_font): Change the error message of the case that
5117 x_new_fontset returns Qt.
5118
5119 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
5120 (Finternal_set_lisp_face_attribute): Use signal_error for the
5121 error of invalid fontset.
5122
5123 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
5124 fontset, return Qt.
5125
73acf815 51262008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 5127
aca7a3d2
MB
5128 * unexelf.c (unexec): Make .got handling not SGI-specific.
5129
5130 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
5131
5132 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
5133
5134 * keyboard.c (read_key_sequence): Fix type error.
5135
5136 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
5137 type error.
5138
5139 * fontset.c (fontset_add): Return Lisp_Object.
5140
73acf815 51412008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5142
5143 * charset.h (charset_ordered_list_tick): Declare extern.
5144
73acf815 51452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5146
73acf815 5147 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
5148 for handling syntax, category, and case conversion for unibyte
5149 characters by converting them to multibyte on the fly. With these
5150 changes, we don't have to setup syntax and case tables for unibyte
5151 characters in each language environment.
5152
5153 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
5154 multibyte if necessary.
5155
5156 * bytecode.c (Fbyte_code): Likewise.
5157
5158 * character.h (LEADING_CODE_LATIN_1_MIN)
5159 (LEADING_CODE_LATIN_1_MAX): New macros.
5160 (unibyte_to_multibyte_table): Extern it.
5161 (unibyte_char_to_multibyte): New macro.
5162 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
5163 (CHAR_LEADING_CODE): New macro.
5164 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
5165
5166 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 5167 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
5168 (multibyte_char_to_unibyte): If C is an eight-bit character,
5169 convert it to the corresponding byte value.
5170
5171 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
5172 not 1, singals an error. Update the elements of
5173 unibyte_to_multibyte_table.
5174 (init_charset_once): Initialize unibyte_to_multibyte_table.
5175 (syms_of_charset): Define the charset `iso-8859-1'.
5176
aca7a3d2
MB
5177 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
5178 as is without converting it to unibyte. In a unibyte buffer,
5179 convert C to multibyte before checking the syntax.
5180
1f45f627 5181 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
5182
5183 * minibuf.c (Fminibuffer_complete_word): Use the macro
5184 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
5185
5186 * regex.h (struct re_pattern_buffer): New member target_multibyte.
5187
5188 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
5189 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
5190 that is zero, convert an eight-bit char to multibyte.
5191 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
5192 non-emacs case.
5193 (PATFETCH): Convert an eight-bit char to multibyte.
5194 (HANDLE_UNIBYTE_RANGE): New macro.
5195 (regex_compile): Setup the compiled pattern for multibyte chars
5196 even if the given regex string is unibyte. Use PATFETCH_RAW
5197 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 5198 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 5199 only for ASCII chars.
1f45f627 5200 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
5201 is multibyte.
5202 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
5203 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 5204 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
5205 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
5206 multibyte always 1.
5207 (re_search_2): In emacs, set the locale variable multibyte to 1,
5208 otherwise to 0. New local variable target_multibyte. Check it
5209 to decide the multibyteness of STR1 and STR2. If
5210 target_multibyte is zero, convert unibyte chars to multibyte
5211 before translating and checking fastmap.
5212 (TARGET_CHAR_AND_LENGTH): New macro.
5213 (re_match_2_internal): In emacs, set the locale variable multibyte
5214 to 1, otherwise to 0. New local variable target_multibyte. Check
5215 it to decide the multibyteness of STR1 and STR2. Use
5216 TARGET_CHAR_AND_LENGTH to fetch a character from D.
5217 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 5218 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
5219 target_multibyte, not with multibyte.
5220 <begline>: Declare the local variable C as `unsigned'.
5221 (bcmp_translate): Change the last arg name to target_multibyte.
5222
5223 * search.c (compile_pattern_1): Don't adjust the multibyteness of
5224 the regexp pattern and the matching target. Set cp->buf.multibyte
5225 to the multibyteness of the regexp pattern. Set
1f45f627 5226 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
5227 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
5228 FETCH_STRING_CHAR_ADVANCE.
5229 (Freplace_match): Convert unibyte chars to multibyte.
5230
4c4475a8
GM
5231 * syntax.c (char_quoted, back_comment, scan_words)
5232 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
5233 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 5234 unibyte chars to multibyte.
1f45f627
GM
5235 (skip_chars): Delete the arg syntaxp, and move the code for
5236 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
5237 Fix the case that the multibyteness of STRING and the current
5238 buffer doesn't match.
5239 (skip_syntaxes): New function.
5240 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
5241 SINGLE_BYTE_CHAR_P.
aca7a3d2 5242
73acf815 52432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5244
5245 * xfaces.c (QCfontset): New variable.
5246 (LFACE_FONTSET): New macro.
5247 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
5248 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
5249 (Finternal_set_lisp_face_attribute)
5250 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
5251 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
5252 check also LFACE_FONTSET_INDEX.
5253 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
5254 attrs[LFACE_FONT_INDEX].
5255 (syms_of_xfaces): Intern and staticpro QCfontset.
5256
5257 * dispextern.h (enum lface_attribute_index): New member
5258 LFACE_FONTSET_INDEX.
5259
5260 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
5261
73acf815 52622008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5263
5264 * coding.c (coding_set_destination): Fix coding->destination for
5265 the case converting a region.
5266 (encode_coding_utf_8): Encode eight-bit chars as single byte.
5267 (encode_coding_object): Fix coding->dst_pos and
5268 coding->dst_pos_byte for the case converting a region.
5269
5270 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
5271
5272 * character.h (BYTE8_STRING): New macro.
5273
5274 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
5275
73acf815 52762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5277
5278 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
5279 characters by octal form.
5280
5281 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
5282
1f45f627 5283 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
5284 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
5285 _fetch_multibyte_char_len.
aca7a3d2
MB
5286 (FETCH_CHAR_AS_MULTIBYTE): New macro.
5287
1f45f627 5288 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 5289
1f45f627 5290 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 5291 the case conversion change the byte length.
1f45f627 5292 (casify_region): Likewise.
aca7a3d2 5293
1f45f627 5294 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 5295
1f45f627 5296 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
5297 (syms_of_character): Setup Vprintable_chars.
5298
5299 * editfns.c (Fchar_equal): Fix for the unibyte case.
5300 (Finsert_byte): New function.
5301 (syms_of_editfns): Defsubr it.
5302
5303 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
5304 of direct code 0x3ffff.
5305
5306 * search.c (Freplace_match): Fix for the unibyte case.
5307
73acf815 53082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5309
5310 * lread.c (safe_to_load_p): Fix the logic.
5311
5312 * syntax.c (scan_words): Don't treat characters belonging to
5313 different scripts as constituting a word.
5314
5315 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
5316
1f45f627 5317 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
5318
5319 * emacs.c (main): In the case of --unibyte, instead of aborting on
5320 finding non-empty buffer, make it unibyte.
5321
73acf815 53222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5323
5324 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
5325 to create a fontset.
5326
73acf815 53272008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5328
5329 * character.c (Funibyte_char_to_multibyte): Doc fix.
5330
5331 * xfns.c [HAVE_STDLIB_H]: Fix last change.
5332
73acf815 53332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5334
5335 * fontset.c (fontset_add): Make the type `int'.
5336 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
5337
4c4475a8
GM
5338 * character.c (unibyte_char_to_multibyte)
5339 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 5340 charset_unibyte, not charset_primary.
aca7a3d2 5341
1f45f627 5342 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 5343
1f45f627
GM
5344 * charset.c (charset_unibyte): Rename from charset_primary.
5345 (Funibyte_charset): Rename from Fprimary_charset.
5346 (Fset_unibyte_charset): Rename from Fset_primary_charset.
5347 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
5348
5349 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
5350 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
5351 it->multibyte_p is zero.
5352
5353 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 5354 Delete extern.
aca7a3d2 5355
73acf815 53562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5357
5358 * coding.c (Fdefine_coding_system_internal): Fix category setting
5359 for a coding system of type iso-2022.
5360
73acf815 53612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5362
1f45f627 5363 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 5364
73acf815 53652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5366
5367 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
5368 (next-word-boundary-function-table): Declare it as a Lisp variable
5369 in syms_of_syntax.
aca7a3d2
MB
5370 (scan_words): Call functions in Vnext_word_boundary_function_table
5371 if any.
5372
5373 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
5374
5375 * fontset.c (fs_load_font): If fontp->charset is not negative,
5376 return fontp without setting its members.
5377
73acf815 53782008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 5379
aca7a3d2
MB
5380 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
5381
5382 * m/sparc.h (HAVE_ALLOCA): Delete.
5383
5384 * s/irix6-5.h: Don't include strings.h.
5385 (bcopy, bzero, bcmp): Don't undef.
5386
5387 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
5388
5389 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
5390 (TIOCSIGSEND): Don't test IRIX6.
5391 (bcopy, bzero, bcmp): Define conditionally.
5392
73acf815 53932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5394
5395 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 5396 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
5397 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
5398
5399 * callproc.c (Fcall_process): Don't call insert_1_both directly if
5400 we are inserting a process output into a multibyte buffer.
5401
5402 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
5403 multibyte_char_to_unibyte.
5404
5405 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
5406 by the primary charset, make it eight-bit char.
5407 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
5408
1f45f627
GM
5409 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
5410 (charset_8_bit__control, charset_8_bit_graphic)
5411 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
5412 (define_charset_internal): New function.
5413 (syms_of_charset): Call define_charset_internal for pre-defined
5414 charsets.
5415
5416 * charset.h (charset_8_bit): Extern it.
5417
1f45f627 5418 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
5419 of Fset_buffer_multibyte.
5420 (encode_coding_raw_text): Increment p0 in the loop.
5421
1f45f627 5422 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 5423
1f45f627 5424 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
5425 for the change of Fset_buffer_multibyte.
5426
5427 * fns.c (Fstring_to_multibyte): New function.
5428 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
5429
73acf815 54302008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5431
5432 * xfns.c (x_put_x_image): Declare args.
5433
1f45f627 5434 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
5435 (try_font_list): Declare an arg.
5436
5437 * xdisp.c (message2_nolog, set_message): Declare an arg.
5438
5439 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
5440
5441 * syntax.c (scan_sexps_forward): Declare an arg.
5442
5443 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
5444 Declare an arg.
5445
5446 * lisp.h (Fnew_fontset): Declare.
5447
5448 * keymap.c (push_key_description): Call CHARACTERP correctly.
5449
1f45f627 5450 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
5451 (face_for_char): Delete unused vars.
5452 (Fset_fontset_font): Doc fix. Delete unused vars.
5453
5454 * doc.c (Fsubstitute_command_keys): Delete unused vars.
5455
5456 * composite.c (update_compositions): Declare arg.
5457
5458 * cm.c (calccost, cmgoto): Declare args.
5459
5460 * charset.c: Remove `emacs' conditional. Doc fixes.
5461 (map_char_table_for_charset): Declare.
5462
1f45f627 5463 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 5464
1f45f627 5465 * ccl.c: Remove `emacs' conditional.
aca7a3d2 5466
73acf815 54672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5468
5469 The following changes are to allow specifying multiple font
5470 patterns for a character range (specified by script or charset).
5471
5472 * Makefile.in (abbrev.o): Depend on syntax.h.
5473 (xfaces.o): Depend on charset.h.
5474
5475 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
5476 SINGLE_BYTE_CHAR_P.
5477
5478 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
5479
5480 * character.h (Vchar_script_table): Extern it.
5481
1f45f627 5482 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
5483 (Vchar_script_table, Qchar_script_table): New variable.
5484 (syms_of_character): Declare Vchar_script_table as a lisp variable
5485 and initialize it.
5486
1f45f627 5487 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
5488 have property char-table-extra-slots, make no extra slot.
5489
1f45f627 5490 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
5491 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
5492 SINGLE_BYTE_CHAR_P.
1f45f627
GM
5493 (choose_face_font, lookup_non_ascii_face, font_name_registry):
5494 Add prototypes.
5495 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
5496 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
5497
5498 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 5499 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
5500 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
5501
5502 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 5503 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
5504 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
5505 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
5506 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
5507 (fontset_ref_and_range, fontset_add, reorder_font_vector)
5508 (load_font_get_repertory): New functions.
1f45f627 5509 (fontset_set): Delete.
aca7a3d2 5510 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 5511 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
5512 (free_face_fontset): Use ASET istead of AREF (X) = Y.
5513 (face_for_char): Don't call lookup_face.
5514 (make_fontset_for_ascii_face): New arg FACE.
5515 (fs_load_font): New arg CHARSET_ID. Don't check
5516 Vfont_encoding_alist here.
5517 (find_font_encoding): New function.
5518 (list_fontsets): Use STRINGP, not ! NILP.
5519 (accumulate_script_ranges): New function.
5520 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
5521 re-written to handle new fontset structure.
5522 (Ffontset_font): Return a copy of element.
5523 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
5524 docstring of font-encoding-alist.
5525
5526 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
5527 (Fset_fotset_font): Fix arguments to 5.
5528
1f45f627 5529 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
5530
5531 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
5532 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 5533 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
5534 lookup_named_face.
5535
5536 * xfaces.c: Include charset.h.
1f45f627
GM
5537 (load_face_font): Delete argument C. Change caller.
5538 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
5539 (font_name_registry): New function.
5540 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 5541 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
5542 Lookup only ascii faces.
5543 (lookup_non_ascii_face): New function.
1f45f627
GM
5544 (lookup_named_face): Delete argument C. Change caller.
5545 (lookup_derived_face): Delete argument C. Change caller.
5546 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 5547 a string, just call font_list with it.
1f45f627
GM
5548 (choose_face_font): Delete arguments FACE and C. New arg
5549 FONT_SPEC. Change caller.
4c4475a8
GM
5550 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
5551 Change caller.
aca7a3d2
MB
5552 (realize_non_ascii_face): New function.
5553 (realize_x_face): Call load_face_font here.
1f45f627 5554 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
5555 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
5556 get a face ID.
5557 (dump_realized_face): Don't print charset of FACE.
5558
5559 * xfns.c (x_set_font): Always call x_new_fontset and
5560 store_frame_parameter.
5561 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 5562 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
5563
5564 * xterm.h (x_get_font_repertory): Extern it.
5565
5566 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
5567 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
5568 it->multibyte_p is zero.
5569 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
5570 (x_new_fontset): If FONTSETNAME doesn't match any existing
5571 fontsets, create a new one.
5572 (x_get_font_repertory): New function.
5573
73acf815 55742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5575
5576 * coding.c (Ffind_coding_systems_region_internal): Detect an
5577 ASCII only string correctly.
5578
5579 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
5580 version is 0.
5581
73acf815 55822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5583
5584 * lread.c: Include "coding.h".
1f45f627
GM
5585 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
5586 (load_each_byte, unread_char): New variables.
5587 (readchar_backlog): Delete.
aca7a3d2
MB
5588 (readchar): Return a character unless load_each_byte is nonzero.
5589 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
5590 cons. If unread_char is not -1, simply return it.
5591 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
5592 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
5593 (read_multibyte): Delete.
aca7a3d2
MB
5594 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
5595 (read_emacs_mule_char): New functions.
5596 (Fload): Even if the file doesn't have the extention ".elc", if
5597 safe_to_load_p returns a positive version number, assume that the
5598 file contains bytecompiled code. If the version is less than 22,
5599 load the file while decoding multibyte sequences by emacs-mule.
5600 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
5601 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
5602 (Fread_from_string): Pay attention to the case that STREAM is a cons.
5603 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
5604 (read1): Set load_each_byte to 1 temporarily while handling
5605 #@NUMBER. Don't call read_multibyte.
5606 (read_vector): Call Fread with a cons. If readcharfun is
5607 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 5608 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
5609 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
5610 and Qload_force_doc_strings.
5611
73acf815 56122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5613
5614 * xdisp.c (face_before_or_after_it_pos): Call
5615 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
5616
73acf815 56172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5618
5619 * character.h (TRAILING_CODE_P): New macro.
1f45f627 5620 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
5621 (string_char_with_unification): Fix prototype.
5622 (Vscript_alist): Extern it.
5623
5624 * character.c (Vscript_alist): New variable.
4c4475a8
GM
5625 (string_char_with_unification, str_as_unibyte)
5626 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
5627 (syms_of_character): Declare script-alist as a Lisp variable.
5628
5629 * charset.h (Vcharset_ordered_list): Extern it.
5630 (charset_ordered_list_tick): Extern it.
5631 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
5632 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
5633 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
5634 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros
1f45f627 5635 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
5636
5637 * charset.c (charset_ordered_list_tick): New variable.
5638 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
5639 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
5640 deunify intead of unify a charset.
5641 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
5642 (find_charsets_in_text): Add `const' to arguemnts and local variables.
5643 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
5644 detecting of invalid code.
5645 (Fset_charset_priority): Increment charset_ordered_list_tick.
5646 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
5647 and TO_CODE.
5648
5649 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
5650 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
5651 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
5652 (decode_coding_ccl, consume_chars)
5653 (Ffind_coding_systems_region_internal)
5654 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
5655
5656 * print.c (print_object): Use octal form for printing the
5657 contents of a bool vector.
5658
73acf815 56592008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5660
5661 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
5662 <version == 20>: Refuse to load.
5663
73acf815 56642008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5665
5666 * fns.c: Move coding.h.
5667 (Qcodeset, Qdays, Qmonths): New.
5668 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 5669 (Flocale_codeset): Delete.
aca7a3d2 5670 (Flanginfo): New function.
1f45f627 5671 (syms_of_fns): Change accordingly.
aca7a3d2
MB
5672
5673 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
5674
73acf815 56752008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5676
5677 * casetab.c (init_casetab_once, init_casetab_once): Fix
5678 CHAR_TABLE_SET call.
5679
5680 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
5681
5682 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
5683
5684 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
5685 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
5686 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
5687
5688 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
5689
5690 * coding.c (ENCODE_DESIGNATION, decode_eol)
5691 (make_conversion_work_buffer, code_conversion_restore)
5692 (Fdefine_coding_system_internal): Convert Lisp types.
5693 (code_conversion_restore): Use EQ, not ==.
5694 (Fencode_coding_string): Fix code_convert_string call.
5695
5696 * coding.h (code_convert_region): Fix prototype.
5697
1f45f627 5698 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
5699
5700 * fontset.c (fontset_ref, fontset_set, fs_load_font)
5701 (Ffontset_info): Convert Lisp types.
5702
5703 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
5704
5705 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
5706
5707 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
5708
5709 * chartab.c: Include "...h", not <...h> in some cases.
5710
5711 * callproc.c (Fcall_process): Remove unused variables.
5712
73acf815 57132008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5714
5715 * coding.c (Fset_coding_system_priority): Allow null arg list.
5716
73acf815 57172008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5718
5719 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
5720 (Fself_insert_and_exit): Use CHARACTERP.
5721
5722 * callproc.c (Fcall_process): Remove unused vars.
5723
5724 * xterm.c (XTread_socket): Add extra dead keysyms.
5725
5726 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
5727
5728 * dispextern.h: Remove prototypes for redraw_frame,
5729 redraw_garbaged_frames.
5730
5731 * cmds.c (Fself_insert_command): Use CHARACTERP.
5732
5733 * chartab.c (make_sub_char_table): Remove unused var.
5734 (Fset_char_table_default, Fmap_char_table): Doc fix.
5735
5736 * keymap.c (access_keymap): Remove generic char code.
5737 (push_key_description): Use CHARACTERP.
5738
73acf815 57392008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5740
5741 * charset.c: Doc fixes.
5742 (Funify_charset): Extra checking.
5743
73acf815 57442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5745
5746 * lread.c: Remove some unused variables.
5747 (safe_to_load_p): If safe, return the magic number version byte.
5748 (Fload): Maybe use load-with-code-conversion.
5749
73acf815 57502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5751
5752 * category.c (Fmodify_category_entry): Don't modify the contents
5753 of category_set for characters out of the range. Avoid
5754 unnecessary modification.
5755
1f45f627 5756 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
5757 Vchar_unify_table. The default value of the table is now nil.
5758
5759 * character.c (syms_of_character): Setup Vchar_width_table for
5760 eight-bit-control and raw-byte chars.
5761
5762 * charset.h (enum define_charset_arg_index): Delete
5763 charset_arg_parents and add charset_arg_subset and
5764 charset_arg_superset.
5765 (enum charset_attr_index): Delete charset_parents and add
5766 charset_subset and charset_superset.
5767 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
5768 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 5769 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
5770 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
5771 (CHARSET_SUPERSET): New macros.
5772 (charset_work): Extern it.
5773 (ENCODE_CHAR): Use charset_work.
1f45f627 5774 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
5775 (map_charset_chars): Extern it.
5776
5777 * charset.c (load_charset_map): Set the default value of encoder
5778 and deunifier char-tables to nil.
1f45f627 5779 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
5780 map_char_table_for_charset instead of map_char_table.
5781 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 5782 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
5783 `define-charset' (:parents -> :subset or :superset).
5784 (charset_work): New variable.
4c4475a8
GM
5785 (encode_char, syms_of_charset): Adjust for the change of
5786 Fdefine_charset_internal.
aca7a3d2
MB
5787 (Ffind_charset_string): Setup the vector `charsets' correctly.
5788
1f45f627 5789 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 5790 the previous change.
1f45f627 5791 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
5792 (map_sub_char_table_for_charset): New function.
5793 (map_char_table_for_charset): New function.
5794
5795 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 5796 (describe_char_table): Delete.
aca7a3d2 5797
1f45f627 5798 * lisp.h (map_charset_chars): Delete.
aca7a3d2 5799
73acf815 58002008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5801
5802 * fns.c (count_combining): Comment out (unused).
5803 (Flocale_codeset): New.
5804 (syms_of_fns): Defsubr it.
5805
5806 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 5807 (size_t): Remove.
aca7a3d2 5808
73acf815 58092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 5810
6f69e89b 5811 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 5812
73acf815 58132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5814
5815 * character.c (syms_of_character): Set the default value of
5816 Vprintable_chars to Qnil.
5817
73acf815 58182008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5819
5820 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
5821
73acf815 58222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5823
5824 * charset.c (load_charset_map): Handle the case that from < to
5825 correctly.
5826
4c4475a8
GM
5827 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
5828 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
5829 Pay attention to raw-8-bit chars.
aca7a3d2 5830
73acf815 58312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5832
4c4475a8
GM
5833 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
5834 It is not bytecompiled now.
aca7a3d2
MB
5835
5836 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
5837 (charset_jisx0208): New variables.
5838 (Fdefine_charset_internal): Setup them if appropriate.
5839 (init_charset_once): Initialize them to -1.
5840
1f45f627
GM
5841 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
5842 (charset_jisx0208): Extern them.
aca7a3d2
MB
5843
5844 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro
5845 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
5846 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
5847 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
5848 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
5849 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
5850 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
5851 (encode_coding_iso_2022): Change the 1st arg to
5852 ENCODE_ISO_CHARACTER to a variable.
5853
73acf815 58542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5855
5856 * charset.h (enum define_charset_arg_index): New enums
5857 charset_arg_min_code and charset_arg_max_code.
5858 (struct charset): New member char_index_offset.
5859
4c4475a8
GM
5860 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
5861 Take charset->char_index_offset into account.
aca7a3d2
MB
5862 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
5863 args[charset_arg_max_code]. Setup charset.char_index_offset.
5864 (syms_of_charset): Fix args to Fdefine_charset_internal.
5865
73acf815 58662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5867
5868 * coding.c (decode_coding_utf_8): Reject overlong sequences.
5869
73acf815 58702008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5871
5872 * coding.c: Doc fixes.
5873 (Fcoding_system_aliases): Fix return value.
5874 (Qmac): Remove (duplicated) definition.
5875
73acf815 58762008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5877
5878 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
5879 functions.
5880
5881 * character.c (Fstring): Doc fix.
5882
5883 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
5884
5885 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
5886 ids.
5887 (font-encoding-alist): Doc fix.
5888
73acf815 58892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5890
5891 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 5892 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
5893
5894 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
5895 for K&R.
5896
5897 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
5898
5899 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 5900 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 5901
1f45f627 5902 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
5903
5904 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
5905
73acf815 59062008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5907
5908 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
5909
1f45f627 5910 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 5911
73acf815 59122008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
5913
5914 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
5915
1f45f627 5916 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 5917
73acf815 59182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5919
4c4475a8 5920 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 5921 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 5922
73acf815 59232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5924
1f45f627 5925 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
5926 Fdefine_coding_system_internal.
5927 (Fdefine_coding_system_internal): For a coding system of
5928 `charset' type, store a list of charset IDs in
5929 `charset_attr_charset_valids' element of coding attributes.
5930
73acf815 59312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5932
5933 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
5934 (emacs_mule_char): New arg src. Delete arg `composition'. Change
5935 caller. Handle 2-byte and 3-byte charsets correctly.
5936 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
5937 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
5938 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
5939 (DECODE_EMACS_MULE_21_COMPOSITION): Call
5940 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
5941 sequence.
5942 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 5943 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
5944 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
5945 and alt&rule composition.
5946 (decode_coding_iso_2022): Handle composition correctly.
5947 (init_coding_once): Setup emacs_mule_bytes for private charsets.
5948
5949 * charset.c (Fdefine_charset_internal): Fix bug for the case of
5950 re-defining a charset. If the charset has :emacs-mule-id, setup
5951 emacs_mule_bytes.
1f45f627 5952 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 5953
73acf815 59542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 5955
4c4475a8
GM
5956 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
5957 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
5958 encoding, produce a character specified by
5959 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 5960
73acf815 59612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5962
5963 * xterm.c (XSetIMValues): Declare.
5964
5965 * process.c: Conditionally include sys/wait.h, pty.h.
5966
1f45f627 5967 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 5968
1f45f627 5969 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
5970
5971 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
5972
5973 * fontset.c (Fclear_face_cache): Declare.
1f45f627 5974 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
5975 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
5976 variables.
5977
5978 * character.h (string_escape_byte8): Declare.
5979
5980 * charset.c (load_charset_map, load_charset_map_from_file): Remove
5981 unused vars.
5982 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
5983 (Fmap_charset_chars): Doc fix.
5984
1f45f627 5985 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
5986 (Fset_coding_system_priority, Fset_coding_system_priority)
5987 (Fdefine_coding_system_internal): Doc fix.
5988
73acf815 59892008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
5990
5991 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
5992
73acf815 59932008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
5994
5995 * character.c (string_escape_byte8): Make multibyte string with
5996 correct size.
5997
5998 * charset.c (Fmake_char): Delete unnecessary code.
5999
73acf815 60002008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6001
6002 * xfns.c (x_encode_text): Allocate coding.destination here, and
6003 call encode_coding_object with dst_object Qnil.
6004
6005 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
6006 multibyte form correctly.
6007
6008 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
6009 against Vfont_encoding_alist.
6010
6011 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
6012 handling of charset list.
6013 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
6014 (decode_coding_object): Move point to coding->dst_pos before
6015 calling post-read-conversion function.
6016 (encode_coding_object): Give correct arguments to
6017 pre-write-conversion. Ignore the return value of
6018 pre-write-conversion function. Pay attention to the case that
6019 pre-write-conversion changes the current buffer. If dst_object is
6020 Qt, even if coding->src_bytes is zero, allocate at least one byte
6021 to coding->destination.
6022
6023 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
6024
6025 * charset.c (Fmake_char): Make it more backward compatible.
6026 (Fmap_charset_chars): Fix docstring.
6027
73acf815 60282008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6029
6030 * coding.c: Doc fixes.
6031 (Fdefine_coding_system_alias): Use names, not symbols, in
6032 coding-system-alist.
6033
73acf815 60342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6035
6036 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
6037 of calling free_realized_face.
6038
73acf815 60392008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 6040
1f45f627
GM
6041 * charset.c (read_hex): Don't treat SPC as a comment starter.
6042 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
6043 (Fdecode_char): Fix typo.
6044
73acf815 60452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6046
6047 * charset.h (struct charset): New member `code_space_mask'.
6048
1f45f627 6049 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
6050 (encode_coding_charset, Fdefine_coding_system_internal):
6051 Delete the local variable charset.
aca7a3d2
MB
6052 (Fdefine_coding_system_internal): Setup
6053 attrs[coding_attr_charset_valids] correctly.
6054
6055 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
6056 member to check if CODE is valid or not.
6057 (Fdefine_charset_internal): Initialize `code_space_mask' member.
6058 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
6059 is within the range of charset->min_code and carset->max_code.
6060
73acf815 60612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
6062
6063 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
6064
6065 * dispextern.h (generate_ascii_font): Fix return type.
6066
6067 * xfaces.c (generate_ascii_font): Fix arg declaration.
6068
6069 * coding.c (coding_inherit_eol_type)
6070 (Fset_terminal_coding_system_internal)
6071 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
6072
73acf815 60732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6074
6075 * coding.c (decode_coding_charset, encode_coding_charset): Handle
6076 multiple charsets correctly.
6077
73acf815 60782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6079
6080 * search.c (boyer_moore): Fix handling of mulitbyte character
6081 translation.
6082
6083 * xdisp.c (display_mode_element): When the variable `elt' is
6084 changed, update `this' and `lisp_string'.
6085
73acf815 60862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6087
6088 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
6089
6090 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 6091 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
6092
6093 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
6094 (load_charset_map): Rename from parse_charset_map. New args
6095 entries and n_entries. Change caller.
6096 (load_charset_map_from_file): Rename from load_charset_map.
6097 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
6098 the tail.
6099 (load_charset_map_from_vector): New function.
6100 (Fdefine_charset_internal): Setup charset.compact_codes_p.
6101 (encode_char): If the charset is compact, change a character index
6102 to a code point.
6103
6104 * coding.c (coding_alloc_by_making_gap): Check the case that the
6105 source and destination are the same correctly.
6106 (decode_coding_raw_text): Set coding->consumed_char and
6107 coding->consumed to 0.
6108 (produce_chars): If coding->chars_at_source is nonzero, update
6109 coding->consumed_char and coding->consumed before calling
6110 alloc_destination.
6111 (Fdefine_coding_system_alias): Register ALIAS in
6112 Vcoding_system_alist.
6113 (syms_of_coding): Define `no-convesion' coding system at the tail.
6114
6115 * fileio.c (Finsert_file_contents): Set coding_system instead of
6116 val. If the current buffer is multibyte, always call
6117 decode_coding_gap.
6118
6119 * xfaces.c (try_font_list): Give higher priority to fontset's
6120 family than face's family.
6121
73acf815 61222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6123
6124 * callproc.c (Fcall_process): Be sure to give the current buffer
6125 to decode_coding_c_string.
6126
6127 * xfaces.c (try_font_list): Give a family specified in a fontset
6128 higher priority than a family specified in a face.
6129
73acf815 61302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6131
6132 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
6133 Fix arguments to insert_from_buffer.
6134
6135 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
6136
73acf815 61372008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6138
6139 * coding.c (produce_chars): Set the variable `multibytep' correctly.
6140 (decode_coding_gap): Set coding->dst_multibyte correctly.
6141
73acf815 61422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6143
6144 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 6145 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
6146 (encode_coding_utf_16): Substitute coding->default_char for
6147 non-Unicode characters.
6148 (decode_coding): Don't call record_insert here.
6149 (setup_coding_system): Initialize `surrogate' of
6150 coding->spec.utf_16 to 0.
6151 (EMIT_ONE_BYTE): Fix for multibyte case.
6152
6153 * insdel.c (insert_from_gap): Call record_insert.
6154
73acf815 61552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6156
6157 * casefiddle.c (casify_region): Fix multibyte case.
6158
6159 * character.c (c_string_width): Add return type `int'.
1f45f627 6160 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
6161
6162 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 6163 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
6164 (CHAR_STRING_ADVANCE): Make it do-while statement.
6165
1f45f627 6166 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
6167 DEPTH == 3. Add workaround code for a GCC optimization bug.
6168
6169 * charset.c (parse_charset_map): Remove an unused variable.
6170
6171 * coding.c: Delete unused variables.
6172
6173 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
6174 earlier. If inserted is zero and the coding system doesn't
6175 require flushing, don't call decode_coding_gap.
6176
6177 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
6178
73acf815 61792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6180
6181 The following changes are for using Unicode as an internal
6182 character model, and use UTF-8 format for buffer/string
6183 representation.
6184
1f45f627 6185 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
6186 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
6187
6188 * Makefile.in (obj): Add character.o and chartab.o.
6189 (lisp, shortlisp): Remove utf-8.elc:
6190 (*.o): For many files, change dependency on charset.h to
6191 character.h, and add dependency on character.h.
6192 (character.o, chartab.o): New targets.
6193
1f45f627
GM
6194 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
6195 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
6196 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
6197 of "charset.h".
6198
6199 * dired.c, filelock.c: Include "character.h".
6200
6201 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 6202 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
6203 (syms_of_alloc): Remove defsubr for Smake_char_table.
6204
6205 * buffer.c: Include "character.h" instead of "charset.h", don't
6206 include "coding.h".
1f45f627 6207 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
6208
6209 * buffer.h: EXFUN Fbuffer_live_p.
6210
6211 * callproc.c: Include "character.h" instead of "charset.h".
6212 (Fcall_process): Big change for the new code-conversion APIs.
6213
6214 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 6215 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
6216 map_char_table spec.
6217 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
6218 accessing the char table structure.
6219
6220 * chartab.c: New file that implements char table.
6221
6222 * category.c: Include "character.h".
6223 (copy_category_entry): New function.
6224 (copy_category_table): Call map_char_table and copy_category_entry.
6225 (Fmake_category_table): Initialize all top-vel slots.
6226 (char_category_set): New function.
1f45f627 6227 (modify_lower_category_set): Delete.
aca7a3d2
MB
6228 (Fmodify_category_entry): Call char_table_ref_and_range.
6229
6230 * category.h (CATEGORY_SET): Just call char_category_set.
6231
6232 * ccl.c: Include "character.h".
6233 (Qccl, Qcclp): New variables.
6234 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
6235 it's less than 256.
1f45f627
GM
6236 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
6237 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 6238 and DST type.
1f45f627
GM
6239 (ccl_driver): Change types of argument, adjust code accordingly.
6240 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
6241 ccl_driver.
6242 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
6243
1f45f627
GM
6244 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
6245 New members src_multibyte, dst_multibyte, consumed, and produced.
6246 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 6247 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 6248 (ccl_driver): Update prototype.
aca7a3d2
MB
6249 (Qccl, Qcclp, Fccl_program_p): Extern them.
6250 (CHECK_CCL_PROGRAM): New macro.
6251
6252 * character.c, character.h, chartab.c: New files.
6253
1f45f627
GM
6254 * charset.c: Mostly re-written. Move character and multibyte sequence
6255 handling codes to character.c.
aca7a3d2 6256
1f45f627
GM
6257 * charset.h: Mostly re-written. Move character and multibyte sequence
6258 handling codes to character.h.
aca7a3d2
MB
6259
6260 * coding.c, coding.h: Mostly re-written.
6261
6262 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
6263 (CHAR_WIDTH): Move to character.h.
6264 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 6265
1f45f627
GM
6266 * composite.h (enum composition_method): Change order of enumeration
6267 symbols.
aca7a3d2
MB
6268
6269 * data.c: Include "character.h" instead of "charset.h".
6270 (Faref): Call CHAR_TABLE_REF for a char table.
6271 (Faset): Call CHAR_TABLE_SET for a char table.
6272
1f45f627
GM
6273 * dispextern.h (free_realized_face, check_face_attribytes)
6274 (generate_ascii_font): Extern them.
6275 (free_realized_multibyte_face): Delete extern.
aca7a3d2 6276
1f45f627 6277 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
6278 table structure.
6279
6280 * editfns.c: Include "character.h" instead of "charset.h".
6281 (Fchar_to_string): Always call CHAR_STRING.
6282
6283 * emacs.c (main): Call init_charset_once, init_charset,
6284 syms_of_chartab, and syms_of_character.
6285
6286 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 6287 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 6288 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 6289 (build_annotations_2): Delete.
aca7a3d2
MB
6290 (e_write): Big change for the new code-conversion API.
6291
6292 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 6293 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
6294 (Fcopy_sequence): Call copy_char_table for a char table.
6295 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
6296 (string_char_to_byte, string_byte_to_char): Adjust for the new
6297 multibyte form.
1f45f627
GM
6298 (internal_equal): Adjust for the change of char table structure.
6299 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
6300 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
6301 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
6302 (char_table_translate, optimize_sub_char_table)
6303 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 6304 chartab.c.
1f45f627
GM
6305 (char_table_ref_and_index): Delete.
6306 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 6307 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
6308 Vcoding_category_list. Adjust for the new code-conversion API.
6309 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
6310 chartab.c.
6311
6312 * fontset.c: Mostly re-written.
6313
1f45f627 6314 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 6315 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
6316 (fontset_font_pattern, fs_load_font): Update prototype.
6317 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
6318
6319 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 6320 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
6321
6322 * insdel.c: Include "character.h" instead of "charset.h".
6323 (copy_text): Don't refer to Vnonascii_translation_table.
6324 (insert_from_gap): New function.
6325
6326 * keyboard.c: Include "character.h" instead of "charset.h".
6327 (command_loop_1): Never call direct_output_forward_char before
6328 a non-ASCII character.
6329 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 6330 translate a character.
aca7a3d2
MB
6331
6332 * keymap.c: Include "character.h".
6333 (store_in_keymap): Handle the case that IDX is a cons.
6334 (Fdefine_key): Handle the case that KEY is a cons and the car part
6335 is also a cons (range).
1f45f627 6336 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
6337 (describe_vector): Call describe_char_table for a char table.
6338 (describe_char_table): New function.
6339
6340 * keymap.h (describe_char_table): Extern it.
6341
6342 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
6343 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
6344 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
6345 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
6346 Delete.
6347 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
6348 structure.
6349 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
6350 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
6351 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 6352 (chartab_size): Extern it.
1f45f627 6353 (struct Lisp_Char_Table): Re-design.
aca7a3d2 6354 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
6355 (HASH_KEY, HASH_VALUE): Move from fns.c.
6356 (CHARACTERBITS): Define as 22.
6357 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
6358 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
6359 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
6360 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
6361 (code_convert_string_norecord): Deleted extern.
6362 (init_character_once, syms_of_character, init_charset)
6363 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
6364
6365 * lread.c: Include "character.h".
6366 (read_multibyte): New arg NBYTES.
1f45f627
GM
6367 (read_escape): Change the meaning of returned *BYTEREP.
6368 (to_multibyte): Delete.
6369 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
6370
6371 * print.c: Include "character.h" instead of "charset.h".
6372 (print_string): Convert 8-bit raw bytes to octal form by
6373 string_escape_byte8.
1f45f627 6374 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
6375 raw bytes always in octal form. Handle sub char table correctly.
6376
6377 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
6378 (read_process_output, send_process): Adjust for the new
6379 code-conversion API.
aca7a3d2 6380
1f45f627 6381 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
6382
6383 * regex.c: Include "character.h" instead of "charset.h".
6384 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
6385 (regex_compile): Accept a range whose starting and ending
6386 character have different leading bytes.
1f45f627 6387 (analyse_first): Adjust for the above change.
aca7a3d2
MB
6388
6389 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
6390 (search_buffer, boyer_moore): Adjust for the new multibyte form.
6391 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
6392
6393 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 6394 (syntax_parent_lookup): Delete.
aca7a3d2 6395 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 6396 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
6397 (init_syntax_once): Call char_table_set_range instead of directly
6398 accessing the structure of a char table.
6399
6400 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 6401 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
6402 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
6403 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
6404
6405 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
6406 (encode_terminal_code, write_glyphs): Adjust for the new
6407 code-conversion API.
aca7a3d2
MB
6408 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
6409
1f45f627 6410 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
6411
6412 * xdisp.c: Include "character.h".
1f45f627
GM
6413 (get_next_display_element): Adjust for the new multibyte form.
6414 (disp_char_vector): Adjust for the new char table structure.
6415 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 6416 coding system.
1f45f627 6417 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
6418
6419 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 6420 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
6421 FS_LOAD_FONT.
6422 (generate_ascii_font): New function.
1f45f627
GM
6423 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
6424 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 6425 (free_realized_face): Make it public.
1f45f627 6426 (free_realized_faces_for_fontset): Rename from
aca7a3d2 6427 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 6428 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
6429 fontset_font_pattern and FS_LOAD_FONT.
6430
6431 * xfns.c: Include "character.h".
1f45f627 6432 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
6433
6434 * xselect.c: Don't include "charset.h".
1f45f627 6435 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
6436
6437 * xterm.c: Include "character.h".
1f45f627 6438 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
6439 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
6440 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
6441 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
6442 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
6443 (XTread_socket): Adjust for the new code-conversion API.
6444 (x_new_font): Adjust for the change of FS_LOAD_FONT.
6445 (x_load_font): Adjust for the change of struct font.
aca7a3d2 6446
d6abfc14
SM
64472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
6448
6449 * xfaces.c (face_at_buffer_position): Remove unused vars.
6450
0acdaf8d
KH
64512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6452
4c4475a8
GM
6453 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
6454 Fix overflow checking.
0acdaf8d 6455
6c8a0ebf
GM
64562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
6457
6458 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
6459 Cancel previous change.
6460
64612008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
6462
6463 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
6464 ccl->eight_bit_control. Fix check for buffer overflow.
6465 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
6466 (ccl_driver): Initialize extra_bytes to 0.
6467
a32aad64
KH
64682008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
6469
6470 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
6471 return it ORed with ctrl_modifier.
6472
8b329dba
MB
64732008-01-29 Miles Bader <miles@gnu.org>
6474
6475 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
6476
548667aa
JR
64772008-01-28 Jason Rumney <jasonr@gnu.org>
6478
6479 * w32.c (stat): Don't double check for networked drive.
6480
0975aa24
SM
64812008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
6482
ef264c42
SM
6483 * window.c (run_window_configuration_change_hook): New function.
6484 Code extracted from set_window_buffer. Set the selected frame.
6485 (set_window_buffer): Use it.
6486 * window.h (run_window_configuration_change_hook): Declare.
6487 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
6488
0975aa24
SM
6489 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
6490
9c28b587
DN
64912008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
6492
6493 * Makefile.in: Remove references to unused macros.
6494
c617afce
EZ
64952008-01-26 Eli Zaretskii <eliz@gnu.org>
6496
6497 * w32.c (g_b_init_get_sid_sub_authority)
6498 (g_b_init_get_sid_sub_authority_count): New static variables.
6499 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
6500 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
6501 (init_user_info): Use them to retrieve uid and gid.
6502 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
6503 (fstat): Use pw_uid and pw_gid from the_passwd structure for
6504 st_uid and st_gid of the file.
c617afce 6505
302d7d54
JR
65062008-01-26 Jason Rumney <jasonr@gnu.org>
6507
6508 * w32.c (logon_network_drive): New function.
6509 (stat): Use it.
6510
3ac7a21e
CY
65112008-01-26 Chong Yidong <cyd@stupidchicken.com>
6512
6513 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
6514 invisible text covered with an ellipsis.
6515
bbb9fc1f
RS
65162008-01-25 Richard Stallman <rms@gnu.org>
6517
6518 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
6519 jump back to beginning. Move some other initializations after that.
6520 (Qwindow_text_change_functions, Vwindow_text_change_functions):
6521 New variables.
6522 (syms_of_xdisp): Init them.
6523
6524 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
6525
0975aa24
SM
6526 * buffer.c (reset_buffer_local_variables):
6527 Implement `permanent-local-hook'.
bbb9fc1f 6528 (Qpermanent_local_hook): New variable.
0975aa24 6529 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 6530
79235cbe
MA
65312008-01-25 Michael Albinus <michael.albinus@gmx.de>
6532
6533 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
6534
ccd8f7fe
TTN
65352008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
6536
6537 * fns.c (Fclrhash): Return TABLE.
6538
dfbe40f2 65392008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
6540
6541 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
6542 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
6543 is set even without positional changes.
6544 (x_scroll_bar_clear): Set bar->redraw_needed_p.
6545
6546 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
6547
dfbe40f2 65482008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 6549
d6169680
JR
6550 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
6551
602e142f
JR
6552 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
6553 the unicode range available in MULE by locale-coding-system.
c041e2d1 6554 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
6555 earlier.
6556
dfbe40f2 65572008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
6558
6559 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
6560 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 6561 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
6562 when used on child processes.
6563
8c7a4ac5
MA
65642008-01-21 Michael Albinus <michael.albinus@gmx.de>
6565
e0df1b73 6566 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 6567 Fdbus_method_return.
e0df1b73 6568 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 6569 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 6570 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 6571
8abe0f97
MR
65722008-01-20 Martin Rudalics <rudalics@gmx.at>
6573
6574 * undo.c (undo_inhibit_record_point): New variable.
6575 (syms_of_undo): Initialize it.
6576 (record_point): Don't record point when undo_inhibit_record_point
6577 is set.
6578
c3b232e4
SM
65792008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
6580
e69c4cae
SM
6581 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
6582
823e0ebb
SM
6583 * xdisp.c (Qauto_hscroll_mode): New var.
6584 (syms_of_xdisp): Initialize it.
6585 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
6586 window's buffer.
6587 (hscroll_windows): Don't check automatic_hscrolling_p here.
6588
c3b232e4
SM
6589 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
6590 vscroll if we're setting window-buffer to the value it already has.
6591
76ed5e01
DN
65922008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
6593
6594 * m/intel386.h: Remove references to XENIX.
6595
55e6d9b2
AS
65962008-01-17 Andreas Schwab <schwab@suse.de>
6597
6598 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
6599 instead of HAVE_X86_64_LIB64_DIR.
6600 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
6601
b16ed52d
GM
66022008-01-17 Glenn Morris <rgm@gnu.org>
6603
6604 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
6605 to HAVE_X86_64_LIB64_DIR.
6606
6bed5c4a
DN
66072008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
6608
6609 * s/irix3-3.h:
6610 * s/irix4-0.h:
6611 * s/386-ix.h:
6612 * s/domain.h:
6613 * s/hpux9-x11r4.h:
6614 * s/hpux9shxr4.h: Remove files for systems no longer supported.
6615
6616 * sysdep.c: Remove code containing references to symbols defined
6617 by unsupported systems.
6618
fdecf907
GM
66192008-01-16 Glenn Morris <rgm@gnu.org>
6620
6621 * coding.c (select-safe-coding-system-function): Doc fix.
6622
9292328f
GM
66232008-01-15 Glenn Morris <rgm@gnu.org>
6624
6625 * config.in: Revert 2008-01-13 change: this is a generated file.
6626
944df511
MO
66272008-01-13 Tom Tromey <tromey@redhat.com>
6628
6629 * lisp.h: Fix typo.
6630
8111ec05
DN
66312008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
6632
f40f5dc3
DN
6633 * m/sequent-ptx.h:
6634 * m/sequent.h:
6635 * s/ptx.h:
6636 * s/ptx4-2.h:
6637 * s/ptx4.h: Remove files for systems no longer supported.
6638
ce20b664 6639 * callproc.c (Fcall_process): Fix previous change.
8111ec05 6640
e39a993c
DN
66412008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
6642
052e457f 6643 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 6644
290afd83
JB
6645 * m/mips.h:
6646 * m/intel386.h:
e39a993c
DN
6647 * callproc.c:
6648 * config.in:
6649 * ecrt0.c:
6650 * emacs.c:
6651 * fileio.c:
6652 * frame.c:
6653 * getpagesize.h:
6654 * keyboard.c:
6655 * lread.c:
6656 * process.c:
6657 * puresize.h:
6658 * sysdep.c:
6659 * systty.h:
6660 * syswait.h:
6661 * unexec.c:
6662 * xdisp.c:
6663 * alloc.c: Remove code containing references to symbols defined by
6664 unsupported systems.
6665
81cd7687
KH
66662008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
6667
6668 * coding.c (detect_coding_mask): Fix previous change.
6669
218b3b76
KH
66702008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
6671
6672 * coding.c (detect_coding_iso2022): New arg
6673 latin_extra_code_state. Allow Latin extra codes only
6674 when *latin_extra_code_state is nonzero.
6675 (detect_coding_mask): If there is a NULL byte, detect the encoding
6676 as UTF-16 or binary. If Latin extra codes exist, detect the
6677 encoding as ISO-2022 only when there's no other proper encoding is
6678 found.
6679
59ce725a 66802008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 6681
59ce725a
MB
6682 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
6683 #ifdef MAC_OS.
048addec 6684
59ce725a 66852008-01-08 Richard Stallman <rms@gnu.org>
048addec 6686
59ce725a 6687 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 6688
8290574e
NR
66892008-01-06 Nick Roberts <nickrob@snap.net.nz>
6690
a0a3805c 6691 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
6692 menu bar in parentheses.
6693
f3041af1
DN
66942008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
6695
6696 * m/7300.h:
6697 * m/acorn.h:
6698 * m/alliant-2800.h:
6699 * m/alliant.h:
6700 * m/alliant1.h:
6701 * m/alliant4.h:
6702 * m/altos.h:
6703 * m/amdahl.h:
6704 * m/apollo.h:
6705 * m/att3b.h:
6706 * m/aviion-intel.h:
6707 * m/aviion.h:
6708 * m/celerity.h:
6709 * m/clipper.h:
6710 * m/cnvrgnt.h:
6711 * m/convex.h:
6712 * m/cydra5.h:
6713 * m/delta88k.h:
6714 * m/dpx2.h:
6715 * m/dual.h:
6716 * m/elxsi.h:
6717 * m/f301.h:
6718 * m/gould-np1.h:
6719 * m/gould.h:
6720 * m/i860.h:
6721 * m/ibmps2-aix.h:
6722 * m/ibmrt-aix.h:
6723 * m/ibmrt.h:
6724 * m/irist.h:
6725 * m/is386.h:
6726 * m/isi-ov.h:
6727 * m/mega68.h:
6728 * m/mg1.h:
6729 * m/news-r6.h:
6730 * m/news-risc.h:
6731 * m/news.h:
6732 * m/nh3000.h:
6733 * m/nh4000.h:
6734 * m/ns16000.h:
6735 * m/ns32000.h:
6736 * m/nu.h:
6737 * m/orion.h:
6738 * m/orion105.h:
6739 * m/paragon.h:
6740 * m/pfa50.h:
6741 * m/plexus.h:
6742 * m/pyramid.h:
6743 * m/pyrmips.h:
6744 * m/sh3el.h:
6745 * m/sps7.h:
6746 * m/sr2k.h:
6747 * m/stride.h:
6748 * m/sun1.h:
6749 * m/sun2.h:
6750 * m/sun3-68881.h:
6751 * m/sun3-fpa.h:
6752 * m/sun3-soft.h:
6753 * m/sun3.h:
6754 * m/sun386.h:
6755 * m/symmetry.h:
6756 * m/tad68k.h:
6757 * m/tahoe.h:
6758 * m/targon31.h:
6759 * m/tek4300.h:
6760 * m/tekxd88.h:
6761 * m/tower32.h:
6762 * m/tower32v3.h:
6763 * m/ustation.h:
6764 * m/wicat.h:
6765 * m/xps100.h:
6766 * s/cxux.h:
6767 * s/cxux7.h:
6768 * s/dgux.h:
6769 * s/dgux4.h:
6770 * s/dgux5-4-3.h:
6771 * s/dgux5-4r2.h:
6772 * s/esix.h:
6773 * s/esix5r4.h:
6774 * s/hiuxmpp.h:
6775 * s/hiuxwe2.h:
6776 * s/iris3-5.h:
6777 * s/iris3-6.h:
6778 * s/isc2-2.h:
6779 * s/isc3-0.h:
6780 * s/isc4-0.h:
6781 * s/isc4-1.h:
6782 * s/newsos5.h:
6783 * s/newsos6.h:
6784 * s/osf1.h:
6785 * s/osf5-0.h:
6786 * s/riscix1-1.h:
6787 * s/riscix12.h:
6788 * s/sco4.h:
6789 * s/sco5.h:
6790 * s/sunos4-0.h:
6791 * s/sunos4-1.h:
6792 * s/sunos413.h:
6793 * s/sunos4shr.h:
6794 * s/umax.h:
6795 * s/unipl5-2.h:
6796 * s/xenix.h:
6797 * cxux-crt0.s:
6798 * unexapollo.c:
6799 * unexconvex.c:
6800 * unexenix.c:
6801 * unexsni.c: Remove files for systems no longer supported.
6802
6803 * m/intel386.h: Remove references to unsupported systems.
6804
6805 * w32.c (get_emacs_configuration): Remove reference to i860.
6806
6807 * sysdep.c: Remove dead code.
6808
d35e1cd7
DN
68092008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
6810
6811 * s/rtu.h:
a0a3805c 6812 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 6813
abe136ee
MA
68142008-01-04 Michael Albinus <michael.albinus@gmx.de>
6815
6816 * dbusbind.c (Fdbus_method_return): New function.
6817 (xd_read_message): Add the serial number to the event.
6818 (Fdbus_register_method): Activate the function.
6819
87df3c32
SM
68202008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
6821
6822 * keyboard.c (read_key_sequence): Fix typo.
6823
5125905e
MA
68242008-01-03 Michael Albinus <michael.albinus@gmx.de>
6825
6826 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
6827 (xd_signature, xd_append_arg): Handle element type detection for
6828 empty arrays.
6829 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
6830 SDATA () calls; this must be solved more general.
6831 (Fdbus_register_signal): Use SBYTES instead of strlen.
6832
8bba1b5c
MH
68332008-01-03 Magnus Henoch <magnus@zemdatav>
6834
6835 * dbusbind.c (xd_append_arg): Use unsigned char instead of
6836 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 6837 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 6838
a0a3805c 68392007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
6840
6841 * dbusbind.c (xd_read_message): Use non-static input_event struct.
6842
a271e124
MH
68432007-12-31 Magnus Henoch <mange@freemail.hu>
6844
6845 * dbusbind.c (xd_signature): Signature of variant is just "v".
6846
17bc8f94
MA
68472007-12-30 Michael Albinus <michael.albinus@gmx.de>
6848
87df3c32
SM
6849 * dbusbind.c: Fix several errors and compiler warnings.
6850 Reported by Tom Tromey <tromey@redhat.com>
17bc8f94
MA
6851 (XD_ERROR, XD_DEBUG_MESSAGE)
6852 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
6853 (xd_append_arg): Part for basic D-Bus types rewitten.
6854 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
6855 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
6856 appropriate.
6857 (xd_read_message): Return Qnil. Don't signal an error; it is not
6858 useful during event reading.
6859 (Fdbus_register_signal): Signal an error if the check for
6860 FUNCTIONP fails.
6861 (Fdbus_register_method): New function. The implementation is not
6862 complete, the call of the function signals an error therefore.
6863 (Fdbus_unregister_object): New function, renamed from
6864 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 6865 the object is not well formed.
17bc8f94 6866
dd6f2802
RS
68672007-12-30 Richard Stallman <rms@gnu.org>
6868
6869 * textprop.c (get_char_property_and_overlay):
6870 Signal error if POSITION is out of range in a buffer.
6871
1da8a031
MR
68722007-12-29 Martin Rudalics <rudalics@gmx.at>
6873
6874 * w32fns.c (Fx_create_frame): Make copy of frame parameters
6875 because the original parameters are in pure storage now.
6876
5742be86
YM
68772007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6878
6879 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
6880
b014713c
EZ
68812007-12-22 Eli Zaretskii <eliz@gnu.org>
6882
b17f53ab
MB
6883 * callint.c (syms_of_callint) <command-history>: Add reference to
6884 history-length in the doc string.
048addec 6885
b17f53ab 68862007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 6887
b17f53ab
MB
6888 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
6889 before passing as wParam.
048addec 6890
9af5078b
MA
68912007-12-22 Michael Albinus <michael.albinus@gmx.de>
6892
6893 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
6894 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
6895 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
6896 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
6897 as number.
6898 (Fdbus_call_method): Fix docstring.
6899
87cf1a39
MA
69002007-12-21 Michael Albinus <michael.albinus@gmx.de>
6901
6902 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
6903 New macros.
87df3c32 6904 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
6905 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
6906 Simplify.
87cf1a39
MA
6907 (xd_signature): New function.
6908 (xd_append_arg): Compute also signatures. Major rewrite.
6909 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
6910 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
6911 Check for signatures of arguments.
87cf1a39 6912
54371585
MA
69132007-12-19 Michael Albinus <michael.albinus@gmx.de>
6914
6915 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
6916 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
6917 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
6918 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
6919 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 6920 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
6921 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
6922 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 6923 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
6924 (xd_append_arg): New function.
6925 (Fdbus_call_method, Fdbus_send_signal): Apply it.
6926
f5306ca3
MA
69272007-12-16 Michael Albinus <michael.albinus@gmx.de>
6928
6929 * dbusbind.c (top): Include <stdio.h>.
6930 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
6931 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
6932 (Fdbus_register_signal): Rename unique_name to uname.
6933 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
6934 non-existing unique name. Fix typos in matching rule. Return an
6935 object which is useful in Fdbus_unregister_signal.
6936 (Fdbus_unregister_signal): Reimplementation, in order to remove
6937 only the corresponding entry.
6938 (Vdbus_registered_functions_table): Change the order of entries.
6939 Apply these changes in xd_read_message and Fdbus_register_signal.
6940
77a28bbf
AS
69412007-12-16 Andreas Schwab <schwab@suse.de>
6942
6943 * fileio.c (Finsert_file_contents): Fix overflow check to not
6944 depend on undefined integer overflow.
6945
2e3566d8
JR
69462007-12-14 Jason Rumney <jasonr@gnu.org>
6947
6948 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
6949 for characters above 127.
6950
bf254037
JR
69512007-12-13 Jason Rumney <jasonr@gnu.org>
6952
6953 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
6954 before dereferencing array.
6955 (lookup_vk_code): Remove zero comparison.
6956
eb7c7bf5
MA
69572007-12-14 Michael Albinus <michael.albinus@gmx.de>
6958
6959 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
6960 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
6961 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
6962 (xd_read_message, Fdbus_register_signal): Split expressions into
6963 multiple lines before operators "&&" and "||", according to the
6964 GNU Coding Standards.
6965
34fb0fc9
EZ
69662007-12-14 Eli Zaretskii <eliz@gnu.org>
6967
6968 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
6969
c7d97628
JL
69702007-12-12 Juri Linkov <juri@jurta.org>
6971
6972 * buffer.c (Frename_buffer): In interactive spec replace
6973 `read-buffer' with `read-string' that uses `buffer-name-history'
6974 as history, and the current buffer's name as default.
6975
3709505e
SM
69762007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
6977
6978 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
6979 manipulating the backtrace manually.
6980 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
6981 (struct backtrace, backtrace_list): Remove.
6982 (command_loop_1): Remove dead var `no_direct'.
6983
6984 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
6985 preserve non-built-in buffer-local variables.
6986 (Fkill_all_local_variables): Don't re-create&re-set permanent
6987 buffer-local variables.
6988
e2bec886
JL
69892007-12-09 Juri Linkov <juri@jurta.org>
6990
6991 * buffer.c (Frename_buffer): Change interactive spec from "s" to
6992 Lisp code that uses `read-buffer' with current buffer as default.
6993
a31d47c7
MA
69942007-12-08 Michael Albinus <michael.albinus@gmx.de>
6995
6996 * dbusbind.c (xd_read_message): Generate an event for every
6997 registered handler. There might be several handlers registered
6998 for the same signal.
6999 (Fdbus_register_signal): Don't overwrite a registration for the
7000 same signal. Add a new registration if handlers are different.
7001 (Vdbus_registered_functions_table): Rework doc string.
7002
52da95fa
MA
70032007-12-07 Michael Albinus <michael.albinus@gmx.de>
7004
7005 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
7006 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
7007 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
7008 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
7009 Unify argument lists.
a0a3805c 7010 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
7011 arguments and hash table keys. Use unique name for service.
7012 (Fdbus_unregister_signal): Remove checks.
7013 (Vdbus_registered_functions_table): Fix doc string.
7014
e5e76c04 70152007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
7016
7017 * process.c (make_process): Initialize pty_flag to 0.
7018
e5e76c04 70192007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
7020
7021 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
7022 specified XBMs.
7023
e5e76c04 70242007-12-05 Richard Stallman <rms@gnu.org>
048addec 7025
e5e76c04 7026 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 7027
e5e76c04 70282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 7029
e5e76c04
MB
7030 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
7031 New variable.
7032 (mac_try_close_socket) [MAC_OSX]: New function.
7033 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
7034 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 7035
e5e76c04
MB
7036 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
7037 Use mac_try_close_socket.
048addec 7038
e5e76c04 70392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 7040
e5e76c04
MB
7041 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
7042 reloc_base.
7043 (copy_dysymtab): Compute relocation base here.
7044 (rebase_reloc_address) [__ppc64__]: New function.
7045 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
7046 changed.
048addec 7047
e5e76c04 70482007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 7049
e5e76c04 7050 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 7051
e5e76c04 70522007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 7053
e5e76c04
MB
7054 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
7055 __objc_* sections.
7056 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 7057
96faeb40
MA
70582007-12-05 Michael Albinus <michael.albinus@gmx.de>
7059
7060 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
7061 Move check for Vdbus_registered_functions_table to
7062 xd_read_queued_messages.
7063 (xd_read_queued_messages): Protect xd_read_message calls by
7064 internal_condition_case_1.
7065
39abdd4a
MA
70662007-12-04 Michael Albinus <michael.albinus@gmx.de>
7067
87df3c32 7068 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 7069 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 7070 (Vdbus_intern_symbols): Remove.
39abdd4a 7071 (Vdbus_registered_functions_table): New hash table.
87df3c32 7072 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 7073 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 7074 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
7075 Vdbus_registered_functions_table.
7076
880820fe 70772007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
7078
7079 * xterm.c: Update URL to Window Manager Specification in comment.
7080
033b73e2
MA
70812007-12-02 Michael Albinus <michael.albinus@gmx.de>
7082
7083 * config.in (HAVE_DBUS): Add.
7084
a0a3805c 7085 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
7086 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
7087 (obj): Add $(DBUS_OBJ).
7088 (LIBES): Add $(DBUS_LIBS).
7089 (dbusbind.o): New target.
7090
7091 * dbusbind.c: New file.
7092
7093 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
7094
7095 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 7096 (Qdbus_event): New Lisp symbol.
033b73e2 7097 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 7098 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
7099 (keys_of_keyboard ): Define dbus-event.
7100
7101 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
7102
39d0bf74
RS
71032007-12-01 Richard Stallman <rms@gnu.org>
7104
7105 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
7106
f3157c65
JR
71072007-11-30 Jason Rumney <jasonr@gnu.org>
7108
7109 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
7110 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
7111 (w32_face_attributes): Don't use color indexes that are out of range.
7112 Only reverse the default colors.
f3157c65
JR
7113
7114 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
7115 WINDOWSNT.
7116
7117 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
7118
b510360c
JR
71192007-11-29 Jason Rumney <jasonr@gnu.org>
7120
7121 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
7122 (w32_face_attributes): Use Vtty_defined_color_alist to determine
7123 if the terminal colors are initialized.
7124 (unspecified_fg, unspecified_bg): Remove unused declarations.
7125
4b7ab1c4
AS
71262007-11-29 Andreas Schwab <schwab@suse.de>
7127
7128 * keyboard.c (apply_modifiers): Fix typo.
7129
4bb6c266
RS
71302007-11-29 Richard Stallman <rms@gnu.org>
7131
7132 * keymap.c (Fcurrent_local_map): Doc fix.
7133
aa44cd84
GM
71342007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
7135
7136 * s/gnu-kfreebsd.h: New file.
7137
21ec2c43
SM
71382007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
7139
cc648cef
SM
7140 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
7141 Don't cast redundantly.
7142
21ec2c43
SM
7143 * keyboard.c (KEY_TO_CHAR): New macro.
7144 (parse_modifiers, apply_modifiers): Accept integer arguments.
7145 (read_key_sequence): Use them to unify the "shift->unshift" mapping
7146 for chars and symbol keys.
7147 After doing such remapping, apply function-key-map again.
7148
73e72da4
DN
71492007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
7150
7151 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
7152 compiled anymore.
7153
254693ff
AS
71542007-11-26 Andreas Schwab <schwab@suse.de>
7155
7156 * process.c (list_processes_1): Fix indentation level of the
7157 command column.
7158
ff6e6ac8
AS
71592007-11-23 Andreas Schwab <schwab@suse.de>
7160
7161 * editfns.c (Fformat): Handle %c specially since it requires the
7162 argument to be of type int.
7163
f7cf8b20
SM
71642007-11-23 Markus Triska <markus.triska@gmx.at>
7165
7166 * emacs.c (main): Call init_editfns before init_process, since
7167 init_process sets Vprocess_connection_type depending on OS release
7168
569c11e3
SM
71692007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
7170
8787dd73
SM
7171 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
7172 (find_symbol_value): Use do_symval_forwarding.
7173
569c11e3
SM
7174 * data.c (set_internal): Set the value in the `cons-cell' (for
7175 Buffer_Local_values) not only for frame-local variables.
7176
6af1696d
AS
71772007-11-22 Andreas Schwab <schwab@suse.de>
7178
7179 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
7180 values to sprintf.
7181 * keymap.c (Fsingle_key_description): Likewise.
7182 * print.c (print_object): Likewise.
7183
880820fe 71842007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
7185
7186 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
7187 file for image is nil.
7188
7c401d15
DN
71892007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
7190
7191 * term.c: Include stdarg.h.
569c11e3 7192 (fatal): Implement using varargs.
a0a3805c 7193 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 7194
64e16c3c
SM
71952007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
7196
7197 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
7198 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
7199 Update call to buffer_slot_type_mismatch.
7200 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
7201 (buffer_slot_type_mismatch): Update.
7202 * buffer.c (buffer_local_types): Remove.
7203 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
7204 (defvar_per_buffer): Set the type in the buffer_objfwd.
7205
d4aa48db 72062007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 7207
64e16c3c
SM
7208 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
7209 CreateFileMapping returns NULL on failure.
5f42a7eb 7210
d4aa48db 72112007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 7212
d4aa48db
MB
7213 * search.c (Fset_match_data): Remove the `evaporate' feature.
7214 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 7215
bdae0540
JR
72162007-11-21 Jason Rumney <jasonr@gnu.org>
7217
7218 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
7219
7220 * w32console.c (w32con_write_glyphs): Remove unused variables.
7221
202c09a8
DN
72222007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
7223
b951420f
DN
7224 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
7225
202c09a8
DN
7226 * s/darwin.h (MULTI_KBOARD): Remove.
7227
7228 * macfns.c (x_create_tip_frame, Fx_create_frame)
7229 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
7230
bae72c12
SM
72312007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
7232
e7c10f83
SM
7233 * buffer.c (Fbuffer_local_value): Remove redundant test.
7234 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
7235 than in `current-buffer' to match the comment.
7236 Do the swap using swap_in_global_binding.
7237
136eb6ed
SM
7238 * data.c (store_symval_forwarding, set_internal):
7239 * eval.c (specbind): Remove dead code.
7240
bae72c12
SM
7241 * coding.c (detect_coding, Fupdate_coding_systems_internal):
7242 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
7243 Since we do not want to see internal Lisp_*fwd objects here.
7244
880820fe 72452007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 7246
3d66b985
JD
7247 * sysdep.c (init_system_name): Use getaddrinfo if available.
7248
95fbaefc
JD
7249 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
7250 (x_scroll_bar_note_movement): start, end, with, height in struct
7251 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
7252
6c1d8cb6
DN
72532007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
7254
7255 * puresize.h (BASE_PURESIZE): Increase to 1190000.
7256
30f95089
SM
72572007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
7258
66b04bd4
SM
7259 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
7260 This undoes Richard's change of 14-Oct-2002.
7261
6d3f2bb2
SM
7262 * alloc.c (allocate_other_vector):
7263 * lisp.h (allocate_other_vector): Remove.
7264
b05b4e27
SM
7265 * window.c (struct save_window_data): Move non-lisp data to the end
7266 and make it `int' rather than Lisp_Object.
7267 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
7268 Done wrap/unwrap integer values.
7269 (Fset_window_configuration, compare_window_configurations):
7270 Update use of fields to their new types.
7271
056ce195
SM
7272 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
7273 Turn integer fields into `int'. Merge x_window_low and x_window_high.
7274 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
7275 (SET_SCROLL_BAR_X_WINDOW): Remove.
7276 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
7277 Access the new x_window field directly.
7278 * xterm.c (x_scroll_bar_create): Use a pseudovector.
7279 Don't wrap/unwrap integers into Lisp_Objects.
7280 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
7281 (x_scroll_bar_report_motion):
7282 Don't wrap/unwrap integers into Lisp_Objects.
7283 (x_term_init): Use SDATA.
7284 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
7285 (x_scroll_bar_set_handle, x_scroll_bar_remove)
7286 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
7287 (x_scroll_bar_report_motion, x_scroll_bar_clear):
7288 * xfns.c (x_set_background_color):
7289 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
7290 Access the new x_window field directly.
7291
30f95089
SM
7292 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
7293 (allocate_pseudovector): Make non-static.
6d3f2bb2 7294
30f95089
SM
7295 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
7296 (allocate_pseudovector): Declare.
6f69e89b 7297 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 7298
9b6112e8
AS
72992007-11-15 Andreas Schwab <schwab@suse.de>
7300
30f95089
SM
7301 * editfns.c (Fformat): Correctly format EMACS_INT values.
7302 Also take precision into account when formatting an integer.
0f860bd7 7303
9b6112e8
AS
7304 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
7305
262fcd41
SM
73062007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
7307
58da34c7
SM
7308 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
7309 (syms_of_keyboard): Defsubr it.
7310
262fcd41
SM
7311 * data.c (swap_in_global_binding): Fix longstanding bug where
7312 store_symval_forwarding was not called with the right second argument,
7313 thus causing objfwd-ing from being dropped.
7314
d29a9848
JB
73152007-11-14 Juanma Barranquero <lekktu@gmail.com>
7316
7317 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
7318 (Fx_display_pixel_height, Fx_display_planes)
7319 (Fx_display_color_cells, Fx_server_max_request_size)
7320 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
7321 (Fx_display_visual_class, Fx_display_save_under):
7322 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
7323 (Fx_display_pixel_height, Fx_display_planes)
7324 (Fx_display_color_cells, Fx_server_max_request_size)
7325 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7326 (Fx_display_mm_height, Fx_display_mm_width)
7327 (Fx_display_backing_store, Fx_display_visual_class)
7328 (Fw32_select_font, Fx_display_save_under):
7329 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
7330 (Fx_display_pixel_height, Fx_display_planes)
7331 (Fx_display_color_cells, Fx_server_max_request_size)
7332 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
7333 (Fx_display_save_under): Fix typos in docstrings.
7334
74084731
JB
73352007-11-14 Juanma Barranquero <lekktu@gmail.com>
7336
7337 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
7338 corresponding to deleted entries; they are an implementation detail.
7339 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
7340 Remove variables.
7341 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
7342 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
7343 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
7344 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
7345 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 7346 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 7347 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
7348 Fix typos in docstrings.
7349 (Fx_server_version): Reflow docstring.
7350 (Fw32_shell_execute): Doc fixes.
74084731 7351
fb053a1f
JB
73522007-11-13 Juanma Barranquero <lekktu@gmail.com>
7353
7354 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
7355 if w32_parse_hot_key returned nil.
7356
a457417e 73572007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 7358
a457417e 7359 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 7360
4b219faa
JR
73612007-11-09 Jason Rumney <jasonr@gnu.org>
7362
7363 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
7364
7365 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
7366
7367 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
7368 Remove W32_SCROLL_BAR_CLICK_EVENT.
7369
7370 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
7371 Add MULTIMEDIA_KEY_EVENT.
7372
7373 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
7374 (lispy_multimedia_keys) [WINDOWSNT]: New array.
7375 (make_lispy_event) [WINDOWSNT]: Use it to translate
7376 MULTIMEDIA_KEY_EVENT.
7377
7378 * w32term.h (WM_APPCOMMAND): Define if not already.
7379 (GET_APPCOMMAND_LPARAM): Likewise.
7380
7381 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
7382 WM_APPCOMMAND.
7383
7384 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
7385 (syms_of_w32fns): Export and initialize it.
7386 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
7387
c12ecb0a 73882007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
7389
7390 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
7391 twice.
7392
7393 * xdisp.c (handle_face_prop): Fix last change.
7394
c12ecb0a 73952007-11-09 Richard Stallman <rms@gnu.org>
048addec 7396
c12ecb0a
MB
7397 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
7398 not just for after-strings and before-strings.
7399 Call face_for_overlay_string and pass the overlay to it.
7400 (handle_display_prop): Determine whether property came from an overlay.
7401 Pass OVERLAY arg to handle_single_display_spec.
7402 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
7403 (load_overlay_strings): Fill in it->string_overlays.
7404 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 7405
c12ecb0a
MB
7406 * xfaces.c (face_for_overlay_string): Function renamed from
7407 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 7408
c12ecb0a
MB
7409 * dispextern.h (struct it): New elt string_overlays.
7410 New elt from_overlay, also in stack.
7411 Rearrange a few elements.
7412 (face_for_overlay_string): Decl renamed from
7413 face_at_buffer_position_no_overlays, and add argument.
15fff01d 7414
c12ecb0a 74152007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 7416
c12ecb0a
MB
7417 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
7418 to get the base face for an overlay string.
0d8466cc 7419
c12ecb0a 7420 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 7421
c12ecb0a 7422 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 7423
c12ecb0a 7424 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 7425
c12ecb0a 74262007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 7427
c12ecb0a
MB
7428 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
7429 Fix conversion from Lisp object to ATSUFontID.
07025a55 7430
c12ecb0a 74312007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 7432
c12ecb0a 7433 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 7434
c12ecb0a 74352007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 7436
c12ecb0a
MB
7437 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
7438 Don't assume regions are aligned to page boundary.
7439 (print_load_command_name): Add LC_UUID if defined.
3a232704 7440
c12ecb0a 74412007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 7442
c12ecb0a 7443 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 7444
b8ddfbcc
JR
74452007-11-07 Jason Rumney <jasonr@gnu.org>
7446
7447 * s/windows95.h: Remove.
7448
880820fe 74492007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
7450
7451 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
7452 abort with a message on unhandled store_type values.
7453
880820fe 74542007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
7455
7456 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
7457 Remove HAVE_X11R5 and HAVE_X11R4.
7458
04a697fe
DN
74592007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
7460
7461 * Makefile.in: Remove references to sunfns.c and sunfns.o.
7462
880820fe 74632007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
7464
7465 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 7466 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
7467 x_set_glyph_string_gc from x_draw_glyph_string.
7468
07e5c0b0
DN
74692007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
7470
7471 * sunfns.c: Remove file
7472
7473 * m/sun386.h:
7474 * m/sun2.h:
7475 * m/sparc.h: Remove Sun windows code.
7476
1bc973c2
SM
74772007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
7478
7479 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
7480 (init_keyboard): Set current_kboard's window-system to nil.
7481 (tty_read_avail_input): Typo.
7482 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
7483
c22140f6
DN
74842007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
7485
7486 * s/usg5-4.h:
7487 * s/usg5-3.h:
7488 * s/ptx.h:
7489 * m/is386.h:
7490 * m/ibmps2-aix.h:
7491 * Makefile.in: Remove all mentions of X10
7492
7493 * dispnew.c (syms_of_display): Don't mention version 10.
7494
660a8219
JB
74952007-10-28 Juanma Barranquero <lekktu@gmail.com>
7496
7497 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
7498 ($(BLD)/abbrev.$(O)): Remove.
7499
e047f448
SM
75002007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
7501
7502 Rewrite abbrev.c in Elisp.
7503 * image.c (Qcount): Don't declare as extern.
7504 (syms_of_image): Initialize and staticpro `Qcount'.
7505 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
7506 * emacs.c (main): Don't call syms_of_abbrev.
7507 * Makefile.in (obj): Remove abbrev.o.
7508 (abbrev.o): Remove.
7509 * abbrev.c: Remove.
7510
67b73e3a
MR
75112007-10-26 Martin Rudalics <rudalics@gmx.at>
7512
7513 * window.c (window_min_size_2): Don't count header-line.
7514
e3d7bd83
DN
75152007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
7516
7517 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 7518 field to take advantage of the available space. Group all the
e3d7bd83
DN
7519 chars together to reduce wasted space due to padding.
7520
a3547743
JB
75212007-10-26 Juanma Barranquero <lekktu@gmail.com>
7522
e298936f
JB
7523 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
7524
d3d47262
JB
7525 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
7526 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
7527 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
7528 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
7529 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
7530 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
7531 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
7532 (last_marked, mark_object_loop_halt): Make static.
7533
a3547743
JB
7534 * frame.c (syms_of_frame) <delete-frame-functions>:
7535 Fix typo in docstring.
7536
14c71d8b
JB
75372007-10-25 Juanma Barranquero <lekktu@gmail.com>
7538
7539 * w32.c (init_environment): Fix tiny memory leak.
66199f74 7540 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 7541
70b8d0a4
SM
75422007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
7543
7544 Make `window-system' into a keyboard-local variable (rather than
7545 frame-local as done originally by multi-tty).
7546
7547 * keyboard.h (struct kboard): Add Vwindow_system.
7548 * keyboard.c (init_kboard): Set a default for Vwindow_system.
7549 (mark_kboards): Mark Vwindow_system.
7550
7551 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
7552 (init_display): Don't set the obsolete `window-system' frame-param.
7553
7554 * xterm.c (x_term_init):
7555 * w32term.c (w32_create_terminal):
7556 * term.c (init_tty): Set Vwindow_system.
7557 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
7558 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
7559
7560 * xfns.c (Fx_create_frame, x_create_tip_frame):
7561 * w32fns.c (Fx_create_frame, x_create_tip_frame):
7562 * macfns.c (Fx_create_frame):
7563 Don't set the obsolete `window-system' frame-param.
7564
7565 * frame.h (Qwindow_system): Remove.
7566 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
7567 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
7568
fdc90613 75692007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 7570
fdc90613
MB
7571 * frame.c (x_figure_window_size): For fullscreen case,
7572 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 7573
fdc90613 7574 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 7575
fdc90613 7576 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 7577
7357cb04
SM
75782007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
7579
98228e72
SM
7580 * process.c (unwind_request_sigio): Only define if __ultrix__.
7581
1baf6db9
SM
7582 * callproc.c (child_setup): Remove spurious *.
7583
4d0ac3d7
SM
7584 * lisp.h (Fget_text_property): Declare.
7585 (have_menus_p): Declare it here rather than in sys-dep header files.
7586 * macterm.h (have_menus_p):
7587 * msdos.h (have_menus_p):
7588 * xterm.h (have_menus_p): Remove.
7589
7357cb04
SM
7590 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7591 (Fmake_variable_frame_local): Just check the variable's const-ness
7592 rather than checking nil or t.
7593
866e6dd6
JR
75942007-10-22 Jason Rumney <jasonr@gnu.org>
7595
b00afeae
JR
7596 * w32fns.c: Include math.h.
7597 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 7598
c8f7c76b
JR
7599 * s/ms-w32.h (HAVE_STDLIB_H): Define.
7600 (abort): Redefinition moved to nt/config.nt.
7601
866e6dd6
JR
7602 * m/windowsnt.h: Remove.
7603
e79beb56
JB
76042007-10-22 Juanma Barranquero <lekktu@gmail.com>
7605
7606 * emacs.c (Fdump_emacs): Fix typo in message.
7607 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
7608 <installation-directory>: Reflow docstring.
7609
fb30dfd2
JL
76102007-10-22 Juri Linkov <juri@jurta.org>
7611
7612 * minibuf.c: Allow minibuffer default to be a list of default values.
7613 With empty input use the first element of this list as returned default.
e79beb56 7614 (string_to_object)
0f7f11b7 7615 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
7616 (read_minibuf): If defalt is cons, set histstring to its car.
7617 (Fread_string): If default_value is cons, set val to its car.
7618 (Fread_buffer): If def is cons, use its car.
7619 (Fcompleting_read): If defalt is cons, set val to its car.
7620
1f163f28
MA
76212007-10-21 Michael Albinus <michael.albinus@gmx.de>
7622
7623 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
7624
db3534c3
JB
76252007-10-20 Juanma Barranquero <lekktu@gmail.com>
7626
7627 * doc.c (Fdocumentation): Check for advice in all cases.
7628
c6f18a07
CY
76292007-10-19 Chong Yidong <cyd@stupidchicken.com>
7630
7631 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
7632
2a1534d3
RS
76332007-10-19 Richard Stallman <rms@gnu.org>
7634
7635 * doc.c (Fdocumentation): Check for and handle an advised function.
7636
7b82c3b6
JB
76372007-10-19 Juanma Barranquero <lekktu@gmail.com>
7638
7639 * process.c (Fset_process_filter): Doc fix.
7640
3278f20e
SM
76412007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7642
7643 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
7644 which caused key-translation-map to applied repeatedly (thus breaking
7645 double-mode).
7646
99784d63
SM
76472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
7648
7649 * xselect.c (x_own_selection, x_handle_selection_clear)
7650 (x_clear_frame_selections):
7651 * w32menu.c (list_of_panes, list_of_items):
7652 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
7653 * textprop.c (validate_plist, interval_has_all_properties)
7654 (interval_has_some_properties, interval_has_some_properties_list)
7655 (add_properties, text_property_list):
7656 * process.c (Fget_buffer_process, list_processes_1, status_notify):
7657 * minibuf.c (Fassoc_string):
7658 * macselect.c (x_own_selection, x_clear_frame_selections)
7659 (Fx_disown_selection_internal):
7660 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
7661 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
7662
44bb704d
CY
76632007-10-17 Chong Yidong <cyd@stupidchicken.com>
7664
7665 * process.c: Link to libs for calling res_init() if available.
7666 (Fmake_network_process): Call res_init() before getaddrinfo or
7667 gethostbyname, if possible.
7668
d314756e
SM
76692007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
7670
2504022a
SM
7671 * lread.c (read1): Set pvectype for char_tables.
7672
19fa82b9
SM
7673 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
7674 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
7675 Add type checks.
7676 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
7677
d314756e
SM
7678 * alloc.c (free_misc): Use XMISCTYPE.
7679 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
7680
94b9aaa2
GM
76812007-10-17 Glenn Morris <rgm@gnu.org>
7682
7683 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
7684 (syms_of_minibuf): Add Qcompletion_ignore_case.
7685 * dired.c (Qcompletion_ignore_case): Change to external.
7686 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
7687 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
7688 (Fread_file_name): Use it rather than intern'ing.
7689
7690 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
7691 (Fread_coding_system): Ignore case of user input.
7692
da6658e8
YM
76932007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7694
7695 * xdisp.c (handle_display_prop): Ignore display specs after
7696 replacing one when string text is being replaced.
7697 (handle_single_display_spec): Pretend as if characters with display
7698 property haven't been consumed only when buffer text is being replaced.
7699
11fb4bdb
SM
77002007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
7701
9beb8baa
SM
7702 * xfns.c (Fx_create_frame, Fx_display_list):
7703 * window.c (window_fixed_size_p, enlarge_window)
7704 (shrink_window_lowest_first):
7705 * macterm.c (init_font_name_table):
7706 * macfns.c (Fx_create_frame, Fx_display_list):
7707 * lread.c (close_load_descs):
7708 * keyboard.c (read_char_x_menu_prompt):
7709 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
7710 * coding.c (code_convert_region_unwind): Test the type of an object
7711 rather than just !NILP before extracting data from it.
7712
d3f41ff5
SM
7713 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
7714
67ee9f6e
SM
7715 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
7716 (XMISCANY): New macro.
7717 (XMISCTYPE): Use it.
7718 (struct Lisp_Misc_Any): New type.
7719 (union Lisp_Misc): Use it.
7720 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
7721 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
7722 (find_symbol_value, set_internal, default_value, Fset_default)
7723 (Fmake_variable_buffer_local, Fmake_local_variable)
7724 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
7725 (Flocal_variable_if_set_p, Fvariable_binding_locus):
7726 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
7727 * alloc.c (allocate_buffer): Set the size and tag.
7728 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
7729 Use XMISCANY.
7730 (die): Follow the GNU convention for error messages.
7731 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
7732 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
7733 tag any more.
7734 (set_buffer_internal_1):
7735 * frame.c (store_frame_param):
7736 * eval.c (specbind):
7737 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
7738
11fb4bdb
SM
7739 * doc.c (Fsnarf_documentation): Simplify.
7740
decb374a
JB
77412007-10-14 Juanma Barranquero <lekktu@gmail.com>
7742
7743 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
7744 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
7745
b5a40ee7
SM
77462007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
7747
7748 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
7749
35277b03
JB
77502007-10-14 Juanma Barranquero <lekktu@gmail.com>
7751
7752 * eval.c (do_autoload): Don't save autoloads.
7753
7754 * data.c (Ffset): Save autoload of the function being set.
7755
35fdaa62
GM
77562007-10-07 John Paul Wallington <jpw@pobox.com>
7757
7758 * xfns.c (x_create_tip_frame): Set the `display-type' frame
7759 parameter before setting up faces.
7760
1ea40aa2
EZ
77612007-10-13 Eli Zaretskii <eliz@gnu.org>
7762
35fdaa62 7763 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
7764 * keyboard.c (append_tool_bar_item): Reformat last change.
7765
1ea40aa2
EZ
7766 * lisp.h (eabs): Rename from `abs'. All callers changed.
7767
35277b03 77682007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
7769
7770 * buffer.c (add_overlay_mod_hooklist):
7771 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
7772 * fontset.c (make_fontset):
7773 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
7774 (append_tool_bar_item):
7775 * macmenu.c (grow_menu_items):
35fdaa62 7776 * w32menu.c (grow_menu_items):
71d00ce4 7777 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 7778
bc82f120
EZ
77792007-10-13 Eli Zaretskii <eliz@gnu.org>
7780
7781 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
7782 selected frame'' on MSDOS).
7783
d57d5a78
MR
77842007-10-12 Martin Rudalics <rudalics@gmx.at>
7785
7786 * frame.c (Qexplicit_name): New variable.
7787 (x_report_frame_params): Report it in parameter alist.
7788 (syms_of_frame): Intern and staticpro it.
7789
35277b03 77902007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
7791
7792 * macfns.c (x_create_tip_frame): Set terminal for frame.
7793
c7a4b95b
SM
77942007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
7795
26f9c7b7
SM
7796 * frame.c (Qenvironment): Remove.
7797 (syms_of_frame) <Qenvironment>: Don't initialize.
7798 (Fdelete_frame): Don't treat the `environment' param specially.
7799 * frame.h (Qenvironment): Don't declare.
7800 * callproc.c (set_initial_environment): Don't set unused frame param.
7801
c7a4b95b
SM
7802 * frame.c (Fframe_with_environment): Remove.
7803 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 7804
c7a4b95b
SM
7805 * lisp.h (Fframe_with_environment): Don't declare.
7806
c86f7377
JB
78072007-10-10 Juanma Barranquero <lekktu@gmail.com>
7808
7809 * indent.c (indent_tabs_mode, last_known_column)
7810 (last_known_column_modified): Make static.
7811 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
7812
d1b3a122
KY
78132007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
7814
7815 * puresize.h (BASE_PURESIZE): Increase to 1170000.
7816
d57d5a78
MR
78172007-10-09 Jason Rumney <jasonr@gnu.org>
7818
7819 * w32term.c (x_set_window_size): Disable code that attempts to tell
7820 Lisp code about a size change before it actually happens.
7821
81d3d428 78222007-10-09 Richard Stallman <rms@gnu.org>
91175673 7823
81d3d428
MB
7824 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
7825 return HANDLED_RETURN.
91175673 7826
1af74d06 78272007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 7828
1af74d06
MB
7829 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
7830 when there's an unread command event.
e0fead5d 7831
c7a4b95b 7832 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
7833 window autoselection act appropriately when leaving selected frame.
7834 (syms_of_frame): Initialize focus_follows_mouse.
7835 * frame.h (focus_follows_mouse): Extern it.
7836 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 7837 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
7838 * msdos.c (dos_rawgetc): Likewise.
7839 * w32term.c (w32_read_socket): Likewise.
7840 * xterm.c (handle_one_xevent): Likewise.
7841 * xdisp.c (syms_of_xdisp): In doc-string of
7842 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 7843
1af74d06 78442007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 7845
1af74d06
MB
7846 * macterm.c (mac_load_query_font): Fix missing return value.
7847 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
7848 Add BLOCK_INPUT.
c186cdb3 7849
1af74d06 78502007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 7851
1af74d06
MB
7852 * xdisp.c (get_window_cursor_type): Implement documented behavior
7853 for cursor-in-non-selected-windows = t.
c186cdb3 7854
1af74d06 78552007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 7856
1af74d06 7857 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 7858
1af74d06 78592007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 7860
1af74d06 7861 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 7862
1af74d06 7863 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 7864
1af74d06 78652007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 7866
c7a4b95b 7867 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 7868
1af74d06 78692007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 7870
1af74d06 7871 * buffer.c (Foverlays_at): Doc fix.
036e218d 7872
1af74d06 78732007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 7874
1af74d06 7875 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 7876
1af74d06 78772007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 7878
1af74d06 7879 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 7880
1af74d06 7881 * frame.h (enum): Remove trailing comma.
90647b07 7882
1af74d06 78832007-10-08 Dhuvra Krishnamurthy <dhuvrakm@gmail.com> (tiny change)
90647b07 7884
1af74d06 7885 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 7886
1af74d06 78872007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 7888
1af74d06 7889 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 7890
1af74d06
MB
7891 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
7892 last-repeatable-command.
7893 (init_kboard): Initialize Vlast_repeatable_command.
7894 (command_loop_1): Set it to real_this_command unless that was
7895 bound to an input event.
7896 (mark_kboards): Mark it.
9fbc32aa 7897
1af74d06 78982007-10-08 Richard Stallman <rms@gnu.org>
036e218d 7899
1af74d06 7900 * eval.c (condition-case): Doc fix.
9fbc32aa 7901
1af74d06 79022007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 7903
1af74d06
MB
7904 * xfaces.c (tty_supports_face_attributes_p): Fix code
7905 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
7906 was copied and not edited.
9fbc32aa 7907
beb9f745
SM
79082007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
7909
c86f7377 7910 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
7911 escape sequences.
7912 * keyboard.h (struct kboard): Add Vinput_decode_map.
7913 Remove Vlocal_key_translation_map.
7914 * keyboard.c (read_key_sequence): Add support for input-decode-map.
7915 (init_kboard): Init input-decode-map.
7916 Replace local-key-translation-map back with key-translation-map.
7917 (syms_of_keyboard): Declare input-decode-map.
7918 Remove local-key-translation-map. Update docstrings.
7919 (mark_kboards): Mark Vinput_decode_map.
7920 Don't mark Vlocal_key_translation_map.
7921 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
7922 Replace local-key-translation-map back with key-translation-map.
7923 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
7924 Bind in input-decode-map rather than function-key-map.
7925
beb9f745
SM
7926 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
7927 This was made redundant by the previous introduction of XSETPVECTYPE.
7928
65342ae3
RS
79292007-10-09 Richard Stallman <rms@gnu.org>
7930
beb9f745 7931 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
7932
79332007-09-29 Richard Stallman <rms@gnu.org>
7934
7935 * eval.c (internal_condition_case_2, internal_condition_case_1)
7936 (internal_condition_case): Reenable abort if x_catching_errors ()
7937 to see if that really happens and why.
7938
6cff77fd
AS
79392007-10-06 Andreas Schwab <schwab@suse.de>
7940
7941 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
7942
bbe6f2aa
JB
79432007-10-04 Juanma Barranquero <lekktu@gmail.com>
7944
7945 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
7946
a390930c
SM
79472007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
7948
7949 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
7950
d6aa1876
SM
79512007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
7952
d0fdb6da
SM
7953 * window.h (struct window):
7954 * window.c (struct save_window_data, struct saved_window):
7955 * termhooks.h (struct terminal):
7956 * process.h (struct Lisp_Process):
7957 * frame.h (struct frame):
7958 * buffer.h (struct buffer):
7959 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
7960 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
7961 The size field of (pseudo)vectors is now unsigned.
7962 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
7963
878f97ff
SM
7964 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
7965 Turn `count' into an integer.
d0fdb6da 7966
878f97ff
SM
7967 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
7968 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
7969 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
7970 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
7971 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
7972
d2029e5b
SM
7973 * alloc.c (allocate_pseudovector): New fun.
7974 (ALLOCATE_PSEUDOVECTOR): New macro.
7975 (allocate_window, allocate_terminal, allocate_frame)
7976 (allocate_process): Use it.
7977 (mark_vectorlike): New function.
7978 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
7979 (mark_terminals): Use it.
7980 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
7981 (Fmake_byte_code): Use XSETPVECTYPE.
7982
7983 * frame.c (Fframe_parameters): Minor simplification.
7984
7985 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
7986
7987 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
7988
7989 * buffer.c (Fget_buffer_create, init_buffer_once):
7990 * lread.c (defsubr):
7991 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
7992
7993 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
7994 defined differently in the m/*.h files.
7995 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
7996 (XSETPVECTYPE): New macro.
7997 (XSETPSEUDOVECTOR): Use it.
7998
d6aa1876
SM
7999 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
8000 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 8001
d6aa1876
SM
8002 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
8003 * lread.c (defvar_per_buffer):
8004 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
8005
8006 * window.c (candidate_window_p): Only consider as visible frames that
8007 are on the same terminal.
8008
8009 * m/ibms390x.h (MARKBIT): Remove unused macro.
8010
88852d45
JB
80112007-10-01 Juanma Barranquero <lekktu@gmail.com>
8012
8013 * lread.c (Fload): Fix typo in docstring.
8014
880820fe 80152007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
8016
8017 * floatfns.c (Fexpt): Manually check for overflows, so that a power
8018 of a non-zero value can't yield zero.
8019
ed0c79c6
SM
80202007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
8021
b870aa61
SM
8022 * term.c (term_clear_mouse_face, term_mouse_highlight)
8023 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
8024
4c37a414
SM
8025 * print.c (safe_debug_print): Use XHASH.
8026
b9466edb
SM
8027 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
8028 Lisp elements such as tags.
8029 (XHASH): New macro.
8030 (EQ): Use it.
8031 (SREF, SSET, STRING_COPYIN): Use SDATA.
8032 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
8033
9c545a55
SM
8034 * alloc.c (mark_terminal): Remove left-over declaration.
8035 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
8036 (allocate_vectorlike): Remove type argument. Adjust callers.
8037 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
8038 Only handle the one remaining MEM_TYPE_VECTORLIKE.
8039
dafc79fa
SM
8040 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
8041 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
8042 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
8043 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
8044 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
8045 Use them.
8046
ed0c79c6
SM
8047 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
8048 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
8049 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
8050
3c81afd4
DN
80512007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
8052
8053 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
8054 loaded by default.
8055
6178ce5e
SM
80562007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
8057
4ce5ab77
SM
8058 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
8059 on this tty.
8060 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
8061
6178ce5e
SM
8062 * term.c (mouse_face_window): Rename from Qmouse_face_window.
8063 Update all users.
8064 (handle_one_term_event): Use Gpm_DrawPointer.
8065 (Fgpm_mouse_start): Rename from Fterm_open_connection.
8066 Signal errors instead of returning nil. Always return nil.
8067 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
8068 Make it a noop if gpm-mouse was not activated.
8069 (syms_of_term): Update names.
8070
bdf5f8ef
SM
80712007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
8072
75a8734b
SM
8073 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
8074 (init_sys_modes): Check that gpm_tty is the current tty.
8075
13559ee0
SM
8076 * alloc.c (allocate_terminal): Set the vector size to only count the
8077 lisp fields. Initialize those to nil.
8078 (mark_object): Don't treat terminals specially.
8079 (mark_terminal): Remove.
8080 (mark_terminals): Use mark_object instead.
8081
ff16b875
SM
8082 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
8083 the GC to the beginning.
8084
83155776
SM
8085 * indent.h:
8086 * indent.c: Use EMACS_INT for ints coming from Elisp data.
8087
bdf5f8ef
SM
8088 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
8089
ec8705b6
JR
80902007-09-25 Jason Rumney <jasonr@gnu.org>
8091
8092 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
8093
8094 * w32console.c (create_w32cons_output): Remove.
8095
8096 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
8097
8098 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
8099 (reset_sys_modes): Use reset_terminal_modes_hook.
8100
7351b242
SM
81012007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
8102
8103 * eval.c (do_autoload): Don't output any message.
8104
16706228
JL
81052007-09-24 Juri Linkov <juri@jurta.org>
8106
8107 * emacs.c (standard_args): Change priority of "--no-splash"
8108 from 40 to 3. Add "--no-desktop" with the same priority.
8109
3ae2e3a3
RS
81102007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
8111
8112 * alloc.c (gc_sweep): Check cons cell mark bits word by word
8113 and optimize the case where they are all 1.
8114
7a58fb43
GM
81152007-09-23 Johannes Weiner <hannes@saeurebad.de>
8116
3ae2e3a3
RS
8117 * lisp.h (abs): Define if not defined.
8118 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
8119 Don't define `abs', since it's defined in lisp.h.
7a58fb43 8120
78048085
EZ
81212007-09-22 Eli Zaretskii <eliz@gnu.org>
8122
c7a4b95b 8123 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
8124 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
8125 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
8126 (init_tty): Use DEV_TTY instead of "/dev/tty".
8127 [WINDOWSNT]: No need to protect from NAME arg being null.
8128
23d4cba5
DN
81292007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
8130
8131 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
8132 up the tty state.
8133
71f44e7a
SM
81342007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
8135
8136 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
8137 (gpm_tty): Change its type.
8138 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
8139 (gpm_tty): Change its type and initialize it.
8140 (Fterm_open_connection): Check the frame is indeed a tty.
8141 Use the new gpm_tty.
8142 (Fterm_close_connection): Use the new gpm_tty.
8143 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
8144 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
8145
def7fa34
JB
81462007-09-21 Juanma Barranquero <lekktu@gmail.com>
8147
8148 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
8149 underline_color, to draw strike-through.
8150
d2bb6598
SM
81512007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
8152
273f164c
SM
8153 * lisp.h (allocate_terminal): Declare.
8154
ca2d5566
SM
8155 * window.c (candidate_window_p): Consider frames that are being placed
8156 by the user as somewhere between visible and iconified.
8157 (window_loop): Prefer windows on the current frame.
8158 (Fselect_window): Move the use of select-frame to the beginning so we
8159 can just delegate all the work (it'll call us back anyway).
8160
6168122d
SM
8161 * frame.c (Qdisplay_environment_variable):
8162 * frame.h (Qdisplay_environment_variable): Delete.
8163
c51842ec
SM
8164 * .gdbinit (xbacktrace): Print the arg's address rather than the value
8165 of the first arg, since that value may be a union.
8166
d2bb6598
SM
8167 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
8168 parameter rather than Qdisplay_environment_variable. If all else
8169 fails, look for DISPLAY in initial-environment.
8170
6f022c19
GM
81712007-09-21 Glenn Morris <rgm@gnu.org>
8172
8173 * Makefile.in (emacstool): Remove target.
f466320b 8174 (lisp, shortlisp): Remove termdev.elc.
6f022c19 8175
ea1bf8c7
GM
81762007-09-21 Markus Triska <markus.triska@gmx.at>
8177
d2bb6598 8178 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 8179
d30a25b3
SM
81802007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
8181
db699fc6
SM
8182 * callproc.c (getenv_internal_1): New function.
8183 (getenv_internal): Use it.
8184 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
8185
d2bb6598 8186 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
8187 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
8188 (Fset_terminal_parameter): Work with dead terminals as well.
8189 (Fmodify_terminal_parameters): Remove.
8190
d30a25b3
SM
8191 * terminal.c (get_terminal): Handle terminals.
8192 Make sure the terminal returned is live.
8193 (create_terminal): Use allocate_terminal.
8194 (mark_terminals): Move to alloc.c.
8195 (delete_terminal): Use terminal->name as liveness status.
8196 NULL out fields after freeing their contents.
8197 Don't deallocate the object.
8198 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
8199 rather than an int.
8200 (Fterminal_live_p): Accept non-integer arguments.
8201 (Fterminal_list): Return terminal objects rather than an ints.
8202
8203 * alloc.c (enum mem_type): New member for `terminal' objects.
8204 (allocate_terminal): New function.
d2bb6598
SM
8205 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
8206 Handle terminals.
d30a25b3
SM
8207 (mark_terminal): New fun.
8208 (mark_terminals): Move from terminal.c.
8209
8210 * term.c (get_tty_terminal): Don't treat output_initial specially.
8211 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
8212 (delete_tty): Use terminal->name as liveness status.
8213
8214 * termhooks.h (struct terminal): Make it into a pseudovector.
8215 Remove `deleted' replaced by checking `name's nullness.
8216
8217 * print.c (print_object): Handle terminals.
8218
8219 * lisp.h (enum pvec_type): New `terminal' pseudovector.
8220 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
8221
8222 * frame.c (make_terminal_frame):
8223 * keyboard.c (tty_read_avail_input):
8224 * w32term.c (x_delete_terminal):
8225 * xfns.c (Fx_create_frame, x_create_tip_frame):
8226 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
8227
eba25e7c
GM
82282007-09-20 Glenn Morris <rgm@gnu.org>
8229
8230 * process.c (Fmake_network_process): Doc fix.
8231
2a29c3c1
JR
82322007-09-19 Jason Rumney <jasonr@gnu.org>
8233
8234 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
8235
880820fe 82362007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
8237
8238 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
8239 Fix a C warning regarding variable constness.
8240
8241 * xterm.c (handle_one_xevent): Fix a C warning.
8242
334a1195
JR
82432007-09-18 Jason Rumney <jasonr@gnu.org>
8244
8245 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
8246
880820fe 82472007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
8248
8249 * gtkutil.c (gdpy_def): New variable.
8250 (xg_initialize): Initialize gdpy_def.
8251 (xg_display_close): If no other display exists, set gdpy_def to a
8252 new connection.
8253
880820fe 82542007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
8255
8256 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
8257 when we have no file name for the icon.
8258 (xg_tool_bar_expose_callback): Remove.
8259 (xg_create_tool_bar): Don't connect expose signal to
8260 xg_tool_bar_expose_callback.
8261 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
8262
4d580af2
AS
82632007-09-16 Andreas Schwab <schwab@suse.de>
8264
8265 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
8266 values instead of zapping them.
8267
aca946f3
GM
82682007-09-14 Glenn Morris <rgm@gnu.org>
8269
8270 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
8271 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
8272 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
8273 scope and rename to omfib_buffer for clarity.
8274 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
8275
25c460e5
KH
82762007-09-14 Kenichi Handa <handa@m17n.org>
8277
8278 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
8279
09b69f01
JR
82802007-09-13 Jason Rumney <jasonr@gnu.org>
8281
8282 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
8283
8284 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
8285
8286 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
8287 (mac_term_init): Call here instead, passing rif.
8288
442218db
GM
82892007-09-13 Glenn Morris <rgm@gnu.org>
8290
8291 * s/hpux.h: No longer define `static' as nothing.
8292
880820fe 82932007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
8294
8295 * callint.c (Fcall_interactively): Remove unused var `fun'.
8296
1971a872
RF
82972007-09-12 Romain Francoise <romain@orebokech.com>
8298
8299 * window.c (prefer_window_split_horizontally, display_buffer):
8300 Revert 2007-09-08 change.
8301
2d33f506
GM
83022007-09-12 Glenn Morris <rgm@gnu.org>
8303
585474ae 8304 * alloca.c: Remove file.
ca7af97a
GM
8305 * Makefile.in (alloca): Do not undef.
8306 (allocaobj, alloca.o): Remove.
8307 (otherobj): Remove allocaobj.
8308 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
8309 * regex.c (C_ALLOCA): Remove all references and code that was only
8310 used when this was defined.
8311 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
8312 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
8313 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
8314
2d33f506 8315 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
8316
8317 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
8318 (menu_grab_callback): All uses changed.
8319
8320 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
8321 (x_reply_selection_request): All uses changed.
2d33f506 8322
18a4a65e
SM
83232007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
8324
8325 * lread.c (load_warn_old_style_backquotes): Change message to look
8326 better when it appears in the middle of byte-compiler messages.
8327
47cc8819
DN
83282007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
8329
b7ea0894
DN
8330 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
8331
47cc8819
DN
8332 * xterm.c (x_create_terminal): Add comment.
8333
8334 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
8335
5632bd0f
RS
83362007-09-10 Richard Stallman <rms@gnu.org>
8337
8338 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
8339
880820fe 83402007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 8341
4bca9161
MC
8342 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
8343 (DEFUN): Document `intspec', use it instead of `prompt'.
8344
04724b69
MC
8345 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
8346
8a6d230a
MC
8347 * data.c (Finteractive_form): If the interactive specification starts
8348 with a `(', use it as a Lisp form.
8349
09fbdf6c
MC
8350 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
8351 name and file modes.
8352
ccb5c14f
MC
8353 * callint.c (Fcall_interactively): Comment fixes.
8354
023accd6
SM
83552007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
8356
8357 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
8358 and compiled functions.
8359
f26b9544
EZ
83602007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
8361
8362 * window.c (prefer_window_split_horizontally): New variable.
8363 (display_buffer): Consider splitting window horizontally depending
8364 on prefer_window_split_horizontally.
8365
4d395425
EZ
83662007-09-08 Eli Zaretskii <eliz@gnu.org>
8367
97ddc760 8368 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 8369
08c1d235
SM
83702007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8371
179cef48
SM
8372 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
8373
08c1d235
SM
8374 * frame.c (x_set_frame_parameters): Check number is positive before
8375 using XFASTINT.
8376
8377 * window.c (freeze_window_start): Don't presume selected_window holds
8378 a window object.
92f94a12 8379 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 8380
97ddc760 83812007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
8382
8383 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
8384
90ab5c62
SM
83852007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
8386
8387 * window.c (Vsplit_window_preferred_function): New var.
8388 (Fdisplay_buffer): Use it.
8389 (syms_of_window): Export, and initialize it.
8390
1ab2cd43
TTN
83912007-09-06 Pixel <pixel@mandriva.com> (tiny change)
8392
8393 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
8394
0b0515bc
GM
83952007-09-06 Glenn Morris <rgm@gnu.org>
8396
57fd5c55 8397 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
8398 * xselect.c (x_reply_selection_request) <cnt>: Move static
8399 variable to file scope.
8400
98594580
SM
84012007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
8402
8403 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
8404 consistent values of selected_frame and selected_window.
8405
0f4c7aef
JR
84062007-09-04 Jason Rumney <jasonr@gnu.org>
8407
8408 * w32console.c (initialize_w32_display): Zero unused hooks.
8409
e4019195
DN
84102007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
8411
8412 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
8413 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
8414
bce179b5
JR
84152007-09-04 Jason Rumney <jasonr@gnu.org>
8416
a0236551
JR
8417 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
8418 in w32console.c. Set up input. Remove XXX comments that have been
8419 confirmed as correct.
8420
a4926668
JR
8421 * s/ms-w32.h (MULTI_KBOARD): Define.
8422
953bf0dc
JR
8423 * w32console.c (one_and_only_w32cons): Remove.
8424 (initialize_w32_display): Take terminal argument.
8425
8426 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
8427 initialize_w32_display.
8428 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
8429
bce179b5
JR
8430 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
8431
8432 * keyboard.c (discard_mouse_events): Discard it.
8433 (make_lispy_event): Translate it to a lisp event.
8434 (lispy_wheel_names): Add wheel-left and right events.
8435 (syms_of_keyboard): Enlarge wheel_syms.
8436
8437 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
8438 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
8439
8440 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
8441
8442 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
8443 from WM_MOUSEHWHEEL.
8444 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
8445
8446 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
8447 terminal.
8448
8449 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
8450 keyboard for the terminal.
8451
92cd6a7c
DN
84522007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
8453
8454 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
8455 (Vresume_tty_hook): Rename from Vresume_tty_functions.
8456 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
8457 and resume-tty-function to resume-tty-hook.
8458 (Fsuspend_tty, Fresume_tty): Use new names.
8459
880820fe 84602007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
8461
8462 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
8463 if it starts with "n:".
8464
880820fe 84652007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
8466
8467 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
8468
6b8e474c
SM
84692007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
8470
92d9c1d4
SM
8471 * frame.h:
8472 * frame.c (Qterm_environment_variable): Remove.
8473 (syms_of_frame): Don't init and staticpro it.
8474
92d9c1d4
SM
8475 * callproc.c (getenv_internal): Remove special case for $TERM.
8476
6b8e474c
SM
8477 * callproc.c (Vinitial_environment): New variable.
8478 (set_initial_environment): Initialize it.
8479 (syms_of_callproc): Declare it.
8480 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
8481 TERM under which a process runs is never related to the TERM in which
8482 Emacs is running.
8483
0f1444e1
DN
84842007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
8485
8486 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
8487 * s/darwin.h: ... do it here.
8488
b8866860
SM
84892007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
8490
8491 * lisp.h (set_initial_environment): Rename from set_global_environment.
8492
8493 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
8494 removed by mistake on the multi-tty branch.
8495
8496 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
8497 (Fmodify_frame_parameters): Return a value.
8498
8499 * image.c (png_load): Comment-out var only used in commented-out code.
8500
8501 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
8502 before passing it to mark_object.
8503
8504 * xfaces.c (internal_resolve_face_name): Return a value.
8505 (internal_resolve_face_name, resolve_face_name_error): Comment out.
8506
8507 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
8508 (x_icon): Comment-out var only used in commented-out code.
8509
0a42be6d
RF
85102007-08-29 Romain Francoise <romain@orebokech.com>
8511
8512 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
8513 QUIT hasn't been provided.
8514
8d9cc0b7
MB
85152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
8516
8517 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 8518 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
8519 (set_initial_environment): Initialise Vprocess_environment.
8520
8521 * config.in: Disable multi-keyboard support on a mac.
8522
8523 * frame.c (Qterm_environment_variable)
8524 (Qdisplay_environment_variable): New variables.
8525 (syms_of_frame): Intern and staticpro them.
8526 (Fmake_terminal_frame): Disable output method test.
8527
8528 * frame.h: Declare them here.
8529
8530 * macfns.c (x_set_mouse_color): Get rif from the frame.
8531 (x_set_tool_bar_lines): Don't use updating_frame.
8532 (mac_window): Add 2 new parameters for consistency with other systems.
8533 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
8534 frame parameters following what is done in X11 and w32. Don't use
8535 FRAME_MAC_DISPLAY_INFO.
8536 (Fx_open_connection, start_hourglass): Remove window-system check.
8537 (x_create_tip_frame): Get the keyboard from the terminal.
8538
8539 * macmenu.c: Reorder includes.
8540 (Fx_popup_menu): Use terminal specific mouse_position_hook.
8541
8542 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
8543 terminal parameter.
8544 (x_clear_frame): Add a frame parameter.
8545 (note_mouse_movement): Get rif from the frame.
8546 (mac_term_init): Initialize the terminal.
8547 (mac_initialize): Make static and move terminal initialization ...
8548 (mac_create_terminal): ... to this new function.
8549
8550 * macterm.h (struct mac_display_info): Add terminal.
7196c970 8551 (mac_initialize): Delete declaration.
8d9cc0b7 8552
381864b2 8553 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
8554
8555 * sysdep.c: Comment out text after #endif.
8556
8557 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
8558 is defined. Better initialize ttys in windows. Use terminal
8559 specific mouse_position_hook.
8560
8561 * termhooks.h (union display_info): Add mac_display_info.
8562
b8866860
SM
8563 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
8564 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
8565 frame parameters following what is done in X11.
8566
8567 * w32term.c (w32_initialize): Make static.
8568
8569 * xselect.c (x_handle_selection_clear): Only access
8570 terminal->kboard when MULTI_KBOARD is defined.
8571
8572 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
8573 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
8574
85752007-08-29 Jason Rumney <jasonr@gnu.org>
8576
8577 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
8578 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
8579
8580 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
8581 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
8582
8583 * keyboard.c (restore_kboard_configuration): Only define when
8584 MULTI_KBOARD defined.
8585
35277b03 8586 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
8587 (OBJ1): Add terminal.$(O)
8588
b8866860
SM
8589 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
8590 Don't define function body.
8d9cc0b7
MB
8591 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
8592
8593 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
8594
8595 * w32.c (request_sigio, unrequest_sigio): Remove.
8596
8597 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
8598 (w32con_clear_frame, w32con_clear_end_of_line)
8599 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
8600 (w32con_delete_glyphs, w32con_set_terminal_window)
8601 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
8602 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
8603 Add terminal arg.
8d9cc0b7
MB
8604 (PICK_FRAME): Remove.
8605 (w32con_write_glyphs): Use frame specific terminal coding.
8606 (one_and_only_w32cons): New global variable.
8607 (initialize_w32_display): Use it for storing hooks.
8608 (create_w32cons_output): New function.
8609
8610 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
8611 arg a frame.
8612
b8866860
SM
8613 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
8614 Set window_system.
8d9cc0b7
MB
8615 (x_set_tool_bar_lines): Don't use updating_frame.
8616 (Fx_create_frame): Set terminal and ref count.
8617 (Fx_open_connection): Remove window-system check.
8618
8619 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
8620
8621 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
8622 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
8623 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
8624 Add frame arg.
8625 (x_delete_terminal, w32_create_terminal): New functions.
8626 (w32_term_init): Create a terminal.
8627 (w32_initialize): Move terminal specific initialization to
8628 w32_create_terminal.
8629
b8866860 8630 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
8631 (w32_clear_rect, w32_clear_area): Use background from frame.
8632 (w32_display_info): Add terminal.
8633 (w32_sys_ring_bell, x_delete_display): Declare here.
8634
8635 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
8636
8637 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
8638
86392007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
8640
8641 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
8642 Fix get_named_tty calls for the controlling tty.
8643
86442007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
8645
8646 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
8647
86482007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
8649
8650 * term.c (tty_insert_glyphs): Add missing first parameter.
8651
880820fe 86522007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 8653
b8866860
SM
8654 * buffer.c (Fbuffer_list, Fbury_buffer):
8655 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
8656
8657 * cm.c (current_tty): New variable, for cmputc().
8658 (cmputc): Use it.
8659 (cmcheckmagic): Add tty parameter, look up terminal streams there.
8660 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
8661 (cmgoto): Add tty parameter. Pass it on to calccost().
8662 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
8663
8664 * cm.h (emacs_tputs): New macro to set current_tty, and then call
8665 tputs().
8666 (current_tty): New variable, for cmputc().
8667 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
8668
8669 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
8670 (internal_condition_case, internal_condition_case_1)
8671 (internal_condition_case_2): Don't abort when x_catching_errors.
8672
8673 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
8674 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
8675 prevent crashes caused by bogus longjmps in read_char.
8676
8677 * keymap.h (Fset_keymap_parent): Add EXFUN.
8678
8679 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
8680 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
8681 Remove redundant definition.
8682
b8866860
SM
8683 * macfns.c (x_set_mouse_color, x_make_gc):
8684 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 8685
b8866860
SM
8686 * w32term.c (x_free_frame_resources):
8687 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
8688 (w32_initialize): Use the accessor macros for terminal characteristics.
8689
8690 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
8691 Use the accessor macros for terminal characteristics.
8692 * msdos.c (internal_terminal_init): Use the accessor macros for
8693 terminal characteristics.
b8866860
SM
8694 (ScreenVisualBell, internal_terminal_init):
8695 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
8696
8697 * termopts.h (no_redraw_on_reenter): Declare.
8698
8699 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 8700 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 8701 (Fgarbage_collect): Call them.
03f06e5c 8702 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
8703
8704 * prefix-args.c: Include stdlib.h for exit.
8705
8706 * syssignal.h: Add comment.
8707
8708 * indent.c: Include stdio.h.
8709
8710 * window.h (Vinitial_window_system): Declare.
8711 (Vwindow_system): Delete declaration.
8712
8713 * fontset.c (Finternal_char_font): Use FRAME_RIF.
8714
8715 * image.c (lookup_image): Don't initialize `c' until the xasserts
8716 have been run.
8717
8718 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
8719 FRAME_FOREGROUND_PIXEL.
8720
8721 * print.c (print_preprocess): Don't lose print_depth levels while
8722 iterating.
8723
b8866860
SM
8724 * widget.c (update_from_various_frame_slots):
8725 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
8726
8727 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
8728 frames.
8729 (window_internal_height): Remove bogus make_number call.
b8866860 8730 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
8731
8732 * fileio.c (Fread_file_name): Update comment.
8733
b8866860
SM
8734 * callint.c (Fcall_interactively):
8735 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
8736 Make sure it is correctly unwound.
8737
8738 * xsmfns.c (x_session_close): New function.
8739
03f06e5c 8740 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
8741 Delete declarations.
8742
8743 * xterm.h: Remove declaration for x_fully_uncatch_errors.
8744 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 8745 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
8d9cc0b7
MB
8746 (x_delete_device):
8747 (x_session_close): Declare.
8748
8749 * lread.c: Include setjmp.h. Update declaration of `read_char'.
8750 (read_filtered_event): Call `read_char' with a local
8751 `wrong_kboard_jmpbuf'.
8752
b8866860
SM
8753 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
8754 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
8755
8756 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
8757 systems.
8758
b8866860 8759 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 8760 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 8761 (Fset_quit_char): EXFUN.
03f06e5c 8762 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
8763 (init_sys_modes, reset_sys_modes): Update prototypes.
8764 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
8765
b8866860
SM
8766 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
8767 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 8768 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 8769 Delete declarations.
03f06e5c
JB
8770 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
8771 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
8772 New declarations.
8773
8774 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
8775 already does that during init_display(). Call syms_of_keymap
b8866860
SM
8776 before syms_of_keyboard. Call `syms_of_terminal'.
8777 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
8778 (shut_down_emacs): Call reset_all_sys_modes() instead of
8779 reset_sys_modes().
8780
8781 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
8782 (internal_resolve_face_name, resolve_face_name_error): New functions.
8783 (resolve_face_name): Protect against loops and errors thrown by Fget.
8784 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
8785 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
8786
8787 * scroll.c: Replace CURTTY() with local variables throughout the
8788 file (where applicable).
8789 (calculate_scrolling, calculate_direct_scrolling)
8790 (scrolling_1, scroll_cost): Use the accessor macros for terminal
8791 characteristics.
8792
8793 * keymap.c (Vfunction_key_map): Remove.
b8866860 8794 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
8795 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
8796 (Vkey_translation_map): Remove.
8797 (syms_of_keymap): Remove DEFVAR for key-translation-map.
8798 (Fdescribe_buffer_bindings):
8799 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
8800 Update for terminal-local key-translation-map.
8801
8802 * Makefile.in (callproc.o): Update dependencies.
8803 (lisp, shortlisp): Add termdev.elc.
8804 (obj): Add terminal.o.
8805 (terminal.o): Add dependencies.
8806 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
8807 (data.o, fns.o): Add termhooks.h dependency.
8808 (SOME_MACHINE_LISP): Add dnd.elc.
8809 (minibuf.o): Fix typo.
8810 Update dependencies.
8811
8812 * data.c (do_symval_forwarding, store_symval_forwarding)
8813 (find_symbol_value): Use the selected frame's keyboard, not
8814 current_kboard.
8815
8816 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
8817 Vwindow_system.
8818
8819 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
8820 Fmenu_bar_open.
8821 (syms_of_xmenu): Update defsubr.
8822 (mouse_position_for_popup, Fx_popup_menu)
8823 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
8824 (set_frame_menubar, free_frame_menubar)
8825 (create_and_show_popup_menu, xmenu_show, )
8826 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
8827 an X frame.
8828
8829 * xselect.c (x_own_selection): Abort if not an X frame.
8830 (some_frame_on_display): Check if it is an X frame.
8831 (x_handle_selection_clear): Deal with MULTI_KBOARD.
8832
8833 * coding.c: Include frame.h and termhooks.h.
03f06e5c 8834 (terminal_coding, keyboard_coding): Delete.
8d9cc0b7
MB
8835 (Fset_terminal_coding_system_internal):
8836 (Fset_keyboard_coding_system_internal):
8837 (Fkeyboard_coding_system):
03f06e5c
JB
8838 (Fterminal_coding_system): Add a terminal parameter.
8839 Get terminal_coding from the terminal.
8d9cc0b7
MB
8840 (init_coding_once): Don't call setup_coding_system here.
8841
8842 * dispextern.h (set_scroll_region, turn_off_insert)
8843 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
8844 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 8845 (delete_tty, updating_frame)
8d9cc0b7
MB
8846 (produce_special_glyphs, produce_glyphs, write_glyphs)
8847 (insert_glyphs): Remove.
8848 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 8849 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 8850 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
8851
8852 * frame.h (enum output_method): Add output_initial.
8853 (struct x_output): Delete.
b8866860
SM
8854 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
8855 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
8856 (tty_display): Delete.
8857 (struct frame): Add buried_buffer_list, foreground_pixel,
03f06e5c 8858 background_pixel and terminal. Delete kboard
8d9cc0b7
MB
8859 (union output_data): Add tty.
8860 (FRAME_KBOARD): Get the kboard from the terminal.
8861 (FRAME_INITIAL_P): New macro.
8862 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
8863 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
8864 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
8865 New declarations.
8d9cc0b7
MB
8866
8867 * termchar.h (tty_output, tty_display_info): New structures.
8868 (tty_list): Declare.
8869 (FRAME_TTY, CURTTY): New macros.
8870 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
8871 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
8872 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
8873 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
8874
8875 * callproc.c: Include frame.h and termhooks.h, for terminal
8876 parameters.
8877 (add_env): New function.
8878 (child_setup): Use it.
b8866860 8879 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
8880 (getenv_internal): Fix get_terminal_param call.
8881 (Fgetenv_internal, egetenv): Update doc.
8882 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 8883 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
8884 strings.
8885 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
8886 (getenv_internal): Add terminal parameter.
8887 Handle Vlocal_environment_variables.
8d9cc0b7
MB
8888 (Fgetenv_internal): Add terminal parameter.
8889 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 8890 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
8891 (set_initial_environment): Rename from set_global_environment.
8892 Store Emacs environment in initial frame parameter.
8893
8894 * xdisp.c (redisplay_internal): Update references to
8895 `previous_terminal_frame'.
8896 (display_mode_line, Fformat_mode_line): Replace calls to
8897 `push_frame_kboard' with `push_kboard'.
8898 (get_glyph_string_clip_rects): Add extra parentheses and
8899 braces to prevent compiler warnings.
8900 (calc_pixel_width_or_height): Add xassert to check that the
8901 frame is alive. Don't call `lookup_image' on a termcap frame.
8902 (message2_nolog, message3_nolog, redisplay_internal)
8903 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
8904 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
8905 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
8906 (Fx_display_pixel_width, Fx_display_pixel_height)
8907 (Fx_display_planes, Fx_display_color_cells)
8908 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
8909 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
8910 (Fx_display_backing_store, Fx_display_visual_class)
8911 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 8912 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
8913
8914 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
8915 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
8916 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
8917 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
8918 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
8919 terminal that is being deleted.
8920 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 8921 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
8922 (Fx_close_connection, Fx_synchronize): Unify argument names with
8923 the rest of the DEFUNs.
8924
8925 * dispnew.c (Fsend_string_to_terminal): Update call to
8926 `get_tty_terminal'.
8927 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 8928 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
8929 FRAME_TERMCAP_P and FRAME_TTY.
8930 (window_change_signal): Don't believe width/height values that are
8931 impossibly small.
8932 (Vinitial_window_system): Rename from Vwindow_system.
8933 (termscript, Wcm, rif): Delete.
8934
8935 * termhooks.h (struct terminal): New struct containing the
8936 previously global text display hooks and new members NAME,
8937 DELETED and PARAM_ALIST.
8938 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
8939 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
8940 (FRAME_RIF): New macros.
8941 (get_terminal_param, get_device): New declarations.
8942 (termscript): Delete declaration.
8943
8944 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
8945 (XTflash, x_free_frame_resources, x_scroll_bar_create)
8946 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
8947 FRAME_FOREGROUND_PIXEL.
8948 (x_fully_uncatch_errors): Disable definition.
8949 (x_scroll_bar_expose): Fix reference to foreground pixel.
8950 (XTread_socket): Disable loop on all X displays.
8951 (x_delete_terminal): Don't set terminal->deleted and let
8952 delete_terminal delete the frames on the terminal.
8953 (x_delete_display): Doc update to reflect changes in
8954 delete_terminal.
8955 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
8956 (deleting_tty): Remove old variable.
8957 (Fsuspend_tty): Call clear_tty_hooks.
8958 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
8959 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
8960 errors on X frames.
8961 (x_catch_errors_unwind): Abort if x_error_message is NULL.
8962 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 8963 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
8964 (XTset_terminal_modes, XTreset_terminal_modes)
8965 (XTread_socket, x_connection_closed, x_term_init)
8966 (x_term_init, x_delete_display): Add terminal parameter.
8967 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
8968 X connections.
8969
bf380f53
GM
8970 * frame.c: Include termchar.h.
8971 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
8972 (Qwindow_system, Qenvironment, Qterm_environment_variable)
8973 (Qdisplay_environment_variable): New vars.
8974 (Fframep): Deal with output_initial.
8975 (Fframe-live-p): Doc fix.
8976 (Fwindow-system): New function.
8d9cc0b7
MB
8977 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
8978 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 8979 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 8980 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
8981 (Fmake_terminal_frame): Handle NULL tty names correctly.
8982 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
8983 (Fdelete_frame): Remove unused variable `count'. Don't allow other
8984 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 8985 (Fframe_with_environment): New function.
b8866860 8986 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
8987 (get_future_frame_param): New function.
8988 (Fmake_terminal_frame): Use it.
2d33f506 8989 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
8990
8991 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
8992 * sysdep.c (reset_sys_modes): Update for renames.
8993
8994 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 8995 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
8996 (syms_of_keyboard): Defsubr them.
8997 (Fset_input_meta_mode, Fset_quit_char): New functions.
8998 (Fset_input_mode): Split to above functions.
8999
9000 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
9001 parameter. Use it in call to `read_char'.
b8866860
SM
9002 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
9003 Set wrong_kboard_jmpbuf correctly in recursive calls.
9004 Use current_kboard to access Vkeyboard_translate_table.
9005 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
9006 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
9007 Update longjmp invocations. Remember the original current_kboard,
9008 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
9009 changes it. Comment out unnecessary calls to
9010 `record_single_kboard_state' and `any_kboard_state'.
9011 Update recursive calls.
8d9cc0b7
MB
9012 (wrong_kboard_jmpbuf): Remove global variable.
9013 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
9014 Handle deleted interrupted_kboards correctly; that is a legal
9015 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 9016 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
9017 (any_kboard_state, single_kboard_state)
9018 (push_frame_kboard): Remove function.
9019 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
9020 been deleted. Remove unused variable. Help debugging by not
9021 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
9022 kboard of the selected frame when the stored kboard object has
9023 been deleted before pop_kboard.
9024 (temporarily_switch_to_single_kboard): Change first parameter to a
9025 frame pointer. Throw an error when caller wants to change kboards
9026 while in single_kboard mode. Don't push_kboard if we weren't in
9027 single kboard state. Don't pop_kboard if we popped into any
9028 kboard state.
9029 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 9030 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
9031 up single_kboard mode.
9032 (Frecursive_edit): Switch to single_kboard mode only in nested
9033 command loops.
b8866860
SM
9034 (cmd_error, command_loop, command_loop_1, timer_check):
9035 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
9036 `record_single_kboard_state'.
9037 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 9038 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
9039 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
9040 `fatal_error_signal'.
9041 (record_single_kboard_state): Don't push_kboard if we weren't in
9042 single kboard state. Don't pop_kboard if we popped into any
9043 kboard state.
9044 (push_frame_kboard): Rename to push_kboard.
9045 (kbd_buffer_get_event): Use FRAME_TERMINAL.
9046 (read_avail_input): Read input from all terminals.
9047 (mark_kboards): Also mark Vkeyboard_translate_table.
9048 (kbd_buffer_store_event_hold): Simplify condition.
9049 (read_key_sequence): Reinitialize fkey and keytran at each replay.
9050 (Vkeyboard_translate_table): Move to struct kboard.
9051 (init_kboard): Initialize Vkeyboard_translate_table.
9052 (syms_of_keyboard): Use DEFVAR_KBOARD to define
9053 Vkeyboard_translate_table. Update doc strings. Update docs of
9054 local-function-key-map and function-key-map.
9055
9056 * terminal.c: New file.
9057
9058 * term.c: Include errno.h.
9059 (Vring_bell_function, device_list, initial_device)
9060 (next_device_id, ring_bell, update_begin, update_end)
9061 (set_terminal_window, cursor_to, raw_cursor_to)
9062 (clear_to_end, clear_frame, clear_end_of_line)
9063 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
9064 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
9065 (syms_of_term): Move their initialization to terminal.c.
9066 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
9067 (Ftty_display_color_cells)
9068 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 9069 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
9070 (init_tty, maybe_fatal): New functions.
9071 (Ftty_type): Return nil if terminal is not on a tty instead of
9072 throwing an error. Doc update.
9073 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 9074 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
9075 (delete_tty): Use terminal->deleted.
9076 (tty_set_terminal_modes): Rename from set_terminal_modes.
9077 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
9078 (set_scroll_region): Rename to `tty_set_scroll_region'.
9079 (turn_on_insert): Rename to `tty_turn_on_insert'.
9080 (turn_off_insert): Rename to `tty_turn_off_insert'.
9081 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
9082 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
9083 (toggle_highligh): Rename to `tty_toggle_highlight'.
9084 (background_highlight): Rename to `tty_background_highlight'.
9085 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
9086 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
9087 (tty_set_scroll_region, tty_background_highlight)
9088 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
9089 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
9090 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
9091 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
9092 Add static modifier.
9093 (tty_reset_terminal_modes, tty_set_terminal_window)
9094 (tty_set_scroll_region, tty_background_highlight)
9095 (tty_highlight_if_desired, tty_cursor_to)
9096 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
9097 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
9098 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
9099 renames.
9100
880820fe 91012007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
9102
9103 * keyboard.c: Qrtl is new.
9104 (parse_tool_bar_item): Handle :rtl keyword.
9105 (syms_of_keyboard): Intern :rtl keyword.
9106
9107 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
9108
9109 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
9110 so no Lisp code is executed.
9111 (file_for_image, find_rtl_image): New functions.
9112 (xg_get_image_for_pixmap): Use file_for_image
9113 (update_frame_tool_bar): If direction is RTL, use RTL image if
9114 defined. Use Gtk stock images if defined.
9115
83cc8d35
YM
91162007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9117
9118 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
9119 for nonexistent or zero-width glyph in composition glyph.
9120
e60c4e15
SM
91212007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
9122
d7e2a28f
SM
9123 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
9124
e60c4e15
SM
9125 * xdisp.c (Finvisible_p): New function.
9126 (syms_of_xdisp): defsubr it.
9127
ee163e6d
JB
91282007-08-24 Juanma Barranquero <lekktu@gmail.com>
9129
9130 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
9131 Doc fixes.
9132
90fa408d
YM
91332007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9134
35277b03 9135 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 9136
cac4219c
MR
91372007-08-24 Martin Rudalics <rudalics@gmx.at>
9138
9139 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
9140 whether decoding has modified buffer contents.
9141
5fc9fdeb
JR
91422007-08-24 Jason Rumney <jasonr@gnu.org>
9143
9144 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
9145 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
9146 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
9147 (init_svg_functions) [HAVE_NTGUI]: New function.
9148 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
9149 (svg_load_image): Use them.
9150 (svg_load_image) [HAVE_NTGUI]: Implement background.
9151
93b23406
YM
91522007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9153
9154 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
9155 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
9156 (LIBX): Remove @RSVG_LIBS@.
9157 (LIBES): Add $(RSVG_LIBS).
9158
9159 * image.c (svg_load_image): Blend with specified background if exists.
9160 Use IMAGE_BACKGROUND. Add Mac OS Support.
9161
9162 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
9163 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
9164 Remove macros.
9165 [MAC_OSX] (socket_callback): Do nothing.
9166 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
9167 ReceiveNextEvent.
9168 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
9169 socket_callback.
9170 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
9171
2467875c
GM
91722007-08-22 Glenn Morris <rgm@gnu.org>
9173
ff8da443 9174 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 9175
4ab27a43
GM
91762007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
9177
9178 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 9179
666e0eda
GM
9180 * image.c: Add support for SVG images. Some additional comments
9181 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
9182 (svg_image_p): New function to test for SVG image.
9183 (svg_load): New function to load SVG image.
9184 (svg_load_image): New function, helper for svg_load.
9185 (Qsvg): New Lisp_object.
9186 (svg_keyword_index): New enum.
9187 (svg_format): New static `image_keyword' struct.
9188 (svg_type): New static `image_type' struct.
9189 (librsvg/rsvg.h): Include it.
4ab27a43 9190
b636b4c1
SM
91912007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
9192
9193 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
9194
9ecb827b
SM
91952007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
9196
1d064697
SM
9197 * lread.c (Qold_style_backquotes): New var.
9198 (syms_of_lread): Init and staticpro it.
9199 (load_warn_old_style_backquotes): New fun.
9200 (Fload): Use them to warn about old style backquotes.
9201 (end_of_file_error, Fload): Remove unused vars.
9202
5772ed4b
SM
9203 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
9204
9ecb827b 9205 * lread.c (Vold_style_backquotes): New var.
5aa273b0 9206 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
9207 (read1): Set it when we find an old-style (back)quote.
9208
32e1c7b1
JR
92092007-08-22 Jason Rumney <jasonr@gnu.org>
9210
9211 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
9212
b8fa755b
KY
92132007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
9214
9215 * puresize.h (BASE_PURESIZE): Increase to 1140000.
9216
1283140e
RS
92172007-08-19 Richard Stallman <rms@gnu.org>
9218
9219 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
9220
2c4685ee
AS
92212007-08-19 Andreas Schwab <schwab@suse.de>
9222
9223 * alloc.c (pure): Round PURESIZE up.
9224
880820fe 92252007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
9226
9227 * xterm.c (handle_one_xevent): Remove check that mouse click is in
9228 active frame.
9229
6e33efc4
RS
92302007-08-16 Richard Stallman <rms@gnu.org>
9231
9232 * eval.c (Fcommandp): Add parens to clarify.
9233
9234 * minibuf.c (Fall_completions): Use enum for type of table.
9235
9236 * emacs.c (USAGE2): Improve text.
9237
fcf8ff2e
GM
92382007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
9239
5205ee62
GM
9240 * term.c (tty_default_color_capabilities): Declare static
9241 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 9242
880820fe 92432007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
9244
9245 * gtkutil.c (update_frame_tool_bar): Use -1 as index
9246 to gtk_toolbar_insert.
9247
4a181359
SM
92482007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
9249
1bc99c9c
SM
9250 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
9251
4a181359
SM
9252 * insdel.c (reset_var_on_error): New fun.
9253 (signal_before_change, signal_after_change):
9254 Use it to reset (after|before)-change-functions to nil in case of error.
9255 Bind inhibit-modification-hooks to t.
9256 Don't bind (after|before)-change-functions to nil while they run.
9257
6c28435c
YM
92582007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9259
9260 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
9261 filling pixmap with stippled background.
9262
ad3b3e02
YM
92632007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9264
9265 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
9266 Don't use invisible frame as parent window for repositioning.
9267
a22dec27
SM
92682007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
9269
9270 * print.c (new_backquote_output): Rename from old_backquote_output.
9271 (print): Inverse its logic (according to its name) so as to match the
9272 behavior of new_backquote_flag in lread.c.
9273
7b7d07bb
YM
92742007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9275
9276 * gmalloc.c (posix_memalign): New function.
9277
9278 * macterm.c (frame_highlight, frame_unhighlight): Don't call
9279 ActivateControl/DeactivateControl here.
9280 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
9281 frame-notice-user-settings is non-nil.
9282 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
9283 for kEventParamFMFontStyle.
9284 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
9285 mac_pass_command_to_system and mac_pass_control_to_system here.
9286 (XTread_socket): Call ActivateControl/DeactivateControl here.
9287 (XTread_socket) [TARGET_API_MAC_CARBON]:
9288 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
9289 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
9290 for window repositioning.
7b7d07bb 9291
22e9fe24
GM
92922007-08-08 Glenn Morris <rgm@gnu.org>
9293
9294 * Replace `iff' in doc-strings and comments.
9295
ae494350
CY
92962007-08-07 Chong Yidong <cyd@stupidchicken.com>
9297
9298 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
9299
6f2528d8
MR
93002007-08-07 Martin Rudalics <rudalics@gmx.at>
9301
9302 * fileio.c (Finsert_file_contents): Run format-decode and
9303 after_insert_file_functions on entire buffer when REPLACE is
9304 non-nil and inhibit modification_hooks and point_motion_hooks.
9305 For consistency, run after_insert_file_functions iff something
9306 got inserted. Move signal_after_change and update_compositions
9307 after code running after_insert_file_functions. Make sure that
6b8e474c 9308 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 9309
3ceeb306
YM
93102007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9311
9312 * emacs.c (main)
9313 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
9314 Call malloc_enable_thread on interactive startup.
9315
9316 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
9317 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
9318 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
9319 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
9320 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
9321 New functions.
9322
ca5e6fd5
CY
93232007-08-06 Chong Yidong <cyd@stupidchicken.com>
9324
32bfce5d
CY
9325 * xdisp.c (redisplay_window): When restoring original buffer
9326 position, make sure it is still valid.
9327
ca5e6fd5
CY
9328 * image.c (png_load): Ignore png-supplied background color.
9329
a5b11587
YM
93302007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9331
9332 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
9333 Use kCFAbsoluteTimeIntervalSince1970.
9334
9335 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
9336 New variable.
9337 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
9338 event loop should be quit.
9339 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
9340 Quit dialog event loop if quit_dialog_event_loop is set.
9341
9342 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
9343 (Selection): New typedef. Use instead of ScrapRef.
9344 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
9345 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
9346 (mac_clear_selection): Rename from clear_scrap.
9347 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 9348 scrap_has_target_type. All uses changed.
a5b11587
YM
9349 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9350 (mac_selection_has_target_p): New functions.
9351 (mac_put_selection_value): Rename from put_scrap_string.
9352 (mac_get_selection_value): Rename from get_scrap_string.
9353 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
9354 (put_scrap_private_timestamp, scrap_has_target_type)
9355 (get_scrap_private_timestamp): Remove functions.
9356 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
9357 (x_own_selection, x_get_local_selection):
9358 Use mac_valid_selection_value_p.
9359 (x_own_selection): Don't use put_scrap_private_timestamp.
9360 Record OWNERSHIP-INFO into Vselection_alist instead.
9361 (x_get_local_selection): Don't check type if request is local.
9362 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
9363 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
9364
880820fe 93652007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
9366
9367 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
9368 add comment explaining why.
9369
73ff9d42
RS
93702007-08-03 Richard Stallman <rms@gnu.org>
9371
9372 * fileio.c (Fvisited_file_modtime): Use make_time.
9373
54ed9a2d 93742007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
9375
9376 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
9377 build.
9378
65a9c8e2
SM
93792007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
9380
9381 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
9382
c5925799
KY
93832007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
9384
9385 * puresize.h (BASE_PURESIZE): Increase to 1130000.
9386
adef3de7
RS
93872007-07-30 Richard Stallman <rms@gnu.org>
9388
9389 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
9390
880820fe 93912007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
9392
9393 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
9394
a10421a1
NR
93952007-07-28 Nick Roberts <nickrob@snap.net.nz>
9396
9397 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
9398 remote default-directory.
9399
9400 * buffer.c (mode-line-format): Update doc string.
9401
0cb1ae20
YM
94022007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9403
9404 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
9405 scroll bar gap.
9406 (x_scroll_bar_create): Set bar->fringe_extended_p.
9407 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
9408 on frame edge. Check fringe background extension. Don't clear
9409 extended fringe background area.
9410
9411 * w32term.h (struct scroll_bar): New member fringe_extended_p.
9412 (w32_fill_area): Enclose multiple statements with do ... while (0).
9413
9414 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
9415 Extend fringe background to scroll bar gap.
9416 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
9417 Set bar->fringe_extended_p.
9418 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9419 Put leftmost/rightmost scroll bars on frame edge. Check fringe
9420 background extension. Don't clear extended fringe background area.
9421
9422 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
9423 New member fringe_extended_p.
9424
cacc7b51
GM
94252007-07-25 Glenn Morris <rgm@gnu.org>
9426
9427 * Relicense all FSF files to GPLv3 or later.
9428
9429 * COPYING: Switch to GPLv3.
9430
89835619
SM
94312007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
9432
c4f46926
SM
9433 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
9434
9435 * data.c (Finteractive_form): Check for the presence of an
9436 `interactive-form' symbol property more thoroughly.
9437
9438 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
9439 present, analogous to the function-documentation property.
9440
ee04257d
JR
94412007-07-24 Jason Rumney <jasonr@gnu.org>
9442
9443 * w32fns.c (x_real_positions): Get real position from OS instead of
9444 calculating it.
9445
50624218
JR
94462007-07-23 Jason Rumney <jasonr@gnu.org>
9447
9448 * filelock.c (current_lock_owner): Allow for @ sign in username.
9449
3650f60e
NR
94502007-07-22 Nick Roberts <nickrob@snap.net.nz>
9451
9452 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
9453 remote default-directory.
9454
9455 * buffer.c (mode-line-format): Describe above case in doc string.
9456
1e899515 94572007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 9458
75be5258
EZ
9459 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
9460 Define if not defined.
9461
2b6e2f4d
JR
94622007-07-18 Jason Rumney <jasonr@gnu.org>
9463
9464 * w32proc.c (w32_executable_type): Handle 64 bit executables.
9465
23dacf80
JB
94662007-07-18 Richard Stallman <rms@gnu.org>
9467
9468 * data.c (Fsetq_default): Doc fix.
9469
9470 * eval.c (Fsetq): Doc fix.
9471
94722007-07-18 Juanma Barranquero <lekktu@gmail.com>
9473
9474 * coding.c (Ffind_operation_coding_system):
9475 * eval.c (For, Fand): Doc fixes.
880820fe 9476 Reported by Johan Bockgård.
23dacf80 9477
880820fe 94782007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 9479
23dacf80 9480 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 9481
23dacf80 9482 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
9483
9484 * xterm.c (x_ewmh_activate_frame): New function.
9485 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
9486
71ec17e6
MR
94872007-07-17 Martin Rudalics <rudalics@gmx.at>
9488
9489 * window.c (Fdisplay_buffer): If largest or LRU window is the
9490 only window, split it even if it is not eligible for splitting.
9491 This restores the original behavior broken by the 2007-07-15
9492 change.
9493
e9818042
GM
94942007-07-17 Glenn Morris <rgm@gnu.org>
9495
9496 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
9497 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
9498 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
9499 constituents. Doc fix.
9500
e6fca843
SM
95012007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9502
9503 * process.c (Fstart_process, Fmake_network_process)
9504 (read_process_output): Fix up last changes.
9505
b5d2b4ab
EZ
95062007-07-16 Eli Zaretskii <eliz@gnu.org>
9507
9508 * makefile.w32-in (clean): Don't delete *~.
9509
413a79ad
AS
95102007-07-16 Andreas Schwab <schwab@suse.de>
9511
9512 * window.c (Fdisplay_buffer): Use NILP.
9513 (Fset_window_scroll_bars): Likewise.
9514
f1de8c77
MR
95152007-07-15 Martin Rudalics <rudalics@gmx.at>
9516
9517 * window.c (window_min_size_2): New function.
9518 (window_min_size_1, size_window, Fdisplay_buffer)
9519 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
9520 windows without mode- or header-lines when window-min-height is
9521 too small.
9522 (size_window): Reset nodelete_p after testing it, following an
9523 earlier note by Kim F. Storm.
9524 (display_buffer): Do not set split_height_threshold to twice the
9525 value of window_min_height to avoid changing the value of a
9526 customizable variable. Rather explicitly check whether the
9527 height of the window that shall be splitted is at least as large
9528 as split_height_threshold.
1af74d06
MB
9529 (Fwindow_full_width_p): New defun.
9530 (syms_of_window): Defsubr it.
d31053f9 9531
1af74d06 9532 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 9533
5e1ab613
JR
95342007-07-14 Jason Rumney <jasonr@gnu.org>
9535
9536 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
9537
f01cbfdd
RS
95382007-07-14 Richard Stallman <rms@gnu.org>
9539
9540 * eval.c (maybe_call_debugger): New function.
9541 (find_handler_clause): Use maybe_call_debugger.
9542 Call it when the handler says `debug'.
9543 Eliminate DEBUGGER_VALUE_PTR.
9544 (Fsignal): Eliminate debugger_value.
9545 (Qdebug): New variable.
9546 (syms_of_eval): Initialize it.
9547
1bab435a
JB
95482007-07-14 Juanma Barranquero <lekktu@gmail.com>
9549
9550 * eval.c (Fprogn):
9551 * keyboard.c (Ftrack_mouse):
9552 * print.c (Fwith_output_to_temp_buffer):
9553 * window.c (Fsave_window_excursion): Doc fix.
9554
be436d23
SM
95552007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
9556
9557 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
9558
60f0fb11
SM
95592007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
9560
9561 * process.h (struct Lisp_Process): Turn slots infd, outfd,
9562 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
9563 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
9564 read_output_delay, and read_output_skip from Lisp_Objects to ints.
9565 Remove unused encoding_carryover.
9566 * process.c: Adjust all functions accordingly.
9567
d8b18043
RS
95682007-07-12 Richard Stallman <rms@gnu.org>
9569
9570 * term.c: Include unistd.h only if HAVE_UNISTD_H.
9571
d5781bb6
JR
95722007-07-11 Jason Rumney <jasonr@gnu.org>
9573
9574 * makefile.w32-in (LIBS): Include OLE32.
9575
9576 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
9577 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
9578
5bb7dfee
SM
95792007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
9580
9581 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
9582 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
9583 from a Lisp_Object into a bare pointer.
9584 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
9585 Adjust the code correspondingly.
9586
9587 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
9588
9589 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
9590 (term_show_mouse_face): Remove unused var `j'.
9591 (handle_one_term_event): Remove unused vars `i' and `j'.
9592 Don't cast return value of ttyname since it's not necessary.
9593
a1be1ce8
SM
95942007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
9595
5045e68e
SM
9596 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
9597 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
9598
8071c00f
SM
9599 * fns.c (map_char_table): Use an array of int for `indices' rather than
9600 an array of Lisp_Objects (which are only ever integers anyway).
9601 (Fmap_char_table): Update caller.
9602 * lisp.h: Update prototype.
9603 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
9604 * fontset.c (Ffontset_info):
9605 * casetab.c (set_case_table): Update callers.
9606
9607 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
9608
fab84e3c
SM
9609 * keymap.c (struct accessible_keymaps_data)
9610 (struct where_is_internal_data): New structures.
9611 (accessible_keymaps_1, where_is_internal_1): Use them to change
9612 interface to adhere to the one used by map_keymap.
9613 (Faccessible_keymaps, where_is_internal): Use map_keymap.
9614 (accessible_keymaps_char_table, where_is_internal_2): Remove.
9615
a1be1ce8
SM
9616 * keymap.h (map_keymap_function_t): More informative prototype.
9617
ef887810
RS
96182007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
9619
9620 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
9621 (looking_at_1): Don't change search_regs and last_thing_searched
9622 if `inhibit-changing-match-data' is non-nil.
9623 (string_match_1, search_buffer, set_search_regs): Likewise.
9624 (syms_of_search): Add Lisp level definition for
9625 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
9626 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
9627 start and end of the match, instead of using values in search_regs.
ef887810 9628
4d02fc25
SM
96292007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
9630
9631 * minibuf.c (Fcompleting_read): New value `confirm-only'
9632 for `require-match'.
9633
fe45b81f
SM
96342007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
9635
9636 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
9637 part of the 2007-06-27 change to syms_of_fileio.
9638
a56dd283
YM
96392007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9640
9641 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
9642 Check WINDOWP before using XWINDOW. Consolidate return statements.
9643
0cf9f5b5
RS
96442007-06-27 Richard Stallman <rms@gnu.org>
9645
9646 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
9647
a66f285a
JB
96482007-06-27 Juanma Barranquero <lekktu@gmail.com>
9649
9650 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
9651
8d0d84d2
YM
96522007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9653
9654 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
9655 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
9656 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
9657 (_free_internal, memalign): Use them.
9658 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
9659 Initialize to PTHREAD_MUTEX_INITIALIZER.
9660 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
9661 (morecore_nolock): Rename from morecore. All uses changed.
9662 Use only nolock versions of internal allocation functions.
9663 (_malloc_internal_nolock, _realloc_internal_nolock)
9664 (_free_internal_nolock): New functions created from
9665 _malloc_internal, _realloc_internal, and _free_internal.
9666 (_malloc_internal, _realloc_internal, _free_internal): Use them.
9667 Copy hook value to automatic variable before its use.
9668 (memalign): Copy hook value to automatic variable before its use.
9669
5a0bbd9a
KH
96702007-06-26 Kenichi Handa <handa@m17n.org>
9671
9672 * coding.c (Ffind_operation_coding_system): Docstring improved.
9673 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
9674
9a51747b
DK
96752007-06-25 David Kastrup <dak@gnu.org>
9676
9677 * keymap.c (Fcurrent_active_maps): Add `position' argument.
9678 (Fwhere_is_internal): Adjust call to `current-active-maps' to
9679 cater for additional parameter.
9680
9681 * keymap.h: Adjust number of parameters to `current-active-maps'.
9682
9683 * doc.c (Fsubstitute_command_keys): Adjust call of
9684 `current-active-maps'.
9685
e4305426
DK
96862007-06-25 David Kastrup <dak@gnu.org>
9687
9688 * callint.c (Fcall_interactively): Make the parsing of interactive
9689 specs somewhat more readable.
9690
511a18d9
YM
96912007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9692
9693 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
9694 to scroll bar gap also when bitmap fills fringe. Draw only foreground
9695 if extended background has already been filled.
9696
512eb161
YM
96972007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9698
9699 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
9700 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
9701
9702 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
9703 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
9704 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
9705 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
9706 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
9707 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
9708 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
9709 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
9710 Run timers during dialog popup.
9711 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
9712
2386b1f1
JR
97132007-06-21 Jason Rumney <jasonr@gnu.org>
9714
9715 * image.c (convert_mono_to_color_image): Swap fore and background.
9716
fab8b787
JR
97172007-06-20 Jason Rumney <jasonr@gnu.org>
9718
9719 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
9720 (w32_free_bdf_font): Unmap memory not handle.
9721
15bdd7a0 97222007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
9723
9724 * gmalloc.c (__morecore): Fix the declaration to comply with the
9725 definition.
9726
1bb8a291
JB
97272007-06-20 Juanma Barranquero <lekktu@gmail.com>
9728
9729 * w32term.c (w32_delete_display): Remove leftover declaration.
9730 (w32_define_cursor, w32_initialize): Make static.
9731
9732 * w32.c (_wsa_errlist): Fix typo in error message.
9733 (init_environment): Ignore any environment variable from the
9734 registry having a null value.
9735
92648dea
GM
97362007-06-20 Glenn Morris <rgm@gnu.org>
9737
9738 * Makefile.in (LIBGIF): Default to -lgif.
9739
ff25d115
JR
97402007-06-17 Jason Rumney <jasonr@gnu.org>
9741
9742 * w32menu.c (add_menu_item): Don't use multibyte string functions on
9743 unicode strings.
9744
a1a578a5
JB
97452007-06-16 Juanma Barranquero <lekktu@gmail.com>
9746
9747 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
9748 Fix typo in docstring.
9749
af41f8a8
EZ
97502007-06-16 Eli Zaretskii <eliz@gnu.org>
9751
9752 * w32menu.c (add_menu_item): Escape `&' characters in menu items
9753 and their keybindings.
9754
8b29cab9
CY
97552007-06-15 Chong Yidong <cyd@stupidchicken.com>
9756
9757 * composite.c (update_compositions): Fix last fix.
9758
c433c134
JR
97592007-06-14 Jason Rumney <jasonr@gnu.org>
9760
9761 * w32.c (get_process_times_fn): New function pointer.
9762 (globals_of_w32): Intialize it if present in kernel32.dll.
9763 (w32_get_internal_run_time): New function.
9764
9765 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
9766
553d3164
KH
97672007-06-14 Kenichi Handa <handa@etlken.m17n.org>
9768
9769 * composite.c (update_compositions): Check the validness of
9770 compositions.
9771
446ba96f
YM
97722007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9773
9774 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
9775 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
9776
9777 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
9778 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
9779
9780 * macgui.h (USE_MAC_TOOLBAR): New define.
9781
9782 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
9783 Return immediately unless popup is activated.
9784
9785 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
9786 background to scroll bar gap.
9787 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
9788 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
9789 scroll bars on frame edge. Check fringe background extension.
9790 Don't clear extended fringe background area.
9791 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
9792 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
9793 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
9794 [USE_MAC_TOOLBAR]: New macros.
9795 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
9796 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
9797 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
9798 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
9799 [USE_MAC_TOOLBAR]: New functions.
9800 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
9801 manually if previous repositioning has failed.
9802 (mac_handle_keyboard_event): Use precomputed event kind.
9803 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
9804 as tool bar item click. Handle mouse movement over tool bar items.
9805
9806 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
9807 toolbar_win_gravity.
9808 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
9809 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
9810 Add externs.
9811
9812 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
9813 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
9814
9720173f
CY
98152007-06-14 Chong Yidong <cyd@stupidchicken.com>
9816
9817 * image.c (search_image_cache): Remove unused variable.
9818
1217dd00
CY
98192007-06-13 Chong Yidong <cyd@stupidchicken.com>
9820
9821 * xfns.c, xmenu.c: Link to xaw3d if available.
9822
c5b8e0ea
YM
98232007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9824
9825 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
9826 frame_foreground and frame_background.
9827
9828 * image.c (lookup_image): Save frame foreground and background colors.
9829 (search_image_cache): Check if saved and current frame colors match.
9830
c69b0314
SM
98312007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9832
9833 * regex.c (regex_compile): Remove the `regnum' counter.
9834 Use bufp->re_nsub instead. Add support for \(?N:RE\).
9835
c9612b8e
SM
98362007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
9837
9838 * term.c: Include intervals.h to declare Fget_text_property.
9839
843d2458
JR
98402007-06-10 Jason Rumney <jasonr@gnu.org>
9841
9842 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
9843
1e0d2d60 98442007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
9845
9846 * callint.c (Fcall_interactively):
9847 * editfns.c (Fdelete_and_extract_region):
9848 * fileio.c (Fread_file_name):
9849 * fns.c (Fmapconcat):
9850 * keyboard.c (cmd_error_internal):
9851 * keymap.c (Fkey_description):
9852 * lread.c (openp):
9853 * minibuf.c (read_minibuf):
9854 * search.c (wordify):
9855 * sunfns.c (sel_read):
9856 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
9857 * xfns.c (x_default_scroll_bar_color_parameter):
9858 * xmenu.c (menu_help_callback):
9859 * xselect.c (Fx_get_atom_name):
9860 * xterm.c (x_term_init): Use empty_unibyte_string.
9861
15bdd7a0 98622007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
9863
9864 * alloc.c (init_strings): Initialize canonical empty strings.
9865 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
9866 canonical empty string when the requested size is 0.
9867
9868 * emacs.c (empty_unibyte_string): Rename from empty_string.
9869 (empty_multibyte_string): New canonical empty string.
9870 (syms_of_emacs): Don't initialize empty_string.
9871
9872 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
9873 string, if appropriate.
9874 (empty_unibyte_string, empty_multibyte_string): New externs.
9875 (empty_string): Remove extern.
9876
9877 * lread.c (syms_of_lread): Use empty_unibyte_string.
9878
42c4c67a
JR
98792007-06-07 Jason Rumney <jasonr@gnu.org>
9880
9881 * s/ms-w32.h: Don't define HAVE_TZNAME.
9882
9883 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
9884
aa8280d3
YM
98852007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9886
9887 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
9888
9889 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
9890 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
9891
9892 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
9893 Don't call next handler.
9894 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
9895 Remove argument. Install handler to application.
9896 (set_frame_menubar): Don't change deep_p.
1e0d2d60 9897 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
9898 FRAME_OUTER_TO_INNER_DIFF_Y.
9899 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9900 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9901 [HAVE_DIALOGS]: New macros.
9902 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
9903 Use them.
9904 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
9905
9906 * macselect.c [MAC_OSX] (install_service_handler): Rename from
9907 init_service_handler. All callers changed. Return OSStatus value.
9908
9909 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
9910 All callers changed so as not to call SetPortWindowPort.
9911 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
9912 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
9913 mac_draw_string_common.
9914 (mac_draw_image_string_qd): Likewise.
9915 (mac_draw_string_common): Use them. Add INLINE.
9916 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
9917 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
9918 GetGlobalMouse.
9919 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
9920 and FRAME_OUTER_TO_INNER_DIFF_Y.
9921 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
9922 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
9923 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
9924 repositioning window to mac_handle_window_event.
9925 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
9926 saving window location to mac_handle_window_event
9927 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
9928 (install_menu_target_item_handler): Remove argument in extern.
9929 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
9930 Also accept command events.
9931 (do_keystroke): New function created from XTread_socket.
9932 (init_command_handler): Remove functions.
9933 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
9934 and save window location by kEventWindowShowing and kEventWindowHiding
9935 handlers here. Don't call next handler for window state change and
9936 focus events.
9937 (mac_handle_application_event, mac_handle_keyboard_event)
9938 [TARGET_API_MAC_CARBON]: New functions.
9939 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
9940 kEventWindowShowing and kEventWindowHiding events. Move installation
9941 of mouse, font, text input and menu target item handlers to
9942 install_application_handler.
9943 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
9944 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9945 New function.
9946 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9947 Register it.
c9612b8e
SM
9948 (XTread_socket) [TARGET_API_MAC_CARBON]:
9949 Consolidate SendEventToEventTarget calls.
9950 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
9951 Move application activation handler to mac_handle_application_event.
9952 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
9953 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
9954 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
9955 init_command_handler. Call install_application_handler.
9956
9957 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
9958 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
9959
6926c954
GM
99602007-06-07 Glenn Morris <rgm@gnu.org>
9961
9962 * emacs.c (main): Use `emacs-copyright' in --version output.
9963
6fe04c89
CY
99642007-06-06 Chong Yidong <cyd@stupidchicken.com>
9965
c9612b8e 9966 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 9967
7eb0d727
YM
99682007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9969
9970 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
9971
9972 * macgui.h: Replace WindowPtr with WindowRef.
9973
9974 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
9975 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
9976 Replace ControlHandle with ControlRef.
9977 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
9978
9979 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
9980 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
9981 Replace ControlHandle with ControlRef.
9982 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
9983 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
9984
9985 * macterm.h (struct scroll_bar): Rename member control_handle_low
9986 and control_handle_high to control_ref_low and control_ref_high.
9987 All uses changed.
9988 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
9989 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
9990 respectively. All uses changed.
9991 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
9992 (install_window_handler, remove_window_handler): Replace WindowPtr
9993 with WindowRef in externs.
9994
65fddb74
JB
99952007-06-05 Juanma Barranquero <lekktu@gmail.com>
9996
9997 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
9998
db1213a9
NR
99992007-06-03 Nick Roberts <nickrob@snap.net.nz>
10000
10001 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
10002
65fddb74 10003 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
10004 Condition on HAVE_GPM too.
10005
10006 * term.c (term_mouse_highlight): Remove unused variables.
10007 (Fterm_open_connection): Set gpm_zerobased to 1.
10008 (term_mouse_movement, term_mouse_click, handle_one_term_event):
10009 Use zero based co-ordinates.
10010 (handle_one_term_event): Report a drag as mouse movement too.
10011
10012 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
10013
d94df25b
CY
100142007-06-03 Chong Yidong <cyd@stupidchicken.com>
10015
10016 * image.c (search_image_cache): New function. Require background
10017 color match if background color is unspecified in the image spec.
10018 (uncache_image, lookup_image): Use it.
10019
4797b6d9
JB
100202007-06-01 Juanma Barranquero <lekktu@gmail.com>
10021
10022 * window.c (Fshrink_window): Reflow docstring.
10023
1ffe7343
NR
100242007-06-02 Chong Yidong <cyd@stupidchicken.com>
10025
10026 * Version 22.1 released.
10027
100282007-06-01 Richard Stallman <rms@gnu.org>
10029
10030 * xfns.c (x_encode_text): Add GCPRO.
10031
100322007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10033
10034 * xfns.c (x_set_name_internal): Save encoded name before
10035 x_encode_text in case string data is relocated.
10036
100372007-05-31 Richard Stallman <rms@gnu.org>
10038
10039 * buffer.c (syms_of_buffer): Doc fix.
10040
100412007-05-30 Nick Roberts <nickrob@snap.net.nz>
10042
10043 * sysdep.c (init_sys_modes): Add rather than replace with
10044 O_NONBLOCK.
10045
10046 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
10047 term_mouse_moveto.
10048
10049 * termhooks.h (term_mouse_moveto): New extern.
10050
10051 * term.c (mouse_face_window): Rename...
10052 (Qmouse_face_window): ...to this.
10053 (term_show_mouse_face, term_clear_mouse_face)
10054 (term_mouse_highlight): Use Qmouse_face_window.
10055 (term_mouse_moveto): New function.
10056 (term_mouse_position): Make it work.
10057 (syms_of_term): Uncomment assignment to mouse_position_hook.
10058 Staticpro Qmouse_face_window.
10059
100602007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10061
10062 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
10063 around current_column call.
10064
100652007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
10066
10067 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
10068 * xdisp.c (next_element_from_buffer):
10069 * window.c (delete_window):
10070 * term.c (term_mouse_highlight):
10071 * msdos.c (getdefdir):
10072 * macterm.c (mac_create_bitmap_from_bitmap_data)
10073 (init_font_name_table):
10074 * fns.c (Fsxhash):
10075 * data.c (Fmake_local_variable):
10076 * ccl.c (ccl_driver): Likewise.
10077
100782007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10079
10080 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
10081 Call mac_wakeup_from_rne on window size change.
10082
100832007-05-25 Chong Yidong <cyd@stupidchicken.com>
10084
10085 * image.c (uncache_image): Fix typo.
10086
100872007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
10088
10089 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
10090
100912007-05-22 Richard Stallman <rms@gnu.org>
10092
10093 * xterm.c (x_connection_closed): Remove NO_RETURN.
10094
100952007-05-22 Martin Rudalics <rudalics@gmx.at>
10096
10097 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
10098
100992007-05-21 Chong Yidong <cyd@stupidchicken.com>
10100
10101 * image.c (uncache_image): New function.
10102 (Fimage_refresh): New function.
10103
880820fe 101042007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
10105
10106 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
10107
101082007-05-20 Nick Roberts <nickrob@snap.net.nz>
10109
10110 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
10111 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
10112
101132007-05-20 Nick Roberts <nickrob@snap.net.nz>
10114
10115 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
10116 conditional on [HAVE_GPM_H].
10117
101182007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10119
10120 * syntax.c (skip_chars): Update syntax-table only after we checked that
10121 the new location is valid.
10122
101232007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10124
10125 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
10126 mac_get_window_bounds.
10127
101282007-05-20 Nick Roberts <nickrob@snap.net.nz>
10129
10130 * Makefile.in (LIBGPM): Allow it to be set from configure.
10131 If set then link Emacs with it.
10132
10133 * config.in: Regenerate.
10134
10135 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
10136 New externs.
10137
10138 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
10139 Include gpm.h.
10140 (handle_one_term_event, term_gpm): New externs.
10141
10142 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
10143 and allow it to be interrupted by SIGIO.
10144
10145 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
10146 (wait_reading_process_output): Wait on gpm_fd too.
10147 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
10148 (add_gpm_wait_descriptor_called_flag): New variable.
10149 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
10150
10151 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
10152 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
10153 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
10154 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
10155 (make_lispy_event): Add case GPM_CLICK_EVENT.
10156 (read_avail_input): Handle mouse input.
10157
10158 * term.c (write_glyphs_with_face): New function.
10159 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
10160 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
10161 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
10162 (mouse_face_face_id, term_gpm, pos_x, pos_y)
10163 (last_mouse_x, last_mouse_y): New variables.
10164 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
10165 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
10166 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
10167 (Fterm_close_connection): New functions.
10168 (term_init): Initialise mouse_face_window.
10169
101702007-05-19 Chong Yidong <cyd@stupidchicken.com>
10171
10172 * xdisp.c (redisplay_window): If first window line is a
10173 continuation line, recompute the new window start instead of
10174 recentering.
10175
101762007-05-18 Glenn Morris <rgm@gnu.org>
10177
10178 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
10179 Suggested by Alfred M. Szmidt <ams@gnu.org>.
10180
101812007-05-17 Glenn Morris <rgm@gnu.org>
10182
10183 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
10184
101852007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10186
10187 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
10188 dead key repeat and up events.
10189
101902007-05-14 Chong Yidong <cyd@stupidchicken.com>
10191
10192 * image.c (pbm_load): Check image size for monochrome pbm.
10193
101942007-05-13 Chong Yidong <cyd@stupidchicken.com>
10195
10196 * xterm.c (XTread_socket): Revert last change.
10197
101982007-05-12 Chong Yidong <cyd@stupidchicken.com>
10199
10200 * image.c (pbm_load): Correctly check image size for greyscale pbm.
10201
10202 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
10203
102042007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
10205
10206 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
10207 mixup (YAILOM).
10208
102092007-05-07 Andreas Schwab <schwab@suse.de>
10210
10211 * keymap.c (Flookup_key): Fix typo in last change.
10212
102132007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
10214
10215 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
10216 mapping for unibyte strings.
10217
102182007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10219
10220 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
10221 (Fx_popup_dialog) [MAC_OSX]: Likewise.
10222
102232007-04-29 Richard Stallman <rms@gnu.org>
10224
10225 * insdel.c (replace_range): For undo, record insertion first.
10226
102272007-04-29 Andreas Schwab <schwab@suse.de>
10228
10229 * lisp.h (VECSIZE): Use OFFSETOF.
10230
102312007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10232
10233 * xdisp.c (try_window_reusing_current_matrix): Fix number of
10234 disabled lines.
10235
102362007-04-28 Richard Stallman <rms@gnu.org>
10237
10238 * lread.c (read_escape): In a string, \s is always space.
10239
880820fe 102402007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
10241
10242 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
10243
10244 * gtkutil.c (xg_update_menubar, create_menus): Create empty
10245 submenu for menu bar items.
10246
382c648d 10247See ChangeLog.10 for earlier changes.
6922b018
KH
10248
10249;; Local Variables:
880820fe 10250;; coding: utf-8
33462dfa 10251;; add-log-time-zone-rule: t
6922b018 10252;; End:
2a34a036 10253
59ce725a 10254 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
10255
10256 This file is part of GNU Emacs.
10257
10258 GNU Emacs is free software; you can redistribute it and/or modify
10259 it under the terms of the GNU General Public License as published by
684d6f5b 10260 the Free Software Foundation; either version 3, or (at your option)
7f6d64f8
GM
10261 any later version.
10262
10263 GNU Emacs is distributed in the hope that it will be useful,
10264 but WITHOUT ANY WARRANTY; without even the implied warranty of
10265 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10266 GNU General Public License for more details.
10267
10268 You should have received a copy of the GNU General Public License
10269 along with GNU Emacs; see the file COPYING. If not, write to the
10270 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
10271 Boston, MA 02110-1301, USA.
ab5796a9 10272
28f60c3d 10273;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40