lisp/mouse-drag.el (mouse-drag-throw): Fix typo in docstring.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c17819f4
CY
12011-04-13 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (init_xdisp): Initialize echo_area_window (Bug#6451).
4
300f9fca
ST
52011-04-10 Samuel Thibault <sthibault@debian.org> (tiny change)
6
7 * sysdep.c (wait_for_termination): On GNU Hurd, kill returns -1 on
8 zombies (Bug#8467).
9
fde4eb86
CY
102011-04-10 Chong Yidong <cyd@stupidchicken.com>
11
12 * buffer.c (syms_of_buffer): Doc fix (Bug#6902).
13
5324d904
CY
142011-04-08 Chong Yidong <cyd@stupidchicken.com>
15
65969f63
CY
16 * ftfont.c (get_adstyle_property, ftfont_pattern_entity): Use
17 unsigned char, to match FcChar8 type definition.
18
19 * xterm.c (handle_one_xevent):
20 * xmenu.c (create_and_show_popup_menu):
21 * xselect.c (x_decline_selection_request)
22 (x_reply_selection_request): Avoid type-punned deref of X events.
5324d904 23
da2fb5b5 242011-04-08 Samuel Thibault <sthibault@debian.org> (tiny change)
0080dc6b
SS
25
26 * term.c (init_tty): Fix incorrect ifdef placement (Bug#8450).
27
4e19a977
CS
282011-03-19 Christoph Scholtes <cschol2112@googlemail.com>
29
30 * process.c (Fformat_network_address): Doc fix.
31
20f56955
CY
322011-03-19 Chong Yidong <cyd@stupidchicken.com>
33
34 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
35 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
36 These macros can no longer be used for assignment.
37
38 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
39 struct members directly, instead of using BUF_BEGV etc.
40 (record_buffer_markers, fetch_buffer_markers): New functions for
41 recording and fetching special buffer markers.
42 (set_buffer_internal_1, set_buffer_temp): Use them.
43
44 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
45
46 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
47
48 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
49 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
50
51 * xdisp.c (hscroll_window_tree):
52 (reconsider_clip_changes): Use PT instead of BUF_PT.
53
45763476
JB
542011-03-17 Juanma Barranquero <lekktu@gmail.com>
55
56 * xfaces.c (Fx_load_color_file):
57 Read color file from absolute filename (bug#8250).
58
1e048ad1
JB
592011-03-11 Juanma Barranquero <lekktu@gmail.com>
60
61 Backport revno:103582 from trunk.
62 * w32xfns.c (select_palette): Check success of RealizePalette against
63 GDI_ERROR, not zero.
64
c47cbdfd
YM
652011-03-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
66
126bc0dc
YM
67 * fringe.c (update_window_fringes): Remove unused variables.
68
c47cbdfd
YM
69 * unexmacosx.c (copy_data_segment): Also copy __got section.
70 (Bug#8223)
71
c6678f29 722011-03-07 Chong Yidong <cyd@stupidchicken.com>
22770c84
CY
73
74 * Version 23.3 released.
75
e3b300a4
KH
762011-02-22 Kenichi Handa <handa@m17n.org>
77
78 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
79 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is
80 integer.
81
f6ed3dbe
CY
822011-02-19 Chong Yidong <cyd@stupidchicken.com>
83
84 * Makefile.in (prefix-args${EXEEXT}): Compile with ALL_CFLAGS.
85
a73d395b
EZ
862011-02-13 Eli Zaretskii <eliz@gnu.org>
87
88 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
89 window is changed inside calls to do_pending_window_change.
90 (Bug#8020)
91
cb191a14
EZ
922011-02-12 Eli Zaretskii <eliz@gnu.org>
93
94 * terminal.c (create_terminal): Use default-keyboard-coding-system
95 and default-terminal-coding-system to initialize coding systems of
96 the new terminal. (Bug#7840)
97
bae1fa42
MR
982011-02-09 Martin Rudalics <rudalics@gmx.at>
99
100 * window.c (select_window): Check inhibit_point_swap argument when
101 deciding whether to return immediately.
102
9aabf64c
JD
1032011-02-08 Jan Djärv <jan.h.d@swipnet.se>
104
105 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
106 zero (Bug#7348).
107
95838641
GM
1082011-02-03 Glenn Morris <rgm@gnu.org>
109
110 * xfaces.c (Finternal_set_lisp_face_attribute):
111 Try to clarify some error messages. (Bug#2659)
112
aca092ac
SM
1132011-02-02 Stefan Monnier <monnier@iro.umontreal.ca>
114
115 * editfns.c (save_restriction_restore): Don't forget to invalidate the
116 current_column cache (bug#7946).
117
ea2460a0
KH
1182011-02-02 Kenichi Handa <handa@m17n.org>
119
120 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
121
122 * xftfont.c (xftfont_open): Likewise.
123
29feb0e9
AS
1242011-02-01 Andreas Schwab <schwab@linux-m68k.org>
125
126 * window.c (Fselect_window): Add missing return value.
127
df61c790
AS
1282011-01-29 Andreas Schwab <schwab@linux-m68k.org>
129
130 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
131 of int. All uses adjusted.
132 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
133 (svg_load_image): Remove casts.
134
7f9c5df9
CY
1352011-01-29 Chong Yidong <cyd@stupidchicken.com>
136
137 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
138 function definitions for compiling with libpng-1.5.
139 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
140 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
141 (Bug#7908).
142
46b3f2be
CY
1432011-01-28 Chong Yidong <cyd@stupidchicken.com>
144
145 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
146
37d1c45d
CY
1472011-01-27 Chong Yidong <cyd@stupidchicken.com>
148
149 * font.c (font_parse_fcname): Require GTK-style font sizes to
150 occur at the end of the font string (Bug#7853).
151
ea08011c
CY
1522011-01-26 Chong Yidong <cyd@stupidchicken.com>
153
154 * font.c (font_parse_fcname): Fix typo in string length.
155
f996bbcb
SM
1562011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
157
158 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
159 the buffer's point-max (bug#7876).
160
19634648
CY
1612011-01-23 Chong Yidong <cyd@stupidchicken.com>
162
163 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
164 Remove unused HAVE_SHM branch (Bug#6811).
165
6de1218f 1662011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19634648 167
6de1218f
PG
168 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
169
e6b84b30
MR
1702011-01-22 Martin Rudalics <rudalics@gmx.at>
171
172 * window.c (select_window): New function.
173 (Fselect_window): Call it.
174 (inhibit_point_swap): Variable deleted.
175 (Fset_window_configuration): Call select_window directly.
176
0514b4be
SM
1772011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
178
179 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
180
e7f50e8f
EZ
1812011-01-16 Eli Zaretskii <eliz@gnu.org>
182
183 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
184
6dc1d2d3
MR
1852011-01-15 Martin Rudalics <rudalics@gmx.at>
186
187 * window.c (inhibit_point_swap): New variable.
188 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
189 point this time.
190 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
191 of setting selected_window to nil (Bug#7728).
192
70ba1ec8
CY
1932011-01-12 Chong Yidong <cyd@stupidchicken.com>
194
195 * config.in (TERMINFO): New definition.
196
197 * s/netbsd.h: Use it to choose between terminfo and termcap
198 (Bug#7642).
199
0ad25444
JD
2002011-01-03 Jan Djärv <jan.h.d@swipnet.se>
201
202 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
203
204 * nsfns.m (ns_set_name_iconic): Remove.
205 (ns_get_screen): Don't assign integer to f.
206 (ns_set_name_internal): New function (Bug#7517).
207 (Vicon_title_format): Extern declare.
208 (ns_set_name): Call ns_set_name_internal.
209 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
210 (x_implicitly_set_name): Ditto.
211 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
212 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
213 Always use buffer name for title and buffer filename only for
b762841f 214 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
0ad25444 215
fb724e55
EZ
2162011-01-03 Eli Zaretskii <eliz@gnu.org>
217
218 * image.c (png_jmpbuf): Remove definition.
219 (my_png_error, png_load): Don't use png_jmpbuf.
220
5be1c984
EZ
2212010-12-31 Eli Zaretskii <eliz@gnu.org>
222
223 * image.c <Qlibpng_version>: New variable.
224 (syms_of_image): Intern and staticpro it. Set its value to the
225 version of PNG library we were compiled with.
226 (my_png_error, png_load): Avoid GCC warnings about direct access
227 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
228 (png_jmpbuf): New macro.
229 (my_png_error, png_load): Use it instead of #ifdef'ing according
230 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 231
cf07311b
SM
2322010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
233
234 * .gdbinit (xgetptr): Fix the union+lsb case.
235 (xbacktrace): Fix the union case.
236
794b75c7
SM
2372010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
238
239 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
240 different from selected-window's.
241
2e4ab211
EZ
2422010-12-25 Eli Zaretskii <eliz@gnu.org>
243
71fe378d
EZ
244 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
245 equivalent of a menu item when the key sequence is given by the
246 `:keys' attribute. (Bug#7662)
247
2e4ab211
EZ
248 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
249 the basic faces are supported.
250
84595ff0
JD
2512010-12-24 Jan Djärv <jan.h.d@swipnet.se>
252
253 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
254
30d621a2
EZ
2552010-12-17 Eli Zaretskii <eliz@gnu.org>
256
257 * xdisp.c (Fformat_mode_line): Fix last change.
258
4bf3e46e
CY
2592010-12-16 Chong Yidong <cyd@stupidchicken.com>
260
261 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
262 faces (Bug#7587).
263
1b2a627f
EZ
2642010-12-13 Eli Zaretskii <eliz@gnu.org>
265
266 * fileio.c (Fexpand_file_name): One more doc fix.
267
15579471
EZ
2682010-12-12 Eli Zaretskii <eliz@gnu.org>
269
270 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
271
f0559026
EZ
2722010-12-11 Eli Zaretskii <eliz@gnu.org>
273
76feb864
EZ
274 * w32fns.c (Fx_show_tip): Call try_window with last argument
275 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
276 solved. Round up the tip height to an integral multiple of the
277 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
278 (Bug#7398)
279
f0559026
EZ
280 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
281 (face_before_or_after_it_pos, next_element_from_string)
282 (next_element_from_c_string, produce_stretch_glyph): Remove unused
283 calculations of maximum string length before calling
284 string_char_and_length and STRING_CHAR_AND_LENGTH.
285 (string_char_and_length): Update commentary: MAXLEN is no longer
286 needed.
287
0b9fc69a
JD
2882010-12-10 Jan Djärv <jan.h.d@swipnet.se>
289
290 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
291 as (Qsave_session arg).
292
293 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
294 (smc_die_CB): Make an event with arg Qt.
295 (Fhandle_save_session): If event has Qt as argument,
296 call Fkill_emacs (Bug#7552).
297
2b815743
JD
2982010-12-07 Jan Djärv <jan.h.d@swipnet.se>
299
300 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
301
d8b2a962
CY
3022010-12-06 Chong Yidong <cyd@stupidchicken.com>
303
304 * dispextern.h (struct it): New member overlay_strings_charpos.
305
306 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
307 charpos where we computed n_overlay_strings.
308 (next_overlay_string): Load overlay strings at recorded position,
309 which may not be the same as the iterator's charpos (Bug#7016).
310
a56d164e
JD
3112010-12-05 Jan Djärv <jan.h.d@swipnet.se>
312
313 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
314 with cursor color and draw a rectangle around the image (Bug#7412).
315
77f1ed6c
CY
3162010-12-05 Chong Yidong <cyd@stupidchicken.com>
317
318 * xdisp.c (try_scrolling): Avoid infloop if the first line is
319 obscured due to a vscroll (Bug#7537).
320
2a91a0b5
JD
3212010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
322
323 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
324
325 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
326 Use FRAME_TOOLBAR_HEIGHT.
327 (x_set_offset): Handle XNegative and YNegative in
328 f->size_hint_flags (Bug#7510).
329
b84ae584
KH
3302010-11-25 Kenichi Handa <handa@m17n.org>
331
332 * charset.c (emacs_mule_charset): Make it an array of charset ID;
333 i.e. integer.
334 (Fdefine_charset_internal): Adjusted for the above change.
335 (init_charset_once): Likewise.
336
337 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
338 duplicated extern.
339
340 * coding.c (emacs_mule_char): Adjust for the change of
341 emacs_mule_charset.
342
343 * lread.c (read_emacs_mule_char): Adjust for the change of
344 emacs_mule_charset.
345
b8e5cf1d
EZ
3462010-11-22 Eli Zaretskii <eliz@gnu.org>
347
348 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
349 of w32api >= 3.15. (Bug#6989) (Bug#7452)
350
96ad0af7
YM
3512010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
352
353 * alloc.c (mark_terminals): Ensure that the image cache is marked
354 even if the terminal object was marked earlier (Bug#6301).
355
35f1de62
CY
3562010-11-21 Chong Yidong <cyd@stupidchicken.com>
357
358 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
359
8d7f026f
JD
3602010-11-20 Jan Djärv <jan.h.d@swipnet.se>
361
362 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
363 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 364 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 365
37de8fd0
J
3662010-11-14 Jan Djärv <jan.h.d@swipnet.se>
367
368 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
369
370 * config.in (HAVE_G_TYPE_INIT): New symbol.
371
c7926fe2
EZ
3722010-11-12 Eli Zaretskii <eliz@gnu.org>
373
374 * lread.c (Fload): Mention `load-in-progress' and
375 `load-file-name'. (Bug#7346)
376
c0098065
EZ
3772010-11-09 Eli Zaretskii <eliz@gnu.org>
378
86520d8c
EZ
379 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
380 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
381 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
382 subprocesses. Use buffer_free only ifdef subprocesses.
383
384 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
385 the subprocesses version, not in the non-subprocesses one.
386
794a4b6d
EZ
387 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
388
c0098065
EZ
389 * xfns.c (x_real_positions): Fix declaration-after-statement
390 problem.
391
be3faa80
CY
3922010-11-05 Chong Yidong <cyd@stupidchicken.com>
393
394 * image.c (free_image): Don't garbage the frame here, since this
395 function can be called while redisplaying (Bug#7210).
396 (uncache_image): Garbage the frame here (Bug#6426).
397
055c91d4 3982010-11-04 Chong Yidong <cyd@stupidchicken.com>
184765cc
CY
399
400 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
401 Windows.
402
055c91d4 4032010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
bd80a886
YM
404
405 * process.c (Fmake_network_process): Don't call turn_on_atimers around
406 `connect' (Bug#5723).
407
055c91d4 4082010-11-04 Helmut Eller <eller.helmut@gmail.com>
c2e124a9
HE
409
410 * process.c (Fmake_network_process): Call `select' for interrupted
411 `connect' rather than creating new socket (Bug#5173).
412
68ae6cda
KH
4132010-11-04 Kenichi Handa <handa@m17n.org>
414
415 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
416 Don't sheck SPEC if it is nil.
417 (font_list_entities): Call font_delete_unmatched if
418 Vface_ignored_fonts is non-nil.
419
db5cada2 4202010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
fa884f18 421
2511e8e0
CY
422 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
423 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
424
425 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
426 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
427 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
428 TRY_WINDOW_CHECK_MARGINS.
429
430 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
431 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
fa884f18 432
d75c9992
JD
4332010-11-04 Jan Djärv <jan.h.d@swipnet.se>
434
31887d45
JD
435 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
436 parent is the root window. Check this after traversing window tree.
437
d75c9992
JD
438 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
439
440 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
441
442 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
443 before traversing window tree (Bug#5721).
444
754996bc
GM
4452010-11-03 Glenn Morris <rgm@gnu.org>
446
447 * Makefile.in (CRT_DIR): New variable, set by configure.
448 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
449 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
450
3649d303
JD
4512010-11-01 Jan Djärv <jan.h.d@swipnet.se>
452
453 * process.c (kbd_is_on_hold): New variable.
454 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
455 New functions.
456 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
457 select on empty input mask.
458 (init_process): Initialize kbd_is_on_hold to 0.
459
460 * process.h (hold_keyboard_input, unhold_keyboard_input)
461 (kbd_on_hold_p): Declare.
462
463 * keyboard.c (input_available_signal): Declare.
464 (kbd_buffer_nr_stored): New function.
465 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
466 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
467 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
468 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
469 (tty_read_avail_input): If input is on hold, return.
470 Don't read more that free slots in kbd_buffer (Bug#6571).
471
46eadc7a
CY
4722010-10-31 Chong Yidong <cyd@stupidchicken.com>
473
474 * xterm.c (x_connection_closed): Print informative error message
475 when aborting on GTK. This requires using shut_down_emacs
476 directly instead of Fkill_emacs.
477
655441b2
MA
4782010-10-25 Michael Albinus <michael.albinus@gmx.de>
479
480 * dbusbind.c (Fdbus_call_method_asynchronously)
481 (Fdbus_register_signal, Fdbus_register_method): Check, whether
482 `dbus-registered-objects-table' is initialized.
483
23c261f5
CY
4842010-10-24 Chong Yidong <cyd@stupidchicken.com>
485
486 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
487
89baa1df
EZ
4882010-10-22 Eli Zaretskii <eliz@gnu.org>
489
490 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
491
492 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
493 Deprecate use as a boolean flag.
494
5419963b
KB
4952010-10-18 Ken Brown <kbrown@cornell.edu>
496
497 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
498
31daa5e1
KH
4992010-10-15 Kenichi Handa <handa@m17n.org>
500
501 Fix incorrect font metrics when the same font is opened with
502 different pixelsizes.
503
504 * xftfont.c: Include composite.h.
505 (xftfont_shape): New function.
506 (syms_of_xftfont): Set xftfont_driver.shape.
507
9fa82824
DP
5082010-10-13 Damyan Pepper <damyanp@gmail.com>
509
510 Fix handling of font properties on Windows (bug#6303).
511 * font.c (font_filter_properties): New function, refactored from
512 ftfont_filter_properties.
513 * font.h (font_filter_properties): Declare.
514 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
515 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
516 (w32font_filter_properties): New function.
517 (w32font_driver): Add w32font_filter_properties.
518
51e4f4a8
JB
5192010-10-12 Juanma Barranquero <lekktu@gmail.com>
520
c0943d3d 521 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
522 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
523
a2e35ef5
JD
5242010-10-10 Jan Djärv <jan.h.d@swipnet.se>
525
526 * nsterm.m (Qleft): Declare.
527 (ns_right_alternate_modifier): New variable
528 (NSRightAlternateKeyMask): New define.
529 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
530 ns_right_alternate_modifier isn't Qleft.
531 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
532 as emacs modifier for NSRightAlternateKeyMask.
533 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
534
2e828c79
MA
5352010-10-08 Michael Albinus <michael.albinus@gmx.de>
536
537 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
538 (xd_pending_messages): Catch xd_get_dispatch_status calls.
539
93d50df8
KH
5402010-10-08 Kenichi Handa <handa@m17n.org>
541
2b7c9342 542 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 543
a79b0f28
MA
5442010-10-03 Michael Albinus <michael.albinus@gmx.de>
545
546 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
547 (Fdbus_init_bus): ... here. (Bug#7113)
548
7b2bf907
GM
5492010-10-03 Glenn Morris <rgm@gnu.org>
550
551 * buffer.c (before-change-functions, after-change-functions):
552 Three-year overdue doc fix following 2007-08-13 change.
553
1911a33b
KH
5542010-10-02 Kenichi Handa <handa@m17n.org>
555
556 * coding.c (coding_inherit_eol_type): If parent doesn't specify
557 eol-format, inherit from the system's default.
558 (complement_process_encoding_system): Make a new coding system
559 inherit the original eol-format.
560
fcaf8878
KH
5612010-09-30 Kenichi Handa <handa@m17n.org>
562
563 * coding.c (complement_process_encoding_system): New function.
564
565 * coding.h (complement_process_encoding_system): Extern it.
566
567 * callproc.c (Fcall_process): Complement the coding system for
568 encoding arguments.
569 (Fcall_process_region): Complement the coding system for encoding
570 the input to the process.
571
572 * process.c (Fstart_process): Complement the coding system for
573 encoding arguments.
574 (send_process): Complement the coding system for encoding what
575 sent to the process.
576
18acb5ad
KH
5772010-09-29 Kenichi Handa <handa@m17n.org>
578
579 * xfont.c (xfont_open): Fix setting of font->average_width from
580 :avgwidth property (Bug#7123).
581
dec83468
MA
5822010-09-28 Michael Albinus <michael.albinus@gmx.de>
583
584 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
585 is more portable.
586
587 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
b762841f 588 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
589 has not defined SIGIO.
590
e0720500
MA
5912010-09-27 Michael Albinus <michael.albinus@gmx.de>
592
11a5af7c 593 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
594 (Bug#7113)
595
42d3022b
J
5962010-09-26 Jan Djärv <jan.h.d@swipnet.se>
597
598 * xgselect.c (xg_select): Clear file descriptors not set from
599 rfds and wfds.
600
fbb3da77
SM
6012010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
602
603 * syntax.c (back_comment): Detect the case where a 1-char comment
604 starter is also the 2nd char of a 2-char comment ender.
605
2b5b82db
J
6062010-09-17 Jan Djärv <jan.h.d@swipnet.se>
607
608 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
609
5f61a25c
J
6102010-09-12 Jan Djärv <jan.h.d@swipnet.se>
611
612 * xterm.c (get_current_vm_state): New function.
613 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
614 want_fullscreen so set_wm_state calls are few (Bug#7013).
615 (x_handle_net_wm_state): Move code to get_current_vm_state and
616 call that function.
617
65c92e31 6182010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
619
620 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
621
a552b35a
KH
6222010-09-08 Kenichi Handa <handa@m17n.org>
623
624 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
625 we may use designation or locking-shift.
626
396475b7
KH
6272010-09-07 Kenichi Handa <handa@m17n.org>
628
629 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
630 sequence when the source is multibyte.
631
d419e1d9
KH
6322010-08-31 Kenichi Handa <handa@m17n.org>
633
634 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
635 characters.
636
637 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
638 (produce_glyphs): Don't set it->char_to_display here.
639 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
640 (produce_special_glyphs): Set temp_it.char_to_display before
641 calling produce_glyphs.
642
643 * xdisp.c (get_next_display_element): Set it->char_to_display
644 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
645 characters.
646 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
647 calling PRODUCE_GLYPHS.
648 (append_space_for_newline): Save and store it->char_to_display.
649 Set it->char_to_display before calling PRODUCE_GLYPHS.
650 (extend_face_to_end_of_line): Set it->char_to_display before
651 calling PRODUCE_GLYPHS.
652 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
653 character to its byte value.
654 (get_char_glyph_code): New function.
655 (produce_stretch_glyph): Set it2.char_to_display too before
656 calling x_produce_glyphs.
657 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
658 non-ASCII characters. Don't set it->char_to_display here.
659 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 660 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 661
769ae9e1
KH
6622010-08-29 Kenichi Handa <handa@m17n.org>
663
664 * term.c (encode_terminal_code): Encode byte chars to the
665 correspnding bytes.
666
b72e0717
AS
6672010-08-17 Andreas Schwab <schwab@linux-m68k.org>
668
669 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
670 instead of SAFE_ALLOCA.
671
3a7a9129
CY
6722010-08-17 Chong Yidong <cyd@stupidchicken.com>
673
674 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
675 (Bug#6214).
676
983b8302
J
6772010-08-14 Jan Djärv <jan.h.d@swipnet.se>
678
679 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
680
7d1b9df3
J
6812010-08-13 Jan Djärv <jan.h.d@swipnet.se>
682
683 * doc.c (Fsnarf_documentation): Initialize skip_file before
684 build-files test.
685
2294b255
PG
6862010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
687
65b3d997
A
688 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
689 New definitions.
2294b255
PG
690 (HAVE_TERMIO): Remove.
691
7a84eee5
KH
6922010-08-06 Kenichi Handa <handa@m17n.org>
693
694 * charset.c: Include <stdlib.h>
695 (struct charset_sort_data): New struct.
696 (charset_compare): New function.
c0943d3d 697 (Fsort_charsets): New function.
7a84eee5
KH
698 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
699
700 * coding.c (decode_coding_iso_2022): Fix checking of dimension
701 number in CTEXT extended segment.
702
f5f6c0e0
JB
7032010-08-01 Juanma Barranquero <lekktu@gmail.com>
704
705 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
706 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
707
b756c005
JB
7082010-07-30 Juanma Barranquero <lekktu@gmail.com>
709
710 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
711 (Fhash_table_size): Fix typos in docstrings.
712 (Fmake_hash_table): Doc fix.
713
b4f588fa
JB
7142010-07-28 Juanma Barranquero <lekktu@gmail.com>
715
716 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
717 Doc fix (bug#5625).
718
9f8c08a7
KB
7192010-07-27 Ken Brown <kbrown@cornell.edu>
720
721 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
722 the MSDOS definition.
723
a2a0d36b
CS
7242010-07-25 Christoph Scholtes <cschol2112@gmail.com>
725
726 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
727
a77cfeaf
CS
7282010-07-22 Christoph Scholtes <cschol2112@gmail.com>
729
730 * window.c (Fwindow_height): Doc fix (bug#6518).
731
14fb5704
JB
7322010-07-21 Juanma Barranquero <lekktu@gmail.com>
733
734 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
735
499322ce
J
7362010-07-17 Jan Djärv <jan.h.d@swipnet.se>
737
738 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
739 is related to the menu bar (Bug#6499).
740
b78f9767
J
7412010-07-14 Jan Djärv <jan.h.d@swipnet.se>
742
743 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
744
745 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
746
747 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
748 i.e. don't put back ButtonRelease (Bug#6608).
749
750 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
751 instead of Window. Call xg_event_is_for_menubar when
752 USE_GTK (Bug#6499).
753
754 * gtkutil.h (xg_event_is_for_menubar): Declare.
755
756 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
757
1f60c16a
EZ
7582010-07-14 Eli Zaretskii <eliz@gnu.org>
759
760 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
761 when it's the same as the old foreground. (Bug#6609)
762
7c33a057
CY
7632010-07-10 Chong Yidong <cyd@stupidchicken.com>
764
765 * xfaces.c (realize_face): Garbage the frame if a face is removed
766 (Bug#6593).
767
9d70a3fc
AS
7682010-07-05 Andreas Schwab <schwab@linux-m68k.org>
769
770 * keyboard.c: Remove duplicate <setjmp.h>.
771 (read_key_sequence): Remove volatile qualifiers.
772
5a874e95
YM
7732010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
774
775 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
776 (struct glyph_row): New members left_fringe_offset and
777 right_fringe_offset.
778
779 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
780 specially.
781 * w32term.c (w32_draw_fringe_bitmap): Likewise.
782 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
783
784 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
b762841f 785 Take account of bitmap offset.
5a874e95
YM
786 (draw_window_fringes): Take account of window vscroll.
787 (update_window_fringes): Likewise. Extend top-aligned top indicator
788 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
789 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
790 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
791
0682186e
JB
7922010-07-04 Juanma Barranquero <lekktu@gmail.com>
793
794 * w32fns.c (Qtooltip): Declare.
795 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
796
ad3e6f44
J
7972010-07-03 Jan Djärv <jan.h.d@swipnet.se>
798
799 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
800 grab on just Press (Bug#6499).
801
54ee7410
CY
8022010-07-02 Chong Yidong <cyd@stupidchicken.com>
803
804 * frame.c (Qtooltip): New var.
805 (delete_frame): Use it. Fix faulty if statement. Don't update
806 mode line for tooltip frames. Suggested by Martin Rudalics.
807
808 * xfns.c (x_create_tip_frame):
809 * w32fns.c (x_create_tip_frame): Use it.
810
3d8416fc
NA
8112010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
812
813 * xftfont.c (xftfont_open): Check font width one by one also when
814 spacing is dual.
815
816 * ftfont.c (ftfont_open): Ditto.
817
b1feb9b4
AS
8182010-06-26 Andreas Schwab <schwab@linux-m68k.org>
819
820 * alloc.c (Fmake_byte_code): Don't access undefined argument
821 (Bug#6517).
822
c7dd9743
CY
8232010-06-25 Chong Yidong <cyd@stupidchicken.com>
824
825 * xdisp.c (next_element_from_image): Ensure that after-strings are
826 read the next time we hit handle_stop (Bug#1336).
827
5721b4ed
AS
8282010-06-23 Andreas Schwab <schwab@linux-m68k.org>
829
830 * lread.c (read1): Signal error if #s is not followed by paren.
831
277c5f18
CY
8322010-06-19 Chong Yidong <cyd@stupidchicken.com>
833
52ab9bb2
CY
834 * image.c (free_image): Mark frame as garbaged (Bug#6426).
835
277c5f18
CY
836 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
837
6fda6a0c
GM
8382010-06-15 Glenn Morris <rgm@gnu.org>
839
840 * editfns.c (Fbyte_to_string): Pacify compiler.
841
e454a4a3
SM
8422010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
843
844 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
845 Check `object's type before accessing its guts.
846
657d4c0b
AS
8472010-06-08 Andreas Schwab <schwab@linux-m68k.org>
848
849 * minibuf.c (Fall_completions): Add more checks.
850
9b27fd9f
JB
8512010-06-08 Juanma Barranquero <lekktu@gmail.com>
852
853 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
854
0eb7675e
AS
8552010-06-03 Andreas Schwab <schwab@linux-m68k.org>
856
857 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 858 address. (Bug#6346)
0eb7675e 859
78edd3b7
JB
8602010-06-03 Juanma Barranquero <lekktu@gmail.com>
861
862 * ccl.c (Fccl_program_p): Fix typo in docstring.
863
1ab8293c
SM
8642010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
865
866 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
867 of bug#6305).
868
5ca3929b
CY
8692010-05-27 Chong Yidong <cyd@stupidchicken.com>
870
871 * xdisp.c (redisplay_window): After redisplay, check if point is
872 still valid before setting it (Bug#6177).
873
f5b416d2 8742010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
875
876 * s/netbsd.h: If terminfo is found, use it in preference to
877 termcap. (Bug#6190) [Backport from trunk]
878
aeb77d46
CY
8792010-05-20 Kevin Ryde <user42@zip.com.au>
880
881 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
882 (Voverriding_terminal_local_map, Vsystem_key_alist)
883 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
884
c3bb441d
SM
8852010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
886
887 * editfns.c (Fbyte_to_string): New function.
888
754790b6
CY
8892010-05-18 Chong Yidong <cyd@stupidchicken.com>
890
891 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
892 prevent stack overflow if number of arguments is too large
893 (Bug#6214).
894
c8670ded
EZ
8952010-05-11 Eli Zaretskii <eliz@gnu.org>
896
897 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
898
899 * w32fns.c: Include w32.h.
900 (Fw32_shell_execute): Decode the error message before passing it
901 to `error'. (Bug#6126)
902
3ffd4615 9032010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
904
905 * ftfont.c: Fix incorrect parentheses of #if condition for
906 definining M17N_FLT_USE_NEW_FEATURE.
907
61a808e8
CY
9082010-05-07 Chong Yidong <cyd@stupidchicken.com>
909
910 * Version 23.2 released.
911
5dcde606
AS
9122010-04-30 Andreas Schwab <schwab@linux-m68k.org>
913
914 * composite.c (autocmp_chars): Save point as marker before calling
915 auto-composition-function (Bug#5984).
916
917 * lisp.h (restore_point_unwind): Add prototype.
918
919 * fileio.c (restore_point_unwind): Remove static attribute.
920
c4170e32
KH
9212010-04-23 Kenichi Handa <handa@m17n.org>
922
923 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
924 new feature of libotf and m17n-flt.
65b3d997
A
925 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
926 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
927 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
928 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
929 that OUT is NULL. Use OTF_drive_gsub_with_log and
930 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
931 OTF_drive_gpos.
932 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
933 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
934 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 935
e42cd1a7
JB
9362010-04-19 Juanma Barranquero <lekktu@gmail.com>
937
938 * dired.c (Ffile_attributes): Fix typo in docstring.
939
79353a53
AR
9402010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
941
942 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
943 NSInteger (Bug#5811).
944
658b9b93
YM
9452010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
946
947 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
948 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
949
16009a0e
YM
9502010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
951
952 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
953
f016f225
JD
9542010-04-07 Jan Djärv <jan.h.d@swipnet.se>
955
956 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
957 FRAME_LINE_TO_PIXEL_Y.
958
959 * xterm.c (x_set_window_size_1): Don't add border_width/height to
960 pixelwidth/height.
961
84257d93
CY
9622010-04-05 Chong Yidong <cyd@stupidchicken.com>
963
964 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
965 terminal frames (Bug#5837).
966
95b1abcf
CY
9672010-03-31 Chong Yidong <cyd@stupidchicken.com>
968
969 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
970 * nsterm.h: Fix prototype.
971
4a217bed
EZ
9722010-03-31 Eli Zaretskii <eliz@gnu.org>
973
974 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
975 in this function. (Bug#5703)
976
4f103e04
CY
9772010-03-31 Chong Yidong <cyd@stupidchicken.com>
978
979 * nsterm.h: Fix last change.
980
a6d676d9
CY
9812010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
982
983 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
984
67fee863
JD
9852010-03-30 Jan Djärv <jan.h.d@swipnet.se>
986
987 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
988 invisible (Bug#5766).
989
9ae6e189
CY
9902010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
991
992 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
993 HAVE_NS conditionals.
194d44e7 994 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
995
996 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
997 filename for the title.
998 (ns_set_doc_edited): Do nothing if the selected window is a
999 minibuffer window.
1000
1001 * nsterm.h: Add prototypes for ns_set_name_as_filename and
1002 ns_set_doc_edited.
1003
1004 * nsterm.m: Remove unneeded prototype.
1005
25c72475
GM
10062010-03-28 Glenn Morris <rgm@gnu.org>
1007
1008 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
1009 in the DOC file. (Bug#5336)
1010
f79a01db
CY
10112010-03-24 Chong Yidong <cyd@stupidchicken.com>
1012
1013 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
1014
93318cbd
JD
10152010-03-20 Jan Djärv <jan.h.d@swipnet.se>
1016
1017 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
1018
1019 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
1020
1021 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
1022
ad13a3ee
YM
10232010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1024
1025 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
1026 XLoadQueryFont.
1027
fbdc1721
KH
10282010-03-16 Kenichi Handa <handa@m17n.org>
1029
1030 * coding.c (decode_coding_ccl): Fix previous change for the
1031 multibyte case.
fb608df3
KH
1032 (encode_coding_ccl): Don't setup ccl program here. Fix for the
1033 case that the output buffer is fullfilled.
1034 (encode_coding): Setup ccl program here.
fbdc1721 1035
35cd7cd6
CY
10362010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
1037
1038 * editfns.c (Fformat): Account for string precision when computing
1039 field width (Bug#5710).
1040
618db430
SM
10412010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
1042
c0335e02
SM
1043 Make it possible to C-g in a tight bytecode loop again (bug#5680).
1044 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
1045 (QUIT): Use it to consolidate code and remove redundancy.
1046 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
1047
254c06a8
SM
1048 * regex.c (regex_compile): Setup gl_state as well.
1049
618db430
SM
1050 * syntax.c (skip_chars): Setup gl_state (bug#3823).
1051 (in_classes): Use CONSP before XCAR/XCDR.
1052
233f0c9f
CY
10532010-03-03 Chong Yidong <cyd@stupidchicken.com>
1054
1055 * keymap.c (Fwhere_is_internal): Use Fequal to compare
1056 definitions, so that keyboard macros are correctly handled
1057 (Bug#5481).
1058
75f80e63
EZ
10592010-03-02 Eli Zaretskii <eliz@gnu.org>
1060
1061 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
1062 text that could be relocated inside the call to emacs_mule_char.
1063 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
1064 (CODING_DECODE_CHAR): Add a comment describing its purpose.
1065
dcfb9bc4
KH
10662010-03-02 Kenichi Handa <handa@m17n.org>
1067
fc9a17bc
KH
1068 * character.c (parse_str_as_multibyte): Fix handling of the
1069 multibyte form of raw-bytes.
1070 (str_as_multibyte): Likewise.
1071
dcfb9bc4
KH
1072 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
1073 form of raw-bytes.
1074
412c01b6
CY
10752010-02-28 Chong Yidong <cyd@stupidchicken.com>
1076
1077 * charset.c (load_charset_map_from_file)
1078 (load_charset_map_from_vector): Zero out allocated
1079 charset_map_entries before using them.
1080
df7e1ea0
AS
10812010-02-27 Andreas Schwab <schwab@linux-m68k.org>
1082
1083 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
1084
fe69a722
CY
10852010-02-27 Chong Yidong <cyd@stupidchicken.com>
1086
4ed28cf4
CY
1087 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
1088 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 1089
7379cfce
KH
10902010-02-26 Kenichi Handa <handa@m17n.org>
1091
f88cc4d6
KH
1092 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
1093
7379cfce
KH
1094 * xdisp.c (reseat_to_string): Fix previous change.
1095
cf2fdcfb
CY
10962010-02-26 David Reitter <david.reitter@gmail.com>
1097
1098 * nsfont.m (nsfont_draw): ns_antialias_text should be a
1099 Lisp_Object (Bug#4736).
1100
cc6c7c75
KH
11012010-02-25 Kenichi Handa <handa@m17n.org>
1102
1103 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
1104
32e737d7
JD
11052010-02-24 Jan Djärv <jan.h.d@swipnet.se>
1106
1107 * xterm.c (XTflash): Move declarations before statements.
1108
1109 * gtkutil.c (xg_get_gdk_display): Remove (unused).
1110 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
1111 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
1112 (xg_create_tool_bar): Remove unused variables.
1113 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 1114 (xg_create_frame_widgets): Remove variable grav.
32e737d7 1115
676cae9f
CY
11162010-02-21 Chong Yidong <cyd@stupidchicken.com>
1117
1118 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
1119
886cc2b8
SM
11202010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1121
1122 * term.c (fatal): Add a final \n if needed (bug#5596).
1123
ddb2d8e2
CY
11242010-02-18 Chong Yidong <cyd@stupidchicken.com>
1125
1126 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
1127
2a4f8d3d
GM
11282010-02-18 Glenn Morris <rgm@gnu.org>
1129
1130 * callint.c (Finteractive): Doc fix.
1131
ebaf11b6
KH
11322010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
1133
886cc2b8
SM
1134 * coding.c (record_conversion_result):
1135 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1136 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1137 memory allocation error.
1138
d0396581
KH
11392010-02-17 Kenichi Handa <handa@m17n.org>
1140
886cc2b8
SM
1141 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1142 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1143 (decode_coding): Setup ccl program here. Keep looping when the
1144 decoder stopped because the output buffer is
1145 fullfilled (bug#5534).
1146
1147 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1148
98599f74
JD
11492010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1150
471e4f04 1151 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1152 bug #5571.
886cc2b8 1153 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1154 overdrawn.
98599f74 1155
182659ae
JD
11562010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1157
1158 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1159 doing_interact here.
1160 (ice_connection_closed): New function.
1161 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1162 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1163 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1164 returns I/O error.
1165 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1166 bug #5512.
1167
9be32c4e 11682010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1169
1170 * nsfont.m (nsfont_open): The system's value for the font descent
1171 is negative, so round it down to avoid clipping.
1172
a2f3eb19
CY
11732010-02-06 Chong Yidong <cyd@stupidchicken.com>
1174
1175 * charset.c (load_charset_map_from_file)
1176 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1177 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1178
3088147c
CY
11792010-02-05 Chong Yidong <cyd@stupidchicken.com>
1180
1181 * charset.c (load_charset_map_from_file): Allocate large
1182 charset_map_entries structure on the heap rather than the stack.
1183 (Bug#5526).
1184
b57d9029
KH
11852010-01-31 Kenichi Handa <handa@m17n.org>
1186
1187 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1188 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1189
c67d885b
CY
11902010-01-31 Chong Yidong <cyd@stupidchicken.com>
1191
1192 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1193 <deactivated@gmail.com> (Bug#3605).
1194
8fab2362
CY
11952010-01-31 David De La Harpe Golden <david@harpegolden.net>
1196
1197 * fileio.c (Frename_file): Correctly rename symlinks to
1198 directories (Bug#5496).
1199
cb2a62f2
CY
12002010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1201
1202 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1203
944c7a26
AS
12042010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1205
1206 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1207
c024ac08
CY
12082010-01-29 Chong Yidong <cyd@stupidchicken.com>
1209
1210 * frame.c (DEFAULT_ROWS): Change default to 35.
1211
1212 * xfns.c (x_default_font_parameter): Change default XFT font to
1213 monospace-10 (Bug#3643).
1214
af93af83
EZ
12152010-01-29 Eli Zaretskii <eliz@gnu.org>
1216
1217 * w32inevt.c (key_event): Remove unnecessary comparison of
1218 event->uChar.AsciiChar with 128.
1219
ca0eb708
CY
12202010-01-28 Chong Yidong <cyd@stupidchicken.com>
1221
b242dbfc
CY
1222 * fileio.c (Frename_file): Fix last change (Bug#5487).
1223
ca0eb708
CY
1224 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1225
1226 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1227
45d45af5
JD
12282010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1229
1230 * xfns.c (Fx_create_frame): Remove window size matching code from
1231 2010-01-15.
a73f9c9d 1232 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 1233
7e233730
JR
12342010-01-27 Jason Rumney <jasonr@gnu.org>
1235
1236 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1237 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1238
86e893e3
KH
12392010-01-27 Kenichi Handa <handa@m17n.org>
1240
1241 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1242 pattern string (Bug#4209).
86e893e3 1243
8719abec
CY
12442010-01-27 David De La Harpe Golden <david@harpegolden.net>
1245
1246 * fileio.c (Frename_file): Call copy-directory and
1247 delete-directory for directories, in order to handle cross-device
1248 renaming (Bug#3353).
1249
844794c8
JD
12502010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1251
aa3e13b5 1252 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1253 sizes 24 and 10. Bug #3643.
844794c8 1254
bd4b5750
SM
12552010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1256
8dc1adf6 1257 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1258 * keymap.c (shadow_lookup): Add `remap' arg.
1259 (describe_map, describe_vector): Update calls to shadow_lookup.
1260 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1261 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1262 perform remapping during shadow_lookup check of remapped_sequences.
1263
285d07e2
CY
12642010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1265
1266 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1267 png_check_sig, which has been removed in libpng 1.4.
1268
c6d09b8d
CY
12692010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1270
1271 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1272 lacks this header file).
1273
3d782998
YM
12742010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1275
1276 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1277 as in Emacs 22.
1278
2aff7c53
YM
12792010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1280
1281 * lisp.h (make_pure_string): String pointer arg now points to const.
1282
1283 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1284 args now point to const.
1285
74327f7a
EZ
12862010-01-22 Eli Zaretskii <eliz@gnu.org>
1287
1288 * lread.c (Fload): Don't treat files without .elc extension as
1289 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1290 them. (bug#5303)
1291
4d1e6632
KH
12922010-01-20 Kenichi Handa <handa@m17n.org>
1293
1294 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1295 treat the source as actual byte sequence.
1296
1fdede8f
AM
12972010-01-19 Alan Mackenzie <acm@muc.de>
1298
1299 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1300 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1301 `signal_after_change_p' to `coherent_change_p', and make the
1302 invocation of `modify_region' conditional on it.
1303
67477f30
JD
13042010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1305
1306 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1307 for debug purpose.
1308 (syms_of_xsettings): Declare xft-settings.
1309
244b023e
CY
13102010-01-18 Chong Yidong <cyd@stupidchicken.com>
1311
1312 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1313
617364fe
CY
13142010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1315
1316 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1317
4fe22cdf
CY
13182010-01-16 Chong Yidong <cyd@stupidchicken.com>
1319
1320 * emacs.c (standard_args): Adjust arg priorities to reflect how
1321 they are processed in startup.el.
1322
e118d2be
AS
13232010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1324
1325 * Makefile.in (lisp, shortlisp): Update.
1326
523ae620
SM
13272010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1328
1329 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1330 code, link the new kboard into all_kboard before running Lisp code,
1331 and protect the new terminal with GCPRO (Bug#5365).
1332 (x_term_init): Remove unused var `atom'.
1333 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1334
f0d13888
JD
13352010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1336
1337 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1338 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1339 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1340 this. Bug #3643.
f0d13888 1341
cc320f07
KH
13422010-01-15 Kenichi Handa <handa@m17n.org>
1343
1344 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1345
7ffdf101
CY
13462010-01-15 Chong Yidong <cyd@stupidchicken.com>
1347
1348 * nsterm.m (Qnone): Define.
1349
1350 * nsfns.m (Qnone): Move definition to nsterm.m.
1351
d12bd917
KH
13522010-01-14 Kenichi Handa <handa@m17n.org>
1353
1354 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1355 systems.
1356
d9a7c140
KH
13572010-01-14 Kenichi Handa <handa@m17n.org>
1358
1359 Make auto-composition work on all buffers even if they are
1360 fundamental mode.
1361
1362 * composite.c (Vauto_composition_mode): New variable.
1363 (composition_compute_stop_pos): Check Vauto_composition_mode
1364 instead of Vauto_composition_function.
1365 (composition_adjust_point, Ffind_composition_internal): Likewise.
1366 (syms_of_composite): Declare Lisp variable
1367 "auto-composition-mode" here.
1368
63286bb2
CY
13692010-01-13 Chong Yidong <cyd@stupidchicken.com>
1370
1371 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1372 during call to vendor-specific-keysyms (Bug#5365).
1373
c2623ee7
YM
13742010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1375
1376 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1377 Call SIGNAL_THREAD_CHECK (Bug#5333).
1378
1379 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1380 Call SIGNAL_THREAD_CHECK.
1381
0b5397c2
SM
13822010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1383
1384 Try to fix bug#5314. This is probably not the final word, tho.
1385 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1386 recent-auto-save-p as a side-effect.
1387 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1388 * buffer.c (Fkill_buffer, reset_buffer):
1389 * editfns.c (Fsubst_char_in_region):
1390 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1391 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1392
dc954cb2
KH
13932010-01-13 Kenichi Handa <handa@m17n.org>
1394
1395 Display buffer name, etc. in mode line by composing correctly.
1396
1397 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1398 STRING is not nil.
0b5397c2 1399 (display_mode_element): Adjust for the change of
dc954cb2
KH
1400 decode_mode_spec and display_line.
1401 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1402 (display_string): Handle the case that STRING is non-null and
1403 LISP_STRING is not nil.
1404
0b5397c2
SM
1405 * xterm.c (x_draw_composite_glyph_string_foreground):
1406 Pay attention to s->face->overstrike.
dc954cb2
KH
1407
1408 * composite.c (composition_reseat_it): Don't check PT if STRING is
1409 non nil.
1410
4a00eaca
YM
14112010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1412
1413 * keyboard.c (read_char): Don't apply previous change when current
1414 buffer is unchanged by command execution.
1415
60abb287
JD
14162010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1417
1418 * keyboard.c (read_char): Return after executing from special map.
1419
893db5bc
GM
14202010-01-12 Glenn Morris <rgm@gnu.org>
1421
1422 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1423 bug-gnu-emacs rather than emacs-pretest-bug.
1424
4d03ece0
CY
14252010-01-11 Chong Yidong <cyd@stupidchicken.com>
1426
1427 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1428 initializing the Lisp variables that depend on them.
1429
1df47e38
YM
14302010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1431
1432 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1433 Clear areas that will not be updated after change of menu bar lines.
1434 Clear the menu bar window's current matrix when the window gets empty.
1435
2f1c6384
CY
14362010-01-09 Chong Yidong <cyd@stupidchicken.com>
1437
e398c61c
CY
1438 * intervals.h, textprop.c (extend_property_ranges): Return value
1439 and args changed. Discard properties that begin at or after the
1440 new end (Bug#5306).
1441
1442 * editfns.c (Fformat): Caller changed.
1443
e5a29a10
CY
1444 * nsterm.m (ns_set_default_prefs): Delete function.
1445 (syms_of_nsterm): Initialize ns_command_modifier,
1446 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1447 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1448
2f1c6384
CY
1449 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1450 position (Bug#4040).
1451
d427a9fa
EZ
14522010-01-09 Eli Zaretskii <eliz@gnu.org>
1453
1454 * editfns.c (Ffloat_time): Doc fix.
1455
21b9df2f
JD
14562010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1457
1458 * xfns.c (Fx_create_frame): Don't create frame larger than display
1459 by default bug#3643.
1460
4b00d3b1
YM
14612010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1462
1463 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1464 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1465 windows above internal border.
1466
1467 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1468 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1469 windows above internal border.
1470
1471 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1472 tool bar windows specially.
1473
1474 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1475
1476 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1477 specially.
1478 (XTflash): Take account of menu bar height.
1479
1480 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1481 specially.
1482
5075d853
JD
14832010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1484
ac146f82 1485 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1486 also be true before we can return early (bug #5339).
1487
474217c8
CY
14882010-01-06 David Reitter <david.reitter@gmail.com>
1489
1490 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1491 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1492 (Bug#3233).
1493
c0e6d47d
JD
14942010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1495
d0cf45b7
JD
1496 * font.c (font_open_entity): Enable chache and call cached_font_ok
1497 for the driver if defined.
1498 (QCuser_spec): New symbol.
1499 (font_spec_from_name): Save name as user-spec.
1500 (font_load_for_lface): Keep user-spec instead of name.
1501 (font_open_by_name): Save name as user-spec.
1502 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1503 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1504
1505 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1506 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1507 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1508
1509 * font.h (struct font_driver): Add cached_font_ok.
1510
c0e6d47d
JD
1511 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1512
7c583cd8
JD
15132010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1514
1515 * xterm.c (x_new_font): Move code for setting rows/cols before
1516 resizing ...
ac146f82 1517 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1518
1519 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1520 (xg_frame_resized, xg_frame_set_char_size):
1521 Call xg_clear_under_internal_border.
7c583cd8 1522 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1523
03f77f0a
CY
15242010-01-05 Chong Yidong <cyd@stupidchicken.com>
1525
1526 * keyboard.c (read_key_sequence): Catch keyboard switch after
1527 making a new tty frame (Bug#5095).
1528
2a1ef5be
KH
15292010-01-05 Kenichi Handa <handa@m17n.org>
1530
1531 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1532
e3eb1dae
SM
15332010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1534
1535 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1536 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1537 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1538
777013f2
MA
15392010-01-03 Michael Albinus <michael.albinus@gmx.de>
1540
1541 * dbusbind.c (xd_add_watch): Improve debug message.
1542 (xd_remove_watch): Improve debug message. If DATA is the session
1543 bus, unset D-Bus session environment.
1544 (Fdbus_init_bus): Pass the bus as argument to
1545 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1546
8932b1c2
CY
15472010-01-01 Chong Yidong <cyd@stupidchicken.com>
1548
87231e2c
CY
1549 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1550
4801c5fa
CY
1551 * lread.c (syms_of_lread): Make it clearer that these are the
1552 names of loaded files (Bug#5068).
1553
8932b1c2
CY
1554 * eval.c (run_hook_with_args): Handle the case where the global
1555 value has the obsolete single-function form (Bug#5026).
1556
11e3c684
CY
15572009-12-27 Chong Yidong <cyd@stupidchicken.com>
1558
1559 * minibuf.c (Fall_completions): Minor optimization.
1560
5b28ce35
EZ
15612009-12-26 Eli Zaretskii <eliz@gnu.org>
1562
5ce6e4f4
JB
1563 * .gdbinit (pgx): Fix display of composite glyphs.
1564 Display cmp.from and cmp.to as well.
1565 (pitx): Fix last change.
5b28ce35 1566
bcffff46
KH
15672009-12-25 Kenichi Handa <handa@m17n.org>
1568
1569 * composite.h (composition_adjust_point): Update prototype.
1570
1571 * composite.c (composition_reseat_it): Don't make a composition
1572 spanning over point.
1573 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1574 composable characters.
1575 (composition_adjust_point): New arg NEW_PT. Callers changed.
1576
1577 * keyboard.c (command_loop_1): Force redisplay if the last point
1578 was within a composition.
1579 (adjust_point_for_property): Don't adjust point for automatic
1580 composition when called after buffer modification.
1581
3f670e9a
EZ
15822009-12-19 Eli Zaretskii <eliz@gnu.org>
1583
5ce6e4f4
JB
1584 * .gdbinit (pitx): Don't use enum names, use their values.
1585 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1586 (pgx): Don't use enum names, use their values.
1587 (pitmethod): New helper command.
1588 (pitx): Use it to display iteration method.
1589 (pgrowit): New command.
1590
ad903955
EZ
1591 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1592
3f670e9a
EZ
1593 Update dependencies in Makefile.in.
1594
1595 * Makefile.in (alloc.o): Depend on termhooks.h.
1596 (atimer.o): Depend on blockinput.h.
1597 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1598 and frame.h.
1599 (callint.o): Depend on systime.h, coding.h, and composite.h.
1600 (callproc.o): Depend on buffer.h.
1601 (casefiddle.o): Don't depend on charset.h.
1602 (casetab.o): Depend on character.h.
1603 (ccl.o): Depend on composite.h.
1604 (chartab.o): Depend on ccl.h.
1605 (cm.o): Depend on dispextern.h.
1606 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1607 (coding.o): Don't depend on $(INTERVALS_H).
1608 (composite.o): Don't depend on dispextern.h explicitly (it's in
1609 $(INTERVALS_H)). Depend on ccl.h.
1610 (data.o): Depend on systime.h, coding.h, composite.h,
1611 dispextern.h, font.h, and ccl.h.
1612 (dired.o): Depend on composite.h.
1613 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1614 composite.h (it's in $(INTERVALS_H)).
1615 (doc.o): Depend on systime.h, coding.h, and composite.h.
1616 (editfns.o): Don't depend explicitly on dispextern.h.
1617 (emacs.o): Depend on frame.h and coding.h.
1618 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1619 (fileio.o): Depend on frame.h and commands.h. Don't depend
1620 explicitly on dispextern.h.
1621 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1622 composite.h.
1623 (fns.o): Don't depend on termhooks.h.
1624 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1625 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1626 coding.h, $(INTERVALS_H), window.h, xterm.h.
1627 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1628 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1629 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1630 fontset.h, ccl.h, and ftfont.h.
1631 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1632 (gtkutil.o): Depend on dispextern.h and composite.h.
1633 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1634 termhooks.h, and ccl.h.
1635 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1636 (intervals.o): Depend on systime.h and coding.h.
1637 (keyboard.o): Depend on composite.h and coding.h.
1638 (keymap.o): Depend on coding.h and frame.h.
1639 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1640 (macros.o): Depend on systime.h, coding.h, and composite.h.
1641 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1642 and atimer.h.
1643 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1644 dispextern.h explicitly.
0b5397c2
SM
1645 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1646 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1647 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1648 (regex.o): Don't depend on charset.h.
1649 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1650 (search.o): Don't depend explicitly on composite.h.
1651 (sound.o): Depend on atimer.h and systime.h.
1652 (syntax.o): Don't depend explicitly on composite.h.
1653 (sysdep.o): Depend on coding.h and composite.h.
1654 (term.o): Depend on xterm.h and buffer.h.
1655 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1656 (textprop.o): Don't depend on dispextern.h explicitly.
1657 (undo.o): Depend on dispextern.h.
1658 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1659 dispextern.h and composite.h explicitly.
1660 (xdisp.o): Depend on ccl.h.
1661 (xfaces.o): Depend on coding.h and ccl.h.
1662 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1663 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1664 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1665 ftfont.h.
1666 (xgselect.o): New dependency.
1667 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1668 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1669 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1670 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1671 (xsmfns.o): Depend on frame.h and dispextern.h.
1672 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1673 sysselect.h.
1674
7a6f7fea
AS
16752009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1676
1677 * font.c (Fclear_font_cache): Pass correct cache argument to
1678 font_clear_cache.
1679
f4c21026
AS
16802009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1681
1682 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1683 twice.
1684
f7ab0997
CY
16852009-12-15 Chong Yidong <cyd@stupidchicken.com>
1686
1687 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1688 calling file-remote-p. Reported by Jim Meyering.
1689
fa8e045a
MA
16902009-12-15 Michael Albinus <michael.albinus@gmx.de>
1691
1692 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1693 avoid compiler warnings. (Bug #5217)
fa8e045a 1694
a63dba42
KH
16952009-12-14 Kenichi Handa <handa@m17n.org>
1696
1697 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1698 in 8-bit encoding.
1699
5ce6e4f4 17002009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1701
1702 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1703 tooltip windows.
1704
223e5fc6
JD
17052009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1706
36acb2a7
JD
1707 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1708 Xatom_net_window_type.
1709
1710 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1711 Xatom_net_window_type.
1712
b8f00677
JD
1713 * xterm.c (my_log_handler): New function.
1714 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1715 so we can filter out buggy messages. (Bug #5120).
b8f00677 1716
e5f0bc9a
JD
1717 * xterm.c (xg_scroll_callback): Parameter list changed,
1718 use parameter GtkScrollType to determine scroll/line/page.
1719 Only allow dragging if a button < 4 is grabbed (bug #5177).
1720 (xg_end_scroll_callback): New function.
1721 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1722 xg_create_scroll_bar.
1723
1724 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1725 (scroll_end_callback): Remove.
1726 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1727 button-release-event. Replace value-changed event with change-value,
1728 bug #5177,
1729 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1730 bug #5177.
1731
1732 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1733 (xg_create_scroll_bar): Add GCallback end_callback.
1734
223e5fc6
JD
1735 * xftfont.c (QClcdfilter): New variable.
1736 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1737 (syms_of_xftfont): Initialize QClcdfilter.
1738
3c055b77
JD
17392009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1740
1741 * xsettings.c (struct xsettings): Add member seen.
1742 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1743 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1744 (apply_xft_settings): Only update Xft settings with what member seen
1745 indicates as new.
1746
05fe33ff
EZ
17472009-12-12 Eli Zaretskii <eliz@gnu.org>
1748
1749 * dispextern.h (struct text_pos): Use EMACS_INT;
1750 (struct glyph): Use EMACS_INT for charpos.
1751 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1752 region_beg_charpos, region_end_charpos,
1753 redisplay_end_trigger_charpos, and also for
1754 iterator_stack_entry.end_charpos and
1755 iterator_stack_entry.stop_charpos.
1756
e8d7886a
JD
17572009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1758
5ce6e4f4 1759 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1760 (xg_create_scroll_bar): Call scroll_end_callback on button release
1761 event (bug #5177).
1762 (xg_event_is_for_scrollbar): != replaced with ==.
1763
d0db2ec8
KH
17642009-12-12 Kenichi Handa <handa@m17n.org>
1765
1766 * ftfont.c (struct ftfont_info): New member matrix.
1767 (ftfont_open): Setup xftfont_info->matrix.
1768 (MFLTFontFT): New member matrix.
1769 (FLOOR, CEIL, ROUND): New macros.
1770 (ftfont_get_metrics): Handle matrix transformation.
1771 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1772
1773 * xftfont.c (struct xftfont_info): New member matrix.
1774 (xftfont_open): Setup xftfont_info->matrix.
1775
17762009-12-10 Kenichi Handa <handa@m17n.org>
1777
1778 * xdisp.c (append_space_for_newline): Consider face-remapping.
1779
2cc7b62f
AS
17802009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1781
b87dd913
AS
1782 * xsettings.c: Include "keyboard.h".
1783
eba5eb94
AS
1784 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1785
2cc7b62f
AS
1786 Fix implicit function declarations.
1787 * cmds.c: Include "frame.h".
1788 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1789 * frame.h: Move declaration of delete_frame outside of
1790 HAVE_WINDOW_SYSTEM.
1791
a4ef73c8
CY
17922009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1793
1794 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1795
1796 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1797 GTK builds.
1798
944a300c
AS
17992009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1800
1801 * unexelf.c (unexec): Don't search for .data twice.
1802
022eef62
CY
18032009-12-05 Chong Yidong <cyd@stupidchicken.com>
1804
426ac949
CY
1805 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1806 if push failed.
1807 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1808 of push_display_prop (Bug#5000).
1809
022eef62
CY
1810 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1811 value of font_list_entities (Bug#5085).
1812
be95bee9
JB
18132009-12-04 Juanma Barranquero <lekktu@gmail.com>
1814
1815 Fix `string-to-number' to deal consistently with integers and floats.
1816 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1817 trailing characters, not just whitespace.
1818 (read1): Pass new arg 0 to keep old behavior.
1819 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1820 trailing chars, as it is already done for integers. Doc fixes.
1821 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1822
24c2d7ce
EZ
18232009-12-04 Eli Zaretskii <eliz@gnu.org>
1824
0b5397c2
SM
1825 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1826 Delete unused enumeration value.
24c2d7ce 1827
7e694795
EZ
18282009-12-03 Eli Zaretskii <eliz@gnu.org>
1829
1830 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1831
84b31826
SM
18322009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1833
1834 * process.c (Fmake_network_process): Fix up the tests for
1835 "connectionless socket", so they DTRT for seqpacket sockets as well.
1836
f00c449b
SM
18372009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1838
1839 * process.c (Qseqpacket): New symbol.
1840 (HAVE_SEQPACKET): New macro.
1841 (Fmake_network_process): Accept new :type `seqpacket'.
1842 (init_process): Add `seqpacket' feature when applicable.
1843 (syms_of_process): Initialize Qseqpacket.
1844
8096a0ff
YM
18452009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1846
1847 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1848 if entity is Qnil.
1849
3e0de07f
SM
18502009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1851
1852 * print.c (print_preprocess): Preprocess the key_and_value table of
1853 hashtables, even tho they're "hidden" (bug#5082).
1854
abeafb2a
JD
18552009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1856
1857 * frame.c (frame_make_pointer_invisible)
1858 (frame_make_pointer_visible): Declare f before statements.
1859
4bf47195
EZ
18602009-11-28 Eli Zaretskii <eliz@gnu.org>
1861
1862 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1863 omitted dependencies on lisp.h.
1864
c525b3f2
JD
18652009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1866
ece2d4ed
JD
1867 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1868 is NULL.
1869
1870 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1871
1872 * frame.c (frame_make_pointer_invisible)
3e0de07f 1873 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1874 frame.
1875
c525b3f2
JD
1876 * search.c (simple_search): Remove warning by making *p const.
1877
2f00e299
DN
18782009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1879
1880 * xdisp.c (power_letter): Remove duplicate const.
1881
084b049b
JD
18822009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1883
a1fadc6f
JD
1884 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1885
5ce6e4f4 1886 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1887 defaults (bug #5025).
1888
28259cac
SM
18892009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1890
1891 * insdel.c (adjust_markers_for_delete): Move it in the
1892 right direction! (bug#4803)
1893
e8e14166
YM
18942009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1895
1896 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1897
1898 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1899
86677b58
GM
19002009-11-24 Glenn Morris <rgm@gnu.org>
1901
1902 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1903
581e51e8
JD
19042009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1905
cfc86c7a
JD
1906 * Makefile.in: Must create deps for ecrt0.o in its rule.
1907
581e51e8
JD
1908 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1909 because that is what Gtk+ font dialog understands.
1910
1911 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1912 of Fcopy_sequence.
1913 (font_open_by_name): Put name given into QCname for font-object returned.
1914
1915 * frame.c (x_set_font): Save original font name as frame parameter
1916 font-parameter.
1917
1918 * xsettings.c (set_default_xft_settings): New function.
1919 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1920 is found.
1921
8b264ecb
AS
19222009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1923
1924 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1925 searching backwards through multibyte buffer.
1926
872870b2
JD
19272009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1928
1929 * xterm.c: #include xgselect.h.
1930 (x_initialize): Call xgselect_initialize.
1931
1932 * xsettings.c (something_changedCB): C++ comments => C comments.
1933 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1934 does that now.
1935
1936 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1937 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1938 (scroll_bar_button_cb): Remove.
5ce6e4f4 1939 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1940 event.
1941 (xg_create_scroll_bar): Don't bind button-press-event and
1942 button-release-event.
1943
1944 * process.c: Include xgselect.h if defined (USE_GTK) ||
1945 defined (HAVE_GCONF).
1946 (wait_reading_process_output): Call xg_select for the same condition.
1947
1948 * xgselect.c (xg_select): New function to better integrate with
1949 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1950
1951 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1952
1953 * Makefile.in (XOBJ): Add xgselect.o.
1954
62a6e103
AS
19552009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1956
0b5397c2
SM
1957 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1958 Remove ignored second argument. All callers changed.
62a6e103
AS
1959 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1960 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1961 * xdisp.c (string_char_and_length): Likewise.
1962
b0ca0f33
DN
19632009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1964
1965 * xterm.c (x_new_font):
1966 * print.c (print_object):
1967 * cmds.c (Fself_insert_command): Move declarations before statements.
1968
dd5a6279
CY
19692009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1970
1971 * s/cygwin.h: Remove unneeded linker flags.
1972
4a8e097d
JD
19732009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1974
0d1d0d26
JD
1975 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1976
1977 * xsettings.h: Declare xsettings_get_system_font.
1978
1979 * xsettings.c (xsettings_get_system_font): New function.
1980 (init_gconf): No use initiating gconf unless we have Xft also.
1981 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1982 HAVE_GCONF.
1983
4a8e097d
JD
1984 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1985 add a blank entry so it doesn't collapse into nothing.
1986
8ab1650e
SM
19872009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1988
1989 * lread.c (Funintern): Comment out last change.
1990
82c602f0
RS
19912009-11-19 Richard Stallman <rms@gnu.org>
1992
1993 * lread.c (Funintern): Error if symbol is t or nil.
1994
87e32266
SM
19952009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1996
1997 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1998 representation of Lisp integers.
1999 Reported by MJ Chan <mjchan.inbox@gmail.com>.
2000
1b9ac145
AS
20012009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2002
2003 * lisp.h: Remove declaration of Ffont_get_system_font.
2004 * xfns.c: Move include of "xsettings.h".
2005 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
2006
dfb3c4c6
JD
20072009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2008
87e32266
SM
2009 * xsettings.c (something_changedCB, Ffont_get_system_font):
2010 Check use_system_font.
dfb3c4c6
JD
2011 (syms_of_xsettings): DEFVAR font-use-system-font.
2012
9370c1d8
AS
20132009-11-17 Andreas Schwab <schwab@linux-m68k.org>
2014
25fe851a
AS
2015 * xfns.c (x_default_font_parameter): Remove dead assignment.
2016
9370c1d8
AS
2017 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
2018
637fa988
JD
20192009-11-17 Jan Djärv <jan.h.d@swipnet.se>
2020
87e32266 2021 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 2022 not have FC_LCD_*. #define them if not there.
a6eb20d8 2023
87e32266 2024 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 2025
637fa988
JD
2026 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
2027
2028 * xterm.c (handle_one_xevent): Call xft_settings_event for
2029 ClientMessage, PropertyNotify and DestroyNotify.
2030 (x_term_init): If we have XFT, get DPI from Xft.dpi.
2031 Call xsettings_initialize.
2032
2033 * xftfont.c (xftfont_fix_match): New function.
2034 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
2035 Call xftfont_fix_match after XftFontMatch.
2036
2037 * xfont.c (xfont_driver): Initialize all members.
2038
87e32266
SM
2039 * xfns.c (x_default_font_parameter):
2040 Try font from Ffont_get_system_font.
637fa988
JD
2041 Do not get font from x_default_parameter if we got one from
2042 Ffont_get_system_font.
87e32266 2043 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
2044
2045 * w32font.c (w32font_driver): Initialize all members.
2046
2047 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
2048
2049 * lisp.h: Declare syms_of_xsettings.
2050
87e32266
SM
2051 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
2052 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
2053
2054 * ftfont.c (ftfont_filter_properties): New function.
2055
2056 * frame.c (x_set_font): Remove unused variable lval.
2057
87e32266 2058 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
2059
2060 * font.c (font_put_extra): Don't return if val is nil, it means
2061 boolean option is off.
2062 (font_parse_fcname): Collect all extra properties in extra_props
2063 and call filter_properties for all drivers with extra_props and
2064 font as parameter.
87e32266
SM
2065 (font_open_entity): Do not use cache, it does not pick up new
2066 fontconfig settings like hinting.
637fa988
JD
2067 (font_load_for_lface): If spec had a name in it, store it in entity.
2068
a73f9c9d 2069 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
2070
2071 * config.in: HAVE_GCONF is new.
2072
2073 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
2074 xsettings.o is new.
2075
5a942932
KH
20762009-11-17 Kenichi Handa <handa@m17n.org>
2077
2078 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
2079 back to the default font in case that no suitable font is found.
2080
b7c7a4d1
SM
20812009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
2082
2083 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
2084 Suggested by Chad Brown <yandros@mit.edu>.
2085 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
2086
072f1e39
JD
20872009-11-16 Jan Djärv <jan.h.d@swipnet.se>
2088
2089 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
2090
5d1e70a2
AS
20912009-11-14 Andreas Schwab <schwab@linux-m68k.org>
2092
87e32266 2093 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 2094
a53cfbe5
JD
20952009-11-14 Jan Djärv <jan.h.d@swipnet.se>
2096
473a99b7
JD
2097 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
2098 has a parent.
2099
a53cfbe5 2100 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 2101 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
2102
2103 * config.in: Generated (AUTO_DEPEND).
2104
f04bb9b2
MA
21052009-11-13 Michael Albinus <michael.albinus@gmx.de>
2106
b7c7a4d1 2107 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
2108 Vdbus_registered_functions_table, because it contains also
2109 properties. Fix docstring.
b7c7a4d1 2110 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 2111
8f11f7ec
SM
21122009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
2113
2114 * alloc.c (mark_object): Don't reprocess marked strings.
2115 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
2116 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
2117
8a605fe8
KH
21182009-11-13 Kenichi Handa <handa@m17n.org>
2119
8f11f7ec 2120 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
2121 semantics of Vword_combining_categories.
2122 (Vword_combining_categories): Describe the slight change of the
2123 semantics.
2124
241c4680
EZ
21252009-11-13 Eli Zaretskii <eliz@gnu.org>
2126
2127 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
2128
2129 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
2130
5d58e44c
SM
21312009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
2132
2133 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2134
5e13f9d3
JB
21352009-11-12 Juanma Barranquero <lekktu@gmail.com>
2136
2137 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2138
cf54c754
DR
21392009-11-11 David Reitter <david.reitter@gmail.com>
2140
2141 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2142 variables to fix 2009-11-09 change.
2143
a4ada374
DN
21442009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2145
91433552
DN
2146 * process.c (ifflag_def): Make flag_sym constant.
2147 (Fnetwork_interface_info): Use a constant pointer.
2148 (ifflag_table):
2149 * xfns.c (cursor_bits):
2150 * xdisp.c (power_letter):
2151 * termcap.c (speeds, esctab):
2152 * sysdep.c (baud_convert):
2153 * keyboard.c (lispy_accent_codes, modifier_names):
2154 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2155 (jpeg_format, tiff_format, gif_format, svg_format)
2156 (interlace_start, interlace_increment, gs_format):
2157 * gtkutil.c (separator_names):
2158 * fringe.c (swap_nibble):
2159 * fns.c (base64_value_to_char, base64_char_to_value):
2160 * fileio.c (make_temp_name_tbl):
2161 * coding.c (suffixes): Make constant.
2162
f4265f6c
DN
2163 * frame.c (make_initial_frame):
2164 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2165 build_string.
2166 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2167
04420943
DN
2168 * s/freebsd.h:
2169 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2170
0a5d24ae
DN
2171 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2172 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2173
a4ada374
DN
2174 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2175 * xterm.c (syms_of_xterm):
2176 * xfaces.c (syms_of_xfaces):
2177 * xdisp.c (syms_of_xdisp):
2178 * lread.c (syms_of_lread):
2179 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2180 build_string.
91433552 2181
a4ada374
DN
2182 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2183
af98fc7f
SM
21842009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2185
8ab1650e 2186 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2187
e90292a9
JD
21882009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2189
2190 * keyboard.h: Declare timer_check.
2191
2192 * keyboard.c (timer_check_2): New function that does what the old
2193 timer_check did.
2194 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2195 returned, i.e. don't return -1 with timers pending.
2196
2197 * process.c: Remove extern declaration of timer_check.
2198
2199 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2200 even if timer_check returned -1.
2201
af98fc7f
SM
2202 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2203 xg_dialog_data.
e90292a9
JD
2204 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2205 the event loop.
2206 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2207 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2208 Destroy the dialog after xg_dialog_run.
2209
045b83c0
SM
22102009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2211
2212 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2213
1fb99a3a
JD
22142009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2215
2216 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2217
04e452cb
JB
22182009-11-09 Juanma Barranquero <lekktu@gmail.com>
2219
2220 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2221
ef7417fd
SM
22222009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2223
2224 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2225 w32menu.c, and nsmenu.m.
2226 Simplify the obsolete case where position is nil.
2227 (cleanup_popup_menu): New function, moved from nsmenu.m.
2228 (struct skp): Remove slot `notreal'.
2229 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2230 adjust callers.
2231 (single_menu_item): Adjust call to parse_menu_item.
2232 (syms_of_menu): Defsubr x-popup-menu.
2233 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2234 (keymap_panes): Don't export any more.
2235 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2236 (xmenu_show): Declare.
2237 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2238 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2239 * keyboard.h (parse_menu_item): Update declaration.
2240 * xmenu.c (Fx_popup_menu): Remove.
2241 (syms_of_xmenu): Don't defsubr x-popup-menu.
2242 * w32menu.c (Fx_popup_menu): Remove.
2243 (syms_of_w32menu): Don't defsubr x-popup-menu.
2244 * nsmenu.m (cleanup_popup_menu): Remove.
2245 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2246 moved to menu.c's Fx_popup_menu.
2247 (Fx_popup_menu): Remove.
2248 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2249 menu_items (it's done in menu.c already).
2250
424d6179
SM
22512009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2252
2253 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2254 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2255
c0df13a6 22562009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2257
2258 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2259 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2260 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2261 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2262
2de9f71c
SM
22632009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2264
2265 Let integers use up 2 tags to give them one extra bit and thus double
2266 their range.
2267 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2268 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2269 New macros.
2270 (enum Lisp_Type): Use them. Give explicit values.
2271 (Lisp_Type_Limit): Remove.
2272 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2273 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2274 Pay attention to USE_2_TAGS_FOR_INTS.
2275 (INTEGERP): Use LISP_INT_TAG_P.
2276 * fns.c (internal_equal): Simplify the default case.
2277 (sxhash): Use case_Lisp_Int.
2278 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2279 any more.
2280 (Ftype_of): Use case_Lisp_Int.
2281 (store_symval_forwarding): Take into account the fact that Ints can
2282 now have more than one tag.
2283 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2284 buffer_slot_type_mismatch):
2285 * xfaces.c (face_attr_equal_p):
2286 * print.c (print_object):
2287 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2288 Use case_Lisp_Int.
2289
323637a2
EZ
22902009-11-06 Eli Zaretskii <eliz@gnu.org>
2291
7ac65b38
EZ
2292 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2293
323637a2
EZ
2294 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2295 warning.
2296
e511451f
JD
22972009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2298
2299 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2300
2301 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2302
2303 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2304 ButtonPressRelease and MotionNotify (bug#4870).
2305
5e2327cf
DN
23062009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2307
5adc433e
DN
2308 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2309
d67b4f80
DN
2310 * xterm.c (syms_of_xterm):
2311 * xselect.c (syms_of_xselect):
2312 * xmenu.c (syms_of_xmenu):
2313 * xfns.c (syms_of_xfns):
2314 * xfaces.c (syms_of_xfaces):
2315 * xdisp.c (syms_of_xdisp):
2316 * window.c (syms_of_window):
2317 * w32fns.c (syms_of_w32fns):
2318 * undo.c (syms_of_undo):
2319 * textprop.c (syms_of_textprop):
2320 * terminal.c (syms_of_terminal):
2321 * syntax.c (syms_of_syntax):
2322 * sound.c (syms_of_sound):
2323 * search.c (syms_of_search):
2324 * print.c (syms_of_print):
2325 * minibuf.c (syms_of_minibuf):
2326 * macros.c (syms_of_macros):
2327 * keymap.c (syms_of_keymap, initial_define_key)
2328 (initial_define_lispy_key):
2329 * keyboard.c (syms_of_keyboard):
2330 * insdel.c (syms_of_insdel):
2331 * image.c (syms_of_image):
2332 * fringe.c (syms_of_fringe):
2333 * frame.c (syms_of_frame):
2334 * fontset.c (syms_of_fontset):
2335 * fns.c (syms_of_fns):
2336 * fns.c (syms_of_fns):
2337 * fileio.c (syms_of_fileio):
2338 * fileio.c (syms_of_fileio):
2339 * eval.c (syms_of_eval):
2340 * doc.c (syms_of_doc):
2341 * dispnew.c (syms_of_display):
2342 * dired.c (syms_of_dired):
2343 * dbusbind.c (syms_of_dbusbind):
2344 * data.c (syms_of_data):
2345 * composite.c (syms_of_composite):
2346 * coding.c (syms_of_coding):
2347 * cmds.c (syms_of_cmds):
2348 * charset.c (define_charset_internal, syms_of_character):
2349 * ccl.c (syms_of_ccl):
2350 * category.c (syms_of_category, init_category_once):
2351 * casetab.c (syms_of_casetab):
2352 * casefiddle.c (syms_of_casefiddle):
2353 * callint.c (syms_of_callint):
2354 * bytecode.c (syms_of_bytecode):
2355 * buffer.c (keys_of_buffer, syms_of_buffer):
2356 * alloc.c (syms_of_alloc):
2357 * process.c (syms_of_process, init_process):
2358 * lread.c (syms_of_lread, init_obarray):
2359 * font.c (build_style_table):
2360 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2361 intern_c_string, calls to make_pure_string with
2362 make_pure_c_string. Use pure_cons instead of Fcons.
2363
5e2327cf
DN
2364 * process.c (socket_options): Make it const.
2365 (set_socket_option, init_process): Use a const pointer.
2366
2367 * lread.c (intern_c_string): New function.
2368 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2369 (defvar_int): Uset it. Make the name const char*.
2370
2371 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2372 (defvar_int): Update prototypes.
2373 (DEFUN, EXFUN): Support for prototypes is now required.
2374 (intern_c_string): New prototype.
2375 (struct Lisp_Subr): Make symbol_name constant.
2376
2377 * font.c (struct table_entry): Remove unused member. Make NAMES
2378 constant.
2379 (weight_table, slant_table, width_table): Make constant.
2380
2381 * emacs.c (struct standard_args): Make name and longname constant.
2382
2383 * character.h (DEFSYM): Use intern_c_string.
2384
a56eaaef
DN
23852009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2386
2387 * alloc.c (make_pure_c_string): New function.
2388
2389 * eval.c (Fautoload): Purecopy all arguments.
2390
f6a07420
KH
23912009-11-05 Kenichi Handa <handa@m17n.org>
2392
2393 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2394 the buffer in case of replace.
2395
5d28d4b1
DN
23962009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2397
2398 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2399
b349d111
SM
24002009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2401
d528b1ce
SM
2402 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2403 when applicable (bug#4851).
2404
b349d111
SM
2405 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2406 (P_): Support for prototypes is now required.
2407
c38eb027
CY
24082009-10-31 Chong Yidong <cyd@stupidchicken.com>
2409
2410 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2411 (Bug#4827).
2412
0405f8d9
EZ
24132009-10-30 Eli Zaretskii <eliz@gnu.org>
2414
d528b1ce 2415 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2416
ca0a881a
DN
24172009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2418
2419 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2420
d528b1ce
SM
2421 * lread.c (Fload): Purecopy the file name when building
2422 Vpreloaded_file_list.
ca0a881a 2423
47e0e0e4
JR
24242009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2425
2426 * w32fns.c (syms_of_w32fns): Change default value of
2427 w32-scroll-lock-modifier to nil. (Bug#2827)
2428
057bce6f
JB
24292009-10-26 Juanma Barranquero <lekktu@gmail.com>
2430
782a943e 2431 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2432
242bc74c
AS
24332009-10-26 Andreas Schwab <schwab@redhat.com>
2434
2435 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2436
522d013a
JB
24372009-10-26 Juanma Barranquero <lekktu@gmail.com>
2438
2439 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2440 For delta < 0, skip check that only makes sense when the mini-window
2441 is going to be enlarged. (Bug#4534)
2442
18060980
CY
24432009-10-25 Chong Yidong <cyd@stupidchicken.com>
2444
2445 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2446 string in menu maps (Bug#4471).
2447
fec8f0fe
CY
24482009-10-24 Chong Yidong <cyd@stupidchicken.com>
2449
2450 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2451 FRAME_NS_VIEW on terminal frames (Bug#4765).
2452
10d66ec0
AS
24532009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2454
1cae01f7
AS
2455 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2456 DBUS_TYPE_UINTnn separately to get proper sign extension.
2457
58a12889
AS
2458 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2459 can properly handle unsigned types.
d528b1ce 2460 (make_uid, make_gid): Remove.
58a12889 2461
987c9327
AS
2462 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2463 types again.
2464
522d013a 2465 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2466 (system_process_attributes): Likewise.
2467
905a9ed3
DN
24682009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2469
2470 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2471
2472 * eval.c (Fautoload): Purecopy the filename. Simplify.
2473
2474 * category.c (Fdefine_category): Purecopy docstring.
2475
a599b3e8
AS
24762009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2477
7b792fc9
AS
2478 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2479
a599b3e8
AS
2480 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2481
b35ac83e
CY
24822009-10-23 Chong Yidong <cyd@stupidchicken.com>
2483
2484 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2485 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2486 (Bug#4775).
2487
e8903e00
SM
24882009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2489
2490 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2491 (init_fileio_once):
2492 * lisp.h (init_fileio_once): Remove.
2493 * emacs.c (main): Don't call init_fileio_once.
2494
8f43cbf3
DN
24952009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2496
2497 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2498
26898943
AS
24992009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2500
2501 * doprnt.c (doprnt): Fix overflow check.
2502
5c646d5a
JD
25032009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2504
3132a7ea
JD
2505 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2506
5c646d5a
JD
2507 * xterm.h (x_wait_for_event): Declare it.
2508
2509 * xterm.c (pending_event_wait): New variable.
2510 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2511 see pending_event_wait.eventtype.
2512 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2513 (x_new_font): Call change_frame_size with new rows/columns before we
2514 try to resize the frame.
5c646d5a 2515 (x_wait_for_event): New function.
d528b1ce
SM
2516 (x_set_window_size_1): Don't change gravity unless change_gravity
2517 is set.
5c646d5a
JD
2518 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2519 don't change frame size, instead wait for the ConfigureNotify.
2520 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2521 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2522 (x_initialize): Initialize pending_event_wait.
2523
2524 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2525 size.
2526
2527 * widget.c (EmacsFrameSetValues): Add comment.
2528 (EmacsFrameSetCharSize): Just call x_set_window_size.
2529
2530 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2531 x_wait_for_event.
d528b1ce 2532 (flush_and_sync): Remove again.
5c646d5a
JD
2533 (xg_get_font_name): Suggest monospace if no previous font is known.
2534
e9c1637d
SM
25352009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2536
2537 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2538 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2539
5a72cccb
YM
25402009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2541
2542 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2543 processing pending events when event is filtered for input method.
ab04798f 2544 (Bug#3681)
5a72cccb 2545
2629aa37
JB
25462009-10-20 Juanma Barranquero <lekktu@gmail.com>
2547
2548 * fns.c: Add #endif accidentally removed in previous change.
2549
c3417a74
DN
25502009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2551
2552 * fns.c: Remove code for unsupported system: MAC_OS.
2553 * image.c: Likewise. Include setjmp.h.
2554
9685cef2
JD
25552009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2556
2557 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2558 pixel -1 (bug #4742).
2559
d7306fe6
DN
25602009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2561
019d2c4c
DN
2562 * process.c (create_pty): Remove conditionals for no longer
2563 supported systems: UNIPLUS and RTU.
2564
ee6bacd4
DN
2565 * xterm.c:
2566 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2567
d7306fe6
DN
2568 * alloc.c: Do not define struct catchtag.
2569 * eval.c: Move struct catchtag definition ...
2570 * lisp.h: ... here.
2571
2572 * image.c: Move png.h #include earlier to avoid warnings.
2573
2574 * xterm.c:
2575 * xsmfns.c:
2576 * xselect.c:
2577 * xrdb.c:
2578 * xmenu.c:
2579 * xftfont.c:
2580 * xfont.c:
2581 * xfns.c:
2582 * xfaces.c:
2583 * xdisp.c:
2584 * window.c:
2585 * widget.c:
2586 * w32xfns.c:
2587 * w32uniscribe.c:
2588 * w32term.c:
2589 * w32select.c:
2590 * w32reg.c:
2591 * w32proc.c:
2592 * w32menu.c:
2593 * w32inevt.c:
2594 * w32heap.c:
2595 * w32font.c:
2596 * w32fns.c:
2597 * w32console.c:
2598 * w32.c:
2599 * w16select.c:
2600 * vm-limit.c:
2601 * unexsol.c:
2602 * unexec.c:
2603 * unexcw.c:
2604 * unexaix.c:
2605 * undo.c:
2606 * tparam.c:
2607 * textprop.c:
2608 * terminfo.c:
2609 * terminal.c:
2610 * termcap.c:
2611 * term.c:
2612 * syntax.c:
2613 * sound.c:
2614 * sheap.c:
2615 * search.c:
2616 * scroll.c:
2617 * region-cache.c:
2618 * regex.c:
2619 * ralloc.c:
2620 * process.c:
2621 * print.c:
b024548b
DN
2622 * nsterm.m:
2623 * nsselect.m:
2624 * nsmenu.m:
2625 * nsimage.m:
2626 * nsfont.m:
2627 * nsfns.m:
d7306fe6
DN
2628 * msdos.c:
2629 * minibuf.c:
2630 * menu.c:
2631 * marker.c:
2632 * macros.c:
2633 * keymap.c:
2634 * keyboard.c:
2635 * intervals.c:
2636 * insdel.c:
2637 * indent.c:
2638 * gtkutil.c:
2639 * ftxfont.c:
2640 * ftfont.c:
2641 * fringe.c:
2642 * frame.c:
2643 * fontset.c:
2644 * font.c:
2645 * fns.c:
2646 * floatfns.c:
2647 * filelock.c:
2648 * fileio.c:
2649 * emacs.c:
2650 * editfns.c:
2651 * dosfns.c:
2652 * doprnt.c:
2653 * doc.c:
2654 * dispnew.c:
2655 * dired.c:
2656 * dbusbind.c:
2657 * data.c:
2658 * composite.c:
2659 * coding.c:
2660 * cmds.c:
2661 * cm.c:
2662 * chartab.c:
2663 * charset.c:
2664 * character.c:
2665 * ccl.c:
2666 * category.c:
2667 * casetab.c:
2668 * casefiddle.c:
2669 * callproc.c:
2670 * callint.c:
2671 * bytecode.c:
2672 * buffer.c:
2673 * atimer.c: Include setjmp.h. (Bug#4643)
2674
fd5f21e6
SM
26752009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2676
4c0354d7
SM
2677 Remove leftover table unibyte_to_multibyte_table.
2678 * character.c (unibyte_to_multibyte_table): Remove.
2679 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2680 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2681 * character.h (UNIBYTE_TO_CHAR): New macro.
2682 (MAKE_CHAR_MULTIBYTE): Use it.
2683 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2684 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2685 (message_dolog, set_message_1):
2686 * search.c (Freplace_match):
2687 * editfns.c (Fcompare_buffer_substrings):
2688 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2689 (concat):
2690 * insdel.c (copy_text, count_size_as_multibyte):
2691 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2692 * term.c (produce_glyphs):
2693 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2694 * regex.c (RE_CHAR_TO_MULTIBYTE):
2695 * cmds.c (internal_self_insert):
2696 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2697
fd5f21e6
SM
2698 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2699
4418646e
DN
27002009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2701
2702 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2703
35f5c1d2
JB
27042009-10-16 Juanma Barranquero <lekktu@gmail.com>
2705
2706 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2707
a0cd8f6b
AR
27082009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2709
2710 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2711 still needed under Tiger.
2712
2713 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2714
2715 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2716 __Apple__.
2717
2718 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2719
01a8d3fa
KH
27202009-10-15 Kenichi Handa <handa@m17n.org>
2721
2722 * print.c (print_object): Escape a symbol like "2E10" too.
2723
bf6c75c9 27242009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2725
2726 Cleanups and changes for 64-bit compile under Snow Leopard.
2727 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2728
2729 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2730
c5959062 2731 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2732 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2733 cast argument.
2734 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2735 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2736
2737 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2738
2739 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2740 where appropriate.
2741
2742 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2743 where appropriate.
6e4780c5
JB
2744 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2745 Use stringWithUTF8String.
bf6c75c9
AR
2746 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2747
6e4780c5
JB
2748 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2749 Add formal protocol mention to inheritance.
bf6c75c9
AR
2750 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2751
6e4780c5
JB
2752 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2753 Fix printf format.
bf6c75c9
AR
2754 (ns_query_color): Use CGFloat where appropriate.
2755 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2756 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2757 argument.
2758
3d87f118
AR
2759 * config.in (NS_HAVE_NSINTEGER): Drop.
2760
a95c8102
AR
2761 * dbusbind.c (dbus-method-return-internal)
2762 (dbus-method-error-internal): Use long format in printf, and cast
2763 argument.
2764
2765 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2766 in printf, and cast argument.
2767
6873acca 2768 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2769 cast argument.
2770
9ec6f100
GM
27712009-10-11 Glenn Morris <rgm@gnu.org>
2772
2773 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2774
5be883cd
JD
27752009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2776
2777 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2778 menu bar with a small width so it doesn't enlarge the frame.
2779
d7a39b51
JB
27802009-10-08 Juanma Barranquero <lekktu@gmail.com>
2781
2782 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2783
0c2b6f8e
GM
27842009-10-06 Glenn Morris <rgm@gnu.org>
2785
2786 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2787 SOME_MACHINE_LISP (this enters indirectly via DOC).
2788
e02131a2
EZ
27892009-10-05 Eli Zaretskii <eliz@gnu.org>
2790
2791 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2792
b4744254
EZ
27932009-10-04 Eli Zaretskii <eliz@gnu.org>
2794
2795 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2796 Doc fix.
2797
dbf64827
JB
27982009-10-03 Martin Rudalics <rudalics@gmx.at>
2799
2800 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2801
e9a0aef8
MA
28022009-10-02 Michael Albinus <michael.albinus@gmx.de>
2803
d528b1ce 2804 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2805 used anymore outside fileio.c.
2806
2807 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2808
64eb2b56
JB
28092009-10-01 Juanma Barranquero <lekktu@gmail.com>
2810
2811 * lisp.h (Qdelete_directory_internal):
2812 Declare, instead of Qdelete_directory.
2813
2814 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2815
9d28c33e
SM
28162009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2817
2818 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2819
9d8f3bd9
MA
28202009-10-01 Michael Albinus <michael.albinus@gmx.de>
2821
9d28c33e 2822 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2823 Fdelete_directory. It is not a command anymore. It has no file
2824 name handler.
2825
9694740b
SM
28262009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2827
2828 * xdisp.c (get_next_display_element): Use an enum in last change.
2829
748e162f
KH
28302009-09-28 Kenichi Handa <handa@m17n.org>
2831
9694740b 2832 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2833 unibyte_display_via_language_environment in handling
2834 Vnobreak_char_display.
2835
17efd58d
AR
28362009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2837
2838 * nsterm.h (ns_app_name): New extern variable.
2839
2840 * nsterm.m (ns_app_name): New variable.
2841 (ns_term_init): Set and use it.
2842 (ns_term_shutdown): Use it.
2843
2844 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2845 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2846
2847 * nsfns.m (ns_set_name_iconic, ns_set_name)
2848 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2849 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2850
9694740b
SM
2851 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2852 Remove double-casting in client_data comparison.
31c2d412 2853
3208cb35
YM
28542009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2855
2856 * keyboard.c (make_lispy_event): Remember last wheel direction.
2857 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2858
b7d552d6
GM
28592009-09-26 Glenn Morris <rgm@gnu.org>
2860
2861 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2862 internal.elc. Add term/pc-win.elc.
2863 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2864 term/x-win.elc.
2865 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2866 term/w32-win.elc.
2867 (NS_SUPPORT): New.
2868 (lisp): Add NS_SUPPORT.
2869 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2870
4ff670a8
DR
28712009-09-25 David Reitter <david.reitter@gmail.com>
2872
2873 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2874 on Mac OS X 10.6+ (bug#4513).
2875
feabfb6c
JB
28762009-09-24 Juanma Barranquero <lekktu@gmail.com>
2877
2878 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2879 some parts of Emacs code (like font selection) don't grok them.
2880 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2881
de59072a
AS
28822009-09-24 Andreas Schwab <schwab@redhat.com>
2883
2884 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2885
a489517b
JB
28862009-09-24 Juanma Barranquero <lekktu@gmail.com>
2887
2888 * dired.c (Fdirectory_files): Fix typo in docstring.
2889
0592970c
AR
28902009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2891
2892 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2893 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2894 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2895 under GNUstep.
2896 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2897
2898 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2899 glyph advancement.
2900
48e8a88b
AR
29012009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2902
2903 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2904 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2905
2906 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2907 deleted (bug #4492).
2908
e14f0a78
AR
2909 * nsfont.m (Vns_reg_to_script): New lisp variable.
2910 (syms_of_nsfont): Declare it.
2911 (ns_registry_to_script): New function.
2912 (ns_get_req_script): Call it.
2913 (ns_findfonts): Don't give up on non-unicode registry.
2914
2915 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2916
5b650faa
SM
29172009-09-20 Tom Tromey <tromey@redhat.com>
2918
2919 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2920 batch mode (bug#4228).
2921
a489517b 29222009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2923
2924 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2925 carefully. (Bug #4339)
0bae4e09 2926
fcfe06f3
CY
29272009-09-18 Chong Yidong <cyd@stupidchicken.com>
2928
d798ba87 2929 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2930
31642728
AR
29312009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2932
2933 * emacs.c (inhibit_x_resources): Update doc string for NS.
2934 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2935 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2936
2937 * nsterm.h (ns_no_defaults): Remove.
2938
2939 * nsterm.m (ns_no_defaults): Remove.
2940 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2941 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2942 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2943 don't update the NSWindow itself.
2944 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2945 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2946
2947 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2948 ns_use_qd_smoothing.
2949
2950 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2951 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2952 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2953 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2954
8686ac71
JB
29552009-09-17 Juanma Barranquero <lekktu@gmail.com>
2956
2957 * emacs.c (inhibit_x_resources): New variable.
2958 (main) [HAVE_NS]: Don't process --quick command line option.
2959 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2960
2961 * lisp.h (inhibit_x_resources): Declare it extern.
2962
2963 * w32reg.c (x_get_string_resource):
2964 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2965
e227ba05
EZ
29662009-09-17 Eli Zaretskii <eliz@gnu.org>
2967
362654a6
JB
2968 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2969 Add lisp/term/internal.elc.
e227ba05 2970
742d40e8
SM
29712009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2972
2973 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2974 (bug#4461).
2975
005bd5a2
DN
29762009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2977
2978 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2979
2980 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2981 (OBJECTS_MACHINE): Remove, unused.
2982
f9af9719
SM
29832009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2984
2985 * frame.c (x_get_resource_string): Remove unused.
2986
0307c7d2
JD
29872009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2988
2989 * xterm.c (x_new_font): Call change_frame_size before calling
2990 x_set_window_size, in case frame size won't change.
2991
2992 * frame.c (x_set_font): Remove dead code.
2993
428b13d6
SM
29942009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2995
2996 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2997
5766c380
SM
29982009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2999
3000 * lread.c (Fload): Don't output a message after loading an obsolete
3001 package any more (done in Lisp now).
3002
2fd0161b
CY
30032009-09-12 Chong Yidong <cyd@stupidchicken.com>
3004
3005 * fns.c (syms_of_fns): Doc fix (Bug#4227).
3006
bc5e75b6
SM
30072009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
3008
3009 * keymap.c (Fwhere_is_internal): Use nconc2.
3010
c31c985e
AM
30112009-09-11 Alan Mackenzie <acm@muc.de>
3012
3013 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
3014 batch mode.
3015
78012bd2
AS
30162009-09-11 Andreas Schwab <schwab@linux-m68k.org>
3017
3018 * xdisp.c (display_mode_element): Detect cycles.
3019
9d889332
SM
30202009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3021
3022 * keymap.c (where_is_internal): Don't erroneously return nil right after
3023 filling the cache.
3024 (where_is_internal_1): Fix up typo.
3025
7ab5d780
GM
30262009-09-11 Glenn Morris <rgm@gnu.org>
3027
3028 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
3029 share a common doc-string.
3030
5238a749
SM
30312009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
3032
66d77eda
SM
3033 * keymap.c (get_keymap): Return the actual keymap symbol rather than
3034 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
3035
5238a749
SM
3036 * keymap.c (QCadvertised_binding): New constant.
3037 (syms_of_keymap): Initialize it.
3038 (Fwhere_is_internal): Try and use bindings from :advertised-binding
3039 if applicable.
3040
19f48442
SM
30412009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
3042
50d4ba39
SM
3043 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
3044 (parse_menu_item): Streamline since bindings are recomputed all the
3045 time anyway. Don't bother checking Vdefine_key_rebound_commands any
3046 more and don't support lmenu's menu-alias any more either.
3047
a88a5372
SM
3048 * keymap.c (where_is_internal_data): Make noindirect a boolean.
3049 (where_is_internal): Strip it down to only traverse the keymaps.
3050 Move the cache handling from Fwhere_is_internal to here.
3051 (Fwhere_is_internal): Move the handling of remapping and the choice of
3052 the best binding from where_is_internal to here.
3053 Unify the cached/noncached paths, so remapping is also handled
3054 correctly when the cache is used, and so the cache can be used to
3055 speed up remap-handling when applicable.
3056 Give preference to non-remapped bindings.
3057 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
3058 non-remapped bindings.
3059 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
3060 command remapping.
3061
19f48442
SM
3062 * xdisp.c (display_mode_element): Move list length limit from 50 to
3063 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
3064
599498c3 30652009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
3066
3067 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
3068
f9b7b5ac
SM
30692009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
3070
a53af587
JB
3071 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
3072 (Bug#4334)
3073
f9b7b5ac
SM
3074 * keymap.c (where_is_internal): Filter out shadowed remappings.
3075 Assume that where_is_internal returns unshadowed bindings to simplify
3076 the code and get rid of the gotos. Use ASIZE.
3077
04f4b72d
JD
30782009-09-04 Jan Djärv <jan.h.d@swipnet.se>
3079
4da146f2
JD
3080 * xterm.c (x_focus_changed): If we get a focusout and pointer
3081 is invisible, make it visible.
3082
04f4b72d
JD
3083 * xterm.h: Remove condition for declaration of
3084 x_*_window_to_frame.
3085
7cef7ce3
SM
30862009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
3087
3088 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
3089 initial terminal as well.
3090
a54fa5b7
JD
30912009-09-02 Jan Djärv <jan.h.d@swipnet.se>
3092
3093 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 3094 x_menubar_window_to_frame.
a54fa5b7
JD
3095
3096 * xterm.c: Remove declarations also in xterm.h
3097 (XTmouse_position): Do not return valid positions
3098 for clicks in the menubar and the toolbar for Gtk+.
3099
3100 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
3101 if the widget for the event has the same top level as a frame,
3102 return the frame.
3103 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
3104 internal windows, bug #4122.
3105 (x_non_menubar_window_to_frame): Remove.
3106
5a021dd0
GM
31072009-09-02 Glenn Morris <rgm@gnu.org>
3108
3109 * buffer.c (default-major-mode): Move most of the doc from here...
3110 (major-mode): ... to here.
3111
548fe2f3
NR
31122009-08-30 Nick Roberts <nickrob@snap.net.nz>
3113
3114 * process.c (wait_reading_process_output): Keep the descriptor
3115 when pty is used by a non-child process, e.g., in I/O buffer of
3116 GDB this allows inferior to be restarted.
3117
e0840eef
EZ
31182009-08-29 Eli Zaretskii <eliz@gnu.org>
3119
3120 * xdisp.c (redisplay_internal): Remove redundant test and collapse
3121 both branches into one.
3122
82e98df4
SM
31232009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
3124
3125 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
3126 (main): Use enable-multibyte-characters rather than
3127 default-enable-multibyte-characters. Output a warning message when
3128 running a unibyte session.
3129
890617cb
YM
31302009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3131
3132 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
3133 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3134 (copy_data_segment): Also copy __program_vars section.
3135 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3136 (dump_it) [LC_DYLD_INFO]: Use it.
3137
3138 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3139
e7adeadc
EZ
31402009-08-28 Eli Zaretskii <eliz@gnu.org>
3141
3142 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3143 $(SRC)/buildobj.h.
3144 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3145 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3146 $(SRC)/buildobj.h.
3147 (clean): Add buildobj.h.
3148
3ed8bbdc
TZ
31492009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3150
3151 * print.c (print_object): Set escapeflag to 1 when printing
3152 hashtable keys and values.
3153
155a6764
SM
31542009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3155
3156 * lread.c (read_integer): Use doubles (and potentially return a float
3157 number) as we do in string-to-number.
3158 (read1): Use strtol to read integers, signal errors on strtol's
3159 overflow and use floats if strtol's output is too large for
3160 Elisp integers.
3161
877610de
EZ
31622009-08-27 Eli Zaretskii <eliz@gnu.org>
3163
3164 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3165 (make-buildobj-SH): Fix last change.
3166 (SRC): Move to before where it's first used.
3167
ef73e7be
KH
31682009-08-27 Kenichi Handa <handa@m17n.org>
3169
550c8289
KH
3170 * process.c (send_process): Use encode_coding_object instead of
3171 encode_coding_string to perform eol-conversion even if the string
3172 is unibyte.
3173
60afa08d
KH
3174 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3175 character.
3176
ef73e7be 3177 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3178 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3179
7b3a82d7
DN
31802009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3181
5654bf63
DN
3182 * callproc.c (Fcall_process): Remove always true #if.
3183
7b3a82d7
DN
3184 * lisp.h: Replace #if 0 code for checking with text pointing to
3185 the --enable-checking configure flag.
3186
3187 * emacs.c (main): Mention the --enable-profiling configure flag
3188 instead of using CFLAGS.
3189
878bde49
KR
31902009-08-26 Ken Raeburn <raeburn@raeburn.org>
3191
3192 * Makefile.in (buildobj.h): New target.
3193 (doc.o): Depend on it.
3194 (temacs${EXEEXT}): Don't generate buildobj.lst.
3195 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3196 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3197 ($(BLD)/doc.$(O)): Depend on it.
3198 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3199 provided by Eli Zaretskii.)
3200 ($(TEMACS)): Don't generate buildobj.lst.
3201 * doc.c: Include buildobj.h.
3202 (buildobj): New static variable.
3203 (Fsnarf_documentation): Use it, instead of opening and reading
3204 buildobj.lst.
3205
1574224c
MA
32062009-08-25 Michael Albinus <michael.albinus@gmx.de>
3207
3208 * dbusbind.c (Fdbus_call_method)
3209 (Fdbus_call_method_asynchronously): Use English numeric format for
3210 timeout values in doc string.
3211
d9da2f45
KH
32122009-08-25 Kenichi Handa <handa@m17n.org>
3213
ef73e7be
KH
3214 * alloc.c (mark_char_table): New function.
3215 (mark_object): Use mark_char_table for a char-table.
3216
d9da2f45
KH
3217 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3218 (CHAR_TABLE_REF): Use it.
3219
c8edcc01
KR
32202009-08-23 Ken Raeburn <raeburn@raeburn.org>
3221
3222 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3223 before invoking the newly build emacs to check for load-path
3224 shadowing.
3225
7763401b
GM
32262009-08-22 Glenn Morris <rgm@gnu.org>
3227
3228 * Makefile.in (bootstrap_exe): New variable.
3229 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3230 Use ${bootstrap_exe}.
3231
729eadda
EZ
32322009-08-22 Eli Zaretskii <eliz@gnu.org>
3233
3234 * coding.h (encode_coding_string): Don't encode unibyte strings.
3235 (Bug#4047)
3236
eb4c6ace
MA
32372009-08-22 Michael Albinus <michael.albinus@gmx.de>
3238
3239 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3240
3241 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3242 intended as hotfix only.
3243 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3244
36e34d1b
AR
32452009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3246
3247 * nsterm.m (ns_get_color): Update documentation properly for last
3248 change, and clean up loose ends in the code left by it. Fix
3249 longstanding bug with 16-bit hex parsing, and add support for
3250 yet another X11 format (rgb:r/g/b) for compatibility.
3251 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3252 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3253
f983eb8a
SM
32542009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3255
3256 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3257
3f56d3c6
MA
32582009-08-20 Michael Albinus <michael.albinus@gmx.de>
3259
3260 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3261 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3262 (xd_initialize, xd_pending_messages): Check, whether
3263 $DBUS_SESSION_BUS_ADDRESS is set.
3264
fb641d68
YM
32652009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3266
3267 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3268
3269 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3270
cf59a374
GM
32712009-08-20 Glenn Morris <rgm@gnu.org>
3272
3273 * emacs.c (system-type): Doc fix.
3274
1373f3be
SM
32752009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3276
3277 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3278 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3279
058ed861
MA
32802009-08-18 Michael Albinus <michael.albinus@gmx.de>
3281
1373f3be
SM
3282 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3283 New functions.
058ed861
MA
3284 (xd_initialize): Revert change from 2009-08-16.
3285
563a866e 32862009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3287
3288 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3289 font-group vector, return nil.
5fc05db0 3290
e42bdf01
CY
32912009-08-17 Chong Yidong <cyd@stupidchicken.com>
3292
3293 * process.c (status_notify): Don't perform redisplay.
3294 (Fdelete_process, list_processes_1, process_send_signal):
3295 Expliticly perform redisplay.
3296 (wait_reading_process_output): Always check process status, but
3297 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3298
4230ab74
KR
32992009-08-17 Ken Raeburn <raeburn@raeburn.org>
3300
1373f3be 3301 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3302 (XFLOAT_INIT): New macro for storing a float value.
3303 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3304 * fns.c (sxhash): Copy out the value of a float in order to
3305 examine its bytes.
3306 * dbusbind.c (xd_append_arg): Likewise.
3307
4230ab74
KR
3308 * emacs.c (main): Don't call syms_of_data twice.
3309
a0645cdd
MA
33102009-08-16 Michael Albinus <michael.albinus@gmx.de>
3311
3312 * dbusbind.c (xd_initialize): Add connection file descriptor to
3313 input_wait_mask, in order to let select() detect, whether a new
3314 message has been arrived.
ca4f31ea 3315 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3316
485db0ba
MA
33172009-08-15 Michael Albinus <michael.albinus@gmx.de>
3318
1373f3be
SM
3319 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3320 New functions.
485db0ba
MA
3321
3322 * lisp.h (xd_pending_messages): Declare.
3323
3324 * keyboard.c (readable_events): Call xd_pending_messages.
3325
b5b98ff4
CY
33262009-08-15 Chong Yidong <cyd@stupidchicken.com>
3327
1373f3be 3328 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3329
f8354c6e
CY
3330 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3331
b5b98ff4
CY
3332 * buffer.c (set_buffer_internal_1)
3333 (swap_out_buffer_local_variables): Check for unbound local
3334 variables (Bug#4138).
3335
8b9fc636
EZ
33362009-08-14 Eli Zaretskii <eliz@gnu.org>
3337
3338 * process.c (create_pty): Fix last change.
3339
ce959360
CY
33402009-08-13 Chong Yidong <cyd@stupidchicken.com>
3341
3342 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3343 (xbm_load_image): Caller changed.
64b807c9 3344 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3345
c7baf7e9
NR
33462009-08-13 Nick Roberts <nickrob@snap.net.nz>
3347
3348 * process.c (create_pty): New function.
3349 (Fstart_process): Use it to allow Emacs to just associate a pty
3350 with the buffer. See associated change in gdb-mi.el.
3351 (list_processes_1): Deal with no program name.
3352 (start_process_unwind): Use pid == -2 to mean no process.
3353
1ac9108a
SM
33542009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3355
3356 * cmds.c (nonundocount): New global variable.
3357 (keys_of_cmds): Initialize it.
3358 (Fself_insert_command): Use it to combine upto 20 sequential chars
3359 into a single undo entry, just like the Qself_insert_command code in
3360 keyboard.c does.
3361 Call frame_make_pointer_invisible, also like the Qself_insert_command
3362 code in keyboard.c does.
3363 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3364 than its own local replacement for it.
3365
e267324c
KR
33662009-08-10 Ken Raeburn <raeburn@raeburn.org>
3367
1ac9108a 3368 * fns.c (concat): Don't re-set string length to its current value.
77437343 3369
1ac9108a
SM
3370 * coding.h (decode_coding_string, encode_coding_string):
3371 Use SBYTES macro.
f0bed503 3372
1ac9108a 3373 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3374 (doprnt): Merge with doprnt1, discarding lispstrings code.
3375 * lisp.h (doprnt_lisp): Don't declare.
3376
416e006d
JL
33772009-08-07 Juri Linkov <juri@jurta.org>
3378
3379 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3380
6f7d5780
DN
33812009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3382
3383 * print.c (syms_of_print): Undo previous change.
3384
f19a0f5b
TZ
33852009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3386
3387 * lread.c (read1, syms_of_lread): Read hashtables back from the
3388 readable format.
3389
3390 * print.c (print_preprocess, print_object): Print hashtables fully
3391 and readably.
3392 (syms_of_print): Provide 'hashtable-print-readable.
3393
b9173dc2
AR
33942009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3395
3396 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3397 no family set.
3398 (nsfont_open): Handle case when entity has no family.
3399
1586503c
AR
34002009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3401
3402 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3403 element, not a list, for match case.
3404
087048cd
KH
34052009-07-28 Kenichi Handa <handa@m17n.org>
3406
3407 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3408 rigidly.
3409
3410 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3411 font_parse_xlfd. Check font properties more rigidly.
3412
780c2506
DN
34132009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3414
31fd7c5c
JB
3415 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3416 bsd-common.h.
780c2506 3417
a8c0cc18
KH
34182009-07-27 Kenichi Handa <handa@m17n.org>
3419
3420 * xfaces.c (face_with_height): Call font_clear_prop.
3421
4fbe2306
CY
34222009-07-26 Chong Yidong <cyd@stupidchicken.com>
3423
111d9af3
CY
3424 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3425
3426 * xterm.c (x_term_init): Use Qx.
3427
4fbe2306
CY
3428 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3429
1ac9108a 3430 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3431 (ns_get_color): Revert 2009-07-16 change.
3432
beb0b7f9
EZ
34332009-07-25 Eli Zaretskii <eliz@gnu.org>
3434
3435 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3436 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3437
2baf5e76
KR
34382009-07-25 Ken Raeburn <raeburn@raeburn.org>
3439
1ac9108a
SM
3440 * coding.h (decode_coding_string, encode_coding_string):
3441 Use SCHARS macro.
8890e5f5 3442
2baf5e76 3443 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3444 (load_depth): Delete.
2baf5e76
KR
3445 (Qload_in_progress): New variable.
3446 (load_unwind): Don't reference load_depth or load_in_progress.
3447 (Fload): Likewise; specbind Qload_in_progress instead.
3448 (init_lread): Don't initialize load_depth.
3449 (syms_of_lread): Initialize and protect Qload_in_progress.
3450
1395c6f5
AR
34512009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3452
3453 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3454
4e2f36cf
AR
34552009-07-23 Yavor Doganov <yavor@gnu.org>
3456
3457 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3458
5dd9a6f7
AR
34592009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3460
3461 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3462 Bugs 3792, 3720, 2402.
3463 (ns_lookup_indexed_color): Check for bad index.
3464 (ns_index_color): Init unused slot to 0.
3465 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3466 Bug 3714, possibly 3082.
5dd9a6f7 3467
c902b920
JR
34682009-07-22 Jason Rumney <jasonr@gnu.org>
3469
1ac9108a
SM
3470 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3471 Position IME window at cursor (Bug#2570).
c902b920
JR
3472 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3473 (globals_of_w32fns): Dynamically load functions required above.
3474
3475 * w32term.c (w32_draw_window_cursor): Send message to reposition
3476 any IME window.
3477
090101cf
CY
34782009-07-21 Chong Yidong <cyd@stupidchicken.com>
3479
3480 * fileio.c: Revert 2009-07-16 changes.
3481 (Vauto_save_include_big_deletions): New variable.
3482 (Fdo_auto_save): Disable auto-save only if
3483 auto-save-include-big-deletions is nil.
3484
e6583e3d
CY
34852009-07-21 Chong Yidong <cyd@stupidchicken.com>
3486
3487 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3488 the overflowed pixels into account (Bug#3879).
3489
ece435a5
KR
34902009-07-21 Ken Raeburn <raeburn@raeburn.org>
3491
3492 * lread.c (load_depth): New variable.
3493 (Fload, load_unwind, init_lread): Set it to the load recursion
3494 depth; set load_in_progress as a simple boolean based on the
3495 current load_depth. (Bug#3892)
3496
40b2d973
AR
34972009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3498
3499 * nsfont.m (ns_has_attribute): Remove.
3500 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3501
10be7e0d
JL
35022009-07-18 Juri Linkov <juri@jurta.org>
3503
3504 * process.c (Fset_process_query_on_exit_flag): Mention killing
3505 a buffer in docstring.
3506
fa055055
KH
35072009-07-17 Kenichi Handa <handa@m17n.org>
3508
3509 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3510
042f7b69
YM
35112009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3512
3513 * nsfns.m (Fns_set_alpha): Remove function.
3514 (syms_of_nsfns): Don't defsubr it.
3515
3516 * nsterm.m (ns_get_color): Remove incompatible color formats.
3517 (ns_color_to_lisp): Generate #rrggbb color format string.
3518
4be941e3
RS
35192009-07-16 Richard Stallman <rms@gnu.org>
3520
3521 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3522 (Fset_buffer_auto_saved): Handle save_length = -2.
3523
4e6b227d
CY
35242009-07-16 Chong Yidong <cyd@stupidchicken.com>
3525
3526 * xterm.c (Qx_gtk_map_stock): New var.
3527
3528 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3529 of calling intern each time.
3530
a1856973
YM
35312009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3532
3533 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3534 does tiling.
3535
3536 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3537
497e54d8
KH
35382009-07-14 Kenichi Handa <handa@m17n.org>
3539
72d36834
KH
3540 * font.c (font_vconcat_entity_vectors): New function.
3541 (struct font_sort_data): New member font_driver_preference.
3542 (font_compare): Check font_driver_preference.
3543 (font_sort_entities): The format of the first argument changed.
3544 (font_delete_unmatched): Likewise.
3545 (font_list_entities): The return type changed.
3546 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3547 (font_find_for_lface): Adjuste for the above changes.
3548 Don't suppress the checking of C even if the repertory supports it.
3549 (Flist_fonts): Adjust for the above changes.
72d36834 3550
1ac9108a
SM
3551 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3552 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3553 Reject a font who has adstyle property that is different from a
3554 langname derived from registry property.
1ac9108a 3555 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3556
b6046155
EZ
35572009-07-13 Eli Zaretskii <eliz@gnu.org>
3558
3559 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3560 local copy of dirfilename.
3561
fb6b6049
KH
35622009-07-13 Kenichi Handa <handa@m17n.org>
3563
e2402a5e
KH
3564 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3565 against max_char.
3566
fb6b6049
KH
3567 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3568 calling XSYMBOL (sym).
3569
65156807
EZ
35702009-07-11 Eli Zaretskii <eliz@gnu.org>
3571
1ac9108a
SM
3572 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3573 New function.
3574 (directory_files_internal) [WINDOWSNT]:
3575 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3576 the filesystem of the directory is fast or slow.
3577
3578 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3579 file name.
3580 (is_slow_fs): New function.
3581 (stat): Use it to determine whether to issue more system calls to
3582 get accurate file attributes, when w32-get-true-file-attributes is
3583 `local'.
3584
e0ab5fcf
JD
35852009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3586
3587 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3588 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3589 parameter font-parameter as default to the font dialog.
3590
784ceded
KH
35912009-07-10 Kenichi Handa <handa@m17n.org>
3592
3593 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3594
fb8edc0b
EZ
35952009-07-09 Eli Zaretskii <eliz@gnu.org>
3596
1ac9108a 3597 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3598
fb8edc0b
EZ
3599 * w32.c (stat): Treat UNC file names as residing on remote
3600 drives. (Bug#3542)
3601
635c75b1
KH
36022009-07-09 Kenichi Handa <handa@m17n.org>
3603
3604 * fontset.c (fontset_find_font): Fix previous change.
3605
c1d5ce94
MA
36062009-07-08 Michael Albinus <michael.albinus@gmx.de>
3607
3608 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3609 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3610 error flag.
3611
edb61b39
KH
36122009-07-08 Kenichi Handa <handa@m17n.org>
3613
374bf7e4
KH
3614 * fontset.c (fontset_find_font): Fix the logic of handling
3615 charset_matched.
3616 (font_for_char): Delete unused var.
3617 (generate_ascii_font_name): Delete it.
3618
edb61b39
KH
3619 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3620
3621 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3622 (encode_coding_sjis): Fix the code range check.
3623
0f3f018c
CY
36242009-07-07 Chong Yidong <cyd@stupidchicken.com>
3625
3626 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3627 (Fexpand_file_name): Copy string data properly (Bug#3772).
3628
fcaf6f3a
JD
36292009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3630
3631 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3632 first MapNotify.
3633
6809ca75
KH
36342009-07-07 Kenichi Handa <handa@m17n.org>
3635
3636 * character.h (unibyte_has_multibyte_table): Delete extern.
3637 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3638
3639 * charset.c (Fset_charset_priority): Update charset_unibyte.
3640 (syms_of_charset): Initialize charset_unibyte.
3641
3642 * character.c (unibyte_has_multibyte_table): Delete it.
3643 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3644 charset_unibyte.
3645 (multibyte_char_to_unibyte_safe): Likewise.
3646 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3647
1ac9108a 3648 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3649 (x_produce_glyphs): Likewise.
3650
3651 * .gdbinit (xcharset): Fix the treating $arg0.
3652
ad9e2d54
EZ
36532009-07-04 Eli Zaretskii <eliz@gnu.org>
3654
3655 Emulation of `getloadavg' on MS-Windows.
3656 * w32.c: Include float.h
3657 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3658 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3659 (get_native_system_info, get_system_times): New functions.
3660 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3661 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3662 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3663 g_b_init_get_system_times, and num_of_processors.
3664
0a3472c7
JR
36652009-07-03 Jason Rumney <jasonr@gnu.org>
3666
3667 * w32term.c (w32_initialize): Use standard types.
3668
80904120
EZ
36692009-07-03 Eli Zaretskii <eliz@gnu.org>
3670
3671 * dired.c (Ffile_attributes): Decode user and group names by the
3672 locale's encoding. (Bug#3443)
3673
6978862d
DN
36742009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3675
f8d23104
DN
3676 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3677 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3678
3679 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3680
3681 * term.c (init_tty): Remove spurious #ifdef.
3682
6978862d
DN
3683 * m/mips.h: Mention this file is also used for netbsd.
3684 * m/pmax.h: Remove file.
3685
e044e4fc
JD
36862009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3687
3688 * xterm.h (struct x_display_info): Add invisible_cursor.
3689 (struct x_output): Add current_cursor.
3690
3691 * xterm.c (XTtoggle_invisible_pointer): New function.
3692 (x_define_frame_cursor): Don't define cursor if invisible or the
3693 same as before. Set current_cursor.
3694 (x_create_terminal): Set toggle_invisible_pointer_hook.
3695
3696 * xfns.c (make_invisible_cursor): New function.
3697 (x_set_mouse_color): Call make_invisible_cursor.
3698 Set current_cursor.
3699 (x_window): Set current_cursor.
3700
3701 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3702
3703 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3704 inserting a character.
3705 (read_avail_input): Call frame_make_pointer_visible.
3706
3707 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3708 (frame_make_pointer_invisible, frame_make_pointer_visible):
3709 New functions.
e044e4fc
JD
3710 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3711
3712 * frame.h: Declare frame_make_pointer_invisible and
3713 frame_make_pointer_visible.
3714 (struct frame): Add pointer_invisible.
3715
574c8efa
JD
37162009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3717
7b507248
JD
3718 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3719 frame isn't visible.
3720 (xg_frame_resized): If width/height is -1, get size of window
3721 from X server.
3722
3723 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3724 for MapNotify.
3725
835bdaa7 3726 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3727 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3728 (flush_and_sync): Reintroduce.
574c8efa 3729
3f1c6666 37302009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3731
31fd7c5c 3732 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3733
3734 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3735 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3736
3737 * frame.h: Declare Qsticky.
3738
cad9ef74
JD
3739 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3740
3741 * nsfns.m (ns_frame_parm_handlers): Ditto.
3742
3743 * frame.c: Declare Qsticky.
3744 (frame_parms): Add sticky.
3745
3746 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3747
3748 * xterm.h: Declare x_set_sticky.
3749
3750 * xterm.c (x_set_sticky): New function.
3751
69b16610
JD
3752 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3753 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3754 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3755
3756 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3757
3758 * frame.c: Qmaximized is new.
3759 (x_set_frame_parameters): Do not handle fullscreen specially.
3760 Only set width and height if explicitly set.
3761 (x_set_fullscreen): Handle Qmaximized.
3762 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3763 (syms_of_frame): Initialize Qmaximized.
3764
1ac9108a
SM
3765 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3766 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3767
3768 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3769 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3770 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3771 set gravity to NorthWestGravity when USE_GTK.
3772 (set_wm_state): New function.
31fd7c5c 3773 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3774 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3775 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3776 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3777 to x_real_positions and x_fullscreen_adjust.
3778
3779 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3780 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3781 flush_and_sync.
3782 (xg_height_changed): New function.
3783 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3784 and gtk_window_set_policy. Set frame gravity after parsing the
3785 geometry string.
3f1c6666
JD
3786 (xg_update_frame_menubar, free_frame_menubar)
3787 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3788 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3789 Remove calls to xg_frame_set_char_size.
3790
fd503d99
KH
37912009-07-01 Kenichi Handa <handa@m17n.org>
3792
3793 * keyboard.c (decode_keyboard_code): New function.
3794 (tty_read_avail_input): Decode the input bytes if necessary.
3795
1ac9108a
SM
3796 * coding.c (setup_coding_system):
3797 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3798 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3799 use Qno_conversion.
3800
24ed93fb
YM
38012009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3802
3803 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3804
99061dfc
CY
38052009-06-30 Chong Yidong <cyd@stupidchicken.com>
3806
1ac9108a 3807 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3808
ff90fbde
JR
38092009-06-30 Jason Rumney <jasonr@gnu.org>
3810
3811 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3812 is already loaded.
3813 Set user model ID if supported (bug#1849).
3814
5f445726
JM
38152009-06-29 Jim Meyering <meyering@redhat.com>
3816
3817 Remove useless if-before-xfree test.
3818 * nsfont.m (nsfont_close): Remove useless test.
3819 * term.c (delete_tty): Likewise.
3820 * w32.c (system_process_attributes): Likewise.
3821 * w32font.c (w32font_close): Likewise.
3822 * xfaces.c (x_free_gc): Likewise.
3823 * xselect.c (buffer): Likewise.
3824
b9607587
AS
38252009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3826
3827 * process.c (send_process): Keep decoded string in a local
3828 variable and protect it from GC. (Bug#3521)
3829
89ba96f4
EZ
38302009-06-28 Eli Zaretskii <eliz@gnu.org>
3831
3832 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3833 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3834
098a1589
CY
38352009-06-28 Chong Yidong <cyd@stupidchicken.com>
3836
485422be
CY
3837 * xdisp.c (start_display, handle_face_prop)
3838 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3839 (redisplay_window, try_window_id, produce_image_glyph):
3840 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3841
098a1589
CY
3842 * xterm.c (x_update_window_begin, x_new_focus_frame)
3843 (x_scroll_bar_handle_click, handle_one_xevent)
3844 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3845 (x_make_frame_visible, x_make_frame_invisible)
3846 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3847 code chunks that are now obsolete.
3848
78c38319
MA
38492009-06-28 Michael Albinus <michael.albinus@gmx.de>
3850
3851 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3852 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3853 for hours, when optimzation is enabled.
3854 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3855 (xd_read_message): Make them static.
3856
4189ed40
CY
38572009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3858
3859 * term.c (turn_on_face): Allow simultaneously bold and dim
3860 terminal faces (Bug#3530).
3861
cd9b5e16
CY
38622009-06-27 Chong Yidong <cyd@stupidchicken.com>
3863
4e23bedb
CY
3864 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3865
cd9b5e16
CY
3866 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3867 truncation glyphs (Bug#3686).
3868
07cc3c35
GM
38692009-06-27 Glenn Morris <rgm@gnu.org>
3870
3871 * m/pmax.h: Restore file, with only netbsd portions.
3872
31fd7c5c 38732009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3874
cd9b5e16 3875 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3876
42d4a64f
KH
38772009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3878
3879 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3880 the arg FORCE_SYMBOL.
3881
930fe55b 38822009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3883
3884 * fontset.c (fontset_find_font): When a usable rfont_def is found
3885 in a fallback font-group, make it the first element of the group.
3886
57ebc3fd
CY
38872009-06-24 Chong Yidong <cyd@stupidchicken.com>
3888
3889 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3890
f084f942
KH
38912009-06-24 Kenichi Handa <handa@m17n.org>
3892
3893 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3894 set for C.
3895 (fontset_font): Record the availability of a font for C both in
3896 the realized fontsets of the current one and the default one.
3897
2f686c87
DN
38982009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3899
3900 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3901 conditional, it is always defined on AIX.
3902
666e158e
MB
39032009-06-23 Miles Bader <miles@gnu.org>
3904
3905 * window.c (Vrecenter_redisplay): New variable.
3906 (syms_of_window): Initialize it.
3907 (Qtty): New extern declaration.
3908 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3909
c6da7cd2
JM
39102009-06-23 Jim Meyering <meyering@redhat.com>
3911
1ac9108a
SM
3912 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3913 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3914 pointer dereferences are guaranteed to be valid.
c6da7cd2 3915
678dca3d
KH
39162009-06-23 Kenichi Handa <handa@m17n.org>
3917
74d75424
KH
3918 * emacs.c (main): Call init_font ().
3919
3920 * font.h (Vfont_log): Extern it.
3921 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3922
3923 * font.c (font_sort_entities, font_list_entities)
3924 (font_matching_entity, font_open_entity)
3925 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3926 (Vfont_log): Delete static.
3927 (font_log_env_checked): Delete this variable.
3928 (font_add_log): Don't check font_log_env_checked.
3929 (font_deferred_log): Check Vfont_log.
3930 (init_font): New function.
3931
678dca3d
KH
3932 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3933
3934 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3935
3936 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3937
3938 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3939
3940 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3941 (face_for_char): Don't call font_deferred_log here.
3942 (font_for_char): Likewise.
3943
8a668709
CY
39442009-06-22 Chong Yidong <cyd@stupidchicken.com>
3945
9a01ee33
CY
3946 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3947 rather than its background_width for drawing the overline and
3948 underline (Bug#489).
3949
3950 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3951 rather than its background_width for drawing the overline and
3952 underline (Bug#489).
ec7c9926
CY
3953 (xg_default_icon_file): New variable.
3954 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3955 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3956
8a668709
CY
3957 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3958 (load_overlay_strings): Remove externs.
3959 (fast_find_position): Function deleted.
3960 (mouse_face_from_buffer_pos): New function, based on
3961 fast_find_position. Correctly handle before-strings,
3962 display-strings, and after-strings (Bug#1220).
3963 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3964
4d4c02d8
CY
39652009-06-21 Chong Yidong <cyd@stupidchicken.com>
3966
1ac9108a 3967 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3968 (move_it_in_display_line_to, move_it_in_display_line_to)
3969 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3970
70243478
CY
39712009-06-21 Chong Yidong <cyd@stupidchicken.com>
3972
3973 * Branch for 23.1.
3974
13087e59
JR
39752009-06-21 Jason Rumney <jasonr@gnu.org>
3976
3977 * w32term.c (keyboard_codepage): New static variable.
3978 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3979 (w32_read_socket) [WM_CHAR]: Use it to decode character
3980 input (bug#3237).
3981 (w32_initialize): Initialize it.
3982 (codepage_for_locale): New function.
3983
4735b74e
KR
39842009-06-20 Ken Raeburn <raeburn@raeburn.org>
3985
3986 * process.c (status_message): Pass Faset index argument as a lisp
3987 object, so as to work with USE_LISP_UNION_TYPE.
3988
0e727afa
YM
39892009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3990
3991 * coding.c (Ffind_coding_systems_region_internal):
3992 Cache checked characters.
3993
cf299835
KH
39942009-06-18 Kenichi Handa <handa@m17n.org>
3995
1ac9108a 3996 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3997
90f20d94
AS
39982009-06-18 Andreas Schwab <aschwab@redhat.com>
3999
4000 * xdisp.c (redisplay_internal): Check that the frame is still
4001 live after redisplay of its windows.
4002 (redisplay_windows): Check that the window is still live.
4003
7f1faf1c
KH
40042009-06-17 Andreas Schwab <schwab@linux-m68k.org>
4005
4006 * coding.c (detect_coding_utf_16): Fix previous change.
4007
cc13543e
KH
40082009-06-16 Kenichi Handa <handa@m17n.org>
4009
4010 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
4011 UTF-16 by checking the dispersion of Eth and Oth bytes.
4012
977b85f4
AS
40132009-06-15 Andreas Schwab <schwab@linux-m68k.org>
4014
4015 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
4016
66bd43d1
KH
40172009-06-15 Kenichi Handa <handa@m17n.org>
4018
4019 * process.c (status_message): Fix previous change. Be sure to
4020 decode a localized string.
4021
cb5ca9c5
YM
40222009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4023
4024 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
4025 add comment explaining why.
4026
ec7709ba 40272009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 4028
ec7709ba 4029 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 4030
4b7f335c
AR
40312009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
4032
4033 * nsfont.m (ns_attribute_value): Remove.
4034 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
4035 (ns_has_attribute): Shrink the normal range.
4036 (ns_findfonts): Don't worry about requested spec in determining
4037 need for synthItal.
e41820ee 4038 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 4039
73b26103
SZ
40402009-06-14 Seiji Zenitani <zenitani@mac.com>
4041
4042 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
4043
5753e4da
KH
40442009-06-11 Kenichi Handa <handa@m17n.org>
4045
4046 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4047 overhang for the static composition case.
4048
3561b671
KH
40492009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4050
5753e4da
KH
4051 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
4052 overhang for the automatic composition case.
4053
3561b671
KH
4054 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
4055 composition case.
4056
852bbd41
CY
40572009-06-10 Chong Yidong <cyd@stupidchicken.com>
4058
4059 * xdisp.c (get_next_display_element): When handling wrap-prefix
4060 and line-prefix, treat \n as a control character (bug#3502).
4061
9903d1e6
KH
40622009-06-10 Kenichi Handa <handa@m17n.org>
4063
4064 * font.c (font_parse_family_registry): Fix for one-char foundry.
4065 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
4066
0bcbaaaa
CY
40672009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
4068
4069 * process.c (status_message): Fix handling of multibyte signal
4070 string (Bug#3499).
4071
40aa3f13
JM
40722009-06-09 Jim Meyering <meyering@redhat.com>
4073
1f80c7e2
CY
4074 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
4075 color name is missing.
40aa3f13 4076
72d51285
KH
40772009-06-09 Kenichi Handa <handa@m17n.org>
4078
4079 * charset.c (Fmap_charset_chars): In docstring, state clearly that
4080 FROM-CODE and TO-CODE are codepoints of CHARSET.
4081
c1d04d84
AR
40822009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4083
4084 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
4085
40862009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
4087
4088 Changes to support :script/:lang/:otf in NS font driver.
4089 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
4090 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
4091 indicate not part of font driver interface, and change callers.
4092 (ns_get_family): Remove pointless null check.
4093 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
4094 ns_spec_to_descriptor, ns_descriptor_to_entity.
4095 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
4096 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
4097 (ns_spec_to_descriptor, ns_descriptor_to_entity)
4098 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
4099 (ns_get_req_script, ns_accumulate_script_ranges)
4100 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
4101 New functions.
4102 (nsfont_list, nsfont_match): Use ns_findfonts.
4103 (nsfont_open): Use font descriptor instead of traits.
4104 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
4105 (dump_glyphstring): Rename to ns_dump_glyphstring.
4106
c7eb9816
AR
4107 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
4108
c1d04d84
AR
4109 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
4110
4111 * fontset.c (fontset_from_font): Remove NS-specific code.
4112
ec7709ba 41132009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
4114
4115 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
4116 nonactive windows.
4117
31fd7c5c 41182009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 4119
1ac9108a 4120 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 4121
68852c13 41222009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
4123
4124 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
4125
6756cd1d
CY
41262009-06-07 Chong Yidong <cyd@stupidchicken.com>
4127
4128 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
4129 account for the overflowing of newlines into the last glyph on the
4130 display line (Bug#3482).
4131
28bf482a
DR
41322009-06-05 David Reitter <david.reitter@gmail.com>
4133
ec7709ba
JB
4134 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4135 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4136 Fns_selection_exists_p, Fns_selection_owner_p.
4137
fdb55376
JR
41382009-06-03 Jason Rumney <jasonr@gnu.org>
4139
4140 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4141 available. (Bug#3379)
4142
05129fbe
KH
41432009-05-29 Kenichi Handa <handa@m17n.org>
4144
1ac9108a
SM
4145 * coding.c (get_translation_table):
4146 Check Venable_character_translation.
05129fbe 4147
ec7709ba 41482009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4149
ec7709ba
JB
4150 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4151 (x_make_frame_visible): Move frame to front rather than calling
15891144 4152 ns_raise_frame().
ec7709ba 4153 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4154 isn't key window.
ec7709ba 4155 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4156 drawRect may be called by NSView even if the frame is hidden.
4157
ec7709ba
JB
4158 * nsfns.m (Fx_create_frame): Follow other ports in
4159 determining visibility; default to t. Ensure async_visible is set.
15891144 4160
21f73755
EZ
41612009-05-23 Eli Zaretskii <eliz@gnu.org>
4162
4163 * dired.c (Ffile_attributes): Doc fix.
4164
34001e41
CY
41652009-05-22 Chong Yidong <cyd@stupidchicken.com>
4166
4167 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4168
46306a17
SM
41692009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4170
4171 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4172 and xfont_scratch_props.
4173 (syms_of_xfont): Do it here instead.
4174 (xfont_find_ccl_program): Delete, unused.
4175 (xfont_open): Delete unused var `i'.
4176
ef6e0694
KH
41772009-05-21 Kenichi Handa <handa@m17n.org>
4178
4179 * fontset.c (Qlatin): Don't make it static.
4180
46306a17
SM
4181 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4182 New functions.
ef6e0694
KH
4183 (xfont_scripts_cache, xfont_scratch_props): New variables.
4184 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4185 (xfont_list_pattern): Argument changed. Callers changed.
4186 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4187 (xfont_list): Don't reject a font spec with :script property.
4188 (xfont_has_char): Fix setting of encoding.
4189 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4190 xfont_scratch_props.
4191
41922009-05-19 Kenichi Handa <handa@m17n.org>
4193
46306a17 4194 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4195 Callers changed.
4196
41972009-05-18 Kenichi Handa <handa@m17n.org>
4198
4199 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4200
ac71ced7
SM
42012009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4202
4203 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4204 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4205
1c6d1051
YM
42062009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4207
4208 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4209 (x_delete_terminal): Dissociate resource database from display and
4210 then call XrmDestroyDatabase before closing display.
4211
9b9b779c
AR
42122009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4213
4214 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4215 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4216 whether selected frame is viable before raising it (based on patch
4217 by David Reitter), and improve commentary.
4218 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4219
cccd42d5
KH
42202009-05-15 Kenichi Handa <handa@m17n.org>
4221
4222 * font.c (Ffont_spec): Check arguments.
4223
337fbd17
CY
42242009-05-14 Chong Yidong <cyd@stupidchicken.com>
4225
4226 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4227 weight when testing attributes (Bug#3282).
4228
47a6002f
JD
42292009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4230
4231 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4232 what we expect to get in the next ConfigureNotify event.
4233
9cb363db
YM
4234 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4235 before Xft one (Bug#1696).
4236
b9126609
CY
42372009-05-07 David Reitter <david.reitter@gmail.com>
4238
4239 * nsfns.m (Fx_display_planes): Compute bitplanes using
4240 NSBitsPerPixelFromDepth (Bug#3207).
4241
27a69fd9
CY
42422009-05-10 Chong Yidong <cyd@stupidchicken.com>
4243
4244 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4245
00f37552
TTN
42462009-05-10 Ulrich Mueller <ulm@gentoo.org>
4247
4248 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4249
2d82a920
DR
42502009-05-07 David Reitter <david.reitter@gmail.com>
4251
ec7709ba
JB
4252 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4253 Respect mouse face background.
2d82a920 4254
46b0d52d
DR
42552009-05-07 David Reitter <david.reitter@gmail.com>
4256
ec7709ba
JB
4257 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4258 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4259 in ns_update_begin and ns_update_end.
4260
ce1b23bb
SM
42612009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4262
5996e1b7
SM
4263 * nsfns.m (ns_get_screen): Rewrite.
4264 Don't presume selected-frame is of type `ns'.
4265
ba98e3a0
SM
4266 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4267 all drivers.
4268
ce1b23bb
SM
4269 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4270
bcda200f
YM
42712009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4272
4273 * keyboard.h (add_user_signal): Fix typo in extern.
4274
4275 * lisp.h (add_user_signal): Remove extern.
4276
4277 * unexelf.c (unexec): Consider a section to precede the .bss section
4278 if its addresses overlap that of .bss.
4279 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4280 instead of dumping process.
4281
864660a2
SM
42822009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4283
4284 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4285
50da4e56
SM
42862009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4287
4288 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4289
51520a1a
DN
42902009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4291
4292 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4293 any statements.
4294
409ea3a1
AS
42952009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4296
59c4c60f
AS
4297 * process.c (read_process_output): Make sure the current buffer is
4298 always restored.
4299
409ea3a1
AS
4300 * coding.c (record_conversion_result): Don't modify
4301 Vlast_code_conversion_error for successful result.
4302 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4303
56f00ed2
KH
43042009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4305
4306 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4307 (load_charset_map): Remove unnecessary code.
56f00ed2 4308
4491c9d2
DR
43092009-04-30 David Reitter <david.reitter@gmail.com>
4310
35f5b128 4311 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4312 through f24.
4313
6970f632
CY
43142009-04-30 Chong Yidong <cyd@stupidchicken.com>
4315
4316 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4317
4318 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4319 face_at_buffer_position.
4320 (face_before_or_after_it_pos, get_next_display_element)
4321 (note_mouse_highlight): Update face_at_buffer_position call.
4322
4323 * term.c (term_mouse_highlight):
4324 * msdos.c (IT_note_mouse_highlight):
4325 * fontset.c (Finternal_char_font):
35f5b128 4326 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4327
4328 * dispextern.h (face_at_buffer_position): Update prototype.
4329
0c616f63
KH
43302009-04-30 Kenichi Handa <handa@m17n.org>
4331
35f5b128 4332 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4333
ad3aaf33
AS
43342009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4335
4336 * callproc.c (Fcall_process): Fix GC protection. Make sure
4337 current buffer is always restored.
4338
c3c963a0
YM
43392009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4340
4341 * atimer.c (init_atimer): Also clear stopped_atimers.
4342
4343 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4344
7e3386cb
YM
4345 * process.c (create_process): Clean up merger residues of
4346 2008-07-17 change.
4347
91f68422
CY
43482009-04-29 Ulrich Mueller <ulm@gentoo.org>
4349
4350 * lread.c (Vread_circle): New variable.
4351 (read1): Disable recursive read if Vread_circle is nil.
4352
24b34550
KH
43532009-04-29 Kenichi Handa <handa@m17n.org>
4354
4355 * fontset.h (set_default_ascii_font): Delete extern.
4356
4357 * fontset.c (set_default_ascii_font): Delete this unused function.
4358
4359 * frame.c (x_set_font): When ARG is a font-object, check if the
4360 font-object matches with the ASCII font-spec of the frame's
9c358bda 4361 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4362
77bf07e1
AS
43632009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4364
4365 * fns.c (Flocale_info): Protect vector from GC during decoding.
4366
4367 * process.c (Fstart_process): Protect argv strings from GC during
4368 encoding.
4369
2c55aacf
AS
43702009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4371
4372 * sysdep.c: Include <ctype.h>.
4373
b892d3c9
DR
43742009-04-27 David Reitter <david.reitter@gmail.com>
4375
35f5b128 4376 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4377 Remove commented-out code.
4378
9d0644c4
JB
43792009-04-26 Johan Bockgård <bojohan@gnu.org>
4380
4381 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4382
b7053016
JR
43832009-04-25 Jason Rumney <jasonr@gnu.org>
4384
4385 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4386
4e8231f3
YM
43872009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4388
4389 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4390 Swap bytes in short integer if fringe bitmap width > 8.
4391
493dcf2c
KH
43922009-04-23 Kenichi Handa <handa@m17n.org>
4393
4394 * xfaces.c (Fx_list_fonts): If a font size is specified in
4395 PATTERN, set it in returned scalable fonts.
4396
401e9e57
CY
43972009-04-22 Chong Yidong <cyd@stupidchicken.com>
4398
708e05dc
CY
4399 * keyboard.c (Fset_input_meta_mode): Doc fix.
4400
4401 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4402
1ac9108a 4403 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4404
4405 * coding.c (Fterminal_coding_system): Doc fix.
4406
4407 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4408 (Fx_display_pixel_height, Fx_display_planes)
4409 (Fx_display_color_cells, Fx_server_max_request_size)
4410 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4411 (Fx_display_mm_height, Fx_display_mm_width)
4412 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4413 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4414 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4415 (check_x_display_info): Handle terminal objects instead of
4416 terminal ids.
4417
401e9e57
CY
4418 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4419 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4420 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4421 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4422
df80c7f0
KH
44232009-04-21 Kenichi Handa <handa@m17n.org>
4424
5a8f12af 4425 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4426 (font_score): Check AVGWIDTH too.
908567ef 4427
df80c7f0
KH
4428 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4429 worst case.
1ac9108a
SM
4430 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4431 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4432
705af33f
JR
44332009-04-19 Jason Rumney <jasonr@gnu.org>
4434
4435 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4436 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4437
4438 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4439 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4440 get_phys_cursor_geometry.
4441
b71ac3dd 4442 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4443 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4444 using get_phys_cursor_geometry.
4445
4446 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4447 correctly calculated.
4448
dc2933eb
JD
44492009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4450
1ac9108a
SM
4451 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4452 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4453 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4454 is deprecated.
4455
973e7849
AS
44562009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4457
4458 * font.c (font_put_frame_data): Use xfree instead of free.
4459
314d66f4
JB
44602009-04-17 Juanma Barranquero <lekktu@gmail.com>
4461
4462 * w32font.c (Qja, Qko): Remove declarations.
4463 (syms_of_w32font): Don't DEFSYM them.
4464
cf702558
CY
44652009-04-17 Chong Yidong <cyd@stupidchicken.com>
4466
4467 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4468
4469 * font.h (Qja, Qko): Extern them.
4470
4471 * ftfont.c (Qja, Qko): Remove declarations.
4472
4473 * xfont.c (Qja, Qko): Remove declarations.
4474
b50504f5
KH
44752009-04-17 Kenichi Handa <handa@m17n.org>
4476
bde25748
KH
4477 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4478 string from a vector to handle Latin-1 characters correctly.
4479
b50504f5
KH
4480 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4481 entity even if the cache hits.
4482
f4646fff
AS
44832009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4484
4485 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4486 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4487
e7deaab0
AS
4488 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4489 * lisp.h: Adjust prototypes.
4490
0a0e7d49
CY
44912009-04-16 Chong Yidong <cyd@stupidchicken.com>
4492
4493 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4494 change (Bug#3003).
4495
3c908a57
KH
44962009-04-16 Kenichi Handa <handa@m17n.org>
4497
1ac9108a 4498 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4499
4500 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4501 adstyle.
4502
4503 * ftfont.c (Qja, Qko): Don't make them static.
4504 (enum ftfont_cache_for): New enum.
4505 (fc_charset_table): Undo the previous change.
4506 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4507 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4508 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4509 non-scarable font, try to get AVERAGE_WIDTH.
4510 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4511 Change ft_face_cache from a list of a hash-table. Don't check
4512 `ja' and `ko' adstyle here.
4513 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4514 FTFONT_CACHE_FOR_CHARET.
4515 (ftfont_get_charset): Undo the previous change.
1ac9108a 4516 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4517 (ftfont_close): Likewise.
4518 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4519
4520 * font.c (font_sort_entites): Change the meaning of the arg
4521 BEST-ONLY. Don't optimize for VEC of lenght 1.
4522 (font_select_entity): Just return the value of font_sort_entites.
4523
4524 * xfaces.c (merge_face_vectors): Reflect font properties in
4525 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4526 font_clear_prop if a face attribute doesn't change.
4527
3c908a57
KH
4528 * charset.h (charset_ksc5601): Extern it.
4529
4530 * charset.c (charset_ksc5601): New variable.
4531 (Fdefine_charset_internal): Set charset_ksc5601.
4532 (init_charset_once): Initialize charset_ksc5601 to -1.
4533
d65859c3
DN
45342009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4535
4536 * fileio.c (history_delete_duplicates): Remove unused declaration.
4537
4538 * callint.c (history_delete_duplicates): New declaration.
4539 (Fcall_interactively): Remove command history duplicates when
4540 history_delete_duplicates is true.
4541
3ba010e5
EZ
45422009-04-14 Eli Zaretskii <eliz@gnu.org>
4543
4544 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4545
06f19b91
KH
45462009-04-14 Kenichi Handa <handa@m17n.org>
4547
4548 * font.c (Ffont_info): Fix docstring. Fix the second element of
4549 the returned value (bug#2949).
4550
2cce8bfc
CY
45512009-04-14 Chong Yidong <cyd@stupidchicken.com>
4552
4553 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4554
d156542d
KH
45552009-04-14 Kenichi Handa <handa@m17n.org>
4556
4557 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4558 encoding charset is ascii_compatible.
4559
4560 * charset.c (Fdefine_charset_internal): Make charset
4561 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4562 code_offset is 0, and covers all ASCII characters.
4563
86fa089e
SM
45642009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4565
4566 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4567 (ns_string_to_pasteboard_internal):
4568 * nsmenu.m (process_dialog):
4569 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4570 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4571 * lisp.h (Fx_load_color_file): Declare.
4572
a8a3728b
KH
45732009-04-13 Kenichi Handa <handa@m17n.org>
4574
1ac9108a 4575 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4576 (font_select_entity): Suppress the code to optimize for the same
4577 kind of fonts.
4578 (font_load_for_lface): Get a font that supports at least ASCII
4579 characters.
4580
4581 * ftfont.c (Qja, Qko): New variables.
4582 (fc_charset_table): Delete uniquifier data for iso8859-1.
4583 (ftfont_get_latin1_charset): New function.
4584 (get_adstyle_property): New function.
4585 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4586 bitmap fonts.
4587 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4588 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4589 `ko' or `ja'.
4590 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4591 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4592 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4593 property.
4594 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4595 (syms_of_ftfont): DEFSYM Qja and Qko.
4596
483670b5
KH
45972009-04-09 Kenichi Handa <handa@m17n.org>
4598
12b55765
KH
4599 * charset.c (map_charset_chars): For a charset of `superset'
4600 method, fix calculation of code range.
4601
483670b5
KH
4602 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4603 from the list of extra properties.
4604 (font_clear_prop): Be sure to delete `:name' font property.
4605
57d3b93b
KH
46062009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4607
b4b2c2ca
YM
4608 * dispnew.c (redraw_overlapping_rows): Fix detection of
4609 overlapping for topmost and bottommost rows.
4610
1ac9108a 4611 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4612
472c3609
JR
46132009-04-06 Jason Rumney <jasonr@gnu.org>
4614
4615 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4616
ab193662
KH
46172009-04-06 Kenichi Handa <handa@m17n.org>
4618
4619 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4620
4621 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4622
0c26f026
KH
46232009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4624
4625 * ftfont.c (ftfont_open): Fix checking of the return value of
4626 FT_Load_Char. Fix setting font->underline_thickness.
4627
e173bbce
CY
46282009-04-04 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4631 (Fterminal_parameters, Fterminal_parameter)
4632 (Fset_terminal_parameter): In doc string, refer to terminal
4633 objects rather than terminal ids.
4634
693a2698
EZ
46352009-04-04 Eli Zaretskii <eliz@gnu.org>
4636
4637 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4638 ret_lim_data. (Bug#2867)
4639
d5221487
CY
46402009-04-03 Chong Yidong <cyd@stupidchicken.com>
4641
4642 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4643 so they don't get wider than the window, matching 2006-01-23
4644 change to the partner function in xdisp.c (Bug#2800).
4645
223509a3
KH
46462009-04-03 Kenichi Handa <handa@m17n.org>
4647
4648 * print.c (print_object): Make each lowest sub_char_table start a
4649 new line (Bug#2866).
4650
74fcd0b1
KH
46512009-04-02 Kenichi Handa <handa@m17n.org>
4652
4653 * fontset.c (fontset_font): Record no-font when a fontset
4654 explicitly tells not to try another font-specs.
4655
c542407d
SM
46562009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4657
4658 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4659
e3869731
KH
46602009-03-30 Kenichi Handa <handa@m17n.org>
4661
d8d2f142
KH
4662 * fontset.c (fontset_from_font): Specify only registry in a
4663 font-spec for all characters supported by that registry.
4664
e3869731
KH
4665 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4666 even if HAVE_M17N_FLT is not defined.
4667
5da5f805
CY
46682009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4669
4670 * ftfont.c: Conditionalize prototyping and use of
4671 ftfont_variation_glyphs.
4672
ab226c50
SM
46732009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4674
9628fed7
SM
4675 * frame.c (delete_frame): Work around compiler bug.
4676
4677 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4678 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4679 Some more EMACS_INT.
4680 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4681
4682 * xdisp.c (dump_glyph): Fix typo.
4683
ae19ba7c
SM
4684 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4685 (adjust_markers_gap_motion, adjust_markers_for_delete)
4686 (adjust_markers_for_insert, adjust_point)
4687 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4688 (make_gap, copy_text, count_size_as_multibyte, insert)
4689 (insert_and_inherit, insert_before_markers)
4690 (insert_before_markers_and_inherit, insert_1)
4691 (count_combining_before, count_combining_after, insert_1_both)
4692 (insert_from_string, insert_from_string_before_markers)
4693 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4694 (insert_from_buffer_1, adjust_after_replace)
4695 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4696 (replace_range_2, del_range, del_range_1, del_range_byte)
4697 (del_range_both, del_range_2, modify_region)
4698 (prepare_to_modify_buffer, signal_before_change)
4699 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4700 for buffer positions and sizes.
4701 * lisp.h: Adjust prototypes accordingly.
4702
4703 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4704 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4705 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4706
ab226c50
SM
4707 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4708
46dfb8fb
JD
47092009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4710
4711 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4712 lines and columns so we keep the same pixel height and width.
4713
4714 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4715 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4716 (x_handle_net_wm_state): New function to update frame parameter
4717 fullscreen.
4718 (x_term_init): Initialize atoms for _NET_WM_STATE.
4719
4720 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4721
d347e494
SM
47222009-03-27 Kevin Ryde <user42@zip.com.au>
4723
4724 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4725 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4726 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4727 (Fgpm_mouse_stop): Pass that new parameter.
4728 * termhooks.h (close_gpm): Adjust prototype.
4729
84db11d6
SM
47302009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4731
c95a5008
SM
4732 * lisp.h (Fx_focus_frame): Declare.
4733
84db11d6
SM
4734 * callint.c (Fcall_interactively): For '^' just delegate the work to
4735 handle-shift-selection.
4736 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4737
0a1958d6
CY
47382009-03-24 Chong Yidong <cyd@stupidchicken.com>
4739
0bfdff23
CY
4740 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4741
0a1958d6
CY
4742 * data.c (Qinteractive_form): New variable.
4743 (Finteractive_form): Use it.
4744
4745 * eval.c (Fcommandp): Use Qinteractive_form.
4746
58aec0d6
JR
47472009-03-24 Jason Rumney <jasonr@gnu.org>
4748
4749 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4750 Calculate total size precisely. Decode environment variables
4751 before substituting. (Bug#38)
4752
553dd618
KH
47532009-03-24 Kenichi Handa <handa@m17n.org>
4754
4755 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4756 encoding (Bug#2722).
553dd618 4757
c39ea606
JD
47582009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4759
4760 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4761 that gdpy is set.
4762
bc9b2b5e
AM
47632009-03-22 Alan Mackenzie <acm@muc.de>
4764
4765 * callint.c (Finteractive): Clarify the doc string - even
4766 promptless elements need \n separators.
4767
9f995a76
JR
47682009-03-22 Jason Rumney <jasonr@gnu.org>
4769
4770 * w32term.c (syms_of_w32term): Doc fix for
4771 x-use-underline-position-properties.
4772
22749e9a
EZ
47732009-03-21 Eli Zaretskii <eliz@gnu.org>
4774
4775 * w32.c (getpwuid): Change argument type to unsigned.
4776 (struct w32_id): Change type of `rid' member to unsigned.
4777 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4778 argument ID to unsigned. All callers changed.
4779 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4780
e00553bf
EZ
47812009-03-20 Eli Zaretskii <eliz@gnu.org>
4782
4783 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4784 negative, produce a float value.
4785
4786 * dired.c (make_uid, make_gid): New functions.
4787 (Ffile_attributes): Use them to avoid negative UID and GID.
4788
f761d6b6
JB
47892009-03-20 Juanma Barranquero <lekktu@gmail.com>
4790
4791 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4792 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4793 Fix typos in docstrings.
4794
d507f8d7
KH
47952009-03-19 Kenichi Handa <handa@m17n.org>
4796
4797 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4798 changed, use font_load_for_lface to get a new font object.
4799 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4800
4801 * frame.c (x_set_font): Handle the case that ARG is a cons.
4802
c68845e0
GM
48032009-03-19 Glenn Morris <rgm@gnu.org>
4804
4805 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4806
bfa49dd1
CY
48072009-03-19 Chong Yidong <cyd@stupidchicken.com>
4808
4809 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4810
8458d4c1
KH
48112009-03-19 Kenichi Handa <handa@m17n.org>
4812
4813 * charset.c (load_charset_map_from_file): When a mapfile can't be
4814 loaded, signal an error.
4815
78e7d1fe
EZ
48162009-03-18 Eli Zaretskii <eliz@gnu.org>
4817
4818 * dired.c (Ffile_attributes): Make sure UID and GID are always
4819 positive, even if the value is too large for a positive EMACS_INT.
4820 Doc fix.
4821
4822 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4823
5da9fdfa
YM
48242009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4825
4826 * xmenu.c (xdialog_show): Move Fredisplay call ...
4827 (Fx_popup_dialog): ... here.
4828
7519c40d
SM
48292009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4830
4831 * dired.c (file_name_completion): Disable the first optimization just
4832 installed, since it is not implemented correctly.
4833
2cd298e2
SM
48342009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4835
4836 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4837 only if the entry can affect bestmatch.
2cd298e2
SM
4838 Stop the search early, as Ftry_completion already does.
4839
48d37adf
CY
48402009-03-17 Chong Yidong <cyd@stupidchicken.com>
4841
e10c9c93 4842 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4843
9286b16a
CY
48442009-03-15 Chong Yidong <cyd@stupidchicken.com>
4845
4846 * keyboard.c (parse_menu_item): Don't display remappings as menu
4847 equivalent bindings (Bug#788).
4848
f7b146dc
JR
48492009-03-15 Jason Rumney <jasonr@gnu.org>
4850
4851 * w32term.h (WM_EMACS_PAINT): New message.
4852 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4853 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4854 before passing to lisp thread. (Bug#950)
4855
f761d6b6 48562009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4857
d93f9575
CY
4858 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4859 variable as it was never reset.
4860 (ns_term_init): Remove initialization of Lisp-settable defaults
4861 and ns_expand_space.
4862 (-setPanelFromDefaultValues): Remove ns_expand_space.
4863 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4864 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4865 i.e. no additional spacing, similar to Carbon port.
4866
d93f9575
CY
4867 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4868 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4869
305018ec
JD
48702009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4871
4872 * sound.c (alsa_configure): Remove call to deprecated
4873 snd_pcm_sw_params_set_xfer_align.
4874
f761d6b6 48752009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4876
4877 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4878 after clicking in a detached tool bar.
4879 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4880
46e722a9
SM
48812009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4882
348db3dd
SM
4883 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4884 int/Lisp_Object mixup).
46e722a9 4885
a3d16f39
KH
48862009-03-13 Kenichi Handa <handa@m17n.org>
4887
4888 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4889 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4890 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4891 (set_fontset_font): Change ARG to a vector. Handle range_list in
4892 ARG correctly.
4893 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4894 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4895 the above change.
4896 (fontset_from_font): Fix previous change.
fe24f56a 4897 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4898 entry. If FONTSET is the default fontset, don't set the extra
4899 slot of the returning char-table.
4900
b066e6b6
JB
49012009-03-12 Juanma Barranquero <lekktu@gmail.com>
4902
4903 * nsfns.m (Fx_close_connection): Doc fix.
4904 (Fns_do_applescript): Reflow docstring.
4905 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4906 (Fx_display_pixel_width, Fx_display_pixel_height)
4907 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4908 Fix typos in docstrings.
4909 (Fns_set_alpha): Fix typos in error messages.
4910
d472514e 49112009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4912
d472514e 4913 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4914 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4915 were used for such events.
4916
d472514e
JB
4917 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4918 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4919
d472514e 4920 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4921 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4922
fb930676
KH
49232009-03-11 Kenichi Handa <handa@m17n.org>
4924
ff85581a
KH
4925 * font.h (font_open_by_spec): Extern it.
4926
c50b7e98
KH
4927 * font.c (font_open_by_spec): New function.
4928 (font_open_by_name): Use font_open_by_spec.
4929
fb930676
KH
4930 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4931 fontset of the frame.
4932
4933 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4934 modify the default font of frames that use this fontset.
4935 (num_auto_fontsets): New variable.
4936 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4937 name. Be sure to set FONTSET_ASCII to the correct font name.
4938 (update_auto_fontset_alist): New function.
4939
df4e8455
JB
49402009-03-11 Juanma Barranquero <lekktu@gmail.com>
4941
4942 * makefile.w32-in: Update dependencies.
4943
0a375797
AR
49442009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4945
4946 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4947
61313fa3
SM
49482009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4949
4950 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4951
b55103fb
CY
49522009-03-10 Chong Yidong <cyd@stupidchicken.com>
4953
4954 * lread.c (Feval_buffer): Doc fix.
4955
dde2559c
KH
49562009-03-09 Kenichi Handa <handa@m17n.org>
4957
4958 * charset.c (Qfile_name_handler_alist): Extern it.
4959 (load_charset_map_from_file): Temporarily bind
4960 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4961
df4e8455 49622009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4963
47f588bb
GM
4964 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4965 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4966
4ddf94bd
AR
49672009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4968
4c9bdfc2
AR
4969 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4970 (x_set_window_size): Change back to calculated method of setting
4971 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4972 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4973 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4974
fe41ae9e
AR
4975 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4976
4c9bdfc2
AR
4977 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4978 accelerator in parens under GNUstep.
4979
825d0875
KH
49802009-03-06 Kenichi Handa <handa@m17n.org>
4981
4982 These changes are to detect incorrect composition sequence without
f3b3be74 4983 looking ahead the source. (Bug#2370)
825d0875
KH
4984
4985 * coding.h: Include "composite.h".
4986 (enum compisition_state): New enum.
4987 (struct compisition_status): New struct.
4988 (struct iso_2022_spec): New member cmp_status.
4989 (struct emacs_mule_spec): New struct.
4990 (struct coding_system): New members ctext_extended_segment_len and
4991 embedded_utf_8. Change the union member
4992 spec.emacs_mule_full_support to spec.emacs_mule.
4993
4994 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4995 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4996 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4997 (ADD_COMPOSITION_DATA): New arg nbytes.
4998 (emacs_mule_char): New arg cmp_status.
4999 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
5000 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
5001 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
5002 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
5003 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
5004 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
5005 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
5006 (EMACS_MULE_COMPOSITION_END): New macro.
5007 (emacs_mule_finish_composition): New function.
5008 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
5009 (decode_coding_emacs_mule): Avoid long looking ahead while
5010 handling composition.
5011 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
5012 (ENCODE_COMPOSITION_RULE): New macro.
5013 (finish_composition): New function.
5014 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
5015 (DECODE_COMPOSITION_START): New implementation.
5016 (DECODE_COMPOSITION_END): Likewise.
5017 (STORE_COMPOSITION_RULE): New macro.
5018 (decode_coding_iso_2022): Avoid long looking ahead while handling
5019 composition, CTEXT extended segment, and embedded UTF-8.
5020 (setup_coding_system): For a coding of type iso-2022, reset
5021 CODING_ISO_EXTSEGMENT_LEN (coding) and
5022 CODING_ISO_EMBEDDED_UTF_8 (coding).
5023 (get_translation): Delete arguments last_block, from_nchars,
5024 to_nchars. Callers changed.
5025 (produce_chars): Don't modify charbuf. Adjusted for the change of
5026 get_translation.
98a326f7 5027 (produce_composition): Adjust for the new annotation sequence.
825d0875 5028 (handle_composition_annotation): Likewise.
98a326f7 5029 (consume_chars): Adjust for the change of get_translation.
825d0875 5030
ccbc4452
AR
50312009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
5032
4ddf94bd 5033 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 5034
988a7ddb
KH
50352009-03-05 Kenichi Handa <handa@m17n.org>
5036
5037 * font.c (font_select_entity): New function.
5038 (font_find_for_lface): Use font_select_entity to select a font.
5039
5040 * fontset.c (fontset_find_font): If a font found without
a8a3728b 5041 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
5042 font with C restriction.
5043
98a326f7 50442009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 5045
be1bce46 5046 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 5047
10ea2b82
JR
50482009-03-04 Jason Rumney <jasonr@gnu.org>
5049
2c93b248 5050 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 5051 characters that have already been read. (Bug#2569)
2c93b248 5052
10ea2b82
JR
5053 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
5054 Log an error message if check_image_size failed.
5055 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 5056 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 5057
71a0c011
EZ
50582009-03-02 Eli Zaretskii <eliz@gnu.org>
5059
5060 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
5061 when decoding process output.
5062
2f63bba8
RS
50632009-03-01 Richard M Stallman <rms@gnu.org>
5064
5065 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
5066
5067 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
5068
0a9564cb
EZ
50692009-02-28 Eli Zaretskii <eliz@gnu.org>
5070
5071 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
5072 (decode_coding_emacs_mule, decode_coding_iso_2022)
5073 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5074 (decode_coding_raw_text, decode_coding_charset)
5075 (setup_coding_system, decode_eol, decode_coding, consume_chars):
5076 Honor inhibit-eol-conversion. (Bug #2186)
5077
449148b3
JR
50782009-02-28 Jason Rumney <jasonr@gnu.org>
5079
5080 * coding.c (detect_coding_charset): If not checking latin extra,
5081 fail on characters between 0x80 and 0xA0. (Bug#2354)
5082
a4aee864
EZ
50832009-02-28 Eli Zaretskii <eliz@gnu.org>
5084
5085 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 5086 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 5087
d88bee5a
GM
50882009-02-27 Glenn Morris <rgm@gnu.org>
5089
5090 * callint.c (Finteractive): Doc fix.
5091
a808f22d
KH
50922009-02-27 Kenichi Handa <handa@m17n.org>
5093
5094 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
5095
caf8d60c
CY
50962009-02-27 Chong Yidong <cyd@stupidchicken.com>
5097
5098 * font.c (font_style_to_value): Set value for unknown symbols to
5099 100 instead of 255.
b61137ea
CY
5100 (weight_table, slant_table, width_table): Treat "unspecified" as
5101 the default value.
caf8d60c 5102
1a0de25c
JB
51032009-02-26 Juanma Barranquero <lekktu@gmail.com>
5104
5105 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
5106
8fc45744
JB
51072009-02-25 Juanma Barranquero <lekktu@gmail.com>
5108
107bd7d1
JB
5109 * lread.c (Fload): Stop checking Vloads_in_progress and signal
5110 error as soon as a recursive load is detected.
8fc45744 5111
f097e223
AR
51122009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
5113
5114 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
5115 before caching.
5116
8810a12f
KH
51172009-02-24 Kenichi Handa <handa@m17n.org>
5118
5119 * fontset.c (fontset_find_font): Fix the condition for checking
5120 unavailable font.
5121
2c7d1565
GM
51222009-02-24 Glenn Morris <rgm@gnu.org>
5123
5124 * xfaces.c (Finternal_set_font_selection_order): Remove leading
5125 whitespace that confuses documentation.
5126
a20878b6
MB
51272009-02-23 Miles Bader <miles@gnu.org>
5128
5129 * process.c (Flist_system_processes, Fprocess_attributes)
5130 (syms_of_process): Rename `system-process-attributes' to
5131 `process-attributes'.
5132
b3b58c01
AS
51332009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5134
1b3b981b
AS
5135 * coding.h (struct coding_system): Make safe_charsets a pointer to
5136 unsigned char.
5137 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5138 being 255.
5139 (SAFE_CHARSET_P): Likewise.
5140 (setup_iso_safe_charsets): Properly setup safe_charsets.
5141 (Fdefine_coding_system_internal): Likewise.
5142 (setup_coding_system): Likewise. Remove unneeded casts.
5143 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5144 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5145 unneeded casts.
5146
b3b58c01
AS
5147 * insdel.c (del_range_2): Don't modify gap contents when called
5148 from decode_coding_object. (Bug#1809)
5149
0b6f228c
CY
51502009-02-21 Chong Yidong <cyd@stupidchicken.com>
5151
5152 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5153 Qfont_object.
5154 (Ftype_of): Recognize font objects.
5155
5156 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5157
5158 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5159 moved to data.c.
5160
52f8870b
AR
51612009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5162
5163 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5164 async_iconified. Based on a patch by Christian Lynbech
5165 <christian.lynbech@tieto.com>.
5166 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5167
7087d5e9
GM
51682009-02-20 Glenn Morris <rgm@gnu.org>
5169
5170 * syntax.c (Fskip_chars_forward): Fix doc typo.
5171
41d2ceef
CY
51722009-02-20 Chong Yidong <cyd@stupidchicken.com>
5173
5174 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5175
1a3b7ca6
CY
51762009-02-19 Chong Yidong <cyd@stupidchicken.com>
5177
5178 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5179
73cce38d
KH
51802009-02-19 Kenichi Handa <handa@m17n.org>
5181
5182 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5183 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5184
a51092ee
DN
51852009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5186
5187 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5188
c423ecca
KH
51892009-02-18 Kenichi Handa <handa@m17n.org>
5190
5191 * font.c (font_check_otf_features): Fix handling of `nil' element.
5192 (Ffont_spec): Describe :lang and :otf in the docstring.
5193
4c1958f4
AS
51942009-02-16 Andreas Schwab <schwab@suse.de>
5195
5196 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5197 string.
5198
5704f39a
KH
51992009-02-16 Kenichi Handa <handa@m17n.org>
5200
5201 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5202 (Bug#1723)
5704f39a 5203
8f0085aa
CY
52042009-02-14 Chong Yidong <cyd@stupidchicken.com>
5205
a057d86a 5206 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5207
5208 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5209 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5210
aff01dd9
EZ
52112009-02-14 Eli Zaretskii <eliz@gnu.org>
5212
5213 * msdos.c (MAX_SCREEN_BUF): New macro.
5214 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5215 Encode the entire run of glyphs sharing the same face, instead of
5216 doing that one glyph at a time (fixes a bug with displaying
5217 double-size characters).
5218
ba301db3
AR
52192009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5220
5221 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5222
5223 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5224 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5225 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5226
5227 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5228 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5229
51d861de
SM
52302009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5231
ac146f82 5232 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5233 invisible areas.
5234
7fed8996
JR
52352009-02-12 Jason Rumney <jasonr@gnu.org>
5236
631ea4fb
JR
5237 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5238 (add_font_entity_to_list): Call check_face_name even when family
5239 is unspecified.
5240
cb4a3e42
JR
5241 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5242 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5243 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5244
7fed8996 5245 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5246 raster fonts. (Bug#2219)
7fed8996 5247
895416e3
KH
52482009-02-12 Kenichi Handa <handa@m17n.org>
5249
5250 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5251 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5252 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5253 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5254 (find_automatic_composition): While looking forward and backward,
5255 check static composition. Fix where to stop looking forward.
5256 (composition_adjust_point): Fix checking of static composition.
5257 (Fcomposition_get_gstring): Pay attention to
1dacf998 5258 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5259
5260 * lisp.h (fast_looking_at): Extern it.
5261
5262 * search.c (fast_looking_at): New function.
5263
51d861de 5264 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5265 <struct glyph>.u.cmp.to.
5266 (append_composite_glyph): Likewise.
5267
51d861de 5268 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5269 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5270 composition.
51d861de 5271 (append_composite_glyph): Adjust for the change of
895416e3
KH
5272 <strcut glyph>.u.cmp.to.
5273
8510724d
JB
52742009-02-11 Juanma Barranquero <lekktu@gmail.com>
5275
5276 * casetab.c (init_casetab_once):
5277 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5278 * font.c (font_update_lface):
5279 * fontset.c (Fnew_fontset):
5280 * ftfont.c (ftfont_drive_otf):
5281 * xfont.c (xfont_open):
5282 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5283
294fa707
SM
52842009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5285
5286 * fileio.c (Fwrite_region): !NILP -> CONSP.
5287
b5bfebec
AS
52882009-02-10 Andreas Schwab <schwab@suse.de>
5289
5290 * process.c (send_process): Properly relocate pointer into data
adab88bd 5291 when using encoded data. (Bug#2272)
b5bfebec 5292
cb84a2be
KH
52932009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5294
5295 * coding.c (detect_coding_charset): Fix previous change.
5296
89e09428
JR
52972009-02-08 Jason Rumney <jasonr@gnu.org>
5298
5299 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5300 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5301
4470a277
AS
53022009-02-07 Andreas Schwab <schwab@suse.de>
5303
5304 * unexelf.c (unexec): Fix error message.
5305
3175b12a
AR
53062009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5307
5308 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5309 when modal window is active. (Bug #2152)
3175b12a
AR
5310 (applicationShouldTerminate:): Remove now-unneeded while loop
5311 around NSRunAlertPanel.
5312
5313 * nsmenu.m (popupSession): New file-global variable.
5314 (pop_down_menu): End the popupSession before closing dialog.
5315 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5316 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5317 don't query NSApp for events (just sleep instead).
5318
8434d0b8
EZ
53192009-02-07 Eli Zaretskii <eliz@gnu.org>
5320
51d861de
SM
5321 * coding.c (syms_of_coding) <translation-table-for-input>:
5322 Modify doc string to discourage use for character code unification.
8434d0b8 5323
aa82edfd
CY
53242009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5325
5326 * atimer.c (run_timers): Update pending_atimers.
5327
2d283c7c
CY
53282009-02-06 Chong Yidong <cyd@stupidchicken.com>
5329
eb306cab
CY
5330 * image.c (svg_load_image): Fix last change.
5331
2d283c7c
CY
5332 * xfns.c (Fx_create_frame): Signal an error if no font is
5333 found (Bug#2147).
5334
4d8e170e
JB
53352009-02-05 Juanma Barranquero <lekktu@gmail.com>
5336
5337 * character.c (syms_of_character) <script-representative-chars>:
5338 Fix typo in docstring.
5339
c96169a0
AR
53402009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5341
5342 * nsmenu.m (pop_down_menu): New function.
5343 (ns_popup_dialog): Call it on unwind.
5344 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5345 call timer_check() (Bug#2154).
5346 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5347 handling_signal is set.
5348 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5349
31fd7c5c 5350 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5351
5352 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5353
5354 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5355
51d861de
SM
5356 * keyboard.c (poll_for_input_1, handle_async_input):
5357 Set handling_signal under HAVE_NS.
c96169a0 5358
aacd8ba1
GM
53592009-02-04 Glenn Morris <rgm@gnu.org>
5360
5361 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5362
4cb75c4b
KH
53632009-02-04 Kenichi Handa <handa@m17n.org>
5364
5365 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5366
5367 * charset.c (Fchar_charset): New optional arg restriction.
5368
5369 * coding.h (coding_system_charset_list): Extern it.
5370
5371 * coding.c (coding_system_charset_list): New function.
5372
5373 * composite.c: Include coding.h and termhooks.h.
5374 (composition_gstring_p): Fix for the terminal case.
5375 (composition_gstring_width): Likewise.
5376 (fill_gstring_body): Likewise.
5377 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5378 the frame.
5379 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5380 is within a composition.
867d4bb3 5381 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5382
5383 * term.c (encode_terminal_code): Fix handling of composition.
5384 (produce_composite_glyph): For static composition, get pixel_width
5385 from struct composition.
5386
826ba17e
AS
53872009-02-02 Andreas Schwab <schwab@suse.de>
5388
5389 * unexelf.c (unexec): Handle unaligned bss offset.
5390
8ad093db
AR
53912009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5392
5393 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5394 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5395
8ad093db
AR
5396 * keyboard.c (handle_interrupt): Don't call
5397 quit_throw_to_read_char() under NS.
d0a76a6e 5398
8ad093db
AR
5399 * blockinput.h: Remove NS-specific code.
5400
4d18a7a2
DN
54012009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5402
db878925
DN
5403 * dispnew.c (window_change_signal): Don't try to get the size of a
5404 suspended tty frame.
5405 * term.c (Fresume_tty): Resize if the size has changed while the
5406 tty was suspended.
5407
4d18a7a2
DN
5408 * alloc.c (mark_stack): Properly conditionalize previous change.
5409
8984df7c
JB
54102009-01-30 Juanma Barranquero <lekktu@gmail.com>
5411
5412 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5413 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5414 Remove; this code is not used on Windows.
5415
75f4f1ac
EZ
54162009-01-30 Eli Zaretskii <eliz@gnu.org>
5417
5418 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5419 EOLs that also has stray ^M characters.
5420
07a1e794
JB
54212009-01-30 Juanma Barranquero <lekktu@gmail.com>
5422
5423 * atimer.c (run_timers, alarm_signal_handler):
5424 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5425 * w32inevt.c (w32_console_read_socket):
5426 * w32term.c (w32_read_socket):
5427 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5428
a8b11cc9
CY
54292009-01-30 Chong Yidong <cyd@stupidchicken.com>
5430
5431 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5432 Initialize it as a relative filename pattern.
5433 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5434 (Fcall_process_region): Simplify temp file creation using
5435 temporary-file-directory.
5436
c279587b
EZ
54372009-01-29 Eli Zaretskii <eliz@gnu.org>
5438
5439 * msdos.c: Rename pending_signals to msdos_pending_signals.
5440 (sig_suspender, sigprocmask): Adjust.
5441
a8fe3242
CY
54422009-01-29 Chong Yidong <cyd@stupidchicken.com>
5443
5444 * keyboard.c (pending_signals): New var.
5445 (poll_for_input, input_available_signal, init_keyboard): Set it.
5446 (process_pending_signals): New function.
5447
5448 * lisp.h (QUIT): Check pending_signals instead of
5449 interrupt_input_pending. Use process_pending_signals.
5450
51d861de 5451 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5452
51d861de 5453 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5454
5455 * sysdep.c (emacs_write): Use process_pending_signals.
5456
5457 * xterm.c (XTread_socket): Update pending_signals.
5458
5459 * w32term.c (w32_read_socket): Update pending_signals.
5460
5461 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5462
6570a1c4
KH
54632009-01-29 Kenichi Handa <handa@m17n.org>
5464
5465 * xftfont.c (xftfont_has_char): New function.
5466 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5467
d72a4afa
AR
54682009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5469
5470 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5471 under GNUstep.
5472 (ns_query_color): New declaration.
5473
5474 * nsterm.m (ns_confirm_quit): New variable.
5475 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5476 (EmacsApp-applicationShouldTerminate:): Use it.
5477 (EmacsPrefsController): Let user set it.
5478 (ns_query_color): New function.
5479 (ns_defined_color): Use it.
5480 (ns_initialize): Drop.
5481 (ns_term_init): Add two lines from ns_initialize(), and set
5482 input_interrupt_mode to nil.
5483
5484 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5485 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5486
9fe78804
KH
54872009-01-28 Kenichi Handa <handa@m17n.org>
5488
5489 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5490 (fontset_get_font_group): Remember that no font-group is specified
5491 for C.
9fe78804 5492
fa57de36
CY
54932009-01-27 Chong Yidong <cyd@stupidchicken.com>
5494
930600e9
CY
5495 * fns.c (concat): Check for string overflow (bug#1787).
5496
fa57de36
CY
5497 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5498 Quadruple undo limits (bug#1501).
5499
7179ce7b
KH
55002009-01-27 Kenichi Handa <handa@m17n.org>
5501
5502 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5503 directly use GT_Get_Char_index.
5504
5505 * xftfont.c (struct xftfont_info): New member `index'.
5506
5507 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5508 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5509
5be8fcc0
CY
55102009-01-26 Kenichi Handa <handa@m17n.org>
5511
5512 * fontset.c (fontset_find_font): Fix handling of non-cons return
5513 value of fontset_get_font_group.
5514 (fontset_font): Revert last change.
5515
19ae3e61
JR
55162009-01-26 Jason Rumney <jasonr@gnu.org>
5517
5518 * w32font.c (w32font_list_internal): Return quickly if registry is
5519 unknown. Simplify final return.
5520 (add_font_entity_to_list): Break complex logic down into more
5521 manageable chunks. Move unknown registry check to
5522 w32font_list_internal.
5523
8612b71a
AR
55242009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5525
5526 Changes to remove Feval calls from GUI under NS.
5527
d8038940
JB
5528 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5529 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5530 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5531
5532 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5533 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5534 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5535 instead of NON_ASCII_KEYSTROKE_EVENT.
5536 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5537 (EmacsApp-applicationShouldTerminate:): Query user.
5538 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5539 instead of Feval.
5540
5541 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5542
5543 * keyboard.c (kbd_buffer_get_event): Check for it.
5544 (keys_of_keyboard): Define lispy keys for
5545 ns-put/unput-working-text.
5546
5547 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5548 versions.
5549 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5550
6288ae55
CY
55512009-01-25 Chong Yidong <cyd@stupidchicken.com>
5552
5553 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5554 setting current_buffer directly. (Bug#2044)
6288ae55 5555
289e7f8f
CY
55562009-01-24 Chong Yidong <cyd@stupidchicken.com>
5557
5ce87308 5558 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5559 any work. (Bug#1952, bug#1990).
5ce87308 5560
64cc3cf6 5561 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5562
b3243e6f
AR
55632009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5564
5565 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5566 (ns_no_defaults): New declaration.
5567 (main): Use it.
e0d2e69a 5568
d900b2af 5569 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5570
d900b2af 5571 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5572
d900b2af
AR
5573 * nsterm.m (ns_no_defaults): New variable.
5574 (ns_initialize): Don't read defaults when ns_no_defaults.
5575 (EmacsView-readSelectionFromPasteboard:)
5576 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5577 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5578 (ns_dumpglyphs_stretch): New function.
5579 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5580 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5581
e0d2e69a
AR
5582 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5583
3ac71f5d
CY
55842009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5585
5586 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5587 call for Sparc64.
5588
3fe53a83
AR
55892009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5590
5591 * nsfns.m:
5592 * nsgui.h:
5593 * nsmenu.m:
5594 * nsselect.m:
5595 * nsterm.h:
5596 * nsterm.m: Remove '23' comments that indicated code added during
5597 update from emacs-20 -> emacs-23.
5598
10f87c6f 55992009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5600
5601 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5602 ns_alternate_modifier. (Bug#1217)
a3b53a85 5603
c7cef62d
AR
5604 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5605 Display all shortcuts, including those w/o super modifier.
5606
575fb8bd
AR
5607 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5608
918b848b
CY
56092009-01-22 Chong Yidong <cyd@stupidchicken.com>
5610
5611 * fileio.c (Vwrite_region_post_annotation_function)
5612 (Vwrite_region_annotation_buffers): New vars.
5613 (build_annotations_unwind): Just reset
5614 Vwrite_region_annotation_buffers.
5615 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5616 Call write-region-post-annotation-function.
5617 (build_annotations): Add to Vwrite_region_annotation_buffers if
5618 buffer changes.
5619
a39e2539
AR
56202009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5621
5622 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5623 Tiger.
51d861de
SM
5624 * nsfns.m (ns_do_applescript):
5625 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5626
35ed44db
AR
56272009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5628
5629 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5630
cbe0b5bf
AR
56312009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5632
5633 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5634
6049d3a0
AR
5635 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5636
5637 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5638 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5639 handle Ctrl-tab. (Bug#1841)
5640 (ns_get_color): Use unsigned long long for scanned hex string value.
5641 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5642 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5643 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5644 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5645 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5646 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5647 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5648
d3810c21 5649 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5650 DPI. (Bug#1316)
d3810c21
AR
5651 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5652 values in onTiger section.
4c7077c3 5653
e301e634
CY
56542009-01-19 Chong Yidong <cyd@stupidchicken.com>
5655
7f82490b
CY
5656 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5657 Check return value of font_spec_from_name.
64cc3cf6 5658 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5659
5660 * font.c (font_spec_from_name): Return Qnil if font name could not
5661 be parsed.
5662 (font_parse_name): Treat a `?' character as part of an XLFD.
5663
e301e634
CY
5664 * fns.c (Fsubstring): Doc fix.
5665
1c0db158
KH
56662009-01-19 Kenichi Handa <handa@m17n.org>
5667
51d861de 5668 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5669 (ftfont_list): Likewise.
5670
acf20901
JB
56712009-01-18 Juanma Barranquero <lekktu@gmail.com>
5672
fff4e459
JB
5673 * dbusbind.c (Fdbus_register_signal):
5674 * process.c (conv_sockaddr_to_lisp):
5675 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5676
acf20901
JB
5677 * callproc.c (Fgetenv_internal): Doc fix.
5678
e7abcdfb
CY
56792009-01-16 Chong Yidong <cyd@stupidchicken.com>
5680
5681 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5682 it is not even used.
5683
b60861e6
GM
56842009-01-16 Glenn Morris <rgm@gnu.org>
5685
5686 * font.c (Ffont_variation_glyphs): Silence compiler.
5687
8db52afe
JB
56882009-01-15 Juanma Barranquero <lekktu@gmail.com>
5689
5690 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5691 Reported by David Robinow <drobinow@gmail.com>.
5692
4cddb209
KH
56932009-01-15 Kenichi Handa <handa@m17n.org>
5694
51d861de 5695 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5696
f247f67b
JR
56972009-01-14 Jason Rumney <jasonr@gnu.org>
5698
5699 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5700 never a fontset. (Bug#1562)
f247f67b 5701
f56a4450
KH
57022009-01-14 Kenichi Handa <handa@m17n.org>
5703
5704 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5705 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5706
4e99855e
CY
57072009-01-13 Chong Yidong <cyd@stupidchicken.com>
5708
5709 * font.c (font_clear_prop): If clearing the family, clear the font
5710 width index too.
5711
fff4e459 5712 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5713
24f01470
JB
57142009-01-12 Juanma Barranquero <lekktu@gmail.com>
5715
5716 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5717 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5718 functions, use sizeof.
5719
a41240a3
MR
57202009-01-12 Martin Rudalics <rudalics@gmx.at>
5721
5722 * keyboard.c (read_char): Fix case where last_nonmenu_event
5723 returned a bad value with submenus. (Bug#447)
5724
944636b8
CY
57252009-01-12 Chong Yidong <cyd@stupidchicken.com>
5726
5727 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5728 family, clear the font width index too.
5729
0dad7c6f
JR
57302009-01-11 Jason Rumney <jasonr@gnu.org>
5731
5732 * keyboard.c (cmd_error_internal): Exit when errors occur before
5733 frame creation and not in daemon mode. (Bug#1836)
5734
7c2363af
CY
57352009-01-10 Chong Yidong <cyd@stupidchicken.com>
5736
5737 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5738 of a display vector, backtrack.
5739 (try_window_reusing_current_matrix): Check glyph type before
5740 referencing charpos member.
5741
97b1b294
EZ
57422009-01-10 Eli Zaretskii <eliz@gnu.org>
5743
5744 Fix Bug #876:
5745
5746 * coding.c (inhibit_null_byte_detection): New variable.
5747 (detect_coding, detect_coding_system): Don't pay attention to null
5748 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5749 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5750 <inhibit-iso-escape-detection>: Doc fix.
5751
4624b6e3
JR
57522009-01-09 Jason Rumney <jasonr@gnu.org>
5753
5754 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5755 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5756 Only report Unicode Plane 2 fonts as unicode-sip.
5757
323b840c
CY
57582009-01-09 Chong Yidong <cyd@stupidchicken.com>
5759
51d861de
SM
5760 * xfaces.c (Fx_font_family_list): Delete function.
5761 Move compatibility version to faces.el.
323b840c 5762
51d861de 5763 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5764
eba7400d
MR
57652009-01-09 Martin Rudalics <rudalics@gmx.at>
5766
5767 * frame.c (x_set_frame_parameters): Remember requested value for
5768 fullscreen before it's reset by the parameter handler.
5769
4b09796d
GM
57702009-01-09 Glenn Morris <rgm@gnu.org>
5771
5772 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5773 (last_command_event): ... and update all users.
4b09796d
GM
5774 (last_input_char): For clarity, rename to...
5775 (last_input_event): ... and update all users.
5776 (last-command-char, last-input-char): Move to subr.el as aliases.
5777 * cmds.c, commands.h: Update for last_command_char rename.
5778
14ccea62
CY
57792009-01-08 Chong Yidong <cyd@stupidchicken.com>
5780
51d861de 5781 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5782
5f004711
JR
57832009-01-08 Jason Rumney <jasonr@gnu.org>
5784
5785 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5786 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5787 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5788 Don't declare.
fff4e459 5789 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5790 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5791
b71f6f73
KH
57922009-01-07 Kenichi Handa <handa@m17n.org>
5793
50b06221 5794 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5795 remember the coding system used for decoding in
50b06221
KH
5796 coding_system (Bug#1039).
5797
b71f6f73 5798 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5799 breaking the loop. (Bug#870)
b71f6f73
KH
5800 (decode_coding_utf_16, decode_coding_emacs_mule)
5801 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5802 (decode_coding_charset): Likewise.
5803
56f668f7
MR
58042009-01-05 Martin Rudalics <rudalics@gmx.at>
5805
5806 * frame.c (x_set_frame_parameters): Make sure height (width) get
5807 applied when fullwidth (fullheight) is set. (Bug#1522)
5808
5da9424d
JB
58092009-01-04 Juanma Barranquero <lekktu@gmail.com>
5810
5811 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5812 (utc_base): Declare as ULONGLONG, not long double.
5813 (convert_time_raw): Delete.
5814 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5815 (initialize_utc_base): New function.
5816 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5817 (convert_from_time_t): Use initialize_utc_base; compute result with
5818 64-bit arithmetic.
5819 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5820
c4605e09
EZ
58212009-01-03 Eli Zaretskii <eliz@gnu.org>
5822
9acef61c 5823 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5824 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5825 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5826 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5827 [!subprocesses]: Define.
5828 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5829 (Flist_system_processes, Fsystem_process_attributes)
5830 [!subprocesses]: Call list_system_processes and
5831 system_process_attributes instead of returning Qnil.
5832
9acef61c
JB
5833 * dosfns.c (system_process_attributes, list_system_processes):
5834 New functions.
c4605e09
EZ
5835
5836 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5837
5838 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5839 Don't use the default (no-op) implementation.
5840
8b7d0a16
JR
58412009-01-03 Jason Rumney <jasonr@gnu.org>
5842
a6d46bc1
JR
5843 * keyboard.c (parse_modifiers_uncached): Wheel events are
5844 clicks (bug#687).
5845
8b7d0a16
JR
5846 * w32term.c (x_query_colors, x_query_color): New functions.
5847
5848 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5849 (svg_load_image): Cast returned pointers from dynamically loaded
5850 functions. Eliminate W32 specific code.
5851
bfe11752
DN
58522009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5853
89e2438a
DN
5854 * nsfns.m (x_set_foreground_color, x_set_background_color)
5855 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5856 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5857 x_ prefix instead of ns_. Update references.
5858 (syms_of_nsfns): Add a FIXME comment.
5859
5860 * nsterm.m (x_set_cursor_type): New prototype.
5861 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5862
bfe11752
DN
5863 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5864 for Solaris instead of incorrectly providing Qutime and Qcutime.
5865
031da700
EZ
58662009-01-02 Eli Zaretskii <eliz@gnu.org>
5867
5868 * w32.c (process_times): Compute sum of utime and stime.
5869 (system_process_attributes): Add Qtime to the alist.
5870
5871 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5872 and add them to the alist.
5873
5874 * process.c (top level) <Qtime, Qctime>: New variables.
5875 (syms_of_process): staticpro them.
5876 (Fsystem_process_attributes): Add their documentation to the doc
5877 string.
5878
5879 * process.h: Declare Qtime and Qctime.
5880
df23bf08
JR
58812009-01-02 Jason Rumney <jasonr@gnu.org>
5882
9acef61c 5883 * image.c (Qgobject): New symbol.
df23bf08
JR
5884 (syms_of_image): Initialize it.
5885 (init_svg_functions): Load some functions from gobject library.
5886
5bbdf7aa
DN
58872009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5888
5889 * frame.c (make_terminal_frame): Remove redundant code and useless
5890 block.
5891
63136da6
AS
58922009-01-01 Andreas Schwab <schwab@suse.de>
5893
5894 * process.c (conv_sockaddr_to_lisp): Add workaround for
5895 getsockname bug on BSD.
5896
9ef69046
CY
58972009-01-01 Chong Yidong <cyd@stupidchicken.com>
5898
d6fafbe0
CY
5899 * xfns.c (x_create_tip_frame): Set border width of the X window.
5900
51d861de 5901 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5902
f9c34147
JR
59032009-01-01 Jason Rumney <jasonr@gnu.org>
5904
9acef61c 5905 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5906 Don't block input, as per earlier xterm.c changes.
5907
f5497e45
AR
59082008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5909
5910 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5911 (ns_appkit_version_int): New function.
5912 (x-server-version): Use ns_appkit_version_int and follow 21+
5913 convention of returning 3 integers.
5914
c19cab20
KH
59152008-12-30 Kenichi Handa <handa@m17n.org>
5916
5917 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5918 (CHAR_SURROGATE_PAIR_P): New macro.
5919
5920 * font.h (struct font_driver): New member get_variation_glyphs.
5921
9acef61c 5922 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5923 (Ffont_variation_glyphs): New function.
5924 (syms_of_font): Defsubr it.
5925
5926 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5927 ftfont_variation_glyphs.
5928 (setup_otf_gstring): New function.
5929 (ftfont_drive_otf): Use it.
5930 (ftfont_shape_by_flt): Handle variation selector.
5931 (ftfont_variation_glyphs): New function.
5932
28cd591f
MR
59332008-12-30 Martin Rudalics <rudalics@gmx.at>
5934
5935 * frame.c (Vemacs_iconified): Remove.
5936
7f714baf
JR
59372008-12-30 Jason Rumney <jasonr@gnu.org>
5938
5939 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5940 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5941
9d2d22ab
CY
59422008-12-30 Chong Yidong <cyd@stupidchicken.com>
5943
5944 * indent.c (Fvertical_motion): Don't advance iterator if we have
5945 reseated to the desired position.
5946
5947 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5948 checking for pos match.
5949
545312c2
KH
59502008-12-30 Kenichi Handa <handa@m17n.org>
5951
1ede3eb6
KH
5952 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5953 just get the low 8-bit of the code.
5954
545312c2
KH
5955 * font.c (font_intern_prop): Validate str as multibyte.
5956
bd7bbf29
DN
59572008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5958
31e0750e
DN
5959 * dispextern.h (struct face): Move lface and hash from the middle
5960 of bitfields.
5961
bd7bbf29
DN
5962 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5963
b5672e7c
DN
59642008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5965
5966 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5967 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5968 instead of intervals.h.
5969
d704470f
AS
59702008-12-26 Andreas Schwab <schwab@suse.de>
5971
5972 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5973 cons.
5974
54b33868
MR
59752008-12-26 Martin Rudalics <rudalics@gmx.at>
5976
5977 * textprop.c (Qminibuffer_prompt): New variable.
5978 (syms_of_textprop): Initialize it.
5979 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5980 in minibuffer-prompt face. (Bug#1662)
5981
40b615d6
JR
59822008-12-25 Jason Rumney <jasonr@gnu.org>
5983
5984 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5985
baae5c2d
JR
59862008-12-24 Jason Rumney <jasonr@gnu.org>
5987
5988 * ralloc.c (r_alloc_reset_variable): New function.
5989
5990 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5991 record of what points where. (Bug#716)
baae5c2d 5992
a9051c88
DN
59932008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5994
5995 * minibuf.c (read_minibuf): Follow the non-interactive case when
5996 running as a daemon, before detaching.
5997
8b146312
AS
59982008-12-22 Andreas Schwab <schwab@suse.de>
5999
6000 * buffer.c (init_buffer): Use realloc instead of xrealloc.
6001 * gtkutil.c (free_widget_value): Use xfree instead of free.
6002
56f2de10
MR
60032008-12-22 Martin Rudalics <rudalics@gmx.at>
6004
6005 * frame.c (delete_frame): New function derived from
6006 Fdelete_frame to handle Qnoelisp value for FORCE argument.
6007 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
6008 (Fdelete_frame): Call delete_frame. Remove line from doc-string
6009 saying that FORCE non-nil doesn't run `delete-frame-functions'.
6010 * frame.h: Extern delete_frame.
6011 * window.c (window_loop):
6012 * terminal.c (delete_terminal):
6013 * xterm.c (x_connection_closed):
6014 * xfns.c (Fx_hide_tip):
9acef61c 6015 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 6016
1fc200d6
JR
60172008-12-21 Jason Rumney <jasonr@gnu.org>
6018
6019 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
6020 when character maps to .notdef character.
6021
5e252df2
SM
60222008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
6023
6024 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
6025
99b72cc4
JR
60262008-12-20 Jason Rumney <jasonr@gnu.org>
6027
6028 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 6029 a graphical frame on Windows. (Bug#1325)
99b72cc4 6030
acc49a52
JD
60312008-12-20 Jan Djärv <jan.h.d@swipnet.se>
6032
6033 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
6034
6ea15123
CY
60352008-12-20 Chong Yidong <cyd@stupidchicken.com>
6036
6037 * minibuf.c (Fread_buffer): Doc fix.
6038
b2dab6c8
JR
60392008-12-20 Jason Rumney <jasonr@gnu.org>
6040
54ea0c87 6041 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 6042 server name in UNC paths. (Bug#719)
54ea0c87 6043
b2dab6c8 6044 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 6045 charbuf. (Bug#1035)
b2dab6c8 6046
6d1921be
DN
60472008-12-19 Daniel Engeler <engeler@gmail.com>
6048
6049 * sysdep.c (serial_configure): Fix typo.
6050
53934c98
DN
60512008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6052
6053 * sysdep.c: Include alloca.h.
f4f634e8
DN
6054 (system_process_attributes): Add implementation for Solaris.
6055
6056 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 6057
06e111a6
DN
60582008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
6059
6060 Reorganize implementation of Flist_system_processes and
6061 Fsystem_process_attributes. No functional changes.
6062 * process.c: Don't #include pwd.h, grp.h and limits.h.
6063 (Flist_system_processes): Just call list_system_processes.
6064 (Fsystem_process_attributes): Just call system_process_attributes.
6065 (procfs_list_system_processes, time_from_jiffies)
6066 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
6067 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
6068
6069 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
6070 (list_system_processes): Rename from
6071 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
6072 Provide a do nothing implementation.
6073 (system_process_attributes): Rename from
6074 procfs_list_system_processes.
6075 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 6076 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
6077
6078 * w32.c (list_system_processes): Rename from
6079 w32_list_system_processes.
6080 (system_process_attributes): Rename from
6081 w32_system_process_attributes.
6082
6083 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
6084
6085 * process.h (w32_list_system_processes)
6086 (w32_system_process_attributes): Remove.
362654a6
JB
6087 (list_system_processes, system_process_attributes):
6088 New prototypes.
06e111a6 6089
6a705b23
KH
60902008-12-19 Kenichi Handa <handa@m17n.org>
6091
6092 * xfont.c (xfont_decode_coding_xlfd): New function.
6093 (xfont_encode_coding_xlfd): New function.
6094 (xfont_list_pattern): Decode XLFD by iso-8859-1.
6095 (xfont_list): Decode and encode XLFD by iso-8859-1.
6096 (xfont_match): Likewise.
6097 (xfont_list_family): Likewise.
6098 (xfont_open): Likewise.
6099
d66c0241 6100 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
6101 names are utf-8.
6102
d66c0241 6103 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
6104 names are utf-8.
6105
5a130941
JD
61062008-12-18 Jan Djärv <jan.h.d@swipnet.se>
6107
6108 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
6109 changed.
bfd20325
JD
6110 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
6111 clicked on a detached tool bar button.
5a130941 6112
fd95644b
DN
61132008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
6114
6115 * emacs.c (main): Print and error and exit when no data is read
6116 from the pipe.
6117
e6eee6ae
JR
61182008-12-17 Jason Rumney <jasonr@gnu.org>
6119
6120 * w32font.c (w32font_has_char): Always return -1.
6121
a35dd56b
KH
61222008-12-16 Kenichi Handa <handa@m17n.org>
6123
6124 * font.c (font_open_entity): Fix previous change.
6125
0e3635c2
DN
61262008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
6127
6128 * process.c: Include <limits.h>.
6129
d4835507 61302008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
6131
6132 * font.c (font_update_drivers): Fix mistake in reconstructing the
6133 driver list.
6134
61352008-12-16 Chong Yidong <cyd@stupidchicken.com>
6136
6137 * font.c (font_clear_cache): Fix format of font cache data.
6138
e2cbc401
CY
61392008-12-15 Chong Yidong <cyd@stupidchicken.com>
6140
6141 * xftfont.c (xftfont_open): Free Xft font pattern if
6142 XftFontOpenPattern fails.
6143
6144 * xterm.c (x_free_frame_resources): Remove extraneous call to
6145 free_frame_faces.
6146
b131d535
CY
61472008-12-13 Chong Yidong <cyd@stupidchicken.com>
6148
6149 * xterm.c (x_delete_display): Move xim_close_dpy call to
6150 x_delete_terminal.
6151 (x_delete_terminal): Call xim_close_dpy.
6152
e6df5336
JR
61532008-12-13 Jason Rumney <jasonr@gnu.org>
6154
6155 * w32font.c (intern_font_name): New function.
6156 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6157 (w32font_open_internal, Fx_select_font): Decode font name.
6158 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6159
6160 * w32font.h (intern_font_name): Declare new function.
6161
6162 * w32uniscribe.c (add_opentype_font_name_to_list):
6163 Use intern_font_name.
6164
20d68145
CY
61652008-12-13 Chong Yidong <cyd@stupidchicken.com>
6166
9f2554de
CY
6167 * frame.c (Fdelete_frame): Call free_font_driver_list.
6168
3d9bec9a
CY
6169 * font.c (free_font_driver_list): Implement missing function.
6170
20d68145
CY
6171 * w32term.c (w32_term_init): Don't initialize the image cache
6172 here; it will be done in init_frame_faces.
6173
6174 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6175 (struct x_display_info): Remove unused member null_pixel. New
6176 member xim_callback_data.
6177
6178 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6179 (xim_initialize): Save pointer to callback function data.
6180 (xim_close_dpy): Free callback function data. Call XCloseIM,
6181 reverting 2008-11-04 change by David Smith.
6182 (x_term_init): Don't initialize the image cache here; it will be
6183 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6184 (x_delete_display): Free x_dnd_atoms member.
6185
96f9306b
KH
61862008-12-13 Kenichi Handa <handa@m17n.org>
6187
6dec9044
JB
6188 * font.c (font_rescale_ratio): Moved from xfaces.c.
6189 Argument type changed. Handle a font-spec too.
96f9306b 6190 (font_score): Check Vface_font_rescale_alist.
6dec9044 6191 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6192
6193 * xfaces.c (font_rescale_ratio): Moved to font.c.
6194
8d5b4964
CY
61952008-12-13 Chong Yidong <cyd@stupidchicken.com>
6196
6197 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6198
e6df5336
JR
61992008-12-12 Jason Rumney <jasonr@gnu.org>
6200
6201 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6202 Vwindow_system_version to the real w32 major version.
6203
97c6058a
DN
62042008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6205
6206 * term.c (init_tty): Move setting the terminal name before the
6207 potential user: maybe_fatal.
6208
ec4e88d7
CY
62092008-12-11 Chong Yidong <cyd@stupidchicken.com>
6210
d4835507
JB
6211 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6212 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6213
b4233ec9
JR
62142008-12-11 Jason Rumney <jasonr@gnu.org>
6215
8ec71e23 6216 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6217 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6218
b4233ec9 6219 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6220 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6221
011a0143
JB
62222008-12-11 Juanma Barranquero <lekktu@gmail.com>
6223
6224 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6225
3c309f34
JB
62262008-12-11 Juanma Barranquero <lekktu@gmail.com>
6227
6228 * process.c (Fsystem_process_attributes, syms_of_process):
6229 Fix typo in name of Ssystem_process_attributes.
6230 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6231
fedc6ab5
JB
62322008-12-11 Juanma Barranquero <lekktu@gmail.com>
6233
6234 * syntax.c (Fmodify_syntax_entry): Doc fix.
6235
ba3de0e8
JB
62362008-12-10 Juanma Barranquero <lekktu@gmail.com>
6237
6238 * font.c (Ffont_spec): Move usage to end of docstring.
6239
174f1c74
JR
62402008-12-10 Jason Rumney <jasonr@gnu.org>
6241
6242 * w32font.c (Qcham): New symbol.
6243 (font_supported_scripts): Add cham, and comments for other new
6244 scripts in bitfield from OpenType spec.
9d32f818
JR
6245 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6246 contain characters beyond the bmp.
174f1c74 6247
7b649478
KH
62482008-12-10 Kenichi Handa <handa@m17n.org>
6249
6250 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6251 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6252 Qunicode_sip.
6253
2133e2d1
JB
62542008-12-10 Juanma Barranquero <lekktu@gmail.com>
6255
6256 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6257 (Fcoding_system_put): Use QCdefault_char.
6258 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6259
9af886ee
CY
62602008-12-09 Chong Yidong <cyd@stupidchicken.com>
6261
74d819eb
CY
6262 * xftfont.c (syms_of_xftfont): Fix typo.
6263
4ccfa1c0 6264 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6265
7c19d3ae
DN
62662008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6267
6268 * emacs.c (main): Close daemon_pipe on exec.
6269
567826bb
CY
62702008-12-08 Chong Yidong <cyd@stupidchicken.com>
6271
6272 * termchar.h (struct tty): New members termcap_term_buffer and
6273 termcap_strings_buffer.
6274
6275 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6276 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6277 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6278 All callers changed.
6279 (init_tty): Store termcap data and string buffers in new struct
6280 tty members termcap_term_buffer and termcap_strings_buffer.
6281 (delete_tty): Free them.
4ccfa1c0 6282 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6283
aa96c42b
SZ
62842008-12-07 Seiji Zenitani <zenitani@mac.com>
6285
6286 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6287 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6288
b7e1d896
CY
62892008-12-06 Chong Yidong <cyd@stupidchicken.com>
6290
6291 * coding.c (make_conversion_work_buffer): Disable buffer
6292 modification hooks in the work buffer.
6293
b5ec91a5
EZ
62942008-12-05 Eli Zaretskii <eliz@gnu.org>
6295
6296 * process.c (procfs_system_process_attributes): If `nread' has a
6297 negative value, assign zero to it.
6298
a5d2a52b
CY
62992008-12-05 Chong Yidong <cyd@stupidchicken.com>
6300
68c5540b 6301 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6302
7bf1bb21
KH
63032008-12-05 Kenichi Handa <handa@m17n.org>
6304
6305 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6306 second character is a combining character.
6307
2fdc7d00
EZ
63082008-12-05 Eli Zaretskii <eliz@gnu.org>
6309
6310 * process.c (procfs_system_process_attributes): Don't use cmd,
6311 cmdsize, and q without initializing them first.
6312
bf6bfba8
JR
63132008-12-04 Jason Rumney <jasonr@gnu.org>
6314
6315 * w32font.c (w32font_draw): Initialize orig_clip before getting
6316 it, and delete it when finished.
6317
a3b1a468
DN
63182008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6319
6320 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6321 case when running as a daemon before detaching.
6322
8b8be8eb
JB
63232008-12-03 Juanma Barranquero <lekktu@gmail.com>
6324
805f2638 6325 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6326
b1bde622
KH
63272008-12-03 Kenichi Handa <handa@m17n.org>
6328
e500c47d
KH
6329 * font.c (font_at): Set `multibyte' at first.
6330
ca516334
KH
6331 * coding.c (decode_coding_charset): Check type of an element of
6332 vector VALIDS.
7bf1bb21 6333 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6334
4ccfa1c0 6335 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6336 (font_for_char): Likewise.
6337
1e5ecd37
CY
63382008-12-03 Chong Yidong <cyd@stupidchicken.com>
6339
d5b01609 6340 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6341 (font_update_lface): Handle fonts with corrupted size specs,
6342 i.e. non-int and non-float.
d5b01609 6343
11e3a6e4 6344 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6345 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6346 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6347
ab06788b
CY
6348 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6349
1e5ecd37 6350 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6351 underline_minimum_offset for underline position.
1e5ecd37 6352
63c125ab
DN
63532008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6354
6355 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6356
6357 * character.c (c_string_width): Specify the type for LEN.
6358
3a8406e1
KH
63592008-12-03 Kenichi Handa <handa@m17n.org>
6360
4ccfa1c0 6361 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6362 (decode_coding_utf_8): Likewise.
4ccfa1c0 6363 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6364 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6365
651df7d9
CY
63662008-12-02 Chong Yidong <cyd@stupidchicken.com>
6367
6368 * keyboard.c (make_lispy_position): Only use PT if the selected
6369 window is current.
6370
1f625c6c
AS
63712008-12-02 Andreas Schwab <schwab@suse.de>
6372
f7741ce9
AS
6373 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6374
1f625c6c
AS
6375 * doprnt.c (doprnt1): Fix size of charbuf.
6376
92bc2678
CY
63772008-12-02 Chong Yidong <cyd@stupidchicken.com>
6378
6379 * keyboard.c (timer_check): Revert last change.
6380
93b9e8cc
JB
63812008-12-02 Juanma Barranquero <lekktu@gmail.com>
6382
6383 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6384
fd7a37d5
JB
63852008-12-01 Juanma Barranquero <lekktu@gmail.com>
6386
6387 * makefile.w32-in: Update dependencies.
6388 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6389
c115043b
AS
63902008-12-01 Andreas Schwab <schwab@suse.de>
6391
6392 * font.c (register_font_driver): Use xmalloc.
6393 (font_put_frame_data): Likewise.
6394
f5668d2a
CY
63952008-12-01 Chong Yidong <cyd@stupidchicken.com>
6396
860d96be
CY
6397 * xfaces.c (realize_x_face): Make abort condition clearer.
6398
f5668d2a
CY
6399 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6400
379c17e7
CY
64012008-11-30 Chong Yidong <cyd@stupidchicken.com>
6402
6403 * keyboard.c (timer_check): After a timer runs, ensure that the
6404 selected window's buffer is current.
6405
35f36d65
JB
64062008-11-30 Juanma Barranquero <lekktu@gmail.com>
6407
f952c61c
JB
6408 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6409 It was accidentally restored by the Unicode merge.
6410
35f36d65
JB
6411 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6412
b23077df
JB
64132008-11-29 Juanma Barranquero <lekktu@gmail.com>
6414
6415 * w32proc.c: Include "coding.h".
6416 (Fw32_short_file_name): Encode filename passed to Windows API.
6417 (Fw32_long_file_name): Encode filename passed to Windows API and
6418 decode back the result. (Bug#1433)
6419
b8ebe9dd
KH
64202008-11-29 Kenichi Handa <handa@m17n.org>
6421
8cc53f96
KH
6422 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6423 not before accessing it.
6424
b8ebe9dd
KH
6425 * charset.c (Fdefine_charset_internal): After calculating
6426 min_char, max_char, and fastmap, copy the charset structure again.
6427 (encode_char): Fix the previous change.
6428
59bc82c0
SZ
64292008-11-28 Seiji Zenitani <zenitani@mac.com>
6430
6431 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6432
6433 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6434
6435 * nsterm.m (x_set_frame_alpha): New function.
6436
32247e3d
EZ
64372008-11-27 Eli Zaretskii <eliz@gnu.org>
6438
6439 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6440
b003e5ff
JB
64412008-11-27 Juanma Barranquero <lekktu@gmail.com>
6442
6443 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6444 pointer to check_face_name.
6445
708550f5
KH
64462008-11-27 Kenichi Handa <handa@m17n.org>
6447
6448 * category.h (SET_CATEGORY_SET): Call set_category_set.
6449 (set_category_set): Extern it.
6450
6451 * category.c (hash_get_category_set): New function.
6452 (Fmodify_category_entry): Adjusted for the change of
6453 char_table_ref_and_range. Call hash_get_category_set to get a
6454 category set to store in the table.
6455
6456 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6457 Funify_charset.
6458
2ae37cf0 6459 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6460 (DECODE_CHAR): Check if the decoder vector is ready.
6461 (ENCODE_CHAR): Check if the encoder char-table is ready.
6462 (maybe_unify_char): Extern it.
6463
6464 * charset.c (Vchar_unified_charset_table): Delete it.
6465 (inhibit_load_charset_map): New variable.
6466 (temp_charset_work): New variable.
6467 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6468 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6469 New macros.
6470 (load_charset_map): Meaning of control_flag changed. If
6471 inhibit_load_charset_map is nonzero, setup a table in
6472 temp_charset_work.
6473 (load_charset): New argument control_flag.
6474 (map_charset_for_dump): New function.
6475 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6476 map_charset_for_dump.
6477 (Fdefine_charset_internal): If the charset method is MAP, load
6478 mapping tables by calling load_charset.
6479 (Funify_charset): Don't load a mapping table but directly set
6480 Vchar_unify_table.
6481 (maybe_unify_char): New function.
6482 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6483 Handle the case of inhibit_load_charset_map being nonzero.
6484 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6485 Handle the case of inhibit_load_charset_map being nonzero.
6486 (Fclear_charset_maps): Just free temp_charset_work.
6487 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6488 variable.
6489
6490 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6491 change of char_table_ref_and_range.
6492 (char_table_ref_and_range): Change the meaning of argument FROM
6493 and TO. Now the caller must provide initial values for *FROM
6494 and *TO.
6495
6496 * fontset.c (fontset_add): Adjusted for the change of
6497 char_table_ref_and_range.
6498 (fontset_get_font_group): Likewise.
6499 (Ffontset_info): Likewise.
6500
6501 * keymap.c (describe_vector): Adjusted for the change of
6502 char_table_ref_and_range. For char-table, put boundary between
6503 non-ASCII and 8-bit characters.
6504
6505 * print.c (print_object): For bool-vector, delete unnecessary
6506 check of ASCII_BYTE_P.
6507
9196133b
JR
65082008-11-26 Jason Rumney <jasonr@gnu.org>
6509
6510 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6511 leading in font height. (Bug#879)
9196133b 6512
9f688acf
GM
65132008-11-26 Glenn Morris <rgm@gnu.org>
6514
6515 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6516 redefinition with ifdef. (Bug#1383)
6517
90d19aff
AR
65182008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6519
6520 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6521
4ccfa1c0 65222008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6523
6524 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6525 New EmacsView methods.
6526 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6527 Fixes bug #1048,1357,1414.
6528
65292008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6530
6531 Fix bug #1362.
6532 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6533 is not an indexed color.
6534 * nsterm.m (free_indexed_color): Add argument checking.
6535 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6536
e7d5ecb3
CY
65372008-11-24 Chong Yidong <cyd@stupidchicken.com>
6538
6539 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6540 Document confirm-after-completion value for
6541 minibuffer-completion-confirm.
6542
c285743c
JR
65432008-11-24 Jason Rumney <jasonr@gnu.org>
6544
6545 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6546 warning.
6547
b0857706
JR
65482008-11-23 Jason Rumney <jasonr@gnu.org>
6549
6550 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6551 restored before returning.
6552
6553 * w32font.c (check_face_name): New function.
6554 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6555 fonts. (Bug#642)
b0857706 6556
ee50ff07
MR
65572008-11-22 Martin Rudalics <rudalics@gmx.at>
6558
6559 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6560 confirm-nonexistent-file-or-buffer in doc-string.
6561
b8ff72fa
SM
65622008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6563
6564 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6565 Fix copy/paste typo. Add checks.
6566
cee53ed4
KH
65672008-11-21 Kenichi Handa <handa@m17n.org>
6568
6569 * coding.c (detect_coding_iso_2022): Reject invalid composition
6570 sequence.
6571 (DECODE_COMPOSITION_START): If the current source is the last
6572 block, and the current composition doesn't end, regard this
6573 sequence as invalid.
6574 (decode_coding_iso_2022): Handle invalid composition sequence.
6575
f6ef1e65
MR
65762008-11-20 Martin Rudalics <rudalics@gmx.at>
6577
6578 * window.c (coordinates_in_window): Don't return
6579 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6580 line when the window is not the rightmost one. (Bug#1372)
6581
e08b1705
MR
65822008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6583
6584 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6585
ad98e89f
EZ
65862008-11-15 Eli Zaretskii <eliz@gnu.org>
6587
6588 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6589 and bright_bg if noninteractive is non-zero.
6590
fb098a4b
CY
65912008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6592
6593 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6594 x_draw_glyph_string_background.
6595
6596 * w32term.c (x_draw_glyph_string): Likewise.
6597
ce952b6e
CY
65982008-11-15 Chong Yidong <cyd@stupidchicken.com>
6599
6600 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6601 the next glyph string once past the overhang width.
6602
6603 * nsterm.m (ns_draw_glyph_string): Likewise.
6604
6605 * w32term.c (x_draw_glyph_string): Likewise.
6606
26ea7079
CY
66072008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6608
6609 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6610 double file close.
6611
1c33c906
MR
66122008-11-14 Martin Rudalics <rudalics@gmx.at>
6613
6614 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6615 dedicated status of window before attempting to display another
6616 buffer in it.
6617
8fc29035
JB
66182008-11-14 Juanma Barranquero <lekktu@gmail.com>
6619
6620 * msdos.c (Fmsdos_long_file_names):
6621 (syms_of_msdos) <dos-unsupported-char-glyph>:
6622 * dosfns.c (Fint86): Fix typos in docstrings.
6623
55fb4286
EZ
66242008-11-14 Eli Zaretskii <eliz@gnu.org>
6625
6626 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6627
3fda0315
KY
66282008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6629
6630 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6631
7e849c17
CY
66322008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6633
6634 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6635
6636 * frame.h: Negative alpha means "don't touch".
6637
6638 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6639
6640 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6641
b9fd67bd
DN
66422008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6643
6644 * hftctl.c:
6645 * chpdef.h:
6646 * acldef.h: Remove files used only for systems no longer supported.
6647
6648 * Makefile.in: Fix .o alphabetical ordering.
6649 (hftctl.o): Remove dependency, file removed.
6650 (keymap.o, print.o): Depend on charset.h.
6651
d5998e03
KH
66522008-11-10 Kenichi Handa <handa@m17n.org>
6653
2ae37cf0 6654 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6655
be70e183
CY
66562008-11-08 Chong Yidong <cyd@stupidchicken.com>
6657
6658 * dired.c (file_name_completion): If completion_ignore_case is
6659 enabled, ignore case when checking completion-regexp-list.
6660
7cf94eac
EZ
66612008-11-08 Eli Zaretskii <eliz@gnu.org>
6662
6663 * vm-limit.c (get_lim_data): Fix last change.
6664
ee107a89
KH
66652008-11-08 Kenichi Handa <handa@m17n.org>
6666
6667 * character.c (Fget_byte): New function.
6668 (syms_of_character): Defsubr Fget_byte.
6669
5fd15622
CY
66702008-11-07 Chong Yidong <cyd@stupidchicken.com>
6671
6672 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6673 cursor position is valid after scrolling.
6674
13d62fad
JB
66752008-11-06 Juanma Barranquero <lekktu@gmail.com>
6676
6677 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6678
a1dd2936
GM
66792008-11-06 Glenn Morris <rgm@gnu.org>
6680
6681 * xterm.c (handle_one_xevent): Don't let popup menus cause
6682 mouse-autoselect-window related window switching. (Bug#1261)
6683
860cd236
CY
66842008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6685
6686 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6687
653a3150
AS
66882008-11-04 Andreas Schwab <schwab@suse.de>
6689
6690 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6691
870f5cac
CY
66922008-11-03 Chong Yidong <cyd@stupidchicken.com>
6693
6694 * xfns.c (Fx_wm_set_size_hint): New function.
6695
1e02f3cb
MR
66962008-11-03 Martin Rudalics <rudalics@gmx.at>
6697
6698 * textprop.c (Fprevious_single_char_property_change): Return 0
6699 when there's no change in a string. (Bug#1301)
6700
e630dfc6
MR
67012008-11-02 Martin Rudalics <rudalics@gmx.at>
6702
6703 * frame.c (do_switch_frame): New argument NORECORD passed to
6704 Fselect_window.
6705 (Fselect_frame): New argument NORECORD passed to
6706 do_switch_frame.
6707 (Fset_frame_selected_window): New argument NORECORD passed to
6708 Fselect_frame.
6709 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6710 in call of do_switch_frame.
6711 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6712 Handle NORECORD argument in call of Fselect_frame.
6713 * lisp.h (do_switch_frame, Fselect_frame)
6714 (Fset_frame_selected_window): Adjust declarations.
6715 * window.c (select_frame_norecord): New function.
6716 (run_window_configuration_change_hook): Use it and call
6717 Fselect_frame with NORECORD set.
6718 (Fselect_window): Pass NORECORD to Fselect_frame.
6719 (Fset_window_configuration): Handle NORECORD argument in call of
6720 do_switch_frame.
6721 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6722 Fset_frame_selected_window.
6723 * keyboard.c (command_loop_1): Handle NORECORD in call of
6724 Fselect_frame (currently ifdefd).
6725
9020b223
GM
67262008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6727
6728 * emacs.c (USAGE2): Untabify.
6729
793ffee8
SM
67302008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6731
6732 * composite.c (fill_gstring_header): Fix copy/paste typo.
6733
ab6d1131
MR
67342008-10-31 Martin Rudalics <rudalics@gmx.at>
6735
6736 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6737 (Fother_window): Rename argument and rewrite doc-string.
6738 (select_window_norecord): Fix return value. (Bug#1276)
6739
601a9cf1
JB
67402008-10-30 Juanma Barranquero <lekktu@gmail.com>
6741
6742 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6743 new frames overriding foreground for tooltips. Based on similar patch
6744 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6745
813b0652
CY
67462008-10-29 Chong Yidong <cyd@stupidchicken.com>
6747
6748 * emacs.c (Fdaemon_initialized): Initialize nfd.
6749
4414f58f
MR
67502008-10-29 Martin Rudalics <rudalics@gmx.at>
6751
6752 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6753 (Fwindow_text_height): Clarify doc-strings.
6754 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6755 doc-string of window-scroll-functions.
6756
ecdcaa09
RS
67572008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6758
6759 * category.c (syms_of_category): Fix typo in docstring.
6760
23fe745a
JB
67612008-10-28 Juanma Barranquero <lekktu@gmail.com>
6762
6763 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6764 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6765 Fix typos in docstrings.
6766
ff808935
DN
67672008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6768
6769 * emacs.c (daemon_pipe): Make non-static.
6770 (IS_DAEMON): Move definition ...
6771 * lisp.h (IS_DAEMON): ... here.
6772 (daemon_pipe): Declare.
6773 (is_daemon): Remove.
6774 * dispnew.c (init_display): Use IS_DAEMON.
6775
fc012771
SM
67762008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6777
6778 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6779 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6780
6781 * emacs.c (is_daemon): Remove.
6782 (main): Don't set is_daemon.
6783 (IS_DAEMON): New macro.
6784 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6785 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6786 parent exits.
6787 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6788
d8bdbe6f
CY
67892008-10-27 Chong Yidong <cyd@stupidchicken.com>
6790
d1a072bf
CY
6791 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6792 over-sized glyph, draw it with the default glyph width.
6793
e2e325aa
CY
6794 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6795 glyph, draw it with the default glyph width.
6796
6797 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6798 glyph, draw it with the default glyph width.
6799
d8bdbe6f
CY
6800 * xdisp.c (try_scrolling): When computing the distance from the
6801 scroll margin to PT, try moving some distance past the window
6802 bottom before giving up.
6803
7bfac547
MR
68042008-10-27 Martin Rudalics <rudalics@gmx.at>
6805
6806 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6807 (Fset_window_buffer): Explain in doc-string that a window can be
6808 "strongly" dedicated to its buffer.
6809
4ff029f6
DN
68102008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6811
6812 * emacs.c (daemon_name): New variable.
6813 (main): Deal with --daemon=SERVER_NAME.
6814 (Fdaemonp): Return a name if one was passed to --daemon.
6815
5790ef40
DN
68162008-10-26 Romain Francoise <romain@orebokech.com>
6817
f9bd0df9 6818 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6819 (main): Create a pipe before forking, make the parent exit only after
6820 the child has closed its end of the pipe. Move closing the
6821 descriptors ...
6822 (Fdaemon_initialized): ... here. New function.
6823
f5385255
SM
68242008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6825
4d632321
SM
6826 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6827 the previous unoptimized table.
6828
f5385255
SM
6829 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6830 the distinction between non-nil and non-t value of `dedicated'.
6831
6c56a0f3
CY
68322008-10-25 Chong Yidong <cyd@stupidchicken.com>
6833
6834 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6835 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6836
fec89261
MR
68372008-10-25 Martin Rudalics <rudalics@gmx.at>
6838
6839 * window.c (Fget_buffer_window, Fdelete_windows_on)
6840 (Freplace_buffer_in_windows): Make buffer argument optional and
6841 rename to buffer_or_name.
6842
34fcddd0
CY
68432008-10-24 Chong Yidong <cyd@stupidchicken.com>
6844
f5385255
SM
6845 * xdisp.c (handle_single_display_spec, handle_display_prop):
6846 Undo 2005-05-16 change.
34fcddd0
CY
6847 (handle_stop): Pop iterator if it's loaded with an empty string.
6848 (get_overlay_strings_1): Don't save iterator if it's loaded with
6849 an empty string (bug#1201).
6850
064766f2
KH
68512008-10-24 Kenichi Handa <handa@m17n.org>
6852
6853 * ftfont.c (ftfont_otf_features): Fix previous change.
6854 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6855 calling ftfont_otf_features.
6856
f9bd0df9 68572008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6858
6859 * font.c (font_match_p): Fix for the case that a vector of
6860 characters is in script-representative-chars.
6861
1dae9197
MA
68622008-10-24 Michael Albinus <michael.albinus@gmx.de>
6863
6864 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6865 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6866 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6867 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6868 macro. (Bug#1186)
1dae9197 6869
f9bd0df9 68702008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6871
6872 * s/sol2-10.h: New file.
6873
878a4584
JB
68742008-10-23 Juanma Barranquero <lekktu@gmail.com>
6875
6876 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6877 poor beast has survived 9+ years and the jump from xterm.c!).
6878
cd265ca6
MR
68792008-10-23 Martin Rudalics <rudalics@gmx.at>
6880
6881 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6882 Reword doc-string.
f5385255 6883 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6884
472a4dc9
JB
68852008-10-23 Juanma Barranquero <lekktu@gmail.com>
6886
6887 * character.c (syms_of_character) <script-representative-chars>:
6888 <unicode-category-table>: Doc fixes.
6889
159bd5a2
NF
68902008-10-23 Noah Friedman <friedman@splode.com>
6891
6892 * coding.c (make_conversion_work_buffer): Check that
6893 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6894 Fget_buffer_create.
6895
49f9c344
KH
68962008-10-23 Kenichi Handa <handa@m17n.org>
6897
6898 * font.c (font_add_log): Check the values of extra properties.
6899
12bb3111
MR
69002008-10-22 Martin Rudalics <rudalics@gmx.at>
6901
6902 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6903 Reword doc-string.
6904 (Fset_window_parameter): Use NILP.
6905 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6906 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6907
bbeb4e99
JB
69082008-10-22 Juanma Barranquero <lekktu@gmail.com>
6909
6910 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6911
69122008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6913
6914 * nsfns.m (ns_appkit_version): New function.
6915 (x-server-version): Use it.
6916 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6917 (x-server-vendor): Don't check_ns().
6918
6919 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6920
a9b555d3
JB
69212008-10-22 Juanma Barranquero <lekktu@gmail.com>
6922
6923 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6924 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6925
4626499f
KH
69262008-10-22 Kenichi Handa <handa@m17n.org>
6927
e3681952
KH
6928 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6929 scripts.
6930
4626499f
KH
6931 * category.c (word_boundary_p): Check scripts instead of charset.
6932 Handle nil value in word-separating-categories and
6933 word-combining-categories.
6934 (syms_of_category): Fix docstrings of word-separating-categories
6935 and word-combining-categories.
6936
1560f91a
EZ
69372008-10-21 Eli Zaretskii <eliz@gnu.org>
6938
6939 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6940 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6941
f4668441
MR
69422008-10-21 Martin Rudalics <rudalics@gmx.at>
6943
6944 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6945 Rename arg "buffer" to "buffer_or_name".
6946 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6947 it optional.
6948 (no_switch_window): Remove since the return value is not used.
a9b555d3 6949 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6950 Consider window as dedicated when Fwindow_dedicated_p returns a
6951 non-nil value.
6952 * lisp.h: Remove prototype for no_switch_window.
6953
fd75ddb2
JD
69542008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6955
6956 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6957 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6958
07295713
KH
69592008-10-21 Kenichi Handa <handa@m17n.org>
6960
6961 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6962 check Vlatin_extra_code_table.
6963
712adc82
EZ
69642008-10-20 Eli Zaretskii <eliz@gnu.org>
6965
6966 * fileio.c (Fset_file_modes): Doc fix.
6967
f549eb0b
MA
69682008-10-19 Michael Albinus <michael.albinus@gmx.de>
6969
6970 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6971 in arrays.
6972
aac0c6e3
MR
69732008-10-19 Martin Rudalics <rudalics@gmx.at>
6974
6975 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6976 Mention kill-buffer in doc-string.
6977 (Fset_window_buffer): Reinsert tem check removed in last commit.
6978 (Fenlarge_window, Fshrink_window): Have argument names and
6979 doc-string follow Elisp manual more closely.
6980
69812008-10-18 Eli Zaretskii <eliz@gnu.org>
6982
6983 * fileio.c (Fset_file_modes): Doc fix.
6984
69852008-10-18 Martin Rudalics <rudalics@gmx.at>
6986
6987 * window.c (Fwindow_width, Fset_window_start)
6988 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6989 (Fdelete_windows_on, Freplace_buffer_in_windows):
6990 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6991 (Fwindow_dedicated_p): Make window argument optional.
6992 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6993 (Fset_window_buffer): Respect any non-nil dedicated value for
6994 window. Rename "buffer" argument to "buffer_or_name".
6995
69962008-10-18 Ulrich Mueller <ulm@gentoo.org>
6997
6998 * m/sh3.h: New file, machine description for SuperH.
6999
70002008-10-17 Martin Rudalics <rudalics@gmx.at>
7001
7002 * window.c (Fsplit_window): Rename arg horflag to horizontal.
7003
70042008-10-17 Kenichi Handa <handa@m17n.org>
7005
7006 * ftfont.c (ftfont_otf_features): Fix indexing
7007 gsub_gpos->FeatureList.Feature. Check the validity of indices.
7008
70092008-10-16 Magnus Henoch <mange@freemail.hu>
7010
7011 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
7012 (Fdbus_call_method_asynchronously): Ditto.
7013 This change makes C-h f display the argument list.
7014
70152008-10-16 Chong Yidong <cyd@stupidchicken.com>
7016
7017 * fileio.c (Fexpand_file_name): Doc fix.
7018
7019 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
7020 of :foreground and :background equivalent to unspecified (20.x
7021 compatibility).
7022
70232008-10-15 Eli Zaretskii <eliz@gnu.org>
7024
7025 * buffer.c (syms_of_buffer): Doc fix.
7026
70272008-10-14 Kenichi Handa <handa@m17n.org>
7028
7029 * font.c (font_clear_prop): When clearing font width, clear the
7030 average width field too.
7031
70322008-10-12 Andreas Schwab <schwab@suse.de>
7033
7034 * ftfont.c (ftfont_shape_by_flt): Make static.
7035 * ftfont.h (ftfont_shape_by_flt): Don't declare.
7036
7037 * font.c: Don't include <m17n-flt.h>.
7038
70392008-10-10 Eli Zaretskii <eliz@gnu.org>
7040
7041 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
7042
70432008-10-09 Eli Zaretskii <eliz@gnu.org>
7044
7045 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
7046 away code.
7047
70482008-10-09 Chong Yidong <cyd@stupidchicken.com>
7049
7050 * dispnew.c (update_text_area): Avoid looping due to large glyph
7051 overhangs (bug#1070).
7052
70532008-10-09 Kenichi Handa <handa@m17n.org>
7054
7055 * fontset.c (face_for_char): If face->fontset is negative, just
7056 return ascii_face.
7057
f5385255
SM
7058 * font.c (font_delete_unmatched): Fix previous change.
7059 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
7060
70612008-10-09 Martin Rudalics <rudalics@gmx.at>
7062
7063 * frame.c (Fraise_frame): On text-only terminals select frame in
7064 order to make it visible. (Bug#1061)
7065
70662008-10-08 Chong Yidong <cyd@stupidchicken.com>
7067
7068 * fontset.c (fontset_find_font): Check frame validity.
7069
70702008-10-07 Chong Yidong <cyd@stupidchicken.com>
7071
a9b555d3 7072 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
7073 (xg_display_close): Allow Emacs to close all displays (bug#985).
7074
70752008-10-06 Andreas Schwab <schwab@suse.de>
7076
f5385255 7077 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
7078
70792008-10-06 Chong Yidong <cyd@stupidchicken.com>
7080
f5385255 7081 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 7082
a9b555d3 7083 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
7084
7085 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
7086 during initialization.
7087
70882008-10-04 Eli Zaretskii <eliz@gnu.org>
7089
7090 * xdisp.c (redisplay_internal): If frame switched, redisplay the
7091 whole thing on MSDOS frames as well as on a TTY.
7092
7093 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
7094 well as for TTY.
7095 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
7096 well as on a TTY.
7097
7098 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
7099 as well as for TTY.
7100
7101 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
7102
7103 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
7104 MSDOS frames as well.
7105
71062008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7107
7108 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
7109 correct arguments.
b71ac3dd 7110 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
7111
71122008-10-03 Glenn Morris <rgm@gnu.org>
7113
7114 * emacs.c (USAGE1): Add --daemon.
7115
71162008-10-02 Eli Zaretskii <eliz@gnu.org>
7117
7118 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
7119 100, so it's in percents as advertised.
7120
71212008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7122
7123 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
7124 (ns_output.current_cursor, ns_output.desired_cursor)
7125 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
7126 (FRAME_NEW_CURSOR_COLOR): Remove.
7127
7128 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 7129 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
7130 enumeration (HOLLOW_BOX_CURSOR, etc.).
7131
7132 * nsterm.m (ns_frame_rehighlight): Remove commented code.
7133 (draw_window_cursor): Simplify code.
f5385255
SM
7134 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7135 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7136 updates manually.
a9b555d3
JB
7137 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7138 Use core Emacs cursor types.
aac0c6e3 7139
b8ff72fa 7140 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7141
71422008-10-02 Martin Rudalics <rudalics@gmx.at>
7143
7144 * process.c (Faccept_process_output): Fix doc-string.
7145
71462008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7147
7148 * gmalloc.c (__sbrk): Also define for uClibc.
7149
7150 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7151 for uClibc.
7152
71532008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7154
7155 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7156 styles.
7157 (nsfont_open): Reenable the cache.
7158
71592008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7160
7161 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7162 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7163
71642008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7165
7166 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7167 a suspended terminal.
7168
71692008-09-30 Michael Albinus <michael.albinus@gmx.de>
7170
7171 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7172
71732008-09-30 Eli Zaretskii <eliz@gnu.org>
7174
7175 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7176
71772008-09-30 Chong Yidong <cyd@stupidchicken.com>
7178
7179 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7180 in a continued line coincides with a line beginning.
7181
71822008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7183
7184 * nsfont.m (nsfont_trait_distance): Fix bug.
7185 (nsfont_list): Return a list rather than a vector (syncs with Handa
7186 changes of 2008-05-14).
7187 (nsfont_open): Improve logging.
7188
71892008-09-29 Andreas Schwab <schwab@suse.de>
7190
7191 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7192
71932008-09-28 Martin Rudalics <rudalics@gmx.at>
7194
7195 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7196 name as char-resolve-modifiers.
7197 Reported by: Markus Triska <markus.triska@gmx.at>
7198
71992008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7200
7201 * dispnew.c (init_display): Return earlier when running as a daemon.
7202
72032008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7204
7205 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7206
72072008-09-27 Eli Zaretskii <eliz@gnu.org>
7208
7209 * composite.c (Fcomposition_get_gstring)
7210 (Fcompose_region_internal, Fcompose_string_internal)
7211 (Ffind_composition_internal): Doc fix.
7212 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7213 (syms_of_composite) <auto-composition-function>: Doc fix.
7214 (syms_of_composite) <composition-function-table>: Doc fix.
7215
72162008-09-25 Chong Yidong <cyd@stupidchicken.com>
7217
7218 * search.c (wordify): New argument for lax word-ends.
7219 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7220
72212008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7222
7223 * lisp.h (is_daemon): Declare.
7224 * dispnew.c (init_display): Do not try to initialize the terminal
7225 when running as a daemon.
7226
72272008-09-22 Chong Yidong <cyd@stupidchicken.com>
7228
7229 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7230 x_display_pixel_height.
7231
72322008-09-22 Martin Rudalics <rudalics@gmx.at>
7233
7234 * undo.c (record_point): Don't call Fundo_boundary for first
7235 change. (Bug#731)
7236
72372008-09-22 Juanma Barranquero <lekktu@gmail.com>
7238
7239 * emacs.c (Fdaemonp): Doc fix.
7240
72412008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7242
7243 * emacs.c (main): Place #ifdef in the proper place.
7244
72452008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7246
7247 * emacs.c (standard_args): Add --daemon.
7248 (main): Disconnect from the terminal when --daemon is passed.
7249 (is_daemon): New variable.
7250 (Fdaemonp): New function.
7251 (syms_of_emacs): Defsubr it.
7252
72532008-09-20 Chong Yidong <cyd@stupidchicken.com>
7254
7255 * xdisp.c (get_next_display_element): Handle string display
7256 correctly when checking for the end of a box run.
7257
72582008-09-20 Glenn Morris <rgm@gnu.org>
7259
7260 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7261 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7262 (Frename_file): Avoid copying to trash if a rename involves
7263 a delete. (Bug#964).
7264
72652008-09-20 Eli Zaretskii <eliz@gnu.org>
7266
7267 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7268 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7269 frames as well as termcap frames.
7270 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7271 get_named_tty.
7272
72732008-09-19 Eli Zaretskii <eliz@gnu.org>
7274
7275 * process.c (procfs_system_process_attributes): Fix cmdline in
7276 case /proc/PID/cmdline is empty.
7277
7278 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7279 x_display_pixel_height.
7280
72812008-09-19 Juanma Barranquero <lekktu@gmail.com>
7282
7283 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7284
7285 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7286 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7287
72882008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7289
7290 * dispextern.h (struct it): Move line_wrap away from the middle of
7291 bitfields. Move voffset in struct iterator_stack_entry after the
7292 bitfields. Move tab_width near after another short.
7293
72942008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7295
7296 * frame.h (struct frame): Move alpha from the middle of bitfields.
7297
7298 * window.h (struct window): Move frozen_window_start_p after the
7299 rest of the bitfields to reduce padding.
7300
73012008-09-18 Chong Yidong <cyd@stupidchicken.com>
7302
7303 * xterm.h (x_display_info): Remove `height' and `width' members.
7304
7305 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7306
7307 * w32term.h (w32_display_info): Remove `height', `width',
7308 `height_in', and `width_in' members.
7309
b8ff72fa
SM
7310 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7311 New functions.
aac0c6e3
MR
7312 (x_calc_absolute_position): Use them.
7313 (x_term_init): Omit removed `height' and `width' members.
7314
b8ff72fa
SM
7315 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7316 New functions.
aac0c6e3
MR
7317 (w32_read_socket, x_calc_absolute_position): Use them.
7318 (w32_initialize_display_info, w32_term_init): Omit removed members
7319 of w32_display_info.
7320
b8ff72fa
SM
7321 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7322 New functions.
7323 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7324
b8ff72fa
SM
7325 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7326 New functions.
aac0c6e3
MR
7327 (x_calc_absolute_position): Use them.
7328 (x_term_init): Omit removed `height' and `width' members.
7329
7330 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7331 (compute_tip_xy):
7332 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7333 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7334 x_display_pixel_width.
7335
73362008-09-18 Kenichi Handa <handa@m17n.org>
7337
7338 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7339 (composition_compute_stop_pos): Fix handling of static composition.
7340 (Fcomposition_get_gstring): Check FROM and TO at first.
7341
73422008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7343
46e722a9 7344 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7345 mixup (YAILOM).
7346
73472008-09-17 Chong Yidong <cyd@stupidchicken.com>
7348
7349 * indent.c (Fvertical_motion): Use position reported by iterator
7350 instead of PT for determining screen motion (bug#943).
7351
73522008-09-17 Romain Francoise <romain@orebokech.com>
7353
7354 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7355
73562008-09-17 Kenichi Handa <handa@m17n.org>
7357
7358 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7359
7360 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7361 if necessary.
7362
73632008-09-16 Kenichi Handa <handa@m17n.org>
7364
7365 * coding.c (make_conversion_work_buffer): Avoid calling
7366 Fget_buffer_create if it is not necessary.
7367
73682008-09-15 Martin Rudalics <rudalics@gmx.at>
7369
7370 * window.c (Fselect_window): Don't update window_select_count and
7371 use_time when norecord is not nil.
7372
73732008-09-14 Kenichi Handa <handa@m17n.org>
7374
7375 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7376 specpdl_ptr.
7377
73782008-09-12 Kenichi Handa <handa@m17n.org>
7379
7380 * indent.c (scan_for_column): Don't handle automatic composition
7381 if the current buffer is not associated with a window.
7382
7383 * composite.c (composition_reseat_it): If the current buffer is
7384 not associated with a window, ignore the automatic composition.
7385 (find_automatic_composition): Likewise.
7386
73872008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7388
7389 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7390 (Fgpm_mouse_stop): Use it.
7391 * termhooks.h (close_gpm): Declare.
7392 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7393 connection if Gpm_GetEvent fails.
7394
7395 * window.c (set_window_buffer): Always preserve current-buffer.
7396
73972008-09-12 Glenn Morris <rgm@gnu.org>
7398
7399 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7400
74012008-09-11 Glenn Morris <rgm@gnu.org>
7402
7403 * charset.c (charset-map-path): Doc fix.
7404
74052008-09-10 Kenichi Handa <handa@m17n.org>
7406
7407 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7408
7409 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7410 compose a grapheme cluster with the preceding base glyph.
7411
7412 * composite.c (composition_compute_stop_pos): Fix previous change.
7413 Reset cmp_it->id to -1 at first.
7414
74152008-09-10 Glenn Morris <rgm@gnu.org>
7416
7417 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7418
74192008-09-09 Chong Yidong <cyd@stupidchicken.com>
7420
7421 * keyboard.c (read_key_sequence): Reapply translation maps when
7422 switching keyboards.
7423
74242008-09-09 Kenichi Handa <handa@m17n.org>
7425
7426 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7427 characters.
7428
7429 * composite.c (FORWARD_CHAR): Fix calculation
7430 of (POSITION).pos_byte.
7431 (composition_compute_stop_pos): Limit the search of composition to
7432 at most 500 characters ahead. If we reach the limit or find a
7433 newline, set cmp_it->ch to -2 and return 0.
7434 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7435
74362008-09-08 Kenichi Handa <handa@m17n.org>
7437
7438 * indent.c (Fvertical_motion): Be sure to set
7439 it_overshoot_expected if it.cmp_it.id is non-negative.
7440
74412008-09-07 Andreas Schwab <schwab@suse.de>
7442
7443 * callproc.c (Fcall_process): Don't hold references to string data
7444 across garbage collection. Move initialisation of new_argv down
7445 to avoid compiler bug.
7446
74472008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7448
7449 * process.c (Fsystem_process_attributes): Doc fix.
7450
74512008-09-07 Chong Yidong <cyd@stupidchicken.com>
7452
7453 * callproc.c (Fcall_process): Canonicalize current directory name.
7454
7455 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7456 iterator advances to the next line if the current line ends in a
7457 continued tab.
7458
74592008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7460
7461 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7462 member to point to cmp_from.
7463
7464 * xdisp.c: Doc fix for references to gidx data member.
7465
74662008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7467
7468 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7469
74702008-09-07 Kenichi Handa <handa@m17n.org>
7471
7472 * composite.c (FORWARD_CHAR): Check STOP after
7473 incrementing (POSITION).pos.
7474
74752008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7476
7477 * process.c (Fsystem_process_attributes): Doc fix.
7478
74792008-09-06 Chong Yidong <cyd@stupidchicken.com>
7480
7481 * keyboard.c (Ftop_level): Doc fix.
7482
74832008-09-06 Eli Zaretskii <eliz@gnu.org>
7484
7485 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7486 minibuffer, don't let lower part of menu invade the echo area.
7487
7488 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7489 "char *q" to access menu text and advance through it. Revert the
7490 change that displayed ">" instead of ASCII character 0x10.
7491
74922008-09-05 Eli Zaretskii <eliz@gnu.org>
7493
7494 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7495 toggle boxes and radio buttons on MS-DOS as well.
7496
74972008-09-05 Kenichi Handa <handa@m17n.org>
7498
7499 * composite.c (autocmp_chars): Check lookback count.
7500 (composition_compute_stop_pos): Set cmp_it->lookback.
7501 (composition_reseat_it): Check lookback count.
7502 (struct position_record): New struct.
7503 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7504 (find_automatic_composition): New function.
7505 (composition_adjust_point): Use find_automatic_composition.
7506
7507 * dispextern.h (struct composition_it): New member lookback.
7508
75092008-09-02 Chong Yidong <cyd@stupidchicken.com>
7510
7511 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7512 if moving by a single line.
7513
75142008-09-02 Andreas Schwab <schwab@suse.de>
7515
7516 * xterm.c (x_delete_display): Fix merge error.
7517
7518 * fileio.c (Fexpand_file_name): Remove unused variables.
7519
75202008-09-02 Eli Zaretskii <eliz@gnu.org>
7521
7522 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7523 storage on all platforms, not just on DOS_NT.
7524
75252008-09-02 Jason Rumney <jasonr@gnu.org>
7526
b8ff72fa
SM
7527 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7528 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7529
75302008-09-01 Chong Yidong <cyd@stupidchicken.com>
7531
7532 * xfaces.c (Finternal_set_alternative_font_family_alist)
7533 (Finternal_set_alternative_font_registry_alist): Properly copy
7534 entire alist structure.
7535
75362008-09-01 Kenichi Handa <handa@m17n.org>
7537
d66c0241 7538 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7539 representative chars of the script is a vector.
d66c0241
JB
7540 (ftfont_list): Handle the case where the representative chars of
7541 the script is a vector.
aac0c6e3
MR
7542
7543 * character.c (syms_of_character): Docstring of
7544 script-representative-chars fixed.
7545
75462008-08-31 Eli Zaretskii <eliz@gnu.org>
7547
7548 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7549 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7550 the menu. Allocate larger buffer for `text', to account for
7551 possible ^C characters.
7552
75532008-08-31 Martin Rudalics <rudalics@gmx.at>
7554
7555 * xdisp.c (prepare_menu_bars): Don't call
7556 Vwindow_size_change_functions with arg Qt.
7557
75582008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7559
7560 * font.h (font_range):
7561 * fileio.c (report_file_error):
46e722a9
SM
7562 * composite.c (composition_update_it): Yet another int/Lisp_Object
7563 mixup (YAILOM).
aac0c6e3
MR
7564
75652008-08-30 Glenn Morris <rgm@gnu.org>
7566
7567 * data.c (Fmake_variable_frame_local): Doc fix.
7568
7569 * frame.c (Fmodify_frame_parameters): Doc fix.
7570
75712008-08-30 Eli Zaretskii <eliz@gnu.org>
7572
7573 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7574 needed by GetTokenInformation.
7575 (w32_system_process_attributes): Check return values of all system
7576 APIs.
7577
7578 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7579 only when the state changes.
7580 (IT_update_begin, IT_update_end): Add termscript trace.
7581
7582 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7583 clipboard is unavailable. Set dst to NULL if it doesn't point to
7584 malloc'ed data.
7585 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7586 passing random values to xfree.
7587
7588 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7589 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7590
75912008-08-29 Jason Rumney <jasonr@gnu.org>
7592
7593 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7594
75952008-08-29 Eli Zaretskii <eliz@gnu.org>
7596
7597 * composite.c (fill_gstring_body): Avoid compiler warnings.
7598
7599 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7600 LGLYPH_SET_CODE to avoid compiler warnings.
7601
2ae37cf0 7602 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7603
7604 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7605
7606 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7607 LGLYPH_SET_CODE.
7608
76092008-08-29 Kenichi Handa <handa@m17n.org>
7610
7611 * fileio.c (report_file_error): Don't downcase the first character
7612 of errstring if it is still unibyte.
7613
76142008-08-29 Kenichi Handa <handa@m17n.org>
7615
7616 These changes are to re-implement the automatic composition so
7617 that it doesn't use text properties.
7618
7619 * Makefile.in (ftfont.o): Depend on composite.h.
7620 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7621
7622 * character.h (Vunicode_category_table): Extern it.
7623
7624 * character.c (Vunicode_category_table): New variable.
7625 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7626
7627 * chartab.c (optimize_sub_char_table): Perform more greedy
7628 optimization.
7629
b8ff72fa
SM
7630 * composite.h (enum composition_method):
7631 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7632 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7633 (Vcomposition_function_table): Extern it.
7634 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7635 (composition_gstring_put_cache, composition_gstring_from_id)
7636 (composition_gstring_p, composition_gstring_width)
7637 (composition_compute_stop_pos, composition_reseat_it)
7638 (composition_update_it, composition_adjust_point): Extern them.
7639 (Fcomposition_get_gstring): EXFUN it.
7640
d66c0241 7641 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7642 (Vcomposition_function_table)
7643 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7644 (gstring_hash_table, gstring_work, gstring_work_headers):
7645 New variables.
aac0c6e3
MR
7646 (gstring_lookup_cache, composition_gstring_put_cache)
7647 (composition_gstring_from_id, composition_gstring_p)
7648 (composition_gstring_width, fill_gstring_header)
7649 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7650 (composition_reseat_it, composition_update_it)
b8ff72fa 7651 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7652 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7653 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7654 Defsubr composition_get_gstring.
aac0c6e3
MR
7655
7656 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7657 cmp_id.
7658 (struct glyph_string): Delete the member gidx. New members
7659 cmp_id, cmp_from, and cmp_to.
7660 (enum it_method): Delete GET_FROM_COMPOSITION.
7661 (struct composition_it): New struct.
7662 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7663 Delete c, len, cmp_id, cmp_len in u.comp.
7664
7665 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7666 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7667 (enum lglyph_indices): Likewise.
b8ff72fa 7668 (font_range): Adjust extern.
aac0c6e3
MR
7669 (font_fill_lglyph_metrics): Extern it.
7670
7671 * font.c (QCf): New variable.
7672 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7673 (font_prepare_composition): Delete this function.
7674 (font_range): Type and arguments changed.
7675 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7676 (font_fill_lglyph_metrics): New function.
b8ff72fa 7677 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7678 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7679 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7680 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7681
7682 * fontset.h (font_for_char): Extern it.
7683
7684 * fontset.c (font_for_char): New function.
7685
7686 * ftfont.c: Include composite.h.
7687 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7688 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7689
7690 * indent.c: Include composite.h and dispextern.h.
7691 (check_composition): Delete this function.
7692 (scan_for_column): Handle composition by
7693 composition_compute_stop_pos, composition_reseat_it, and
7694 composition_update_it.
7695 (compute_motion): Likewise.
7696 (Fvertical_motion): Fix checking of composition.
7697
7698 * keyboard.c (adjust_point_for_property): Check composition by
7699 composition_adjust_point.
7700
b8ff72fa 7701 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7702 struct glyph_string.
7703
b8ff72fa
SM
7704 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7705 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7706 struct glyph.
7707 (produce_composite_glyph): Likewise.
7708
b8ff72fa
SM
7709 * w32term.c (x_draw_composite_glyph_string_foreground):
7710 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7711 (x_draw_glyph_string): Likewise.
7712
7713 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7714 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7715
7716 * xdisp.c: Include font.h.
7717 (it_props): Delete the entry for Qauto_composed.
7718 (init_iterator): Initialize it->cmp_it.id to -1.
7719 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7720 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7721 (handle_auto_composed_prop): Delete it.
7722 (handle_composition_prop): Handle only static composition.
7723 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7724 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7725 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7726 (pop_it): Likewise.
7727 (get_next_element): Delete next_element_from_composition.
7728 (CHAR_COMPOSED_P): New macro.
7729 (get_next_display_element): For automatic composition, get a face
7730 from the font in the glyph-string.
7731 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7732 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7733 (next_element_from_string): Check if the character at the current
7734 position is composed by CHAR_COMPOSED_P.
7735 (next_element_from_buffer): Likewise.
d66c0241
JB
7736 (next_element_from_composition): Adjust for the change of struct it.
7737 Update it->cmp_it.
b8ff72fa
SM
7738 (dump_glyph): Adjust for the change of struct glyph.
7739 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7740 it and struct glyph. Don't handle automatic composition here.
7741 (fill_gstring_glyph_string): New function.
7742 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7743 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7744 (BUILD_GSTRING_GLYPH_STRING): New macro.
7745 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7746 automatic composition.
b8ff72fa 7747 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7748 struct glyph.
b8ff72fa 7749 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7750
b8ff72fa 7751 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7752 the change of struct glyph_string.
7753 (x_draw_glyph_string): Likewise.
7754
77552008-08-29 Glenn Morris <rgm@gnu.org>
7756
7757 * buffer.c (word-wrap): Doc fix.
7758 * xdisp.c (truncate-partial-width-windows): Doc fix.
7759 Increase default to 50.
7760
77612008-08-29 Chong Yidong <cyd@stupidchicken.com>
7762
7763 * xdisp.c (update_tool_bar_unwind): New function.
7764 (update_tool_bar): Temporarily set selected frame before building
7765 tool-bar items.
7766
77672008-08-28 Michael Albinus <michael.albinus@gmx.de>
7768
7769 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7770 snprintf, respectively.
7771 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7772
77732008-08-28 Chong Yidong <cyd@stupidchicken.com>
7774
7775 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7776 LDFLAGS to GNUstep CC invocation.
7777
77782008-08-27 Chong Yidong <cyd@stupidchicken.com>
7779
7780 * indent.c (Fvertical_motion): Revert last change. Handle the
7781 general case where we are moving forward, and PT spans multiple
7782 screen lines.
7783
7784 * eval.c (find_handler_clause): Temporarily increase
7785 max-lisp-eval-depth while printing the backtrace buffer, to
7786 guarantee that help-mode code can run.
7787
77882008-08-27 Eli Zaretskii <eliz@gnu.org>
7789
7790 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7791 colors under -rv.
7792 (IT_set_frame_parameters): Don't swap foreground and background
7793 colors if `(reverse . t)' is present in the frame properties.
7794 (internal_terminal_init): Call init_frame_faces only for the
7795 initial frame.
7796
77972008-08-27 Andreas Schwab <schwab@suse.de>
7798
7799 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7800
78012008-08-27 Andreas Schwab <schwab@suse.de>
7802
7803 * search.c (search_buffer): Set char_base to zero only at the end.
7804
78052008-08-27 Kenichi Handa <handa@m17n.org>
7806
b8ff72fa 7807 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7808
78092008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7810
7811 * xterm.c (x_term_init): Temporarily hide the partially
7812 initialized terminal while calling vendor-specific-keysyms.
7813
78142008-08-26 Eli Zaretskii <eliz@gnu.org>
7815
7816 * msdos.c (internal_terminal_init): Most initializations done only
7817 once, especially initial_screen_colors[] and termscript open.
7818
78192008-08-26 Chong Yidong <cyd@stupidchicken.com>
7820
7821 * eval.c (Fcondition_case): Doc fix.
7822
7823 * widgetprv.h (EmacsFramePart): Change font member to the new font
7824 struct.
7825
7826 * widget.c: Include character.h and font.h for XSETFONT.
7827 (setup_frame_gcs): Compute X font id from font struct, just once.
7828
78292008-08-26 Eli Zaretskii <eliz@gnu.org>
7830
7831 * term.c (get_named_tty): Fix last change.
7832
78332008-08-26 Chong Yidong <cyd@stupidchicken.com>
7834
7835 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7836 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7837
78382008-08-25 Eli Zaretskii <eliz@gnu.org>
7839
7840 * frame.c (do_switch_frame): Mark previously displayed frame as
7841 obscured for FRAME_MSDOS_P frames as well.
7842
78432008-08-24 Eli Zaretskii <eliz@gnu.org>
7844
7845 * frame.c (make_terminal_frame): Initialize f->terminal,
7846 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7847 Set the top frame to newly created frame.
7848 (Fmake_terminal_frame): Reuse the_only_display_info.
7849
7850 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7851 estimating available memory.
7852
b97439ce 78532008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7854
7855 * nsterm.m (ns_draw_window_cursor): Don't call
7856 NSDisableScreenUpdates and NSEnableScreenUpdates on
7857 non-NS_IMPL_COCOA systems.
7858
78592008-08-23 Andreas Schwab <schwab@suse.de>
7860
7861 * process.c (procfs_system_process_attributes): Fix use of
7862 uninitialized variables.
7863
78642008-08-23 Eli Zaretskii <eliz@gnu.org>
7865
7866 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7867
7868 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7869 calling tty-set-up-initial-frame-faces.
7870
b8ff72fa
SM
7871 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7872 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7873
7874 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7875 addition to output_termcap.
7876
7877 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7878
7879 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7880 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7881 highlight.
7882
7883 * process.c [!subprocesses]: Define QCname.
7884 (syms_of_process): Intern and staticpro it.
7885
7886 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7887 Adjust for changes in encoding/decoding routines.
7888 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7889 encode_coding and decode_coding.
7890
b8ff72fa 7891 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7892
7893 * dosfns.c: Include frame.h before termhooks.h.
7894 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7895 variable termscript.
7896
7897 * s/msdos.h (USER_FULL_NAME): Define.
7898 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7899
7900 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7901 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7902 pw->pw_gecos.
7903
7904 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7905 SELECTED_FRAME as additional (1st) argument.
7906 (tty_read_avail_input): Handle output_msdos_raw in
7907 addition to output_termcap.
7908
7909 * msdos.c: Include frame.h before termhooks.h.
7910 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7911 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7912 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7913 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7914 (IT_set_terminal_modes, IT_reset_terminal_modes)
7915 (IT_set_frame_parameters): Use tty->termscript instead of a global
7916 variable termscript.
7917 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7918 global variable terminal_coding. Don't refer to
7919 Vnonascii_translation_table.
7920 (internal_terminal_init): Set Vwindow_system in current_kboard.
7921 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7922 Announce date and time of session start, if termscript is open.
7923 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7924 term.c:init_tty). Open termscript only of not already open.
7925 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7926 here instead of dos_ttraw. Don't initialize display if this is an
7927 initial tty. Don't set FRAME_FONT.
7928 (Vwindow_system_version): Bump to 23.
7929 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7930 is available, set up mouse_position_hook.
7931 (dos_ttraw, IT_set_terminal_modes): If called with initial
7932 terminal, do nothing.
7933 (IT_set_frame_parameters): Handle the Qtty_type frame
7934 parameter by calling internal_terminal_init.
7935 (dos_set_window_size, show_mouse_face)
7936 (clear_mouse_face, IT_note_mode_line_highlight)
7937 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7938 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7939 (initialize_msdos_display): New function.
7940 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7941 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7942 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7943 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7944 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7945 (request_sigio, unrequest_sigio): Don't define, now defined on
7946 sysdep.c.
7947 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7948
7949 * term.c [MSDOS]: Include msdos.h.
7950 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7951 conditional to DOS_NT. Allow only one call to this function in a
7952 session. Don't allocate a new struct tty_display_info; instead,
7953 reuse the_only_display_info. Call get_tty_size to get screen
7954 dimensions. Call init_baud_rate to set bad_rate.
7955 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7956 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7957 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7958 (get_tty_terminal, get_named_tty, Ftty_type)
7959 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7960 output_termcap.
b8ff72fa
SM
7961 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7962 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7963 only when subprocesses are supported.
aac0c6e3
MR
7964
7965 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7966 f->output_data.x.
7967 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7968 terminal devices.
7969
5582fbc7 7970 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7971 x_output.
7972 (FRAME_FONT): Use output_data.tty.
7973 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7974 (struct x_display_info): Rename from display_info. Update all users in
7975 msdos.c.
aac0c6e3 7976 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7977 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7978 (dos_ttraw): Update prototype.
7979
7980 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7981 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7982
79832008-08-23 Jason Rumney <jasonr@gnu.org>
7984
7985 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7986 (fn_TIFFSetDirectory): New library function used.
7987 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7988 (tiff_load): Use :index to select among multiple images. Set count
7989 property when multiple images exist.
7990 (gif_format): Use :index, not :image.
7991
79922008-08-23 Chong Yidong <cyd@stupidchicken.com>
7993
7994 * xdisp.c (try_scrolling): Check INT_MAX instead of
7995 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7996 to obtain INT_MAX.
7997
79982008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7999
8000 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
8001
80022008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
8003
8004 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
8005 GNUstep library location.
8006
80072008-08-21 Chong Yidong <cyd@stupidchicken.com>
8008
8009 * xfaces.c (x_update_menu_appearance): Check validity of menu font
8010 before using it.
8011
8012 * puresize.h (BASE_PURESIZE): Increase to 1250000.
8013
80142008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8015
8016 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
8017 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
8018 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
8019 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
8020 (EmacsApp-cursor_blink_handler): Remove declaration.
8021 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
8022 match 01 Feb 2008 changes in xterm.c.
8023 (ns_read_socket): Add cast to avoid warning.
8024 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
8025 GNUstep.
8026
80272008-08-20 Chong Yidong <cyd@stupidchicken.com>
8028
8029 * xselect.c (x_get_foreign_selection): Return nil if desired
8030 selection could not be obtained, instead of signalling an error.
8031
80322008-08-20 David Reitter <david.reitter@gmail.com>
8033
8034 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
8035 * nsterm.m: Remove ns-specific code for cursor blinking.
8036 (ns_draw_window_cursor): Clear cursor properly rather than
8037 redrawing the area. Respect width of bar cursors.
8038 These changes enable the use of generic blink-cursor-mode and
8039 generic cursor types in NS and support smooth cursor movements (do
8040 not blink off after command).
8041 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
8042 Nextstep, too.
8043
80442008-08-19 Kenichi Handa <handa@m17n.org>
8045
8046 * font.c (Vfont_log_deferred): New variable.
8047 (font_add_log): Check Vfont_log_deferred.
8048 (font_deferred_log): New function.
8049
8050 * font.h (font_deferred_log): Extern it.
8051
8052 * fontset.c (reorder_font_vector): Use encoding charset of fonts
8053 for sorting.
8054 (face_for_char): Use deferred log.
8055
80562008-08-18 Kenichi Handa <handa@m17n.org>
8057
8058 * fontset.c (face_for_char): Add font log.
8059
8060 * font.c (font_add_log): Add the font properties :script, :lang,
8061 and :otf in the log.
8062
80632008-08-17 Chong Yidong <cyd@stupidchicken.com>
8064
8065 * xdisp.c: Remove dead code.
8066 (handle_invisible_prop, next_overlay_string): Defer call to
8067 setup_for_ellipsis.
8068 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
8069
80702008-08-15 Chong Yidong <cyd@stupidchicken.com>
8071
8072 * xfaces.c (lookup_derived_face): Properly handle possible zero
8073 return value of get_lface_attributes.
8074 (merge_faces): Don't tell lookup_derived_face to signal an error
8075 if face is not found.
8076
8077 * dired.c (Fdirectory_files): Doc fix.
8078
8079 * process.c (make_process): Initialize kill_without_query struct
8080 member.
8081
80822008-08-15 Eli Zaretskii <eliz@gnu.org>
8083
8084 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
8085 Alternative calculation of totphys for Visual Studio 6.
8086
8087 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
8088
8089 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
8090 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
8091 All users changed.
8092 (stat): Only root directory passed to GetDriveType. Allow RAM
8093 disk as well as local fixed disk when w32-get-true-file-attributes
8094 is set to `local'.
8095 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
8096 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
8097 (w32_cached_id, w32_add_to_cache): New functions.
8098 (get_name_and_id): Look account names in the cache before calling
8099 lookup_account_sid.
8100 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
8101 New initialization flags.
8102 (globals_of_w32): Initialize them to zero.
8103 (w32_system_process_attributes): Use w32_cached_id and
8104 w32_add_to_cache.
8105
81062008-08-14 Lawrence Mitchell <wence@gmx.li>
8107
8108 * lread.c (Fread_char, Fread_char_exclusive): If no character
8109 event is read before timeout is reached, return nil, rather than
8110 converting to a number.
8111
81122008-08-14 Chong Yidong <cyd@stupidchicken.com>
8113
8114 * fns.c (use_dialog_box): Doc fix.
8115
8116 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
8117 on OS X.
8118
81192008-08-13 Chong Yidong <cyd@stupidchicken.com>
8120
8121 * frame.c (Qns_parse_geometry): New var.
8122 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
8123
81242008-08-11 Chong Yidong <cyd@stupidchicken.com>
8125
8126 * xdisp.c (x_produce_glyphs): Handle the case when font has no
8127 space character in calculating tabs.
8128
81292008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
8130
8131 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
8132
81332008-08-10 Glenn Morris <rgm@gnu.org>
8134
8135 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8136 silence gcc "limited range of data type" warnings in some
8137 make_fixnum_or_float calls.
8138
81392008-08-09 Eli Zaretskii <eliz@gnu.org>
8140
8141 * w32.c (w32_system_process_attributes): If the process does not
8142 exist, return nil.
8143
8144 * w32.c: Include thelp32.h, psapi.h and coding.h.
8145 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8146 declarations.
8147 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8148 (Process32Next_Proc): New typedefs.
8149 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8150 (g_b_init_process32_next, g_b_init_open_thread_token)
8151 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8152 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8153 (g_b_init_get_process_working_set_size)
8154 (g_b_init_global_memory_status_ex): New static variables.
8155 (globals_of_w32): Initialize them.
8156 (create_toolhelp32_snapshot, process32_first, process32_next)
8157 (open_thread_token, impersonate_self, revert_to_self)
8158 (get_process_memory_info, get_process_working_set_size)
8159 (global_memory_status, global_memory_status_ex): New wrapper
8160 functions.
8161 (w32_list_system_processes, w32_system_process_attributes)
8162 (enable_privilege, restore_privilege, ltime, process_times):
8163 New functions.
8164 (convert_time_raw): New function.
8165 (convert_time): Remove conversion of FILETIME into time in 100
8166 nsec units, call convert_time_raw instead.
8167
8168 * process.h (w32_list_system_processes, w32_system_process_attributes):
8169 Add prototypes.
8170 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8171 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8172 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8173 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8174
8175 * process.c (Fsystem_process_attributes): Doc fix.
8176
81772008-08-08 Chong Yidong <cyd@stupidchicken.com>
8178
8179 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8180 a continued multi-char glyph; if so, advance to the actual glyph.
8181
81822008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8183
8184 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8185
8186 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8187 (.m.o): Use it.
8188 * config.in: Regenerate.
8189
81902008-08-07 Chong Yidong <cyd@stupidchicken.com>
8191
8192 * xdisp.c (redisplay_window): Revert last change.
8193 (try_window): Check bottom scroll margin too.
8194
81952008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8196
8197 * config.in: Regenerate.
8198
8199 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8200 -list-load-path-shadows'.
8201 (nsgui.h): Reduce number of things depending on it.
8202
82032008-08-06 Chong Yidong <cyd@stupidchicken.com>
8204
8205 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8206 instead of window-end which does the wrong thing at eob.
8207 (try_cursor_movement): Minor optimization.
8208 (redisplay_window): If scroll margin is defined, don't assume
8209 window doesn't need scrolling.
8210
82112008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8212
8213 * config.in: Regenerate.
8214
8215 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8216 (mostlyclean): Don't delete *.d under NS.
8217
8218 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8219
82202008-08-06 Kenichi Handa <handa@m17n.org>
8221
8222 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8223
82242008-08-06 Andreas Schwab <schwab@suse.de>
8225
8226 * config.in: Regenerate.
8227
82282008-08-05 Chong Yidong <cyd@stupidchicken.com>
8229
8230 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8231 forcing a window start.
8232
8233 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8234 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8235
82362008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8237
8238 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8239 argument.
8240
82412008-08-05 Juanma Barranquero <lekktu@gmail.com>
8242
8243 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8244 <scroll-down-aggressively, before-change-functions>:
8245 <after-change-functions>: Reflow docstrings.
8246
82472008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8248 Ken Raeburn <raeburn@gnu.org>
8249
8250 Dock menu customization, based on a patch by Ken Raeburn, plus some
8251 other fixes.
8252 * nsmenu.m (dockMenu): New variable.
8253 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8254
8255 * nsterm.h (dockMenu): Declare.
8256
8257 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8258 (ns_term_init): Initialize dockMenu.
8259 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8260 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8261 left.
8262
8263 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8264
82652008-08-04 Chong Yidong <cyd@stupidchicken.com>
8266
8267 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8268
8269 * config.in: Regenerate.
8270
82712008-08-04 Seiji Zenitani <zenitani@mac.com>
8272
8273 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8274
82752008-08-04 Chong Yidong <cyd@stupidchicken.com>
8276
8277 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8278
82792008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8280
8281 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8282
8283 * keyboard.h: Comment an #endif.
8284
8285 * lisp.h (have_menus_p): Adjust comment.
8286
8287 * menu.c (find_and_return_menu_selection): Fix comparison with
8288 client_data.
8289
8290 * nsmenu.m (popup_activated_flag): New variable.
8291 (popup_activated): New function.
8292 (menu-or-popup-active-p): New exported lisp definition.
8293 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8294 when popup done.
8295 (ns_popup_dialog): Set popup_activated_flag.
8296
8297 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8298 version for GNUstep (handled by conditional typedef in nsterm.m).
8299 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8300 in rgb.txt).
8301
8302 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8303
8304 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8305
8306 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8307
8308 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8309 shortcircuit if popup_activated like GTK and X toolkit.
8310
8311 * m/inter386.h: Change DARWIN to DARWIN_OS.
8312
8313 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8314 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8315 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8316 comment on NO_SOCK_SIGIO.
8317
83182008-08-03 Chong Yidong <cyd@stupidchicken.com>
8319
8320 * nsterm.m (windowDidResize): Remove stopModal call.
8321
83222008-08-03 Andreas Schwab <schwab@suse.de>
8323
8324 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8325 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8326
83272008-08-02 Chong Yidong <cyd@stupidchicken.com>
8328
8329 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8330 Don't use uninitialized pointer variable when using getrlimit.
8331
83322008-08-02 Jason Rumney <jasonr@gnu.org>
8333
8334 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8335
83362008-08-02 Eli Zaretskii <eliz@gnu.org>
8337
8338 * alloc.c (NSTATICS): Bump to 0x640.
8339
8340 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8341
8342 * lisp.h: Add prototype for directory_files_internal.
8343
8344 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8345 New functions.
8346 (syms_of_process): Defsubr them. Add initializations for various
8347 Q* symbols used in procfs_system_process_attributes.
8348 (procfs_list_system_processes, procfs_system_process_attributes)
8349 [HAVE_PROCFS]: New functions.
8350 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8351 (procfs_get_total_memory): New functions.
8352
83532008-08-01 Juanma Barranquero <lekktu@gmail.com>
8354
8355 * xfaces.c (Fx_load_color_file): Fix previous change;
8356 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8357
83582008-08-01 Michael Albinus <michael.albinus@gmx.de>
8359
8360 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8361
83622008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8363
8364 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8365
83662008-08-01 Chong Yidong <cyd@stupidchicken.com>
8367
8368 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8369
8370 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8371 define NSApplicationDelegateReplySuccess.
8372 (EmacsView -converstationIdentifier): Use long instead of
8373 NSInteger for GNUstep, since it doesn't have NSInteger.
8374
8375 * xmenu.c: Revert last change.
8376
8377 * keyboard.h: Fix last change.
8378
83792008-08-01 Juanma Barranquero <lekktu@gmail.com>
8380
8381 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8382 on Windows.
8383
83842008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8385
8386 Warning clearing and clean-up in NS port.
8387 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8388 Add prototypes.
8389 * nsgui.h (FACE_DEFAULT): Remove, unused.
8390 (XGCValues): Change colors to unsigned long.
8391 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8392 nsterm.m.
8393 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8394 (ns_list_fonts): Remove, unused.
8395 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8396 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8397 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8398 (nsfont_draw): Compare face colors to 0, not nil.
8399 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8400 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8401 (-addSubmenuWithTitle:): Use NSMenuItem class.
8402 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8403 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8404 (ns_clip_to_row): Make gc arg a BOOL.
8405 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8406 ns_clip_to_row() call.
8407 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8408 used). Cast FRAME_FONT assignments.
8409 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8410 (ns_string_to_lispmod): Change arg to const char.
8411 (ns_term_init): Use NSMenuItem class.
8412 (EmacsApp -openFile:): Move to different section of file.
8413 (EmacsApp -application:openFiles:): Don't return a value, call
8414 -replyToOpenOrPrint:.
8415 (EmacsView -keyDown:): Fix up cast.
8416 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8417 (EmacsView -menuDown:): Cast tag in call to
8418 find_and_call_menu_selection().
8419 (ns_list_fonts): Remove, unused.
8420 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8421 (ns_fontname_to_xlfd): Make static.
8422 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8423 Remove prototypes (now in keyboard.h).
8424 (next_menubar_widget_id): Remove, unused.
8425 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8426 Remove prototypes (now in keyboard.h).
8427 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8428
84292008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8430
8431 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8432 (floatfns.o): Depend on syssignal.h.
8433 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8434
8435 * systty.h: Fix previous change that removed BSD_TERMIOS.
8436 Add comments to #ifdefs.
8437
84382008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8439
8440 * w32fns.c (w32-load-color-file): Remove.
8441 (x-open-connection): Use renamed Fx_load_color_file.
8442 * xfaces.c (x-load-color-file): Add.
8443 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8444 Emacs.clr.
8445 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8446
84472008-07-31 Michael Albinus <michael.albinus@gmx.de>
8448
8449 * dbusbind.c (Fdbus_call_method_asynchronously)
8450 (Fdbus_method_error_internal): New defuns.
8451 (xd_read_message): Handle also reply messages.
8452 (Vdbus_registered_functions_table): Extend docstring.
8453
84542008-07-31 Juanma Barranquero <lekktu@gmail.com>
8455
8456 * keyboard.c (gobble_input): Fix previous change.
8457
84582008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8459
8460 * bitmaps/README:
8461 * xfns.c:
8462 * termcap.c:
8463 * term.c:
8464 * syswait.h:
8465 * systty.h:
8466 * systime.h:
8467 * syssignal.h:
8468 * sysdep.c:
8469 * process.h:
8470 * process.c:
8471 * print.c:
8472 * ndir.h:
8473 * lread.c:
8474 * keyboard.c:
8475 * getpagesize.h:
8476 * floatfns.c:
8477 * fileio.c:
8478 * emacs.c:
8479 * doc.c:
8480 * dispnew.c:
8481 * dired.c:
8482 * data.c:
8483 * callproc.c:
8484 * buffer.c:
8485 * README:
8486 * Makefile.in:
8487 * s/template.h:
8488 * s/msdos.h:
8489 * m/vax.h: Remove VMS support.
8490 * s/vms.h:
8491 * vlimit.h:
8492 * uaf.h:
8493 * temacs.opt:
8494 * param.h:
8495 * ioctl.h: Remove file.
8496
84972008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8498
8499 * s/ms-w32.h (MULTI_KBOARD): Remove.
8500 * xterm.c:
8501 * xselect.c:
8502 * xfns.c:
8503 * window.c:
8504 * w32term.c:
8505 * w32fns.c:
8506 * terminal.c:
8507 * termhooks.h:
8508 * term.c:
8509 * sysdep.c:
8510 * keyboard.h:
8511 * keyboard.c:
8512 * frame.h:
8513 * frame.c:
8514 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8515 * config.in: Regenerate.
8516
85172008-07-30 Jason Rumney <jasonr@gnu.org>
8518
8519 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8520
8521 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8522 (w32font_open_internal): Get unicode version of textmetrics.
8523 Don't enable or disable glyph indices here.
8524 (w32font_open): Disable use of glyph indices.
8525
8526 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8527
85282008-07-30 Chong Yidong <cyd@stupidchicken.com>
8529
8530 * minibuf.c (Vread_buffer_function): Doc fix.
8531
85322008-07-30 John Paul Wallington <jpw@pobox.com>
8533
8534 * minibuf.c (read_buffer_completion_ignore_case): New var.
8535 (Fread_buffer): Use it.
8536
85372008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8538
8539 * systty.h (sensemode): Remove empty #if. Remove reference to
8540 BSD_TERMIOS, unused.
8541
8542 * sysdep.c: Remove reference to DGUX.
8543 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8544
8545 * config.in: Regenerate.
8546
85472008-07-30 Jason Rumney <jasonr@gnu.org>
8548
8549 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8550
85512008-07-29 Jason Rumney <jasonr@gnu.org>
8552
8553 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8554 is populated.
8555 (uniscribe_encode_char): Always use uniscribe.
8556 Avoid using context if cache is populated.
8557
85582008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8559
8560 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8561 open menu.
8562
8563 * gtkutil.c (menu_nav_ended): Remove.
8564 (create_menus): Remove signal connect for menu_nav_ended.
8565
85662008-07-28 Chong Yidong <cyd@stupidchicken.com>
8567
8568 * xdisp.c (redisplay_window): Check return value of
8569 compute_window_start_on_continuation_line before forcing a window
8570 start.
8571
85722008-07-28 Jason Rumney <jasonr@gnu.org>
8573
8574 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8575
8576 * w32term.c (w32_enable_unicode_output, cleartype_active):
8577 Remove obsolete display options.
8578 (x_draw_glyph_string_background): Don't use old cleartype_active
8579 workaround.
8580 (w32_initialize): Remove cleartype_active initialization.
8581 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8582
85832008-07-28 Andreas Schwab <schwab@suse.de>
8584
8585 * lisp.h (init_weak_hash_tables, syms_of_font)
8586 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8587 (remove_hash_entry): Don't declare.
8588 * eval.c (maybe_call_debugger): Make static and move before use.
8589 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8590 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8591 * xterm.h (x_set_frame_alpha): Declare.
8592
85932008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8594
8595 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8596 (create_menus): Connect selection-done to menu_nav_ended.
8597
85982008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8599
8600 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8601 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8602 parameter with read of 'alpha' one.
8603 (Qns_frame_parameter): Remove.
5582fbc7 8604 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8605 (next-selection-coding-system, Vselection_coding_system)
8606 (Vnext_selection_coding_system): Drop.
8607
86082008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8609
8610 * nsfns.m (do-applescript, do_applescript): Rename to
8611 ns-do-applescript, ns_do_applescript, and move within file.
8612
86132008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8614
8615 Remove support for Mac Carbon.
8616 * mactoolbox.c:
8617 * macterm.h:
8618 * macterm.c:
8619 * macselect.c:
8620 * macmenu.c:
8621 * macgui.h:
8622 * macfns.c:
8623 * mac.c: Remove file.
8624 * s/darwin.h:
8625 * m/intel386.h:
8626 * xfaces.c:
8627 * xdisp.c:
8628 * window.c:
8629 * tparam.c:
8630 * termhooks.h:
8631 * termcap.c:
8632 * term.c:
8633 * syssignal.h:
8634 * sysselect.h:
8635 * sysdep.c:
8636 * process.c:
8637 * lread.c:
8638 * lisp.h:
8639 * keyboard.c:
8640 * image.c:
8641 * fringe.c:
8642 * frame.h:
8643 * frame.c:
8644 * fontset.c:
8645 * font.h:
8646 * font.c:
8647 * fns.c:
8648 * fileio.c:
8649 * emacs.c:
8650 * dispnew.c:
8651 * dispextern.h:
8652 * config.in:
8653 * atimer.c:
2ae37cf0 8654 * Makefile.in: Remove code for Carbon.
aac0c6e3 8655
f0131492 86562008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8657
8658 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8659
86602008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8661
8662 * macterm.h (kCGBitmapByteOrder32Host): New define for
8663 non-universal SDKs.
8664
8665 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8666 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8667
8668 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8669 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8670
86712008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8672
8673 * w32inevt.c: Include dispextern.h.
8674
86752008-07-26 Andreas Schwab <schwab@suse.de>
8676
8677 * print.c (print_object): Fix off-by-one in last change.
8678
86792008-07-25 Juanma Barranquero <lekktu@gmail.com>
8680
8681 * term.c (syms_of_term): Don't initialize default_orig_pair,
8682 default_set_foreground and default_set_background on Windows.
8683
86842008-07-25 Jason Rumney <jasonr@gnu.org>
8685
8686 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8687 ScriptItemize. Clean up return value checking. Remove unused
8688 variables.
8689 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8690 shaping engine.
8691
8692 * w32font.c (w32font_has_char): Handle the case where we can't
8693 determine the script for a character.
8694
86952008-07-25 Chong Yidong <cyd@stupidchicken.com>
8696
8697 * term.c (syms_of_term): Initialize default_orig_pair,
8698 default_set_foreground, and default_set_background.
8699
8700 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8701 clash (bug#86).
8702 (getloadavg): Callers changed.
8703
8704 * image.c (svg_load_image): Fix last change.
8705 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8706 image size is valid. Use g_object_unref instead of deprecated
8707 rsvg_handle_free to free rsvg handle.
8708 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8709
87102008-07-25 Jason Rumney <jasonr@gnu.org>
8711
8712 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8713 surrogates before looking up glyph index.
8714 (w32font_text_extents): Encode as surrogates if falling back to
8715 functions that need UTF-16 wide chars.
8716
8717 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8718 BMP as surrogates before looking up glyph index.
8719
87202008-07-25 Chong Yidong <cyd@stupidchicken.com>
8721
8722 * image.c (svg_load_image): Check for failure in return value of
8723 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8724
87252008-07-25 Jason Rumney <jasonr@gnu.org>
8726
8727 * w32font.c (Fx_select_font): Reverse sense of second arg.
8728
87292008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8730
8731 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8732 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8733
8734 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8735 (PURESIZE): Use it.
8736
87372008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8738
8739 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8740 * m/alpha.h (TEXT_END):
8741 * m/ibmrs6000.h (TEXT_END):
8742 * m/macppc.h (TEXT_END):
8743 * s/darwin.h (TEXT_END):
8744 * s/msdos.h (TEXT_END): Remove, unused.
8745 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8746 * s/cygwin.h: Remove comment.
8747
8748 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8749 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8750 * m/intel386.h (DOT_GLOBAL_START):
8751 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8752 (USG): Remove, file not used on USG platforms.
8753
8754 * Makefile.in (HAVE_X11): Remove empty #else.
8755
87562008-07-24 Andreas Schwab <schwab@suse.de>
8757
8758 * fileio.c (Finsert_file_contents): Properly adjust undo list
8759 after format conversion.
8760
87612008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8762
8763 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8764 (menu_nav_ended): Remove.
8765 (create_menus): Remove signal connect for menu_nav_ended.
8766 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8767 create_menus.
8768 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8769
87702008-07-23 Jason Rumney <jasonr@gnu.org>
8771
8772 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8773 with opened font.
8774 (w32font_open): Set font type to gdi.
8775
8776 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8777
87782008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8779
8780 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8781 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8782 defines it.
8783 * unexec.c (ADDR_CORRECT): Define unconditionally.
8784
8785 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8786
8787 * unexec.c: Remove code depending on !COFF and USG, the file is
8788 not used for such systems.
8789
8790 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8791 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8792 (LD_SWITCH_SYSTEM_1): Remove, update users.
8793
8794 * s/darwin.h (DATA_END):
8795 * m/intel386.h (DATA_END):
8796 * m/ibmrs6000.h (DATA_END):
8797 * m/alpha.h (DATA_END): Remove, unused.
8798
8799 * config.in: Regenerate.
8800 * s/ms-w32.h (subprocesses): Define unconditionally.
8801 * s/template.h (subprocesses): Update comment.
8802 * s/vms.h (subprocesses):
8803 * s/usg5-4.h (subprocesses):
8804 * s/hpux10-20.h (subprocesses):
8805 * s/gnu-linux.h (subprocesses):
8806 * s/cygwin.h (subprocesses):
8807 * s/bsd-common.h (subprocesses):
8808 * s/aix4-2.h (subprocesses):
8809 * s/darwin.h (subprocesses): Do not define, defined by default now.
8810
8811 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8812 Remove all references.
8813 (temacs): Add GNUstep specific ld flags.
8814
8815 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8816 similarly to what X does.
8817
88182008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8819
8820 * nsfns.m (x-list-fonts): Remove.
8821 (syms_of_nsfns): Drop the x-list-fonts declaration.
8822 * nsterm.m: Get rid of remaining "//" comments.
8823
88242008-07-22 Chong Yidong <cyd@stupidchicken.com>
8825
8826 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8827
8828 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8829 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8830 (Fns_own_selection_internal, Fx_disown_selection_internal)
8831 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8832
8833 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8834 ... */' style of docstrings. Doc fixes.
8835
88362008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8837
8838 * terminfo.c (UP, BC, PC): Undo previous change.
8839
8840 * nsfns.m: Rename ns prefixed functions/variables to the
8841 corresponding x versions. Update references.
8842
88432008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8844
8845 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8846
88472008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8848
8849 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8850 Remove forwarding functions.
8851 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8852 non-static.
8853 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8854 non-static.
8855 (ns_frame_parm_handlers): Use the new names.
8856 (syms_of_nsfns): Move to the end of file.
8857
8858 * nsterm.m (syms_of_nsterm): Move to the end of file.
8859
8860 * dispnew.c (init_display): Remove code for X10.
8861
88622008-07-22 Jason Rumney <jasonr@gnu.org>
8863
8864 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8865 bare drive.
8866
88672008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8868
8869 * nsterm.m (syms_of_nsterm): Remove debugging println.
8870
88712008-07-22 David Reitter <david.reitter@gmail.com>
8872
8873 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8874 Carbon implementation of the same functionality: execute arbitrary
8875 AppleScript code.
8876
88772008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8878
8879 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8880 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8881 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8882 (Fx_display_mm_height, Fx_display_mm_width)
8883 (Fx_display_backing_store, Fx_display_visual_class)
8884 (Fx_display_save_under, Fx_open_connection)
8885 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8886 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8887 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8888 (Fx_display_pixel_width, Fx_display_pixel_height)
8889 (Fx_display_usable_bounds, Fx_display_planes)
8890 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8891 ... */' style of docstrings.
8892
88932008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8894
8895 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8896 on this platform.
8897 (mips):
8898 * m/iris4d.h (mips): Do not define.
8899 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8900
8901 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8902
8903 * image.c:
8904 * nsfns.m:
8905 * nsselect.m:
8906 * nsterm.h:
8907 * nsterm.m: Rename ns prefixed functions/variables to the
8908 corresponding x versions. Update references.
8909
8910 * m/ibms390x.h (NO_REMAP): Do not undefine.
8911
8912 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8913
89142008-07-21 Chong Yidong <cyd@stupidchicken.com>
8915
8916 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8917 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8918 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8919 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8920 (Fns_display_mm_height, Fns_display_mm_width)
8921 (Fns_display_backing_store, Fns_display_visual_class)
8922 (Fns_display_save_under, Fns_open_connection)
8923 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8924 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8925 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8926 (Fns_display_pixel_width, Fns_display_pixel_height)
8927 (Fns_display_usable_bounds, Fx_display_planes)
8928 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8929
89302008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8931
8932 * print.c (print_object): Check print_depth before searching for
8933 circularities.
8934
89352008-07-21 Michael Albinus <michael.albinus@gmx.de>
8936
8937 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8938 only sprintf.
8939
89402008-07-21 Kenichi Handa <handa@m17n.org>
8941
8942 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8943
89442008-07-20 Andreas Schwab <schwab@suse.de>
8945
8946 * syntax.c (find_start_pos, find_start_value)
8947 (find_start_value_byte, find_start_begv, find_defun_start)
8948 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8949
89502008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8951
8952 * s/sol2-3.h: Insert contents of s/sol2.h.
8953 (LD_SWITCH_SYSTEM): Remove redundant definition.
8954 * s/sol2.h: Remove, unused.
8955
89562008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8957
8958 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8959
89602008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8961
8962 * Makefile.in (ns_appdir): Fix typo in find command.
8963
89642008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8965
8966 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8967
8968 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8969 added not supported anymore.
8970
8971 * s/usg5-4-2.h (LIBS_SYSTEM):
8972 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8973
8974 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8975 * s/lynxos.h (GETPGRP_NO_ARG):
8976 * s/hpux10-20.h (NO_SIOCTL_H):
8977 * s/gnu.h (GETPGRP_NO_ARG):
8978 * s/gnu-linux.h (NO_SIOCTL_H):
8979 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8980 * s/cygwin.h (GETPGRP_NO_ARG):
8981 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8982 (C_DEBUG_SWITCH): Remove duplicate definition.
8983
8984 * m/ibms390.h: Remove boilerplate comments.
8985
8986 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8987
8988 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8989 (wait_reading_process_output): Remove code for SunOS, platform not
8990 supported anymore. Use SOLARIS2 instead of sun.
8991
89922008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8993
8994 * font.c (font_open_by_name): Under NS, default lface height to zero.
8995 (font_open_for_lface): Under NS, set size based on frame fontsize.
8996 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8997 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8998
89992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9000
9001 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
9002 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
9003 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
9004 YES/NO.
9005 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
9006 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
9007 * Makefile.in (clean): Clear out build destination dir.
9008
90092008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9010
9011 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
9012 xterm, xselect.
9013 * lisp.h: Remove declaration of hash_remove.
9014 * nsgui.h: Remove redefinitions of hash_remove.
9015 * fns.c (hash_remove): Rename to hash_remove_from_table.
9016
90172008-07-19 Seiji Zenitani <zenitani@mac.com>
9018
9019 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
9020 strdup() the family UTF8String before modifying it.
9021
90222008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
9023
9024 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
9025 NS_FACE_BACKGROUND with 0 instead of nil.
9026 * nsfont.m (nsfont_draw): Same.
9027
90282008-07-19 Chong Yidong <cyd@stupidchicken.com>
9029
9030 * nsfns.m (ns_set_background_color): Fix crash.
9031
90322008-07-18 Chong Yidong <cyd@stupidchicken.com>
9033
9034 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
9035
90362008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
9037
9038 * puresize.h (BASE_PURESIZE): Increase to 1240000.
9039
90402008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9041
9042 * gtkutil.c: Include <config.h> instead of "config.h".
9043
9044 * lisp.h (Foverlay_buffer): Add EXFUN.
9045
9046 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
9047 child process to complete child_setup. Undo 2005-09-21 change.
9048
9049 * s/darwin.h: Mention setsid after vfork.
9050
90512008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9052
9053 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
9054 Depend on macgui.h.
9055
9056 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
9057 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
9058
9059 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
9060 and f19.
9061 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
9062
9063 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
9064 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
9065 Remove enumerators.
9066
9067 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
9068 Check if FACE_FROM_ID returns NULL.
9069
90702008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
9071
9072 * w32inevt.c (change_frame_size): Remove extern declaration.
9073 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
9074 change_frame_size.
9075
90762008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9077
9078 * getloadavg.c: Revert last change (2008-07-15).
9079
90802008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
9081
9082 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 9083 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
9084 from configure.
9085
90862008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
9087
9088 * s/sol2.h:
9089 * s/sol2-4.h: Reorganize conditionals.
9090
9091 * ecrt0.c: Remove code depending on m68000, not used anymore.
9092
9093 * fns.c (hash_remove): Make static.
9094 * lisp.h (hash_remove): Don't prototype.
9095
9096 * m/ibmrs6000.h:
9097 * m/ibms390x.h:
9098 * m/macppc.h: Remove boilerplate comments.
9099
9100 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
9101 Solaris, which does not need them.
9102
9103 * m/vax.h: Remove comments about unsupported systems.
9104
9105 * s/darwin.h: Reorganize ifdefs.
9106
91072008-07-17 Andreas Schwab <schwab@suse.de>
9108
9109 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
9110
91112008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
9112
9113 Use SDATA. Follow coding convention of placing operators at
9114 beginning of next line rather than end of previous line, and placing
9115 spaces around infix operators.
9116
9117 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
9118 in case it was defined already.
9119 USE @GNUSTEP_MAKEFILES@ rather than envvars.
9120 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
9121 ns_default.
9122 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
9123 Lisp_Objects.
9124 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
9125 (ns_defined_color, ns_color_to_lisp): Declare.
9126 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
9127 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
9128 it's accepted even with USE_LISP_UNION_TYPE.
9129 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
9130 (update_frame_tool_bar): Remove apparently obsolete tests for
9131 non-integerness of f->tool_bar_lines.
9132 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
9133 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9134 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9135 (nsfont_open): Don't confuse NULL for Qnil.
9136 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9137 * menu.h (find_and_call_menu_selection):
9138 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9139 (find_and_return_menu_selection): Always return something.
9140 * frame.h: Include dispextern.h for Display_Info.
9141 (display_x_get_resource): Declare.
9142
91432008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9144
9145 * syntax.c: Remove stdio.h include accidentally introduced in
9146 Emacs.app commit.
9147 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9148 NS_IMPL_COCOA.
9149 * keyboard.c (handle_async_input, input_available_signal): Remove
9150 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9151
91522008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9153
9154 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9155 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9156 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9157 Use SDATA.
9158
9159 * keymap.c: Remove all NS-specific code.
9160 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9161 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9162 where_is_preferred_modifier, return a different value depending on how
9163 preferred is the binding.
9164 (where_is_internal): Adjust accordingly.
9165 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9166 Adjust to new preferred_sequence_p.
9167 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9168 * keyboard.c (parse_solitary_modifier): Not static any more.
9169 * keyboard.h (parse_solitary_modifier): Declare.
9170
91712008-07-16 Andreas Schwab <schwab@suse.de>
9172
9173 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9174 of easymenu.
9175
91762008-07-16 Chong Yidong <cyd@stupidchicken.com>
9177
9178 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9179 that we don't move off the line.
9180
91812008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9182
9183 * keyboard.c (Qsuper): Remove.
9184 (parse_menu_item): Don't call where_is_internal specially for NS.
9185
91862008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9187
9188 * s/gnu-linux.h: Remove boilerplate comments.
9189
9190 * m/alpha.h (__ELF__): Consolidate conditions.
9191
9192 * m/m68k.h (linux): Use GNU_LINUX instead.
9193 Remove boilerplate comments.
9194
9195 * m/intel386.h: Undo refactoring from previous change.
9196 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9197 too, remove dead code.
9198 (linux): Use GNU_LINUX instead.
9199
92002008-07-16 Jason Rumney <jasonr@gnu.org>
9201
9202 * w32gui.h: Repeat 26 June changes lost by last change.
9203
92042008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9205
9206 * systty.h: Remove code for Aix on 386, unsupported platform.
9207
9208 * s/ms-w32.h: Remove boilerplate comments.
9209 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9210
9211 * s/gnu-linux.h (TERM): Remove support.
9212 (HAVE_SYSVIPC): Remove, unused.
9213 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9214 for this system.
9215
9216 * process.c: Remove support for IRIS, unused.
9217 Remove support for TERM, not relevant anymore.
9218
9219 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9220 used with the definition.
9221
9222 * s/aix4-2.h (static): Do not undef.
9223
9224 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9225 only used on Aix.
9226 (HAVE_SYSVIPC): Remove, unused.
9227
9228 * m/hp800.h (CANNOT_DUMP): Do not undef.
9229
9230 * m/alpha.h: Fix comment.
9231
9232 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9233 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9234 used by this configuration.
9235 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9236 * unexec.c: Remove code depending on HPUX and
9237 USG_SHARED_LIBRARIES, not used with this file. Remove code
9238 depending on IRIS, unused. Remove if 0-ed code.
9239
9240 * s/template.h: Remove comments about static.
9241
9242 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9243 Remove if 0-ed code.
9244 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9245 were the same as the default.
9246 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9247 Remove boilerplate comments.
9248 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9249 (HAVE_SYSVIPC): Remove, unused.
9250 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9251
9252 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9253 Remove boilerplate comments.
9254 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9255 Remove boilerplate comments.
9256 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9257 Remove boilerplate comments.
9258 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9259
9260 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9261 USG systems which do not use DATA_SEG_BITS.
9262 Refactor code. Remove boilerplate comments.
9263
9264 * m/ibms390.h:
9265 * m/m68k.h:
9266 * s/bsd-common.h:
9267 * s/cygwin.h:
9268 * s/darwin.h:
9269 * s/freebsd.h:
9270 * s/gnu.h:
9271 * s/msdos.h: Remove boilerplate comments.
9272
9273 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9274 do not use this file.
aac0c6e3
MR
9275 (IRIS_4D): Remove, unused.
9276
9277 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9278 do not use this file.
aac0c6e3
MR
9279 (SIGN_EXTEND_CHAR):
9280 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9281 * unexmips.c: Remove file, unused.
9282
9283 * editfns.c (Fuser_full_name): Replace the only use of
9284 USER_FULL_NAME with its value.
9285 * config.in: Regenerate.
9286
92872008-07-16 David Reitter <david.reitter@gmail.com>
9288
9289 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9290 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9291
92922008-07-16 Glenn Morris <rgm@gnu.org>
9293
9294 * emacs.c (system-type): Doc fix.
9295
92962008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9297
9298 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9299 If the cache doesn't work, let's fix it, rather than work around it.
9300
93012008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9302
9303 * Makefile.in: Correct additions for nsfont.o in last commit.
9304 * nsfont.m: New file (forgot last commit).
9305
93062008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9307
9308 * callproc.c (set_initial_environment): Initialize
9309 Vprocess_environment under CANNOT_DUMP (fixes crash when
9310 batch-compiling for bootstrap).
9311
93122008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9313 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9314
9315 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9316 fix crash due to different init order.
9317
93182008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9319
9320 Changes and additions for NeXTstep windowing system (Cocoa and
9321 GNUstep) support.
9322
9323 * Makefile.in:
9324 * config.in: Support defines and build commands for NS port.
9325 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9326 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9327 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9328 windowing.
9329 (struct face): Add synth_ital field.
9330 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9331 (init_display): Initialize Vinitial_window_system to "ns" when so
9332 compiled.
9333 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9334 (display_arg): Use under NS.
9335 (main): Under NS, allocate autorelease pool and handle command line
9336 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9337 (standard_args): Add NS-specific args.
9338 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9339 * font.c (DEFAULT_ENCODING): New variable.
9340 (font_find_for_lface): Use it.
9341 (syms_of_font): Load syms_of_nsfont under NS.
9342 * font.h: Declare nsfont_driver when compiled under NS.
9343 * fontset.c: When compiling under NS, include nsterm.h.
9344 (fontset_from_font): Autoconstruct fontset under NS.
9345 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9346 symbol, document and use it.
9347 (do_switch_frame): When for_deletion under Cocoa, add
9348 Fraise_frame(Qnil).
9349 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9350 (x_get_arg): Allow "yes" and "no" as boolean values.
9351 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9352 Qright under Cocoa.
9353 (focus-follows-mouse): Default to 0 under NS.
9354 * frame.h (enum output_method): Add output_ns.
9355 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9356 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9357 (FRAME_WINDOW_P): NS-specific definition.
9358 * fringe.c (max_used_fringe_bitmap): Make public.
9359 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9360 (getloadavg): Use NeXT code under descendant OS's.
9361 * image.c (includes and header section, x_create_bitmap_from_data)
9362 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9363 (image_background_transparent, x_clear_image_1)
9364 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9365 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9366 (x_to_xcolors, x_from_xcolors, x_disable_image)
9367 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9368 other GUIs, including XPM support using code originally written for
9369 Carbon GUI.
9370 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9371 using NS API.
9372 (image_ascent): Use font metrics macros instead of direct struct field
9373 access.
9374 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9375 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9376 Also, handle NS as GTK for menu bar purposes.
9377 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9378 toolkit where they differ.
9379 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9380 use cachelist, still needed under NS.
9381 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9382 (struct widget_value): Define it here for menu.c.
9383 * keymap.c (includes): Include modifier internals.
9384 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9385 NS.
9386 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9387 support for preferring sequences using certain modifiers, specified by
9388 the FIRSTONLY argument.
9389 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9390 under NS GNUstep implementation.
9391 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9392 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9393 * menu.c: Include nsterm.h under NS.
9394 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9395 (free_menubar_widget_tree_value, update_submenu_strings)
9396 (find_and_call_menu_selection): Treat NS as X and NT.
9397 (find_and_return_menu_selection): New function, used for popup menus.
9398 * nsgui.h:
9399 * nsterm.h:
9400 * nsfns.m:
9401 * nsimage.m:
9402 * nsmenu.m:
9403 * nsselect.m:
9404 * nsterm.m: New files.
9405 * process.c (wait_reading_process_output): Under NS, call ns_select()
9406 instead of plain select().
9407 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9408 beginning of buffer.
9409 * sysselect.h (init_process): Rename when compiling under Cocoa to
9410 avoid name conflict.
9411 * termhooks.h (display_info): Add ns_display_info to union.
9412 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9413 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9414 COCOA environment.
9415 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9416 unexec() signature. (Note, this will dump, but the resulting file
9417 crashes; unexosx is used instead; keeping around for reference and
9418 possible aid in getting dump working under GNUstep.)
9419 * w32gui.h (button_type, widget_value): Remove definitions (now in
9420 keyboard.h).
9421 * window.c: Include nsterm.h when compiling under NS.
9422 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9423 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9424 other GUI windowing systems.
9425 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9426 GTK.
9427 (x_consider_frame_title): Under NS, set icon type and frame
9428 modified-state indicator; use ns_set_name_as_filename() when using
9429 formatted title.
9430 (update_window_cursor): Make public when compiling under NS.
9431 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9432 (hourglass_atimer, Vhourglass_delay
9433 * xfaces.c (header section, init_frame_faces, clear_font_table)
9434 (defined_color, unload_color, x_face_list_fonts)
9435 (prepare_face_for_display): Add NS support parallel to other GUIs.
9436 Emulate GCs like other non-X GUIs.
9437 (split_font_name): Don't lowercase font name under NS.
9438 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9439 under NS.
9440 * s/darwin.h: Add support for compilation under NS.
9441
94422008-07-15 Jason Rumney <jasonr@gnu.org>
9443
9444 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9445 (w32_show_hourglass): Rename from show_hourglass.
9446 (w32_hide_hourglass): Rename from hide_hourglass.
9447 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9448 (Vhourglass_delay): Declare extern.
9449 (hourglass_started): Remove.
9450
9451 * xdisp.c (Vhourglass_delay): Remove static.
9452 (hourglass_started, start_hourglass, cancel_hourglass):
9453 Don't include these versions on WINDOWSNT.
9454
94552008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9456
9457 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9458 variables (formerly in xfns.c).
9459 (show_hourglass, hide_hourglass): New prototypes (same).
9460 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9461 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9462 in xfns.c).
9463 (syms_of_xdisp): Declare/initialize display-hourglass,
9464 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9465 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9466 formerly in xfns.c.
9467 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9468 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9469 (start_hourglass, cancel_hourglass): Remove.
9470 (show_hourglass, hide_hourglass): Remove prototypes and static
9471 modifiers.
9472 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9473 hourglass_atimer, hourglass_shown_p declaration/initialization.
9474 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9475 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9476 (start_hourglass, cancel_hourglass): Remove.
9477 (show_hourglass, hide_hourglass): Remove prototypes and static
9478 modifiers.
9479 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9480 hourglass_atimer, hourglass_shown_p declaration/initialization.
9481 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9482 (DEFAULT_HOURGLASS_DELAY): Remove.
9483 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9484 hourglass_shown_p declaration/initialization.
9485
94862008-07-14 Jason Rumney <jasonr@gnu.org>
9487
9488 * w32fns.c (w32_get_arg): Remove wrapper function.
9489 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9490 directly.
9491 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9492
94932008-07-14 Kenichi Handa <handa@m17n.org>
9494
9495 * xfont.c (xfont_open): Add workaround for X's bug.
9496
94972008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9498
9499 * fontset.c: Include <stdio.h> unconditionally.
9500
95012008-07-13 Michael Albinus <michael.albinus@gmx.de>
9502
9503 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9504 for filtering.
9505
95062008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9507
9508 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9509
9510 * m/macppc.h:
9511 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9512
9513 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9514 (SPECIAL_EMACS_INT):
9515 * m/ia64.h (SPECIAL_EMACS_INT):
9516 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9517 * s/gnu.h (NLIST_STRUCT):
9518 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9519 * s/gnu-linux.h (LINUX):
9520 * s/msdos.h (HAVE_FACES):
9521 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9522
9523 * systty.h:
9524 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9525 anymore.
9526
95272008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9528
9529 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9530 always defined as int.
9531
9532 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9533 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9534 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9535 * s/freebsd.h (HAVE_WAIT_HEADER):
9536 * s/bsd-common.h (HAVE_UNION_WAIT):
9537 * s/aix4-2.h (HAVE_WAIT_HEADER):
9538 * m/mips.h (HAVE_UNION_WAIT):
9539 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9540 (COFF, static): Do not define, they are undefined later in the file.
9541
9542 * process.c (update_status): Don't use a union.
9543 (status_convert):
9544 (sigchld_handler): Use int instead of WAITTYPE.
9545
95462008-07-12 Chong Yidong <cyd@stupidchicken.com>
9547
9548 * indent.c (Fvertical_motion): Restore hscroll before moving to
9549 goal column.
9550
95512008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9552
9553 * lisp.h: Remove left over code.
9554
95552008-07-11 Andreas Schwab <schwab@suse.de>
9556
9557 * lisp.h: Fix logic in last change.
9558
9559 * menu.h: New file.
9560 * menu.c: Include it.
9561 * xmenu.c: Likewise.
9562 * Makefile.in: Update dependencies.
9563
95642008-07-11 Kenichi Handa <handa@m17n.org>
9565
9566 * fontset.c (fontset_from_font): Cancel the previous change.
9567
95682008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9569
9570 * lisp.h:
9571 * w32heap.c:
9572 * emacs.c:
9573 * alloc.c: Replace all references of NO_UNION_TYPE with
9574 USE_LISP_UNION_TYPE.
9575
9576 * m/xtensa.h (NO_UNION_TYPE):
9577 * m/vax.h (NO_UNION_TYPE):
9578 * m/template.h (NO_UNION_TYPE):
9579 * m/sparc.h (NO_UNION_TYPE):
9580 * m/mips.h (NO_UNION_TYPE):
9581 * m/macppc.h (NO_UNION_TYPE):
9582 * m/m68k.h (NO_UNION_TYPE):
9583 * m/iris4d.h (NO_UNION_TYPE):
9584 * m/intel386.h (NO_UNION_TYPE):
9585 * m/ibms390x.h (NO_UNION_TYPE):
9586 * m/ibms390.h (NO_UNION_TYPE):
9587 * m/ibmrs6000.h (NO_UNION_TYPE):
9588 * m/ia64.h (NO_UNION_TYPE):
9589 * m/hp800.h (NO_UNION_TYPE):
9590 * m/arm.h (NO_UNION_TYPE):
9591 * m/amdx86-64.h (NO_UNION_TYPE):
9592 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9593 defining it the same.
9594
95952008-07-10 Chong Yidong <cyd@stupidchicken.com>
9596
9597 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9598
95992008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9600
9601 * fileio.c:
9602 * sysdep.c
9603 * systty.h:
9604 * m/ibmrs6000.h:
9605 * m/iris4d.h:
9606 * s/aix4-2.h:
9607 * s/freebsd.h:
9608 * s/gnu-linux.h:
9609 * s/hpux10-20.h:
9610 * s/hpux11.h:
9611 * s/netbsd.h:
9612 * s/sol2-3.h:
9613 * s/sol2-4.h:
9614 * s/sol2.h:
9615 * s/usg5-4.h:
9616 * s/vms.h: Remove references to unused variables.
9617
96182008-07-10 Andreas Schwab <schwab@suse.de>
9619
9620 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9621 pattern before matching the generic family.
9622
96232008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9624
9625 * unexec.c:
9626 * s/vms.h:
9627 * s/usg5-4-2.h:
9628 * s/sol2-5.h:
9629 * s/freebsd.h:
9630 * s/darwin.h: Remove dead code.
9631
9632 * m/template.h:
9633 * m/sparc.h:
9634 * m/mips.h:
9635 * m/m68k.h:
9636 * m/iris4d.h:
9637 * m/intel386.h:
9638 * m/ibms390x.h:
9639 * m/ibms390.h:
9640 * m/ia64.h:
9641 * m/hp800.h:
9642 * m/arm.h:
9643 * m/amdx86-64.h: Remove dead code and references to unused
9644 and compiler defined symbols.
9645
9646 * unexmips.c:
9647 * unexelf.c: Remove references to desupported systems.
9648
9649 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9650
9651 * m/powermac.h: Remove boilerplate comments.
9652 (NO_REMAP): Remove unused definition.
9653
9654 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9655 define them.
9656
96572008-07-10 Kenichi Handa <handa@m17n.org>
9658
9659 * xfont.c (xfont_open): Log the reason of failure.
9660
96612008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9662
9663 * fontset.c (fontset_get_font_group):
9664 * font.c (font_check_otf): Specify argument types.
9665
96662008-07-09 Kenichi Handa <handa@m17n.org>
9667
9668 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9669 non-ASCII char is found.
9670
9671 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9672 (reorder_font_vector): Change the arg preferred_family to font.
9673 Prefer the spec matching with font.
9674 (fontset_get_font_group): New function.
9675 (fontset_find_font): Change the format of an element of a realized
9676 fontset. Use fontset_get_font_group.
9677 (fontset_font): Try the current fontset, the default fontset, the
9678 fallbacks of the current fontset, and the fallbacks of the default
9679 fontset in this order.
9680 (face_for_char): Delete the shortcut to use the current font.
9681 (fontset_from_font): Don't set fonts for Latin in the fontset.
9682
9683 * font.h (font_make_object, font_match_p): Adjust prototypes.
9684
9685 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9686
9687 * font.c (font_make_object): New arg entity and pixelsize.
9688 (font_check_otf_features, font_check_otf): New functions.
9689 (font_match_p): Check :lang, :script, and :otf properties.
9690
9691 * xfont.c (xfont_open): Adjust it for the change of
9692 font_make_object.
9693 (xfont_text_extents): Fix initial setting of metrics.
9694
9695 * ftfont.c (struct ftfont_info): New member index, delete member
9696 fc_charset_idx. Make the member order compatible with struct
9697 xftfont_info.
9698 (fc_charset_table): Change charset names to registry names.
9699 (ftfont_pattern_entity): Delete the args registry and
9700 fc_charset_idx. Change the value of :font-entity property
9701 to (FONTNAME . INDEX). Always set :registry property to
9702 `iso10646-1'.
9703 (struct ftfont_cache_data): New struct.
9704 (ftfont_lookup_cache): New arg for_face.
9705 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9706 (ftfont_driver): Set the member otf_capability.
9707 (ftfont_get_charset): Adjust it for the change of
9708 fc_charset_table.
9709 (OTF_TAG_SYM): New macro.
9710 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9711 for the change of fc_charset_table.
9712 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9713 ftfont_pattern_entity. Add FC_INDEX to objset.
9714 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9715 and ftfont_pattern_entity.
9716 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9717 font_make_object, struct ftfont_info.
9718 (ftfont_has_char): Use ftfont_get_fc_charset.
9719 (ftfont_otf_features, ftfont_otf_capability): New functions.
9720 (ftfont_shape): Use ftfont_get_otf.
9721 (ftfont_text_extents): Fix initial setting of metrics.
9722
9723 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9724 member order compatible with struct ftfont_info.
9725 (xftfont_open): Add FC_CHARSET to the pattern. Set
9726 xftfont_info->ft_size. Don't unlock the face. Check BDF
9727 properties if appropriate.
9728 (xftfont_close): Unlock the face.
9729 (xftfont_anchor_point, xftfont_shape): Deleted.
9730 (syms_of_xftfont): Don't set members anchor_point and shape of
9731 xftfont_driver.
9732
9733 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9734 font_make_object.
9735
9736 * w32font.c (w32font_open): Adjust it for the change of
9737 font_make_object.
9738 (w32font_open_internal): Don't set properties of font_object here.
9739
97402008-07-08 Chong Yidong <cyd@stupidchicken.com>
9741
9742 * macfns.c (x_create_tip_frame):
9743 * w32fns.c (x_create_tip_frame):
9744 * xfns.c (x_create_tip_frame): Pass parameter argument to
9745 face-set-after-frame-default.
9746
9747 * xfaces.c (Finternal_merge_in_global_face): Save merged
9748 attributes for the default face back into the face vector.
9749
97502008-07-08 Andreas Schwab <schwab@suse.de>
9751
9752 * fontset.h: Declare fontset_from_font. Don't declare
9753 new_fontset_from_font and fontset_from_font_name.
9754 * xterm.c: Include "fontset.h".
9755 * Makefile.in (xterm.o): Update dependencies.
9756
97572008-07-08 Glenn Morris <rgm@gnu.org>
9758
9759 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9760 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9761
97622008-07-07 Chong Yidong <cyd@stupidchicken.com>
9763
9764 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9765 (x_set_frame_parameters): Don't bind it.
9766
97672008-07-07 Juanma Barranquero <lekktu@gmail.com>
9768
9769 * w32fns.c (map_w32_filename): Declare extern.
9770
97712008-07-07 Jason Rumney <jasonr@gnu.org>
9772
9773 * w32term.c (WS_EX_LAYERED): Define if not already.
9774
97752008-07-06 Chong Yidong <cyd@stupidchicken.com>
9776
9777 * xfaces.c (set_font_frame_param): Don't try to set the font
9778 parameter if it is still unspecified in the lface.
9779
97802008-07-05 Chong Yidong <cyd@stupidchicken.com>
9781
9782 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9783 face if it didn't already exist.
9784
9785 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9786
97872008-07-05 Andreas Schwab <schwab@suse.de>
9788
9789 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9790
97912008-07-05 Chong Yidong <cyd@stupidchicken.com>
9792
9793 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9794 word-wrapping.
9795 (IT_DISPLAYING_WHITESPACE): New macro.
9796 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9797 when word-wrapping. Simplify word-wrapping logic. Use correct
9798 pixel positions when saving copies of the iterator.
9799 (display_line): Use proper wrap point if the last character on a
9800 line was preceded by whitespace.
9801
98022008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9803
9804 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9805
98062008-07-04 Kenichi Handa <handa@m17n.org>
9807
9808 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9809
9810 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9811
98122008-07-02 Jason Rumney <jasonr@gnu.org>
9813
9814 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9815 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9816
9817 * xdisp.c (next_element_from_display_vector): Move assignment out
9818 of if statement.
9819
98202008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9821
9822 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9823
9824 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9825 (syms_of_fileio): Initialize and export them.
9826 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9827
9828 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9829 (Fsystem_move_file_to_trash): New function.
9830 (syms_of_w32fns): Export it to lisp.
9831
98322008-07-01 Jason Rumney <jasonr@gnu.org>
9833
9834 * w32font.c (w32font_text_extents): Don't count overhang as part
9835 of width.
9836
98372008-06-30 Miles Bader <miles@gnu.org>
9838
9839 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9840 Add `avoid_cursor_p' field.
9841
9842 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9843 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9844 (append_glyph, append_composite_glyph, produce_image_glyph)
9845 (append_stretch_glyph): Initialize avoid_cursor_p.
9846 (get_it_property): Rename from `get_line_height_property'.
9847 (x_produce_glyphs): Use get_it_property.
9848 (handle_line_prefix, push_display_prop): New functions.
9849 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9850 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9851 New variables.
9852 (syms_of_xdisp): Initialize them.
9853
98542008-06-30 Kenichi Handa <handa@m17n.org>
9855
9856 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9857 XftDefaultSubstitute (they are called in XftFontMatch).
9858 (xftfont_open): Fix args to ftfont_font_format.
9859
9860 * ftfont.c (fc_charset_table): New member lang.
9861 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9862 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9863 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9864 (ftfont_open): Fix args to ftfont_font_format.
9865 (ftfont_font_format): New arg filename.
9866
98672008-06-30 Chong Yidong <cyd@stupidchicken.com>
9868
9869 * xfaces.c (Finternal_merge_in_global_face): If default face was
9870 modified, realize it again. Update the font face attribute.
9871
98722008-06-29 Jason Rumney <jasonr@gnu.org>
9873
9874 * w32term.c (x_set_frame_alpha): Fix logic.
9875
98762008-06-29 Kenichi Handa <handa@m17n.org>
9877
9878 * fontset.c (Finternal_char_font): Return font-object instead of
9879 font-name.
9880
9881 * composite.c (get_composition_id): Fix the width calculation for TAB.
9882
98832008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9884
9885 * indent.c (Fvertical_motion): Properly handle float column arg.
9886
98872008-06-28 Jason Rumney <jasonr@gnu.org>
9888
9889 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9890 (pfnSetLayeredWindowAttributes): New function pointer.
9891 (w32_initialize): Initialize it when supported.
9892 (x_set_frame_alpha): New function.
9893
9894 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9895 (w32_frame_parm_handlers): Set alpha handler.
9896
9897 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9898
98992008-06-27 Jason Rumney <jasonr@gnu.org>
9900
9901 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9902 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9903 (w32_to_x_charset, x_to_w32_charset)
9904 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9905 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9906 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9907 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9908 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9909 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9910 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9911 (Qw32_charset_unicode): Remove.
9912 (syms_of_w32fns): Update for above changes.
9913
9914 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9915 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9916 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9917 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9918 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9919 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9920 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9921 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9922 (syms_of_w32font): Update for above changes.
9923
99242008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9925
9926 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9927 removed #if.
9928 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9929
99302008-06-26 Juanma Barranquero <lekktu@gmail.com>
9931 Eli Zaretskii <eliz@gnu.org>
9932
9933 * makefile.w32-in (LOCAL_FLAGS):
9934 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9935
9936 * sysdep.c (_spawnlp, _getpid):
9937 Declare with explicit _cdecl instead of _CRTAPI1.
9938
9939 * editfns.c (Fget_internal_run_time):
9940 Check for WINDOWSNT with #ifdef, not #if.
9941
99422008-06-26 Jason Rumney <jasonr@gnu.org>
9943
9944 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9945
9946 * w32term.c (x_draw_glyph_string_foreground)
9947 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9948 Use FONT_HANDLE macro.
9949 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9950
9951 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9952 (uniscribe_encode_char): Use FONT_HANDLE macro.
9953
9954 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9955 (w32font_text_extents): Use precast w32_font.
9956 (w32font_close): Free cached metrics.
9957 (w32font_open_internal): Allocate space for name on stack.
9958
99592008-06-26 Chong Yidong <cyd@stupidchicken.com>
9960
9961 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9962
99632008-06-26 Jason Rumney <jasonr@gnu.org>
9964
9965 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9966 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9967
99682008-06-26 Juanma Barranquero <lekktu@gmail.com>
9969
9970 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9971
99722008-06-26 Jason Rumney <jasonr@gnu.org>
9973
9974 * w32bdf.c, w32bdf.h: Remove obsolete files.
9975
9976 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9977
9978 * w32gui.h: Don't include w32bdf.h.
9979 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9980 Remove obsolete font support.
9981
9982 * w32font.h (struct w32font_info): Remove compat_w32_font.
9983 Add hfont member.
9984 (FONT_COMPAT): Remove obsolete macro.
9985
9986 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9987 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9988 (w32font_open_internal): Remove compat code. Set new hfont member.
9989 (Fx_select_font): Use new hfont member.
9990
9991 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9992 (uniscribe_encode_char): Use new hfont member.
9993
9994 * w32term.c (x_draw_glyph_string_foreground)
9995 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9996 (x_draw_glyph_string): Use metrics in w32font_info.
9997
99982008-06-26 Kenichi Handa <handa@m17n.org>
9999
10000 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
10001
100022008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
10003
10004 * unexnext.c:
10005 * m/ews4800.h:
10006 * m/hp9000s300.h:
10007 * m/ibm370aix.h:
10008 * m/mips-siemens.h:
10009 * m/ncr386.h:
10010 * m/next.h:
10011 * m/pmax.h:
10012 * m/powerpcle.h:
10013 * m/tandem-s2.h:
10014 * s/386bsd.h:
10015 * s/bsd386.h:
10016 * s/bsd4-1.h:
10017 * s/bsd4-2.h:
10018 * s/bsdos2-1.h:
10019 * s/bsdos2.h:
10020 * s/bsdos3.h:
10021 * s/bsdos4.h:
10022 * s/nextstep.h:
10023 * s/ultrix4-3.h:
10024 * s/usg5-0.h:
10025 * s/usg5-2-2.h:
10026 * s/usg5-2.h:
10027 * s/usg5-4-3.h:
10028 * s/ux4800.h:
10029 * s/uxpds.h:
10030 * s/uxpv.h: Remove support for obsolete systems.
10031 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 10032 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
10033 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
10034 Remove, insert contents in s/aix4-2.h.
10035 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
10036 * s/bsd4-3.h: Rename to ...
10037 * s/bsd-common.h: ... this.
10038 * data.c:
10039 * doc.c:
10040 * ecrt0.c:
10041 * emacs.c:
10042 * fileio.c:
10043 * floatfns.c:
10044 * keyboard.c:
10045 * mem-limits.h:
10046 * print.c:
10047 * process.c:
10048 * sysdep.c:
10049 * syssignal.h:
10050 * systty.h:
10051 * syswait.h:
10052 * term.c:
10053 * unexec.c:
10054 * unexelf.c:
10055 * unexhp9k800.c:
10056 * m/hp800.h:
10057 * m/ibmrs6000.h:
10058 * m/mips.h:
10059 * m/vax.h:
10060 * s/darwin.h:
10061 * s/freebsd.h:
10062 * s/gnu.h:
10063 * s/ms-w32.h:
10064 * s/msdos.h:
10065 * s/netbsd.h:
10066 * s/template.h: Remove references to obsolete variables.
10067
10068 * Makefile.in: Add dependencies for all unexec files.
10069 (admindir): Remove unused variable.
10070 (UNEXEC_SRC): Remove references.
10071
100722008-06-25 Chong Yidong <cyd@stupidchicken.com>
10073
10074 * xfns.c (x_default_font_parameter): If Xft is available, first
10075 try Monospace-12 for the default font.
10076
100772008-06-25 Jason Rumney <jasonr@gnu.org>
10078
10079 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
10080
100812008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
10082
10083 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
10084
10085 * buffer.c (syms_of_buffer): Remove default-word-wrap.
10086
100872008-06-25 Juanma Barranquero <lekktu@gmail.com>
10088
10089 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
10090 <scroll-conservatively>: Fix typo in docstring.
10091
10092 * xselect.c (Fx_send_client_event): Doc fix.
10093
100942008-06-25 Kenichi Handa <handa@m17n.org>
10095
10096 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
10097
10098 * font.c (font_parse_fcname): Remove unused variables.
10099 (font_sort_entites): Delete the arg SPEC. Caller changed.
10100 Fix for the case of ! best_only.
10101 (font_delete_unmatched): Check DPI and AVGWIDTH too.
10102
10103 * lisp.h (Fstring_to_unibyte): EXFUN it.
10104
10105 * character.h (str_to_unibyte): Extern it.
10106
10107 * character.c (str_to_unibyte): New function.
10108
10109 * fns.c (Fstring_to_unibyte): New function.
10110 (syms_of_fns): Defsubr it.
10111
101122008-06-24 Kenichi Handa <handa@m17n.org>
10113
10114 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
10115 DPI too.
10116 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
10117
101182008-06-24 Andreas Schwab <schwab@suse.de>
10119
10120 * Makefile.in (${lispsource}loaddefs.el): Rename from
10121 ../lisp/loaddefs.el.
10122 (bootstrap-clean): Do what distclean does but don't remove
10123 Makefile.
10124 (distclean): Depend on bootstrap-clean and remove Makefile.
10125
101262008-06-24 Chong Yidong <cyd@stupidchicken.com>
10127
10128 * buffer.h (struct buffer): New member word_wrap.
10129
10130 * buffer.c (syms_of_buffer): New variables default-word-wrap and
10131 word-wrap.
10132 (init_buffer_once): Initialize them.
10133
10134 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10135 line_wrap enum possessing three possible values.
10136
10137 * termopts.h: Replace truncate_partial_width_windows with
10138 Vtruncate_partial_width_windows.
10139
10140 * dispnew.c (direct_output_for_insert): Avoid direct output when
10141 inserting a space with word wrap on.
10142
10143 * indent.c (compute_motion): Obey integer values of
10144 truncate-partial-width-windows.
10145
10146 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10147 replacing truncate_partial_width_windows.
10148 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10149 truncate only if the window width is below that integer.
10150 (start_display, resize_mini_window, produce_stretch_glyph)
10151 (display_string, move_it_in_display_line_to): Use line_wrap.
10152 (back_to_previous_visible_line_start, reseat_1): Reset
10153 string_from_display_prop_p.
10154 (display_line): Extend default face to end of line when wrapping.
10155
101562008-06-24 Kim F. Storm <storm@cua.dk>
10157
10158 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10159 to wrap continued lines at word boundaries.
10160
101612008-06-24 Jason Rumney <jasonr@gnu.org>
10162
10163 * font.c (Ffont_face_attributes): Multiply pixel size before point
10164 conversion to avoid multiplying rounding error.
10165
101662008-06-23 Jason Rumney <jasonr@gnu.org>
10167
10168 * w32term.c (x_draw_glyph_string_background)
10169 (x_draw_glyph_string): Remove old bdf font code.
10170
10171 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10172
101732008-06-22 Kenichi Handa <handa@m17n.org>
10174
10175 * font.c (font_find_for_lface): Try the adstyle specified in
10176 the property of LFACE_FONT of LFACE (if any).
10177
101782008-06-21 Seiji Zenitani <zenitani@mac.com>
10179 Ryo Yoshitake <ryo@shiftmode.net>
10180
10181 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10182
101832008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10184
10185 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10186 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10187 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10188 (witness-emacs): Remove.
10189 (lisp, shortlisp): Move loaddefs.el earlier.
10190 (mostlyclean): Forget about witness-emacs.
10191
101922008-06-22 Glenn Morris <rgm@gnu.org>
10193
10194 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10195 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10196
101972008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10198
10199 * Makefile.in (PRECOMP): Remove.
10200 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10201 (witness-emacs): Run `compile-first'.
10202 (.el.elc): Use the new compile-onefile target.
10203
102042008-06-21 Kenichi Handa <handa@m17n.org>
10205
10206 * xftfont.c (xftfont_open): Handle QCembolden only when
10207 FC_EMBOLDEN is defined.
10208
102092008-06-21 Andreas Schwab <schwab@suse.de>
10210
10211 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10212 (.el.elc): Likewise.
10213
102142008-06-21 Miles Bader <miles@gnu.org>
10215
10216 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10217 build dir, not the lisp source dir.
10218
102192008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10220
10221 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10222 (bootstrapclean): Remove.
10223 (.el.elc): New rule.
10224 (PRECOMP): New var.
10225 (../lisp/subdirs.el): Remove.
10226 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10227 (witness-emacs): New target.
10228 (mostlyclean): Remove witness-emacs as well.
10229 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10230 Add witness-emacs dependency.
10231
102322008-06-20 Chong Yidong <cyd@stupidchicken.com>
10233
10234 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10235 defined by the font.
10236
102372008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10238
10239 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10240 (bootstrap-clean): New target that keeps TAGS around.
10241 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10242 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10243
102442008-06-20 Jason Rumney <jasonr@gnu.org>
10245
10246 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10247 Remove obsolete font code.
10248
10249 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10250 to determine language support.
10251
102522008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10253
10254 * sysdep.c (cfsetspeed): New fun extracted from the code.
10255 (cfmakeraw): Move before first use.
10256
102572008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10258
10259 * sysdep.c (cfmakeraw): Provide fallback implementation.
10260 (serial_configure): Provide fallback implementation of cfsetspeed.
10261
102622008-06-20 Kenichi Handa <handa@m17n.org>
10263
10264 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10265 the pattern.
10266
10267 * fontset.c (fontset_from_font): Copy font_spec before changing
10268 the elements.
10269
10270 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10271
102722008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10273
10274 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10275 for explicit `font' parameters.
10276
10277 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10278
102792008-06-19 Kenichi Handa <handa@m17n.org>
10280
10281 * frame.c: Include <ctype.h>.
10282 (x_set_font_backend): Allow spacing characters in the X resource
10283 for FontBackend.
10284
102852008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10286
10287 * w32fns.c, xfns.c (Qfont_param): New var.
10288 (syms_of_w32fns): Initialize it.
10289 (x_default_font_parameter): Record explicit `font' into
10290 `font-parameter'.
10291
102922008-06-18 Kenichi Handa <handa@m17n.org>
10293
10294 * font.c (font_parse_xlfd): Fix previous change.
10295 (font_parse_fcname): Don't use :fc-unknown-spec.
10296 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10297 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10298 (font_add_log): Prepend the driver name to the resulting fonts.
10299
10300 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10301 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10302 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10303
10304 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10305 (QCembolden): New variables.
10306 (syms_of_xftfont): DEFSYM them.
10307 (xftfont_open): Call XftFontMatch. Don't trust the result of
10308 XftTextExtents8 if the pixel_size is less than 5.
10309
103102008-06-18 Andreas Schwab <schwab@suse.de>
10311
10312 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10313 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10314
103152008-06-18 Jason Rumney <jasonr@gnu.org>
10316
10317 * w32font.c (w32font_list, w32font_match): Add logging.
10318
10319 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10320
103212008-06-17 Chong Yidong <cyd@stupidchicken.com>
10322
10323 * font.c (font_parse_fcname): Store divider characters for
10324 unknown-spec list. For known key symbols, intern using correct
10325 symbol name.
10326
103272008-06-17 Kenichi Handa <handa@m17n.org>
10328
10329 * xfaces.c (realize_default_face): If the frame is not on window
10330 system, set the fontset of face to nil.
10331
103322008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10333
10334 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10335
103362008-06-16 Juanma Barranquero <lekktu@gmail.com>
10337
10338 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10339 (build_font_name_from_vector): Delete externs.
10340
10341 * xfaces.c (struct font_name): Don't declare.
10342
103432008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10344
10345 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10346
103472008-06-16 Chong Yidong <cyd@stupidchicken.com>
10348
10349 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10350
103512008-06-16 Juanma Barranquero <lekktu@gmail.com>
10352
10353 * font.c (Ffont_spec): Fix usage in docstring.
10354 (Ffont_face_attributes): Doc fix.
10355
103562008-06-16 Andreas Schwab <schwab@suse.de>
10357
10358 * font.c (Ffont_face_attributes): Fix definition.
10359
103602008-06-16 Jason Rumney <jasonr@gnu.org>
10361
10362 * font.h (font_style_symbolic_from_value): Remove.
10363
10364 * font.c (font_style_symbolic_from_value): Remove.
10365 (font_style_symbolic): Revert to pre 2008-06-13 version.
10366
10367 * w32font.c (w32_to_fc_weight): New function.
10368 (w32font_full_name, logfont_to_fcname): Use it.
10369
103702008-06-16 Kenichi Handa <handa@m17n.org>
10371
10372 * font.c (font_check_object): Delete it.
10373 (font_clear_cache): Check if a font-object is alive.
10374 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10375 font-object to nil.
10376 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10377 (font_at): Don't call font_check_object.
10378 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10379
103802008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10381
10382 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10383
103842008-06-16 Chong Yidong <cyd@stupidchicken.com>
10385
10386 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10387
103882008-06-15 Chong Yidong <cyd@stupidchicken.com>
10389
10390 * font.c (font_parse_fcname): Only one decimal point.
10391 (font_unparse_fcname): Handle data in family and foundry indices
10392 as symbols, not strings.
10393 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10394
10395 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10396
10397 * font.h (font_unparse_gtkname): Add prototype.
10398
103992008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10400
10401 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10402
104032008-06-15 Andreas Schwab <schwab@suse.de>
10404
10405 * font.c (font_update_drivers): Fix crash when no drivers match.
10406
104072008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10408
10409 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10410 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10411
104122008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10413
10414 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10415
104162008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10417
10418 * process.c (Fserial_process_configure, Fprocess_send_eof):
10419 Use EQ to compare Lisp_Objects.
10420
104212008-06-13 Jason Rumney <jasonr@gnu.org>
10422
10423 * w32fns.c (Fw32_select_font): Remove old font API function.
10424
10425 * w32font.c (logfont_to_fcname): New function.
10426 (Fx_select_font): New font dialog function compatible with
10427 GTK/fontconfig version.
10428
10429 * font.c (font_style_symbolic_from_value): New function.
10430 (font_style_symbolic): Use it.
10431
10432 * font.h (font_style_symbolic_from_value): Declare new function.
10433
104342008-06-13 Juanma Barranquero <lekktu@gmail.com>
10435
10436 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10437 <font-width-table>: Fix typos in docstrings.
10438
104392008-06-13 Daniel Engeler <engeler@gmail.com>
10440
10441 These changes add serial port access.
10442 * process.c: Add HAVE_SERIAL.
10443 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10444 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10445 (list_processes_1, select_wrapper, Fstop_process)
10446 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10447 (status_notify): Modify to handle serial processes.
10448 [HAVE_SERIAL] (Fserial_process_configure)
10449 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10450 New functions.
10451 * process.h (struct Lisp_Process): Add `type'.
10452 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10453 New functions.
10454 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10455 serial ports.
b71ac3dd 10456 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10457 * w32.h: Add FILE_SERIAL.
10458 (struct _child_process): Add ovl_read, ovl_write.
10459
104602008-06-13 Kenichi Handa <handa@m17n.org>
10461
10462 * dispextern.h (enum lface_attribute_index): New member
10463 LFACE_FOUNDRY_INDEX.
10464
10465 * font.c (font_score): Delete arg alternate_families. Check only
10466 weight, slant, width, and size. Ignore the difference of alias
10467 style symbols.
10468 (font_sort_entites): Adjust for the above change. Reflect the
10469 order of font-driver to scores.
10470 (font_list_entities): Don't check alternate_familes here.
10471 (font_clear_prop): Handle foundry.
10472 (font_update_lface): Don't parse "foundry-family" form here.
10473 Handle FONT_FOUNDRY_INDEX.
10474 (font_find_for_lface): Likewise. Handle alternate families here.
10475 If registry is nil, try iso8859-1 and ascii-0.
10476 (font_open_for_lface): Pay attention to size in ENTITY.
10477 (font_open_by_name): Simplify by calling font_load_for_lface.
10478 (free_font_driver_list): Delete it.
10479 (font_update_drivers): Preserve the order of backends.
10480 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10481 of font_score and font_sort_entites.
10482 (font_update_sort_order): Likewise.
10483
10484 * xfaces.c (LFACE_FOUNDRY): New macro.
10485 (check_lface_attrs): Check foundry.
10486 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10487 (merge_face_vectors): Check foundry.
10488 (merge_face_ref): Likewise.
10489 (Finternal_set_lisp_face_attribute): Likewise.
10490 (x_update_menu_appearance): Likewise.
10491 (Finternal_get_lisp_face_attribute): Likewise.
10492 (lface_hash): Likewise.
10493 (lface_same_font_attributes_p): Likewise.
10494 (x_supports_face_attributes_p): Likewise.
10495 (tty_supports_face_attributes_p): Likewise.
10496 (Finternal_set_alternative_font_family_alist): Intern strings.
10497 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10498 (realize_default_face): Set LFACE_FOUNDRY (lface).
10499
10500 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10501 font-driver at first.
10502
10503 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10504
105052008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10506
10507 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10508
105092008-06-12 Jim Meyering <meyering@redhat.com>
10510
10511 Make unexec_free handle NULL the same way free does.
10512 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10513
105142008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10515
10516 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10517 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10518 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10519 (WEAK_ALIAS): Simplify.
10520 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10521 when searching a unibyte buffer.
10522
105232008-06-12 Chong Yidong <cyd@stupidchicken.com>
10524
10525 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10526
105272008-06-12 Juanma Barranquero <lekktu@gmail.com>
10528
10529 * w32font.c: Include ctype.h.
10530
105312008-06-11 Jason Rumney <jasonr@gnu.org>
10532
10533 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10534 misreported as space.
10535 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10536 as aliases for registry iso10646-1.
10537
105382008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10539
10540 * buffer.c (clone_per_buffer_values): Skip `name'.
10541
105422008-06-11 Chong Yidong <cyd@stupidchicken.com>
10543
10544 * font.c (font_parse_fcname): Fix last change; accept decimal
10545 points in font size.
10546
105472008-06-10 Jason Rumney <jasonr@gnu.org>
10548
10549 * w32uniscribe.c (add_opentype_font_name_to_list):
10550 Skip non unicode fonts.
10551
105522008-06-10 Chong Yidong <cyd@stupidchicken.com>
10553
10554 * xfns.c (Fx_font_dialog): New function.
10555
10556 * gtkutil.c (xg_dialog_response_cb): Rename from
10557 xg_file_response_callback.
10558 (pop_down_dialog): Rename from pop_down_file_dialog.
10559 (xg_get_file_name): Callers changed.
10560 (xg_get_font_name): New function.
10561
10562 * gtkutil.h (xg_get_font_name): Insert prototype.
10563
105642008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10565
10566 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10567 x_underline_minimum_display_offset.
10568 (syms_of_xdisp): Declare it here rather than in xterm.c.
10569 * dispextern.h (underline_minimum_offset): Declare it.
10570 * w32term.c (x_draw_glyph_string): Use it.
10571 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10572 (syms_of_xterm): Don't declare it any more.
10573 (x_draw_glyph_string): Adjust to the new name.
10574
8719abec 105752008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10576
10577 * xterm.c (x_underline_minimum_display_offset): New var.
10578 (x_draw_glyph_string): Use it.
10579 (syms_of_xterm): Declare it.
10580
105812008-06-10 Chong Yidong <cyd@stupidchicken.com>
10582
10583 * font.c (font_parse_fcname): Accept GTK-style font names too.
10584
105852008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10586
10587 * dired.c (file_name_completion): Don't return t if the match is exact
10588 but with different capitalization.
10589 * minibuf.c (Ftry_completion): Simplify.
10590
10591 * window.c (Vwindow_point_insertion_type): New var.
10592 (set_window_buffer): Use it.
10593 (syms_of_window): Init and export it to Lisp.
10594
105952008-06-10 Kenichi Handa <handa@m17n.org>
10596
10597 * font.h (font_intern_prop): Prototype adjusted.
10598
10599 * font.c (font_intern_prop): New arg force_symbol.
10600 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10601 Adjust for the change of font_intern_prop.
10602
10603 * ftfont.c (ftfont_pattern_entity):
10604 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10605 (w32_registry):
10606 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10607 the change of font_intern_prop.
10608
106092008-06-09 Juanma Barranquero <lekktu@gmail.com>
10610
10611 * w32menu.c (digest_single_submenu): Declare extern.
10612
106132008-06-09 Jason Rumney <jasonr@gnu.org>
10614
10615 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10616
10617 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10618 (parse_single_submenu): Remove.
10619 (digest_single_submenu): Remove.
10620 (syms_of_w32menu): Don't initialise variables that have moved
10621 to menu.c.
10622 (set_frame_menubar): Sync with version in xmenu.c.
10623 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10624
10625 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10626 Make static again.
10627
106282008-06-09 Jason Rumney <jasonr@gnu.org>
10629
10630 Changes to w32 files related to the move of common menu code
10631 to menu.c on 2008-06-08 by Chong Yidong.
10632
10633 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10634 defs to w32gui.h.
10635 (single_keymap_panes, push_menu_item, push_menu_pane):
10636 Make globally visible.
10637
10638 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10639 (local_free, malloc_widget_value, free_widget_value)
10640 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10641 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10642 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10643 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10644 (menu_items, menu_items_allocated, menu_items_used)
10645 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10646 (init_menu_items, finish_menu_items, discard_menu_items)
10647 (grow_menu_items, push_submenu_start, push_submenu_end)
10648 (push_left_right_boundary, push_menu_pane, push_menu_item)
10649 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10650 (free_menubar_widget_tree_value, parse_single_submenu)
10651 (update_submenu_strings): Remove functions.
10652 (xmalloc_widget_value): Remove and declare extern.
10653
10654 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10655 (OBJ1): Build it.
10656
10657 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10658 (local_heap, local_alloc, local_free, malloc_widget_value)
10659 (free_widget_value): Define here.
10660
106612008-06-09 Kenichi Handa <handa@m17n.org>
10662
10663 * font.h (Qascii_0): Extern it.
10664
10665 * font.c (Qascii_0): New variable.
10666 (syms_of_font): DEFSYM it.
10667 (font_open_by_name): If the registry "iso8859-1" fails, try also
10668 "ascii-0".
10669
10670 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10671
106722008-06-08 Kenichi Handa <handa@m17n.org>
10673
10674 * .gdbinit (xfont): New command.
10675
106762008-06-08 Andreas Schwab <schwab@suse.de>
10677
10678 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10679 * Makefile.in (menu.o): Update dependencies.
10680
10681 * Makefile.in (obj): Always add menu.o.
10682 * emacs.c (main): Always call syms_of_menu.
10683 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10684
106852008-06-08 Chong Yidong <cyd@stupidchicken.com>
10686
10687 * Makefile.in: Compile menu.c.
10688
10689 * lisp.h: Declare syms_of_menu.
10690
10691 * emacs.c (main): Call syms_of_menu.
10692
10693 * keyboard.h: Relocate platform-independent menu definitions from
10694 xmenu.c.
10695
10696 * menu.c: New file. Relocate platform-independent menu
10697 definitions from xmenu.c. Suggested by Adrian Robert.
10698
10699 * xmenu.c: Remove platform-independent menu definitions.
10700 (menu_items menu_items_inuse, menu_items_allocated)
10701 (menu_items_used, menu_items_n_panes)
10702 (menu_items_submenu_depth): Move to keyboard.h.
10703 (init_menu_items, finish_menu_items, unuse_menu_items)
10704 (discard_menu_items, restore_menu_items, save_menu_items)
10705 (grow_menu_items, push_submenu_start, push_submenu_end)
10706 (push_left_right_boundary, push_menu_pane, push_menu_item)
10707 (keymap_panes, single_keymap_panes, single_menu_item)
10708 (list_of_panes, list_of_items, find_and_call_menu_selection)
10709 (xmalloc_widget_value, free_menubar_widget_value_tree)
10710 (parse_single_submenu, digest_single_submenu)
10711 (update_submenu_strings): Move to menu.c.
10712
107132008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10714
10715 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10716
107172008-06-06 Miles Bader <miles@gnu.org>
10718
10719 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10720 face, not frame default.
10721
107222008-06-05 Martin Rudalics <rudalics@gmx.at>
10723
10724 * window.c (pop_up_windows, pop_up_frames)
10725 (display_buffer_reuse_frames, Vpop_up_frame_function)
10726 (Vdisplay_buffer_function, Veven_window_heights)
10727 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10728 (Vspecial_display_function, Vsame_window_buffer_names)
10729 (Vsame_window_regexps, split_height_threshold)
10730 (Vsplit_window_preferred_function): Move those vars to window.el.
10731 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10732 (Fdisplay_buffer): Move those functions to window.el.
10733 (syms_of_window): Remove corresponding declarations.
10734 (display_buffer): New function.
10735 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10736 * dispnew.c (Flast_nonminibuf_frame): New function.
10737 * buffer.c (Fpop_to_buffer): Move to window.el.
10738
107392008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10740
10741 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10742
107432008-06-05 Kenichi Handa <handa@m17n.org>
10744
10745 * coding.c (detect_coding): Fix previous change.
10746 (detect_coding_system): Likewise.
10747
107482008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10749
10750 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10751
10752 * keymap.c (Vminibuffer_local_filename_must_match_map):
10753 Rename from Vminibuffer_local_must_match_filename_map.
10754 (syms_of_keymap):
10755 * minibuf.c (Fcompleting_read): Adjust accordingly.
10756 * commands.h: Rename declaration as well.
10757
107582008-06-05 Kenichi Handa <handa@m17n.org>
10759
10760 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10761 family name.
10762 (Ffont_put): Likewise.
10763
10764 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10765 current font-spec.
10766
10767 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10768 is unspecified.
10769
10770 * xfaces.c (realize_x_face): If the font-related face attributes
10771 are the same as those of default face, realize a new fontset from
10772 default->fontset.
10773 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10774
107752008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10776
10777 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10778 (move_it_in_display_line): New wrapper.
10779
10780 * window.c (window_scroll_pixel_based_preserve_x)
10781 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10782 (window_scroll_pixel_based, window_scroll_line_based):
10783 Use them to preserve column positions.
10784 (syms_of_window): Initialize them.
10785
10786 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10787 (HPOS . VPOS) pair.
10788
10789 * dispextern.h (move_it_in_display_line): Declare.
10790
107912008-06-05 Juanma Barranquero <lekktu@gmail.com>
10792
10793 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10794 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10795 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10796
107972008-06-04 Juanma Barranquero <lekktu@gmail.com>
10798
10799 * window.c (Fset_window_parameter): Doc fix.
10800 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10801
108022008-06-04 Joakim Verona <joakim@verona.se>
10803
10804 * window.h (struct window): Add new member window_parameters.
10805
10806 * window.c (Fwindow_parameters, Fwindow_parameter)
10807 (Fset_window_parameter): New defuns.
10808 (syms_of_window): Defsubr the new defuns.
10809 (make_window): Initialize window_parameters to nil.
10810
108112008-06-04 John Paul Wallington <jpw@pobox.com>
10812
10813 * eval.c (Fdefmacro): Doc fix.
10814
108152008-06-04 Kenichi Handa <handa@m17n.org>
10816
10817 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10818 Be sure to call setup_coding_system when we find a proper coding system.
10819 (detect_coding_system): Fix handling of coding->head_ascii.
10820
108212008-06-03 Andreas Schwab <schwab@suse.de>
10822
10823 * font.c (font_prop_validate_spacing): Fix last change.
10824
108252008-06-03 Kenichi Handa <handa@m17n.org>
10826
10827 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10828 (font_parse_fcname): Fix handling of unknown key.
10829
10830 * xfont.c (xfont_list): Try an alias.
10831
10832 * charset.c (char_charset): Return NULL if the arg charset_list is
10833 specified and C doesn't belong to any of them.
10834
108352008-06-02 Chip Coldwell <coldwell@redhat.com>
10836
10837 * font.c (font_pixel_size): Don't take cdr of an integer.
10838
108392008-06-02 Jim Meyering <meyering@redhat.com>
10840
10841 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10842 * alloc.c (xfree): Return right away for a NULL arg.
10843 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10844 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10845 * mac.c (create_apple_event_from_event_ref): Likewise.
10846 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10847 Likewise.
10848 * doprnt.c (doprnt1): Likewise.
10849 * frame.c (frame): Likewise.
10850 * keyboard.c (wipe_kboard): Likewise.
10851 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10852 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10853 * term.c (tty_default_color_capabilities, maybe_fatal)
10854 (delete_tty): Likewise.
10855 * w16select.c (string): Likewise.
10856 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10857 * w32bdf.c (w32_free_bdf_font): Likewise.
10858 * w32fns.c (w32_unload_font): Likewise.
10859 * w32font.c (w32font_close): Likewise.
10860 * window.c (size_window): Likewise.
10861 * xselect.c (receive_incremental_selection): Likewise.
10862 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10863 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10864 * w32.c (stat): Likewise.
10865
10866 Remove useless if-before-free tests.
10867 * editfns.c (Fset_time_zone_rule): Likewise.
10868 * lread.c (nosuffix): Likewise.
10869 * ralloc.c (get_bloc): Likewise.
10870 * regex.c (reg_free): Likewise.
10871 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10872 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10873 * xsmfns.c (smc_save_yourself_CB): Likewise.
10874
108752008-06-02 Kenichi Handa <handa@m17n.org>
10876
10877 * font.c (font_find_for_lface): Handle float font size.
10878 (font_open_for_lface): Likewise.
10879
10880 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10881 comparing the properties.
10882
108832008-06-01 Jason Rumney <jasonr@gnu.org>
10884
10885 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10886 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10887 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10888 Don't add empty script list.
10889 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10890
108912008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10892
10893 * Makefile.in (dot, dotdot): Remove, update users.
10894 ".." has been used elsewhere in the file for a long time.
10895 (LIBXT_STATIC): Remove conditional based on unused variable.
10896
108972008-06-01 Miles Bader <miles@gnu.org>
10898
10899 * xfaces.c (Vface_remapping_alist): New variable.
10900 (syms_of_xfaces): Initialize it.
10901 (enum named_merge_point_kind): New type.
10902 (struct named_merge_point): Add `named_merge_point_kind' field.
10903 (push_named_merge_point): Make cycle detection respect different
10904 named-merge-point kinds.
10905 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10906 Remove face-name alias resolution.
10907 (lface_from_face_name): New definition using
10908 `lface_from_face_name_no_resolve'.
10909 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10910 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10911 (get_lface_attributes): New definition that layers face-remapping on
10912 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10913 (lookup_basic_face): New function.
10914 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10915 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10916 `get_lface_attributes'.
10917 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10918 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10919 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10920
10921 * xdisp.c (init_iterator): Pass base_face_id through
10922 `lookup_basic_face' when we actually use it as a face-id.
10923 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10924 DEFAULT_FACE_ID.
10925
10926 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10927 lookup the initial face-id.
10928
10929 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10930
109312008-06-01 Juanma Barranquero <lekktu@gmail.com>
10932
10933 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10934 (Fremove_text_properties): Fix typos in docstrings.
10935
109362008-05-31 Kenichi Handa <handa@m17n.org>
10937
10938 * font.c (font_list_entities): Fix the car part of data to be
10939 stored in the cache.
10940
10941 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10942
109432008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10944
10945 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10946 Add a `test' argument so another predicate than `equal' can be used.
10947 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10948 (map_char_table): Remove unused vars `c' and `i'.
10949 * lisp.h (Foptimize_char_table): Adjust declaration.
10950 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10951
109522008-05-30 Kenichi Handa <handa@m17n.org>
10953
10954 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10955 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10956 defined.
10957
109582008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10959
10960 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10961 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10962 frame-local settings for the same variable.
10963
109642008-05-30 Kenichi Handa <handa@m17n.org>
10965
10966 * fontset.c (Ffont_info): Move to font.c.
10967 (syms_of_fontset): Delete defsubr of Sfont_info.
10968
10969 * font.c (font_style_to_value, font_score): Delete casting of the
10970 args to xstcasecmp.
10971 (register_font_driver): Increment num_font_drivers only when
10972 registering the driver globally.
10973 (Ffont_info): Move from fontset.c. Handle a font object too.
10974 (syms_of_font): Defsubr Sfont_info.
10975
109762008-05-29 Kenichi Handa <handa@m17n.org>
10977
10978 * coding.h (enum define_coding_utf8_arg_index): New enum.
10979 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10980 coding_attr_utf_bom.
10981 (enum utf_bom_type): Rename from utf_16_bom_type.
10982 (struct utf_16_spec): Adjust for the above change.
10983 (struct coding_system): Add utf_8_bom in `spec' union.
10984
10985 * coding.c (CODING_UTF_8_BOM): New macro.
10986 (enum coding_category): Delete coding_category_utf_8, add
10987 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10988 coding_category_utf_8_sig.
10989 (CATEGORY_MASK_UTF_8): Delete it.
10990 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10991 (CATEGORY_MASK_UTF_8_SIG): New macros.
10992 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10993 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10994 CATEGORY_MASK_UTF_8_SIG.
10995 (CATEGORY_MASK_UTF_8): New macro.
10996 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10997 (detect_coding_utf_8): Check BOM.
10998 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10999 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
11000 (encode_coding_utf_16): Likewise.
11001 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
11002 (detect_coding, detect_coding_system): Handle utf-8-auto.
11003 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
11004 (syms_of_coding): Fix setting up of Vcoding_category_table.
11005
110062008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
11007
11008 * process.c (Faccept_process_output): If `millisec' is non-nil,
11009 `seconds' default to 0.
11010 (wait_reading_process_output): Also return non-nil if we read output
11011 from a non-running process.
11012
110132008-05-29 Jason Rumney <jasonr@gnu.org>
11014
11015 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
11016 `raster' specified.
11017 (add_font_entity_to_list): Allow non-opentype truetype fonts back
11018 in the uniscribe backend, but disallow any font that has no
11019 unicode subrange support.
11020
110212008-05-29 Juanma Barranquero <lekktu@gmail.com>
11022
11023 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
11024 Fix typos in docstrings.
11025
110262008-05-29 Kenichi Handa <handa@m17n.org>
11027
11028 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
11029 (Fx_family_fonts): Set frame correctly.
11030
110312008-05-28 Jason Rumney <jasonr@gnu.org>
11032
11033 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
11034
110352008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
11036
11037 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
11038 calling build_annotations.
11039
110402008-05-28 Juanma Barranquero <lekktu@gmail.com>
11041
11042 * coding.c (Fdecode_coding_region, Fencode_coding_region)
11043 (Fencode_coding_string):
11044 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
11045 <latin-extra-code-table>: Fix typos in docstrings.
11046 (syms_of_coding) <coding-system-alist>: Doc fix.
11047 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
11048
110492008-05-28 Kenichi Handa <handa@m17n.org>
11050
11051 * fontset.c (Ffont_info): Don't call font_close_object.
11052
11053 * font.c (font_parse_family_registry): Use Ffont_put to validate
11054 foundry and family.
11055 (font_delete_unmatched): Don't check spacing.
11056 (font_list_entities): Add spacing to the spec to list fonts.
11057
11058 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
11059 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
11060
11061 * coding.c (encode_coding_raw_text): Fix previous change.
11062 (encode_coding_object): When the dst_object is a buffer and is
11063 different from src_object, move gap to PT.
11064
110652008-05-27 Chong Yidong <cyd@stupidchicken.com>
11066
11067 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
11068
110692008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11070
11071 * coding.c (encode_coding_raw_text): Set coding->produced_char for
11072 all branches. Compute it differently.
11073
11074 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
11075
110762008-05-27 Juanma Barranquero <lekktu@gmail.com>
11077
11078 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
11079 into "else if () ... else ...".
11080
110812008-05-27 Jason Rumney <jasonr@gnu.org>
11082
11083 * w32font.c (w32font_open_internal): Determine if glyph indices
11084 are likely to work here.
11085
110862008-05-27 Chong Yidong <cyd@stupidchicken.com>
11087
11088 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
11089 draw overlap glyphs with appropriate highlighting.
11090
110912008-05-27 Kenichi Handa <handa@m17n.org>
11092
11093 * xfont.c (xfont_open): Fix calculation of font->average_width.
11094
110952008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
11096
11097 * casefiddle.c (casify_object): Try to guess better whether the
11098 argument is a byte or a char.
11099
111002008-05-26 Andreas Schwab <schwab@suse.de>
11101
11102 * xselect.c (x_reply_selection_request): Properly handle format == 32.
11103 Always send multiples of format size.
11104
11105 * xterm.c (x_set_frame_alpha): Fix type mismatch.
11106
111072008-05-26 Jason Rumney <jasonr@gnu.org>
11108
11109 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
11110 (compute_metrics): Don't set failure if we just cleared the cache.
11111 (w32_weight_table): Remove unused variable.
11112 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
11113 backwards compatibility.
11114
111152008-05-25 Kenichi Handa <handa@m17n.org>
11116
11117 * w32term.c (x_draw_glyph_string):
11118 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
11119
11120 * xfaces.c: Delete unused function prototypes.
11121 (xstrlwr, font_frame): Delete them.
11122 (clear_face_cache): Delete unused variable.
11123
11124 * xftfont.c (xftfont_open): Delete unused variable.
11125 If underline_thickness is not 1, adjust underline_position.
11126
11127 * ftxfont.c (ftxfont_open): Delete unused variable.
11128
11129 * fontset.c (face_for_char): Optimize for the case of no charset
11130 property.
11131
11132 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
11133 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11134 (otf_open, font_otf_capability, generate_otf_features)
11135 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11136 Comment out by surrounding "#if 0" and "#endif" for the moment.
11137 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11138 (syms_of_font): Codes for accessing above commented out.
11139
111402008-05-24 Eli Zaretskii <eliz@gnu.org>
11141
11142 * w32proc.c: Include dispextern.h.
11143
11144 * w32.c: Include dispextern.h.
11145
111462008-05-23 Juanma Barranquero <lekktu@gmail.com>
11147
11148 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11149 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11150 Fix typos in docstrings.
11151
111522008-05-23 Jason Rumney <jasonr@gnu.org>
11153
11154 * xsmfns.c: Remove includes that are already included by config.h.
11155
111562008-05-23 Kenichi Handa <handa@m17n.org>
11157
11158 * charset.c (Qemacs, charset_emacs): New variables.
11159 (char_charset): Fix for non-Unicode characters.
11160 (syms_of_charset): Define charset_emacs.
11161
11162 * w32term.c (x_draw_glyph_string): Be sure to update
11163 s->underline_thickness and s->underline_position. Be sure to draw
11164 underline within the current line area.
11165
11166 * xterm.c (x_draw_glyph_string): Be sure to update
11167 s->underline_thickness and s->underline_position. Be sure to draw
11168 underline within the current line area.
11169
11170 * fontset.c: Delete unused variables and add casting for char *
11171 throughout the file.
11172 (fontset_font): Try the fallback fonts of the current fontset
11173 before consulting the default fontset.
11174
11175 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11176
11177 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11178
111792008-05-22 Jason Rumney <jasonr@gnu.org>
11180
11181 * font.c: Don't include strings.h.
11182
11183 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11184
11185 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11186 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11187 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11188 to call xstrcasecmp.
11189
11190 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11191
11192 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11193
11194 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11195
11196 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11197
111982008-05-22 Kenichi Handa <handa@m17n.org>
11199
11200 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11201
11202 * font.c (font_prop_validate_style): Adjust for the format
11203 change of font_style_table.
11204
11205 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11206 two args.
11207
11208 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11209 two args.
11210
112112008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11212
11213 * minibuf.c (keys_of_minibuf): Delete.
11214 * lisp.h (keys_of_minibuf): Delete.
11215 * emacs.c (main): Don't call keys_of_minibuf.
11216
112172008-05-22 Kenichi Handa <handa@m17n.org>
11218
11219 * ftfont.c (ftfont_resolve_generic_family): Rename from
11220 ftfont_list_generic_family. Return a single family for each
11221 generic family.
11222 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11223 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11224 Call font_add_log.
11225 (ftfont_match): Call font_add_log.
11226
11227 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11228 (FONT_DEBUG): Define it.
11229 (font_add_log): Extern it.
11230 (font_assert): Rename from xassert.
11231
11232 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11233 (xfont_list_family): Call font_add_log.
11234 (xfont_match): Likewise.
11235 (memq_no_quit): Delete.
11236
11237 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11238 call of Ffont_xlfd_name.
11239
11240 * xfaces.c (struct table_entry, slant_table, weight_table)
11241 (swidth_table): Move to font.c.
11242
11243 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11244 xassert are changed to font_assert. Delete many unused variables.
11245 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11246 New variables.
11247 (struct table_entry): Move from xfaces.c and modified.
11248 (weight_table, slant_table, width_table): Move from xfaces.c and
11249 contents adjusted for the change of struct table_entry.
11250 (font_style_to_value, font_style_symbolic): Adjust for the
11251 format change of font_style_table.
11252 (font_parse_family_registry): Don't overwrite existing foundry and
11253 family of font_spec.
11254 (font_score): Fix calculation of diff for sizes.
11255 (font_sort_entites): Call font_add_log.
11256 (font_delete_unmatched): Return a newly created list.
11257 (font_list_entities): Fix previous change. Call font_add_log.
11258 (font_matching_entity, font_open_entity, font_close_entity):
11259 Call font_add_log.
11260 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11261 (Finternal_set_font_style_table): Delete.
11262 (BUILD_STYLE_TABLE): New macro.
11263 (build_style_table): New function.
11264 (Vfont_log, font_log_env_checked): New variables.
11265 (font_add_log): New function.
11266 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11267 Declare Lisp variables "font-weight-table", "font-slant-table",
11268 "font-width-table", and "font-log". Initialize font_style_table.
11269
112702008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11271
11272 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11273
112742008-05-21 Seiji Zenitani <zenitani@mac.com>
11275 Ryo Yoshitake <ryo@shiftmode.net>
11276
11277 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11278 (Vframe_alpha_lower_limit): New variable.
11279 (x_set_alpha): New function.
11280
11281 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11282
11283 * xfns.c (x-create-frame, Qalpha):
11284 Initialize the frame parameter `alpha'.
11285 * xterm.c (OPAQUE, OPACITY): New.
11286 (x_set_frame_alpha): New function.
11287 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11288
11289 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11290 * w32fns.c (w32_frame_parm_handlers): Likewise.
11291
112922008-05-20 Jason Rumney <jasonr@gnu.org>
11293
11294 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11295 truetype fonts to opentype list.
11296
112972008-05-20 Juanma Barranquero <lekktu@gmail.com>
11298
11299 * fontset.c (Ffontset_info): Doc fix.
11300 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11301 <ignore-relative-composition>: Fix typos in docstrings.
11302
11303 * font.c (syms-of-font) <font-encoding-alist>:
11304 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11305 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11306 (Ffont_otf_alternates): Doc fixes.
11307
113082008-05-20 Kenichi Handa <handa@m17n.org>
11309
11310 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11311 font.h through out the file.
11312 (FONT_DRIVERS): Rename from FONTOBJ.
11313 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11314 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11315
11316 * emacs.c (main): Call syms_of_font unconditionally.
11317
11318 * font.h (find_font_encoding): Extern it.
11319
11320 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11321 fontset.c.
194d44e7 11322 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11323 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11324 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11325 only when HAVE_WINDOW_SYSTEM is defined.
11326 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11327 when HAVE_WINDOW_SYSTEM is defined.
11328
11329 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11330 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11331
11332 * xfaces.c: Include font.h unconditionally.
11333 (merge_face_ref, merge_face_vectors)
11334 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11335
113362008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11337
11338 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11339 indirect_variable.
11340 * eval.c (lisp_indirect_variable): New fun.
11341 (Fuser_variable_p): Use it.
11342
113432008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11344
11345 * lisp.h (indirect_variable):
11346 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11347 Use Lisp_Symbol pointers rather than Lisp_Object.
11348 Adjust callers.
11349 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11350 To this end, change calling-convention.
11351
11352 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11353 if some non-hidden buffers are selected by string&pred.
11354
113552008-05-19 Chong Yidong <cyd@stupidchicken.com>
11356
11357 * process.c (wait_reading_process_output): Always check status
11358 when in batch mode.
11359
113602008-05-19 Kenichi Handa <handa@m17n.org>
11361
11362 * font.c (font_list_entities): Fix handling of cache.
11363 (font_matching_entity): Likewise.
11364
11365 * ftfont.c (cs_iso8859_1): Delete.
11366 (ft_face_cache): New variable.
11367 (struct ftfont_info): New member fc_charset_idx.
11368 (ftfont_build_basic_charsets): Delete.
11369 (fc_charset_table): New variable.
11370 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11371 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11372 Callers changed.
11373 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11374 (ftfont_spec_pattern): New argument fc_charset_idx.
11375 Check registry more rigidly. Change callers.
11376 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11377 change of :font-entity property of the font.
11378
11379 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11380 property of the font.
11381
113822008-05-18 Juanma Barranquero <lekktu@gmail.com>
11383
11384 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11385 (Funencodable_char_position, Fcheck_coding_systems_region)
11386 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11387 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11388 (Ffind_operation_coding_system, Fset_coding_system_priority)
11389 (Fcoding_system_eol_type): Doc fixes.
11390
113912008-05-17 Glenn Morris <rgm@gnu.org>
11392
11393 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11394
113952008-05-16 Eli Zaretskii <eliz@gnu.org>
11396
11397 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11398 and st_gid.
11399
11400 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11401 HAVE_WINDOW_SYSTEM is not defined.
11402
11403 * xfaces.c (merge_face_ref, merge_face_vectors)
11404 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11405 HAVE_WINDOW_SYSTEM is defined.
11406 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11407
114082008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11409
11410 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11411
114122008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11413
11414 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11415
114162008-05-15 Kenichi Handa <handa@m17n.org>
11417
11418 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11419 preference.
11420
114212008-05-15 Glenn Morris <rgm@gnu.org>
11422
11423 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11424
114252008-05-15 Chong Yidong <cyd@stupidchicken.com>
11426
11427 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11428 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11429
11430 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11431
114322008-05-15 Kenichi Handa <handa@m17n.org>
11433
11434 * ftfont.c (ftfont_list): Downcase family name to check generic
11435 families.
11436
11437 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11438 font-spec for QCfont value.
11439
11440 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11441 buffer. Check the return value of it.
11442
114432008-05-14 Jason Rumney <jasonr@gnu.org>
11444
11445 * w32term.c (w32_get_glyph_overhangs): Remove.
11446 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11447
114482008-05-14 Kenichi Handa <handa@m17n.org>
11449
11450 * font.c (font_prop_validate): Make nil a valid value.
11451 (font_clear_cache): Check if the cached vector of entities is nil
11452 or not.
11453
114542008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11455
11456 * emacs.c (main_thread): Conditionalize on
11457 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11458 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11459
11460 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11461 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11462 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11463
114642008-05-14 Kenichi Handa <handa@m17n.org>
11465
11466 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11467 has no corresponding coding system.
11468
114692008-05-14 Jason Rumney <jasonr@gnu.org>
11470
11471 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11472
11473 * w32font.h (w32font_open_internal): Update declaration.
11474
11475 * w32font.c (w32font_open_internal): Change last argument from
11476 w32font_info struct to font object. Fill in font object from
11477 font_entity. Get Outline metrics if possible. Use them to
11478 calculate underline position and thickness. Use xlfd name as name
11479 property. Don't set codepage.
11480 (w32font_open): Pass font_object to w32font_open_internal. Don't
11481 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11482 (w32font_draw): Use s->font.
11483 (clear_cached_metrics): Don't clear non-existent blocks.
11484
11485 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11486 font was not found.
11487 (x_draw_glyph_string): Use underline position and thickness from font.
11488
11489 * w32uniscribe.c (uniscribe_open): Pass font_object to
11490 w32font_open_internal.
11491
114922008-05-14 Kenichi Handa <handa@m17n.org>
11493
11494 These changes are to delete all legacy font-handling codes, and
11495 make Emacs use only font-backends.
11496
11497 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11498 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11499
11500 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11501
11502 * charset.h (Vcharset_non_preferred_head)
11503 (Vcurrent_iso639_language): Extern them.
11504
11505 * charset.c (Vcharset_non_preferred_head): New variable.
11506 (Vcurrent_iso639_language): New variable.
11507 (syms_of_charset): Declare it as a Lisp variable.
11508 (char_charset): Don't check non preferred charsets. As a last
11509 resort, return charset_unicode.
11510 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11511
11512 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11513 conditionals. Don't check enable_font_backend. Delete all codes
11514 used only when USE_FONT_BACKEND is not defined.
11515
11516 * dispextern.h (struct glyph_string): Change type of `font' to
11517 `struct font *'.
11518 (struct glyph_string): New member underline_position and
11519 underline_thickness.
11520 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11521 (struct face): Change type of `font' to `struct font *'. Remove
11522 members `font_name', `font_info_id'.
11523 (per_char_metric, encode_char): Delete externs.
11524 (calc_pixel_width_or_height): Adjust the prototype.
11525
11526 * emacs.c (enable_font_backend): Delete extern.
11527 (main): Don't set enable_font_backend. Don't check the command
11528 line argument "-disable-font-backend".
11529
11530 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11531 (enum font_property_index): New members FONT_DPI_INDEX,
11532 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11533 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11534 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11535 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11536 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11537 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11538 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11539 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11540 (struct font_spec, struct font_entity): New structs.
11541 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11542 (struct font): Many members from old "struct font_info" moved to
11543 here. Members font and entity deleted.
11544 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11545 the new font-related objects.
11546 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11547 (CHECK_FONT_GET_OBJECT): Likewise.
11548 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11549 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11550 (struct font_driver): New members case_sensitive anc check. Type
11551 of the member list and open changed.
11552 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11553 (font_symbolic_width, font_find_object, font_get_spec)
11554 (font_set_lface_from_name): Delete extern.
11555 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11556
11557 * font.c: Include <strings.h>.
11558 (enable_font_backend): Delete it.
11559 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11560 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11561 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11562 (null_string): Delete it.
11563 (null_vector): Make it static.
11564 (font_family_alist): Delete it.
11565 (Qnormal): Extern it.
11566 (QCextra, QClanguage): Delete it.
11567 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11568 (font_make_spec, font_make_entity, font_make_object)
11569 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11570 the string. Callers changed.
11571 (font_pixel_size): Adjusted for the format change of font-related
11572 objects.
11573 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11574 (font_style_to_value, font_style_symbolic): New function.
11575 (build_font_family_alist): Delete it.
11576 (font_registry_charsets): Use Fassoc_string instead of
11577 assq_no_quit.
11578 (font_prop_validate_symbol): Don't return null_string.
11579 (font_prop_validate_style): Adjusted for the change of
11580 style-related values in a font vector.
11581 (font_property_table): Delete entries for QClanguage and
11582 QCantialias, add entries for QCavgwidth.
11583 (get_font_prop_index): Delete the 2nd argument FROM.
11584 (font_prop_validate): Arguments changed.
11585 (font_put_extra): Adjusted for the change of font-related objects.
11586 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11587 (font_parse_fcname, font_unparse_fcname)
11588 (font_prepare_composition): Likewise.
11589 (font_parse_family_registry): Renamed from font_merge_old_spec.
11590 (otf_open): Delete the 1st arg entity.
11591 (font_otf_capability): Adjusted for the above change.
11592 (font_score): New arg alternate_families. Adjusted for the change
11593 of font-related objects.
11594 (font_sort_entites): New arg best_only.
11595 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11596 Delete them.
11597 (font_match_p): Check alternate families.
11598 (font_find_object): Delete it.
11599 (font_check_object): New function.
11600 (font_clear_cache): Adjusted for the change of font-related objects.
11601 (font_delete_unmatched): New arg.
11602 (font_list_entities): Call font_driver->list with a spec that
11603 doesn't specify style-related properties.
11604 (font_matching_entity): Arguments changed. Caller changed.
11605 (font_open_entity): Adjusted for the change of font-related objects.
11606 (font_close_object, font_has_char, font_encode_char)
11607 (font_get_name, font_get_spec): Likewise.
11608 (font_spec_from_name, font_clear_prop, font_update_lface):
11609 New functions.
11610 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11611 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11612 (font_at): Adjusted for the change of font-related objects.
11613 (font_range): New function.
11614 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11615 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11616 (Fcopy_font_spec, Fmerge_font_spec): New function.
11617 (Ffont_family_list): Renamed from list-families.
11618 (Finternal_set_font_style_table): Arguments changed.
11619 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11620 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11621 change of font-related objects.
11622 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11623
11624 * fontset.h (struct font_info): Delete it. Most members go to
11625 struct font.
11626 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11627 (enum FONT_SPEC_INDEX): Delete it.
11628 (font_info, list_fonts_func, load_font_func, query_font_func)
11629 (set_frame_fontset_func, find_ccl_program_func)
11630 (get_font_repertory_func, new_fontset_from_font_name): Delete
11631 externs.
11632 (fontset_from_font_name): Extern it.
11633 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11634 (FONT_INFO_FROM_FACE): Deleted.
11635 (face_for_font): Adjust prototype.
11636
11637 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11638 conditionals. Don't check enable_font_backend. Delete all codes
11639 used only when USE_FONT_BACKEND is not defined.
11640 (get_font_info_func, list_font_func, load_font_func)
11641 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11642 (get_font_repertory_func): Delete them.
11643 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11644 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11645 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11646 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11647 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11648 (fontset_compare_rfontdef): New function.
11649 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11650 rfont-defs by qsort. Adjusted for the change of font-group vector.
11651 (load_font_get_repertory): Deleted.
11652 (fontset_find_font): Use new macros to ref/set elements of
11653 font-def and rfont-def.
11654 (fontset_font): Fix the timing of remembering that no font for C.
11655 (free_face_fontset): Do nothing if the face has no fontset.
11656 (face_suitable_for_char_p): Use new macros to ref/set elements of
11657 rfont-def.
11658 (face_for_char): Likewise. Call face_for_char with font_object.
11659 (fs_load_font): Delete. Delete #pragma surrounding it.
11660 (fs_query_fontset): Use strcasecmp instead of strcmp.
11661 (generate_ascii_font_name): Adjusted for the format change of
11662 font-spec.
11663 (Fset_fontset_font): Likewise. Use new macros to set elements of
11664 font-def.
11665 (Fnew_fontset): Use font_unparse_xlfd to generate
11666 FONTSET_ASCII (fontset).
11667 (new_fontset_from_font_name): Deleted.
11668 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11669 a fontset is already created for the font. FIx updating of
11670 Vfontset_alias_alist.
11671 (fontset_ascii_font): Deleted.
11672 (Ffont_info): Adjusted for the format change of font-spec.
11673 (Finternal_char_font): Likewise.
11674 (Ffontset_info): Likewise.
11675 (syms_of_fontset): Don't check load_font_func.
11676
11677 * fns.c (internal_equal): Handle PREV_FONT.
11678
11679 * frame.h: Delete USE_FONT_BACKEND conditional.
11680
11681 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11682 conditionals. Don't check enable_font_backend. Delete all codes
11683 used only when USE_FONT_BACKEND is not defined.
11684 (x_set_font): Call x_new_font, not x_new_fontset2.
11685 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11686 already set for the frame.
11687
11688 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11689 a font-entity by font_make_entity. Use font_intern_prop instead
11690 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11691 font property. If a font is scalable, set avgwidth property to 0.
11692 Set font-entity property by font_put_extra.
11693 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11694 (ffont_driver): Adjusted for the change of struct font_driver.
11695 (ftfont_spec_pattern): New function.
11696 (ftfont_list): Return a list, not vector.
11697 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11698 (ftfont_list_family): Don't downcase names.
11699 (ftfont_free_entity): Deleted.
11700 (ftfont_open): Return a font-object. Adjusted for the change of
11701 struct font. Get underline_thickness and underline_position from
11702 font property. Don't update dpyinfo->smallest_font_height and
11703 dpyinfo->smallest_char_width.
11704 (ftfont_close): Don't free `struct font'.
11705 (ftfont_has_char): Adjusted for the format change of font-entity.
11706 (ftfont_encode_char, ftfont_text_extents): Likewise.
11707
11708 * ftxfont.c (ftxfont_list): Return a list, not vector.
11709 (ftxfont_open): Return a font-object. Adjusted for the change of
11710 struct font. Get underline_thickness and underline_position from
11711 font property. Don't update dpyinfo->smallest_font_height and
11712 dpyinfo->smallest_char_width.
11713 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11714 (ftxfont_draw): Adjusted for the change of struct font.
11715
11716 * image.c (image_ascent): Don't include "charset.h". Include
11717 "character.h" and "font.h".
11718
11719 * lisp.h (enum pvec_type): New member PREV_FONT.
11720 (Fassoc_string): EXFUN it.
11721
11722 * print.c: Include font.h.
11723 (print_object): Handle font-related objects.
11724
11725 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11726 conditionals. Don't check enable_font_backend. Delete all codes
11727 used only when USE_FONT_BACKEND is not defined.
11728 (handle_auto_composed_prop): Do nothing if it->f is not on a
11729 window system. Check how many following characters can be
11730 displayed by the same font.
11731 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11732 'struct font *'.
11733 (get_char_face_and_encoding): Assign the whole encoding task to
11734 the `encode-char' method of a font driver.
11735 (fill_composite_glyph_string): Adjusted for the change of `struct
11736 face' and `struct glyph_string'.
11737 (fill_glyph_string): Likewise.
11738 (get_per_char_metric): Arguments changed.
11739 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11740 and `struct glyph_string'.
11741 (produce_stretch_glyph, calc_line_height_property)
11742 (x_produce_glyphs): Likewise.
11743
11744 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11745 conditionals. Don't check enable_font_backend. Delete all codes
11746 used only when USE_FONT_BACKEND is not defined. Use
11747 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11748 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11749 (Qp): Extern them.
11750 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11751 Deleted.
11752 (struct font_name): Deleted.
11753 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11754 (compare_fonts_by_sort_order): New function.
11755 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11756 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11757 Deleted.
11758 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11759 compare_fonts_by_sort_order.
11760 (Fx_font_family_list): Call Ffont_family_list.
11761 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11762 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11763 (face_symbolic_slant, face_symbolic_swidth)
11764 (split_font_name_into_vector, build_font_name_from_vector)
11765 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11766 (font_rescale_ratio, split_font_name, build_font_name)
11767 (free_font_names, sort_fonts, x_face_list_fonts)
11768 (face_font_available_p, sorted_font_list, cmp_font_names)
11769 (font_list_1, concat_font_list, font_list, remove_duplicates):
11770 Deleted.
11771 (Fx_list_fonts): Use Ffont_list.
11772 (LFACE_AVGWIDTH): Deleted.
11773 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11774 by FONTP.
11775 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11776 (set_lface_from_font_name): Delete it.
11777 (set_lface_from_font): Renamed from
11778 set_lface_from_font_and_fontset. Caller changed. Don't set
11779 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11780 for face.
11781 (merge_face_vectors): Copy font-spec if necessary.
11782 Clear properties of the font-spec if necessary.
11783 (merge_face_ref): Clear properties of the font-spec if necessary.
11784 (Finternal_set_lisp_face_attribute): Likewise.
11785 (set_font_frame_param): Use font_load_for_lface to load a
11786 font-object, and call Fmodify_frame_parameters with it.
11787 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11788 font name by Ffont_xlfd_name.
11789 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11790 QCslant, and QCwidth.
11791 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11792 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11793 Compare fonts by EQ.
11794 (lookup_non_ascii_face): Deleted.
11795 (face_for_font): The 2nd argument changed.
11796 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11797 Check atomic font properties by case insensitive.
11798 (realize_non_ascii_face): Set face->overstrike correctly.
11799 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11800 (dump_realized_face): Get font name from
11801 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11802
11803 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11804 conditionals. Don't check enable_font_backend. Delete all codes
11805 used only when USE_FONT_BACKEND is not defined.
11806 (xic_create_xfontset): Original code deleted and renamed from
11807 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11808 (x_make_gc): Don't set GCFont in GCs.
11809 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11810 opened by "fixed".
11811 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11812 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11813 get_font_repertory_func.
11814
11815 * xfont.c: Include <stdlib.h> and "ccl.h".
11816 (struct xfont_info): New structure.
11817 (xfont_query_font): Deleted.
11818 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11819 moved from xterm.c.
11820 (xfont_driver): Adjusted for the change of struct font_driver.
11821 (compare_font_names): New function.
11822 (xfont_list_pattern): Sort font names case insensitively. Make
11823 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11824 (xfont_list): Return a list, not vector.
11825 (xfont_match): If the font doesn't have QCname property, generate
11826 a name from the other font properties.
11827 (xfont_open): Return a font-object. Adjusted for the change of
11828 struct font. Get underline_thickness and underline_position from
11829 font property. Don't update dpyinfo->smallest_font_height and
11830 dpyinfo->smallest_char_width.
11831 (xfont_close): Don't free struct font.
11832 (xfont_prepare_face): Adjusted for the change of struct font.
11833 (xfont_done_face): Deleted.
11834 (xfont_has_char): Adjusted for the change of struct font.
11835 (xfont_encode_char, xfont_draw): Likewise.
11836 (xfont_check): New function.
11837
11838 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11839 callback function.
11840 (xftfont_match): Adjusted for the format change of font-entity.
11841 (xftfont_open): Adjusted for the format change of font-entity and
11842 font-object. Adjusted for the change of struct font. Return a
11843 font-object. Don't update dpyinfo->smallest_font_height and
11844 dpyinfo->smallest_char_width.
11845 (xftfont_close): Block input while calling XftFontClose.
11846 (xftfont_prepare_face): Don't block input while calling
11847 xftfont_get_colors. Adjusted for the change of struct font.
11848 (xftfont_shape): Return value of error case fixed.
11849
11850 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11851
11852 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11853 conditionals.
11854 (FONT_WIDTH): Return (f)->max_width.
11855 (struct x_display_info): Delete member `font'.
11856 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11857 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11858 (struct x_output): Change type of `font' to `struct font *'.
11859
11860 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11861 conditionals. Don't check enable_font_backend. Delete all codes
11862 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11863 (x_per_char_metric, x_encode_char): Deleted.
11864 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11865 (x_compute_glyph_string_overhangs): Adjusted for the change of
11866 `struct face'.
11867 (x_draw_glyph_string_foreground)
11868 (x_draw_composite_glyph_string_foreground): Likewise.
11869 (x_draw_glyph_string): Likewise. Use font->underline_position and
11870 font->underline_thickness.
11871 (x_new_font): Renamed from x_new_fontset2.
11872 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11873 (x_check_font): Call `check' method of a font driver.
11874 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11875 (x_query_font, x_get_font_repertory): Deleted.
11876 (x_find_ccl_program): Renamed and moved to xfont.c.
11877 (x_redisplay_interface): Adjusted for the change of `struct
11878 redisplay_interface'.
11879
11880 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11881 conditionals. Don't check enable_font_backend. Delete all codes
11882 used only when USE_FONT_BACKEND is not defined. Surround non-used
11883 code by "#ifdef OLD_FONT" and "endif".
11884 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11885
11886 * w32font.h (struct w32font_info): New member.
11887 (FONT_COMPAT): New macro.
11888 (w32font_open_internal): Prototype adjusted.
11889
11890 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11891 OLD_FONT" and "endif".
11892
11893 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11894 conditionals. Don't check enable_font_backend. Delete all codes
11895 used only when USE_FONT_BACKEND is not defined.
11896 (w32font_open): Return a font-object. Make a font-object by
11897 font_make_object. Adjusted for the change of struct w32font_info.
11898 (w32font_close): Don't free struct font. Adjusted for the change
11899 of struct w32font_info.
11900 (w32font_encode_char, w32font_text_extents, w32font_draw):
11901 Adjusted for the change of struct w32font_info.
11902 (w32font_draw): Likewise.
11903 (w32font_list_internal): Return a list, not vector.
11904 (w32font_open_internal): Change the 4th arg to font-object.
11905 Adjusted for the change of struct w32font_info and font-object format.
11906 (add_font_name_to_list): Don't downcase names.
11907 (w32_enumfont_pattern_entity): Make a font-entity by
11908 font_make_entity. Adjusted for the format change of font-entity.
11909 Use FONT_SET_STYLE to set a style-related font property. If a
11910 font is scalable, set avgwidth property to 0. Set font-entity
11911 property by font_put_extra.
11912 (font_matches_spec): Adjusted for the format change of font-entity.
11913 (w32_weight_table, w32_decode_weight): New variables.
11914 (w32_encode_weight): New function.
11915 (fill_in_logfont): Adjusted for the format change of font-spec.
11916 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11917 weight value.
11918 (w32font_driver): Adjusted for the change of struct font_driver.
11919
11920 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11921 conditionals. Don't check enable_font_backend. Surround non-used
11922 code by "#ifdef OLD_FONT" and "endif".
11923 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11924 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11925
11926 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11927 conditionals. Don't check enable_font_backend. Delete all codes
11928 used only when USE_FONT_BACKEND is not defined. Surround non-used
11929 code by "#ifdef OLD_FONT" and "endif".
11930
11931 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11932 (uniscribe_open): Return value changed to font-object.
11933 Adjusted for the format change of font-object.
11934 (uniscribe_otf_capability): Adjusted for the change of struct font.
11935 (add_opentype_font_name_to_list): Don't downcase names.
11936 (uniscribe_font_driver): Adjusted for the change of struct
11937 font_driver.
11938
119392008-05-13 Chong Yidong <cyd@stupidchicken.com>
11940
11941 * dispnew.c (update_frame_1): Check if tty output is still valid
11942 before flushing it.
11943
119442008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11945
11946 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11947 to Gtk+ menus.
11948
119492008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11950
11951 * dired.c (file_name_completion): Tweak the code so as to always do it
11952 in a single pass. Tighten the scope of some variables.
11953
11954 * dired.c (Qdefault_directory): New var.
11955 (file_name_completion): Use it instead of Fexpand_file_name.
11956 (syms_of_dired): Initialize it.
11957
119582008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11959
11960 * fileio.c (double_dollars): Remove dead code.
11961
119622008-05-10 Eli Zaretskii <eliz@gnu.org>
11963
11964 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11965 Mention w32-get-true-file-attributes in doc string.
11966
11967 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11968
119692008-05-09 Glenn Morris <rgm@gnu.org>
11970
11971 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11972 2008-04-23.
11973
119742008-05-09 Eli Zaretskii <eliz@gnu.org>
11975
11976 Support for reporting owner and group of each file on MS-Windows:
11977 * dired.c (stat_uname, stat_gname): New functions, with special
11978 implementation for w32.
11979 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11980
11981 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11982 (dflt_group_name): New static variable.
11983 (dflt_group): Rename from the_group.
11984 (init_user_info): Init dflt_group fields. Get user's group name
11985 from LookupAccountSid.
11986 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11987 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11988 New initialization states.
11989 (globals_of_w32): Initialize them to zero. Initialize the default
11990 group name to "None".
11991 (GetFileSecurity_Name): New global var, the name of the function
11992 to call for GetFileSecurity.
11993 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11994 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11995 (get_file_security, get_security_descriptor_owner)
11996 (get_security_descriptor_group, is_valid_sid)
11997 (get_file_security_desc, get_rid, get_name_and_id)
11998 (get_file_owner_and_group): New functions.
11999 (stat): Use get_file_security_desc and get_file_owner_and_group to
12000 report the owner and primary group of each file. Don't ignore the
12001 high 32 bits of file's size, now that st_size is 64-bit wide.
12002 Fix test when to get true file attributes.
12003 (init_user_info): Use get_rid instead of equivalent inline code.
12004 (fstat): Don't ignore the high 32 bits of file's size.
12005
120062008-05-09 Chong Yidong <cyd@stupidchicken.com>
12007
12008 * image.c (png_load): Use correct bit-depth for setting background
12009 color.
12010
120112008-05-08 Eli Zaretskii <eliz@gnu.org>
12012
12013 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
12014 epa-hook.elc.
12015
120162008-05-08 Juanma Barranquero <lekktu@gmail.com>
12017
12018 * font.c (Ffont_match_p): Don't use `iff' in docstring.
12019
120202008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
12021
12022 * macfns.c (Fx_create_frame): Make a copy of frame parameters
12023 because the original parameters are in pure storage now.
12024 (mac_window): Remove unused params. Update callers.
12025
120262008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
12027
12028 * lread.c (substitute_object_recurse): Use lower-level primitives.
12029 Don't signal errors when traversing sub-char-tables.
12030 Don't loop over all the possible characters when traversing char-tables.
12031
12032 * print.c (print_preprocess): Add sub-char-tables to the print-table,
12033 just like we do in print.c.
12034
120352008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
12036
12037 * minibuf.c (Ftry_completion): Remove code left over from when we used
12038 scmp instead of Fcompare_strings.
12039
120402008-05-04 Juanma Barranquero <lekktu@gmail.com>
12041
12042 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
12043
120442008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12045
12046 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
12047 Create bitmap context in native byte order.
12048
12049 * macterm.c (XDrawLine)
12050 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
12051 context in native byte order.
12052
120532008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12054
12055 * config.in: Regenerate.
12056
12057 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
12058 New definitions for Image I/O support.
12059 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
12060 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
12061 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12062 (mac_data_provider_release_data, image_load_image_io)
12063 [USE_MAC_IMAGE_IO]: New functions.
12064 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
12065 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
12066 (init_image_func_pointer) [MAC_OSX]: Remove function.
12067 (image_load_quartz2d) [MAC_OSX]: Check availability of
12068 CGImageCreateWithPNGDataProvider at compile time.
12069 Use lowercase `false' for boolean constant.
12070 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
12071 Use image_load_image_io.
12072 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
12073 Don't check MyCGImageCreateWithPNGDataProvider.
12074 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
12075 Don't call init_image_func_pointer.
12076
12077 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
12078
12079 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
12080 Make variable non-static.
12081 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
12082 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
12083
12084 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
12085 (RED_FROM_ULONG): Mask off higher bits.
12086 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
12087
12088 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
12089 Include AvailabilityMacros.h.
12090 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
12091 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
12092
120932008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
12094
12095 * chartab.c (Fset_char_table_range): If range is t, really set all
12096 chars to that value.
12097
120982008-05-03 Eli Zaretskii <eliz@gnu.org>
12099
12100 * dired.c (Ffile_attributes): Don't allow the device number become
12101 negative.
12102
121032008-05-02 Daiki Ueno <ueno@unixuser.org>
12104
12105 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
12106
121072008-05-02 Juri Linkov <juri@jurta.org>
12108
12109 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
12110 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
12111 DEFAULT argument as a list of default values in docstrings.
12112
121132008-05-01 Chong Yidong <cyd@stupidchicken.com>
12114
12115 * puresize.h (BASE_PURESIZE): Increase to 1210000.
12116
121172008-05-01 Martin Rudalics <rudalics@gmx.at>
12118
12119 * dispnew.c (change_frame_size_1): Preserve small windows when
12120 shrinking frames by calling set_window_height|width with third
12121 arg 2.
12122
12123 * window.h (struct window): Replace field too_small_ok by field
12124 resize_proportionally.
12125
12126 * window.c (make_window): Initialize resize_proportionally.
12127 (enlarge_window): Temporarily set resize_proportionally to make
12128 sure that shrink_windows does scale the window proportionally.
12129 (shrink_windows): When window has resize_proportionally set try
12130 to shrink it proportionally by stealing from other windows.
12131 (struct saved_window, Fset_window_configuration)
12132 (compare_window_configurations): Handle resize_proportionally.
12133 (WINDOW_TOTAL_SIZE): New macro.
12134 (window_min_size, shrink_windows, size_window): Use it.
12135 (check_min_window_sizes): Remove. Invalid values of
12136 window-min-height|width are handled by window_min_size_2 now.
12137 (size_window, Fsplit_window, enlarge_window)
12138 (adjust_window_trailing_edge, grow_mini_window): Don't call
12139 check_min_window_sizes.
12140 (window_min_size_2, window_min_size_1, window_min_size):
12141 New argument safe_p for retrieving "safe" minimum sizes.
12142 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12143 (adjust_window_trailing_edge, grow_mini_window):
12144 Adjust arguments of window_min_size... functions.
12145 (shrink_windows): Argument min_size removed. New argument
12146 safe_p allows shrinking windows to their safe minimum sizes.
12147 Calculate minimum size and decide whether a window shall be
12148 deleted for each window individually.
12149 (size_window): When nodelete_p equals 2, tell shrink_windows to
12150 delete windows only if their new minimum size is no more safe.
12151 (shrink_window_lowest_first): Call window_min_size_1 to make
12152 sure to preserve modeline of bottom-most window when resizing
12153 the minibuffer.
12154 (Fset_window_configuration, Fcurrent_window_configuration)
12155 (compare_window_configurations): Do not handle
12156 window-min-height|width any more.
12157 (syms_of_window): Clarify window-min-height|width doc-strings.
12158
121592008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12160
12161 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12162 some more. Copy some of the code from Ftry_completions.
12163 Remove special case code that dates back to initial revision when the
12164 slash was only added when necessary and that can't trigger nowadays.
12165
121662008-04-27 Kenichi Handa <handa@m17n.org>
12167
12168 * font.c (font_prop_validate): Signal `error' instead of `font'.
12169
121702008-04-29 Jason Rumney <jasonr@gnu.org>
12171
12172 * w32fns.c (Fw32_battery_status): New defun.
12173 (syms_of_w32fns): Defsubr it.
12174
121752008-04-28 Andreas Schwab <schwab@suse.de>
12176
12177 * dired.c (file_name_completion): Fix another mixing of encoded
12178 and decoded names.
12179
121802008-04-28 Juanma Barranquero <lekktu@gmail.com>
12181
12182 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12183
121842008-04-27 Juanma Barranquero <lekktu@gmail.com>
12185
12186 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12187
121882008-04-27 Andreas Schwab <schwab@suse.de>
12189
12190 * dired.c (file_name_completion): Fix inappropriate mixing of
12191 encoded and decoded names.
12192
12193 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12194
12195 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12196
121972008-04-26 Eli Zaretskii <eliz@gnu.org>
12198
12199 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12200 2008-03-31, it's not needed anymore with `struct stat' definition
12201 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12202 for the same reasons.
12203
122042008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12205
12206 * m/sparc.h: Additional redefinitions for GNU/Linux.
12207
122082008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12209
12210 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12211 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12212 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12213 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12214 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12215 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12216 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12217 Likewise.
12218
12219 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12220 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12221 (mac_ax_number_of_characters): Add externs.
12222 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12223 [USE_MAC_TSM]: Likewise.
12224 (mac_handle_text_input_event) [MAC_OSX]:
12225 Handle kEventTextInputOffsetToPos for no active input area case.
12226 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12227 (mac_handle_document_access_event)
12228 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12229 (install_application_handler) [MAC_OSX]: Register handlers for
12230 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12231 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12232 Register mac_handle_document_access_event.
12233
12234 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12235 Make functions non-static.
12236
122372008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12238
12239 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12240 (read_file_name_completion_ignore_case, insert_default_directory)
12241 (Qdefault_directory): Move to minibuffer.el.
12242 (Fread_file_name): Call the new `read-file-name' instead.
12243
122442008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12245
12246 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12247 Make function non-static.
12248 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12249 Remove function.
12250 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12251 Move to mactoolbox.c.
12252 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12253
12254 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12255 (mac_rect_make): New macro.
12256
12257 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12258 instead of float.
12259 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12260 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12261 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12262 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12263 CGRectMake.
12264 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12265 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12266 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12267 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12268 instead of WindowRef in argument type.
12269 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12270 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12271 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12272 instead of DISPLAY. All uses changed.
12273 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12274 (x_calc_absolute_position): Simplify so as not to use
12275 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12276
12277 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12278 instead of WindowRef in argument type.
12279 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12280 [TARGET_API_MAC_CARBON]: Remove externs.
12281 (create_apple_event, mac_event_parameters_to_lisp)
12282 [TARGET_API_MAC_CARBON]: Add externs.
12283
12284 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12285 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12286 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12287 is clicked.
12288 (x_activate_menubar): Remove extern for saved_menu_event_location.
12289 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12290 Move from mac.c.
12291
122922008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12293
12294 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12295 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12296
122972008-04-23 Jason Rumney <jasonr@gnu.org>
12298
12299 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12300 attributes only for local files.
12301
12302 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12303 default to Qlocal.
12304
123052008-04-22 Juri Linkov <juri@jurta.org>
12306
12307 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12308 read-buffer-to-switch instead of using the letter "B".
12309
123102008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12311
12312 * fileio.c (Qdefault_directory): New variable.
12313 (Fread_file_name): Use it to pass `dir' to the completion functions.
12314
123152008-04-20 Chong Yidong <cyd@stupidchicken.com>
12316
12317 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12318
123192008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12320
12321 * keyboard.c (Vpre_help_message): Remove.
12322 (show_help_echo): Remove default C code.
12323
12324 * dired.c (directory_files_internal, file_name_completion):
12325 Only call ENCODE_FILE if the string is indeed decoded.
12326
123272008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12328
12329 * Makefile.in (TOOLKIT_DEFINES): Remove.
12330 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12331
123322008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12333
12334 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12335 (mactoolbox.o): New target.
12336
12337 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12338 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12339
12340 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12341 Use mac_set_frame_window_background instead of XSetWindowBackground.
12342 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12343 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12344 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12345 instead of SetWindowTitleWithCFString.
12346 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12347 Move function to mactoolbox.c.
12348 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12349 Use mac_set_window_modified instead of SetWindowModified.
12350 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12351 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12352 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12353 FrontNonFloatingWindow. Use mac_activate_window instead of
12354 ActivateWindow. Use mac_active_non_floating_window instead of
12355 ActiveNonFloatingWindow.
12356 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12357 Use mac_show_hourglass and mac_hide_hourglass.
12358 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12359 instead of GetGlobalMouse.
12360 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12361 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12362 Use mac_bring_window_to_front instead of BringToFront.
12363 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12364 mactoolbox.c.
12365 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12366 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12367 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12368 mactoolbox.c.
12369
12370 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12371 (XtPointer): Move typedef from macmenu.c.
12372 (enum button_type): Move enum from macmenu.c.
12373 (widget_value): Move typedef from macmenu.c.
12374 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12375 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12376 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12377 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12378 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12379 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12380 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12381 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12382 (Selection): Move typedef from macselect.c.
12383 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12384 macterm.c.
12385 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12386 (mac_is_window_collapsed, mac_bring_window_to_front)
12387 (mac_send_window_behind, mac_hide_window, mac_show_window)
12388 (mac_collapse_window, mac_front_non_floating_window)
12389 (mac_active_non_floating_window, mac_activate_window)
12390 (mac_move_window_structure, mac_move_window, mac_size_window)
12391 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12392
12393 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12394 (enum mac_menu_kind): Move enum to mactoolbox.c.
12395 (min_menu_id): Move variable to mactoolbox.c.
12396 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12397 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12398 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12399 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12400 [TARGET_API_MAC_CARBON]: Likewise.
12401 (XtPointer): Move typedef to macgui.h.
12402 (enum button_type): Move enum to macgui.h.
12403 (widget_value): Move typedef to macgui.h.
12404 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12405 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12406 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12407 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12408 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12409 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12410 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12411 (popup_activated_flag): Make variable non-static.
12412 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12413 (add_menu_item, fill_menu, dispose_menus):
12414 Move functions to mactoolbox.c.
12415 (restore_show_help_function, menu_target_item_handler)
12416 (install_menu_target_item_handler, mac_handle_dialog_event)
12417 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12418 [TARGET_API_MAC_CARBON]: Likewise.
12419 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12420 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12421 (find_and_call_menu_selection, name_is_separator): Make function
12422 non-static.
12423 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12424 to mactoolbox.c.
12425 (set_frame_menubar): Don't call install_menu_quit_handler.
12426 (menu_item_selection): New variable.
12427 (mac_menu_show): Use create_and_show_popup_menu.
12428 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12429 selection but set variable menu_item_selection. All uses changed.
12430 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12431 Call install_menu_quit_handler. Move to mactoolbox.c.
12432
12433 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12434 (Selection): Move typedef to macgui.h.
12435 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12436 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12437 Make variables non-static.
12438 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12439 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12440 Make functions non-static.
12441 (Vmac_service_selection) [MAC_OSX]: Likewise.
12442 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12443 (mac_valid_selection_target_p, mac_clear_selection)
12444 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12445 (mac_put_selection_value, mac_selection_has_target_p)
12446 (mac_get_selection_value, mac_get_selection_target_list)
12447 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12448 Move functions to mactoolbox.c.
12449 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12450 Likewise.
12451 (copy_scrap_flavor_data, mac_handle_service_event)
12452 (install_service_handler) [MAC_OSX]: Likewise.
12453 (syms_of_macselect) <Vmac_dnd_known_types>:
12454 Use mac_dnd_default_known_types.
12455
12456 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12457 Move to mactoolbox.c.
12458 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12459 (Fx_selection_owner_p): Add EXFUN.
12460 (install_window_handler, remove_window_handler, XSetWindowBackground):
12461 Remove externs.
12462 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12463 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12464 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12465 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12466 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12467 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12468 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12469 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12470 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12471 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12472 (mac_valid_selection_target_p, mac_clear_selection)
12473 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12474 (mac_put_selection_value, mac_selection_has_target_p)
12475 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12476 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12477 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12478 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12479 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12480 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12481 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12482 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12483 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12484
12485 * mactoolbox.c: New file.
12486
124872008-04-18 Jason Rumney <jasonr@gnu.org>
12488
12489 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12490
124912008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12492
12493 * character.c (Fmultibyte_char_to_unibyte):
12494 Return latin1 chars unchanged.
12495
12496 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12497 relocated if it points to `name'.
12498
124992008-04-17 Kenichi Handa <handa@m17n.org>
12500
12501 * data.c (Faset): Allow setting a multibyte character in an
12502 ASCII-only unibyte string.
12503
12504 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12505
125062008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12507
12508 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12509 done in config.h.
12510
125112008-04-16 Juanma Barranquero <lekktu@gmail.com>
12512
12513 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12514 (Fchar_direction): Add usage in the docstring.
12515
125162008-04-15 Chong Yidong <cyd@stupidchicken.com>
12517
12518 * keyboard.c (read_key_sequence): Remove always-true checks.
12519
125202008-04-14 Jason Rumney <jasonr@gnu.org>
12521
12522 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12523 compatibility struct, for better underline positioning.
12524
125252008-04-13 David Hansen <david.hansen@gmx.net>
12526
12527 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12528 string.
12529
125302008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12531
12532 * m/hp800.h (XUINT, XSET): Remove.
12533
125342008-04-12 Juanma Barranquero <lekktu@gmail.com>
12535
12536 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12537 previous change.
12538
125392008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12540
12541 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12542 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12543
125442008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12545
12546 * keymap.h (map_keymap_canonical): Declare.
12547 * xmenu.c (single_keymap_panes): Use it.
12548
125492008-04-11 Glenn Morris <rgm@gnu.org>
12550
12551 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12552 set the target's value to that of the alias.
12553
125542008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12555
12556 * term.c (set_tty_color_mode): Left over typo.
12557
125582008-04-10 Michael Albinus <michael.albinus@gmx.de>
12559
12560 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12561 only after check for file name handler functions. Signal, when
12562 native functionality is not supported.
12563 (syms_of_fileio): Declare it unconditionally.
12564
125652008-04-10 Jason Rumney <jasonr@gnu.org>
12566
12567 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12568 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12569
12570 * w32.c (logon_network_drive): Also logon to remote drives that
12571 are mapped to drive letters.
12572
125732008-04-10 Glenn Morris <rgm@gnu.org>
12574
12575 * xdisp.c (truncate-partial-width-windows): Doc fix.
12576
125772008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12578
12579 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12580 Move functions to minibuffer.el.
12581 (syms_of_fileio): Don't declare them.
12582
125832008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12584
12585 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12586 (syms_of_minibuf): Remove its initialization.
12587
12588 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12589
125902008-04-09 Juanma Barranquero <lekktu@gmail.com>
12591
12592 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12593
125942008-04-09 Jason Rumney <jasonr@gnu.org>
12595
12596 * makefile.w32-in (distclean): Delete makefile too.
12597 (maintainer-clean): New target.
12598
12599 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12600
12601 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12602 for new font backend and composite cases.
12603
126042008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12605
12606 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12607 Most of the code moved to run_timers.
12608 (do_pending_atimers): Call run_timers.
12609 (run_timers): New function.
12610
12611 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12612 run atimers.
12613
12614 * process.c (wait_reading_process_output): The same as above.
12615
126162008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12617
12618 * minibuf.c (last_exact_completion): Remove variable.
12619 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12620 (complete_and_exit_1, complete_and_exit_2)
12621 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12622 (Fdisplay_completion_list, display_completion_list_1)
12623 (Fminibuffer_completion_help, Fself_insert_and_exit)
12624 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12625 minibuffer.el.
12626 (syms_of_minibuf): Remove corresponding initializations.
12627
12628 * keyboard.c (Qdeactivate_mark): New var.
12629 (command_loop_1): Use it to call `deactivate-mark'.
12630 (syms_of_keyboard): Initialize it.
12631
12632 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12633 to another frame.
12634 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12635 Don't call set_tty_color_mode.
12636 (store_frame_param): Reset previous_frame rather than call
12637 set_tty_color_mode.
12638 * term.c (set_tty_color_mode): Rewrite.
12639 * dispextern.h (set_tty_color_mode): New type.
12640 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12641
126422008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12643
12644 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12645 for generic chars, which do not exist any more in emacs-unicode.
12646
126472008-04-08 Michael Albinus <michael.albinus@gmx.de>
12648
12649 * coding.c (detect_coding_emacs_mule)
12650 (Ffind_operation_coding_system): Fix typo.
12651
126522008-04-08 Jason Rumney <jasonr@gnu.org>
12653
12654 * w32uniscribe.c (SNAME): Extract only symbol name.
12655
12656 * w32font.h (struct w32_metric_cache): New struct.
12657 (w32font_info): Use it.
12658 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12659 (CACHE_BLOCKSIZE): New constants.
12660
12661 * w32font.c (Qja, Qko, Qzh): New symbols.
12662 (syms_of_w32font): Initialise them.
12663 (font_matches_spec): Use them to filter by language.
12664 (recompute_cached_metrics): Remove function.
12665 (compute_metrics, clear_cached_metrics): New functions.
12666 (w32font_encode_char): Use them to manage metric cache.
12667 (w32font_text_extents): Cache metrics for all glyphs on demand.
12668 Delay converting glyph indices to WORD until needed.
12669 (w32font_open_internal): Initialize metric cache to empty.
12670 (registry_to_w32_charset): Charset should always be a symbol.
12671 (fill_in_logfont, list_all_matching_fonts): Family should
12672 always be a symbol.
12673
126742008-04-06 Jason Rumney <jasonr@gnu.org>
12675
12676 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12677 Give up if glyph indices not supported. Use uniscribe obtained
12678 ABC widths for individual metrics. Map glyph clusters back to
12679 characters using fClusterStart flag. Return number of glyphs
12680 produced, not chars processed.
12681 (uniscribe_shape): Map char at FROM to current glyph.
12682
126832008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12684
12685 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12686 Use SetMenuItemHierarchicalMenu.
12687
126882008-04-05 Jason Rumney <jasonr@gnu.org>
12689
12690 * image.c (pbm_load): Allow color values up to 65535.
12691 Throw an error if max_color_idx is outside the supported range.
12692 Report an error when image size is invalid.
12693 Read two bytes at a time when raw images have max_color_idx above 255.
12694
126952008-04-05 Eli Zaretskii <eliz@gnu.org>
12696
12697 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12698 cFileName a file name that includes `?' characters, use the 8+3
12699 alias in cAlternateFileName instead.
12700
127012008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12702
12703 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12704 append "CCL: Quitted" when the CCL program is quitted.
12705 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12706
12707 * ccl.h (struct ccl_program): New member quit_silently.
12708
127092008-04-05 Chong Yidong <cyd@stupidchicken.com>
12710
12711 * search.c (compile_pattern_1): Treat non-nil and non-string of
12712 search-spaces-regexp as nil.
12713
12714 * minibuf.c (Fassoc_string): Tweak docstring.
12715
127162008-04-05 Eli Zaretskii <eliz@gnu.org>
12717
12718 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12719 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12720 2008-03-14 to force inode be positive.
12721
12722 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12723 _S_* ones, since we now use our own sys/stat.h.
12724 (stat, fstat): Don't mangle the inode number.
12725 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12726
127272008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12728
12729 * frame.h (struct frame): Give one more bit to `visible' since we use
12730 values larger than 1 to indicate obscured frames on ttys.
12731
12732 * keymap.c (Qkeymap_canonicalize): New var.
12733 (Fmap_keymap_internal): New fun.
12734 (describe_map): Use keymap-canonicalize.
12735
12736 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12737 (Fundo_boundary): Set them.
12738 (syms_of_undo): Initialize them.
12739 (record_point): Use them instead of last_point_position*.
12740 (last_undo_buffer): Change type.
12741
127422008-04-04 Jason Rumney <jasonr@gnu.org>
12743
12744 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12745 (recompute_cached_metrics): Don't set ascent and descent per char.
12746
12747 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12748 (uniscribe_check_otf): Add GC protection before consing.
12749 Rearrange loop for counting features.
12750
127512008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12752
12753 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12754 buffer with byte-size of source buffer.
12755
127562008-04-03 Chong Yidong <cyd@stupidchicken.com>
12757
12758 * callint.c (Fcall_interactively): Handle temporary region even
12759 when shift-select-mode is off.
12760
127612008-04-03 Jason Rumney <jasonr@gnu.org>
12762
12763 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12764
127652008-04-03 Kenichi Handa <handa@m17n.org>
12766
12767 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12768 (CATEGORY_MASK_UTF_16): Likewise.
12769 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12770 binary file.
12771 (detect_coding): Add null-byte detection for a binary file.
12772 (detect_coding_system): Likewise.
12773
127742008-04-03 Jason Rumney <jasonr@gnu.org>
12775
12776 * w32uniscribe.c: New file.
12777
12778 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12779
12780 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12781
12782 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12783 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12784 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12785 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12786 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12787 (Qphonetic): New symbols.
12788 (syms_of_w32font): Initialize them.
12789 (font_supported_scripts): Use them.
12790 (w32font_list_family): List all charsets.
12791 (w32font_text_extents, recompute_cached_metrics): Fix metric
12792 calculations.
12793 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12794 Give opentype fonts their own format.
12795 (font_matches_spec): New arguments backend and logfont.
12796 Handle :otf spec for uniscribe backend.
12797 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12798 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12799
12800 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12801 font backend.
12802 (globals_of_w32fns): Initialize uniscribe font backend.
12803
12804 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12805 dependencies.
12806 (w32uniscribe.$(O)): New file to build.
12807 (FONT_OBJ): Include w32uniscribe.$(O).
12808 (LIBS): Add uniscribe libraries.
12809
12810 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12811
128122008-04-02 Chong Yidong <cyd@stupidchicken.com>
12813
12814 * callint.c (Vshift_select_mode): New var.
12815 (Finteractive): Document new ^ spec.
12816 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12817 is present.
12818
12819 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12820 (command_loop_1): Avoid running the direct display versions of
12821 forward-char and backward-char if shift-selection may occur.
12822 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12823 shift-translation takes place.
12824
12825 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12826 avoid clobbering by define-minor-mode.
12827
12828 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12829 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12830
12831 * syntax.c (Fforward_word): Add ^ interactive spec.
12832
12833 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12834 (Fscroll_right): Add ^ interactive spec.
12835
128362008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12837
12838 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12839
12840 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12841
12842 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12843
128442008-03-31 Juri Linkov <juri@jurta.org>
12845
12846 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12847
128482008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12849
12850 * gtkutil.c (xg_set_geometry): Fix indentation.
12851 (xg_resize_outer_widget): Remove.
12852 (x_wm_size_hint_off): Fix indentation.
12853 (xg_frame_set_char_size): Call flush_and_sync after
12854 gtk_window_resize.
12855 (x_wm_set_size_hint): Pass NULL as geometry window to
12856 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12857 Add menu bar and tool bar height to base height.
12858 (xg_update_frame_menubar, free_frame_menubar)
12859 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12860 (update_frame_tool_bar, free_frame_tool_bar):
12861 Change xg_resize_outer_widget to xg_frame_set_char_size.
12862
128632008-03-30 Michael Albinus <michael.albinus@gmx.de>
12864
12865 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12866 (Fdbus_call_method): New parameter TIMEOUT.
12867 (dbus-send-signal): Optimize UNGCPRO call.
12868
128692008-03-29 Juri Linkov <juri@jurta.org>
12870
12871 * window.c (Fdisplay_buffer): Move call to
12872 Vsplit_window_preferred_function out of conditions that check
12873 if window is eligible for vertical splitting.
12874 When Vsplit_window_preferred_function is non-nil, call it and use
12875 its non-nil return value as window. Otherwise, continue doing
12876 vertical splitting using Fsplit_window with arg horflag=nil.
12877 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12878 default value from `split-window' to nil.
12879
128802008-03-29 Juri Linkov <juri@jurta.org>
12881
12882 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12883 for interactive code letters 'b' and 'B'.
12884
128852008-03-29 Eli Zaretskii <eliz@gnu.org>
12886
12887 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12888 multibyte string.
12889
128902008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12891
12892 * keyboard.c (pending_funcalls): New var.
12893 (timer_check): Run it.
12894 (syms_of_keyboard): Initialize it.
12895 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12896 (Vdelete_terminal_functions): New vars.
12897 (syms_of_terminal): Initialize them.
12898 (Fdelete_terminal): Run delete-terminal-functions.
12899 * xdisp.c (safe_eval): Rewrite.
12900 (safe_call2): New fun.
12901 * frame.c (Qdelete_frame_functions): New var.
12902 (syms_of_frame): Initialize it.
12903 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12904 * lisp.h (safe_call2, pending_funcalls): Declare.
12905
129062008-03-28 Andreas Schwab <schwab@suse.de>
12907
12908 * indent.c (Fmove_to_column): Move declaration before statements.
12909
129102008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12911
12912 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12913 (struct frame): Use bit fields for boolean vars.
12914
12915 * process.c (server_accept_connection): Simplify naming.
12916 (emacs_get_tty_pgrp): Use SDATA.
12917
12918 * coding.c (decode_coding_object): Fix last change.
12919
129202008-03-27 Jason Rumney <jasonr@gnu.org>
12921
12922 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12923
129242008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12925
12926 * charset.c (Fdefine_charset_internal): Change the way of
12927 registering charsets in Vcharset_order_list.
12928 (syms_of_charset): Make the charset `eight-bit' supplementary.
12929
129302008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12931
12932 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12933 operations, to avoid having the difference between pointers
12934 overflow.
12935
129362008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12937
12938 * indent.c (check_display_width): New fun.
12939 (scan_for_column): Use it.
12940
12941 * data.c (syms_of_data): Mark most-positive-fixnum and
12942 most-negative-fixnum as constants.
12943
12944 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12945
12946 * indent.c (scan_for_column): Extract from current_column_1.
12947 Merge with the same code from Fmove_to_column.
12948 (current_column_1, Fmove_to_column): Use it.
12949
129502008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12951
12952 * keymap.c (map_keymap_internal): New fun.
12953 (map_keymap): Use it.
12954 (Fmap_keymap_internal): New fun.
12955 (Fmap_keymap): Remove left-out test from before make_save_value.
12956
12957 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12958
12959 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12960 Use XCAR/XCDR.
12961
12962 * process.h (struct Lisp_Process): Remove filter_multibyte.
12963 * process.c (QCfilter_multibyte): Remove.
12964 (setup_process_coding_systems): Don't use filter_multibyte.
12965 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12966 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12967 (Fset_process_filter_multibyte): Change the coding-system to
12968 approximate the previous behavior.
12969 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12970 coding-system.
12971
12972 * coding.c (decode_coding_object): When not decoding into a buffer,
12973 obey the coding system's preference of (uni|multi)byte.
12974
129752008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12976
12977 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12978 every char is changed and has a different byte-length.
12979 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12980 Fix int -> EMACS_INT.
12981
129822008-03-23 David Hansen <david.hansen@gmx.net>
12983
12984 * dbusbind.c (xd_read_message): Remove extra copying of message
12985 strings. Check for NULL `interface' or `member'.
12986
129872008-03-22 Eli Zaretskii <eliz@gnu.org>
12988
12989 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12990 cFileName a file name that includes `?' characters, use the 8+3
12991 alias in cAlternateFileName instead.
12992
129932008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12994
12995 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12996
129972008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12998
12999 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
13000 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
13001 work on current_buffer only instead (that was already the case
13002 for some of the code anyway).
13003 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
13004 (temp_set_point, temp_set_point_both): Use EMACS_INT.
13005 (SET_PT, SET_PT_BOTH): Adjust.
13006 * intervals.h (set_point, temp_set_point, set_point_both)
13007 (temp_set_point_both): Remove redundant declarations.
13008
130092008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
13010
13011 * fileio.c (Finsert_file_contents):
13012 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
13013 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
13014 when buffer != current_buffer anyway.
13015
130162008-03-20 Andreas Schwab <schwab@suse.de>
13017
13018 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
13019 as default.
13020
130212008-03-19 Jason Rumney <jasonr@gnu.org>
13022
13023 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
13024 (syms_of_w32fns): Initialize them.
13025 (HOURGLASS_ID): New constant.
13026 (x_window_to_frame): Don't check hourglass_window.
13027 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
13028 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
13029 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
13030 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
13031 Only change the cursor if hourglass is not active.
13032 (Fx_create_frame): Initialize frame's current_cursor.
13033 (hourglass_atimer): Remove.
13034 (hourglass_started): New function.
13035 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
13036 (show_hourglass): Adapt to w32, changing argument to frame.
13037
13038 * w32term.h (struct w32_output): Remove hourglass_window.
13039 Add current_cursor.
13040
13041 * eval.c (call_debugger, Fsignal):
13042 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
13043 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
13044 (Fexecute_extended_command, cancel_hourglass_unwind):
13045 * minibuf.c (read_minibuf):
13046 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
13047
130482008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
13049
13050 * window.c (run_funs): New fun.
13051 (run_window_configuration_change_hook): Use it to run the buffer-local
13052 and the global part of the hook.
13053
13054 * xdisp.c (format_mode_line_unwind_data): Add window argument.
13055 (unwind_format_mode_line): Restore selected window.
13056 (x_consider_frame_title, Fformat_mode_line): Set selected window.
13057
130582008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
13059
13060 * editfns.c (Fchar_equal): Check they are valid characters.
13061
13062 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
13063
130642008-03-17 Andreas Schwab <schwab@suse.de>
13065
13066 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
13067 against a charset.
13068
13069 * lisp.h (Fbuffer_list): Declare.
13070
130712008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 13072
aac0c6e3
MR
13073 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
13074 handlebox_widget is != 0.
13075
130762008-03-16 Juri Linkov <juri@jurta.org>
13077
13078 * callint.c (Fcall_interactively): For interactive code letters
13079 'b' and 'B' put the buffer list into the list of default "future"
13080 values of the minibuffer.
13081
130822008-03-16 Andreas Schwab <schwab@suse.de>
13083
13084 * keyboard.c (read_key_sequence): Fix downcasing of letters with
13085 modifiers.
13086
13087 * regex.c (re_match_2_internal): Correct matching of a charset
13088 against latin-1 characters.
13089
130902008-03-16 Kenichi Handa <handa@m17n.org>
13091
13092 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
13093 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
13094 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
13095 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
13096 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
13097 CHAR_STRING_ADVANCE.
13098 (produce_chars): Fix for the case that the source and the
13099 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
13100 instead of CHAR_STRING_ADVANCE.
13101 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
13102 STRING_CHAR_ADVANCE.
13103
131042008-03-15 Andreas Schwab <schwab@suse.de>
13105
13106 * regex.c (re_match_2_internal): Correct matching of eight bit
13107 characters in unibyte strings.
13108
131092008-03-15 Martin Rudalics <rudalics@gmx.at>
13110
13111 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
13112 at end of range when it coincides with the end of the buffer.
13113
131142008-03-14 Eli Zaretskii <eliz@gnu.org>
13115
13116 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
13117
13118 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
13119
131202008-03-14 Jason Rumney <jasonr@gnu.org>
13121
13122 * editfns.c (initial_tz): New variable.
13123 (syms_of_editfns): Initialize it.
13124 (Fset_time_zone_rule): Set it when first called.
13125 Use it when TZSTRING is nil.
13126
13127 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
13128 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
13129 (monitor_from_point_fn, get_monitor_info_fn): New globals.
13130 (globals_of_w32fns): Initialize them.
13131 (compute_tip_xy): Use them to position tooltips.
13132
131332008-03-14 Glenn Morris <rgm@gnu.org>
13134
13135 * emacs.c (main): Revert previous change.
13136 (standard_args): Revert -internal-script back to -scriptload,
13137 and remove the long-option form.
13138
131392008-03-13 Glenn Morris <rgm@gnu.org>
13140
13141 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13142 Remove option -enable-font-backend.
13143
131442008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13145
13146 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13147
131482008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13149
13150 * xterm.c (x_connection_closed): For GTK: If this is the last
13151 terminal just exit without closing the display.
13152
131532008-03-11 Jason Rumney <jasonr@gnu.org>
13154
13155 * w32font.c (w32font_full_name): Use floor to round.
13156
f0131492 131572008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13158
13159 * sound.c (alsa_configure): Declare vol at beginning of block.
13160
13161 * fontset.c (Ffontset_info): Remove extra semicolon.
13162
131632008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13164
13165 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13166 size of resulting string.
13167
131682008-03-10 Jason Rumney <jasonr@gnu.org>
13169
13170 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13171
131722008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13173
13174 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13175 Don't pretend as if characters with display property haven't been
13176 consumed for string-replacing-string case.
13177
131782008-03-08 Kim F. Storm <storm@cua.dk>
13179
13180 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13181 (get_next_display_element, next_element_from_string)
13182 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13183
131842008-03-08 Andreas Schwab <schwab@suse.de>
13185
13186 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13187
131882008-03-06 Jason Rumney <jasonr@gnu.org>
13189
13190 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13191 when charset not specified. Only translate ANSI to unicode when
13192 font_type is truetype.
13193 (w32font_coverage_ok): New function.
13194 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13195
131962008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13197
13198 * lread.c (Fread_char): Resolve modifiers.
13199 (Fread_char_exclusive): Likewise.
13200
13201 * character.c (char_resolve_modifier_mask): New function.
13202 (char_string): Use char_resolve_modifier_mask.
13203 (Fchar_resolve_modifiers): New function.
13204 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13205 function.
13206
132072008-03-04 Jason Rumney <jasonr@gnu.org>
13208
13209 * makefile.w32-in: Always include w32font.c in the build.
13210 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13211
132122008-03-04 Andreas Schwab <schwab@suse.de>
13213
13214 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13215 (versionclean): Likewise.
13216
132172008-03-04 Juanma Barranquero <lekktu@gmail.com>
13218
13219 * .cvsignore: Add oo.
13220
132212008-03-03 Andreas Schwab <schwab@suse.de>
13222
13223 * coding.c (decode_coding_object): Inhibit gap shrinking while
13224 decoding in place.
13225
132262008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13227
13228 * w32term.c: Remove unused include "gnu.h".
13229 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13230
13231 * gnu.h: Rename to ...
13232 * emacs-icon.h: ... this.
13233 * xterm.c: Use emacs-icon.h instead of gnu.h.
13234 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13235
132362008-03-03 Juanma Barranquero <lekktu@gmail.com>
13237
13238 * w32font.c: Include math.h.
13239
132402008-03-03 Jason Rumney <jasonr@gnu.org>
13241
13242 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13243 Compute options separately.
13244 (w32font_open_internal): Set glyph_idx before caching metrics.
13245
13246 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13247 Define if system headers don't.
13248 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13249 (w32font_encode_char): Don't declare here.
13250
13251 * w32font.c (Quniscribe, QCformat): New symbols.
13252 (syms_of_w32font): Define them.
13253 (w32font_has_char): Indicate uncertainty.
13254 (w32font_encode_char): Encode as glyph point. Make static.
13255 (recompute_cached_metrics): New function.
13256 (w32font_open_internal): Use it. Set font to use glyph points
13257 initially. Set format based on type of font.
13258 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13259 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13260 on it. Set format based on information available here.
13261 (add_font_entity_to_list): Identify backend based on opentype_only.
13262
132632008-03-02 Andreas Schwab <schwab@suse.de>
13264
13265 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13266
13267 * coding.c (decode_coding_big5, produce_chars):
13268 Fix typos in last change.
13269
132702008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13271
13272 * gnu.h: New icon.
13273
132742008-03-02 Kenichi Handa <handa@m17n.org>
13275
13276 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13277 `dos', don't decode '\r' if that is the last in the source.
13278 (decode_coding_utf_16, decode_coding_emacs_mule)
13279 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13280 (decode_coding_raw_text, decode_coding_charset): Likewise.
13281 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13282
132832008-03-01 Jason Rumney <jasonr@gnu.org>
13284
13285 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13286
132872008-03-01 Kim F. Storm <storm@cua.dk>
13288
13289 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13290
132912008-03-01 Jason Rumney <jasonr@gnu.org>
13292
13293 * w32font.c (w32font_full_name): New function.
13294 (w32font_open_internal): Use it.
13295
132962008-03-01 Kim F. Storm <storm@cua.dk>
13297
13298 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13299
133002008-03-01 Jason Rumney <jasonr@gnu.org>
13301
13302 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13303
133042008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13305
13306 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13307 xg_frame_resized when the event is for the edit widget.
13308
13309 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13310
13311 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13312 set_char_size.
13313 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13314 operations on widgets here. Just set frame size if needed.
13315 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13316 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13317 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13318 the whole frame.
13319 (xg_create_tool_bar): Move attachment of the tool bar to
13320 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13321 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13322
133232008-03-01 Jason Rumney <jasonr@gnu.org>
13324
13325 * w32fns.c (w32_msg_pump): Disable debug code.
13326
133272008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13328
13329 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13330
133312008-02-29 Chong Yidong <cyd@stupidchicken.com>
13332
13333 * xdisp.c (next_overlay_string): Don't set
13334 overlay_strings_at_end_processed_p if we're currently reading from
13335 a display string.
13336
133372008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13338
13339 * xdisp.c (get_overlay_strings_1): Fix typo.
13340
133412008-02-29 Chong Yidong <cyd@stupidchicken.com>
13342
13343 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13344
133452008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13346
13347 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13348
13349 * xdisp.c (display_mode_element): Cancel the previous change.
13350 (decode_mode_spec): Likewise.
13351 (handle_auto_composed_prop): Don't make composition if it->string
13352 is a string.
13353
133542008-02-27 Kim F. Storm <storm@cua.dk>
13355
13356 * lisp.h (GLYPH): Change type from int to struct with separate char
13357 and face_id members.
13358 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13359 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13360 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13361 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13362 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13363 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13364 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13365 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13366 handle new Lisp glyph code encoding, either an integer or a cons.
13367
13368 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13369 (GLYPH_ALIAS): Delete.
13370 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13371 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13372 (GLYPH_FROM_CHAR): Replace macro by ...
13373 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13374
13375 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13376 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13377 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13378 (GLYPH_INVALID_P): New macro.
13379 (spec_glyph_lookup_face): Update prototype.
13380
13381 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13382 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13383 new glyph code encoding.
13384 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13385 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13386
13387 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13388 Adapt to new glyph type and new glyph code encoding.
13389
13390 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13391
13392 * indent.c (current_column, current_column_1, Fmove_to_column)
13393 (compute_motion): Adapt to new glyph code encoding.
13394
13395 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13396
133972008-02-27 Chong Yidong <cyd@stupidchicken.com>
13398
13399 * process.c (wait_reading_process_output): Check for window
13400 changes caused by timers.
13401 Suggested by Johan Bockgård.
13402
134032008-02-27 Glenn Morris <rgm@gnu.org>
13404
13405 * emacs.c (USAGE1): Add `--disable-font-backend'.
13406
134072008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13408
13409 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13410 is made to the buffer.
13411
134122008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13413
13414 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13415 (face_at_string_position):
13416 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13417 (face_at_string_position):
13418 * xdisp.c (display_string, next_overlay_change):
13419 * buffer.h (overlays_at):
13420 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13421 Update callers.
13422
134232008-02-26 Chong Yidong <cyd@stupidchicken.com>
13424
13425 * editfns.c (Fformat): Doc fix.
13426
134272008-02-26 Juanma Barranquero <lekktu@gmail.com>
13428
13429 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13430 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13431 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13432
134332008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13434
13435 * buffer.c (Fbuffer_swap_text): New function.
13436 (syms_of_buffer): Defsubr it.
13437
134382008-02-25 Chong Yidong <cyd@stupidchicken.com>
13439
13440 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13441
134422008-02-25 Jason Rumney <jasonr@gnu.org>
13443
13444 * w32font.c (w32font_draw): Draw one character at a time when padding.
13445
134462008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13447
13448 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13449 Handle a nil arg. Use run_window_configuration_change_hook.
13450 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13451 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13452 Use run_window_configuration_change_hook.
13453
134542008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13455
13456 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13457 1-pixel width.
13458
134592008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13460
13461 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13462 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13463 if the glyph in the font is zero pixel with.
13464
13465 * dispextern.h (struct glyph_string): New member padding_p.
13466
13467 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13468
13469 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13470
13471 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13472
13473 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13474
13475 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13476
134772008-02-25 Jason Rumney <jasonr@gnu.org>
13478
13479 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13480
134812008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13482
13483 Allow fine-grained image-cache flushing.
13484 * dispextern.h (struct image): Add `dependencies' field.
13485 (clear_image_caches): Change arg to Lisp_Object.
13486 * image.c (make_image): Initialize `dependencies' field.
13487 (clear_image_cache): Change arg to allow fine-grained flushing.
13488 Perform the flush even if image-cache-eviction-delay is nil.
13489 (clear_image_caches): Change arg to Lisp_Object.
13490 (Fclear_image_cache): Expand meaning of the argument.
13491 (mark_image): Mark `dependencies' field.
13492 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13493 (lface_hash): Use XHASH rather than XFASTINT.
13494 (face_at_buffer_position): Fix int -> EMACS_INT position.
13495 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13496 (select_frame_for_redisplay): Remove code duplication.
13497 (redisplay_internal): Adapt arg to call to clear_image_caches.
13498
134992008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13500
13501 * s/vms4-0.h:
13502 * s/vms4-2.h:
13503 * s/vms4-4.h:
13504 * s/vms5-5.h: Remove, unused.
13505
13506 * s/irix5-2.h:
13507 * s/irix6-0.h:
13508 * s/riscos5.h:
13509 * s/mach-bsd4-3.h:
13510 * m/mips4.h: Remove files for obsolete systems.
13511
13512 * Makefile.in:
13513 * filelock.c:
13514 * unexmips.c:
13515 * m/hp9000s300.h:
13516 * m/iris4d.h:
13517 * s/aix3-1.h:
13518 * s/hpux.h:
13519 * s/msdos.h:
13520 * s/usg5-0.h:
13521 * s/usg5-2-2.h:
13522 * s/usg5-2.h:
13523 * s/usg5-3.h: Remove references to obsolete variables.
13524
13525 * s/irix5-0.h: Remove, move all the contents ...
13526 * s/irix6-5.h: ... here. Simplify.
13527 * config.in: Regenerate.
13528
135292008-02-24 Jason Rumney <jasonr@gnu.org>
13530
13531 * w32term.c (x_draw_glyph_string_background): Clear the background
13532 manually when cleartype is in use.
13533 (x_draw_glyph_string_foreground): Draw text transparently when
13534 cleartype is in use.
13535
13536 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13537 a font into it unless we have to.
13538
135392008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13540
13541 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13542 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13543
aac0c6e3
MR
135442008-02-18 Jason Rumney <jasonr@gnu.org>
13545
13546 * w32fns.c (Fw32_shell_execute): Encode parameters.
13547
135482008-02-09 Eli Zaretskii <eliz@gnu.org>
13549
13550 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13551
135522008-02-05 Juanma Barranquero <lekktu@gmail.com>
13553
13554 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13555
135562008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13557
13558 * xterm.c (x_set_offset): Don't change the gravity if
13559 CHANGE_GRAVITY is -1.
13560
135612008-02-23 Chong Yidong <cyd@stupidchicken.com>
13562
13563 * fileio.c (auto_save_error_occurred): New var.
13564 (auto_save_error): Set it.
13565 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13566 error occurred.
13567
135682008-02-23 Eli Zaretskii <eliz@gnu.org>
13569
13570 * w32.c (globals_of_w32): Add initializations for
13571 g_b_init_get_sid_sub_authority and
13572 g_b_init_get_sid_sub_authority_count.
13573
135742008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13575
13576 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13577 (font_parse_xlfd): Use them for sanity check.
13578 (Finternal_set_font_style_table): Make sure the table is bijective.
13579
13580 Consolidate the image_cache to the terminal struct.
13581 * termhooks.h (P_): Remove redundant def.
13582 (struct terminal): New field `image_cache'.
13583 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13584 of FRAME_X_IMAGE_CACHE.
13585 * xterm.h (struct x_display_info): Remove image_cache field.
13586 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13587 * w32term.h (struct w32_display_info): Remove image_cache field.
13588 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13589 * macterm.h (struct mac_display_info): Remove image_cache field.
13590 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13591 * xterm.c (x_term_init):
13592 * w32term.c (w32_term_init):
13593 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13594 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13595 Remove declarations.
13596 (clear_image_caches, mark_image_cache): New declarations.
13597 * xfaces.c (clear_face_cache):
13598 * xdisp.c (redisplay_internal): Use clear_image_caches.
13599 * image.c (clear_image_cache): Don't check that a frame is on
13600 a window-system before checking if it shares the same cache.
13601 (clear_image_caches): New function.
13602 (Fclear_image_cache): Use it.
13603 (mark_image): Move from allo.c.
13604 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13605 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13606 (mark_object): Don't call mark_image_cache for frames.
13607 (mark_terminals): Call mark_image_cache.
13608
13609 * lisp.h (Fdelete_terminal): Declare.
13610
13611 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13612 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13613 wrong_type_argument.
13614
136152008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13616
13617 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13618 malayalam.el, and tamil.el. Add sinhala.el.
13619
136202008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13621
13622 * xterm.c (x_connection_closed): Consolidate identical tests.
13623 (x_delete_terminal): Don't crash if called via x_connection_closed.
13624
136252008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13626
13627 * xdisp.c (decode_mode_spec): New arg string.
13628 (display_mode_element): Adjust for the above change.
13629
136302008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13631
13632 * callint.c (Fcall_interactively): Use AREF.
13633
136342008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13635
13636 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13637
136382008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13639
13640 * xfns.c (Fx_show_tip): Set string to " " if empty.
13641
136422008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13643
13644 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13645 with Qt.
13646
136472008-02-17 Kenichi Handa <handa@m17n.org>
13648
13649 * ftfont.c (ftfont_shape): Return Lispy number.
13650
13651 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13652 for GCs.
13653 (Finternal_set_font_selection_order): Call font_update_sort_order
13654 only when enable_font_backend is set.
13655 (realize_x_face): Set face->font_info to that of default face only
13656 when enable_font_backend is set.
13657
13658 * xdisp.c (handle_composition_prop): Set it->c to the fist
13659 character of the composed region.
13660 (fill_composite_glyph_string): Set base_face->font_info to
13661 s->font_info. Get a face for ascii from base_face->ascii_face.
13662 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13663 with a face already decided.
13664 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13665 non-negative.
13666 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13667 call font_prepare_composition unconditionally.
13668
13669 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13670
13671 * xterm.h (struct x_display_info): New member font.
13672
13673 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13674 (x_set_mouse_face_gc, x_new_font): Likewise.
13675 (x_term_init): Setup display_info->font.
13676 (x_delete_terminal): Free display_info->font.
13677
13678 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13679
13680 * ftxfont.c (ftxfont_default_fid): Delete it.
13681 (ftxfont_open): Set xfont->fid to 0.
13682 (ftxfont_end_for_frame): Clear data specific to the frame and the
13683 font-driver.
13684
13685 * xftfont.c (xftfont_default_fid): Delete it.
13686 (xftfont_open): Set xfont->fid to 0.
13687
13688 * fontset.c (FONTSET_OBJLIST): New macro.
13689 (fontset_find_font): Update font-object list of the fontset.
13690 (free_realized_fontset): New function.
13691 (free_face_fontset): Call free_realized_fontset.
13692 (Ffont_info): Call font_close_object only when enable_font_backend
13693 is set.
13694
13695 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13696 [HAVE_NTGUI]: Include w32term.h.
13697 [MAC_OS]: Include macterm.ch.
13698 (font_otf_ValueRecord): Use make_number.
13699 (font_finish_cache): Fix handling of reference count.
13700 (font_clear_cache): Update num_fonts.
13701 (font_open_entity): Update smallest_char_width and
13702 smallest_font_height of the frame.
13703 (font_close_object): Update num_fonts.
13704 (Fclear_font_cache): Fix finding the target cache data.
13705
137062008-02-16 Glenn Morris <rgm@gnu.org>
13707
13708 * fontset.c (Finternal_char_font): Fix compilation warning.
13709
137102008-02-16 Eli Zaretskii <eliz@gnu.org>
13711
13712 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13713 instead of char arrays. Enlarge the size of array passed to
13714 get_token_information.
13715
13716 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13717 warnings.
13718
137192008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13720
13721 * .gdbinit: Don't set `args', it breaks gdb --args.
13722
137232008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13724
13725 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13726 within a narrowed buffer.
13727
137282008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13729
13730 * coding.c (decode_coding_object, encode_coding_object):
13731 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13732
137332008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13734
13735 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13736 hardcoding 1.
13737 (detect_coding_system):
13738 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13739 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13740 * insdel.c (insert_from_gap):
13741 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13742 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13743 (string_to_multibyte):
13744 * character.c (chars_in_text, multibyte_chars_in_text):
13745 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13746
13747 * character.h (FETCH_STRING_CHAR_ADVANCE)
13748 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13749 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13750 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13751
13752 * casefiddle.c (casify_region): Only call after-change and composition
13753 functions on the part of the region that was changed.
13754
13755 * keyboard.c (read_avail_input):
13756 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13757
137582008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13759
13760 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13761 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13762
137632008-02-11 Juanma Barranquero <lekktu@gmail.com>
13764
13765 * w32menu.c (push_submenu_start, push_submenu_end)
13766 (push_left_right_boundary, push_menu_pane, push_menu_item):
13767 * keyboard.c (read_key_sequence): Don't pass args with side effects
13768 to AREF, it fails when compiling with -DENABLE_CHECKING.
13769
137702008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13771
13772 * Makefile.in (${lispsource}international/charprop.el):
13773 Delete this target.
13774
13775 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13776 emacs-unicode-2.
13777
137782008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13779
13780 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13781
137822008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13783
13784 * frame.c (Qnoelisp): New symbol.
13785 (syms_of_frame): Initialize it.
13786 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13787 harmless Elisp code, from a strong `force' from x_connection_closed.
13788 * frame.h (Qnoelisp): Declare.
13789 * xterm.c (x_connection_closed): Pass `noelisp'.
13790
13791 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13792 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13793 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13794 rather than `int' for the type of `type'.
13795
137962008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13797
13798 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13799
13800 * Makefile.in (GNUC): Remove support for gcc-1.x.
13801
138022008-02-10 Richard Stallman <rms@gnu.org>
13803
13804 * lisp.h (ASET): Use AREF, not ASLOT.
13805
138062008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13807
13808 * lisp.h (ASET): Check bounds.
13809
138102008-02-10 Glenn Morris <rgm@gnu.org>
13811
13812 * buffer.c (mode-name): Doc fix.
13813
138142008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13815
13816 * Makefile.in:
13817 * emacs.c:
13818 * gmalloc.c:
13819 * keyboard.c:
13820 * lisp.h:
13821 * m/ibm370aix.h:
13822 * process.c:
13823 * regex.c:
13824 * s/hpux.h:
13825 * sysdep.c:
13826 * sysselect.h:
13827 * systty.h:
13828 * unexec.c:
13829 * w32term.c:
13830 * xsmfns.c:
13831 * xterm.c: Remove code that deals with obsolete variables.
13832
13833 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13834
13835 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13836 nothing else needs it anymore.
13837
138382008-02-09 Eli Zaretskii <eliz@gnu.org>
13839
13840 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13841 instead of unibyte_char_to_multibyte.
13842
138432008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13844
13845 * s/gnu-linux.h: Remove commented out code.
13846
13847 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13848
13849 * Makefile.in: Update what RMS says about using autoconf.
13850 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13851 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13852 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13853 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13854
138552008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13856
13857 * keymap.c (Fkey_description): Move side effect outside of macro call.
13858
13859 * xfaces.c (Finternal_make_lisp_face):
13860 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13861
13862 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13863 (syms_of_fontset): Use ASET.
13864
13865 * fns.c (concat): Move side effect outside of macro call.
13866 (hash_clear): Use ASET.
13867
138682008-02-08 Richard Stallman <rms@gnu.org>
13869
13870 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13871 If FORCE, and frame has a surrogate minibuffer for another frame,
13872 delete the other frame first.
13873
138742008-02-07 Timo Savola <timo.savola@iki.fi>
13875
13876 * xterm.c (x_detect_focus_change): Handle embed client message.
13877 (handle_one_xevent): Ditto.
13878 (handle_one_xevent): If embedded and we get a button press/release,
13879 request focus.
13880 (xembed_set_info, xembed_send_message): New functions.
13881 (x_make_frame_visible): Call xembed_set_info if embedded.
13882 (x_make_frame_invisible): Call xembed_set_info if embedded.
13883 (x_term_init): Initialize Xatom_XEMBED.
13884 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13885 (x_iconify_frame): Ditto.
13886
13887 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13888 (enum xembed_info, enum xembed_message, enum xembed_focus)
13889 (enum xembed_modifier, enum xembed_accelerator): New.
13890 (xembed_set_info, xembed_send_message): Declare.
13891 (FRAME_X_EMBEDDED_P): New.
13892
13893 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13894 gtk_plug_new.
13895
13896 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13897 window ID of a frame.
13898 (x_window): Reparent frame if embedded.
13899 (Fx_create_frame): Don't set border width if embedded.
13900
13901 * emacs.c (USAGE3): Add --parent-id.
13902 (standard_args): Ditto.
13903
139042008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13905
13906 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13907
139082008-02-07 Jim Meyering <meyering@redhat.com>
13909
13910 Use "do...while (0)", not "if (1)...else" in macro definitions.
13911 The latter provokes a warning from gcc about the empty else, when
13912 followed by ";". Also, without that trailing semicolon, it would
13913 silently swallow up any following statement.
13914 * syntax.h (SETUP_SYNTAX_TABLE)
13915 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13916 * buffer.h (DECODE_POSITION): Likewise.
13917 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13918 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13919 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13920 (FETCH_CHAR_ADVANCE): Likewise.
13921 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13922
139232008-02-07 Jim Meyering <meyering@redhat.com>
13924
13925 * lread.c [lint]: Don't include <sys/inode.h>.
13926
139272008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13928
13929 * xselect.c (x_handle_dnd_message):
13930 * xmenu.c (digest_single_submenu, xmenu_show):
13931 * xdisp.c (with_echo_area_buffer_unwind_data)
13932 (format_mode_line_unwind_data, unwind_format_mode_line)
13933 (display_menu_bar):
13934 * eval.c (Ffetch_bytecode):
13935 * doc.c (store_function_docstring):
13936 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13937 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13938 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13939
139402008-02-07 Kenichi Handa <handa@m17n.org>
13941
13942 * ftxfont.c (ftxfont_open): Don't set
13943 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13944
13945 * ftfont.c (ftfont_open): Fix previous change.
13946
139472008-02-06 Jason Rumney <jasonr@gnu.org>
13948
13949 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13950 Use cached metrics for ASCII characters.
13951 (w32font_open_internal): Don't set font's owning_frame.
13952 Cache metrics for ASCII characters.
13953
13954 * w32font.h (struct w32font_info): Add ascii_metrics.
13955 Remove owning_frame.
13956
139572008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13958
13959 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13960 to negative value.
13961
13962 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13963
13964 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13965
13966 * charset.c (syms_of_charset): Set QCtest and Qeq.
13967
139682008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13969
13970 * process.c (Fstart_process):
13971 * callproc.c (Fcall_process): Handle the case where
13972 Funhandled_file_name_directory returns nil.
13973
13974 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13975 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13976 * font.c (check_gstring): Use them and AREF to access the vector before
13977 we know it's really a gstring.
13978 (Ffont_shape_text): Fix typo.
46e722a9 13979 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13980
13981 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13982 Declare.
13983
13984 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13985
139862008-02-05 Jason Rumney <jasonr@gnu.org>
13987
13988 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13989 Set smallest_font_height and smallest_char_width in display info.
13990
139912008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13992
13993 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13994
139952008-02-05 Miles Bader <miles@gnu.org>
13996
13997 * xfaces.c (get_lface_attributes, merge_named_face)
13998 (lookup_named_face, lookup_derived_face, realize_named_face):
13999 Revert 2008-02-01 change by cyd@stupidchicken.com.
14000
140012008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
14002
14003 * fontset.c (Ffontset_info): Handle the case of inhibitting the
14004 fallback fonts.
14005 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
14006
140072008-02-04 Jason Rumney <jasonr@gnu.org>
14008
14009 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
14010 set full_name.
14011 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
14012
140132008-02-03 Jason Rumney <jasonr@gnu.org>
14014
14015 * makefile.w32-in (OBJ1): Include font.o here.
14016 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
14017
140182008-02-02 Jason Rumney <jasonr@gnu.org>
14019
14020 * makefile.w32-in (temacs): Bump EMHEAP to 21.
14021
140222008-02-01 Jason Rumney <jasonr@gnu.org>
14023
14024 * s/cygwin.h: Define VIRT_ADDR_VARIES.
14025
14026 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
14027
140282008-02-01 Andreas Schwab <schwab@suse.de>
14029
14030 * Makefile.in (shortlisp, lisp): Update for rename of
14031 ../lisp/language/myanmar.el.
14032
140332008-02-01 Chong Yidong <cyd@stupidchicken.com>
14034
14035 * xfaces.c (get_lface_attributes): Delete function.
14036 (merge_named_face, lookup_named_face, lookup_derived_face)
14037 (realize_named_face): Call lface_from_face_name directly, and use
14038 the fact that merge_face_vectors does not alter its FROM argument.
14039
140402008-02-01 Jason Rumney <jasonr@gnu.org>
14041
14042 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
14043 input in the default locale. Handle non-Unicode multibyte input.
14044
140452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14046
14047 * fontset.c (reorder_font_vector): Exclude nil elements from the
14048 font group. Don't try multiple fonts.
14049 (fontset_font): Adjust for the above change.
14050 (Finternal_char_font): Return nil if the found font doesn't
14051 contain the character ch.
14052
14053 * Makefile.in (lisp, shortlisp): Add cham.el.
14054
140552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14056
14057 * font.h (FONTP): Make it return 1 also for a font-object.
14058
14059 * .gdbinit (xfontset): New function.
14060
14061 * font.c (font_find_for_lface): Check if the character C is
14062 supported or not only for the first font.
14063
14064 * fontset.c (reorder_font_vector): Fix typo.
14065 (fontset_find_font): Don't add a font-spec specifying a script.
14066 Use 0 (not Qt) for the indication of empty font-group. Change the
14067 format of RFONT-DEF. Return Qt if no font in the font-group
14068 support the character.
14069 (fontset_font): Adjust for the above change. If no font was
14070 found the character, remember that.
14071 (face_for_char): Adjust for the change of RFONT-DEF.
14072 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
14073 no font for the target.
14074 (Finternal_char_font): Adjust for the change of RFONT-DEF.
14075
140762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14077
14078 * font.c (font_load_for_face): Handle the case that the font in
14079 face->lface is a string.
14080
140812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14082
14083 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
14084
140852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14086
14087 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
14088 Fix previous change. If the frame is not on a window system,
14089 signal an error.
14090
140912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14092
14093 * coding.c (decode_coding_object, encode_coding_object): Adjust
14094 marker positions after conversion.
14095
14096 * lisp.h (struct Lisp_Marker): New member need_adjustment.
14097
140982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14099
14100 * font.c (font_find_for_lface): Fix the handling of the return
14101 value of font_has_char.
14102 (Ffont_shape_text): Fix previous change.
14103
14104 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
14105 (fontset_ref_and_range): Delete it.
14106 (fontset_find_font): Call char_table_ref_and_range instead of
14107 FONTSET_REF_AND_RANGE.
14108 (make_fontset): Don't setup font groups of Latin here.
14109 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
14110 (new_fontset_from_font): Make the specified font the default for
14111 all Latin characters.
14112
141132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14114
14115 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
14116 is on a window system before accessing the fontset of the frame.
14117
141182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14119
14120 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
14121
14122 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
14123 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
14124
14125 * font.c (Ffont_shape_text): If the font driver doesn't have a
14126 shaper function, make zero-width glyphs to have at least one-pixel
14127 width. Fix setting of `to' field of glyphs.
14128
141292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14130
14131 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
14132 glyphs.
14133
14134 * font.h (struct font_driver): Improve docstring of member `shape'.
14135
141362008-02-01 Kenichi Handa <handa@m17n.org>
14137
14138 * composite.c (syms_of_composite): Fix docstring of
14139 auto-composition-function.
14140
14141 * font.h (LGLYPH_SIZE): New macro.
14142
14143 * font.c (Ffont_fill_gstring): Stop filling when a character not
14144 supported by the font is found.
14145 (Ffont_shape_text): When a shape callback function returns nil,
14146 try at most two more times with larger gstring.
14147 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14148
14149 * xdisp.c (handle_auto_composed_prop): Change the argument to
14150 auto-composition-function.
14151
14152 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14153 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14154 Lispy glyph and store it in the lgstring.
14155
14156 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14157
14158 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14159
141602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14161
14162 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14163
14164 * fontset.c (Vfont_encoding_charset_alist): New variable.
14165 (syms_of_fontset): DEFVAR it.
14166 (reorder_font_vector, fontset_find_font): Optimize for the case of
14167 no need of reordering.
14168 (face_for_char): Map the charset property by
14169 Vfont_encoding_charset_alist.
14170
141712008-02-01 Jason Rumney <jasonr@gnu.org>
14172
14173 * w32font.c (logfonts_match): Don't check adstyle here.
14174 (font_matches_spec): Check here against physical font instead.
14175 (add_font_entity_to_list): Avoid some substitutions.
14176
14177 * font.c (font_parse_fcname): Default weight and slant to normal.
14178 (font_score): Prefer normal fonts if weight or slant unspecified.
14179 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14180 match freetype scores.
14181
141822008-02-01 Jason Rumney <jasonr@gnu.org>
14183
14184 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14185 font, as it may have been deleted.
14186 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14187 most common hyphenless variation.
14188 (logfonts_match): Check generic family.
14189 (font_matches_spec): Don't check generic family here.
14190 (fill_in_logfont): Set generic family based on adstyle.
14191
14192 * w32font.h (w32font_get_cache): Update declaration.
14193
141942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14195
14196 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14197
14198 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14199 If none of the new drivers are available, call font_update_drivers
14200 with the old drivers.
14201
14202 * w32font.c (w32font_get_cache): Adjust the argument type.
14203
14204 * xfont.c (xfont_get_cache): Adjust the argument type.
14205
14206 * font.h (struct font_driver): Change argument type of get_cache.
14207
14208 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14209
14210 * font.c (Ffont_get): Fix arguments to Fassoc.
14211 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14212 (font_clear_cache): New function.
14213 (font_list_entities, font_matching_entity): Use font_get_cache.
14214 (font_update_drivers): Call font_clear_cache when finishing a driver.
14215
14216 * fontset.c (fontset_find_font): Fix previous change.
14217
142182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14219
14220 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14221 dpyinfo->font_table.
14222 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14223 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14224
14225 * font.c (font_at): Handle the case that the arg C is negative.
14226 Handle the unibyte case.
14227 (Ffont_at): Call font_at with the arg C -1.
14228
14229 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14230 the position here, and call font_at with the arg C -1.
14231 Don't check the range of the existing composition at the point.
14232
142332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14234
14235 * fontset.c (fontset_add): New args charset_id and family.
14236 Change caller.
14237 (load_font_get_repertory, fontset_find_font): Assume that
14238 font_spec is always a font-spec object.
14239 (Fset_fontset_font): Always store a font-spec object in a fontset.
14240
14241 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14242 instead of get_property_and_range.
14243
142442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14245
14246 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14247 (xftfont_open): Don't keep locking face.
14248 (xftfont_close): Don't unlock face.
14249 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14250
14251 * fontset.c (fontset_find_font): Don't prefer a font of
14252 supplementary charset.
14253
142542008-02-01 Kenichi Handa <handa@m17n.org>
14255
14256 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14257 script, langsys_tag to langsys, new member script.
14258 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14259 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14260 listing to the script specified in that property. Fix arg to
14261 OTF_check_features.
14262
142632008-02-01 Jason Rumney <jasonr@gnu.org>
14264
14265 * w32font.h: New file.
14266
14267 * w32font.c: Include it.
14268 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14269 (w32font_open): Set owning_frame.
14270 (w32font_text_extents): Use owning_frame.
14271 (struct font_callback_data): Add opentype_only field.
14272 (add_font_entity_to_list): Use it to filter fonts.
14273 Don't check against full name.
14274 (w32font_list_internal): New function.
14275 (w32font_list): Use it.
14276 (w32font_match_internal): New function.
14277 (w32font_match): Use it.
14278 (w32font_open_internal): New function.
14279 (w32font_open): Use it.
14280 (w32font_get_cache, w32font_close, w32font_has_char)
14281 (w32font_encode_char, w32font_text_extents, w32font_draw):
14282 Make non-static.
14283
14284 * makefile.w32-in (w32font.o): Depend on w32font.h.
14285
142862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14287
14288 * charset.c (Fdefine_charset_internal): Record a supplementary
14289 charset at the tail of Vcharset_order_list.
14290
14291 * font.c (Ffont_shape_text): Fix the return value.
14292
14293 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14294
14295 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14296
142972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14298
14299 * ftfont.c (struct OpenTypeSpec): New struct.
14300 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14301 (ftfont_get_open_type_spec): New function.
14302 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14303
14304 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14305
143062008-02-01 Jason Rumney <jasonr@gnu.org>
14307
14308 * w32font.c (add_font_entity_to_list): Compare only the beginning
14309 of full name.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14314 Never return HANDLED_RECOMPUTE_PROPS.
14315
143162008-02-01 Kenichi Handa <handa@m17n.org>
14317
14318 * font.c (font_gstring_produce): Delete it.
14319
14320 * composite.h (COMPOSITION_METHOD):
14321 Handle COMPOSITION_WITH_GLYPH_STRING.
14322
143232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14324
14325 * xfont.c (Qx): Delete.
14326 (syms_of_xfont): Don't initialize Qx.
14327
14328 * composite.h (enum composition_method):
14329 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14330
143312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14332
14333 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14334 (choose_face_font): Accept new form of font-spec.
14335
14336 * frame.h (font_driver_list): Declare it unconditionally.
14337 (struct frame): Define members font_driver_list and font_data_list
14338 unconditionally.
14339
14340 * fontset.c: Include "font.h" unconditionally.
14341 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14342 (Fset_fontset_font): Accept a font-spec object.
14343
14344 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14345 PIXEL_SIZE part a wild card.
14346
14347 * dispextern.h (struct glyph_string): Define members clip and
14348 num_clips unconditionally.
14349 (struct face): Define members font_info and extra unconditionally.
14350
14351 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14352 ftfont_info only when HAVE_LIBOTF is defined.
14353
143542008-02-01 Andreas Schwab <schwab@suse.de>
14355
14356 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14357 and end.
14358
143592008-02-01 Jason Rumney <jasonr@gnu.org>
14360
14361 * w32font.c (w32font_driver): Add new fields.
14362
143632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14364
14365 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14366 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14367 (LIBES): Add @M17N_FLT_CFLAGS@.
14368
14369 * composite.c (compose_text): Don't treat the new style
14370 composition specially.
14371
14372 * emacs.c (main): Call syms_of_font unconditionally.
14373
14374 * font.h (FONT_ENTITY_NOT_LOADABLE)
14375 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14376 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14377 (struct font_driver): New member shape.
14378 (font_registry_charsets): Extern it.
14379 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14380 (font_otf_capability, font_drive_otf): Delete their externs.
14381
14382 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14383 (font_charset_alist, font_registry_charsets): Move from xfont.c
14384 and rename.
14385 (font_prop_validate_otf): New function.
14386 (font_property_table): Register it for QCotf.
14387 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14388 (font_drive_otf): Delete.
14389 (font_prepare_composition): New arg F. Adjust for the change of
14390 lispy gstring.
14391 (font_find_for_lface): New arg C.
14392 (font_load_for_face): Adjust for the change of font_find_for_lface.
14393 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14394 lispy gstring.
14395 (Ffont_shape_text): New function.
14396 (Fopen_font): If the font size is not given, use 12-pixel.
14397 (Ffont_at): New arg STRING.
c0943d3d 14398 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
14399 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14400 conditionally.
14401
14402 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14403 fonts of the same font-spec. Change the format of RFONT-DEF.
14404 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14405 Adjust for the change of RFONT-DEF.
14406 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14407
14408 * ftfont.h: New file.
14409
14410 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14411 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14412 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14413 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14414 font_otf_capability and font_drive_otf, set ftfont_shape.
14415 (ftfont_list): Adjust for the change of :otf property value.
14416 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14417 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14418 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14419 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14420 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14421 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14422
14423 * w32term.c (x_draw_composite_glyph_string_foreground):
14424 Adjust for the change of lispy gstring.
14425
14426 * xdisp.c (handle_composition_prop): Adjust for the change of
14427 lispy gstring. Call a function for auto-composition with the
14428 third arg it->window.
14429 (fill_composite_glyph_string): Adjust for the change of lispy string.
14430 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14431
14432 * xfaces.c (set_font_frame_param): Adjust for the change of
14433 font_find_for_lface.
14434
14435 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14436 (xfont_registry_charsets): Likewise. Change caller.
14437 (syms_of_xfont): Don't handle x_font_charset_alist.
14438
14439 * xftfont.c: Include "ftfont.h".
14440 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14441 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14442 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14443 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14444 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14445 Set xftfont_driver.shape to xftfont_shape.
14446
14447 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14448 the change of lispy gstring.
14449
144502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14451
14452 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14453
144542008-02-01 Jason Rumney <jasonr@gnu.org>
14455
14456 * w32font.c (w32font_draw): Fill background manually.
14457
144582008-02-01 Jason Rumney <jasonr@gnu.org>
14459
14460 * font.c (Qfontp): Remove unused symbol.
14461 (QCantialias): New symbol.
14462 (syms_of_font): Define it.
14463 (font_property_table): Set a validator for QCantialias.
14464
14465 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14466 Define if not already.
14467 (QCfamily): Share with xfaces.c.
14468 (Qstandard, Qsubpixel, Qnatural): New symbols.
14469 (syms_of_w32font): Define them. Don't define QCfamily here.
14470 (w32_antialias_type, lispy_antialias_type): New functions.
14471 (w32_enumfont_pattern_entity): New arg requested_font.
14472 Set antialias parameter if non-default was requested.
14473 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14474
144752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14476
14477 * lread.c (read1): Undo the previous change.
14478
144792008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14480
14481 * frame.c (Fdelete_frame): Call font_update_drivers only when
14482 USE_FONT_BACKEND is defined.
14483
144842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14485
14486 * font.h (struct font_bitmap): New member bits_per_pixel.
14487 (struct font_driver): New members start_for_frame and end_for_frame.
14488 (struct font_data_list): New struct.
14489 (font_put_frame_data, font_get_frame_data): Extern them.
14490
14491 * frame.h (struct frame): New member font_data_list.
14492
14493 * font.c (font_update_drivers): Call driver->start_for_frame and
14494 driver->end_for_frame at proper timings.
14495 (font_put_frame_data, font_get_frame_data): New functions.
14496 (Ffont_spec): Add usage in the docstring.
14497
14498 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14499 (Fdelete_frame): Call font_update_drivers.
14500
14501 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14502 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14503 (xftfont_get_xft_draw): New function.
14504 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14505 (xftfont_end_for_frame): New function.
14506 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14507
14508 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14509 Change argument. Cache GCs in the per-frame data.
14510 (struct ftxfont_frame_data): New struct.
14511 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14512 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14513 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14514 (ftxfont_end_for_frame): New function.
14515 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14516
14517 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * xselect.c (Vselection_coding_system)
14522 (Vnext_selection_coding_system): Delete them.
14523 (syms_of_xselect): Don't declare selection-coding-system and
14524 next-selection-coding-system. They are declared in select.el.
14525
145262008-02-01 Jason Rumney <jasonr@gnu.org>
14527
14528 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14529
14530 * w32fns.c: Include imm.h.
14531 (get_composition_string_fn, get_ime_context_fn): New optional
14532 system functions.
14533 (globals_of_w32fns): Load them from imm32.dll.
14534 (ignore_ime_char): New flag.
14535 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14536 WM_IME_ENDCOMPOSITION messages.
14537
14538 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14539 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14540
145412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14542
14543 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14544 (READCHAR_REPORT_MULTIBYTE): New macro.
14545 (readchar): New 2nd arg MULTIBYTE.
14546 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14547 Make symbol's name multibyte according to the multibyteness of the
14548 source.
14549
145502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14551
14552 * xfaces.c (face_for_overlay_string): Call lookup_face with
14553 correct arguments (fix of synching with the trunk).
14554
145552008-02-01 Kenichi Handa <handa@m17n.org>
14556
14557 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14558 (font_prop_validate_non_neg, font_prop_validate_spacing):
14559 Delete argument prop_index.
14560 (font_property_table): Change arguments to validater. Change Callers.
14561 (font_lispy_object): Delete.
14562 (font_at): Use font_find_object instead fo font_lispy_object.
14563
145642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14565
14566 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14567 and file names.
14568
145692008-02-01 Jason Rumney <jasonr@gnu.org>
14570
14571 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14572 (font_matches_spec): Remove debug output.
14573 (add_font_entity_to_list): Avoid using substituted fonts.
14574
145752008-02-01 Jason Rumney <jasonr@gnu.org>
14576
14577 * doc.c (Fsnarf_documentation):
14578 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14579
145802008-02-01 Miles Bader <miles@gnu.org>
14581
14582 * dispextern.h (struct glyph_row): Only define "clip" field if
14583 HAVE_WINDOW_SYSTEM is defined.
14584
145852008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14586
14587 Fix up multi-tty merge.
14588
14589 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14590 and indentation.
14591
14592 * xfaces.c (free_realized_face, clear_face_gcs):
14593 Include font_done_for_face in the input_blocked section, just in case.
14594
14595 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14596 (get_char_face_and_encoding): Undo last change and remove the *other*
14597 duplicate definition (i.e. keep the one that's better scoped and that
14598 includes code for the font-backend).
14599
14600 * terminal.c (create_terminal): Default keyboard_coding to
14601 `no-conversion' and terminal_coding to `undecided'.
14602
14603 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14604
14605 * fontset.c (free_realized_fontsets): Check that the table entry does
14606 contain a fontset before trying to compare it to `base'.
14607
14608 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14609 syms_of_charset, and syms_of_coding earlier because init_window_once
14610 now needs Vcoding_system_hash_table to be setup.
14611
14612 * coding.h (default_buffer_file_coding): Remove.
14613
14614 * coding.c (default_buffer_file_coding): Remove.
14615 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14616 than ->symbol, and use the terminal-local coding system.
14617 (syms_of_coding): Don't setup the coding-systems that are not
14618 terminal-local.
14619 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14620
14621 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14622 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14623
14624 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14625 in chartab.c and were re-added here by mistake.
14626 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14627
14628 * doc.c (Fsnarf_documentation):
14629 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14630 src to etc.
14631
14632 * ChangeLog.10: Add mistakenly removed entry.
14633
146342008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14635
14636 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14637
146382008-02-01 Miles Bader <miles@gnu.org>
14639
14640 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14641 Add extra args to FACE_FOR_CHAR.
14642
146432008-02-01 Kenichi Handa <handa@m17n.org>
14644
14645 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14646 in sequence.
14647
14648 * chartab.c (map_sub_char_table, map_char_table): If the range
14649 contains just one character, call the function with that character
14650 even if the depth is not 3.
14651
146522008-02-01 Jason Rumney <jasonr@gnu.org>
14653
14654 * w32font.c (w32font_text_extents): Calculate metrics for the
14655 whole string.
14656
146572008-02-01 Jason Rumney <jasonr@gnu.org>
14658
14659 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14660
146612008-02-01 Jason Rumney <jasonr@gnu.org>
14662
14663 * w32term.c (x_set_glyph_string_clipping): Use
14664 get_glyph_string_clip_rects.
14665 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14666 Adjust for the change of struct glyph_string.
14667
14668 * w32font.c (w32font_draw): Do clipping here.
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * xftfont.c (xftfont_draw): Adjust for the change of struct
14673 glyph_string.
14674
14675 * xterm.c (x_set_glyph_string_clipping): Use
14676 get_glyph_string_clip_rects.
14677 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14678 Adjust for the change of struct glyph_string.
14679
14680 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14681 the resulting clip(s}.
14682 (expose_overlaps): Add arg r. Change callers. Set it to
14683 row->clip temporarily.
14684 (expose_window): Redraw rows overlapping the exposed area.
14685
14686 * dispextern.h (struct glyph_row): New member clip.
14687 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14688 clip_height, new member clip, and num_clips.
14689
146902008-02-01 Kenichi Handa <handa@m17n.org>
14691
14692 * data.c (Fchar_or_string_p): Fix docstring.
14693
146942008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14697 create a temporary XftDraw object.
14698
146992008-02-01 Kenichi Handa <handa@m17n.org>
14700
14701 * font.c (Ffontp): Fix docstring.
14702
14703 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14704 strong evidence of ISO-2022.
14705
147062008-02-01 Kenichi Handa <handa@m17n.org>
14707
14708 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14709 SYNTAX_ENTRY_FOLLOW_PARENT.
14710
147112008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14712
14713 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14714 its type.
14715 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14716 Update to the new type of weak_hash_tables and next_weak.
14717
14718 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14719 a plain C pointer to Lisp_Hash_Table.
14720
14721 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14722 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14723 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14724 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14725 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14726 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14727 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14728 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14729 (GC_EQ): Remove since they've been identical to their non-GC_
14730 alter-egos ever since the markbit was eradicated.
14731
14732 * alloc.c:
14733 * buffer.c:
14734 * buffer.h:
14735 * data.c:
14736 * fileio.c:
14737 * filelock.c:
14738 * fns.c:
14739 * frame.h:
14740 * lisp.h:
14741 * macterm.c:
14742 * print.c:
14743 * process.c:
14744 * w32fns.c:
14745 * w32menu.c:
14746 * w32term.c:
14747 * xfns.c:
14748 * xmenu.c:
14749 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14750
147512008-02-01 Kenichi Handa <handa@m17n.org>
14752
14753 * chartab.c (map_sub_char_table): Make it work for the top-level
14754 char-table. Fix handling of parent char-table.
14755 (map_char_table): Adjust for the above change.
14756
147572008-02-01 Jason Rumney <jasonr@gnu.org>
14758
14759 * w32font.c (Qgdi): Rename from Qw32.
14760
147612008-02-01 Jason Rumney <jasonr@gnu.org>
14762
14763 * w32bdf.c (get_quoted_string): Make function static.
14764
147652008-02-01 Kenichi Handa <handa@m17n.org>
14766
14767 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14768 bigger ascent and descent than those of the font, use them as
14769 font's ascent and descent.
14770
147712008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 * Makefile.in (${lispsource}international/charprop.el): Move this
14774 target within "#ifdef HAVE_UNIDATA" and "#endif".
14775
147762008-02-01 Kenichi Handa <handa@m17n.org>
14777
14778 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14779 (shortlisp): Add ../lisp/language/tai-viet.el.
14780
147812008-02-01 Ulrich Mueller <ulm@gentoo.org>
14782
14783 * Makefile.in (${lispsource}international/charprop.el): Depend on
14784 temacs${EXEEXT}.
14785
147862008-02-01 Jason Rumney <jasonr@gnu.org>
14787
14788 * w32font.c (w32font_close): Delete the GDI font object.
14789
14790 * w32menu.c: Include character.h.
14791
14792 * w32proc.c: Likewise.
14793
14794 * w32select.c: Likewise.
14795
14796 * makefile.w32-in (w32proc.o): Depend on character.h.
14797
147982008-02-01 Jason Rumney <jasonr@gnu.org>
14799
14800 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14801
14802 * w32menu.c (syms_of_w32menu): Likewise.
14803
14804 * w32proc.c (syms_of_ntproc): Likewise.
14805
14806 * w32select.c (syms_of_w32select): Likewise.
14807
14808 * w32term.c (syms_of_w32term): Likewise.
14809
148102008-02-01 Jason Rumney <jasonr@gnu.org>
14811
14812 * w32font.c (w32font_draw): Delete brush after using it.
14813
148142008-02-01 Jason Rumney <jasonr@gnu.org>
14815
14816 * w32font.c (w32font_open): Don't set font_idx.
14817 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14818 to font settings.
14819 (w32font_draw): Fill background explicitly.
14820
148212008-02-01 Jason Rumney <jasonr@gnu.org>
14822
14823 * w32term.c (w32_initialize): Don't call w32font_initialize.
14824
14825 * w32font.c (w32font_info): Remove subranges.
14826 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14827 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14828 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14829 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14830 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14831 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14832 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14833 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14834 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14835 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14836 New symbols.
14837 (font_callback_data): New struct.
14838 (w32font_list, w32font_match): Use it.
14839 (w32font_open): Don't populate subranges.
14840 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14841 (w32font_encode_char): Always return unicode code-point as-is.
14842 (w32font_text_extents): Supply a transformation matrix to
14843 GetGlyphOutline. Never look up by glyph index. Avoid looping
14844 twice. Use unicode version of GetTexExtentPoint32 instead of
14845 glyph index version.
14846 (set_fonts_frame): Remove.
14847 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14848 set frame parameter. Use backward compatible fake foundries.
14849 Save generic family in extra slot under QCfamily. Make width slot
14850 constant. Save QCspacing value. Save list of scripts instead of
14851 binary subranges.
14852 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14853 (add_font_entity_to_list): Use font_callback_data struct. Filter
14854 unwanted fonts.
14855 (add_one_font_entity_to_list): Use font_callback_data struct.
14856 (w32_registry): Default to iso10646_1.
14857 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14858 string font registries. Don't fill in font name if it is a generic
14859 family name, fill family instead. Use spacing, family and script
14860 extra info to fill pitch, family and charset fields.
14861 (list_all_matching_fonts): Use font_callback_data struct.
14862 (unicode_range_for_char): Remove.
14863 (font_supported_scripts): New function.
14864 (w32font_initialize): Remove.
14865 (syms_of_w32font): Update which symbols are defined.
14866
148672008-02-01 Jason Rumney <jasonr@gnu.org>
14868
14869 * font.c (font_pixel_size): Reverse assq_no_quit args.
14870
14871 * w32term.h (FONT_WIDTH): Report max width, not average.
14872 (FONT_MAX_WIDTH): Remove.
14873 (FONT_AVG_WIDTH): New macro.
14874
14875 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14876 redefinition of FONT_WIDTH.
14877
14878 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14879 (w32_cache_char_metrics): Use FONT_WIDTH.
14880
14881 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14882
148832008-02-01 Jason Rumney <jasonr@gnu.org>
14884
14885 * w32font.c (w32font_open): Make lfHeight negative.
14886
14887 * w32fns.c (x_default_font_parameter): Use new style font name.
14888 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14889
148902008-02-01 Jason Rumney <jasonr@gnu.org>
14891
14892 * w32font.c (QCsubranges): New symbol.
14893 (w32font_open, w32font_has_char): Get subranges from subproperty
14894 of extra.
14895 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14896 (syms_of_w32font): Define :subranges symbol.
14897
14898 * font.c (font_put_extra): Expose externally.
14899
14900 * font.h (font_put_extra): Move declaration from font.c.
14901
14902 * font.c (Ffont_get): Use font driver to determine otf capability.
14903 (adjust_anchor): Check if driver defines anchor_point before using.
14904
14905 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14906 (w32font_draw): Use options.
14907 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14908 Fix detection of truetype fonts.
14909 (registry_to_w32_charset): Handle charsets other than iso8859-1
14910 expressed as lisp symbols.
14911 (w32_registry): Express charset as lisp symbol.
14912 (fill_in_logfont): Reverse pixel and point height logic.
14913 Don't set width here. Set quality to default.
14914
14915 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14916 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14917
14918 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14919 Remove redundant loop and allocation.
14920
14921 * makefile.w32-in (font.o, w32font.o): New objects.
14922 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14923 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14924
14925 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14926 STORE_XCHARB a valid l-value.
14927
14928 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14929 calculations for non-Truetype fonts.
14930 (x_draw_glyph_string): Sync with xterm.c.
14931 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14932 Remove redundant code.
14933 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14934
14935 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14936 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14937
14938 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14939 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14940
14941 * w32font.c: New file for w32 font backend.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * term.c: Don't include "buffer.h" twice.
14946
149472008-02-01 Kenichi Handa <handa@m17n.org>
14948
14949 * character.c (Funibyte_string): New function.
14950 (syms_of_character): Defsubr it.
14951
149522008-02-01 Jason Rumney <jasonr@gnu.org>
14953
14954 * w32term.c [USE_FONT_BACKEND]:
14955 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14956 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14957 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14958 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14959 (x_free_frame_resources): Sync with xterm.c.
14960
149612008-02-01 Andreas Schwab <schwab@suse.de>
14962
14963 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14964 char-table size.
14965
149662008-02-01 Kenichi Handa <handa@m17n.org>
14967
14968 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14969
149702008-02-01 Kenichi Handa <handa@m17n.org>
14971
14972 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14973 font_otf_gpos, add font_drive_otf.
14974
14975 * fontset.c (fontset_find_font): Pay attention to font size
14976 specified for a font.
14977 (reorder_font_vector): Check contents of font_def.
14978
14979 * font.c (struct otf_list): Delete it.
14980 (otf_list): Make it a lisp variable.
14981 (otf_open): Use lispy otf_list.
14982 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14983 (check_otf_features): New function.
14984 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14985 New functions.
14986 (font_drive_otf): New function merging font_otf_gsub and
14987 font_otf_gpos.
14988 (font_open_for_lface): New arg spec. Change argument order.
14989 (font_load_for_face): Adjust for the change of font_open_for_lface.
14990 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14991 Ffont_otf_gpos.
14992 (syms_of_font): Staticpro otf_list. Delete defsubr of
14993 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14994
14995 * xfaces.c (set_font_frame_param): Adjust for the change of
14996 font_open_for_lface.
14997
14998 * font.h (font_open_for_lface): Adjust prototype.
14999 (struct font_driver): Delete members otf_gsub and otf_gpos, add
15000 member otf_drive.
15001 (font_otf_gsub, font_otf_gpos): Delete externs.
15002 (font_drive_otf): Extern it.
15003
150042008-02-01 Kenichi Handa <handa@m17n.org>
15005
15006 * font.c (font_at): If the window W is not on a window system,
15007 return Qnil.
15008
15009 * coding.c (produce_chars, encode_coding): Don't call
15010 insert_from_gap if no characters to produce.
15011
150122008-02-01 Kenichi Handa <handa@m17n.org>
15013
15014 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
15015 Fclear_face_cache.
15016
15017 * xfaces.c (face_for_font): Check also face->font==font->font.font.
15018
150192008-02-01 Miles Bader <miles@gnu.org>
15020
15021 * emacs.c (main): Change default value of `enable_font_backend' to 1.
15022 Parse "--disable-font-backend" option.
15023 (standard_args): Add "--disable-font-backend" option.
15024
150252008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * fontset.c (fontset_find_font): New function.
15028 (fontset_font): Use fontset_find_font.
15029 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
15030 Register the specified font for all Latin characters.
15031 (new_fontset_from_font): Register the specified font for all Latin
15032 characters.
15033 (dump_fontset): For a realized fontset, include the base fontset
15034 name in the returned vector.
15035
150362008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * character.h (CHAR_STRING): Cast C to unsigned on calling
15039 char_string.
15040
15041 * character.c (char_string): Type of arg C changed to unsigned.
15042 Signal an error if C is an invalid character code.
15043
15044 * editfns.c (general_insert_function, Fchar_to_string):
15045 Use CHARACTERP, not INTEGERP.
15046
150472008-02-01 Kenichi Handa <handa@m17n.org>
15048
15049 * character.h (MIN_MULTIBYTE_LEADING_CODE)
15050 (MAX_MULTIBYTE_LEADING_CODE): New macros.
15051
15052 * regex.c (analyse_first): Fix for multibyte characters in "case
15053 charset:" and "case categoryspec:".
15054
150552008-02-01 Andreas Schwab <schwab@suse.de>
15056
15057 * Makefile.in (LIBES): Move standard libraries to the end.
15058
150592008-02-01 Kenichi Handa <handa@m17n.org>
15060
15061 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
15062 nonzero, don't shrink the buffer nextb.
15063
15064 * buffer.h (struct buffer_text): New member inhibit_shrinking.
15065
15066 * coding.c (coding_alloc_by_making_gap): New arg offset.
15067 (alloc_destination): Call coding_alloc_by_making_gap with the arg
15068 offset.
15069 (decode_coding_iso_2022): Update coding->safe_charsets.
15070 (decode_coding_gap): Temporarily set
15071 current_buffer->text->inhibit_shrinking to 1.
15072
150732008-02-01 Kenichi Handa <handa@m17n.org>
15074
15075 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
15076 indexing into elements of s->cmp and s->char2b.
15077
150782008-02-01 Juanma Barranquero <lekktu@gmail.com>
15079
15080 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
15081
150822008-02-01 Kenichi Handa <handa@m17n.org>
15083
15084 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
15085 target_multibyte instead of multibyte.
15086 (re_match_2_internal): Call bcmp_translate with target_multibyte.
15087 (bcmp_translate): Change the argument name from multibyte to
15088 target_multibyte.
15089
150902008-02-01 Kenichi Handa <handa@m17n.org>
15091
15092 These changes are to compile a regexp into a pattern that can be
15093 used both for multibyte and unibyte targets.
15094
15095 * Makefile.in (search.o): Depend on charset.h.
15096
15097 * character.c (multibyte_char_to_unibyte_safe): New function.
15098
15099 * search.c: Include "charset.h".
15100 (compile_pattern_1): Delete argument multibyte. Don't set
15101 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
15102 (compile_pattern): Don't compare cp->buf.target_multibyte.
15103 Compare cp->buf.charset_unibyte.
15104 (compile_pattern): Set cp->buf.target_multibyte.
15105
15106 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
15107
15108 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
15109
15110 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
15111 multibyte. Change callers.
15112 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
15113 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
15114 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
15115 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
15116 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
15117 (regex_compile): Make the compiled pattern usable both for
15118 multibyte and unibyte targets.
15119 (analyse_first): Make the fastmap usable both for multibyte and
15120 unibyte targets.
15121 (TRANSLATE_VIA_MULTIBYTE): Delete.
15122 (re_match_2_internal): Pay attention to the case that the
15123 multibyteness of bufp and target may be different.
15124
151252008-02-01 Kenichi Handa <handa@m17n.org>
15126
15127 * xdisp.c (x_produce_glyphs): When a font is not found, make the
15128 empty box occupy at least one column width.
15129
151302008-02-01 Miles Bader <miles@gnu.org>
15131
15132 * Makefile.in: Remove redundant HAVE_XFT clause.
15133
151342008-02-01 Kenichi Handa <handa@m17n.org>
15135
15136 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15137
151382008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15141 being nil.
15142
151432008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15146
151472008-02-01 Kenichi Handa <handa@m17n.org>
15148
15149 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15150
151512008-02-01 Kenichi Handa <handa@m17n.org>
15152
15153 * search.c (simple_search): Fix previous change.
15154
151552008-02-01 Kenichi Handa <handa@m17n.org>
15156
15157 * xftfont.c (ftfont_font_format): Extern declaration.
15158
15159 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15160
15161 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15162 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15163
15164 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15165 (ftfont_font_format): Fix previous change.
15166
15167 * font.h (Ffont_xlfd_name): EXFUN it.
15168
15169 * font.c (font_parse_xlfd): Fix the array size of `f'.
15170 (register_font_driver): Use EQ to compare driver->type.
15171
15172 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15173 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15174 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15175
151762008-02-01 Kenichi Handa <handa@m17n.org>
15177
15178 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15179 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15180
151812008-02-01 Kenichi Handa <handa@m17n.org>
15182
15183 * xfont.c (xfont_open): Set font->format.
15184
15185 * xftfont.c (xftfont_open): Set font->format.
15186
15187 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15188 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15189 (ftfont_open): Set font->format.
15190 (ftfont_font_format): New function.
15191
15192 * font.h (struct font): New member format.
15193
15194 * font.c (Qopentype): New variable.
15195 (syms_of_font): Defsym it.
15196 (Fquery_font): Change the format of the last element of the return
15197 value.
15198
151992008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15202 last resort.
15203
152042008-02-01 Kenichi Handa <handa@m17n.org>
15205
15206 * coding.c (detect_coding_charset): Fix detection of multi-byte
15207 charset.
15208
152092008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15210
15211 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15212
152132008-02-01 Kenichi Handa <handa@m17n.org>
15214
15215 * xdisp.c (get_next_display_element): Set it->face_id for the
15216 first component of a composition.
15217 (x_produce_glyphs): Check if the font is changed or not for composition.
15218
152192008-02-01 Kenichi Handa <handa@m17n.org>
15220
15221 * fontset.c (Qlatin): New variable.
15222 (syms_of_fontset): Define it as a lisp symbol.
15223 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15224
152252008-02-01 Kenichi Handa <handa@m17n.org>
15226
15227 * font.c (font_unparse_fcname): Pay attention to the case that
15228 some of font property is a null string.
15229
152302008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * term.c: Include "composite.h".
15233 (encode_terminal_code): Output all components of composition.
15234 Check the size of encode_terminal_src.
15235 (produce_glyphs): For composition, call produce_composite_glyph.
15236 (append_composite_glyph, produce_composite_glyph): New functions.
15237
15238 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15239 is not found, get font_info from the current ascii face.
15240
152412008-02-01 Kenichi Handa <handa@m17n.org>
15242
15243 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15244 buffer-file-name to Qnil before calling insert_from_buffer.
15245
15246 * font.c (font_unparse_fcname): Pay attention to the case that
15247 foundry is a null string.
15248
152492008-02-01 Kenichi Handa <handa@m17n.org>
15250
15251 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15252
15253 * font.c (Qunicode_sip): New variable.
15254 (syms_of_font): Declare it as a Lisp symbol.
15255
15256 * font.h (Qunicode_sip): Extern it.
15257
152582008-02-01 Kenichi Handa <handa@m17n.org>
15259
15260 * composite.c (get_composition_id): Pay attention to TAB component.
15261
15262 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15263 TAB. Adjust for the change of s->char2b which always points to
15264 the first element of allocated memory.
15265
15266 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15267
15268 * xdisp.c (handle_composition_prop): Set it->c to the first
15269 non-TAB component.
15270 (fill_composite_glyph_string): Change argument.
15271 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15272 (x_produce_glyphs): Fix handling of left/right padding.
15273
152742008-02-01 Kenichi Handa <handa@m17n.org>
15275
15276 * coding.c (detect_coding_system): Fix for handling off
15277 inhibit_iso_escape_detection. Fix for the case that no coding
15278 system is defined for a specific coding category.
15279
152802008-02-01 Kenichi Handa <handa@m17n.org>
15281
15282 * font.c (font_matching_entity): Delete unused local var.
15283
15284 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15285 opening a font.
15286
15287 * fileio.c (Finsert_file_contents): On recovering a file, assume
15288 Unix-like eol.
15289 (choose_write_coding_system): On auto-saving a file, force
15290 Unix-like eol.
15291
15292 * coding.c (setup_coding_system): Fix setting of
15293 coding->common_flags based on eol_type.
15294 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15295 inherit from it.
15296
152972008-02-01 Kenichi Handa <handa@m17n.org>
15298
15299 * alloc.c (NSTATICS): Increas to 0x600.
15300
153012008-02-01 Kenichi Handa <handa@m17n.org>
15302
15303 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15304 (ftfont_list): Don't check :name property.
15305 (ftfont_match): New function.
15306 (ftfont_pattern_entity): If the pattern doesn't contain
15307 FC_SPACING, don't assume FC_MONO.
15308
15309 * font.h (struct font_driver): New member `match'.
15310 (font_update_drivers): Adjust prototype.
15311
15312 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15313 property of FONT.
15314 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15315 them unconditionally.
15316 (font_matching_entity): New function.
15317 (font_open_by_name): Try font_matching_entity if exact match is
15318 not found.
15319 (font_update_drivers): Delete the arg FONT. Return a list of
15320 actually used backends. Don't free faces, font caches here.
15321 Don't store data in frame parameters. Don't call x_set_font.
15322 (Ffont_spec): Store :name property as is.
15323 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15324 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15325 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15326 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15327 Call font->driver->otf_gsub instead of font_otf_gsub.
15328
15329 * frame.c (x_set_font_backend): Do more works that were done in
15330 font_update_drivers before.
15331
15332 * xfont.c (xfont_match): New function.
15333 (xfont_driver): Set xfont_driver.match to xfont_match.
15334 (xfont_draw): Set font in GC if necessary.
15335
15336 * ftxfont.c (ftxfont_match): New function.
15337 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15338
15339 * xftfont.c (xftfont_match): New function.
15340 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15341
153422008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * font.h (struct font): New member scalable.
15345 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15346 (font_otf_gsub): Adjust prototype.
15347
15348 * font.c (font_otf_capability): Fix handling of the default langsys.
15349 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15350 Check the contents of SPEC.
15351 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15352 (check_gstring): New function.
15353 (REPLACEMENT_CHARACTER): New macro.
15354 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15355 glyph codes of GSTRING.
15356 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15357 (font_prepare_composition): Set cmp->glyph_len.
15358 (font_open_entity): Set font->scalable.
15359 (Ffont_get): Handle :otf property.
15360 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15361 functions.
15362 (Fquery_font): Use font->font.full_name.
15363 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15364 Sfont_otf_alternates.
15365
15366 * ftfont.c (ftfont_open): Set font->font.full_name and
15367 font->font.name properly. Fix calculation of font->font.height
15368 and font->min_width.
15369
15370 * ftxfont.c (ftxfont_create_gcs): New function.
15371 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15372 (ftxfont_draw_backgrond): Fix filling region.
15373 (ftxfont_default_fid): New function.
15374 (ftxfont_open): Set xfont->fid to the return value of
15375 ftxfont_default_fid.
15376 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15377 (ftxfont_done_face): Free only GCs that are created by
15378 ftxfont_create_gcs.
15379 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15380
15381 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15382 Clip to src->width, etc (not src->clip_XXX).
15383
15384 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15385 FontBackend frame parameter.
15386
153872008-02-01 Kenichi Handa <handa@m17n.org>
15388
15389 * font.h (struct font_driver_list): New member `on'.
15390 (Fclear_font_cache): EXFUN it.
15391 (font_update_drivers): Extern it.
15392
15393 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15394 (font_list_entities): Check driver_list->on.
c0943d3d 15395 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
15396 (font_update_drivers): New function.
15397 (Fclear_font_cache): Check driver_list->on.
15398
15399 * frame.h (Qfont_backend): Extern it.
15400 (x_set_font_backend): Extern it.
15401
15402 * frame.c (Qfont_backend): New variable.
15403 (frame_parms): New element for font-backend.
15404 (x_set_font_backend): New function.
15405
15406 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15407 FontBackend frame parameter.
15408 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15409 x_set_font_backend.
15410
15411 * xfont.c (xfont_list): Don't try listing by :name property if the
15412 name is not for XLFD.
15413
154142008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15417 (LGLYPH_SET_TO): New macros.
15418 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15419 element of G is vector or not.
15420 (font_at): Extern it.
15421
15422 * font.c: Include window.h.
15423 (font_lispy_object): New function.
15424 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15425 end of valid glyph.
15426 (font_close_object): Fix getting (struct font *).
15427 (font_at): New function.
15428 (Ffont_get): If FONT is a font-object, get entity from it.
15429 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15430 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15431 range check.
15432 (Ffont_at): New function.
15433 (syms_of_font): Defsubr Sfont_at.
15434
15435 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15436 before the entry for Qcomposition.
15437 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15438 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15439 the font in gstring.
15440 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15441 LGLYPH_FORM (g) to detect the end of valid glyph.
15442 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15443 we are composing with gstring.
15444
15445 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15446 Check if adjustment is vector or not.
15447
15448 * Makefile.in (font.o): Make it depends on window.h.
15449
154502008-02-01 Kenichi Handa <handa@m17n.org>
15451
15452 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15453 adjustment is vector or not.
15454
154552008-02-01 Miles Bader <miles@gnu.org>
15456
15457 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15458
154592008-02-01 Kenichi Handa <handa@m17n.org>
15460
15461 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15462 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15463 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15464
15465 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15466 (DEVICE_DELTA): Fix typo.
15467 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15468 LGLYPH format.
15469
15470 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15471 the change of LGLYPH format.
15472
154732008-02-01 Kenichi Handa <handa@m17n.org>
15474
15475 * ftfont.c (ftfont_list): Fix typo.
15476 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15477
154782008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15479
15480 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15481
15482 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15483 xftface_info is non-NULL.
15484
154852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15486
15487 * ftfont.c (ftfont_list): Move misplaced #endif.
15488
154892008-02-01 Kenichi Handa <handa@m17n.org>
15490
15491 * ftfont.c (ftfont_list): Pay attention to the case that
15492 FC_CAPABILITY is not defined.
15493
154942008-02-01 Kenichi Handa <handa@m17n.org>
15495
15496 * xftfont.c (xftfont_open): Set charset related members to -1.
15497
15498 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15499 QCname.
15500 (ftfont_open): Set charset related members to -1.
15501
15502 * fontset.c (Votf_script_alist): New variable.
15503 (syms_of_fontset): Initialize it.
15504 (fontset_font): Delete unused variable.
15505
15506 * fontset.h (Votf_script_alist): Extern it.
15507
15508 * font.c (font_find_for_lface): Optimize code.
15509
15510 * font.h (font_close_object, font_merge_old_spec): Extern them.
15511
155122008-02-01 Kenichi Handa <handa@m17n.org>
15513
15514 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15515 (syms_of_font): Initialize them.
15516 (font_pixel_size): Allow float value in dpi.
15517 (font_prop_validate_type): Delete.
15518 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15519 Change caller.
15520 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15521 (font_prop_validate_extra): Delete.
15522 (font_prop_validate_spacing): New function.
15523 (font_property_table): Add elements for all known properties.
15524 (get_font_prop_index): Rename from check_font_prop_name. New
15525 argument FROM. Change caller.
15526 (font_prop_validate): Validate all known properties.
15527 (font_put_extra): Delete argument force. Change caller.
15528 (font_expand_wildcards): Make it static. Fix the way of shrinking
15529 the possible range.
15530 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15531 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15532 Change caller.
15533 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15534 (font_parse_fcname): Delete argument merge. Fix parsing of point
15535 size. Don't validate properties values here. Change caller.
15536 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15537 (font_open_by_name): Delete unused variable.
15538 (Ffont_spec): Likewise. Validate property values.
15539 (Ffont_match_p): New function.
15540
15541 * font.h (QCscalable): Extern it.
15542 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15543
15544 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15545
15546 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15547 (xfont_list_pattern): New function.
15548 (xfont_list): Use xfont_list_pattern.
15549
155502008-02-01 Kenichi Handa <handa@m17n.org>
15551
15552 * font.h (Flist_fonts): EXFUN it.
15553
155542008-02-01 Jason Rumney <jasonr@gnu.org>
15555
15556 * w32term.c (w32_initialize): Add back smoothing_type and
15557 smoothing_enabled definitions.
15558
155592008-02-01 Kenichi Handa <handa@m17n.org>
15560
15561 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15562 s->face->font on determining underline position.
15563
155642008-02-01 Kenichi Handa <handa@m17n.org>
15565
15566 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15567 (font_has_char): Accept font-object too.
15568 (font_find_for_lface): Try at first with a size specified in face.
15569
155702008-02-01 Kenichi Handa <handa@m17n.org>
15571
15572 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15573 font_open_by_name.
15574
155752008-02-01 Kenichi Handa <handa@m17n.org>
15576
15577 * font.h (QCspacing, QCdpi): Extern them.
15578 (enum font_spacing): New enum.
15579 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15580
15581 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15582 (QCspacing, QCdpi): New variables.
15583 (syms_of_font): Initialize them.
15584 (font_pixel_size): New function.
15585 (font_put_extra): New function.
15586 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15587 in FONT_EXTRA.
15588 (font_parse_fcname): Handle enumerated values (e.g. bold).
15589 Fix handling font size. Add QCname property that contains only
15590 unknown properties.
15591 (font_score): Change argument. Change caller. Pay attention to
15592 FONT_PIXEL_SIZE_QUANTUM.
15593 (font_sort_entites, font_list_entities, font_find_for_lface)
15594 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15595 (Ffont_spec): Add QCname property that contains only unknown properties.
15596
15597 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15598 include weight in listing pattern, instead check weight of each
15599 listed font. Don't include scalable in pattern. Pay attention to
15600 FONT_PIXEL_SIZE_QUANTUM.
15601
156022008-02-01 Kenichi Handa <handa@m17n.org>
15603
15604 * font.c (font_parse_fcname): Fix parsing of point-size.
15605 (font_unparse_fcname): Produce symbolic names for style properties.
15606 (font_list_entities): Handle float size correctly.
15607 (font_open_by_name): Prefer `normal' property values if the name
15608 doesn't specify them.
15609
15610 * fontset.c (Finternal_char_font): Use font_get_name, not
15611 Ffont_xlfd_name.
15612
15613 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15614 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15615 pattern. Don't force scalable.
15616
15617 * xftfont.c (xftfont_open): For generating a name, start from
15618 96-byte buffer.
15619
156202008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15621
15622 * frame.h (x_new_fontset2): Fix prototype.
15623
156242008-02-01 Kenichi Handa <handa@m17n.org>
15625
15626 * font.h (struct font_driver): Delete member parse_name.
15627 (font_match_p, font_get_spec, font_parse_fcname)
15628 (font_unparse_fcname): Extern them.
15629 (font_get_name): Adjust prototype.
15630
15631 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15632 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15633 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15634 unnecessary checks for weight, slant, and swidth.
15635 (font_parse_fcname): New function.
15636 (font_unparse_fcname): New function.
15637 (font_parse_name): New function.
15638 (font_match_p): New function.
15639 (font_get_name): Change return value to Lisp string.
15640 (font_get_spec): New function.
15641 (Qunspecified, Qignore_defface): Don't extern them.
15642 (font_find_for_lface): Assume that LFACE is fully specified.
15643 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15644 object, use it for FACE.
15645 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15646 driver->parse_name.
15647 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15648
15649 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15650 prototype.
15651
15652 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15653 argument F. Don't call Fnew_fontset. Instead, directly call
15654 make_fontset.
15655
15656 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15657
15658 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15659 of x_new_fontset2.
15660
15661 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15662 (Qsans__serif): New variables.
15663 (ftfont_generic_family_list): New variable.
15664 (syms_of_ftfont): Initialize the above variables.
15665 (ftfont_pattern_entity): Delete argument NAME.
15666 (ftfont_list_generic_family): New function.
15667 (ftfont_parse_name): Delete this function.
15668 (ftfont_list): Try generic family only when FcFontList found no font.
15669 (ftfont_list_family): Fix args to FcObjectSetBuild.
15670
15671 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15672 object in attrs[LFACE_FONT_INDEX].
15673 (set_lface_from_font_name): Cancel all changes for font-backend.
15674 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15675 function.
15676 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15677 font object in QCfont attribute.
15678 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15679 (realize_default_face) [USE_FONT_BACKEND]: Call
15680 set_lface_from_font_and_fontset.
15681
15682 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15683 "fixed", and signal error here if no suitable font was found.
15684
15685 * xfont.c (xfont_parse_name): Delete this function.
15686
15687 * xftfont.c (xftfont_open): Change coding style of error
15688 handling. Generate fontconfig's fontname pattern.
15689
15690 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15691 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15692
15693 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15694 Both args FONTSET and FONT_OBJECT must be existing ones.
15695
156962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15697
15698 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15699
157002008-02-01 Kenichi Handa <handa@m17n.org>
15701
15702 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15703
15704 * font.h (struct font): Fix typo.
15705
15706 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15707 XLFD_XXX_INDEX.
15708 (enum xlfd_field_mask): New enum.
15709 (intern_font_field): Changed argument. Change caller. If digits
15710 are followed by non-digits, return a symbol.
15711 (font_expand_wildcards): New function.
15712 (font_parse_xlfd): Fix wildcard handling.
15713 (Ffont_spec): If :name is specified, reflect the info in the other
15714 properties.
15715
15716 * ftfont.c (ftfont_pattern_entity): Fix typo.
15717 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15718 locale.
15719
157202008-02-01 Kenichi Handa <handa@m17n.org>
15721
15722 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15723
15724 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15725 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15726 registry doesn't specify encoding part.
15727 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15728 (font_open_by_name): At first try parsing the name.
15729 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15730 as Lisp symbols.
15731
15732 * fontset.c (reorder_font_vector): Pay attention to the case that
15733 the 3rd element of font_def is nil.
15734 (fontset_font): For the default fontset, append one more fontset
15735 elements for a script-based font specification. Don't add script
15736 attribute on finding a font.
15737 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15738 font name.
15739 (fontset_ascii_font): If a font can't be opened, return nil.
15740
15741 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15742 (ftfont_pattern_entity): New function.
15743 (ftfont_get_cache): Assume that freetype_font_cache is already
15744 initialized.
15745 (ftfont_list): Handle the case that a file is specified in font
15746 name. Use ftfont_pattern_entity to generate entities.
15747 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15748 (syms_of_ftfont): Initialize freetype_font_cache.
15749
15750 * xftfont.c (xftfont_open): Make the font name fontconfig's
15751 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15752 (xftfont_close): Free font->font.name if not NULL.
15753
15754 * xfont.c (xfont_list): If script is specified for a font, return
15755 null_vector.
15756 (xfont_list_family): Declare argument type.
15757
15758 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15759 name, set LFACE_FONT (lface) to nil.
15760
15761 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15762 return Qnil.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15767 (standard_args): Add "-enable-font-backend".
15768
157692008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15772 (struct xftdraw_list, xftdraw_list): Delete them.
15773 (register_xftdraw, check_xftdraw): Delete them.
15774 (xftfont_prepare_face): Don't call register_xftdraw.
15775 (xftfont_done_face): Don't call check_xftdraw.
15776 (xftfont_draw): Get background color only when with_background is
15777 nonzero.
15778
15779 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15780
157812008-02-01 Kenichi Handa <handa@m17n.org>
15782
15783 These changes are for the new font handling codes.
15784
15785 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15786 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15787 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15788 (FONTSRC, FONTOBJ): New variables.
15789 (obj): Add $(FONTOBJ).
15790 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15791 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15792 @LIBOTF_LIBS@.
15793 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15794 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15795
15796 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15797
15798 * character.h (Vscript_representative_chars): Extern it.
15799
15800 * character.c (Vscript_representative_chars): New variable.
15801 (syms_of_character): Declare it as a Lisp variable.
15802
15803 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15804 enable_font_backend is nonzero, accept the composition method
15805 COMPOSITION_WITH_GLYPH_STRING.
15806
15807 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15808 enumeration COMPOSITION_WITH_GLYPH_STRING.
15809
15810 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15811 members clip_x, clip_y, clip_width, and clip_height.
15812 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15813
15814 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15815 --enable-font-backend. Call syms_of_font.
15816
15817 * fns.c (assoc_no_quit): New function.
15818
15819 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15820 (face_for_font, new_fontset_from_font)
15821 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15822
15823 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15824 (fontset_font, fontset_ascii, face_for_char)
15825 (make_fontset_for_ascii_face, Ffont_info)
15826 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15827 is nonzero, use font-backend mechanism.
15828 (find_font_encoding): Make it non-static.
15829 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15830 New functions.
15831
15832 * frame.h (struct frame): New members resx and resy.
15833 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15834 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15835
15836 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15837 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15838
15839 * lisp.h (assoc_no_quit): Extern it.
15840
15841 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15842 Through out the file, use FONT_INFO_FROM_FACE instead of
15843 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15844 rif->per_char_metric.
15845 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15846 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15847 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15848 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15849 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15850 nonzero, use font-backend mechanism.
15851 (get_per_char_metric): New function.
15852
15853 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15854 (set_lface_from_font_name)
15855 (set_font_frame_param, free_realized_face)
15856 (prepare_face_for_display, clear_face_gcs)
15857 (Finternal_set_font_selection_order, realize_x_face)
15858 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15859 font-backend mechanism.
15860 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15861 (load_face_font) [USE_FONT_BACKEND]: Abort.
15862 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15863 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15864
15865 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15866 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15867 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15868 nonzero, register all available font drivers. Call
15869 x_default_font_parameter for deciding a font.
15870 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15871
15872 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15873 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15874 (x_set_glyph_string_clipping_exactly)
15875 (x_compute_glyph_string_overhangs)
15876 (x_draw_glyph_string_foreground)
15877 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15878 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15879 enable_font_backend is nonzero, use font-backend mechanism.
15880 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15881
158822008-02-01 Kenichi Handa <handa@m17n.org>
15883
15884 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15885 system_eol_type.
15886 (syms_of_coding): Initialize system_eol_type.
15887
15888 * process.c (Fset_process_coding_system): Inherit system's eol
15889 format if necessary.
15890
158912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15892
15893 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15894
158952008-02-01 Kenichi Handa <handa@m17n.org>
15896
15897 * coding.c (decode_eol): Pay attention to buffer relocation in
15898 del_range_2.
15899 (decode_coding): Call decode_eol before restoring undo_list.
15900
159012008-02-01 Kenichi Handa <handa@m17n.org>
15902
15903 * charset.c (Fdefine_charset_internal): Fix setting of
15904 emacs_mule_bytes.
15905
159062008-02-01 Kenichi Handa <handa@m17n.org>
15907
15908 * keyboard.c (read_char): Check if C is a character or not before
15909 looking up Vkeyboard_translate_table.
15910
159112008-02-01 Kenichi Handa <handa@m17n.org>
15912
15913 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15914 condition to terminate the loop.
15915
159162008-02-01 Kenichi Handa <handa@m17n.org>
15917
15918 * coding.c (produce_composition): Compare charbuf[i] instead of
15919 args[i] against 0.
15920 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15925 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15926 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15927 detect_coding.
15928 (emacs_mule_char): Handle old style (Emacs 20) component character
15929 of a composition.
15930 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15931 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15932 composition rule.
15933 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15934
159352008-02-01 Kenichi Handa <handa@m17n.org>
15936
15937 * coding.c (encode_coding_ccl): Allocate destination dynamically
15938 when necessary.
15939
159402008-02-01 Kenichi Handa <handa@m17n.org>
15941
15942 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15943 the loop. When quitted, show a proper error message.
15944
159452008-02-01 Kenichi Handa <handa@m17n.org>
15946
15947 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15948 src->clip_head and src->clip_tail temporarily instead of src->hl.
15949
15950 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15951 character sequence.
15952 (Fccl_execute_on_string): Use ASET, not XSET.
15953
159542008-02-01 Kenichi Handa <handa@m17n.org>
15955
15956 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15957
159582008-02-01 Kenichi Handa <handa@m17n.org>
15959
15960 * coding.c (decode_coding): Fix the condition of terminating the
15961 decoding loop.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * data.c (Faset): On setting a character bigger than 255 in a
15966 unibyte string, signal an error instead of make the string multibyte.
15967
159682008-02-01 Kenichi Handa <handa@m17n.org>
15969
15970 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15971 made by a mapping table.
15972
159732008-02-01 Kenichi Handa <handa@m17n.org>
15974
15975 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15976 not.
15977 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15978 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15979
15980 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15981 s->face is NULL or not.
15982
159832008-02-01 Kenichi Handa <handa@m17n.org>
15984
15985 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15986 (x_draw_glyph_string): Fix drawing of right_overhang and
15987 left_overhang around/on cursor.
15988
15989 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15990
159912008-02-01 Kenichi Handa <handa@m17n.org>
15992
15993 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15994
159952008-02-01 Kenichi Handa <handa@m17n.org>
15996
15997 * coding.c (Fdefine_coding_system_internal)
15998 (Fdefine_coding_system_alias): Avoid a duplicated element in
15999 Vcoding_system_alist.
16000
160012008-02-01 Kenichi Handa <handa@m17n.org>
16002
16003 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
16004
16005 * coding.c (Qcoding_system_define_form): New variable.
16006 (syms_of_coding): Intern and staticpro it.
16007 (Fcoding_system_p): Check Qcoding_system_define_form.
16008 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
16009
16010 * coding.h (CODING_SYSTEM_P): If ID is not available, call
16011 Fcoding_system_p.
16012 (CHECK_CODING_SYSTEM): If ID is not available, call
16013 Fcheck_coding_system.
16014 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
16015 Try also Fcheck_coding_system.
16016
160172008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * coding.c (code_conversion_restore): GCPRO arg.
16020
160212008-02-01 Kenichi Handa <handa@m17n.org>
16022
16023 * character.c (lisp_string_width): Check multibyteness of STRING.
16024
160252008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16026
16027 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
16028 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
16029 (decode_mac_font_name): Use decode_coding_c_string instead of
16030 decode_coding.
16031 (x_load_font): Initialize fontp->fontset to -1. Set
16032 fontp->encoding_type.
16033
160342008-02-01 Kenichi Handa <handa@m17n.org>
16035
16036 * search.c (search_buffer): Give up BM search on case-fold-search
16037 if one of a target character has a case-equivalence of different
8307f923 16038 byte length even if that target character is an ASCII.
aac0c6e3
MR
16039 (simple_search): Fix calculation of byte length of matched text.
16040 (boyer_moore): Fix handling of case-equivalent multibyte characters.
16041
160422008-02-01 Kenichi Handa <handa@m17n.org>
16043
16044 * coding.c (decode_coding): Fix handling of invalid bytes.
16045
160462008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
16049 Unicode characters.
16050
160512008-02-01 Kenichi Handa <handa@m17n.org>
16052
16053 * coding.c (encode_coding_object): If a pre-write-conversion
16054 function makes a new buffer, kill it.
16055
160562008-02-01 Kenichi Handa <handa@m17n.org>
16057
16058 * coding.c (QCascii_compatible_p): New variable.
16059 (syms_of_coding): Initialize it.
16060 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
16061 calling string_char.
16062 (record_conversion_result): Add `default:' case.
16063 (coding_charset_list): Delete unused variable `coding_type'.
16064 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
16065 property in the plist of the coding system.
16066 (Fcoding_system_put): Check QCascii_compatible_p.
16067
160682008-02-01 Miles Bader <miles@gnu.org>
16069
16070 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
16071 removed calculation of frame `f', as it's now used.
16072
160732008-02-01 Kenichi Handa <handa@m17n.org>
16074
16075 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
16076 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
16077 (UNIDATA): New variable.
16078 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
16079 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
16080 $(RUN_TEMACS) unconditionally.
16081
160822008-02-01 Kenichi Handa <handa@m17n.org>
16083
16084 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
16085 (admindir): New variable.
16086 ($(lispsource)international/charprop.el): New target.
16087
160882008-02-01 Miles Bader <miles@gnu.org>
16089
16090 * character.c (chars-in-region): Remove obsolete function.
16091 (syms_of_character): Remove its initialization.
16092
160932008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
16094
16095 * w32select.c (validate_coding_system)
16096 (setup_windows_coding_system): New functions.
16097 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
16098 setup_windows_coding_system.
16099 (setup_config, Fw32_get_clipboard_data): Use
16100 validate_coding_system.
16101 (Fx_selection_exists): Move call to setup_config to a place
16102 where signals are allowed.
16103
16104 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
16105 (Fcheck_coding_system): Add declarations.
16106
161072008-02-01 Kenichi Handa <handa@m17n.org>
16108
16109 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
16110
161112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16112
16113 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
16114 string as the second argument for x_new_fontset.
16115
161162008-02-01 Kenichi Handa <handa@m17n.org>
16117
16118 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
16119 (encode_coding_object): Use safe_call instead of call2.
16120
161212008-02-01 Kenichi Handa <handa@m17n.org>
16122
16123 * fontset.c (Fset_fontset_font): Check family element of a given vector.
16124
16125 * Makefile.in (lisp): Include charprop.el.
16126
161272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16128
16129 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
16130 Not sure if it's unnecessary.
16131
161322008-02-01 Steven Tamm <steventamm@mac.com>
16133
16134 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16135 some possibly unnecessary fontset checking code that crashed
16136 when creating a new frame.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16141 lookup_face.
16142
16143 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16144
16145 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16146
161472008-02-01 Kenichi Handa <handa@m17n.org>
16148
16149 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16150 (coding_charset_list): New function.
16151
16152 * coding.h (coding_charset_list): Extern it.
16153
161542008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16157 concatenation of family and registry.
16158
161592008-02-01 Kenichi Handa <handa@m17n.org>
16160
16161 * character.h (BYTE8_STRING): Fix typo.
16162
16163 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16164 string to multibyte (sync to HEAD).
16165
16166 * casefiddle.c (casify_region): Handle changes in byte-length
16167 using replace_range_2 (sync to HEAD).
16168
161692008-02-01 Andreas Schwab <schwab@suse.de>
16170
16171 * chartab.c (map_char_table): GCPRO table and arg.
16172
161732008-02-01 Kenichi Handa <handa@m17n.org>
16174
16175 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16176 already at limit.
16177
161782008-02-01 Kenichi Handa <handa@m17n.org>
16179
16180 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16181 instead of fast_c_string_match_ignore_case.
16182 (find_font_encoding): Change argument to Lisp_Object. Use
16183 fast_string_match_ignore_case instead of
16184 fast_c_string_match_ignore_case. Change caller.
16185
161862008-02-01 Kenichi Handa <handa@m17n.org>
16187
16188 * xdisp.c (get_next_display_element): In unibyte case, decide to
16189 display in octal form by checking a character by
16190 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16191
16192 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16193
16194 * character.c (unibyte_has_multibyte_table): New variable.
16195
16196 * character.h (unibyte_has_multibyte_table): Extern it.
16197 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 * coding.c (encode_coding_iso_2022): Fix handling of charset
16202 annotation.
16203
162042008-02-01 Kenichi Handa <handa@m17n.org>
16205
16206 * coding.c (setup_coding_system): If coding_system is nil, use
16207 Qundecided.
16208 (Fterminal_coding_system): Return nil if terminal coding system is
16209 `undecided'.
16210 (syms_of_coding): Define coding-system `undecided' here. Setup
16211 terminal_coding as `undecided'.
16212
162132008-02-01 Kenichi Handa <handa@m17n.org>
16214
16215 * xdisp.c (message_dolog, set_message_1): Call
16216 unibyte_char_to_multibyte with arg type int.
16217
16218 * lread.c (read1): Fix reading of a char-table.
16219
16220 * print.c (print_object): Include sub char-table in circularities
16221 detection.
16222
162232008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16226 Append the found sequences in car of ARGS instead of prepending.
16227
162282008-02-01 Kenichi Handa <handa@m17n.org>
16229
16230 * fileio.c (report_file_error): Make a unibyte string from
16231 strerror (errorno).
16232 (Fsubstitute_in_file_name): Fix the arg to
16233 unibyte_char_to_multibyte. It is evaluated twice.
16234
162352008-02-01 Kenichi Handa <handa@m17n.org>
16236
16237 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16238
162392008-02-01 Kenichi Handa <handa@m17n.org>
16240
16241 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16242 BOM is not found.
16243 (detect_coding, detect_coding_system): Optimization for ISO-2022
16244 when no 8-bit data is found.
16245
162462008-02-01 Jason Rumney <jasonr@gnu.org>
16247
16248 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16249
162502008-02-01 Kenichi Handa <handa@m17n.org>
16251
16252 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16253 CHARS.
16254
162552008-02-01 Steven Tamm <steventamm@mac.com>
16256
16257 * macterm.c (mac_encode_char): Add charset argument and update
16258 to use encoding_type.
16259 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16260 switch to pure fontset.
16261 (decode_mac_font_name): Temporarily remove decoding.
16262 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16263 (x_load_font): Temporarily remove encoding.
16264
162652008-02-01 Kenichi Handa <handa@m17n.org>
16266
16267 * xfaces.c (Fface_font): If frame is not on a window system,
16268 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16269 refer to face->font.
16270 (split_font_name_into_vector, build_font_name_from_vector)
16271 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16272 when HAVE_WINDOW_SYSTEM is defined.
16273
162742008-02-01 Kenichi Handa <handa@m17n.org>
16275
16276 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16277 (x_produce_glyphs): Fix setting of members of cmp in case
16278 cmp->glyph_len is zero.
16279
16280 * fontset.c (Fset_fontset_font): Fix docstring.
16281 (Ffontset_info): Make it backward compatible. New arg ALL.
16282
162832008-02-01 Kim F. Storm <storm@cua.dk>
16284
16285 * process.c (read_process_output): Grow decoding_buf when needed;
16286 this could cause a crash in allocate_string and compact_small_strings.
16287
162882008-02-01 Kenichi Handa <handa@m17n.org>
16289
16290 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16291
162922008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * coding.c (setup_coding_system): Set coding->common_flags
16295 correctly for raw-text.
16296 (consume_chars): On encoding unibyte text by raw-text, don't check
16297 multibyte form.
16298 (encode_coding): On encoding by raw-text, never use translation tables.
16299
16300 * fileio.c (e_write): Short cut for the case of no encoding.
16301
163022008-02-01 Kenichi Handa <handa@m17n.org>
16303
16304 * coding.c (detect_coding, detect_coding_system): Delete unused
16305 variables.
16306
163072008-02-01 Kenichi Handa <handa@m17n.org>
16308
16309 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16310 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16311
163122008-02-01 Kenichi Handa <handa@m17n.org>
16313
16314 * coding.c (Ffind_coding_systems_region_internal): Include
16315 raw-text and no-conversion in the result.
16316
163172008-02-01 Kenichi Handa <handa@m17n.org>
16318
16319 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16320 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16321 FONT_DEF.
16322 (font_def_arg, add_arg, from_arg, to_arg): New args.
16323 (set_fontset_font): Change argument.
16324 (Fset_fontset_font): Fix for the case that TARGET is a script
16325 name and charset name.
16326 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16327
163282008-02-01 Kenichi Handa <handa@m17n.org>
16329
16330 * fontset.c (fontset_font): Rename from fontset_face. Change return
16331 value.
16332 (face_suitable_for_char_p, face_for_char): Adjust for the change
16333 of fontset_font.
16334 (make_fontset_for_ascii_face): Fix setting of the fontset element
16335 for ASCII.
16336 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16337 to get a font name.
16338 (Ffontset_info): Adjust for the change of fontset_font.
16339
16340 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16341
16342 * character.h (LEADING_CODE_LATIN_1_MIN)
16343 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16344
163452008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * editfns.c (check_translation): New function.
16348 (Ftranslate_region_internal): Handle M:N mapping.
16349
163502008-02-01 Kenichi Handa <handa@m17n.org>
16351
16352 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16353
163542008-02-01 Kenichi Handa <handa@m17n.org>
16355
16356 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16357 goto invalid_code.
16358 (decode_coding_iso_2022): Fix handling of invalid designation.
16359
16360 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16361 after calling code_conversion_save.
16362
163632008-02-01 Kenichi Handa <handa@m17n.org>
16364
16365 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16366
16367 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16368
16369 * fontset.c: Include "intervals.h".
16370 (fontset_face): Fix comparing of Lisp_Objects.
16371 (free_face_fontset, new_fontset_from_font_name): Fix
16372 Lisp_Object/int mixup.
16373
16374 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16375
16376 * coding.c: Add many prototypes for static functions.
16377 (get_translation_table): Allow max_lookup to be NULL.
16378 (decode_coding, Ffind_coding_systems_region_internal)
16379 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16380 get_translation_table with max_lookup NULL.
16381
163822008-02-01 Kenichi Handa <handa@m17n.org>
16383
16384 * coding.c (get_translation_table): Declare it as Lisp_Object.
16385 (LOOKUP_TRANSLATION_TABLE): New macro.
16386 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16387 instead of CHAR_TABLE_REF.
16388
163892008-02-01 Kenichi Handa <handa@m17n.org>
16390
16391 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16392 annotation data format.
16393 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16394 Change arguments FROM and TO to single argument NCHARS. Change caller.
16395 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16396 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16397 (decode_coding_ccl, decode_coding_charset): Pay attention to
16398 coding->charbuf_used.
16399 (get_translation): New function.
16400 (produce_chars): New arguments translation_table and last_block.
16401 Translate characters here. Return number of carryover chars.
16402 Change caller.
16403 (produce_composition): New argument pos. Change caller.
16404 Adjust for the change of annotation data format.
16405 (produce_charset, produce_annotation): Likewise.
16406 (decode_coding, encode_coding): Don't call translate_chars.
16407 (consume_chars): New arg translation_table. Change caller.
16408 (translate_chars): Delete.
16409 (syms_of_coding): Make translation-table's number of extra slots 2.
16410
164112008-02-01 Kenichi Handa <handa@m17n.org>
16412
16413 * search.c (simple_search): Fix setting this_pos_byte in backward
16414 search.
16415
16416 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16417 byte sequence.
16418 (detect_coding_ccl): Fix setting of the variable valids.
16419
164202008-02-01 Kenichi Handa <handa@m17n.org>
16421
16422 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16423
16424 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16425
16426 * editfns.c (Ftranslate_region_internal): Rename from
16427 Ftranslate_region. Accept a char-table in TABLE.
16428 (syms_of_editfns): Defsubr Stranslate_region_internal.
16429
16430 * xfaces.c (set_lface_from_font_name): If a font is specified for
16431 a frame, generate a fontset from the font.
16432 (build_scalable_font_name): If the scalable font is requested for
16433 a specific size, don't change that size.
16434 (try_font_list): Try a scalable font also in the case that a
16435 pattern string is specified.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * xfaces.c (Fface_font): New optional arg CHARACTER.
16440
164412008-02-01 Kenichi Handa <handa@m17n.org>
16442
16443 * charset.h (CHARSET_OFFSET): New macro.
16444
164452008-02-01 Kenichi Handa <handa@m17n.org>
16446
16447 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16448
16449 * fontset.c (fontset_face): Handle the case that repertory is a
16450 char-table.
16451 (find_font_encoding): Return nil for unknown encoding.
16452 (Fset_fontset_font): Ignore a font of unknown encoding.
16453
164542008-02-01 Kenichi Handa <handa@m17n.org>
16455
16456 * keymap.c (describe_vector): Handle default value of a char table.
16457
16458 * fontset.c (fontset_face): Handle fallback fonts correctly.
16459 (Ffontset_info): Return infomation about fallback fonts.
16460
164612008-02-01 Kenichi Handa <handa@m17n.org>
16462
16463 * fontset.c (FONTSET_DEFAULT): New macro.
16464 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16465 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16466 the case that it is nil.
16467 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16468 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16469
16470 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16471 subset or superset.
16472
164732008-02-01 Kenichi Handa <handa@m17n.org>
16474
16475 * emacs.c (main): Call init_charset after syms_of_XXX.
16476
16477 * charset.c (Vcharset_map_directory): Delete.
16478 (Vcharset_map_path): New variable.
16479 (load_charset_map_from_file): Use Vcharset_map_path instead.
16480 (init_charset): Initialize Vcharset_map_path.
16481 (syms_of_charset): Delete declaration of "charset-map-directory",
16482 add declaration of "charset-map-path".
16483
164842008-02-01 Kenichi Handa <handa@m17n.org>
16485
16486 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16487 ASCII only string.
16488
16489 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16490
16491 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16492 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16493
164942008-02-01 Kenichi Handa <handa@m17n.org>
16495
16496 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16497
16498 * coding.c (QCmnemonic, QCdefalut_char)
16499 (QCdecode_translation_table, QCencode_translation_table)
16500 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16501 (get_translation_table): Return a list of translation tables if
16502 necessary.
16503 (decode_coding): Call get_translation_table with ENCODEP 0.
16504 (char_encodable_p): If translation_table is non-nil, always call
16505 translate_char.
16506 (Fdefine_coding_system_internal): Accept list of translation
16507 tables as :encode-translation-table and :decode-translation-table.
16508 (Fcoding_system_put): New function.
16509 (syms_of_coding): Declare new symbols. Defsubr
16510 Scoding_system_put.
16511 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16512 typically JISX0212.
16513
16514 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16515 when the charset is superset type.
16516
16517 * character.c (translate_char): Accept list of translation tables.
16518
165192008-02-01 Kenichi Handa <handa@m17n.org>
16520
16521 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16522 (CODING_ATTR_TRANS_TBL): New macro.
16523
16524 * coding.c (get_translation_table): New function.
16525 (translate_chars): Fix the bug of skipping annotation data.
16526 (decode_coding, encode_coding): Utilize get_translation_table.
16527 (char_encodable_p, Funencodable_char_position): Translate char if
16528 necessary.
16529 (Ffind_coding_systems_region_internal)
16530 (Fcheck_coding_systems_region): Setup translation table for encode
16531 in a coding system attribute vector in advance.
16532 (Fdefine_coding_system_internal): Allow a symbol as translation
16533 table. For shift-jis type coding system, allow 4th charset.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16538
16539 * xdisp.c (get_next_display_element): Pass -1 as POS to
16540 FACE_FOR_CHAR if displaying a C-string.
16541
165422008-02-01 Kenichi Handa <handa@m17n.org>
16543
16544 * composite.c (get_composition_id): Handle xoff and yoff in a
16545 composition rule.
16546
16547 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16548 (struct composition): New member lbearing and rbearing.
16549
16550 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16551 (x_get_glyph_overhangs): Handle a composition glyph.
16552 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16553
16554 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16555 composition glyph.
16556
165572008-02-01 Kenichi Handa <handa@m17n.org>
16558
16559 * print.c: Include charset.h.
16560 (Vprint_charset_text_property): New variable.
16561 (Qdefault): Extern it.
16562 (PRINT_STRING_NON_CHARSET_FOUND)
16563 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16564 (print_check_string_result): New variable.
16565 (print_check_string_charset_prop): New function.
16566 (print_prune_charset_plist): New variable.
16567 (print_prune_string_charset): New function.
16568 (print_object): Call print_prune_string_charset if
16569 Vprint_charset_text_property is not t.
16570 (print_interval): Print nothing if interval->plist is nil.
16571 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16572 variable. Init and staticpro print_prune_charset_plist.
16573
165742008-02-01 Kenichi Handa <handa@m17n.org>
16575
16576 * fontset.c (new_fontset_from_font_name): Use the specified font
16577 for all characters in the new fontset.
16578
16579 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16580 OBJECT args.
16581
16582 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16583 OBJECT args for composition too.
16584
16585 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16586 OBJECT args.
16587
165882008-02-01 Kenichi Handa <handa@m17n.org>
16589
16590 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16591
16592 * fontset.c (reorder_font_vector): Adjust for the change of
16593 FONT_DEF format.
16594 (fontset_face): New arg id. Change caller.
16595 (face_for_char): New args pos and object.
16596 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16597 (fs_query_fontset): Check NAME by Fassoc too.
16598 (Fset_fontset_font): Allow non-XLFD font name.
16599 (Ffontset_info): Adjust for the change of FONT_DEF format.
16600
16601 * fontset.h (face_for_char): Adjust prototype.
16602
16603 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16604 (append_space, extend_face_to_end_of_line)
16605 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16606 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16607
16608 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16609 POS and OBJECT args.
16610
16611 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16612 POS and OBJECT args.
16613
166142008-02-01 Jason Rumney <jasonr@gnu.org>
16615
16616 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16617 of GlobalAlloc'ed memory.
16618
166192008-02-01 Kenichi Handa <handa@m17n.org>
16620
16621 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16622
16623 * charset.h (charset_table_used): Delete extern.
16624
16625 * charset.c (charset_table_used): Make it static.
16626 (map_charset_chars): Fix args to c_function with.
16627
16628 * chartab.c (map_sub_char_table_for_charset): Fix args to
16629 c_function with.
16630
16631 * coding.h (enum coding_result_code): Delete
16632 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16633
16634 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16635 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16636 (Vlast_code_conversion_error): New variables.
16637 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16638 (ONE_MORE_BYTE): Record error if any instead of signaling an
16639 error. If non-ASCII multibyte char is found, return the negative
16640 value of the code. All callers changed to check it.
16641 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16642 (record_conversion_result): New function. Change all codes setting
16643 coding->result to call this function.
16644 (detect_coding_utf_8, decode_coding_utf_8)
16645 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16646 Don't use the local variable incomplete.
16647 (emacs_mule_char): Change the second arg to `const'.
16648 (decode_coding): Fix of flushing out unprocessed data.
16649 (make_conversion_work_buffer): Fix making of a work buffer.
16650 (decode_coding_object): Return coding->dst_object.
16651
16652 * fontset.c (set_fontset_font): Fix args.
16653
16654 * lisp.h (CHARACTERBITS): Define as 22.
16655
16656 * process.c (send_process): Be sure to set coding->src_multibyte.
16657
16658 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16659
166602008-02-01 Kenichi Handa <handa@m17n.org>
16661
16662 * xdisp.c (handle_auto_composed_prop): Give limit to
16663 Fnext_single_char_property_change.
16664
166652008-02-01 Kenichi Handa <handa@m17n.org>
16666
16667 * composite.c (syms_of_composite): Don't make the composition hash
16668 table weak.
16669
16670 * fontset.c (Fset_fontset_font): Fix docstring.
16671
16672 * lisp.h (detect_coding_system): Adjust prototype.
16673
16674 * fileio.c (kill_workbuf_unwind): Delete this function.
16675 (Finsert_file_contents): Adjust the call of detect_coding_system.
16676 Get conversion_buffer by code_conversion_save. Use the macro
16677 CODING_MAY_REQUIRE_DECODING. After decoding, update
16678 coding_system.
16679
16680 * coding.h (make_conversion_work_buffer): Delete extern.
16681 (code_conversion_save): Extern it.
16682
16683 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16684 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16685 (decode_coding_utf_8): Don't do eol converion.
16686 (detect_coding_utf_16): Check coding->src_chars, not
16687 coding->src_bytes. Add heuristics for those that have no signature.
16688 (decode_coding_emacs_mule, decode_coding_iso_2022)
16689 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16690 Don't do eol converion.
16691 (adjust_coding_eol_type): Return a new coding system.
16692 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16693 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16694 each change.
16695 (decode_coding): Pay attention to undo_list. Do eol conversion for
16696 all types of coding-systems (if necessary).
16697 (Vcode_conversion_work_buf_list): Delete it.
16698 (Vcode_conversion_reused_workbuf): Rename from
16699 Vcode_conversion_reused_work_buf.
16700 (Vcode_conversion_workbuf_name): New variable.
16701 (reused_workbuf_in_use): New variable.
16702 (make_conversion_work_buffer): Delete the arg DEPTH.
16703 (code_conversion_restore): Change argument to cons.
16704 (code_conversion_save): Delete the argument BUFFER. Change callers.
16705 (detect_coding_system): New argument src_chars. Change callers.
16706 Fix for utf-16 detection.
16707 (init_coding_once): Don't use ISO_carriage_return.
16708 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16709 reused_workbuf_in_use.
16710
167112008-02-01 Kenichi Handa <handa@m17n.org>
16712
16713 * keymap.c (store_in_keymap): Pay attention to the case that idx
16714 is a cons specifying a character range.
16715
167162008-02-01 Kenichi Handa <handa@m17n.org>
16717
16718 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16719 HANDLED_RECOMPUTE_PROPS.
16720
16721 * coding.c (Fdefine_coding_system_internal): Fix checking of
16722 ascii compatibility.
16723
167242008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * charset.c (find_charsets_in_text): Delete unused locale variable.
16727 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16728
16729 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16730 Resync charset_list to Vemacs_mule_charset_list.
16731
16732 * keymap.c (store_in_keymap): Pay attention to the case that idx
16733 is a cons specifying a character range.
16734
167352008-02-01 Kenichi Handa <handa@m17n.org>
16736
16737 * composite.c (update_compositions): Bind inhibit-read-only, etc
16738 to t before calling remove-list-of-text-properties.
16739
16740 * print.c (print_object): Always print ASCII chars as is.
16741
167422008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16745
16746 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16747 is a char table.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16752
167532008-02-01 Kenichi Handa <handa@m17n.org>
16754
16755 * xfaces.c (set_lface_from_font_name): Fix for the case that
16756 FONTNAME is not fontset name.
16757
167582008-02-01 Kenichi Handa <handa@m17n.org>
16759
16760 * fns.c (base64_encode_1): Fix previous change.
16761
167622008-02-01 Kenichi Handa <handa@m17n.org>
16763
16764 * fontset.c (set_fontset_font): New function.
16765 (Fset_fontset_font): If a font is specified for a charset, use
16766 map_charset_chars to store the font spec in a fontset.
16767
167682008-02-01 Kenichi Handa <handa@m17n.org>
16769
16770 * fontset.c (fontset_face): Create a fallback fontset on demand.
16771 (make_fontset): Don't create a fallback fontset here.
16772 (free_face_fontset): Free a fallback fontset (if any) too.
16773 (n_auto_fontsets): Delete this variable.
16774 (auto_fontset_alist): New variable.
16775 (new_fontset_from_font_name): Check auto_fontset_alist.
16776 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16777 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16778 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16779 Defsubr Sfontset_list_all.
16780
167812008-02-01 Kenichi Handa <handa@m17n.org>
16782
16783 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16784
167852008-02-01 Kenichi Handa <handa@m17n.org>
16786
16787 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16788
167892008-02-01 Kenichi Handa <handa@m17n.org>
16790
16791 * editfns.c (Fgoto_char): Fix docstring.
16792
167932008-02-01 Kenichi Handa <handa@m17n.org>
16794
16795 * insdel.c (insert_from_gap): Adjust intervals correctly.
16796
167972008-02-01 Jason Rumney <jasonr@gnu.org>
16798
16799 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16800 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16801 (w32_initialize): Try to load it.
16802 (x_get_font_repertory): Use it if available.
16803 (w32_encode_char): Add shortcut for unicode output.
16804
16805 * w32fns.c (w32_load_system_font): Default charset to -1.
16806 (x_to_w32_charset): Match all fonts for unicode.
16807 (w32_to_x_charset): New parameter matching. Don't return partial
16808 or wildcard charsets.
16809 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16810 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16811 (w32_to_x_font): Match charset to real charset.
16812 (enum_font_cb2): Always list unicode versions.
16813
16814 * makefile.w32-in (temacs): Increase EMHEAP.
16815
168162008-02-01 Jason Rumney <jasonr@gnu.org>
16817
16818 * w32term.c (w32_encode_char): New charset parameter.
16819 font_info.encoding becomes encoding_type.
16820 (x_get_font_repertory): New function. Warning: stub only!
16821 (x_new_font): Return quickly if font already set.
16822 (x_new_fontset): fontsetname parameter is Lisp_Object.
16823 Use new fs_query_fontset. Try new_fontset_from_font_name.
16824 Use fontset_name for return value.
16825
16826 * w32term.h: Declare x_get_font_repertory.
16827
16828 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16829 place of find_charset_in_text. Use encode_coding_object in place
16830 of encode_coding.
16831 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16832 decode_coding.
16833
16834 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16835 of x_new_fontset.
16836 (w32_load_system_font): Initialize charset as unicode.
16837 font_info.encoding becomes encoding_type.
16838 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16839 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16840 (syms_of_w32fns): Set get_font_repertory_func.
16841
16842 * w32console.c: Include character.h. Use terminal_encode_buffer
16843 from term.c.
16844 (write_glyphs): Use new version of encode_terminal_code. Use
16845 encode_coding_object in place of encode_coding.
16846
16847 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16848 encoding becomes encoding_type.
16849
16850 * term.c (terminal_encode_buffer): Make externally visible.
16851
16852 * makefile.w32-in: Add character.h dependancies.
16853 (character.o, chartab.o): New targets.
16854
168552008-02-01 Kenichi Handa <handa@m17n.org>
16856
16857 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16858 CODING_ID_EOL_TYPE.
16859
168602008-02-01 Andreas Schwab <schwab@suse.de>
16861
16862 * coding.c (produce_chars): Revert last change.
16863
168642008-02-01 Kenichi Handa <handa@m17n.org>
16865
16866 * charset.h (charset_unicode): Extern it.
16867
16868 * charset.c (string_xstring_p): Check by (C >= 0x100).
16869 (find_charsets_in_text): Change format of the arc CHARSETS. New
16870 arg MULTIBYTE.
16871 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16872 change of find_charsets_in_text.
16873 (Fsplit_char): Fix doc. Never return unknown.
16874
16875 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16876
16877 * coding.c (Fdefine_coding_system_alias): Update
16878 Vcoding_system_list.
16879
16880 * fontset.c (load_font_get_repertory): Pay attention to the case
16881 that ENCODING of a font is specified by a char-table.
16882
16883 * xterm.c (x_get_font_repertory): Handle the case that the
16884 encoding of font is other than Unicode.
16885
168862008-02-01 Kenichi Handa <handa@m17n.org>
16887
16888 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16889 if a character is encodable by the terminal coding system. If
16890 not, produces proper number of `?'s. Update
16891 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16892 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16893
168942008-02-01 Kenichi Handa <handa@m17n.org>
16895
16896 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16897 variables.
16898 (encode_terminal_code): Change argument. Encode multiple
16899 characters at once. Store the result of encoding in
16900 terminal_encode_buffer.
16901 (write_glyphs, insert_glyphs): Adjust for the change of
16902 encode_terminal_code.
16903 (term_init): Initialize terminal_encode_buffer and
16904 terminal_encode_buf_size.
16905
16906 * coding.c (consume_chars): If coding->src_object is nil, don't
16907 check annotation.
16908
169092008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * character.c (char_string): Use ASCII_CHAR_P instead of
16912 SINGLE_BYTE_CHAR_P.
16913
169142008-02-01 Kenichi Handa <handa@m17n.org>
16915
16916 * xdisp.c (handle_auto_composed_prop): Check if the last
16917 characters of auto-composed region is newly composed with the
16918 following characters.
16919 (handle_composition_prop): Fix checking of point being inside
16920 composition.
16921
169222008-02-01 Kenichi Handa <handa@m17n.org>
16923
16924 * fns.c (concat): Don't change multibyteness of the result by
16925 concatenating an 8-bit character.
16926
16927 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16928 multibyteness of the result when newelt is an 8-bit character.
16929
169302008-02-01 Dave Love <fx@gnu.org>
16931
16932 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16933 EMACS_INT.
16934
16935 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16936
16937 * xfaces.c (face_numeric_value): Declare dim size_t.
16938 (Finternal_lisp_face_equal_p): Remove unused f.
16939
16940 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16941 (MATRIX_ROW): Remove unused vars.
16942 (draw_glyphs, x_insert_glyphs, fast_find_position)
16943 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16944 byte/char counts.
16945
16946 * regex.c (regex_compile): Remove unused var.
16947
16948 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16949
16950 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16951 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16952
16953 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16954
16955 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16956
16957 * fileio.c (Fwrite_region): Remove unused var.
16958
16959 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16960 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16961
16962 * composite.c (Fremove_list_of_text_properties): Declare.
16963
16964 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16965 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16966 (coding_inherit_eol_type): Remove unused attrs.
16967 (detect_coding): Cast arg of detect_eol.
16968
16969 * charset.c (syms_of_charset): Remove unused var p.
16970 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16971 byte/char counts.
16972
16973 * casetab.c (set_case_table): Remove unused var.
16974
16975 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16976 unused vars.
16977
169782008-02-01 Dave Love <fx@gnu.org>
16979
16980 * xterm.c (x_bitmap_mask): Declare.
16981
169822008-02-01 Dave Love <fx@gnu.org>
16983
16984 * xterm.c (x_term_init): Fix type error.
16985
16986 * lisp.h: Add Funibyte_char_to_multibyte.
16987
16988 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16989 (Fset_coding_system_priority): Doc fix.
16990
16991 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16992
16993 * indent.c (check_composition): Make start and end EMACS_INT.
16994
16995 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16996
16997 * xdisp.c (handle_composition_prop, check_point_in_composition):
16998 Make buffer positions EMACS_INT.
16999
17000 * composite.c (find_composition, run_composition_function)
17001 (update_compositions, Ffind_composition_internal): Make buffer
17002 positions EMACS_INT.
17003
17004 * composite.h (find_composition, update_compositions): Make
17005 position args EMACS_INT.
17006
17007 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
17008
17009 * intervals.c (get_property_and_range):
17010 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
17011
17012 * unexalpha.c: Don't include varargs.h.
17013
170142008-02-01 Dave Love <fx@gnu.org>
17015
17016 * coding.h (ENCODE_UTF_8): New.
17017
17018 * Makefile.in (gtkutil.o): Depend on coding.h.
17019
17020 * coding.c (Fset_coding_system_priority): Doc fix.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * fileio.c (Finsert_file_contents): Call setup_coding_system in
17025 the case of auto saving.
17026
170272008-02-01 Andreas Schwab <schwab@suse.de>
17028
17029 * chartab.c (map_char_table, map_char_table_for_charset): Protect
17030 `range' from GC.
17031
170322008-02-01 Kenichi Handa <handa@m17n.org>
17033
17034 * coding.c (decode_coding_sjis): Check bytes more rigidly.
17035
170362008-02-01 Kenichi Handa <handa@m17n.org>
17037
17038 * fileio.c (choose_write_coding_system): Return a decided coding system.
17039 (Fwrite_region): Set Vlast_coding_system_used to the return value
17040 of choose_write_coding_system.
17041
170422008-02-01 Kenichi Handa <handa@m17n.org>
17043
17044 * charset.c (Fset_charset_priority): Pay attention to duplicated
17045 arguments.
17046
17047 * coding.c (QCcategory): New variable.
17048 (syms_of_coding): Defsym it. Set all elements of
17049 Vcoding_category_table and their symbol values.
17050 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
17051 coding-category-XXX, and coding-category-list.
17052 (Fdefine_coding_system_internal): Add category in the plist.
17053
170542008-02-01 Kenichi Handa <handa@m17n.org>
17055
17056 * callproc.c (Fcall_process): Handle carryover correctly.
17057
17058 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
17059 (raw_text_coding_system): Check NILP (coding_system).
17060 (coding_inherit_eol_type): Check NILP (coding_system) and
17061 NILP (parent).
17062 (consume_chars): Fix for the case of raw-text.
17063
17064 * process.c (read_process_output): Handle carryover correctly.
17065
170662008-02-01 Dave Love <fx@gnu.org>
17067
17068 * regex.c (re_search_2): Fix last change.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
17073 target_multibyte. Even in a unibyte case, return a converted
17074 multibyte char.
17075 (GET_CHAR_AFTER): New macro.
17076 (PATFETCH): Translate via multibyte char.
17077 (HANDLE_UNIBYTE_RANGE): Delete this macro.
17078 (SETUP_MULTIBYTE_RANGE): New macro.
17079 (regex_compile): Setup compiled code so that its multibyteness
17080 matches that of a target. Fix the handling of "[X-YZ]" using
17081 SETUP_MULTIBYTE_RANGE.
17082 (analyse_first) <charset>: For filling fastmap for all multibyte
17083 characters, don't check by BASE_LEADING_CODE_P.
17084 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
17085 the same as RE_MULTIBYTE_P (bufp) now.
17086 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
17087 (TARGET_CHAR_AND_LENGTH): Delete this macro.
17088 (TRANSLATE_VIA_MULTIBYTE): New macro.
17089 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
17090 It is the same as RE_MULTIBYTE_P (bufp) now.
17091 <exactn>: Translate via multibyte.
17092 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
17093 translate it.
17094 <charset, charset_not>: Fetch a character by
17095 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
17096 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
17097 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
17098 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
17099 by GET_CHAR_AFTER.
17100 (bcmp_translate): Likewise.
17101
17102 * search.c (compile_pattern): Check the member target_multibyte,
17103 not the member multibyte of buf.
17104
17105 * lread.c (read1): While reading a string, set force_singlebyte
17106 and force_multibyte correctly.
17107
17108 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
17109 up of unibyte_to_multibyte_table.
17110
171112008-02-01 Kenichi Handa <handa@m17n.org>
17112
17113 * coding.c (setup_coding_system): If coding has
17114 post-read-conversion or pre-write-conversion, set
17115 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
17116 respectively.
17117 (decode_coding_gap): Run post-read-conversion if any.
17118
17119 * fileio.c (Finsert_file_contents): Even if we read into a
17120 unibyte buffer, check if we must decode the result or not.
17121
171222008-02-01 Kenichi Handa <handa@m17n.org>
17123
17124 * coding.c (make_conversion_work_buffer): Change the work buffer
17125 name to the same one as that of Emacs 21.
17126
171272008-02-01 Kenichi Handa <handa@m17n.org>
17128
17129 * coding.h (make_conversion_work_buffer): Adjust prototype.
17130 (code_conversion_restore): Don't extern it.
17131
17132 * coding.c (detected_mask): Delete unused variable.
17133 (decode_coding_iso_2022): Pay attention to the byte sequence of
17134 CTEXT extended segment, and retain those bytes as is.
17135 (decode_coding_ccl): Delete unused variable `valids'.
17136 (setup_coding_system): Delete unused variable `category'.
17137 (consume_chars): Delete unused variable `category'. Make it work
17138 for non-multibyte case.
17139 (make_conversion_work_buffer): Change argument.
17140 (saved_coding): Delete unused variable.
17141 (code_conversion_restore): Don't check saved_coding->destination.
17142 (code_conversion_save): New function.
17143 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17144 instead of record_unwind_protect.
17145 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17146 (detect_coding_system): Delete unused variable `mask'.
17147 (Fdefine_coding_system_internal): Delete unused variable id.
17148
17149 * fileio.c (kill_workbuf_unwind): New function.
17150 (Finsert_file_contents): On replacing, call
17151 make_conversion_work_buffer with correct args, and call
17152 record_unwind_protect with the first arg kill_workbuf_unwind.
17153
17154 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17155
171562008-02-01 Kenichi Handa <handa@m17n.org>
17157
17158 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17159 (fontset_add): Fix for the case that TO is less than TO1.
17160 (Ffontset_info): Don't use fallback fontset on checking the
17161 default fontset.
17162 (dump_fontset): New function for debugging.
17163
17164 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17165 coding_type is Qcharset.
17166
171672008-02-01 Kenichi Handa <handa@m17n.org>
17168
17169 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17170 (map_char_table): Don't inherit the value from the parent on
17171 initializing VAL. Adjust for the above change.
17172
171732008-02-01 Kenichi Handa <handa@m17n.org>
17174
17175 * coding.c (Qsignature, Qendian): Delete these variables.
17176 (syms_of_coding): Don't initialize them.
17177 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17178 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17179 detect_info->found.
17180 (decode_coding_utf_16): Don't detect BOM here.
17181 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17182 is NOT utf_16_without_bom.
17183 (setup_coding_system): For a coding system of type utf-16, check
17184 if the attribute :endian is Qbig or not (not nil or not), and set
17185 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17186 (detect_coding): If coding type is utf-16 and BOM detection is
17187 required, detect it.
17188 (Fdefine_coding_system_internal): For a coding system of type
17189 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17190
171912008-02-01 Kenichi Handa <handa@m17n.org>
17192
17193 * coding.c (coding_set_source): Fix for the case that the current
17194 buffer is different from coding->src_object.
17195 (decode_coding_object): Don't use the conversion work buffer if
17196 DST_OBJECT is a buffer.
17197
171982008-02-01 Dave Love <fx@gnu.org>
17199
17200 * lread.c (read_emacs_mule_char) [len==2]: Index
17201 emacs_mule_charset correctly.
17202
172032008-02-01 Dave Love <fx@gnu.org>
17204
17205 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17206 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17207 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17208 treated specially.)
17209 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17210 (detected_mask): Remove Big5 bits.
17211
172122008-02-01 Kenichi Handa <handa@m17n.org>
17213
17214 The following changes are to make the font rescaling facility
17215 compatible with Emacs 21.
17216
17217 * xfaces.c (Vface_font_rescale_alist): Rename from
17218 Vface_resizing_fonts.
17219 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17220 (font_rescale_ratio): Rename from font_resizing_ratio.
17221 (split_font_name): Set font->rescale_ratio.
17222 (better_font_p): Pay attention to font->rescale_ratio.
17223 (build_scalable_font_name): Likewise. Change RESX, and RESY
17224 fields.
17225 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17226
172272008-02-01 Kenichi Handa <handa@m17n.org>
17228
17229 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17230 (Qutf_16_le): Remove these variables.
17231 (syms_of_coding): Don't DEFSYM them.
17232 (decode_coding_utf_16): Fix handling of BOM.
17233 (encode_coding_utf_16): Fix handling of BOM.
17234
172352008-02-01 Kenichi Handa <handa@m17n.org>
17236
17237 * fileio.c (Finsert_file_contents): On replacing, before decoding
17238 the file into the work buffer, set point of the work buffer to the end.
17239
172402008-02-01 Dave Love <fx@gnu.org>
17241
17242 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17243
172442008-02-01 Dave Love <fx@gnu.org>
17245
17246 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17247 and fix C types.
17248
172492008-02-01 Kenichi Handa <handa@m17n.org>
17250
17251 * xdisp.c (SKIP_GLYPHS): New macro.
17252 (set_cursor_from_row): Pay attention to string display properties.
17253
17254 * category.c (copy_category_entry): Fix for the case that RANGE
17255 is an integer.
17256
17257 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17258
17259 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17260
172612008-02-01 Kenichi Handa <handa@m17n.org>
17262
17263 * charset.c (Fcharset_id_internal): New function.
17264 (syms_of_charset): Defsubr it.
17265
17266 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17267 with the last arg charset_list acquired from coding.
17268 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17269 the attribute coding_attr_ccl_valids.
17270
17271 * coding.h (enum define_coding_ccl_arg_index): Set the first
17272 member coding_arg_ccl_decoder to coding_arg_max.
17273
17274 * ccl.h (ccl_driver): Adjust prototype.
17275
17276 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17277 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17278 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17279 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17280 last arg Qnil.
17281
172822008-02-01 Kenichi Handa <handa@m17n.org>
17283
17284 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17285 call encode_char.
17286
17287 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17288
172892008-02-01 Dave Love <fx@gnu.org>
17290
17291 * composite.c (syms_of_composite): Make composition_hash_table weak.
17292
172932008-02-01 Kenichi Handa <handa@m17n.org>
17294
17295 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17296 (font_name_registry): Don't extern them.
17297 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17298
17299 * fontset.h (Qfontset): Don't extern it.
17300 (new_fontset_from_font_name): Extern it.
17301
17302 * fontset.c: Give 8 extra slots to fontset objects.
17303 (Qfontset_info): New variable.
17304 (syms_of_fontset): Defsym it.
17305 (FONTSET_FALLBACK): New macro.
17306 (fontset_face): Try also the default fontset.
17307 (make_fontset): Realize a fallback fontset from the default fontset.
17308 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17309 using split_font_name_into_vector and build_font_name_from_vector.
17310 (Fset_fontset_font): Access the elements of font_spec by enum
17311 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17312 name by using split_font_name_into_vector.
17313 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17314 generate a proper font name from the fontset name. Update
17315 Vfontset_alias_alist.
17316 (n_auto_fontsets): New variable.
17317 (new_fontset_from_font_name): New function.
17318 (Ffont_info): Store the information about fonts generated from the
17319 default fontset in the first extra slot of the returned char-table.
17320
17321 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17322 (font_name_registry): Delete function.
17323 (split_font_name_into_vector): New function.
17324 (build_font_name_from_vector): New function.
17325 (font_list): The argument REGISTRY is now a list of registry names.
17326 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17327 specifies an explicit font name, return the name as is. Make a
17328 list of registy names.
17329
17330 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17331 of x_new_fontset.
17332 (Fx_create_frame): Don't call x_new_fontset here. Just use
17333 x_list_fonts to check the existence of fonts.
17334
17335 * xterm.h (x_new_fontset): Adjust prototype.
17336
17337 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17338 string. Use new_fontset_from_font_name to create a fontset from a
17339 font name.
17340
173412008-02-01 Kenichi Handa <handa@m17n.org>
17342
17343 * syntax.c (Vfind_word_boundary_function_table): New name for
17344 Vnext_word_boundary_function_table.
17345 (find-word-boundary-function-table): New name for
17346 next-word-boundary-function-table.
17347
173482008-02-01 Dave Love <fx@gnu.org>
17349
17350 * Makefile.in: Fix some dependencies.
17351
17352 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17353 set it to nil before returning.
17354
17355 * composite.c (update_compositions): Fix type error.
17356
17357 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17358
173592008-02-01 Kenichi Handa <handa@m17n.org>
17360
17361 * xterm.c (x_new_font): Optimize for the case that the font is
17362 already set for the frame.
17363
173642008-02-01 Kenichi Handa <handa@m17n.org>
17365
17366 * chartab.c (char_table_ascii): Check if the char table contents
17367 is sub-char-table or not.
17368 (char_table_set, char_table_set_range): Fix argument to
17369 char_table_ascii.
17370
17371 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17372 (detect_coding_utf_8, detect_coding_utf_16)
17373 (detect_coding_emacs_mule, detect_coding_iso_2022)
17374 (detect_coding_sjis, detect_coding_big5)
17375 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17376 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17377 sequence is valid in this coding system. Change callers.
17378 (MAX_ANNOTATION_LENGTH): New macro.
17379 (ADD_ANNOTATION_DATA): New macro.
17380 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17381 ADD_ANNOTATION_DATA. Change the format of annotation data.
17382 (ADD_CHARSET_DATA): New macro.
17383 (emacs_mule_char): New argument ID. Change callers.
17384 (decode_coding_emacs_mule, decode_coding_iso_2022)
17385 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17386 Produce charset annotation data in coding->charbuf.
17387 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17388 to charset annotation data in coding->charbuf.
17389 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17390 coding->common_flags if the coding system is iso-2022 based and
17391 uses designation.
17392 (produce_composition): Adjust for the new annotation data format.
17393 (produce_charset): New function.
17394 (produce_annotation): Handle charset annotation.
17395 (handle_composition_annotation, handle_charset_annotation): New
17396 functions.
17397 (consume_chars): Handle charset annotation. Utilize the above two
17398 functions.
17399 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17400 buffer, get the deleted text as a string and set
17401 coding->src_object to that string.
17402 (detect_coding, detect_coding_system): Use the new struct
17403 coding_detection_info.
17404
17405 * coding.h (struct coding_detection_info): New structure.
17406 (struct coding_system): Adjust prototype of the member `detector'.
17407 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17408
174092008-02-01 Kenichi Handa <handa@m17n.org>
17410
17411 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17412
174132008-02-01 Dave Love <fx@gnu.org>
17414
17415 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17416 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17417 to new local and nullify apropos_accumulate before returning.
17418 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17419
174202008-02-01 Kenichi Handa <handa@m17n.org>
17421
17422 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17423 correctly.
e3eea1fc 17424
aac0c6e3
MR
174252008-02-01 Dave Love <fx@gnu.org>
17426
17427 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17428
174292008-02-01 Kenichi Handa <handa@m17n.org>
17430
17431 The following changes are to make character composition happen
17432 automatically on displaying.
17433
17434 * Makefile.in (lisp, shortlisp): Add composite.elc.
17435
17436 * composite.h (Qauto_composed, Vauto_composition_function)
17437 (Qauto_composition_function): Extern them.
17438
17439 * composite.c (Vcomposition_function_table)
17440 (Qcomposition_function_table): Delete variables.
17441 (Qauto_composed, Vauto_composition_function)
17442 (Qauto_composition_function): New variables.
17443 (run_composition_function): Don't call
17444 compose-chars-after-function.
17445 (update_compositions): Clear `auto-composed' text property.
17446 (compose_chars_in_text): Delete this function.
17447 (syms_of_composite): Staticpro Qauto_composed and
17448 Qauto_composition_function. Declare Vauto_composition_function as
17449 a Lisp variable.
17450
17451 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17452
17453 * xdisp.c (it_props): Add an entry for Qauto_composed.
17454 (handle_auto_composed_prop): New function.
17455
17456 * xselect.c (selection_data_to_lisp_data): Don't call
17457 compose_chars_in_text.
17458
174592008-02-01 Dave Love <fx@gnu.org>
17460
17461 * keyboard.c (read_char): Modify checking around use of
17462 Vkeyboard_translate_table.
17463
17464 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17465 and fix C types.
17466
174672008-02-01 Kenichi Handa <handa@m17n.org>
17468
17469 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17470 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17471 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17472 the case that the last byte is '\r' correctly.
17473 (decode_coding): Flush out the unprocessed data correctly.
17474 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17475
174762008-02-01 Dave Love <fx@gnu.org>
17477
17478 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17479 Add XK_ISO... case.
17480 (xaw_scroll_callback): Revert last change.
17481
174822008-02-01 Kenichi Handa <handa@m17n.org>
17483
17484 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17485
174862008-02-01 Kenichi Handa <handa@m17n.org>
17487
17488 * xfaces.c (Vface_resizing_fonts): New variable.
17489 (struct font_name): New member `resizing_ratio'.
17490 (font_resizing_ratio): New function.
17491 (split_font_name): Set font->resizing_ratio.
17492 (better_font_p): Pay attention to font->resizing_ratio.
17493 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17494 RESX, and RESY fields.
17495 (try_alternative_families): Try scalable fonts if
17496 Vscalable_fonts_allowed is not Qt.
17497 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17498
174992008-02-01 Dave Love <fx@gnu.org>
17500
17501 * xterm.c (xaw_scroll_callback): Cast correctly.
17502
175032008-02-01 Dave Love <fx@gnu.org>
17504
17505 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17506 (lispy_kana_keys): Comment out.
17507 (make_lispy_event) [XK_kana_A]: Comment out.
17508
17509 * xterm.c (xaw_scroll_callback): Cast call_data.
17510 (XTread_socket): Deal with ASCII keysyms.
17511 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17512
175132008-02-01 Dave Love <fx@gnu.org>
17514
17515 * xterm.c (Vx_keysym_table): New.
17516 (syms_of_xterm): Initialize it.
17517 (XTread_socket): Use it.
17518 From head: Eliminate incorrect optimization that tried to avoid
17519 decoding the output of X*LookupString.
17520 (x_get_font_repertory): Delete charset declaration.
17521
175222008-02-01 Kenichi Handa <handa@m17n.org>
17523
17524 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17525 return 0.
17526 (Fdefine_coding_system_internal): Setup
17527 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17528
175292008-02-01 Dave Love <fx@gnu.org>
17530
17531 * coding.c (Fcheck_coding_system): Doc fix.
17532
17533 * editfns.c (Finsert_byte): Return a proper value.
17534
175352008-02-01 Kenichi Handa <handa@m17n.org>
17536
17537 * coding.c (decode_coding): Fix args to translate_chars. Pay
17538 attention to Vstandard_translation_table_for_decode.
17539 (encode_coding): Fix args to translate_chars. Pay attention to
17540 Vstandard_translation_table_for_encode.
17541
17542 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17543 SINGLE_BYTE_CHAR_P.
17544
17545 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17546 not by SINGLE_BYTE_CHAR_P.
17547
17548 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17549 SINGLE_BYTE_CHAR_P.
17550
17551 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17552 SINGLE_BYTE_CHAR_P.
17553
17554 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17555 by SINGLE_BYTE_CHAR_P.
17556
17557 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17558 SINGLE_BYTE_CHAR_P.
17559
175602008-02-01 Dave Love <fx@gnu.org>
17561
17562 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17563
175642008-02-01 Dave Love <fx@gnu.org>
17565
17566 * fns.c (Flanginfo): Fix typo.
17567
17568 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17569
175702008-02-01 Kenichi Handa <handa@m17n.org>
17571
17572 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17573 (detect_coding_emacs_mule, detect_coding_iso_2022)
17574 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17575 incomplete byte sequence. Don't update *mask when correctly detected.
17576 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17577 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17578 (detect_coding, detect_coding_system): Adjust for the changes above.
17579
175802008-02-01 Kenichi Handa <handa@m17n.org>
17581
17582 * character.c (char_string): Rename from
17583 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17584 (string_char): Rename from string_char.
17585
17586 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17587 if C is greater than MAX_3_BYTE_CHAR.
17588 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17589 string_char instead of string_char_with_unification.
17590
175912008-02-01 Dave Love <fx@gnu.org>
17592
17593 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17594
175952008-02-01 Kenichi Handa <handa@m17n.org>
17596
17597 * keymap.c (push_key_description): Pay attention to force_multibyte.
17598
17599 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17600
176012008-02-01 Dave Love <fx@gnu.org>
17602
17603 * charset.c (define_charset_internal): Rename `supprementary'.
17604
17605 * Makefile.in (lisp, shortlisp): Remove latin-N.
17606
176072008-02-01 Dave Love <fx@gnu.org>
17608
17609 * xfns.c (x_window, x_window): Use use_xim.
17610
17611 * xterm.c (use_xim): Initialize.
17612 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17613 (x_term_init): Maybe set use_xim.
17614
17615 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17616
176172008-02-01 Kenichi Handa <handa@m17n.org>
17618
17619 * search.c (search_buffer): Fix case-fold-search of multibyte
17620 characters.
17621 (boyer_moore): Rename the last argument to char_high_bits.
17622
176232008-02-01 Kenichi Handa <handa@m17n.org>
17624
17625 * xdisp.c (display_string): Fix for the case of zero width glyph.
17626
17627 * xfns.c (x_set_font): Change the error message of the case that
17628 x_new_fontset returns Qt.
17629
17630 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17631 (Finternal_set_lisp_face_attribute): Use signal_error for the
17632 error of invalid fontset.
17633
17634 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17635 fontset, return Qt.
17636
176372008-02-01 Dave Love <fx@gnu.org>
17638
17639 * unexelf.c (unexec): Make .got handling not SGI-specific.
17640
17641 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17642
17643 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17644
17645 * keyboard.c (read_key_sequence): Fix type error.
17646
17647 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17648 type error.
17649
17650 * fontset.c (fontset_add): Return Lisp_Object.
17651
176522008-02-01 Dave Love <fx@gnu.org>
17653
17654 * charset.h (charset_ordered_list_tick): Declare extern.
17655
176562008-02-01 Kenichi Handa <handa@m17n.org>
17657
17658 The following changes (and some of 2008-02-01 changes of mine) are
17659 for handling syntax, category, and case conversion for unibyte
17660 characters by converting them to multibyte on the fly. With these
17661 changes, we don't have to setup syntax and case tables for unibyte
17662 characters in each language environment.
17663
17664 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17665 multibyte if necessary.
17666
17667 * bytecode.c (Fbyte_code): Likewise.
17668
17669 * character.h (LEADING_CODE_LATIN_1_MIN)
17670 (LEADING_CODE_LATIN_1_MAX): New macros.
17671 (unibyte_to_multibyte_table): Extern it.
17672 (unibyte_char_to_multibyte): New macro.
17673 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17674 (CHAR_LEADING_CODE): New macro.
17675 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17676
17677 * character.c (unibyte_to_multibyte_table): New variable.
17678 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17679 (multibyte_char_to_unibyte): If C is an eight-bit character,
17680 convert it to the corresponding byte value.
17681
17682 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17683 not 1, signals an error. Update the elements of
17684 unibyte_to_multibyte_table.
17685 (init_charset_once): Initialize unibyte_to_multibyte_table.
17686 (syms_of_charset): Define the charset `iso-8859-1'.
17687
17688 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17689 as is without converting it to unibyte. In a unibyte buffer,
17690 convert C to multibyte before checking the syntax.
17691
17692 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17693
17694 * minibuf.c (Fminibuffer_complete_word): Use the macro
17695 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17696
17697 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17698
17699 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17700 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17701 that is zero, convert an eight-bit char to multibyte.
17702 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17703 non-emacs case.
17704 (PATFETCH): Convert an eight-bit char to multibyte.
17705 (HANDLE_UNIBYTE_RANGE): New macro.
17706 (regex_compile): Setup the compiled pattern for multibyte chars
17707 even if the given regex string is unibyte. Use PATFETCH_RAW
17708 instead of PATFETCH in many places. To handle `charset'
17709 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17710 only for ASCII chars.
17711 (analyse_first) <exactn>: Simplify because the compiled pattern
17712 is multibyte.
17713 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17714 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17715 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17716 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17717 multibyte always 1.
17718 (re_search_2): In emacs, set the locale variable multibyte to 1,
17719 otherwise to 0. New local variable target_multibyte. Check it
17720 to decide the multibyteness of STR1 and STR2. If
17721 target_multibyte is zero, convert unibyte chars to multibyte
17722 before translating and checking fastmap.
17723 (TARGET_CHAR_AND_LENGTH): New macro.
17724 (re_match_2_internal): In emacs, set the locale variable multibyte
17725 to 1, otherwise to 0. New local variable target_multibyte. Check
17726 it to decide the multibyteness of STR1 and STR2. Use
17727 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17728 <charset, charset_not>: If multibyte is nonzero, check fastmap
17729 only for ASCII chars. Call bcmp_translate with
17730 target_multibyte, not with multibyte.
17731 <begline>: Declare the local variable C as `unsigned'.
17732 (bcmp_translate): Change the last arg name to target_multibyte.
17733
17734 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17735 the regexp pattern and the matching target. Set cp->buf.multibyte
17736 to the multibyteness of the regexp pattern. Set
17737 cp->but.target_multibyte to the multibyteness of the matching target.
17738 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17739 FETCH_STRING_CHAR_ADVANCE.
17740 (Freplace_match): Convert unibyte chars to multibyte.
17741
17742 * syntax.c (char_quoted, back_comment, scan_words)
17743 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17744 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17745 unibyte chars to multibyte.
17746 (skip_chars): Delete the arg syntaxp, and move the code for
17747 handling syntaxes to skip_syntaxes. Change callers.
17748 Fix the case that the multibyteness of STRING and the current
17749 buffer doesn't match.
17750 (skip_syntaxes): New function.
17751 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17752 SINGLE_BYTE_CHAR_P.
17753
177542008-02-01 Kenichi Handa <handa@m17n.org>
17755
17756 * xfaces.c (QCfontset): New variable.
17757 (LFACE_FONTSET): New macro.
17758 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17759 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17760 (Finternal_set_lisp_face_attribute)
17761 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17762 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17763 check also LFACE_FONTSET_INDEX.
17764 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17765 attrs[LFACE_FONT_INDEX].
17766 (syms_of_xfaces): Intern and staticpro QCfontset.
17767
17768 * dispextern.h (enum lface_attribute_index): New member
17769 LFACE_FONTSET_INDEX.
17770
17771 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17772
177732008-02-01 Kenichi Handa <handa@m17n.org>
17774
17775 * coding.c (coding_set_destination): Fix coding->destination for
17776 the case converting a region.
17777 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17778 (encode_coding_object): Fix coding->dst_pos and
17779 coding->dst_pos_byte for the case converting a region.
17780
17781 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17782
17783 * character.h (BYTE8_STRING): New macro.
17784
17785 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17786
177872008-02-01 Kenichi Handa <handa@m17n.org>
17788
17789 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17790 characters by octal form.
17791
17792 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17793
17794 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17795 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17796 _fetch_multibyte_char_len.
17797 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17798
17799 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17800
17801 * casefiddle.c (casify_object): Simplify. Handle the case that
17802 the case conversion change the byte length.
17803 (casify_region): Likewise.
17804
17805 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17806
17807 * character.c (_fetch_multibyte_char_len): Delete this variable.
17808 (syms_of_character): Setup Vprintable_chars.
17809
17810 * editfns.c (Fchar_equal): Fix for the unibyte case.
17811 (Finsert_byte): New function.
17812 (syms_of_editfns): Defsubr it.
17813
17814 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17815 of direct code 0x3ffff.
17816
17817 * search.c (Freplace_match): Fix for the unibyte case.
17818
178192008-02-01 Kenichi Handa <handa@m17n.org>
17820
17821 * lread.c (safe_to_load_p): Fix the logic.
17822
17823 * syntax.c (scan_words): Don't treat characters belonging to
17824 different scripts as constituting a word.
17825
17826 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17827
17828 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17829
17830 * emacs.c (main): In the case of --unibyte, instead of aborting on
17831 finding non-empty buffer, make it unibyte.
17832
178332008-02-01 Kenichi Handa <handa@m17n.org>
17834
17835 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17836 to create a fontset.
17837
178382008-02-01 Dave Love <fx@gnu.org>
17839
17840 * character.c (Funibyte_char_to_multibyte): Doc fix.
17841
17842 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17843
178442008-02-01 Kenichi Handa <handa@m17n.org>
17845
17846 * fontset.c (fontset_add): Make the type `int'.
17847 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17848
17849 * character.c (unibyte_char_to_multibyte)
17850 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17851 charset_unibyte, not charset_primary.
17852
17853 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17854
17855 * charset.c (charset_unibyte): Rename from charset_primary.
17856 (Funibyte_charset): Rename from Fprimary_charset.
17857 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17858 (syms_of_charset): Adjust for the above changes.
17859
17860 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17861 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17862 it->multibyte_p is zero.
17863
17864 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17865 Delete extern.
17866
178672008-02-01 Kenichi Handa <handa@m17n.org>
17868
17869 * coding.c (Fdefine_coding_system_internal): Fix category setting
17870 for a coding system of type iso-2022.
17871
178722008-02-01 Kenichi Handa <handa@m17n.org>
17873
17874 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17875
178762008-02-01 Kenichi Handa <handa@m17n.org>
17877
17878 * syntax.c (Vnext_word_boundary_function_table): New variable.
17879 (next-word-boundary-function-table): Declare it as a Lisp variable
17880 in syms_of_syntax.
17881 (scan_words): Call functions in Vnext_word_boundary_function_table
17882 if any.
17883
17884 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17885
17886 * fontset.c (fs_load_font): If fontp->charset is not negative,
17887 return fontp without setting its members.
17888
178892008-02-01 Dave Love <fx@gnu.org>
17890
17891 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17892
17893 * m/sparc.h (HAVE_ALLOCA): Delete.
17894
17895 * s/irix6-5.h: Don't include strings.h.
17896 (bcopy, bzero, bcmp): Don't undef.
17897
17898 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17899
17900 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17901 (TIOCSIGSEND): Don't test IRIX6.
17902 (bcopy, bzero, bcmp): Define conditionally.
17903
179042008-02-01 Kenichi Handa <handa@m17n.org>
17905
17906 * buffer.c (Qas, Qmake, Qto): New variables.
17907 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17908 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17909
17910 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17911 we are inserting a process output into a multibyte buffer.
17912
17913 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17914 multibyte_char_to_unibyte.
17915
17916 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17917 by the primary charset, make it eight-bit char.
17918 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17919
17920 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17921 (charset_8_bit__control, charset_8_bit_graphic)
17922 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17923 (define_charset_internal): New function.
17924 (syms_of_charset): Call define_charset_internal for pre-defined
17925 charsets.
17926
17927 * charset.h (charset_8_bit): Extern it.
17928
17929 * coding.c (make_conversion_work_buffer): Adjust for the change
17930 of Fset_buffer_multibyte.
17931 (encode_coding_raw_text): Increment p0 in the loop.
17932
17933 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17934
17935 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17936 for the change of Fset_buffer_multibyte.
17937
17938 * fns.c (Fstring_to_multibyte): New function.
17939 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17940
179412008-02-01 Dave Love <fx@gnu.org>
17942
17943 * xfns.c (x_put_x_image): Declare args.
17944
17945 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17946 (try_font_list): Declare an arg.
17947
17948 * xdisp.c (message2_nolog, set_message): Declare an arg.
17949
17950 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17951
17952 * syntax.c (scan_sexps_forward): Declare an arg.
17953
17954 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17955 Declare an arg.
17956
17957 * lisp.h (Fnew_fontset): Declare.
17958
17959 * keymap.c (push_key_description): Call CHARACTERP correctly.
17960
17961 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17962 (face_for_char): Delete unused vars.
17963 (Fset_fontset_font): Doc fix. Delete unused vars.
17964
17965 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17966
17967 * composite.c (update_compositions): Declare arg.
17968
17969 * cm.c (calccost, cmgoto): Declare args.
17970
17971 * charset.c: Remove `emacs' conditional. Doc fixes.
17972 (map_char_table_for_charset): Declare.
17973
17974 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17975
17976 * ccl.c: Remove `emacs' conditional.
17977
179782008-02-01 Kenichi Handa <handa@m17n.org>
17979
17980 The following changes are to allow specifying multiple font
17981 patterns for a character range (specified by script or charset).
17982
17983 * Makefile.in (abbrev.o): Depend on syntax.h.
17984 (xfaces.o): Depend on charset.h.
17985
17986 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17987 SINGLE_BYTE_CHAR_P.
17988
17989 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17990
17991 * character.h (Vchar_script_table): Extern it.
17992
17993 * character.c (Vscript_alist): Delete.
17994 (Vchar_script_table, Qchar_script_table): New variable.
17995 (syms_of_character): Declare Vchar_script_table as a lisp variable
17996 and initialize it.
17997
17998 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17999 have property char-table-extra-slots, make no extra slot.
18000
18001 * dispextern.h (struct face): Delete member `charset'.
18002 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
18003 SINGLE_BYTE_CHAR_P.
18004 (choose_face_font, lookup_non_ascii_face, font_name_registry):
18005 Add prototypes.
18006 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
18007 (generate_ascii_font_name): Rename from generate_ascii_font.
18008
18009 * fontset.h (get_font_repertory_func): New prototype.
18010 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
18011 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
18012
18013 * fontset.c (Qprepend, Qappend): New variables.
18014 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
18015 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
18016 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
18017 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
18018 (fontset_ref_and_range, fontset_add, reorder_font_vector)
18019 (load_font_get_repertory): New functions.
18020 (fontset_set): Delete.
18021 (fontset_face): New arg FACE. Return face ID, not face.
18022 Complete re-write to handle new fontset structure. Change caller.
18023 (free_face_fontset): Use ASET istead of AREF (X) = Y.
18024 (face_for_char): Don't call lookup_face.
18025 (make_fontset_for_ascii_face): New arg FACE.
18026 (fs_load_font): New arg CHARSET_ID. Don't check
18027 Vfont_encoding_alist here.
18028 (find_font_encoding): New function.
18029 (list_fontsets): Use STRINGP, not ! NILP.
18030 (accumulate_script_ranges): New function.
18031 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
18032 re-written to handle new fontset structure.
18033 (Ffontset_font): Return a copy of element.
18034 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
18035 docstring of font-encoding-alist.
18036
18037 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
18038 (Fset_fotset_font): Fix arguments to 5.
18039
18040 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
18041
18042 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
18043 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18044 (highlight_trailing_whitespace): Adjust for the change of
18045 lookup_named_face.
18046
18047 * xfaces.c: Include charset.h.
18048 (load_face_font): Delete argument C. Change caller.
18049 (generate_ascii_font_name): Rename from generate_ascii_font.
18050 (font_name_registry): New function.
18051 (cache_face): Store ascii faces before non-ascii faces in buckets.
18052 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
18053 Lookup only ascii faces.
18054 (lookup_non_ascii_face): New function.
18055 (lookup_named_face): Delete argument C. Change caller.
18056 (lookup_derived_face): Delete argument C. Change caller.
18057 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
18058 a string, just call font_list with it.
18059 (choose_face_font): Delete arguments FACE and C. New arg
18060 FONT_SPEC. Change caller.
18061 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
18062 Change caller.
18063 (realize_non_ascii_face): New function.
18064 (realize_x_face): Call load_face_font here.
18065 (realize_tty_face): Delete argument C. Change caller.
18066 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
18067 get a face ID.
18068 (dump_realized_face): Don't print charset of FACE.
18069
18070 * xfns.c (x_set_font): Always call x_new_fontset and
18071 store_frame_parameter.
18072 (Fx_create_frame): Call x_new_fontset, not x_new_font.
18073 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
18074
18075 * xterm.h (x_get_font_repertory): Extern it.
18076
18077 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
18078 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
18079 it->multibyte_p is zero.
18080 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
18081 (x_new_fontset): If FONTSETNAME doesn't match any existing
18082 fontsets, create a new one.
18083 (x_get_font_repertory): New function.
18084
180852008-02-01 Kenichi Handa <handa@m17n.org>
18086
18087 * coding.c (Ffind_coding_systems_region_internal): Detect an
18088 ASCII only string correctly.
18089
18090 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
18091 version is 0.
18092
180932008-02-01 Kenichi Handa <handa@m17n.org>
18094
18095 * lread.c: Include "coding.h".
18096 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
18097 (load_each_byte, unread_char): New variables.
18098 (readchar_backlog): Delete.
18099 (readchar): Return a character unless load_each_byte is nonzero.
18100 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
18101 cons. If unread_char is not -1, simply return it.
18102 (unreadchar): Handle the case that readcharfun is
18103 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
18104 (read_multibyte): Delete.
18105 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
18106 (read_emacs_mule_char): New functions.
18107 (Fload): Even if the file doesn't have the extension ".elc", if
18108 safe_to_load_p returns a positive version number, assume that the
18109 file contains bytecompiled code. If the version is less than 22,
18110 load the file while decoding multibyte sequences by emacs-mule.
18111 (readevalloop): Don't use readchar_backlog.
18112 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
18113 (Fread_from_string): Pay attention to the case that STREAM is a cons.
18114 (read_escape): Delete the arg BYTEREP.
18115 (read1): Set load_each_byte to 1 temporarily while handling
18116 #@NUMBER. Don't call read_multibyte.
18117 (read_vector): Call Fread with a cons. If readcharfun is
18118 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
18119 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
18120 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
18121 and Qload_force_doc_strings.
18122
181232008-02-01 Kenichi Handa <handa@m17n.org>
18124
18125 * xdisp.c (face_before_or_after_it_pos): Call
18126 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
18127
181282008-02-01 Kenichi Handa <handa@m17n.org>
18129
18130 * character.h (TRAILING_CODE_P): New macro.
18131 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
18132 (string_char_with_unification): Fix prototype.
18133 (Vscript_alist): Extern it.
18134
18135 * character.c (Vscript_alist): New variable.
18136 (string_char_with_unification, str_as_unibyte)
18137 (string_escape_byte8): Add `const' to local variables.
18138 (syms_of_character): Declare script-alist as a Lisp variable.
18139
18140 * charset.h (Vcharset_ordered_list): Extern it.
18141 (charset_ordered_list_tick): Extern it.
18142 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18143 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18144 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18145 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18146 (Funify_charset): Adjust for the change of Funify_charset.
18147
18148 * charset.c (charset_ordered_list_tick): New variable.
18149 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18150 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18151 deunify intead of unify a charset.
18152 (string_xstring_p): Add `const' to local variables.
18153 (find_charsets_in_text): Add `const' to arguments and local variables.
18154 (encode_char): Adjust for the change of Funify_charset. Fix
18155 detecting of invalid code.
18156 (Fset_charset_priority): Increment charset_ordered_list_tick.
18157 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18158 and TO_CODE.
18159
18160 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18161 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18162 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18163 (decode_coding_ccl, consume_chars)
18164 (Ffind_coding_systems_region_internal)
18165 (Fcheck_coding_systems_region): Add `const' to local variables.
18166
18167 * print.c (print_object): Use octal form for printing the
18168 contents of a bool vector.
18169
181702008-02-01 Dave Love <fx@gnu.org>
18171
18172 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18173 <version == 20>: Refuse to load.
18174
181752008-02-01 Dave Love <fx@gnu.org>
18176
18177 * fns.c: Move coding.h.
18178 (Qcodeset, Qdays, Qmonths): New.
18179 (concat): Use CHARACTERP instead of INTEGERP.
18180 (Flocale_codeset): Delete.
18181 (Flanginfo): New function.
18182 (syms_of_fns): Change accordingly.
18183
18184 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18185
181862008-02-01 Dave Love <fx@gnu.org>
18187
18188 * casetab.c (init_casetab_once, init_casetab_once): Fix
18189 CHAR_TABLE_SET call.
18190
18191 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18192
18193 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18194
18195 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18196 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18197 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18198
18199 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18200
18201 * coding.c (ENCODE_DESIGNATION, decode_eol)
18202 (make_conversion_work_buffer, code_conversion_restore)
18203 (Fdefine_coding_system_internal): Convert Lisp types.
18204 (code_conversion_restore): Use EQ, not ==.
18205 (Fencode_coding_string): Fix code_convert_string call.
18206
18207 * coding.h (code_convert_region): Fix prototype.
18208
18209 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18210
18211 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18212 (Ffontset_info): Convert Lisp types.
18213
18214 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18215
18216 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18217
18218 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18219
18220 * chartab.c: Include "...h", not <...h> in some cases.
18221
18222 * callproc.c (Fcall_process): Remove unused variables.
18223
182242008-02-01 Dave Love <fx@gnu.org>
18225
18226 * coding.c (Fset_coding_system_priority): Allow null arg list.
18227
182282008-02-01 Dave Love <fx@gnu.org>
18229
18230 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18231 (Fself_insert_and_exit): Use CHARACTERP.
18232
18233 * callproc.c (Fcall_process): Remove unused vars.
18234
18235 * xterm.c (XTread_socket): Add extra dead keysyms.
18236
18237 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18238
18239 * dispextern.h: Remove prototypes for redraw_frame,
18240 redraw_garbaged_frames.
18241
18242 * cmds.c (Fself_insert_command): Use CHARACTERP.
18243
18244 * chartab.c (make_sub_char_table): Remove unused var.
18245 (Fset_char_table_default, Fmap_char_table): Doc fix.
18246
18247 * keymap.c (access_keymap): Remove generic char code.
18248 (push_key_description): Use CHARACTERP.
18249
182502008-02-01 Dave Love <fx@gnu.org>
18251
18252 * charset.c: Doc fixes.
18253 (Funify_charset): Extra checking.
18254
182552008-02-01 Dave Love <fx@gnu.org>
18256
18257 * lread.c: Remove some unused variables.
18258 (safe_to_load_p): If safe, return the magic number version byte.
18259 (Fload): Maybe use load-with-code-conversion.
18260
182612008-02-01 Kenichi Handa <handa@m17n.org>
18262
18263 * category.c (Fmodify_category_entry): Don't modify the contents
18264 of category_set for characters out of the range. Avoid
18265 unnecessary modification.
18266
18267 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18268 Vchar_unify_table. The default value of the table is now nil.
18269
18270 * character.c (syms_of_character): Setup Vchar_width_table for
18271 eight-bit-control and raw-byte chars.
18272
18273 * charset.h (enum define_charset_arg_index): Delete
18274 charset_arg_parents and add charset_arg_subset and
18275 charset_arg_superset.
18276 (enum charset_attr_index): Delete charset_parents and add
18277 charset_subset and charset_superset.
18278 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18279 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18280 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18281 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18282 (CHARSET_SUPERSET): New macros.
18283 (charset_work): Extern it.
18284 (ENCODE_CHAR): Use charset_work.
18285 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18286 (map_charset_chars): Extern it.
18287
18288 * charset.c (load_charset_map): Set the default value of encoder
18289 and deunifier char-tables to nil.
18290 (map_charset_chars): Change argument. Change callers. Use
18291 map_char_table_for_charset instead of map_char_table.
18292 (Fmap_charset_chars): New optional args from_code and to_code.
18293 (Fdefine_charset_internal): Adjust for the change of
18294 `define-charset' (:parents -> :subset or :superset).
18295 (charset_work): New variable.
18296 (encode_char, syms_of_charset): Adjust for the change of
18297 Fdefine_charset_internal.
18298 (Ffind_charset_string): Setup the vector `charsets' correctly.
18299
18300 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18301 the previous change.
18302 (char_table_ref_and_range): Adjust for the above change.
18303 (map_sub_char_table_for_charset): New function.
18304 (map_char_table_for_charset): New function.
18305
18306 * keymap.c (describe_vector): Handle a char-table directly here.
18307 (describe_char_table): Delete.
18308
18309 * lisp.h (map_charset_chars): Delete.
18310
183112008-02-01 Dave Love <fx@gnu.org>
18312
18313 * fns.c (count_combining): Comment out (unused).
18314 (Flocale_codeset): New.
18315 (syms_of_fns): Defsubr it.
18316
18317 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18318 (size_t): Remove.
18319
183202008-02-01 Dave Love <fx@gnu.org>
18321
18322 * Makefile.in (chartab.o): Depend on charset.h.
18323
183242008-02-01 Kenichi Handa <handa@m17n.org>
18325
18326 * character.c (syms_of_character): Set the default value of
18327 Vprintable_chars to Qnil.
18328
183292008-02-01 Dave Love <fx@gnu.org>
18330
18331 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18332
183332008-02-01 Kenichi Handa <handa@m17n.org>
18334
18335 * charset.c (load_charset_map): Handle the case that from < to
18336 correctly.
18337
18338 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18339 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18340 Pay attention to raw-8-bit chars.
18341
183422008-02-01 Kenichi Handa <handa@m17n.org>
18343
18344 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18345 It is not bytecompiled now.
18346
18347 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18348 (charset_jisx0208): New variables.
18349 (Fdefine_charset_internal): Setup them if appropriate.
18350 (init_charset_once): Initialize them to -1.
18351
18352 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18353 (charset_jisx0208): Extern them.
18354
18355 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18356 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18357 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18358 (setup_iso_safe_charsets): Fix arguments to Fassq.
18359 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18360 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18361 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18362 (encode_coding_iso_2022): Change the 1st arg to
18363 ENCODE_ISO_CHARACTER to a variable.
18364
183652008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * charset.h (enum define_charset_arg_index): New enums
18368 charset_arg_min_code and charset_arg_max_code.
18369 (struct charset): New member char_index_offset.
18370
18371 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18372 Take charset->char_index_offset into account.
18373 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18374 args[charset_arg_max_code]. Setup charset.char_index_offset.
18375 (syms_of_charset): Fix args to Fdefine_charset_internal.
18376
183772008-02-01 Dave Love <fx@gnu.org>
18378
18379 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18380
183812008-02-01 Dave Love <fx@gnu.org>
18382
18383 * coding.c: Doc fixes.
18384 (Fcoding_system_aliases): Fix return value.
18385 (Qmac): Remove (duplicated) definition.
18386
183872008-02-01 Dave Love <fx@gnu.org>
18388
362654a6
JB
18389 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18390 New functions.
aac0c6e3
MR
18391
18392 * character.c (Fstring): Doc fix.
18393
18394 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18395
362654a6 18396 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18397 (font-encoding-alist): Doc fix.
18398
183992008-02-01 Dave Love <fx@gnu.org>
18400
18401 * term.c (costs_set): Declare static, non-initialized for pcc.
18402 (encode_terminal_code): Remove unused var.
18403
18404 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18405 for K&R.
18406
18407 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18408
18409 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18410 (suffixes): Move out of make_subsidiaries for K&R.
18411
18412 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18413
18414 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18415
184162008-02-01 Dave Love <fx@gnu.org>
18417
18418 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18419
18420 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18421
184222008-02-01 Yong Lu <lyongu@asia-infonet.com>
18423
18424 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18425
18426 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18427
184282008-02-01 Kenichi Handa <handa@m17n.org>
18429
18430 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18431 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18432
184332008-02-01 Kenichi Handa <handa@m17n.org>
18434
18435 * coding.c (decode_coding_charset): Adjust for the change of
18436 Fdefine_coding_system_internal.
18437 (Fdefine_coding_system_internal): For a coding system of
18438 `charset' type, store a list of charset IDs in
18439 `charset_attr_charset_valids' element of coding attributes.
18440
184412008-02-01 Kenichi Handa <handa@m17n.org>
18442
18443 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18444 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18445 caller. Handle 2-byte and 3-byte charsets correctly.
18446 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18447 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18448 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18449 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18450 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18451 sequence.
18452 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18453 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18454 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18455 and alt&rule composition.
18456 (decode_coding_iso_2022): Handle composition correctly.
18457 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18458
18459 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18460 re-defining a charset. If the charset has :emacs-mule-id, setup
18461 emacs_mule_bytes.
18462 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18463
184642008-02-01 Kenichi Handa <handa@m17n.org>
18465
18466 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18467 (encode_coding_big5, encode_coding_charset): If coding requires safe
18468 encoding, produce a character specified by
18469 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18470
184712008-02-01 Dave Love <fx@gnu.org>
18472
18473 * xterm.c (XSetIMValues): Declare.
18474
18475 * process.c: Conditionally include sys/wait.h, pty.h.
18476
18477 * print.c (print_object): Fix print format for 64-bit systems.
18478
18479 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18480
18481 * buffer.c (emacs_strerror): Declare.
18482
18483 * fontset.c (Fclear_face_cache): Declare.
18484 (accumulate_font_info): Comment-out (unused).
18485 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18486 variables.
18487
18488 * character.h (string_escape_byte8): Declare.
18489
18490 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18491 unused vars.
18492 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18493 (Fmap_charset_chars): Doc fix.
18494
18495 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18496 (Fset_coding_system_priority, Fset_coding_system_priority)
18497 (Fdefine_coding_system_internal): Doc fix.
18498
184992008-02-01 Dave Love <fx@gnu.org>
18500
18501 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18502
185032008-02-01 Kenichi Handa <handa@m17n.org>
18504
18505 * character.c (string_escape_byte8): Make multibyte string with
18506 correct size.
18507
18508 * charset.c (Fmake_char): Delete unnecessary code.
18509
185102008-02-01 Kenichi Handa <handa@m17n.org>
18511
18512 * xfns.c (x_encode_text): Allocate coding.destination here, and
18513 call encode_coding_object with dst_object Qnil.
18514
18515 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18516 multibyte form correctly.
18517
18518 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18519 against Vfont_encoding_alist.
18520
18521 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18522 handling of charset list.
18523 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18524 (decode_coding_object): Move point to coding->dst_pos before
18525 calling post-read-conversion function.
18526 (encode_coding_object): Give correct arguments to
18527 pre-write-conversion. Ignore the return value of
18528 pre-write-conversion function. Pay attention to the case that
18529 pre-write-conversion changes the current buffer. If dst_object is
18530 Qt, even if coding->src_bytes is zero, allocate at least one byte
18531 to coding->destination.
18532
18533 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18534
18535 * charset.c (Fmake_char): Make it more backward compatible.
18536 (Fmap_charset_chars): Fix docstring.
18537
185382008-02-01 Dave Love <fx@gnu.org>
18539
18540 * coding.c: Doc fixes.
18541 (Fdefine_coding_system_alias): Use names, not symbols, in
18542 coding-system-alist.
18543
185442008-02-01 Kenichi Handa <handa@m17n.org>
18545
18546 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18547 of calling free_realized_face.
18548
185492008-02-01 Yong Lu <lyongu@asia-infonet.com>
18550
18551 * charset.c (read_hex): Don't treat SPC as a comment starter.
18552 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18553 (Fdecode_char): Fix typo.
18554
185552008-02-01 Kenichi Handa <handa@m17n.org>
18556
18557 * charset.h (struct charset): New member `code_space_mask'.
18558
18559 * coding.c (coding_set_source): Delete the local variable beg_byte.
18560 (encode_coding_charset, Fdefine_coding_system_internal):
18561 Delete the local variable charset.
18562 (Fdefine_coding_system_internal): Setup
18563 attrs[coding_attr_charset_valids] correctly.
18564
18565 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18566 member to check if CODE is valid or not.
18567 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18568 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18569 is within the range of charset->min_code and carset->max_code.
18570
185712008-02-01 Dave Love <fx@gnu.org>
18572
18573 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18574
18575 * dispextern.h (generate_ascii_font): Fix return type.
18576
18577 * xfaces.c (generate_ascii_font): Fix arg declaration.
18578
18579 * coding.c (coding_inherit_eol_type)
18580 (Fset_terminal_coding_system_internal)
18581 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18582
185832008-02-01 Kenichi Handa <handa@m17n.org>
18584
18585 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18586 multiple charsets correctly.
18587
185882008-02-01 Kenichi Handa <handa@m17n.org>
18589
18590 * search.c (boyer_moore): Fix handling of multibyte character
18591 translation.
18592
18593 * xdisp.c (display_mode_element): When the variable `elt' is
18594 changed, update `this' and `lisp_string'.
18595
185962008-02-01 Kenichi Handa <handa@m17n.org>
18597
18598 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18599
18600 * callproc.c (Fcall_process): Be sure to give the current buffer
18601 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18602
18603 * charset.c (struct charset_map_entries): New struct.
18604 (load_charset_map): Rename from parse_charset_map. New args
18605 entries and n_entries. Change caller.
18606 (load_charset_map_from_file): Rename from load_charset_map.
18607 Change caller. New arg control_flag. Call load_charset_map at
18608 the tail.
18609 (load_charset_map_from_vector): New function.
18610 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18611 (encode_char): If the charset is compact, change a character index
18612 to a code point.
18613
18614 * coding.c (coding_alloc_by_making_gap): Check the case that the
18615 source and destination are the same correctly.
18616 (decode_coding_raw_text): Set coding->consumed_char and
18617 coding->consumed to 0.
18618 (produce_chars): If coding->chars_at_source is nonzero, update
18619 coding->consumed_char and coding->consumed before calling
18620 alloc_destination.
18621 (Fdefine_coding_system_alias): Register ALIAS in
18622 Vcoding_system_alist.
18623 (syms_of_coding): Define `no-conversion' coding system at the tail.
18624
18625 * fileio.c (Finsert_file_contents): Set coding_system instead of
18626 val. If the current buffer is multibyte, always call
18627 decode_coding_gap.
18628
18629 * xfaces.c (try_font_list): Give higher priority to fontset's
18630 family than face's family.
18631
186322008-02-01 Kenichi Handa <handa@m17n.org>
18633
18634 * callproc.c (Fcall_process): Be sure to give the current buffer
18635 to decode_coding_c_string.
18636
18637 * xfaces.c (try_font_list): Give a family specified in a fontset
18638 higher priority than a family specified in a face.
18639
186402008-02-01 Kenichi Handa <handa@m17n.org>
18641
18642 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18643 Fix arguments to insert_from_buffer.
18644
18645 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18646
186472008-02-01 Kenichi Handa <handa@m17n.org>
18648
18649 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18650 (decode_coding_gap): Set coding->dst_multibyte correctly.
18651
186522008-02-01 Kenichi Handa <handa@m17n.org>
18653
18654 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18655 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18656 (encode_coding_utf_16): Substitute coding->default_char for
18657 non-Unicode characters.
18658 (decode_coding): Don't call record_insert here.
18659 (setup_coding_system): Initialize `surrogate' of
18660 coding->spec.utf_16 to 0.
18661 (EMIT_ONE_BYTE): Fix for multibyte case.
18662
18663 * insdel.c (insert_from_gap): Call record_insert.
18664
186652008-02-01 Kenichi Handa <handa@m17n.org>
18666
18667 * casefiddle.c (casify_region): Fix multibyte case.
18668
18669 * character.c (c_string_width): Add return type `int'.
18670 (char_string_with_unification): Delete arg ADVANCED.
18671
18672 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18673 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18674 (CHAR_STRING_ADVANCE): Make it do-while statement.
18675
18676 * chartab.c (sub_char_table_set_range): Optimize for the case
18677 DEPTH == 3. Add workaround code for a GCC optimization bug.
18678
18679 * charset.c (parse_charset_map): Remove an unused variable.
18680
18681 * coding.c: Delete unused variables.
18682
18683 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18684 earlier. If inserted is zero and the coding system doesn't
18685 require flushing, don't call decode_coding_gap.
18686
18687 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18688
186892008-02-01 Kenichi Handa <handa@m17n.org>
18690
18691 The following changes are for using Unicode as an internal
18692 character model, and use UTF-8 format for buffer/string
18693 representation.
18694
18695 * .gdbinit (xchartable): Adjust for the change of char table structure.
18696 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18697
18698 * Makefile.in (obj): Add character.o and chartab.o.
18699 (lisp, shortlisp): Remove utf-8.elc.
18700 (*.o): For many files, change dependency on charset.h to
18701 character.h, and add dependency on character.h.
18702 (character.o, chartab.o): New targets.
18703
18704 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18705 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18706 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18707 of "charset.h".
18708
18709 * dired.c, filelock.c: Include "character.h".
18710
18711 * alloc.c: Include "character.h" instead of "charset.h".
18712 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18713 (syms_of_alloc): Remove defsubr for Smake_char_table.
18714
18715 * buffer.c: Include "character.h" instead of "charset.h", don't
18716 include "coding.h".
18717 (Fset_buffer_multibyte): Adjust for UTF-8.
18718
18719 * buffer.h: EXFUN Fbuffer_live_p.
18720
18721 * callproc.c: Include "character.h" instead of "charset.h".
18722 (Fcall_process): Big change for the new code-conversion APIs.
18723
18724 * casetab.c: Include "character.h" instead of "charset.h".
18725 (set_canon, set_identity, shuffle): Adjust for the new
18726 map_char_table spec.
18727 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18728 accessing the char table structure.
18729
18730 * chartab.c: New file that implements char table.
18731
18732 * category.c: Include "character.h".
18733 (copy_category_entry): New function.
18734 (copy_category_table): Call map_char_table and copy_category_entry.
18735 (Fmake_category_table): Initialize all top-level slots.
18736 (char_category_set): New function.
18737 (modify_lower_category_set): Delete.
18738 (Fmodify_category_entry): Call char_table_ref_and_range.
18739
18740 * category.h (CATEGORY_SET): Just call char_category_set.
18741
18742 * ccl.c: Include "character.h".
18743 (Qccl, Qcclp): New variables.
18744 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18745 it's less than 256.
18746 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18747 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18748 and DST type.
18749 (ccl_driver): Change types of argument, adjust code accordingly.
18750 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18751 ccl_driver.
18752 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18753
18754 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18755 New members src_multibyte, dst_multibyte, consumed, and produced.
18756 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18757 (CODING_SPEC_CCL_PROGRAM): New macro.
18758 (ccl_driver): Update prototype.
18759 (Qccl, Qcclp, Fccl_program_p): Extern them.
18760 (CHECK_CCL_PROGRAM): New macro.
18761
18762 * character.c, character.h, chartab.c: New files.
18763
18764 * charset.c: Mostly re-written. Move character and multibyte sequence
18765 handling codes to character.c.
18766
18767 * charset.h: Mostly re-written. Move character and multibyte sequence
18768 handling codes to character.h.
18769
18770 * coding.c, coding.h: Mostly re-written.
18771
18772 * composite.c: Include "character.h" instead of "charset.h".
18773 (CHAR_WIDTH): Move to character.h.
18774 (HASH_KEY, HASH_VALUE): Delete.
18775
18776 * composite.h (enum composition_method): Change order of enumeration
18777 symbols.
18778
18779 * data.c: Include "character.h" instead of "charset.h".
18780 (Faref): Call CHAR_TABLE_REF for a char table.
18781 (Faset): Call CHAR_TABLE_SET for a char table.
18782
18783 * dispextern.h (free_realized_face, check_face_attribytes)
18784 (generate_ascii_font): Extern them.
18785 (free_realized_multibyte_face): Delete extern.
18786
18787 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18788 table structure.
18789
18790 * editfns.c: Include "character.h" instead of "charset.h".
18791 (Fchar_to_string): Always call CHAR_STRING.
18792
18793 * emacs.c (main): Call init_charset_once, init_charset,
18794 syms_of_chartab, and syms_of_character.
18795
18796 * fileio.c: Include "character.h" instead of "charset.h".
18797 (Finsert_file_contents): Big change for the new code-conversion API.
18798 (choose_write_coding_system, Fwrite_region): Likewise.
18799 (build_annotations_2): Delete.
18800 (e_write): Big change for the new code-conversion API.
18801
18802 * fns.c: Include "character.h" instead of "charset.h".
18803 (copy_sub_char_table): Move to chartab.c.
18804 (Fcopy_sequence): Call copy_char_table for a char table.
18805 (concat): Delete codes calling count_multibyte.
18806 (string_char_to_byte, string_byte_to_char): Adjust for the new
18807 multibyte form.
18808 (internal_equal): Adjust for the change of char table structure.
18809 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18810 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18811 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18812 (char_table_translate, optimize_sub_char_table)
18813 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18814 chartab.c.
18815 (char_table_ref_and_index): Delete.
18816 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18817 (Fmd5): Call preferred_coding_system instead of accessing
18818 Vcoding_category_list. Adjust for the new code-conversion API.
18819 (syms_of_fns): Move defsubr for char table related functions to
18820 chartab.c.
18821
18822 * fontset.c: Mostly re-written.
18823
18824 * fontset.h (struct font_info): Change type of the member encoding_type.
18825 (enum FONT_SPEC_INDEX): New enum.
18826 (fontset_font_pattern, fs_load_font): Update prototype.
18827 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18828
18829 * indent.c: Include "character.h" instead of "charset.h".
18830 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18831
18832 * insdel.c: Include "character.h" instead of "charset.h".
18833 (copy_text): Don't refer to Vnonascii_translation_table.
18834 (insert_from_gap): New function.
18835
18836 * keyboard.c: Include "character.h" instead of "charset.h".
18837 (command_loop_1): Never call direct_output_forward_char before
18838 a non-ASCII character.
18839 (read_char): If Vkeyboard_translate_table is a char table, always
18840 translate a character.
18841
18842 * keymap.c: Include "character.h".
18843 (store_in_keymap): Handle the case that IDX is a cons.
18844 (Fdefine_key): Handle the case that KEY is a cons and the car part
18845 is also a cons (range).
18846 (push_key_description): Adjust for the new character code.
18847 (describe_vector): Call describe_char_table for a char table.
18848 (describe_char_table): New function.
18849
18850 * keymap.h (describe_char_table): Extern it.
18851
18852 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18853 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18854 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18855 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18856 Delete.
18857 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18858 structure.
18859 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18860 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18861 (CHARTAB_SIZE_BITS_3): New macros.
18862 (chartab_size): Extern it.
18863 (struct Lisp_Char_Table): Re-design.
18864 (struct Lisp_Sub_Char_Table): New structure.
18865 (HASH_KEY, HASH_VALUE): Move from fns.c.
18866 (CHARACTERBITS): Define as 22.
18867 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18868 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18869 (GC_SUB_CHAR_TABLE_P): New macro.
18870 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18871 (code_convert_string_norecord): Deleted extern.
18872 (init_character_once, syms_of_character, init_charset)
18873 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18874
18875 * lread.c: Include "character.h".
18876 (read_multibyte): New arg NBYTES.
18877 (read_escape): Change the meaning of returned *BYTEREP.
18878 (to_multibyte): Delete.
18879 (read1): Adjust the handling of char table and string.
18880
18881 * print.c: Include "character.h" instead of "charset.h".
18882 (print_string): Convert 8-bit raw bytes to octal form by
18883 string_escape_byte8.
18884 (print_object): Adjust for the new multibyte form. Print 8-bit
18885 raw bytes always in octal form. Handle sub char table correctly.
18886
18887 * process.c: Include "character.h" instead of "charset.h".
18888 (read_process_output, send_process): Adjust for the new
18889 code-conversion API.
18890
18891 * puresize.h (BASE_PURESIZE): Increase.
18892
18893 * regex.c: Include "character.h" instead of "charset.h".
18894 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18895 (regex_compile): Accept a range whose starting and ending
18896 character have different leading bytes.
18897 (analyse_first): Adjust for the above change.
18898
18899 * search.c: Include "character.h" instead of "charset.h".
18900 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18901 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18902
18903 * syntax.c: Include "character.h" instead of "charset.h".
18904 (syntax_parent_lookup): Delete.
18905 (Fmodify_syntax_entry): Accept a cons as CHAR.
18906 (skip_chars): Adjust for the new multibyte form.
18907 (init_syntax_once): Call char_table_set_range instead of directly
18908 accessing the structure of a char table.
18909
18910 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18911 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18912 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18913 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18914
18915 * term.c: Include "buffer.h" and "character.h".
18916 (encode_terminal_code, write_glyphs): Adjust for the new
18917 code-conversion API.
18918 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18919
18920 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18921
18922 * xdisp.c: Include "character.h".
18923 (get_next_display_element): Adjust for the new multibyte form.
18924 (disp_char_vector): Adjust for the new char table structure.
18925 (decode_mode_spec_coding): Adjust for the new structure of
18926 coding system.
18927 (decode_mode_spec): Adjust for the new code-conversion API.
18928
18929 * xfaces.c: Include "character.h" instead of "charset.h".
18930 (load_face_font): Adjust for the change of choose_face_font and
18931 FS_LOAD_FONT.
18932 (generate_ascii_font): New function.
18933 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18934 (set_font_frame_param): Adjust for the change of choose_face_font.
18935 (free_realized_face): Make it public.
18936 (free_realized_faces_for_fontset): Rename from
18937 free_realized_multibyte_face. Free also faces realized for ASCII.
18938 (choose_face_font): Change arguments. Adjust for the change of
18939 fontset_font_pattern and FS_LOAD_FONT.
18940
18941 * xfns.c: Include "character.h".
18942 (x_encode_text): Adjust for the new code-conversion API.
18943
18944 * xselect.c: Don't include "charset.h".
18945 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18946
18947 * xterm.c: Include "character.h".
18948 (x_encode_char): New argument CHARSET. Change caller.
18949 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18950 Call ENCODE_CHAR instead of SPLIT_CHAR.
18951 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18952 CHAR_WIDTH instead of CHARSET_WIDTH.
18953 (XTread_socket): Adjust for the new code-conversion API.
18954 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18955 (x_load_font): Adjust for the change of struct font.
18956
189572008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18958
18959 * xfaces.c (face_at_buffer_position): Remove unused vars.
18960
189612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18962
18963 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18964 Fix overflow checking.
18965
189662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18967
18968 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18969 Cancel previous change.
18970
189712008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18972
18973 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18974 ccl->eight_bit_control. Fix check for buffer overflow.
18975 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18976 (ccl_driver): Initialize extra_bytes to 0.
18977
189782008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18979
18980 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18981 return it ORed with ctrl_modifier.
18982
189832008-01-29 Miles Bader <miles@gnu.org>
18984
18985 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18986
189872008-01-28 Jason Rumney <jasonr@gnu.org>
18988
18989 * w32.c (stat): Don't double check for networked drive.
18990
189912008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18992
18993 * window.c (run_window_configuration_change_hook): New function.
18994 Code extracted from set_window_buffer. Set the selected frame.
18995 (set_window_buffer): Use it.
18996 * window.h (run_window_configuration_change_hook): Declare.
18997 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18998
18999 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
19000
190012008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
19002
19003 * Makefile.in: Remove references to unused macros.
19004
190052008-01-26 Eli Zaretskii <eliz@gnu.org>
19006
19007 * w32.c (g_b_init_get_sid_sub_authority)
19008 (g_b_init_get_sid_sub_authority_count): New static variables.
19009 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
19010 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
19011 (init_user_info): Use them to retrieve uid and gid.
19012 Use 500/513, the Windows defaults, as Administrator's uid/gid.
19013 (fstat): Use pw_uid and pw_gid from the_passwd structure for
19014 st_uid and st_gid of the file.
19015
190162008-01-26 Jason Rumney <jasonr@gnu.org>
19017
19018 * w32.c (logon_network_drive): New function.
19019 (stat): Use it.
19020
190212008-01-26 Chong Yidong <cyd@stupidchicken.com>
19022
19023 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
19024 invisible text covered with an ellipsis.
19025
190262008-01-25 Richard Stallman <rms@gnu.org>
19027
19028 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
19029 jump back to beginning. Move some other initializations after that.
19030 (Qwindow_text_change_functions, Vwindow_text_change_functions):
19031 New variables.
19032 (syms_of_xdisp): Init them.
19033
19034 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
19035
19036 * buffer.c (reset_buffer_local_variables):
19037 Implement `permanent-local-hook'.
19038 (Qpermanent_local_hook): New variable.
19039 (syms_of_buffer): Init and staticpro it.
19040
190412008-01-25 Michael Albinus <michael.albinus@gmx.de>
19042
19043 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
19044
190452008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
19046
19047 * fns.c (Fclrhash): Return TABLE.
19048
190492008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19050
19051 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
19052 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
19053 is set even without positional changes.
19054 (x_scroll_bar_clear): Set bar->redraw_needed_p.
19055
19056 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
19057
190582008-01-23 Jason Rumney <jasonr@gnu.org>
19059
19060 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
19061
19062 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
19063 the unicode range available in MULE by locale-coding-system.
19064 Improve dbcs lead byte detection. Set event timestamp and modifiers
19065 earlier.
19066
190672008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19068
19069 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
19070 [MAC_OSX] (init_mac_osx_environment): Initialize it.
19071 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
19072 when used on child processes.
19073
190742008-01-21 Michael Albinus <michael.albinus@gmx.de>
19075
19076 * dbusbind.c (Fdbus_method_return_internal): Rename from
19077 Fdbus_method_return.
19078 (Fdbus_unregister_object): Move to dbus.el.
19079 (Fdbus_call_method, Fdbus_method_return_internal)
19080 (Fdbus_send_signal): Improve debug messages.
19081
190822008-01-20 Martin Rudalics <rudalics@gmx.at>
19083
19084 * undo.c (undo_inhibit_record_point): New variable.
19085 (syms_of_undo): Initialize it.
19086 (record_point): Don't record point when undo_inhibit_record_point
19087 is set.
19088
190892008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
19090
19091 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
19092
19093 * xdisp.c (Qauto_hscroll_mode): New var.
19094 (syms_of_xdisp): Initialize it.
19095 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
19096 window's buffer.
19097 (hscroll_windows): Don't check automatic_hscrolling_p here.
19098
19099 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
19100 vscroll if we're setting window-buffer to the value it already has.
19101
191022008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
19103
19104 * m/intel386.h: Remove references to XENIX.
19105
191062008-01-17 Andreas Schwab <schwab@suse.de>
19107
19108 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
19109 instead of HAVE_X86_64_LIB64_DIR.
19110 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
19111
191122008-01-17 Glenn Morris <rgm@gnu.org>
19113
19114 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
19115 to HAVE_X86_64_LIB64_DIR.
19116
191172008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
19118
19119 * s/irix3-3.h:
19120 * s/irix4-0.h:
19121 * s/386-ix.h:
19122 * s/domain.h:
19123 * s/hpux9-x11r4.h:
19124 * s/hpux9shxr4.h: Remove files for systems no longer supported.
19125
19126 * sysdep.c: Remove code containing references to symbols defined
19127 by unsupported systems.
19128
191292008-01-16 Glenn Morris <rgm@gnu.org>
19130
19131 * coding.c (select-safe-coding-system-function): Doc fix.
19132
191332008-01-15 Glenn Morris <rgm@gnu.org>
19134
19135 * config.in: Revert 2008-01-13 change: this is a generated file.
19136
191372008-01-13 Tom Tromey <tromey@redhat.com>
19138
19139 * lisp.h: Fix typo.
19140
191412008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19142
19143 * m/sequent-ptx.h:
19144 * m/sequent.h:
19145 * s/ptx.h:
19146 * s/ptx4-2.h:
19147 * s/ptx4.h: Remove files for systems no longer supported.
19148
19149 * callproc.c (Fcall_process): Fix previous change.
19150
191512008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19152
19153 * unexsunos4.c: Remove file, system not supported anymore.
19154
19155 * m/mips.h:
19156 * m/intel386.h:
19157 * callproc.c:
19158 * config.in:
19159 * ecrt0.c:
19160 * emacs.c:
19161 * fileio.c:
19162 * frame.c:
19163 * getpagesize.h:
19164 * keyboard.c:
19165 * lread.c:
19166 * process.c:
19167 * puresize.h:
19168 * sysdep.c:
19169 * systty.h:
19170 * syswait.h:
19171 * unexec.c:
19172 * xdisp.c:
19173 * alloc.c: Remove code containing references to symbols defined by
19174 unsupported systems.
19175
191762008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19177
19178 * coding.c (detect_coding_mask): Fix previous change.
19179
191802008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19181
19182 * coding.c (detect_coding_iso2022): New arg
19183 latin_extra_code_state. Allow Latin extra codes only
19184 when *latin_extra_code_state is nonzero.
19185 (detect_coding_mask): If there is a NULL byte, detect the encoding
19186 as UTF-16 or binary. If Latin extra codes exist, detect the
19187 encoding as ISO-2022 only when there's no other proper encoding is
19188 found.
19189
191902008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19191
19192 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19193 #ifdef MAC_OS.
19194
191952008-01-08 Richard Stallman <rms@gnu.org>
19196
19197 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19198
191992008-01-06 Nick Roberts <nickrob@snap.net.nz>
19200
19201 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19202 menu bar in parentheses.
19203
192042008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19205
19206 * m/7300.h:
19207 * m/acorn.h:
19208 * m/alliant-2800.h:
19209 * m/alliant.h:
19210 * m/alliant1.h:
19211 * m/alliant4.h:
19212 * m/altos.h:
19213 * m/amdahl.h:
19214 * m/apollo.h:
19215 * m/att3b.h:
19216 * m/aviion-intel.h:
19217 * m/aviion.h:
19218 * m/celerity.h:
19219 * m/clipper.h:
19220 * m/cnvrgnt.h:
19221 * m/convex.h:
19222 * m/cydra5.h:
19223 * m/delta88k.h:
19224 * m/dpx2.h:
19225 * m/dual.h:
19226 * m/elxsi.h:
19227 * m/f301.h:
19228 * m/gould-np1.h:
19229 * m/gould.h:
19230 * m/i860.h:
19231 * m/ibmps2-aix.h:
19232 * m/ibmrt-aix.h:
19233 * m/ibmrt.h:
19234 * m/irist.h:
19235 * m/is386.h:
19236 * m/isi-ov.h:
19237 * m/mega68.h:
19238 * m/mg1.h:
19239 * m/news-r6.h:
19240 * m/news-risc.h:
19241 * m/news.h:
19242 * m/nh3000.h:
19243 * m/nh4000.h:
19244 * m/ns16000.h:
19245 * m/ns32000.h:
19246 * m/nu.h:
19247 * m/orion.h:
19248 * m/orion105.h:
19249 * m/paragon.h:
19250 * m/pfa50.h:
19251 * m/plexus.h:
19252 * m/pyramid.h:
19253 * m/pyrmips.h:
19254 * m/sh3el.h:
19255 * m/sps7.h:
19256 * m/sr2k.h:
19257 * m/stride.h:
19258 * m/sun1.h:
19259 * m/sun2.h:
19260 * m/sun3-68881.h:
19261 * m/sun3-fpa.h:
19262 * m/sun3-soft.h:
19263 * m/sun3.h:
19264 * m/sun386.h:
19265 * m/symmetry.h:
19266 * m/tad68k.h:
19267 * m/tahoe.h:
19268 * m/targon31.h:
19269 * m/tek4300.h:
19270 * m/tekxd88.h:
19271 * m/tower32.h:
19272 * m/tower32v3.h:
19273 * m/ustation.h:
19274 * m/wicat.h:
19275 * m/xps100.h:
19276 * s/cxux.h:
19277 * s/cxux7.h:
19278 * s/dgux.h:
19279 * s/dgux4.h:
19280 * s/dgux5-4-3.h:
19281 * s/dgux5-4r2.h:
19282 * s/esix.h:
19283 * s/esix5r4.h:
19284 * s/hiuxmpp.h:
19285 * s/hiuxwe2.h:
19286 * s/iris3-5.h:
19287 * s/iris3-6.h:
19288 * s/isc2-2.h:
19289 * s/isc3-0.h:
19290 * s/isc4-0.h:
19291 * s/isc4-1.h:
19292 * s/newsos5.h:
19293 * s/newsos6.h:
19294 * s/osf1.h:
19295 * s/osf5-0.h:
19296 * s/riscix1-1.h:
19297 * s/riscix12.h:
19298 * s/sco4.h:
19299 * s/sco5.h:
19300 * s/sunos4-0.h:
19301 * s/sunos4-1.h:
19302 * s/sunos413.h:
19303 * s/sunos4shr.h:
19304 * s/umax.h:
19305 * s/unipl5-2.h:
19306 * s/xenix.h:
19307 * cxux-crt0.s:
19308 * unexapollo.c:
19309 * unexconvex.c:
19310 * unexenix.c:
19311 * unexsni.c: Remove files for systems no longer supported.
19312
19313 * m/intel386.h: Remove references to unsupported systems.
19314
19315 * w32.c (get_emacs_configuration): Remove reference to i860.
19316
19317 * sysdep.c: Remove dead code.
19318
193192008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19320
19321 * s/rtu.h:
19322 * m/masscomp.h: Remove files. Platform is obsolete.
19323
193242008-01-04 Michael Albinus <michael.albinus@gmx.de>
19325
19326 * dbusbind.c (Fdbus_method_return): New function.
19327 (xd_read_message): Add the serial number to the event.
19328 (Fdbus_register_method): Activate the function.
19329
193302008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19331
19332 * keyboard.c (read_key_sequence): Fix typo.
19333
193342008-01-03 Michael Albinus <michael.albinus@gmx.de>
19335
19336 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19337 (xd_signature, xd_append_arg): Handle element type detection for
19338 empty arrays.
19339 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19340 SDATA () calls; this must be solved more general.
19341 (Fdbus_register_signal): Use SBYTES instead of strlen.
19342
193432008-01-03 Magnus Henoch <magnus@zemdatav>
19344
19345 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19346 unsigned int for byte values (necessary for big-endian platform).
19347 (Fdbus_call_method): Handle the case of no returned arguments.
19348
193492007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19350
19351 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19352
193532007-12-31 Magnus Henoch <mange@freemail.hu>
19354
19355 * dbusbind.c (xd_signature): Signature of variant is just "v".
19356
193572007-12-30 Michael Albinus <michael.albinus@gmx.de>
19358
19359 * dbusbind.c: Fix several errors and compiler warnings.
19360 Reported by Tom Tromey <tromey@redhat.com>.
19361 (XD_ERROR, XD_DEBUG_MESSAGE)
19362 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19363 (xd_append_arg): Part for basic D-Bus types rewritten.
19364 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19365 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19366 appropriate.
19367 (xd_read_message): Return Qnil. Don't signal an error; it is not
19368 useful during event reading.
19369 (Fdbus_register_signal): Signal an error if the check for
19370 FUNCTIONP fails.
19371 (Fdbus_register_method): New function. The implementation is not
19372 complete, the call of the function signals an error therefore.
19373 (Fdbus_unregister_object): New function, renamed from
19374 Fdbus_unregister_signal. The initial check signals an error, if
19375 the object is not well formed.
19376
193772007-12-30 Richard Stallman <rms@gnu.org>
19378
19379 * textprop.c (get_char_property_and_overlay):
19380 Signal error if POSITION is out of range in a buffer.
19381
193822007-12-29 Martin Rudalics <rudalics@gmx.at>
19383
19384 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19385 because the original parameters are in pure storage now.
19386
193872007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19388
19389 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19390
193912007-12-22 Eli Zaretskii <eliz@gnu.org>
19392
19393 * callint.c (syms_of_callint) <command-history>: Add reference to
19394 history-length in the doc string.
19395
193962007-12-17 Jason Rumney <jasonr@gnu.org>
19397
19398 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19399 before passing as wParam.
19400
194012007-12-22 Michael Albinus <michael.albinus@gmx.de>
19402
19403 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19404 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19405 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19406 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19407 as number.
19408 (Fdbus_call_method): Fix docstring.
19409
194102007-12-21 Michael Albinus <michael.albinus@gmx.de>
19411
19412 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19413 New macros.
19414 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19415 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19416 Simplify.
19417 (xd_signature): New function.
19418 (xd_append_arg): Compute also signatures. Major rewrite.
19419 (xd_retrieve_arg): Make debug messages friendly.
19420 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19421 Check for signatures of arguments.
19422
194232007-12-19 Michael Albinus <michael.albinus@gmx.de>
19424
19425 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19426 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19427 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19428 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19429 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19430 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19431 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19432 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19433 (xd_retrieve_value): Remove. Functionality included in ...
19434 (xd_append_arg): New function.
19435 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19436
194372007-12-16 Michael Albinus <michael.albinus@gmx.de>
19438
19439 * dbusbind.c (top): Include <stdio.h>.
19440 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19441 dbus_message_new_method_call and dbus_message_new_signal.
19442 (Fdbus_register_signal): Rename unique_name to uname.
19443 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19444 non-existing unique name. Fix typos in matching rule. Return an
19445 object which is useful in Fdbus_unregister_signal.
19446 (Fdbus_unregister_signal): Reimplementation, in order to remove
19447 only the corresponding entry.
19448 (Vdbus_registered_functions_table): Change the order of entries.
19449 Apply these changes in xd_read_message and Fdbus_register_signal.
19450
194512007-12-16 Andreas Schwab <schwab@suse.de>
19452
19453 * fileio.c (Finsert_file_contents): Fix overflow check to not
19454 depend on undefined integer overflow.
19455
194562007-12-14 Jason Rumney <jasonr@gnu.org>
19457
19458 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19459 for characters above 127.
19460
194612007-12-13 Jason Rumney <jasonr@gnu.org>
19462
19463 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19464 before dereferencing array.
19465 (lookup_vk_code): Remove zero comparison.
19466
194672007-12-14 Michael Albinus <michael.albinus@gmx.de>
19468
19469 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19470 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19471 Use `unsigned int' instead of `uint'.
19472 (xd_read_message, Fdbus_register_signal): Split expressions into
19473 multiple lines before operators "&&" and "||", according to the
19474 GNU Coding Standards.
19475
194762007-12-14 Eli Zaretskii <eliz@gnu.org>
19477
19478 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19479
194802007-12-12 Juri Linkov <juri@jurta.org>
19481
19482 * buffer.c (Frename_buffer): In interactive spec replace
19483 `read-buffer' with `read-string' that uses `buffer-name-history'
19484 as history, and the current buffer's name as default.
19485
194862007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19487
19488 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19489 manipulating the backtrace manually.
19490 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19491 (struct backtrace, backtrace_list): Remove.
19492 (command_loop_1): Remove dead var `no_direct'.
19493
19494 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19495 preserve non-built-in buffer-local variables.
19496 (Fkill_all_local_variables): Don't re-create&re-set permanent
19497 buffer-local variables.
19498
194992007-12-09 Juri Linkov <juri@jurta.org>
19500
19501 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19502 Lisp code that uses `read-buffer' with current buffer as default.
19503
195042007-12-08 Michael Albinus <michael.albinus@gmx.de>
19505
19506 * dbusbind.c (xd_read_message): Generate an event for every
19507 registered handler. There might be several handlers registered
19508 for the same signal.
19509 (Fdbus_register_signal): Don't overwrite a registration for the
19510 same signal. Add a new registration if handlers are different.
19511 (Vdbus_registered_functions_table): Rework doc string.
19512
195132007-12-07 Michael Albinus <michael.albinus@gmx.de>
19514
19515 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19516 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19517 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19518 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19519 Unify argument lists.
19520 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19521 arguments and hash table keys. Use unique name for service.
19522 (Fdbus_unregister_signal): Remove checks.
19523 (Vdbus_registered_functions_table): Fix doc string.
19524
195252007-12-05 Magnus Henoch <mange@freemail.hu>
19526
19527 * process.c (make_process): Initialize pty_flag to 0.
19528
195292007-12-05 Jason Rumney <jasonr@gnu.org>
19530
19531 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19532 specified XBMs.
19533
195342007-12-05 Richard Stallman <rms@gnu.org>
19535
19536 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19537
195382007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19539
19540 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19541 New variable.
19542 (mac_try_close_socket) [MAC_OSX]: New function.
19543 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19544 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19545
19546 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19547 Use mac_try_close_socket.
19548
195492007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19550
19551 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19552 reloc_base.
19553 (copy_dysymtab): Compute relocation base here.
19554 (rebase_reloc_address) [__ppc64__]: New function.
19555 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19556 changed.
19557
195582007-12-05 Jason Rumney <jasonr@gnu.org>
19559
19560 * w32proc.c (sys_spawnve): Quote args with wildcards.
19561
195622007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19563
19564 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19565 __objc_* sections.
19566 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19567
195682007-12-05 Michael Albinus <michael.albinus@gmx.de>
19569
19570 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19571 Move check for Vdbus_registered_functions_table to
19572 xd_read_queued_messages.
19573 (xd_read_queued_messages): Protect xd_read_message calls by
19574 internal_condition_case_1.
19575
195762007-12-04 Michael Albinus <michael.albinus@gmx.de>
19577
19578 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19579 Qdbus_system_bus and Qdbus_session_bus, respectively.
19580 (Vdbus_intern_symbols): Remove.
19581 (Vdbus_registered_functions_table): New hash table.
19582 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19583 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19584 Rewrite in order to manage registered functions by hash table
19585 Vdbus_registered_functions_table.
19586
195872007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19588
19589 * xterm.c: Update URL to Window Manager Specification in comment.
19590
195912007-12-02 Michael Albinus <michael.albinus@gmx.de>
19592
19593 * config.in (HAVE_DBUS): Add.
19594
19595 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19596 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19597 (obj): Add $(DBUS_OBJ).
19598 (LIBES): Add $(DBUS_LIBS).
19599 (dbusbind.o): New target.
19600
19601 * dbusbind.c: New file.
19602
19603 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19604
19605 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19606 (Qdbus_event): New Lisp symbol.
19607 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19608 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19609 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19610
19611 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19612
196132007-12-01 Richard Stallman <rms@gnu.org>
19614
19615 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19616
196172007-11-30 Jason Rumney <jasonr@gnu.org>
19618
19619 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19620 (w32con_reset_terminal_modes): Clear screen buffer.
19621 (w32_face_attributes): Don't use color indexes that are out of range.
19622 Only reverse the default colors.
19623
19624 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19625 WINDOWSNT.
19626
19627 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19628
196292007-11-29 Jason Rumney <jasonr@gnu.org>
19630
19631 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19632 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19633 if the terminal colors are initialized.
19634 (unspecified_fg, unspecified_bg): Remove unused declarations.
19635
196362007-11-29 Andreas Schwab <schwab@suse.de>
19637
19638 * keyboard.c (apply_modifiers): Fix typo.
19639
196402007-11-29 Richard Stallman <rms@gnu.org>
19641
19642 * keymap.c (Fcurrent_local_map): Doc fix.
19643
196442007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19645
19646 * s/gnu-kfreebsd.h: New file.
19647
196482007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19649
19650 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19651 Don't cast redundantly.
19652
19653 * keyboard.c (KEY_TO_CHAR): New macro.
19654 (parse_modifiers, apply_modifiers): Accept integer arguments.
19655 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19656 for chars and symbol keys.
19657 After doing such remapping, apply function-key-map again.
19658
196592007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19660
19661 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19662 compiled anymore.
19663
196642007-11-26 Andreas Schwab <schwab@suse.de>
19665
19666 * process.c (list_processes_1): Fix indentation level of the
19667 command column.
19668
196692007-11-23 Andreas Schwab <schwab@suse.de>
19670
19671 * editfns.c (Fformat): Handle %c specially since it requires the
19672 argument to be of type int.
19673
196742007-11-23 Markus Triska <markus.triska@gmx.at>
19675
19676 * emacs.c (main): Call init_editfns before init_process, since
19677 init_process sets Vprocess_connection_type depending on OS release.
19678
196792007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19680
19681 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19682 (find_symbol_value): Use do_symval_forwarding.
19683
19684 * data.c (set_internal): Set the value in the `cons-cell' (for
19685 Buffer_Local_values) not only for frame-local variables.
19686
196872007-11-22 Andreas Schwab <schwab@suse.de>
19688
19689 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19690 values to sprintf.
19691 * keymap.c (Fsingle_key_description): Likewise.
19692 * print.c (print_object): Likewise.
19693
196942007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19695
19696 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19697 file for image is nil.
19698
196992007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19700
19701 * term.c: Include stdarg.h.
19702 (fatal): Implement using varargs.
19703 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19704
197052007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19706
19707 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19708 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19709 Update call to buffer_slot_type_mismatch.
19710 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19711 (buffer_slot_type_mismatch): Update.
19712 * buffer.c (buffer_local_types): Remove.
19713 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19714 (defvar_per_buffer): Set the type in the buffer_objfwd.
19715
197162007-11-21 Jason Rumney <jasonr@gnu.org>
19717
19718 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19719 CreateFileMapping returns NULL on failure.
19720
197212007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19722
19723 * search.c (Fset_match_data): Remove the `evaporate' feature.
19724 (unwind_set_match_data): Don't use the `evaporate' feature.
19725
197262007-11-21 Jason Rumney <jasonr@gnu.org>
19727
19728 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19729
19730 * w32console.c (w32con_write_glyphs): Remove unused variables.
19731
197322007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19733
19734 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19735
19736 * s/darwin.h (MULTI_KBOARD): Remove.
19737
19738 * macfns.c (x_create_tip_frame, Fx_create_frame)
19739 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19740
197412007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19742
19743 * buffer.c (Fbuffer_local_value): Remove redundant test.
19744 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19745 than in `current-buffer' to match the comment.
19746 Do the swap using swap_in_global_binding.
19747
19748 * data.c (store_symval_forwarding, set_internal):
19749 * eval.c (specbind): Remove dead code.
19750
19751 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19752 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19753 Since we do not want to see internal Lisp_*fwd objects here.
19754
197552007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19756
19757 * sysdep.c (init_system_name): Use getaddrinfo if available.
19758
19759 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19760 (x_scroll_bar_note_movement): start, end, with, height in struct
19761 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19762
197632007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19764
19765 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19766
197672007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19768
19769 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19770 This undoes Richard's change of 14-Oct-2002.
19771
19772 * alloc.c (allocate_other_vector):
19773 * lisp.h (allocate_other_vector): Remove.
19774
19775 * window.c (struct save_window_data): Move non-lisp data to the end
19776 and make it `int' rather than Lisp_Object.
19777 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19778 Done wrap/unwrap integer values.
19779 (Fset_window_configuration, compare_window_configurations):
19780 Update use of fields to their new types.
19781
19782 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19783 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19784 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19785 (SET_SCROLL_BAR_X_WINDOW): Remove.
19786 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19787 Access the new x_window field directly.
19788 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19789 Don't wrap/unwrap integers into Lisp_Objects.
19790 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19791 (x_scroll_bar_report_motion):
19792 Don't wrap/unwrap integers into Lisp_Objects.
19793 (x_term_init): Use SDATA.
19794 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19795 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19796 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19797 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19798 * xfns.c (x_set_background_color):
19799 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19800 Access the new x_window field directly.
19801
19802 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19803 (allocate_pseudovector): Make non-static.
19804
19805 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19806 (allocate_pseudovector): Declare.
19807 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19808
198092007-11-15 Andreas Schwab <schwab@suse.de>
19810
19811 * editfns.c (Fformat): Correctly format EMACS_INT values.
19812 Also take precision into account when formatting an integer.
19813
19814 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19815
198162007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19817
19818 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19819 (syms_of_keyboard): Defsubr it.
19820
19821 * data.c (swap_in_global_binding): Fix longstanding bug where
19822 store_symval_forwarding was not called with the right second argument,
19823 thus causing objfwd-ing from being dropped.
19824
198252007-11-14 Juanma Barranquero <lekktu@gmail.com>
19826
19827 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19828 (Fx_display_pixel_height, Fx_display_planes)
19829 (Fx_display_color_cells, Fx_server_max_request_size)
19830 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19831 (Fx_display_visual_class, Fx_display_save_under):
19832 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19833 (Fx_display_pixel_height, Fx_display_planes)
19834 (Fx_display_color_cells, Fx_server_max_request_size)
19835 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19836 (Fx_display_mm_height, Fx_display_mm_width)
19837 (Fx_display_backing_store, Fx_display_visual_class)
19838 (Fw32_select_font, Fx_display_save_under):
19839 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19840 (Fx_display_pixel_height, Fx_display_planes)
19841 (Fx_display_color_cells, Fx_server_max_request_size)
19842 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19843 (Fx_display_save_under): Fix typos in docstrings.
19844
198452007-11-14 Juanma Barranquero <lekktu@gmail.com>
19846
19847 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19848 corresponding to deleted entries; they are an implementation detail.
19849 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19850 Remove variables.
19851 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19852 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19853 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19854 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19855 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19856 (Fw32_define_rgb_color, Fw32_load_color_file)
19857 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19858 Fix typos in docstrings.
19859 (Fx_server_version): Reflow docstring.
19860 (Fw32_shell_execute): Doc fixes.
19861
198622007-11-13 Juanma Barranquero <lekktu@gmail.com>
19863
19864 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19865 if w32_parse_hot_key returned nil.
19866
198672007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19868
19869 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19870
198712007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19872
aac0c6e3
MR
19873 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19874
19875 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19876
19877 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19878 Remove W32_SCROLL_BAR_CLICK_EVENT.
19879
19880 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19881 Add MULTIMEDIA_KEY_EVENT.
19882
19883 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19884 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19885 (make_lispy_event) [WINDOWSNT]: Use it to translate
19886 MULTIMEDIA_KEY_EVENT.
19887
19888 * w32term.h (WM_APPCOMMAND): Define if not already.
19889 (GET_APPCOMMAND_LPARAM): Likewise.
19890
19891 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19892 WM_APPCOMMAND.
19893
19894 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19895 (syms_of_w32fns): Export and initialize it.
19896 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19897
198982007-11-09 Chong Yidong <cyd@stupidchicken.com>
19899
19900 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19901 twice.
19902
19903 * xdisp.c (handle_face_prop): Fix last change.
19904
199052007-11-09 Richard Stallman <rms@gnu.org>
19906
19907 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19908 not just for after-strings and before-strings.
19909 Call face_for_overlay_string and pass the overlay to it.
19910 (handle_display_prop): Determine whether property came from an overlay.
19911 Pass OVERLAY arg to handle_single_display_spec.
19912 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19913 (load_overlay_strings): Fill in it->string_overlays.
19914 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19915
19916 * xfaces.c (face_for_overlay_string): Function renamed from
19917 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19918
19919 * dispextern.h (struct it): New elt string_overlays.
19920 New elt from_overlay, also in stack.
19921 Rearrange a few elements.
19922 (face_for_overlay_string): Decl renamed from
19923 face_at_buffer_position_no_overlays, and add argument.
19924
199252007-11-09 Richard Stallman <rms@gnu.org>
19926
19927 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19928 to get the base face for an overlay string.
19929
19930 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19931
19932 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19933
19934 * xdisp.c (handle_stop): Move some code out of loop.
19935
199362007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19937
19938 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19939 Fix conversion from Lisp object to ATSUFontID.
19940
199412007-11-09 Jason Rumney <jasonr@gnu.org>
19942
19943 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19944
199452007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19946
19947 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19948 Don't assume regions are aligned to page boundary.
19949 (print_load_command_name): Add LC_UUID if defined.
19950
199512007-11-09 Richard Stallman <rms@gnu.org>
19952
19953 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19954
199552007-11-07 Jason Rumney <jasonr@gnu.org>
19956
19957 * s/windows95.h: Remove.
19958
199592007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19960
19961 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19962 abort with a message on unhandled store_type values.
19963
199642007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19965
19966 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19967 Remove HAVE_X11R5 and HAVE_X11R4.
19968
199692007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19970
19971 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19972
199732007-11-01 Johan Bockgård <bojohan@gnu.org>
19974
19975 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19976 Don't set s->stippled_p here, since it has already been set by
19977 x_set_glyph_string_gc from x_draw_glyph_string.
19978
199792007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19980
19981 * sunfns.c: Remove file.
19982
19983 * m/sun386.h:
19984 * m/sun2.h:
19985 * m/sparc.h: Remove Sun windows code.
19986
199872007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19988
19989 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19990 (init_keyboard): Set current_kboard's window-system to nil.
19991 (tty_read_avail_input): Typo.
19992 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19993
199942007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19995
19996 * s/usg5-4.h:
19997 * s/usg5-3.h:
19998 * s/ptx.h:
19999 * m/is386.h:
20000 * m/ibmps2-aix.h:
20001 * Makefile.in: Remove all mentions of X10.
20002
20003 * dispnew.c (syms_of_display): Don't mention version 10.
20004
200052007-10-28 Juanma Barranquero <lekktu@gmail.com>
20006
20007 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
20008 ($(BLD)/abbrev.$(O)): Remove.
20009
200102007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
20011
20012 Rewrite abbrev.c in Elisp.
20013 * image.c (Qcount): Don't declare as extern.
20014 (syms_of_image): Initialize and staticpro `Qcount'.
20015 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
20016 * emacs.c (main): Don't call syms_of_abbrev.
20017 * Makefile.in (obj): Remove abbrev.o.
20018 (abbrev.o): Remove.
20019 * abbrev.c: Remove.
20020
200212007-10-26 Martin Rudalics <rudalics@gmx.at>
20022
20023 * window.c (window_min_size_2): Don't count header-line.
20024
200252007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
20026
20027 * frame.h (struct frame): Move all bit fields after the first bit
20028 field to take advantage of the available space. Group all the
20029 chars together to reduce wasted space due to padding.
20030
200312007-10-26 Juanma Barranquero <lekktu@gmail.com>
20032
20033 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
20034
20035 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
20036 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
20037 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
20038 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
20039 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
20040 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
20041 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
20042 (last_marked, mark_object_loop_halt): Make static.
20043
20044 * frame.c (syms_of_frame) <delete-frame-functions>:
20045 Fix typo in docstring.
20046
200472007-10-25 Juanma Barranquero <lekktu@gmail.com>
20048
20049 * w32.c (init_environment): Fix tiny memory leak.
20050 (w32_get_resource): Remove unused variable `ok'.
20051
200522007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
20053
20054 Make `window-system' into a keyboard-local variable (rather than
20055 frame-local as done originally by multi-tty).
20056
20057 * keyboard.h (struct kboard): Add Vwindow_system.
20058 * keyboard.c (init_kboard): Set a default for Vwindow_system.
20059 (mark_kboards): Mark Vwindow_system.
20060
20061 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
20062 (init_display): Don't set the obsolete `window-system' frame-param.
20063
20064 * xterm.c (x_term_init):
20065 * w32term.c (w32_create_terminal):
20066 * term.c (init_tty): Set Vwindow_system.
20067 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
20068 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
20069
20070 * xfns.c (Fx_create_frame, x_create_tip_frame):
20071 * w32fns.c (Fx_create_frame, x_create_tip_frame):
20072 * macfns.c (Fx_create_frame):
20073 Don't set the obsolete `window-system' frame-param.
20074
20075 * frame.h (Qwindow_system): Remove.
20076 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
20077 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
20078
200792007-10-24 Richard Stallman <rms@gnu.org>
20080
20081 * frame.c (x_figure_window_size): For fullscreen case,
20082 set USPosition | PPosition without clobbering rest of window_prompting.
20083
20084 * keyboard.c (Fcurrent_idle_time): Doc fix.
20085
20086 * print.c (Fwith_output_to_temp_buffer): Doc fix.
20087
200882007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
20089
20090 * process.c (unwind_request_sigio): Only define if __ultrix__.
20091
20092 * callproc.c (child_setup): Remove spurious *.
20093
20094 * lisp.h (Fget_text_property): Declare.
20095 (have_menus_p): Declare it here rather than in sys-dep header files.
20096 * macterm.h (have_menus_p):
20097 * msdos.h (have_menus_p):
20098 * xterm.h (have_menus_p): Remove.
20099
20100 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20101 (Fmake_variable_frame_local): Just check the variable's const-ness
20102 rather than checking nil or t.
20103
201042007-10-22 Jason Rumney <jasonr@gnu.org>
20105
20106 * w32fns.c: Include math.h.
20107 (w32_abort): Declaration moved to nt/config.nt.
20108
20109 * s/ms-w32.h (HAVE_STDLIB_H): Define.
20110 (abort): Redefinition moved to nt/config.nt.
20111
20112 * m/windowsnt.h: Remove.
20113
201142007-10-22 Juanma Barranquero <lekktu@gmail.com>
20115
20116 * emacs.c (Fdump_emacs): Fix typo in message.
20117 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
20118 <installation-directory>: Reflow docstring.
20119
201202007-10-22 Juri Linkov <juri@jurta.org>
20121
20122 * minibuf.c: Allow minibuffer default to be a list of default values.
20123 With empty input use the first element of this list as returned default.
20124 (string_to_object)
20125 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
20126 (read_minibuf): If defalt is cons, set histstring to its car.
20127 (Fread_string): If default_value is cons, set val to its car.
20128 (Fread_buffer): If def is cons, use its car.
20129 (Fcompleting_read): If defalt is cons, set val to its car.
20130
201312007-10-21 Michael Albinus <michael.albinus@gmx.de>
20132
20133 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20134
201352007-10-20 Juanma Barranquero <lekktu@gmail.com>
20136
20137 * doc.c (Fdocumentation): Check for advice in all cases.
20138
201392007-10-19 Chong Yidong <cyd@stupidchicken.com>
20140
20141 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20142
201432007-10-19 Richard Stallman <rms@gnu.org>
20144
20145 * doc.c (Fdocumentation): Check for and handle an advised function.
20146
201472007-10-19 Juanma Barranquero <lekktu@gmail.com>
20148
20149 * process.c (Fset_process_filter): Doc fix.
20150
201512007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20152
20153 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20154 which caused key-translation-map to applied repeatedly (thus breaking
20155 double-mode).
20156
201572007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20158
20159 * xselect.c (x_own_selection, x_handle_selection_clear)
20160 (x_clear_frame_selections):
20161 * w32menu.c (list_of_panes, list_of_items):
20162 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20163 * textprop.c (validate_plist, interval_has_all_properties)
20164 (interval_has_some_properties, interval_has_some_properties_list)
20165 (add_properties, text_property_list):
20166 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20167 * minibuf.c (Fassoc_string):
20168 * macselect.c (x_own_selection, x_clear_frame_selections)
20169 (Fx_disown_selection_internal):
20170 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20171 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20172
201732007-10-17 Chong Yidong <cyd@stupidchicken.com>
20174
20175 * process.c: Link to libs for calling res_init() if available.
20176 (Fmake_network_process): Call res_init() before getaddrinfo or
20177 gethostbyname, if possible.
20178
201792007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20180
20181 * lread.c (read1): Set pvectype for char_tables.
20182
20183 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20184 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20185 Add type checks.
20186 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20187
20188 * alloc.c (free_misc): Use XMISCTYPE.
20189 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20190
201912007-10-17 Glenn Morris <rgm@gnu.org>
20192
20193 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20194 (syms_of_minibuf): Add Qcompletion_ignore_case.
20195 * dired.c (Qcompletion_ignore_case): Change to external.
20196 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20197 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20198 (Fread_file_name): Use it rather than intern'ing.
20199
20200 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20201 (Fread_coding_system): Ignore case of user input.
20202
202032007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20204
20205 * xdisp.c (handle_display_prop): Ignore display specs after
20206 replacing one when string text is being replaced.
20207 (handle_single_display_spec): Pretend as if characters with display
20208 property haven't been consumed only when buffer text is being replaced.
20209
202102007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20211
20212 * xfns.c (Fx_create_frame, Fx_display_list):
20213 * window.c (window_fixed_size_p, enlarge_window)
20214 (shrink_window_lowest_first):
20215 * macterm.c (init_font_name_table):
20216 * macfns.c (Fx_create_frame, Fx_display_list):
20217 * lread.c (close_load_descs):
20218 * keyboard.c (read_char_x_menu_prompt):
20219 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20220 * coding.c (code_convert_region_unwind): Test the type of an object
20221 rather than just !NILP before extracting data from it.
20222
20223 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20224
20225 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20226 (XMISCANY): New macro.
20227 (XMISCTYPE): Use it.
20228 (struct Lisp_Misc_Any): New type.
20229 (union Lisp_Misc): Use it.
20230 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20231 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20232 (find_symbol_value, set_internal, default_value, Fset_default)
20233 (Fmake_variable_buffer_local, Fmake_local_variable)
20234 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20235 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20236 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20237 * alloc.c (allocate_buffer): Set the size and tag.
20238 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20239 Use XMISCANY.
20240 (die): Follow the GNU convention for error messages.
20241 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20242 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20243 tag any more.
20244 (set_buffer_internal_1):
20245 * frame.c (store_frame_param):
20246 * eval.c (specbind):
20247 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20248
20249 * doc.c (Fsnarf_documentation): Simplify.
20250
202512007-10-14 Juanma Barranquero <lekktu@gmail.com>
20252
20253 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20254 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20255
202562007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20257
20258 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20259
202602007-10-14 Juanma Barranquero <lekktu@gmail.com>
20261
20262 * eval.c (do_autoload): Don't save autoloads.
20263
20264 * data.c (Ffset): Save autoload of the function being set.
20265
202662007-10-07 John Paul Wallington <jpw@pobox.com>
20267
20268 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20269 parameter before setting up faces.
20270
202712007-10-13 Eli Zaretskii <eliz@gnu.org>
20272
20273 * ccl.c (Fregister_code_conversion_map):
20274 * keyboard.c (append_tool_bar_item): Reformat last change.
20275
20276 * lisp.h (eabs): Rename from `abs'. All callers changed.
20277
202782007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20279
20280 * buffer.c (add_overlay_mod_hooklist):
20281 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20282 * fontset.c (make_fontset):
20283 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20284 (append_tool_bar_item):
20285 * macmenu.c (grow_menu_items):
20286 * w32menu.c (grow_menu_items):
20287 * xmenu.c (grow_menu_items): Use larger_vector.
20288
202892007-10-13 Eli Zaretskii <eliz@gnu.org>
20290
20291 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20292 selected frame'' on MSDOS).
20293
202942007-10-12 Martin Rudalics <rudalics@gmx.at>
20295
20296 * frame.c (Qexplicit_name): New variable.
20297 (x_report_frame_params): Report it in parameter alist.
20298 (syms_of_frame): Intern and staticpro it.
20299
203002007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20301
20302 * macfns.c (x_create_tip_frame): Set terminal for frame.
20303
203042007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20305
20306 * frame.c (Qenvironment): Remove.
20307 (syms_of_frame) <Qenvironment>: Don't initialize.
20308 (Fdelete_frame): Don't treat the `environment' param specially.
20309 * frame.h (Qenvironment): Don't declare.
20310 * callproc.c (set_initial_environment): Don't set unused frame param.
20311
20312 * frame.c (Fframe_with_environment): Remove.
20313 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20314
20315 * lisp.h (Fframe_with_environment): Don't declare.
20316
203172007-10-10 Juanma Barranquero <lekktu@gmail.com>
20318
20319 * indent.c (indent_tabs_mode, last_known_column)
20320 (last_known_column_modified): Make static.
20321 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20322
203232007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20324
20325 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20326
203272007-10-09 Jason Rumney <jasonr@gnu.org>
20328
20329 * w32term.c (x_set_window_size): Disable code that attempts to tell
20330 Lisp code about a size change before it actually happens.
20331
203322007-10-09 Richard Stallman <rms@gnu.org>
20333
20334 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20335 return HANDLED_RETURN.
20336
203372007-10-08 Martin Rudalics <rudalics@gmx.at>
20338
20339 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20340 when there's an unread command event.
20341
20342 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20343 window autoselection act appropriately when leaving selected frame.
20344 (syms_of_frame): Initialize focus_follows_mouse.
20345 * frame.h (focus_follows_mouse): Extern it.
20346 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20347 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20348 * msdos.c (dos_rawgetc): Likewise.
20349 * w32term.c (w32_read_socket): Likewise.
20350 * xterm.c (handle_one_xevent): Likewise.
20351 * xdisp.c (syms_of_xdisp): In doc-string of
20352 mouse-autoselect-window mention focus-follows-mouse.
20353
203542007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20355
20356 * macterm.c (mac_load_query_font): Fix missing return value.
20357 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20358 Add BLOCK_INPUT.
20359
203602007-10-08 Richard Stallman <rms@gnu.org>
20361
20362 * xdisp.c (get_window_cursor_type): Implement documented behavior
20363 for cursor-in-non-selected-windows = t.
20364
203652007-10-08 Jason Rumney <jasonr@gnu.org>
20366
20367 * w32.c (w32_get_resource): Always close registry keys.
20368
203692007-10-08 Jason Rumney <jasonr@gnu.org>
20370
20371 * makefile.w32-in (LIBS): Add COMCTL32.
20372
20373 * w32fns.c (globals_of_w32fns): Init common controls.
20374
203752007-10-08 Richard Stallman <rms@gnu.org>
20376
20377 * image.c (our_memory_buffer): Rename from omfib_buffer.
20378
203792007-10-08 Richard Stallman <rms@gnu.org>
20380
20381 * buffer.c (Foverlays_at): Doc fix.
20382
203832007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20384
20385 * fns.c (Fplist_put): Preserve uneven tail data.
20386
203872007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20388
20389 * termhooks.h (enum event_kind): Remove trailing comma.
20390
20391 * frame.h (enum): Remove trailing comma.
20392
203932007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20394
20395 * w32proc.c (delete_child): Don't terminate threads of zombies.
20396
203972007-10-08 Martin Rudalics <rudalics@gmx.at>
20398
20399 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20400
20401 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20402 last-repeatable-command.
20403 (init_kboard): Initialize Vlast_repeatable_command.
20404 (command_loop_1): Set it to real_this_command unless that was
20405 bound to an input event.
20406 (mark_kboards): Mark it.
20407
204082007-10-08 Richard Stallman <rms@gnu.org>
20409
20410 * eval.c (condition-case): Doc fix.
20411
204122007-10-08 Masatake YAMATO <jet@gyve.org>
20413
20414 * xfaces.c (tty_supports_face_attributes_p): Fix code
20415 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20416 was copied and not edited.
20417
204182007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20419
20420 Add new `input-decode-map' keymap and use it for terminal
20421 escape sequences.
20422 * keyboard.h (struct kboard): Add Vinput_decode_map.
20423 Remove Vlocal_key_translation_map.
20424 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20425 (init_kboard): Init input-decode-map.
20426 Replace local-key-translation-map back with key-translation-map.
20427 (syms_of_keyboard): Declare input-decode-map.
20428 Remove local-key-translation-map. Update docstrings.
20429 (mark_kboards): Mark Vinput_decode_map.
20430 Don't mark Vlocal_key_translation_map.
20431 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20432 Replace local-key-translation-map back with key-translation-map.
20433 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20434 Bind in input-decode-map rather than function-key-map.
20435
20436 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20437 This was made redundant by the previous introduction of XSETPVECTYPE.
20438
204392007-10-09 Richard Stallman <rms@gnu.org>
20440
20441 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20442
204432007-09-29 Richard Stallman <rms@gnu.org>
20444
20445 * eval.c (internal_condition_case_2, internal_condition_case_1)
20446 (internal_condition_case): Reenable abort if x_catching_errors ()
20447 to see if that really happens and why.
20448
204492007-10-06 Andreas Schwab <schwab@suse.de>
20450
20451 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20452
204532007-10-04 Juanma Barranquero <lekktu@gmail.com>
20454
20455 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20456
204572007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20458
20459 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20460
204612007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20462
20463 * window.h (struct window):
20464 * window.c (struct save_window_data, struct saved_window):
20465 * termhooks.h (struct terminal):
20466 * process.h (struct Lisp_Process):
20467 * frame.h (struct frame):
20468 * buffer.h (struct buffer):
20469 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20470 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20471 The size field of (pseudo)vectors is now unsigned.
20472 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20473
20474 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20475 Turn `count' into an integer.
20476
20477 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20478 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20479 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20480 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20481 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20482
20483 * alloc.c (allocate_pseudovector): New fun.
20484 (ALLOCATE_PSEUDOVECTOR): New macro.
20485 (allocate_window, allocate_terminal, allocate_frame)
20486 (allocate_process): Use it.
20487 (mark_vectorlike): New function.
20488 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20489 (mark_terminals): Use it.
20490 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20491 (Fmake_byte_code): Use XSETPVECTYPE.
20492
20493 * frame.c (Fframe_parameters): Minor simplification.
20494
20495 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20496
20497 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20498
20499 * buffer.c (Fget_buffer_create, init_buffer_once):
20500 * lread.c (defsubr):
20501 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20502
20503 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20504 defined differently in the m/*.h files.
20505 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20506 (XSETPVECTYPE): New macro.
20507 (XSETPSEUDOVECTOR): Use it.
20508
20509 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20510 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20511
20512 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20513 * lread.c (defvar_per_buffer):
20514 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20515
20516 * window.c (candidate_window_p): Only consider as visible frames that
20517 are on the same terminal.
20518
20519 * m/ibms390x.h (MARKBIT): Remove unused macro.
20520
205212007-10-01 Juanma Barranquero <lekktu@gmail.com>
20522
20523 * lread.c (Fload): Fix typo in docstring.
20524
205252007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20526
20527 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20528 of a non-zero value can't yield zero.
20529
205302007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20531
20532 * term.c (term_clear_mouse_face, term_mouse_highlight)
20533 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20534
20535 * print.c (safe_debug_print): Use XHASH.
20536
20537 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20538 Lisp elements such as tags.
20539 (XHASH): New macro.
20540 (EQ): Use it.
20541 (SREF, SSET, STRING_COPYIN): Use SDATA.
20542 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20543
20544 * alloc.c (mark_terminal): Remove left-over declaration.
20545 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20546 (allocate_vectorlike): Remove type argument. Adjust callers.
20547 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20548 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20549
20550 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20551 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20552 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20553 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20554 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20555 Use them.
20556
20557 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20558 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20559 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20560
205612007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20562
20563 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20564 loaded by default.
20565
205662007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20567
20568 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20569 on this tty.
20570 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20571
20572 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20573 Update all users.
20574 (handle_one_term_event): Use Gpm_DrawPointer.
20575 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20576 Signal errors instead of returning nil. Always return nil.
20577 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20578 Make it a noop if gpm-mouse was not activated.
20579 (syms_of_term): Update names.
20580
205812007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20582
20583 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20584 (init_sys_modes): Check that gpm_tty is the current tty.
20585
20586 * alloc.c (allocate_terminal): Set the vector size to only count the
20587 lisp fields. Initialize those to nil.
20588 (mark_object): Don't treat terminals specially.
20589 (mark_terminal): Remove.
20590 (mark_terminals): Use mark_object instead.
20591
20592 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20593 the GC to the beginning.
20594
20595 * indent.h:
20596 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20597
20598 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20599
206002007-09-25 Jason Rumney <jasonr@gnu.org>
20601
20602 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20603
20604 * w32console.c (create_w32cons_output): Remove.
20605
20606 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20607
20608 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20609 (reset_sys_modes): Use reset_terminal_modes_hook.
20610
206112007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20612
20613 * eval.c (do_autoload): Don't output any message.
20614
206152007-09-24 Juri Linkov <juri@jurta.org>
20616
20617 * emacs.c (standard_args): Change priority of "--no-splash"
20618 from 40 to 3. Add "--no-desktop" with the same priority.
20619
206202007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20621
20622 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20623 and optimize the case where they are all 1.
20624
206252007-09-23 Johannes Weiner <hannes@saeurebad.de>
20626
20627 * lisp.h (abs): Define if not defined.
20628 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20629 Don't define `abs', since it's defined in lisp.h.
20630
206312007-09-22 Eli Zaretskii <eliz@gnu.org>
20632
20633 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20634 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20635 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20636 (init_tty): Use DEV_TTY instead of "/dev/tty".
20637 [WINDOWSNT]: No need to protect from NAME arg being null.
20638
206392007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20640
20641 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20642 up the tty state.
20643
206442007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20645
20646 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20647 (gpm_tty): Change its type.
20648 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20649 (gpm_tty): Change its type and initialize it.
20650 (Fterm_open_connection): Check the frame is indeed a tty.
20651 Use the new gpm_tty.
20652 (Fterm_close_connection): Use the new gpm_tty.
20653 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20654 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20655
206562007-09-21 Juanma Barranquero <lekktu@gmail.com>
20657
20658 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20659 underline_color, to draw strike-through.
20660
206612007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20662
20663 * lisp.h (allocate_terminal): Declare.
20664
20665 * window.c (candidate_window_p): Consider frames that are being placed
20666 by the user as somewhere between visible and iconified.
20667 (window_loop): Prefer windows on the current frame.
20668 (Fselect_window): Move the use of select-frame to the beginning so we
20669 can just delegate all the work (it'll call us back anyway).
20670
20671 * frame.c (Qdisplay_environment_variable):
20672 * frame.h (Qdisplay_environment_variable): Delete.
20673
20674 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20675 of the first arg, since that value may be a union.
20676
20677 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20678 parameter rather than Qdisplay_environment_variable. If all else
20679 fails, look for DISPLAY in initial-environment.
20680
206812007-09-21 Glenn Morris <rgm@gnu.org>
20682
20683 * Makefile.in (emacstool): Remove target.
20684 (lisp, shortlisp): Remove termdev.elc.
20685
206862007-09-21 Markus Triska <markus.triska@gmx.at>
20687
20688 * xterm.c (x_delete_display): Compile session management conditionally.
20689
206902007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20691
20692 * callproc.c (getenv_internal_1): New function.
20693 (getenv_internal): Use it.
20694 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20695
20696 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20697 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20698 (Fset_terminal_parameter): Work with dead terminals as well.
20699 (Fmodify_terminal_parameters): Remove.
20700
20701 * terminal.c (get_terminal): Handle terminals.
20702 Make sure the terminal returned is live.
20703 (create_terminal): Use allocate_terminal.
20704 (mark_terminals): Move to alloc.c.
20705 (delete_terminal): Use terminal->name as liveness status.
20706 NULL out fields after freeing their contents.
20707 Don't deallocate the object.
20708 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20709 rather than an int.
20710 (Fterminal_live_p): Accept non-integer arguments.
20711 (Fterminal_list): Return terminal objects rather than an ints.
20712
20713 * alloc.c (enum mem_type): New member for `terminal' objects.
20714 (allocate_terminal): New function.
20715 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20716 Handle terminals.
20717 (mark_terminal): New fun.
20718 (mark_terminals): Move from terminal.c.
20719
20720 * term.c (get_tty_terminal): Don't treat output_initial specially.
20721 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20722 (delete_tty): Use terminal->name as liveness status.
20723
20724 * termhooks.h (struct terminal): Make it into a pseudovector.
20725 Remove `deleted' replaced by checking `name's nullness.
20726
20727 * print.c (print_object): Handle terminals.
20728
20729 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20730 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20731
20732 * frame.c (make_terminal_frame):
20733 * keyboard.c (tty_read_avail_input):
20734 * w32term.c (x_delete_terminal):
20735 * xfns.c (Fx_create_frame, x_create_tip_frame):
20736 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20737
207382007-09-20 Glenn Morris <rgm@gnu.org>
20739
20740 * process.c (Fmake_network_process): Doc fix.
20741
207422007-09-19 Jason Rumney <jasonr@gnu.org>
20743
20744 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20745
207462007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20747
20748 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20749 Fix a C warning regarding variable constness.
20750
20751 * xterm.c (handle_one_xevent): Fix a C warning.
20752
207532007-09-18 Jason Rumney <jasonr@gnu.org>
20754
20755 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20756
207572007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20758
20759 * gtkutil.c (gdpy_def): New variable.
20760 (xg_initialize): Initialize gdpy_def.
20761 (xg_display_close): If no other display exists, set gdpy_def to a
20762 new connection.
20763
207642007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20765
20766 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20767 when we have no file name for the icon.
20768 (xg_tool_bar_expose_callback): Remove.
20769 (xg_create_tool_bar): Don't connect expose signal to
20770 xg_tool_bar_expose_callback.
20771 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20772
207732007-09-16 Andreas Schwab <schwab@suse.de>
20774
20775 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20776 values instead of zapping them.
20777
207782007-09-14 Glenn Morris <rgm@gnu.org>
20779
20780 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20781 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20782 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20783 scope and rename to omfib_buffer for clarity.
20784 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20785
207862007-09-14 Kenichi Handa <handa@m17n.org>
20787
20788 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20789
207902007-09-13 Jason Rumney <jasonr@gnu.org>
20791
20792 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20793
20794 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20795
20796 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20797 (mac_term_init): Call here instead, passing rif.
20798
207992007-09-13 Glenn Morris <rgm@gnu.org>
20800
20801 * s/hpux.h: No longer define `static' as nothing.
20802
208032007-09-13 Johan Bockgård <bojohan@gnu.org>
20804
20805 * callint.c (Fcall_interactively): Remove unused var `fun'.
20806
208072007-09-12 Romain Francoise <romain@orebokech.com>
20808
20809 * window.c (prefer_window_split_horizontally, display_buffer):
20810 Revert 2007-09-08 change.
20811
208122007-09-12 Glenn Morris <rgm@gnu.org>
20813
20814 * alloca.c: Remove file.
20815 * Makefile.in (alloca): Do not undef.
20816 (allocaobj, alloca.o): Remove.
20817 (otherobj): Remove allocaobj.
20818 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20819 * regex.c (C_ALLOCA): Remove all references and code that was only
20820 used when this was defined.
20821 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20822 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20823 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20824
20825 * Makefile.in (SOURCES, unlock, relock): Delete.
20826
20827 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20828 (menu_grab_callback): All uses changed.
20829
20830 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20831 (x_reply_selection_request): All uses changed.
20832
208332007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20834
20835 * lread.c (load_warn_old_style_backquotes): Change message to look
20836 better when it appears in the middle of byte-compiler messages.
20837
208382007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20839
20840 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20841
20842 * xterm.c (x_create_terminal): Add comment.
20843
20844 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20845
208462007-09-10 Richard Stallman <rms@gnu.org>
20847
20848 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20849
208502007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20851
20852 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20853 (DEFUN): Document `intspec', use it instead of `prompt'.
20854
20855 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20856
20857 * data.c (Finteractive_form): If the interactive specification starts
20858 with a `(', use it as a Lisp form.
20859
20860 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20861 name and file modes.
20862
20863 * callint.c (Fcall_interactively): Comment fixes.
20864
208652007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20866
20867 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20868 and compiled functions.
20869
208702007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20871
20872 * window.c (prefer_window_split_horizontally): New variable.
20873 (display_buffer): Consider splitting window horizontally depending
20874 on prefer_window_split_horizontally.
20875
208762007-09-08 Eli Zaretskii <eliz@gnu.org>
20877
20878 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20879
208802007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20881
20882 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20883
20884 * frame.c (x_set_frame_parameters): Check number is positive before
20885 using XFASTINT.
20886
20887 * window.c (freeze_window_start): Don't presume selected_window holds
20888 a window object.
20889 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20890
208912007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20892
20893 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20894
208952007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20896
20897 * window.c (Vsplit_window_preferred_function): New var.
20898 (Fdisplay_buffer): Use it.
20899 (syms_of_window): Export, and initialize it.
20900
209012007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20902
20903 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20904
209052007-09-06 Glenn Morris <rgm@gnu.org>
20906
20907 * gtkutil.c (menu_grab_callback) <cnt>:
20908 * xselect.c (x_reply_selection_request) <cnt>: Move static
20909 variable to file scope.
20910
209112007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20912
20913 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20914 consistent values of selected_frame and selected_window.
20915
209162007-09-04 Jason Rumney <jasonr@gnu.org>
20917
20918 * w32console.c (initialize_w32_display): Zero unused hooks.
20919
209202007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20921
20922 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20923 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20924
209252007-09-04 Jason Rumney <jasonr@gnu.org>
20926
20927 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20928 in w32console.c. Set up input. Remove XXX comments that have been
20929 confirmed as correct.
20930
20931 * s/ms-w32.h (MULTI_KBOARD): Define.
20932
20933 * w32console.c (one_and_only_w32cons): Remove.
20934 (initialize_w32_display): Take terminal argument.
20935
20936 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20937 initialize_w32_display.
20938 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20939
20940 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20941
20942 * keyboard.c (discard_mouse_events): Discard it.
20943 (make_lispy_event): Translate it to a lisp event.
20944 (lispy_wheel_names): Add wheel-left and right events.
20945 (syms_of_keyboard): Enlarge wheel_syms.
20946
20947 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20948 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20949
20950 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20951
20952 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20953 from WM_MOUSEHWHEEL.
20954 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20955
20956 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20957 terminal.
20958
20959 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20960 keyboard for the terminal.
20961
209622007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20963
20964 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20965 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20966 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20967 and resume-tty-function to resume-tty-hook.
20968 (Fsuspend_tty, Fresume_tty): Use new names.
20969
209702007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20971
20972 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20973 if it starts with "n:".
20974
209752007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20976
20977 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20978
209792007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20980
20981 * frame.h:
20982 * frame.c (Qterm_environment_variable): Remove.
20983 (syms_of_frame): Don't init and staticpro it.
20984
20985 * callproc.c (getenv_internal): Remove special case for $TERM.
20986
20987 * callproc.c (Vinitial_environment): New variable.
20988 (set_initial_environment): Initialize it.
20989 (syms_of_callproc): Declare it.
20990 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20991 TERM under which a process runs is never related to the TERM in which
20992 Emacs is running.
20993
209942007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20995
20996 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20997 * s/darwin.h: ... do it here.
20998
209992007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
21000
21001 * lisp.h (set_initial_environment): Rename from set_global_environment.
21002
21003 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
21004 removed by mistake on the multi-tty branch.
21005
21006 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
21007 (Fmodify_frame_parameters): Return a value.
21008
21009 * image.c (png_load): Comment-out var only used in commented-out code.
21010
21011 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
21012 before passing it to mark_object.
21013
21014 * xfaces.c (internal_resolve_face_name): Return a value.
21015 (internal_resolve_face_name, resolve_face_name_error): Comment out.
21016
21017 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
21018 (x_icon): Comment-out var only used in commented-out code.
21019
210202007-08-29 Romain Francoise <romain@orebokech.com>
21021
21022 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
21023 QUIT hasn't been provided.
21024
210252007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
21026
21027 * callproc.c (child_setup, getenv_internal): Use the
21028 display-environment-variable and term-environment-variable frame params.
21029 (set_initial_environment): Initialise Vprocess_environment.
21030
21031 * config.in: Disable multi-keyboard support on a mac.
21032
21033 * frame.c (Qterm_environment_variable)
21034 (Qdisplay_environment_variable): New variables.
21035 (syms_of_frame): Intern and staticpro them.
21036 (Fmake_terminal_frame): Disable output method test.
21037
21038 * frame.h: Declare them here.
21039
21040 * macfns.c (x_set_mouse_color): Get rif from the frame.
21041 (x_set_tool_bar_lines): Don't use updating_frame.
21042 (mac_window): Add 2 new parameters for consistency with other systems.
21043 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
21044 frame parameters following what is done in X11 and w32. Don't use
21045 FRAME_MAC_DISPLAY_INFO.
21046 (Fx_open_connection, start_hourglass): Remove window-system check.
21047 (x_create_tip_frame): Get the keyboard from the terminal.
21048
21049 * macmenu.c: Reorder includes.
21050 (Fx_popup_menu): Use terminal specific mouse_position_hook.
21051
21052 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
21053 terminal parameter.
21054 (x_clear_frame): Add a frame parameter.
21055 (note_mouse_movement): Get rif from the frame.
21056 (mac_term_init): Initialize the terminal.
21057 (mac_initialize): Make static and move terminal initialization ...
21058 (mac_create_terminal): ... to this new function.
21059
21060 * macterm.h (struct mac_display_info): Add terminal.
21061 (mac_initialize): Delete declaration.
21062
21063 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
21064
21065 * sysdep.c: Comment out text after #endif.
21066
21067 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
21068 is defined. Better initialize ttys in windows. Use terminal
21069 specific mouse_position_hook.
21070
21071 * termhooks.h (union display_info): Add mac_display_info.
21072
21073 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
21074 Set the default minibuffer frame, window_system and the rest of the
21075 frame parameters following what is done in X11.
21076
21077 * w32term.c (w32_initialize): Make static.
21078
21079 * xselect.c (x_handle_selection_clear): Only access
21080 terminal->kboard when MULTI_KBOARD is defined.
21081
21082 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
21083 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
21084
210852007-08-29 Jason Rumney <jasonr@gnu.org>
21086
21087 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
21088 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
21089
21090 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
21091 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
21092
21093 * keyboard.c (restore_kboard_configuration): Only define when
21094 MULTI_KBOARD defined.
21095
21096 * makefile.w32-in: Update dependancies from Makefile.in.
21097 (OBJ1): Add terminal.$(O)
21098
21099 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
21100 Don't define function body.
21101 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
21102
21103 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
21104
21105 * w32.c (request_sigio, unrequest_sigio): Remove.
21106
21107 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
21108 (w32con_clear_frame, w32con_clear_end_of_line)
21109 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
21110 (w32con_delete_glyphs, w32con_set_terminal_window)
21111 (scroll_line, w32_sys_ring_bell): Add frame arg.
21112 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
21113 Add terminal arg.
21114 (PICK_FRAME): Remove.
21115 (w32con_write_glyphs): Use frame specific terminal coding.
21116 (one_and_only_w32cons): New global variable.
21117 (initialize_w32_display): Use it for storing hooks.
21118 (create_w32cons_output): New function.
21119
21120 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
21121 arg a frame.
21122
21123 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
21124 Set window_system.
21125 (x_set_tool_bar_lines): Don't use updating_frame.
21126 (Fx_create_frame): Set terminal and ref count.
21127 (Fx_open_connection): Remove window-system check.
21128
21129 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
21130
21131 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
21132 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
21133 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21134 Add frame arg.
21135 (x_delete_terminal, w32_create_terminal): New functions.
21136 (w32_term_init): Create a terminal.
21137 (w32_initialize): Move terminal specific initialization to
21138 w32_create_terminal.
21139
21140 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21141 (w32_clear_rect, w32_clear_area): Use background from frame.
21142 (w32_display_info): Add terminal.
21143 (w32_sys_ring_bell, x_delete_display): Declare here.
21144
21145 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21146
21147 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21148
211492007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21150
21151 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21152 Fix get_named_tty calls for the controlling tty.
21153
211542007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21155
194d44e7 21156 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21157
211582007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21159
21160 * term.c (tty_insert_glyphs): Add missing first parameter.
21161
211622007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21163
21164 * buffer.c (Fbuffer_list, Fbury_buffer):
21165 Take frame->buried_buffer_list into account.
21166
21167 * cm.c (current_tty): New variable, for cmputc().
21168 (cmputc): Use it.
21169 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21170 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21171 (cmgoto): Add tty parameter. Pass it on to calccost().
21172 Use emacs_tputs() instead of tputs().
21173
21174 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21175 tputs().
21176 (current_tty): New variable, for cmputc().
21177 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21178
21179 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21180 (internal_condition_case, internal_condition_case_1)
21181 (internal_condition_case_2): Don't abort when x_catching_errors.
21182
21183 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21184 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21185 prevent crashes caused by bogus longjmps in read_char.
21186
21187 * keymap.h (Fset_keymap_parent): Add EXFUN.
21188
21189 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21190 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21191 Remove redundant definition.
21192
21193 * macfns.c (x_set_mouse_color, x_make_gc):
21194 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21195
21196 * w32term.c (x_free_frame_resources):
21197 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21198 (w32_initialize): Use the accessor macros for terminal characteristics.
21199
21200 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21201 Use the accessor macros for terminal characteristics.
21202 * msdos.c (internal_terminal_init): Use the accessor macros for
21203 terminal characteristics.
21204 (ScreenVisualBell, internal_terminal_init):
21205 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21206
21207 * termopts.h (no_redraw_on_reenter): Declare.
21208
21209 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21210 (mark_terminals, mark_ttys): Declare.
21211 (Fgarbage_collect): Call them.
21212 (mark_object): Mark buried_buffer_list.
21213
21214 * prefix-args.c: Include stdlib.h for exit.
21215
21216 * syssignal.h: Add comment.
21217
21218 * indent.c: Include stdio.h.
21219
21220 * window.h (Vinitial_window_system): Declare.
21221 (Vwindow_system): Delete declaration.
21222
21223 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21224
21225 * image.c (lookup_image): Don't initialize `c' until the xasserts
21226 have been run.
21227
21228 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21229 FRAME_FOREGROUND_PIXEL.
21230
21231 * print.c (print_preprocess): Don't lose print_depth levels while
21232 iterating.
21233
21234 * widget.c (update_from_various_frame_slots):
21235 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21236
21237 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21238 frames.
21239 (window_internal_height): Remove bogus make_number call.
21240 (init_window_once): Call make_terminal_frame with two zero parameters.
21241
21242 * fileio.c (Fread_file_name): Update comment.
21243
21244 * callint.c (Fcall_interactively):
21245 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21246 Make sure it is correctly unwound.
21247
21248 * xsmfns.c (x_session_close): New function.
21249
21250 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21251 Delete declarations.
21252
21253 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21254 (x_output): Remove background_pixel and foreground_pixel fields.
21255 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21256 (x_delete_device, x_session_close): Declare.
21257
21258 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21259 (read_filtered_event): Call `read_char' with a local
21260 `wrong_kboard_jmpbuf'.
21261
21262 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21263 Don't call single_kboard_state. Use FRAME_RIF.
21264
21265 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21266 systems.
21267
21268 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21269 (Fframe_with_environment, Fset_input_meta_mode)
21270 (Fset_quit_char): EXFUN.
21271 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21272 (init_sys_modes, reset_sys_modes): Update prototypes.
21273 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21274
21275 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21276 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21277 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21278 Delete declarations.
21279 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21280 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21281 New declarations.
21282
21283 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21284 already does that during init_display(). Call syms_of_keymap
21285 before syms_of_keyboard. Call `syms_of_terminal'.
21286 Call set_initial_environment, not set_process_environment.
21287 (shut_down_emacs): Call reset_all_sys_modes() instead of
21288 reset_sys_modes().
21289
21290 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21291 (internal_resolve_face_name, resolve_face_name_error): New functions.
21292 (resolve_face_name): Protect against loops and errors thrown by Fget.
21293 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21294 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21295
21296 * scroll.c: Replace CURTTY() with local variables throughout the
21297 file (where applicable).
21298 (calculate_scrolling, calculate_direct_scrolling)
21299 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21300 characteristics.
21301
21302 * keymap.c (Vfunction_key_map): Remove.
21303 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21304 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21305 (Vkey_translation_map): Remove.
21306 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21307 (Fdescribe_buffer_bindings)
21308 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21309 Update for terminal-local key-translation-map.
21310
21311 * Makefile.in (callproc.o): Update dependencies.
21312 (lisp, shortlisp): Add termdev.elc.
21313 (obj): Add terminal.o.
21314 (terminal.o): Add dependencies.
21315 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21316 (data.o, fns.o): Add termhooks.h dependency.
21317 (SOME_MACHINE_LISP): Add dnd.elc.
21318 (minibuf.o): Fix typo.
21319 Update dependencies.
21320
21321 * data.c (do_symval_forwarding, store_symval_forwarding)
21322 (find_symbol_value): Use the selected frame's keyboard, not
21323 current_kboard.
21324
21325 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21326 Vwindow_system.
21327
21328 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21329 Fmenu_bar_open.
21330 (syms_of_xmenu): Update defsubr.
21331 (mouse_position_for_popup, Fx_popup_menu)
21332 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21333 (set_frame_menubar, free_frame_menubar)
b97439ce 21334 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21335 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21336 an X frame.
21337
21338 * xselect.c (x_own_selection): Abort if not an X frame.
21339 (some_frame_on_display): Check if it is an X frame.
21340 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21341
21342 * coding.c: Include frame.h and termhooks.h.
21343 (terminal_coding, keyboard_coding): Delete.
21344 (Fset_terminal_coding_system_internal)
21345 (Fset_keyboard_coding_system_internal)
21346 (Fkeyboard_coding_system)
21347 (Fterminal_coding_system): Add a terminal parameter.
21348 Get terminal_coding from the terminal.
21349 (init_coding_once): Don't call setup_coding_system here.
21350
21351 * dispextern.h (set_scroll_region, turn_off_insert)
21352 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21353 (tty_clear_end_of_line, tty_setup_colors)
21354 (delete_tty, updating_frame)
21355 (produce_special_glyphs, produce_glyphs, write_glyphs)
21356 (insert_glyphs): Remove.
21357 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21358 (tty_turn_off_highlight, get_tty_size): Add declaration.
21359 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21360
21361 * frame.h (enum output_method): Add output_initial.
21362 (struct x_output): Delete.
21363 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21364 Access foreground_pixel and background_pixel directly from the frame.
21365 (tty_display): Delete.
21366 (struct frame): Add buried_buffer_list, foreground_pixel,
21367 background_pixel and terminal. Delete kboard.
21368 (union output_data): Add tty.
21369 (FRAME_KBOARD): Get the kboard from the terminal.
21370 (FRAME_INITIAL_P): New macro.
21371 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21372 (Qterm_environment_variable, Qdisplay_environment_variable)
21373 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21374 New declarations.
21375
21376 * termchar.h (tty_output, tty_display_info): New structures.
21377 (tty_list): Declare.
21378 (FRAME_TTY, CURTTY): New macros.
21379 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21380 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21381 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21382 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21383
21384 * callproc.c: Include frame.h and termhooks.h, for terminal
21385 parameters.
21386 (add_env): New function.
21387 (child_setup): Use it.
21388 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21389 (getenv_internal): Fix get_terminal_param call.
21390 (Fgetenv_internal, egetenv): Update doc.
21391 (syms_of_callproc): Initialize Vprocess_environment to nil.
21392 Register and initialize them. Remove obsolete defvars. Update doc
21393 strings.
21394 (child_setup): Handle Vlocal_environment_variables.
21395 (getenv_internal): Add terminal parameter.
21396 Handle Vlocal_environment_variables.
21397 (Fgetenv_internal): Add terminal parameter.
21398 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21399 environment in a frame (not terminal) parameter. Update doc strings.
21400 (set_initial_environment): Rename from set_global_environment.
21401 Store Emacs environment in initial frame parameter.
21402
21403 * xdisp.c (redisplay_internal): Update references to
21404 `previous_terminal_frame'.
21405 (display_mode_line, Fformat_mode_line): Replace calls to
21406 `push_frame_kboard' with `push_kboard'.
21407 (get_glyph_string_clip_rects): Add extra parentheses and
21408 braces to prevent compiler warnings.
21409 (calc_pixel_width_or_height): Add xassert to check that the
21410 frame is alive. Don't call `lookup_image' on a termcap frame.
21411 (message2_nolog, message3_nolog, redisplay_internal)
21412 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21413 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21414 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21415 (Fx_display_pixel_width, Fx_display_pixel_height)
21416 (Fx_display_planes, Fx_display_color_cells)
21417 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21418 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21419 (Fx_display_backing_store, Fx_display_visual_class)
21420 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21421 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21422
21423 * xfns.c (x_set_foreground_color x_set_background_color)
21424 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21425 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21426 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21427 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21428 terminal that is being deleted.
21429 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21430 frame parameter, and make sure it overrides any user-supplied setting.
21431 (Fx_close_connection, Fx_synchronize): Unify argument names with
21432 the rest of the DEFUNs.
21433
21434 * dispnew.c (Fsend_string_to_terminal): Update call to
21435 `get_tty_terminal'.
21436 (Fredraw_frame, Fsend_string_to_terminal)
21437 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21438 FRAME_TERMCAP_P and FRAME_TTY.
21439 (window_change_signal): Don't believe width/height values that are
21440 impossibly small.
21441 (Vinitial_window_system): Rename from Vwindow_system.
21442 (termscript, Wcm, rif): Delete.
21443
21444 * termhooks.h (struct terminal): New struct containing the
21445 previously global text display hooks and new members NAME,
21446 DELETED and PARAM_ALIST.
21447 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21448 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21449 (FRAME_RIF): New macros.
21450 (get_terminal_param, get_device): New declarations.
21451 (termscript): Delete declaration.
21452
21453 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21454 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21455 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21456 FRAME_FOREGROUND_PIXEL.
21457 (x_fully_uncatch_errors): Disable definition.
21458 (x_scroll_bar_expose): Fix reference to foreground pixel.
21459 (XTread_socket): Disable loop on all X displays.
21460 (x_delete_terminal): Don't set terminal->deleted and let
21461 delete_terminal delete the frames on the terminal.
21462 (x_delete_display): Doc update to reflect changes in
21463 delete_terminal.
21464 (x_display_info) <terminal>: Move member earlier in the struct.
21465 (deleting_tty): Remove old variable.
21466 (Fsuspend_tty): Call clear_tty_hooks.
21467 (Fresume_tty, init_tty): Call set_tty_hooks.
21468 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21469 errors on X frames.
21470 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21471 (handle_one_xevent): Initialize `f' to NULL.
21472 (x_delete_terminal, x_create_terminal): New functions.
21473 (XTset_terminal_modes, XTreset_terminal_modes)
21474 (XTread_socket, x_connection_closed, x_term_init)
21475 (x_term_init, x_delete_display): Add terminal parameter.
21476 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21477 X connections.
21478
21479 * frame.c: Include termchar.h.
21480 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21481 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21482 (Qdisplay_environment_variable): New vars.
21483 (Fframep): Deal with output_initial.
21484 (Fframe-live-p): Doc fix.
21485 (Fwindow-system): New function.
21486 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21487 (make_terminal_frame): Don't create frames on a terminal that is
21488 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21489 (store_frame_param): Check for found_for_frame before calling XFRAME.
21490 (Fmake_terminal_frame): Handle NULL tty names correctly.
21491 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21492 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21493 frames to refer to a deleted frame in their 'environment parameter.
21494 (Fframe_with_environment): New function.
21495 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21496 (get_future_frame_param): New function.
21497 (Fmake_terminal_frame): Use it.
21498 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21499
21500 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21501 * sysdep.c (reset_sys_modes): Update for renames.
21502
21503 * keyboard.c (tty_read_avail_input): New function.
21504 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21505 (syms_of_keyboard): Defsubr them.
21506 (Fset_input_meta_mode, Fset_quit_char): New functions.
21507 (Fset_input_mode): Split to above functions.
21508 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21509 parameter. Use it in call to `read_char'.
21510 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21511 Set wrong_kboard_jmpbuf correctly in recursive calls.
21512 Use current_kboard to access Vkeyboard_translate_table.
21513 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21514 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21515 Update longjmp invocations. Remember the original current_kboard,
21516 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21517 changes it. Comment out unnecessary calls to
21518 `record_single_kboard_state' and `any_kboard_state'.
21519 Update recursive calls.
21520 (wrong_kboard_jmpbuf): Remove global variable.
21521 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21522 Handle deleted interrupted_kboards correctly; that is a legal
21523 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21524 and read_char calls. Abort if interrupted_kboard died in read_char.
21525 (any_kboard_state, single_kboard_state)
21526 (push_frame_kboard): Remove function.
21527 (pop_kboard): Switch out of single_kboard mode if the kboard has
21528 been deleted. Remove unused variable. Help debugging by not
21529 changing current_kboard unnecessarily. Set current_kboard to the
21530 kboard of the selected frame when the stored kboard object has
21531 been deleted before pop_kboard.
21532 (temporarily_switch_to_single_kboard): Change first parameter to a
21533 frame pointer. Throw an error when caller wants to change kboards
21534 while in single_kboard mode. Don't push_kboard if we weren't in
21535 single kboard state. Don't pop_kboard if we popped into any
21536 kboard state.
21537 (restore_kboard_configuration): Abort if pop_kboard changed the
21538 kboard in single_kboard mode. Call pop_kboard only after setting
21539 up single_kboard mode.
21540 (Frecursive_edit): Switch to single_kboard mode only in nested
21541 command loops.
21542 (cmd_error, command_loop, command_loop_1, timer_check):
21543 Comment out unnecessary call to `any_kboard_state' and
21544 `record_single_kboard_state'.
21545 (delete_kboard): Exit single_kboard mode if we have just deleted
21546 that kboard. Use FRAME_KBOARD.
21547 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21548 `fatal_error_signal'.
21549 (record_single_kboard_state): Don't push_kboard if we weren't in
21550 single kboard state. Don't pop_kboard if we popped into any
21551 kboard state.
21552 (push_frame_kboard): Rename to push_kboard.
21553 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21554 (read_avail_input): Read input from all terminals.
21555 (mark_kboards): Also mark Vkeyboard_translate_table.
21556 (kbd_buffer_store_event_hold): Simplify condition.
21557 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21558 (Vkeyboard_translate_table): Move to struct kboard.
21559 (init_kboard): Initialize Vkeyboard_translate_table.
21560 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21561 Vkeyboard_translate_table. Update doc strings. Update docs of
21562 local-function-key-map and function-key-map.
21563
21564 * terminal.c: New file.
21565
21566 * term.c: Include errno.h.
21567 (Vring_bell_function, device_list, initial_device)
21568 (next_device_id, ring_bell, update_begin, update_end)
21569 (set_terminal_window, cursor_to, raw_cursor_to)
21570 (clear_to_end, clear_frame, clear_end_of_line)
21571 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21572 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21573 (syms_of_term): Move their initialization to terminal.c.
21574 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21575 (Ftty_display_color_cells)
21576 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21577 (clear_tty_hooks, set_tty_hooks)
21578 (init_tty, maybe_fatal): New functions.
21579 (Ftty_type): Return nil if terminal is not on a tty instead of
21580 throwing an error. Doc update.
21581 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21582 Doc update. Initialize new subrs and variables.
21583 (delete_tty): Use terminal->deleted.
21584 (tty_set_terminal_modes): Rename from set_terminal_modes.
21585 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21586 (set_scroll_region): Rename to `tty_set_scroll_region'.
21587 (turn_on_insert): Rename to `tty_turn_on_insert'.
21588 (turn_off_insert): Rename to `tty_turn_off_insert'.
21589 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21590 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21591 (toggle_highligh): Rename to `tty_toggle_highlight'.
21592 (background_highlight): Rename to `tty_background_highlight'.
21593 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21594 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21595 (tty_set_scroll_region, tty_background_highlight)
21596 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21597 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21598 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21599 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21600 Add static modifier.
21601 (tty_reset_terminal_modes, tty_set_terminal_window)
21602 (tty_set_scroll_region, tty_background_highlight)
21603 (tty_highlight_if_desired, tty_cursor_to)
21604 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21605 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21606 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21607 renames.
21608
216092007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21610
21611 * keyboard.c: Qrtl is new.
21612 (parse_tool_bar_item): Handle :rtl keyword.
21613 (syms_of_keyboard): Intern :rtl keyword.
21614
21615 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21616
21617 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21618 so no Lisp code is executed.
21619 (file_for_image, find_rtl_image): New functions.
21620 (xg_get_image_for_pixmap): Use file_for_image.
21621 (update_frame_tool_bar): If direction is RTL, use RTL image if
21622 defined. Use Gtk stock images if defined.
21623
216242007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21625
21626 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21627 for nonexistent or zero-width glyph in composition glyph.
21628
216292007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21630
21631 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21632
21633 * xdisp.c (Finvisible_p): New function.
21634 (syms_of_xdisp): defsubr it.
21635
216362007-08-24 Juanma Barranquero <lekktu@gmail.com>
21637
21638 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21639 Doc fixes.
21640
216412007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21642
21643 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21644
216452007-08-24 Martin Rudalics <rudalics@gmx.at>
21646
21647 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21648 whether decoding has modified buffer contents.
21649
216502007-08-24 Jason Rumney <jasonr@gnu.org>
21651
21652 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21653 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21654 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21655 (init_svg_functions) [HAVE_NTGUI]: New function.
21656 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21657 (svg_load_image): Use them.
21658 (svg_load_image) [HAVE_NTGUI]: Implement background.
21659
216602007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21661
21662 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21663 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21664 (LIBX): Remove @RSVG_LIBS@.
21665 (LIBES): Add $(RSVG_LIBS).
21666
21667 * image.c (svg_load_image): Blend with specified background if exists.
21668 Use IMAGE_BACKGROUND. Add Mac OS Support.
21669
21670 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21671 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21672 Remove macros.
21673 [MAC_OSX] (socket_callback): Do nothing.
21674 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21675 ReceiveNextEvent.
21676 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21677 socket_callback.
21678 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21679
216802007-08-22 Glenn Morris <rgm@gnu.org>
21681
21682 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21683
216842007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21685
21686 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21687
21688 * image.c: Add support for SVG images. Some additional comments
21689 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21690 (svg_image_p): New function to test for SVG image.
21691 (svg_load): New function to load SVG image.
21692 (svg_load_image): New function, helper for svg_load.
21693 (Qsvg): New Lisp_object.
21694 (svg_keyword_index): New enum.
21695 (svg_format): New static `image_keyword' struct.
21696 (svg_type): New static `image_type' struct.
21697 (librsvg/rsvg.h): Include it.
21698
216992007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21700
21701 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21702
217032007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21704
21705 * lread.c (Qold_style_backquotes): New var.
21706 (syms_of_lread): Init and staticpro it.
21707 (load_warn_old_style_backquotes): New fun.
21708 (Fload): Use them to warn about old style backquotes.
21709 (end_of_file_error, Fload): Remove unused vars.
21710
21711 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21712
21713 * lread.c (Vold_style_backquotes): New var.
21714 (syms_of_lread): Init and export it to Elisp.
21715 (read1): Set it when we find an old-style (back)quote.
21716
217172007-08-22 Jason Rumney <jasonr@gnu.org>
21718
21719 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21720
217212007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21722
21723 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21724
217252007-08-19 Richard Stallman <rms@gnu.org>
21726
21727 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21728
217292007-08-19 Andreas Schwab <schwab@suse.de>
21730
21731 * alloc.c (pure): Round PURESIZE up.
21732
217332007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21734
21735 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21736 active frame.
21737
217382007-08-16 Richard Stallman <rms@gnu.org>
21739
21740 * eval.c (Fcommandp): Add parens to clarify.
21741
21742 * minibuf.c (Fall_completions): Use enum for type of table.
21743
21744 * emacs.c (USAGE2): Improve text.
21745
217462007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21747
21748 * term.c (tty_default_color_capabilities): Declare static
21749 variables in file scope, to avoid HPUX compiler problem.
21750
217512007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21752
21753 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21754 to gtk_toolbar_insert.
21755
217562007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21757
21758 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21759
21760 * insdel.c (reset_var_on_error): New fun.
21761 (signal_before_change, signal_after_change):
21762 Use it to reset (after|before)-change-functions to nil in case of error.
21763 Bind inhibit-modification-hooks to t.
21764 Don't bind (after|before)-change-functions to nil while they run.
21765
217662007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21767
21768 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21769 filling pixmap with stippled background.
21770
217712007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21772
21773 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21774 Don't use invisible frame as parent window for repositioning.
21775
217762007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21777
21778 * print.c (new_backquote_output): Rename from old_backquote_output.
21779 (print): Inverse its logic (according to its name) so as to match the
21780 behavior of new_backquote_flag in lread.c.
21781
217822007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21783
21784 * gmalloc.c (posix_memalign): New function.
21785
21786 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21787 ActivateControl/DeactivateControl here.
21788 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21789 frame-notice-user-settings is non-nil.
21790 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21791 for kEventParamFMFontStyle.
21792 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21793 mac_pass_command_to_system and mac_pass_control_to_system here.
21794 (XTread_socket): Call ActivateControl/DeactivateControl here.
21795 (XTread_socket) [TARGET_API_MAC_CARBON]:
21796 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21797 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21798 for window repositioning.
21799
218002007-08-08 Glenn Morris <rgm@gnu.org>
21801
21802 * Replace `iff' in doc-strings and comments.
21803
218042007-08-07 Chong Yidong <cyd@stupidchicken.com>
21805
21806 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21807
218082007-08-07 Martin Rudalics <rudalics@gmx.at>
21809
21810 * fileio.c (Finsert_file_contents): Run format-decode and
21811 after_insert_file_functions on entire buffer when REPLACE is
21812 non-nil and inhibit modification_hooks and point_motion_hooks.
21813 For consistency, run after_insert_file_functions iff something
21814 got inserted. Move signal_after_change and update_compositions
21815 after code running after_insert_file_functions. Make sure that
21816 undo_list doesn't record intermediate steps of the decoding process.
21817
218182007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21819
21820 * emacs.c (main)
21821 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21822 Call malloc_enable_thread on interactive startup.
21823
21824 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21825 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21826 [USE_PTHREAD]: Conditionalize with it.
21827 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21828 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21829 New functions.
21830
218312007-08-06 Chong Yidong <cyd@stupidchicken.com>
21832
21833 * xdisp.c (redisplay_window): When restoring original buffer
21834 position, make sure it is still valid.
21835
21836 * image.c (png_load): Ignore png-supplied background color.
21837
218382007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21839
21840 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21841 Use kCFAbsoluteTimeIntervalSince1970.
21842
21843 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21844 New variable.
21845 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21846 event loop should be quit.
21847 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21848 Quit dialog event loop if quit_dialog_event_loop is set.
21849
21850 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21851 (Selection): New typedef. Use instead of ScrapRef.
21852 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21853 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21854 (mac_clear_selection): Rename from clear_scrap.
21855 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21856 scrap_has_target_type. All uses changed.
21857 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21858 (mac_selection_has_target_p): New functions.
21859 (mac_put_selection_value): Rename from put_scrap_string.
21860 (mac_get_selection_value): Rename from get_scrap_string.
21861 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21862 (put_scrap_private_timestamp, scrap_has_target_type)
21863 (get_scrap_private_timestamp): Remove functions.
21864 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21865 (x_own_selection, x_get_local_selection):
21866 Use mac_valid_selection_value_p.
21867 (x_own_selection): Don't use put_scrap_private_timestamp.
21868 Record OWNERSHIP-INFO into Vselection_alist instead.
21869 (x_get_local_selection): Don't check type if request is local.
21870 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21871 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21872
218732007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21874
21875 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21876 add comment explaining why.
21877
218782007-08-03 Richard Stallman <rms@gnu.org>
21879
21880 * fileio.c (Fvisited_file_modtime): Use make_time.
21881
218822007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21883
21884 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21885 build.
21886
218872007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21888
21889 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21890
218912007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21892
21893 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21894
218952007-07-30 Richard Stallman <rms@gnu.org>
21896
21897 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21898
218992007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21900
21901 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21902
219032007-07-28 Nick Roberts <nickrob@snap.net.nz>
21904
21905 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21906 remote default-directory.
21907
21908 * buffer.c (mode-line-format): Update doc string.
21909
219102007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21911
21912 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21913 scroll bar gap.
21914 (x_scroll_bar_create): Set bar->fringe_extended_p.
21915 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21916 on frame edge. Check fringe background extension. Don't clear
21917 extended fringe background area.
21918
21919 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21920 (w32_fill_area): Enclose multiple statements with do ... while (0).
21921
21922 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21923 Extend fringe background to scroll bar gap.
21924 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21925 Set bar->fringe_extended_p.
21926 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21927 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21928 background extension. Don't clear extended fringe background area.
21929
21930 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21931 New member fringe_extended_p.
21932
219332007-07-25 Glenn Morris <rgm@gnu.org>
21934
21935 * Relicense all FSF files to GPLv3 or later.
21936
21937 * COPYING: Switch to GPLv3.
21938
219392007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21940
21941 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21942
21943 * data.c (Finteractive_form): Check for the presence of an
21944 `interactive-form' symbol property more thoroughly.
21945
21946 * data.c (Finteractive_form): Use an `interactive-form' property if
21947 present, analogous to the function-documentation property.
21948
219492007-07-24 Jason Rumney <jasonr@gnu.org>
21950
21951 * w32fns.c (x_real_positions): Get real position from OS instead of
21952 calculating it.
21953
219542007-07-23 Jason Rumney <jasonr@gnu.org>
21955
21956 * filelock.c (current_lock_owner): Allow for @ sign in username.
21957
219582007-07-22 Nick Roberts <nickrob@snap.net.nz>
21959
21960 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21961 remote default-directory.
21962
21963 * buffer.c (mode-line-format): Describe above case in doc string.
21964
219652007-07-20 Eli Zaretskii <eliz@gnu.org>
21966
21967 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21968 Define if not defined.
21969
219702007-07-18 Jason Rumney <jasonr@gnu.org>
21971
21972 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21973
219742007-07-18 Richard Stallman <rms@gnu.org>
21975
21976 * data.c (Fsetq_default): Doc fix.
21977
21978 * eval.c (Fsetq): Doc fix.
21979
219802007-07-18 Juanma Barranquero <lekktu@gmail.com>
21981
21982 * coding.c (Ffind_operation_coding_system):
21983 * eval.c (For, Fand): Doc fixes.
21984 Reported by Johan Bockgård.
21985
219862007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21987
21988 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21989
21990 * xterm.h: Declare x_ewmh_activate_frame.
21991
21992 * xterm.c (x_ewmh_activate_frame): New function.
21993 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21994
219952007-07-17 Martin Rudalics <rudalics@gmx.at>
21996
21997 * window.c (Fdisplay_buffer): If largest or LRU window is the
21998 only window, split it even if it is not eligible for splitting.
21999 This restores the original behavior broken by the 2007-07-15
22000 change.
22001
220022007-07-17 Glenn Morris <rgm@gnu.org>
22003
22004 * abbrev.c (abbrev_check_chars): New function.
22005 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
22006 Call abbrev_check_chars to check abbrev characters are word
22007 constituents. Doc fix.
22008
220092007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
22010
22011 * process.c (Fstart_process, Fmake_network_process)
22012 (read_process_output): Fix up last changes.
22013
220142007-07-16 Eli Zaretskii <eliz@gnu.org>
22015
22016 * makefile.w32-in (clean): Don't delete *~.
22017
220182007-07-16 Andreas Schwab <schwab@suse.de>
22019
22020 * window.c (Fdisplay_buffer): Use NILP.
22021 (Fset_window_scroll_bars): Likewise.
22022
220232007-07-15 Martin Rudalics <rudalics@gmx.at>
22024
22025 * window.c (window_min_size_2): New function.
22026 (window_min_size_1, size_window, Fdisplay_buffer)
22027 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
22028 windows without mode- or header-lines when window-min-height is
22029 too small.
22030 (size_window): Reset nodelete_p after testing it, following an
22031 earlier note by Kim F. Storm.
22032 (display_buffer): Do not set split_height_threshold to twice the
22033 value of window_min_height to avoid changing the value of a
22034 customizable variable. Rather explicitly check whether the
22035 height of the window that shall be splitted is at least as large
22036 as split_height_threshold.
22037 (Fwindow_full_width_p): New defun.
22038 (syms_of_window): Defsubr it.
22039
22040 * window.h: Add EXFUN for Fwindow_full_width_p.
22041
220422007-07-14 Jason Rumney <jasonr@gnu.org>
22043
22044 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
22045
220462007-07-14 Richard Stallman <rms@gnu.org>
22047
22048 * eval.c (maybe_call_debugger): New function.
22049 (find_handler_clause): Use maybe_call_debugger.
22050 Call it when the handler says `debug'.
22051 Eliminate DEBUGGER_VALUE_PTR.
22052 (Fsignal): Eliminate debugger_value.
22053 (Qdebug): New variable.
22054 (syms_of_eval): Initialize it.
22055
220562007-07-14 Juanma Barranquero <lekktu@gmail.com>
22057
22058 * eval.c (Fprogn):
22059 * keyboard.c (Ftrack_mouse):
22060 * print.c (Fwith_output_to_temp_buffer):
22061 * window.c (Fsave_window_excursion): Doc fix.
22062
220632007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
22064
22065 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
22066
220672007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
22068
22069 * process.h (struct Lisp_Process): Turn slots infd, outfd,
22070 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
22071 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
22072 read_output_delay, and read_output_skip from Lisp_Objects to ints.
22073 Remove unused encoding_carryover.
22074 * process.c: Adjust all functions accordingly.
22075
220762007-07-12 Richard Stallman <rms@gnu.org>
22077
22078 * term.c: Include unistd.h only if HAVE_UNISTD_H.
22079
220802007-07-11 Jason Rumney <jasonr@gnu.org>
22081
22082 * makefile.w32-in (LIBS): Include OLE32.
22083
22084 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
22085 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
22086
220872007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
22088
22089 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
22090 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
22091 from a Lisp_Object into a bare pointer.
22092 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
22093 Adjust the code correspondingly.
22094
22095 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
22096
22097 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
22098 (term_show_mouse_face): Remove unused var `j'.
22099 (handle_one_term_event): Remove unused vars `i' and `j'.
22100 Don't cast return value of ttyname since it's not necessary.
22101
221022007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
22103
22104 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
22105 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
22106
22107 * fns.c (map_char_table): Use an array of int for `indices' rather than
22108 an array of Lisp_Objects (which are only ever integers anyway).
22109 (Fmap_char_table): Update caller.
22110 * lisp.h: Update prototype.
22111 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
22112 * fontset.c (Ffontset_info):
22113 * casetab.c (set_case_table): Update callers.
22114
22115 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
22116
22117 * keymap.c (struct accessible_keymaps_data)
22118 (struct where_is_internal_data): New structures.
22119 (accessible_keymaps_1, where_is_internal_1): Use them to change
22120 interface to adhere to the one used by map_keymap.
22121 (Faccessible_keymaps, where_is_internal): Use map_keymap.
22122 (accessible_keymaps_char_table, where_is_internal_2): Remove.
22123
22124 * keymap.h (map_keymap_function_t): More informative prototype.
22125
221262007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
22127
22128 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
22129 (looking_at_1): Don't change search_regs and last_thing_searched
22130 if `inhibit-changing-match-data' is non-nil.
22131 (string_match_1, search_buffer, set_search_regs): Likewise.
22132 (syms_of_search): Add Lisp level definition for
22133 `inhibit-changing-match-data' and set it to nil.
22134 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22135 start and end of the match, instead of using values in search_regs.
22136
221372007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22138
22139 * minibuf.c (Fcompleting_read): New value `confirm-only'
22140 for `require-match'.
22141
221422007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22143
22144 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22145 part of the 2007-06-27 change to syms_of_fileio.
22146
221472007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22148
22149 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22150 Check WINDOWP before using XWINDOW. Consolidate return statements.
22151
221522007-06-27 Richard Stallman <rms@gnu.org>
22153
22154 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22155
221562007-06-27 Juanma Barranquero <lekktu@gmail.com>
22157
22158 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22159
221602007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22161
22162 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22163 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22164 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22165 (_free_internal, memalign): Use them.
22166 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22167 Initialize to PTHREAD_MUTEX_INITIALIZER.
22168 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22169 (morecore_nolock): Rename from morecore. All uses changed.
22170 Use only nolock versions of internal allocation functions.
22171 (_malloc_internal_nolock, _realloc_internal_nolock)
22172 (_free_internal_nolock): New functions created from
22173 _malloc_internal, _realloc_internal, and _free_internal.
22174 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22175 Copy hook value to automatic variable before its use.
22176 (memalign): Copy hook value to automatic variable before its use.
22177
221782007-06-26 Kenichi Handa <handa@m17n.org>
22179
22180 * coding.c (Ffind_operation_coding_system): Docstring improved.
22181 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22182
221832007-06-25 David Kastrup <dak@gnu.org>
22184
22185 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22186 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22187 cater for additional parameter.
22188
22189 * keymap.h: Adjust number of parameters to `current-active-maps'.
22190
22191 * doc.c (Fsubstitute_command_keys): Adjust call of
22192 `current-active-maps'.
22193
221942007-06-25 David Kastrup <dak@gnu.org>
22195
22196 * callint.c (Fcall_interactively): Make the parsing of interactive
22197 specs somewhat more readable.
22198
221992007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22200
22201 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22202 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22203 if extended background has already been filled.
22204
222052007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22206
22207 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22208 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22209
22210 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22211 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22212 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22213 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22214 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22215 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22216 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22217 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22218 Run timers during dialog popup.
22219 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22220
222212007-06-21 Jason Rumney <jasonr@gnu.org>
22222
22223 * image.c (convert_mono_to_color_image): Swap fore and background.
22224
222252007-06-20 Jason Rumney <jasonr@gnu.org>
22226
22227 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22228 (w32_free_bdf_font): Unmap memory not handle.
22229
222302007-06-20 Sam Steingold <sds@gnu.org>
22231
22232 * gmalloc.c (__morecore): Fix the declaration to comply with the
22233 definition.
22234
222352007-06-20 Juanma Barranquero <lekktu@gmail.com>
22236
22237 * w32term.c (w32_delete_display): Remove leftover declaration.
22238 (w32_define_cursor, w32_initialize): Make static.
22239
22240 * w32.c (_wsa_errlist): Fix typo in error message.
22241 (init_environment): Ignore any environment variable from the
22242 registry having a null value.
22243
222442007-06-20 Glenn Morris <rgm@gnu.org>
22245
22246 * Makefile.in (LIBGIF): Default to -lgif.
22247
222482007-06-17 Jason Rumney <jasonr@gnu.org>
22249
22250 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22251 unicode strings.
22252
222532007-06-16 Juanma Barranquero <lekktu@gmail.com>
22254
22255 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22256 Fix typo in docstring.
22257
222582007-06-16 Eli Zaretskii <eliz@gnu.org>
22259
22260 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22261 and their keybindings.
22262
222632007-06-15 Chong Yidong <cyd@stupidchicken.com>
22264
22265 * composite.c (update_compositions): Fix last fix.
22266
222672007-06-14 Jason Rumney <jasonr@gnu.org>
22268
22269 * w32.c (get_process_times_fn): New function pointer.
22270 (globals_of_w32): Intialize it if present in kernel32.dll.
22271 (w32_get_internal_run_time): New function.
22272
22273 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22274
222752007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22276
22277 * composite.c (update_compositions): Check the validness of
22278 compositions.
22279
222802007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22281
22282 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22283 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22284
22285 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22286 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22287
22288 * macgui.h (USE_MAC_TOOLBAR): New define.
22289
22290 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22291 Return immediately unless popup is activated.
22292
22293 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22294 background to scroll bar gap.
22295 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22296 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22297 scroll bars on frame edge. Check fringe background extension.
22298 Don't clear extended fringe background area.
22299 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22300 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22301 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22302 [USE_MAC_TOOLBAR]: New macros.
22303 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22304 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22305 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22306 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22307 [USE_MAC_TOOLBAR]: New functions.
22308 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22309 manually if previous repositioning has failed.
22310 (mac_handle_keyboard_event): Use precomputed event kind.
22311 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22312 as tool bar item click. Handle mouse movement over tool bar items.
22313
22314 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22315 toolbar_win_gravity.
22316 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22317 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22318 Add externs.
22319
22320 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22321 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22322
223232007-06-14 Chong Yidong <cyd@stupidchicken.com>
22324
22325 * image.c (search_image_cache): Remove unused variable.
22326
223272007-06-13 Chong Yidong <cyd@stupidchicken.com>
22328
22329 * xfns.c, xmenu.c: Link to xaw3d if available.
22330
223312007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22332
22333 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22334 frame_foreground and frame_background.
22335
22336 * image.c (lookup_image): Save frame foreground and background colors.
22337 (search_image_cache): Check if saved and current frame colors match.
22338
223392007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22340
22341 * regex.c (regex_compile): Remove the `regnum' counter.
22342 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22343
223442007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22345
22346 * term.c: Include intervals.h to declare Fget_text_property.
22347
223482007-06-10 Jason Rumney <jasonr@gnu.org>
22349
22350 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22351
223522007-06-08 Juanma Barranquero <lekktu@gmail.com>
22353
22354 * callint.c (Fcall_interactively):
22355 * editfns.c (Fdelete_and_extract_region):
22356 * fileio.c (Fread_file_name):
22357 * fns.c (Fmapconcat):
22358 * keyboard.c (cmd_error_internal):
22359 * keymap.c (Fkey_description):
22360 * lread.c (openp):
22361 * minibuf.c (read_minibuf):
22362 * search.c (wordify):
22363 * sunfns.c (sel_read):
22364 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22365 * xfns.c (x_default_scroll_bar_color_parameter):
22366 * xmenu.c (menu_help_callback):
22367 * xselect.c (Fx_get_atom_name):
22368 * xterm.c (x_term_init): Use empty_unibyte_string.
22369
223702007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22371
22372 * alloc.c (init_strings): Initialize canonical empty strings.
22373 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22374 canonical empty string when the requested size is 0.
22375
22376 * emacs.c (empty_unibyte_string): Rename from empty_string.
22377 (empty_multibyte_string): New canonical empty string.
22378 (syms_of_emacs): Don't initialize empty_string.
22379
22380 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22381 string, if appropriate.
22382 (empty_unibyte_string, empty_multibyte_string): New externs.
22383 (empty_string): Remove extern.
22384
22385 * lread.c (syms_of_lread): Use empty_unibyte_string.
22386
223872007-06-07 Jason Rumney <jasonr@gnu.org>
22388
22389 * s/ms-w32.h: Don't define HAVE_TZNAME.
22390
22391 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22392
223932007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22394
22395 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22396
22397 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22398 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22399
22400 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22401 Don't call next handler.
22402 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22403 Remove argument. Install handler to application.
22404 (set_frame_menubar): Don't change deep_p.
22405 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22406 FRAME_OUTER_TO_INNER_DIFF_Y.
22407 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22408 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22409 [HAVE_DIALOGS]: New macros.
22410 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22411 Use them.
22412 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22413
22414 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22415 init_service_handler. All callers changed. Return OSStatus value.
22416
22417 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22418 All callers changed so as not to call SetPortWindowPort.
22419 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22420 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22421 mac_draw_string_common.
22422 (mac_draw_image_string_qd): Likewise.
22423 (mac_draw_string_common): Use them. Add INLINE.
22424 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22425 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22426 GetGlobalMouse.
22427 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22428 and FRAME_OUTER_TO_INNER_DIFF_Y.
22429 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22430 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22431 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22432 repositioning window to mac_handle_window_event.
22433 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22434 saving window location to mac_handle_window_event
22435 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22436 (install_menu_target_item_handler): Remove argument in extern.
22437 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22438 Also accept command events.
22439 (do_keystroke): New function created from XTread_socket.
22440 (init_command_handler): Remove functions.
22441 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22442 and save window location by kEventWindowShowing and kEventWindowHiding
22443 handlers here. Don't call next handler for window state change and
22444 focus events.
22445 (mac_handle_application_event, mac_handle_keyboard_event)
22446 [TARGET_API_MAC_CARBON]: New functions.
22447 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22448 kEventWindowShowing and kEventWindowHiding events. Move installation
22449 of mouse, font, text input and menu target item handlers to
22450 install_application_handler.
22451 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22452 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22453 New function.
22454 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22455 Register it.
22456 (XTread_socket) [TARGET_API_MAC_CARBON]:
22457 Consolidate SendEventToEventTarget calls.
22458 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22459 Move application activation handler to mac_handle_application_event.
22460 Move keyboard handler to mac_handle_keyboard_event.
22461 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22462 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22463 init_command_handler. Call install_application_handler.
22464
22465 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22466 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22467
224682007-06-07 Glenn Morris <rgm@gnu.org>
22469
22470 * emacs.c (main): Use `emacs-copyright' in --version output.
22471
224722007-06-06 Chong Yidong <cyd@stupidchicken.com>
22473
22474 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22475
224762007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22477
22478 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22479
22480 * macgui.h: Replace WindowPtr with WindowRef.
22481
22482 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22483 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22484 Replace ControlHandle with ControlRef.
22485 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22486
22487 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22488 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22489 Replace ControlHandle with ControlRef.
22490 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22491 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22492
22493 * macterm.h (struct scroll_bar): Rename member control_handle_low
22494 and control_handle_high to control_ref_low and control_ref_high.
22495 All uses changed.
22496 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22497 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22498 respectively. All uses changed.
22499 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22500 (install_window_handler, remove_window_handler): Replace WindowPtr
22501 with WindowRef in externs.
22502
225032007-06-05 Juanma Barranquero <lekktu@gmail.com>
22504
22505 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22506
225072007-06-03 Nick Roberts <nickrob@snap.net.nz>
22508
22509 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22510
22511 * frame.c (Fmouse_position, Fmouse_pixel_position):
22512 Condition on HAVE_GPM too.
22513
22514 * term.c (term_mouse_highlight): Remove unused variables.
22515 (Fterm_open_connection): Set gpm_zerobased to 1.
22516 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22517 Use zero based co-ordinates.
22518 (handle_one_term_event): Report a drag as mouse movement too.
22519
22520 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22521
225222007-06-03 Chong Yidong <cyd@stupidchicken.com>
22523
22524 * image.c (search_image_cache): New function. Require background
22525 color match if background color is unspecified in the image spec.
22526 (uncache_image, lookup_image): Use it.
22527
225282007-06-01 Juanma Barranquero <lekktu@gmail.com>
22529
22530 * window.c (Fshrink_window): Reflow docstring.
22531
225322007-06-02 Chong Yidong <cyd@stupidchicken.com>
22533
22534 * Version 22.1 released.
22535
225362007-06-01 Richard Stallman <rms@gnu.org>
22537
22538 * xfns.c (x_encode_text): Add GCPRO.
22539
225402007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22541
22542 * xfns.c (x_set_name_internal): Save encoded name before
22543 x_encode_text in case string data is relocated.
22544
225452007-05-31 Richard Stallman <rms@gnu.org>
22546
22547 * buffer.c (syms_of_buffer): Doc fix.
22548
225492007-05-30 Nick Roberts <nickrob@snap.net.nz>
22550
22551 * sysdep.c (init_sys_modes): Add rather than replace with
22552 O_NONBLOCK.
22553
22554 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22555 term_mouse_moveto.
22556
22557 * termhooks.h (term_mouse_moveto): New extern.
22558
22559 * term.c (mouse_face_window): Rename...
22560 (Qmouse_face_window): ...to this.
22561 (term_show_mouse_face, term_clear_mouse_face)
22562 (term_mouse_highlight): Use Qmouse_face_window.
22563 (term_mouse_moveto): New function.
22564 (term_mouse_position): Make it work.
22565 (syms_of_term): Uncomment assignment to mouse_position_hook.
22566 Staticpro Qmouse_face_window.
22567
225682007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22569
22570 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22571 around current_column call.
22572
225732007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22574
22575 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22576 * xdisp.c (next_element_from_buffer):
22577 * window.c (delete_window):
22578 * term.c (term_mouse_highlight):
22579 * msdos.c (getdefdir):
22580 * macterm.c (mac_create_bitmap_from_bitmap_data)
22581 (init_font_name_table):
22582 * fns.c (Fsxhash):
22583 * data.c (Fmake_local_variable):
22584 * ccl.c (ccl_driver): Likewise.
22585
225862007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22587
22588 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22589 Call mac_wakeup_from_rne on window size change.
22590
225912007-05-25 Chong Yidong <cyd@stupidchicken.com>
22592
22593 * image.c (uncache_image): Fix typo.
22594
225952007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22596
22597 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22598
225992007-05-22 Richard Stallman <rms@gnu.org>
22600
22601 * xterm.c (x_connection_closed): Remove NO_RETURN.
22602
226032007-05-22 Martin Rudalics <rudalics@gmx.at>
22604
22605 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22606
226072007-05-21 Chong Yidong <cyd@stupidchicken.com>
22608
22609 * image.c (uncache_image): New function.
22610 (Fimage_refresh): New function.
22611
226122007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22613
22614 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22615
226162007-05-20 Nick Roberts <nickrob@snap.net.nz>
22617
22618 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22619 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22620
226212007-05-20 Nick Roberts <nickrob@snap.net.nz>
22622
22623 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22624 conditional on [HAVE_GPM_H].
22625
226262007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22627
22628 * syntax.c (skip_chars): Update syntax-table only after we checked that
22629 the new location is valid.
22630
226312007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22632
22633 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22634 mac_get_window_bounds.
22635
226362007-05-20 Nick Roberts <nickrob@snap.net.nz>
22637
22638 * Makefile.in (LIBGPM): Allow it to be set from configure.
22639 If set then link Emacs with it.
22640
22641 * config.in: Regenerate.
22642
22643 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22644 New externs.
22645
22646 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22647 Include gpm.h.
22648 (handle_one_term_event, term_gpm): New externs.
22649
22650 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22651 and allow it to be interrupted by SIGIO.
22652
22653 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22654 (wait_reading_process_output): Wait on gpm_fd too.
22655 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22656 (add_gpm_wait_descriptor_called_flag): New variable.
22657 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22658
22659 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22660 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22661 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22662 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22663 (make_lispy_event): Add case GPM_CLICK_EVENT.
22664 (read_avail_input): Handle mouse input.
22665
22666 * term.c (write_glyphs_with_face): New function.
22667 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22668 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22669 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22670 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22671 (last_mouse_x, last_mouse_y): New variables.
22672 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22673 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22674 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22675 (Fterm_close_connection): New functions.
22676 (term_init): Initialise mouse_face_window.
22677
226782007-05-19 Chong Yidong <cyd@stupidchicken.com>
22679
22680 * xdisp.c (redisplay_window): If first window line is a
22681 continuation line, recompute the new window start instead of
22682 recentering.
22683
226842007-05-18 Glenn Morris <rgm@gnu.org>
22685
22686 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22687 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22688
226892007-05-17 Glenn Morris <rgm@gnu.org>
22690
22691 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22692
226932007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22694
22695 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22696 dead key repeat and up events.
22697
226982007-05-14 Chong Yidong <cyd@stupidchicken.com>
22699
22700 * image.c (pbm_load): Check image size for monochrome pbm.
22701
227022007-05-13 Chong Yidong <cyd@stupidchicken.com>
22703
22704 * xterm.c (XTread_socket): Revert last change.
22705
227062007-05-12 Chong Yidong <cyd@stupidchicken.com>
22707
22708 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22709
22710 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22711
227122007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22713
22714 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22715 mixup (YAILOM).
22716
227172007-05-07 Andreas Schwab <schwab@suse.de>
22718
22719 * keymap.c (Flookup_key): Fix typo in last change.
22720
227212007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22722
22723 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22724 mapping for unibyte strings.
22725
227262007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22727
22728 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22729 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22730
227312007-04-29 Richard Stallman <rms@gnu.org>
22732
22733 * insdel.c (replace_range): For undo, record insertion first.
22734
227352007-04-29 Andreas Schwab <schwab@suse.de>
22736
22737 * lisp.h (VECSIZE): Use OFFSETOF.
22738
227392007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22740
22741 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22742 disabled lines.
22743
227442007-04-28 Richard Stallman <rms@gnu.org>
22745
22746 * lread.c (read_escape): In a string, \s is always space.
22747
227482007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22749
22750 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22751
22752 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22753 submenu for menu bar items.
22754
22755See ChangeLog.10 for earlier changes.
22756
22757;; Local Variables:
22758;; coding: utf-8
22759;; add-log-time-zone-rule: t
aac0c6e3
MR
22760;; End:
22761
5df4f04c 22762 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
aac0c6e3
MR
22763
22764 This file is part of GNU Emacs.
22765
22766 GNU Emacs is free software: you can redistribute it and/or modify
22767 it under the terms of the GNU General Public License as published by
22768 the Free Software Foundation, either version 3 of the License, or
22769 (at your option) any later version.
22770
22771 GNU Emacs is distributed in the hope that it will be useful,
22772 but WITHOUT ANY WARRANTY; without even the implied warranty of
22773 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22774 GNU General Public License for more details.
22775
22776 You should have received a copy of the GNU General Public License
22777 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22778
22779;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40